body[data-mode="career"] { --accent: #f5d284; }
body[data-mode="timeline"] { --accent: #a9dff5; }
body[data-mode="facts"] { --accent: #c9b8ff; }
[data-mode="career"] .arcade-art { background-image: url("assets/mystery-stage.webp"); background-position: 72% 45%; }
[data-mode="timeline"] .arcade-art { background-image: url("assets/broadcast-locker.webp"); background-position: 68% 45%; }
[data-mode="facts"] .arcade-art { background-image: url("assets/arena-night.webp"); background-position: 64% 48%; }
.cover-career { --cover: url("assets/mystery-stage.webp"); }
.cover-timeline { --cover: url("assets/broadcast-locker.webp"); }
.cover-facts { --cover: url("assets/arena-night.webp"); }
.mode-switch { gap: 3px; padding-block: 18px; }
.mode-switch a { min-height: 40px; padding-block: 7px; }
.rail-label:not(:first-child) { margin-top: 16px; }
.career-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 15px; margin-top: 16px; align-items: start; }
[data-stage="career"] .arcade-hero { min-height: 184px; }
[data-stage="career"] .arcade-hero h1 { font-size: clamp(2.4rem, 4.1vw, 4.15rem); }
[data-stage="career"] .arcade-hero h1 em { display: inline; }
[data-stage="career"] .arcade-hero .hero-copy { width: 82%; padding-block: 24px; }
[data-stage="career"] .arcade-hero .hero-copy > p { display: none; }
[data-stage="career"] .arcade-hero .hero-meta { margin-top: 9px; }
.career-panel { min-width: 0; border-top: 2px solid var(--accent); }
.career-instruction { margin: -10px 0 18px; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.career-clubs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: career; }
.career-clubs li { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; padding: 10px 12px; border: 1px solid #43566a; background: #111f2f; }
.career-clubs li.locked { border-style: dashed; background: #0b1622; color: #73879c; }
.career-index { color: var(--accent); font: 650 .7rem var(--mono); }
.career-clubs small, .career-clubs strong { display: block; }
.career-clubs small { margin-bottom: 4px; color: #93a7ba; font: .6rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.career-clubs strong { overflow-wrap: anywhere; font-size: .94rem; }
.career-clubs .locked strong { letter-spacing: .12em; }
.career-form { display: flex; gap: 9px; }
.career-input { width: 100%; min-width: 0; min-height: 49px; padding: 0 14px; border: 1px solid #4b6077; border-radius: 4px; outline: none; background: #091422; color: var(--text); font-size: 1rem; }
.career-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px #f5d28420; }
.career-input::placeholder { color: #91a2b5; }
.career-message { min-height: 20px; margin-top: 9px; color: #ffd0a8; font-size: .82rem; }
.detective-side { display: flex; flex-direction: column; align-items: stretch; gap: 11px; }
.detective-side h2 { margin-top: 3px; font: 900 1.45rem var(--display); }
.career-rule-badge { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #776b48; background: #f5d2840b; color: #f5d99b; font-size: .75rem; line-height: 1.4; }
.career-rule-badge .icon { width: 18px; height: 18px; }
.condition-list { margin: 0 0 4px; padding: 0; list-style: none; }
.condition-list li { padding: 8px 0; border-top: 1px solid #304459; color: #b6c5d3; font-size: .78rem; }
.detective-side .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 5px; padding: 8px; font-size: .8rem; }
.detective-side .secondary:disabled { opacity: .45; }
.detective-side .text-action { justify-content: flex-start; }
.career-result { position: relative; overflow: hidden; }
.career-answer { display: flex; align-items: center; gap: 14px; margin: 18px 0 12px; }
.career-answer > .flag { width: 38px; height: 27px; }
.career-answer h2 { font: 900 clamp(2.5rem, 5vw, 4.5rem)/1 var(--display); }
.career-answer p { margin-top: 5px; color: #b7c5d2; }
.career-summary { color: #c2cfda; line-height: 1.5; }
.answer-clubs { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.facts-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact-choice { align-items: center; text-align: center; min-height: 140px; padding: 24px; }
.fact-choice > .icon { width: 30px; height: 30px; margin-bottom: 5px; }
.fact-choice .option-nick { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.fact-yes:not(:disabled):hover { border-color: #8fe0b5; }
.fact-no:not(:disabled):hover { border-color: #ff9c96; }
.timeline-widget { display: grid; gap: 14px; }
.timeline-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.timeline-slots li { min-width: 0; min-height: 85px; padding: 10px; border: 1px dashed #50677e; background: #0b1724; }
.timeline-slots li.filled { border-style: solid; border-color: #67849d; background: #1c2d40; }
.timeline-slots b { display: block; margin-top: 9px; overflow-wrap: anywhere; font: 900 1.04rem/1.1 var(--display); }
.timeline-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.timeline-pick { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 55px; padding: 10px; border: 1px solid #415870; border-radius: 4px; background: #1b2a3d; text-align: left; }
.timeline-pick strong { overflow-wrap: anywhere; }
.timeline-pick > .icon { margin-left: auto; color: var(--accent); }
.timeline-pick[aria-pressed="true"] { border-color: var(--accent); background: #1c3548; }
.timeline-widget > .primary { justify-self: start; }
.timeline-widget > .primary:disabled { opacity: .5; }
.timeline-solution { padding: 13px; border-left: 3px solid var(--accent); background: #0b1724; }
.timeline-solution small, .timeline-solution strong { display: block; }
.timeline-solution small { margin-bottom: 7px; color: #a9b9c8; }
.timeline-solution strong { line-height: 1.55; }
@media (min-width: 960px) and (max-height: 820px) {
  .studio-rail { padding-top: 15px; }
  .rail-head { padding-bottom: 14px; }
  .mode-switch { padding-block: 12px; }
  .mode-switch a { min-height: 35px; font-size: .81rem; }
  .rail-label:not(:first-child) { margin-top: 11px; }
  .rail-roster { padding-top: 10px; }
  .rail-roster > span { display: none; }
}
@media (max-width: 900px) {
  .career-layout { grid-template-columns: minmax(0, 1fr) 220px; }
  .timeline-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 749px) {
  [data-stage="career"] .arcade-hero { display: none; }
  .career-layout { grid-template-columns: 1fr; gap: 10px; }
  .detective-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detective-side .career-rule-badge, .detective-side h2, .condition-list { grid-column: 1 / -1; }
  .detective-side .secondary { margin: 0; }
}
@media (max-width: 560px) {
  .career-clubs { grid-template-columns: 1fr; }
  .career-form { flex-direction: column; }
  .career-form .primary { width: 100%; }
  .fact-choice { min-height: 115px; padding: 18px 10px; }
  .timeline-picks { grid-template-columns: 1fr; }
  .timeline-slots li { min-height: 75px; }
  .detective-side { grid-template-columns: 1fr; }
  .detective-side > * { grid-column: 1; }
}
