.moving-shell {
  width: min(1080px, 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: 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: 780px;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.94;
}

.lede {
  max-width: 710px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.progress-box {
  min-width: 154px;
  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: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.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 16px;
  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: 660px;
  padding: 30px;
  background: radial-gradient(circle at 50% 40%, #29203a 0, transparent 58%);
}

.stage-copy {
  min-height: 112px;
  text-align: center;
}

.stage-kicker {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.stage-copy h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
}

.stage-copy > p:last-child {
  max-width: 680px;
  margin: 9px auto 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.deadline-track {
  height: 8px;
  max-width: 760px;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #171220;
}

.deadline-track[hidden] { visibility: hidden; display: block; }

.deadline-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform-origin: left center;
}

.deadline-fill.is-danger { background: var(--red); }

.target-field {
  position: relative;
  width: min(860px, 100%);
  height: clamp(290px, 45vw, 390px);
  min-height: 290px;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: #171220;
  box-shadow: 7px 7px 0 var(--shadow);
  cursor: crosshair;
  touch-action: manipulation;
  user-select: none;
}

.field-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(88, 199, 215, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 199, 215, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.field-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  pointer-events: none;
}

.field-message strong {
  color: var(--ink);
  font-size: clamp(1rem, 3vw, 1.45rem);
}

.field-message span {
  max-width: 520px;
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.moving-target {
  position: absolute;
  z-index: 2;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition-property: left, top;
  transition-timing-function: linear;
}

.moving-target[hidden] { display: none; }

.target-pixels {
  position: absolute;
  inset: 3px;
  display: grid;
  place-items: center;
  border: 6px solid var(--ink);
  background: var(--gold);
  box-shadow: 6px 6px 0 var(--shadow);
}

.target-pixels::before,
.target-pixels::after {
  position: absolute;
  content: "";
  background: var(--red);
}

.target-pixels::before { width: 34px; height: 8px; }
.target-pixels::after { width: 8px; height: 34px; }

.target-pixels i {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  background: var(--ink);
}

.moving-target:hover .target-pixels { background: #ffe98c; }

.moving-target:active .target-pixels {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--shadow);
}

.moving-target:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}

.moving-target[data-speed="fast"] .target-pixels { border-color: var(--red); }
.moving-target[data-speed="medium"] .target-pixels { border-color: var(--blue); }

.feedback {
  display: flex;
  min-height: 42px;
  margin: 17px 0 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.feedback[hidden] { visibility: hidden; display: flex; }
.feedback strong { color: var(--green); font-size: 1.2rem; }
.feedback span { color: var(--muted); font-size: 0.8rem; }

.primary-button { display: block; margin: 0 auto; }

.control-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.game-stage[data-state="playing"] .field-message,
.game-stage[data-state="playing"] .primary-button { visibility: hidden; }
.game-stage[data-state="complete"] { background-color: #2d2515; }
.game-stage[data-state="game-over"] { background-color: #351521; }
.game-stage[data-state="cancelled"] { background-color: #241a31; }

.content-section {
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: 64px;
  padding: 76px 18px 58px;
}

.content-section h2,
.info-panel h2,
.faq-section h2,
.related-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.steps-list { margin: 0; padding: 0; border-top: 2px solid var(--line); list-style: none; }
.steps-list li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 20px 0; border-bottom: 2px solid var(--line); }
.steps-list span { color: var(--gold); font-weight: 800; }
.steps-list p,
.info-panel p,
.faq-list p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }

.reading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.info-panel { padding: 30px; border: 2px solid var(--line); background: var(--panel); }
.info-panel h2 { margin-bottom: 22px; }
.info-panel > p:not(.section-kicker) + p { margin-top: 16px; }
.faq-section,
.related-section { padding: 72px 18px 0; }
.faq-list { margin-top: 28px; border-top: 2px solid var(--line); }
.faq-list details { border-bottom: 2px solid var(--line); }
.faq-list summary { padding: 22px 44px 22px 0; color: var(--ink); cursor: pointer; font-size: 1.05rem; font-weight: 800; line-height: 1.4; }
.faq-list details p { max-width: 850px; padding: 0 0 24px; }
.related-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.related-links a { display: flex; min-height: 118px; flex-direction: column; justify-content: space-between; padding: 18px; border: 2px solid var(--line); background: var(--panel); color: var(--ink); font-weight: 800; line-height: 1.35; 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: 0.76rem; font-weight: 400; }

@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; }
  .related-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .moving-shell { width: min(100% - 18px, 620px); padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .game-card { box-shadow: 6px 6px 0 var(--shadow); }
  .game-heading { gap: 20px; padding: 24px 18px; }
  .game-heading h1 { font-size: clamp(2.2rem, 12vw, 3.8rem); }
  .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: 610px; padding: 24px 12px; }
  .stage-copy { min-height: 124px; }
  .target-field { height: 330px; min-height: 330px; }
  .moving-target { width: 62px; height: 62px; }
  .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-links { grid-template-columns: 1fr; }
  .related-links a { min-height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .moving-target { transition-duration: 0ms !important; }
  .deadline-fill { transition: none !important; }
}
