.silhouette-shell { width: min(1100px, calc(100% - 32px)); }

.game-card { overflow: hidden; border: 3px solid var(--ink); background: var(--panel); box-shadow: 10px 10px 0 var(--shadow); }
.game-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: end; padding: 30px 34px; border-bottom: 3px solid var(--ink); }
.game-heading .eyebrow { margin-bottom: 10px; }
.game-heading h1 { max-width: 820px; font-size: clamp(2.3rem,7vw,5rem); line-height: .94; }
.lede { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.progress-box { min-width: 150px; padding: 16px; border: 2px solid var(--line); background: #171220; text-align: center; }
.progress-box > span,.stat > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.progress-box strong { color: var(--gold); font-size: 1.6rem; }

.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.65rem); }

.game-stage {
  min-height: 760px; padding: 28px 28px 30px;
  background: linear-gradient(rgba(88,199,215,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(88,199,215,.035) 1px,transparent 1px),radial-gradient(circle at 50% 23%,#2a213b 0,transparent 53%);
  background-size: 24px 24px,24px 24px,auto;
}
.prompt-panel { display: flex; min-height: 375px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.stage-kicker { margin: 0 0 9px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .14em; }
.prompt-panel h2 { margin: 11px 0 0; font-size: clamp(1.35rem,4vw,2.45rem); letter-spacing: -.035em; }
.prompt-panel > p:not(.stage-kicker) { max-width: 700px; min-height: 24px; margin: 8px 0 9px; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.reference-wrap { text-align: center; }
.figure-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .13em; }

.pixel-board {
  --cell: 25px;
  display: grid; width: calc(var(--cell) * 6 + 10px); height: calc(var(--cell) * 6 + 10px);
  grid-template-columns: repeat(6,var(--cell)); grid-template-rows: repeat(6,var(--cell));
  padding: 5px; border: 2px solid var(--line); background: #171220;
}
.reference-board { --cell: clamp(23px,4.5vw,31px); margin: auto; box-shadow: 6px 6px 0 var(--shadow); }
.pixel-cell { position: relative; width: var(--cell); height: var(--cell); border: 1px solid #171220; background: var(--gold); box-shadow: inset -3px -3px 0 rgba(0,0,0,.2); }
.reference-board .pixel-cell { border-color: var(--gold); background: var(--gold); box-shadow: none; }
.candidate-board .pixel-cell { background: var(--blue); }
.candidate-board .pixel-cell:nth-child(3n+1)::after { position: absolute; width: 30%; height: 30%; inset: 18% auto auto 18%; background: #171220; content: ""; }
.candidate-board .pixel-cell:nth-child(3n+2)::after { position: absolute; height: 3px; inset: auto 14% 20%; background: #171220; content: ""; }
.pixel-board.is-hidden { place-items: center; }
.pixel-board.is-hidden::after { grid-area: 1 / 1 / 7 / 7; color: var(--muted); font-size: 4.5rem; font-weight: 900; content: "?"; }

.deadline-wrap { width: min(560px,92%); margin: 0 auto 9px; }
.deadline-wrap[hidden] { display: none; }
.deadline-label { display: flex; justify-content: space-between; margin-bottom: 5px; color: var(--muted); font-size: .67rem; font-weight: 800; letter-spacing: .11em; }
.deadline-track { height: 11px; overflow: hidden; border: 2px solid var(--line); background: #171220; }
.deadline-fill { display: block; width: 100%; height: 100%; transform: scaleX(1); transform-origin: left; background: var(--green); }
.deadline-fill.is-warning { background: var(--gold); }
.deadline-fill.is-danger { background: var(--red); }
.feedback { display: flex; min-height: 39px; margin: 1px 0 9px; flex-direction: column; align-items: center; justify-content: center; }
.feedback[hidden] { display: none; }
.feedback strong { color: var(--green); font-size: 1.25rem; }
.feedback span { color: var(--muted); font-size: .8rem; }

.answer-grid { display: grid; max-width: 900px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 8px auto 0; }
.answer-card {
  display: flex; min-width: 0; min-height: 230px; flex-direction: column; align-items: center; gap: 10px; padding: 12px 8px;
  border: 3px solid var(--ink); border-radius: 0; background: #231b30; box-shadow: 5px 5px 0 var(--shadow); color: var(--ink); cursor: pointer;
  touch-action: manipulation; user-select: none; transition: transform 80ms ease,box-shadow 80ms ease,background 100ms ease;
}
.option-key { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .08em; }
.option-key kbd { width: 30px; height: 30px; border-color: var(--line); font-size: .8rem; }
.candidate-board { --cell: clamp(19px,2.5vw,25px); flex: 0 0 auto; pointer-events: none; }
.answer-card:disabled { cursor: default; opacity: .45; }
.answer-card:not(:disabled):hover { background: #302540; }
.answer-card:not(:disabled):active,.answer-card.is-pressed { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--shadow); }
.answer-card:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
.answer-card.is-correct { border-color: var(--green); background: rgba(93,211,158,.12); }
.answer-card.is-wrong { border-color: var(--red); background: rgba(242,107,107,.12); }
.control-note { margin: 18px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; text-align: center; }

.game-stage[data-state="countdown"] .reference-board { animation: ready-pulse .72s steps(2,end) infinite; }
.game-stage[data-state="active"] .reference-board,.game-stage[data-state="active"] .answer-grid { animation: figure-arrive 130ms steps(2,end); }
.content-section { display: grid; grid-template-columns: minmax(240px,.8fr) 1.2fr; gap: 54px; padding: 76px 12px 52px; }
.content-heading h2,.faq-section > h2,.related-section > h2 { max-width: 760px; font-size: clamp(1.8rem,4vw,3rem); line-height: 1.08; }
.steps-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 18px; border: 2px solid var(--line); background: #171220; }
.steps-list span { color: var(--gold); font-size: 1.45rem; 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; }
.info-panel { padding: 30px; border: 3px solid var(--ink); background: var(--panel); box-shadow: 7px 7px 0 var(--shadow); }
.info-panel h2 { margin: 8px 0 18px; font-size: clamp(1.35rem,3vw,2rem); }
.info-panel p + p { margin-top: 14px; }
.faq-section,.related-section { padding: 76px 12px 0; }
.faq-list { display: grid; gap: 12px; margin-top: 26px; }
.faq-list details { border: 2px solid var(--line); background: #171220; }
.faq-list summary { padding: 18px 20px; color: var(--ink); font-weight: 800; cursor: pointer; }
.faq-list details p { padding: 0 20px 20px; }
.related-section { padding-bottom: 76px; }
.related-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 26px; }
.related-links a { display: flex; min-height: 100px; flex-direction: column; justify-content: center; gap: 7px; padding: 18px; border: 2px solid var(--line); background: #171220; color: var(--ink); text-decoration: none; }
.related-links a:hover,.related-links a:focus-visible { border-color: var(--gold); outline: 0; }
.related-links small { color: var(--muted); font-size: .76rem; font-weight: 400; }

@keyframes ready-pulse { 0%,49% { opacity: .42; } 50%,100% { opacity: 1; } }
@keyframes figure-arrive { from { transform: scale(.94); } to { transform: scale(1); } }

@media (max-width: 900px) {
  .game-heading { grid-template-columns: 1fr; }
  .progress-box { display: flex; align-items: center; justify-content: space-between; }
  .progress-box > span { margin: 0; }
  .answer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 570px; }
  .answer-card { min-height: 210px; }
  .related-links { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 650px) {
  .silhouette-shell { width: min(100% - 18px,620px); padding-top: 10px; }
  .game-card { box-shadow: 6px 6px 0 var(--shadow); }
  .game-heading { gap: 20px; padding: 24px 18px; }
  .game-heading h1 { font-size: clamp(2.05rem,11vw,3.6rem); overflow-wrap: anywhere; }
  .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); }
  .game-stage { min-height: 790px; padding: 24px 8px; }
  .prompt-panel { min-height: 360px; }
  .reference-board { --cell: clamp(21px,7vw,28px); box-shadow: 4px 4px 0 var(--shadow); }
  .answer-grid { gap: 8px; }
  .answer-card { min-height: 184px; padding: 9px 4px; box-shadow: 3px 3px 0 var(--shadow); }
  .candidate-board { --cell: clamp(16px,6.1vw,22px); }
  .option-key kbd { display: none; }
  .content-section,.reading-grid { grid-template-columns: 1fr; }
  .content-section { gap: 30px; padding: 58px 8px 44px; }
  .info-panel { padding: 24px 20px; }
  .faq-section,.related-section { padding: 58px 8px 0; }
  .related-section { padding-bottom: 58px; }
  .related-links { grid-template-columns: 1fr; }
  .related-links a { min-height: 92px; }
}

@media (max-width: 360px) {
  .game-stage { padding-inline: 5px; }
  .answer-grid { gap: 6px; }
  .answer-card { min-height: 169px; }
  .candidate-board { --cell: 15px; }
  .option-key { font-size: .6rem; letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) {
  .game-stage[data-state="countdown"] .reference-board,.game-stage[data-state="active"] .reference-board,.game-stage[data-state="active"] .answer-grid { animation: none; }
  .answer-card { transition: none; }
}
