.clock-shell { width: min(1080px, calc(100% - 32px)); }
.game-card { overflow: hidden; border: 3px solid var(--ink); border-radius: 5px; background: var(--panel); box-shadow: 10px 10px 0 var(--shadow); }
.game-heading { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; padding: 30px 34px; border-bottom: 3px solid var(--ink); }
.eyebrow, .section-kicker { margin: 0; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.eyebrow { margin-bottom: 10px; }
.game-heading h1 { max-width: 820px; margin: 0; font-size: clamp(2.25rem, 7vw, 4.75rem); line-height: .94; }
.lede { max-width: 720px; margin: 18px 0 0; color: var(--muted); line-height: 1.6; }
.progress-box { min-width: 150px; padding: 16px; border: 2px solid var(--line); border-radius: 5px; background: #0a2026; text-align: center; }
.progress-box span, .stat span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .1em; }
.progress-box strong { color: var(--gold); font-size: 1.6rem; }
.mode-panel { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 2px solid var(--line); background: #0a2026; }
.mode-switch { display: flex; flex: 0 0 auto; gap: 6px; }
.mode-switch button { padding: 10px 14px; border: 2px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.mode-switch button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: var(--night); }
.mode-description { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; text-align: right; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 3px solid var(--ink); }
.stat { min-width: 0; padding: 18px 12px; border-right: 2px solid var(--line); text-align: center; }
.stat:last-child { border-right: 0; }
.stat strong { font-size: clamp(1.05rem, 3vw, 1.55rem); }
.clock-stage { display: flex; min-height: 690px; flex-direction: column; align-items: center; padding: 24px 28px 34px; background: linear-gradient(rgba(88,199,215,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(88,199,215,.045) 1px,transparent 1px),radial-gradient(circle at 50% 43%,#173b45 0,transparent 56%); background-size: 24px 24px,24px 24px,auto; }
.stage-copy { min-height: 128px; padding-top: 16px; text-align: center; }
.stage-kicker { margin: 0 0 9px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.stage-copy h2 { margin: 0; font-size: clamp(1.5rem, 5vw, 2.5rem); }
.stage-copy p:not(.stage-kicker) { max-width: 620px; margin: 10px auto 0; color: var(--muted); line-height: 1.5; }
.clock-board { position: relative; width: min(340px, 78vw); aspect-ratio: 1; border: 5px solid var(--ink); border-radius: 50%; background: #0a2026; box-shadow: 8px 8px 0 var(--shadow), inset 0 0 0 4px #12333b; }
.clock-marks span { position: absolute; top: calc(var(--y) * 1%); left: calc(var(--x) * 1%); width: 6px; height: 14px; border-radius: 3px; background: var(--line); transform: translate(-50%,-50%) rotate(var(--angle)); }
.clock-marks span:nth-child(6n + 1) { height: 20px; background: var(--blue); }
.clock-hand { position: absolute; top: 50%; left: 50%; width: 8px; height: 39%; border-radius: 4px; background: var(--gold); box-shadow: 0 0 12px rgba(247,201,72,.55); transform: translate(-50%, -100%) rotate(calc(var(--clock-position, 0) * 15deg)); transform-origin: 50% 100%; transition: transform 90ms steps(2, end); }
.clock-hand i { position: absolute; top: -7px; left: 50%; width: 18px; height: 18px; border-radius: 3px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.clock-hub { position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; border: 5px solid var(--ink); border-radius: 50%; background: var(--blue); transform: translate(-50%,-50%); }
.clock-status { position: absolute; right: 0; bottom: 24%; left: 0; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-align: center; }
.clock-stage[data-state="hit"] .clock-board { border-color: var(--green); }
.clock-stage[data-state="miss"] .clock-board, .clock-stage[data-state="game-over"] .clock-board { border-color: var(--red); }
.timing-panel { width: min(540px,100%); margin-top: 20px; }
.timing-copy { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.timing-copy strong { color: var(--blue); }
.timing-track { height: 18px; overflow: hidden; border: 2px solid var(--line); border-radius: 5px; background: #071a1f; }
.timing-track span { display: block; width: calc(var(--tick-progress,0) * 1%); height: 100%; border-radius: 3px; background: linear-gradient(90deg,var(--blue),var(--gold)); }
.round-result { display: flex; min-height: 30px; gap: 10px; align-items: baseline; justify-content: center; margin-top: 12px; }
.round-result[hidden] { visibility: hidden; }
.round-result strong { font-size: 1.2rem; }
.round-result span { color: var(--muted); font-size: .78rem; }
.detect-button { display: flex; width: min(480px,100%); min-height: 92px; flex-direction: column; gap: 7px; align-items: center; justify-content: center; margin-top: 12px; border: 4px solid var(--ink); border-bottom-width: 9px; border-radius: 5px; background: var(--blue); color: var(--night); cursor: pointer; touch-action: manipulation; }
.detect-button strong { font-size: clamp(1.65rem,6vw,2.5rem); letter-spacing: .1em; }
.detect-button span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.detect-button kbd { width: auto; height: auto; padding: 2px 7px; border-color: #164f59; border-radius: 3px; background: #164f59; color: var(--ink); }
.detect-button:not(:disabled):active, .detect-button.is-pressed { border-bottom-width: 4px; transform: translateY(5px); }
.detect-button:disabled { border-color: var(--line); background: #112f37; color: var(--muted); cursor: not-allowed; opacity: .68; }
.primary-button { min-width: min(380px,100%); margin-top: 16px; border-radius: 5px; }
.mode-switch button:focus-visible,.detect-button:focus-visible,.primary-button:focus-visible,.related-links a:focus-visible,.faq-list summary:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
.control-note { margin: 14px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.5; text-align: center; }
.content-section,.faq-section,.related-section { margin-top: 48px; }
.content-section h2,.faq-section h2,.related-section h2,.info-panel h2 { margin: 8px 0 0; }
.steps-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; padding: 0; list-style: none; }
.steps-list li,.info-panel,.faq-list details,.related-links a { border: 2px solid var(--line); border-radius: 5px; background: var(--panel); }
.steps-list li { display: flex; gap: 14px; padding: 20px; }
.steps-list li > span { color: var(--gold); font-size: 1.25rem; font-weight: 900; }
.steps-list p,.info-panel p,.faq-list p { margin: 0; color: var(--muted); line-height: 1.65; }
.reading-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 32px; }
.info-panel { padding: 26px; }
.info-panel h2 { margin-bottom: 16px; }
.info-panel p + p { margin-top: 12px; }
.faq-list { display: grid; gap: 10px; margin-top: 18px; }
.faq-list details { padding: 18px 20px; }
.faq-list summary { color: var(--ink); font-weight: 800; cursor: pointer; }
.faq-list p { margin-top: 12px; }
.related-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 18px; }
.related-links a { display: flex; gap: 5px; flex-direction: column; padding: 18px; color: var(--ink); text-decoration: none; }
.related-links a:hover { border-color: var(--gold); }
.related-links small { color: var(--muted); }
@media (max-width:720px) { .clock-shell{width:min(100% - 20px,1080px)} .topbar{align-items:flex-start}.topbar-meta{flex-wrap:wrap;justify-content:flex-end}.game-heading{grid-template-columns:1fr;gap:18px;padding:24px 20px}.progress-box{min-width:0}.mode-panel{align-items:stretch;flex-direction:column}.mode-switch button{flex:1}.mode-description{text-align:left}.stats-grid{grid-template-columns:repeat(2,1fr)}.stat:nth-child(2){border-right:0}.stat:nth-child(-n+2){border-bottom:2px solid var(--line)}.clock-stage{padding:22px 14px 30px}.steps-list,.reading-grid,.related-links{grid-template-columns:1fr} }
@media (max-width:430px) { .topbar-meta{max-width:210px}.topbar-link{font-size:.63rem}.game-heading h1{font-size:clamp(2rem,11vw,3rem)}.stage-copy{min-height:145px}.clock-board{width:min(290px,78vw)} }
@media (prefers-reduced-motion:reduce) { .clock-hand{transition:none}.timing-track span{transition:none} }
