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

.game-heading .eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.game-heading h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.9rem);
  line-height: 0.95;
}

.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: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.progress-box strong {
  color: var(--gold);
  font-size: 1.45rem;
}

.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-switch button:disabled { cursor: not-allowed; opacity: 0.65; }

.mode-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: right;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 3px solid var(--ink);
}

.stat {
  min-width: 0;
  padding: 18px 10px;
  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); }

.click-stage {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  align-items: center;
  padding: 28px 28px 34px;
  background:
    linear-gradient(rgba(88, 199, 215, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 199, 215, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, #173b45 0, transparent 59%);
  background-size: 24px 24px, 24px 24px, auto;
}

.stage-copy {
  min-height: 148px;
  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.55rem, 5vw, 2.55rem);
}

.stage-copy > p:not(.stage-kicker) {
  max-width: 650px;
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.5;
}

.deadline-wrap {
  width: min(760px, 100%);
  margin-bottom: 18px;
}

.deadline-wrap[hidden] { display: none; }

.deadline-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.deadline-labels strong { color: var(--gold); }

.deadline-track {
  height: 18px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 5px;
  background: #0a2026;
}

.deadline-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(1);
  transform-origin: left center;
  will-change: transform;
}

.click-stage[data-state="active"] .deadline-fill {
  background: linear-gradient(90deg, var(--green), var(--gold), var(--orange));
}

.click-pad {
  position: relative;
  display: flex;
  width: min(760px, 100%);
  min-height: 270px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  border: 4px solid var(--ink);
  border-radius: 5px;
  background: #12343c;
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--shadow);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.click-pad::before,
.click-pad::after {
  position: absolute;
  width: 58px;
  height: 58px;
  border-color: var(--blue);
  content: "";
  opacity: 0.58;
}

.click-pad::before {
  top: 16px;
  left: 16px;
  border-top: 4px solid;
  border-left: 4px solid;
}

.click-pad::after {
  right: 16px;
  bottom: 16px;
  border-right: 4px solid;
  border-bottom: 4px solid;
}

.click-pad:disabled {
  cursor: not-allowed;
  opacity: 0.76;
}

.click-stage[data-state="active"] .click-pad {
  background: #184955;
  cursor: crosshair;
}

.click-pad .pad-count {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: clamp(4rem, 14vw, 7.6rem);
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 4px 4px 0 var(--night);
}

.click-pad > strong {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: clamp(1rem, 3vw, 1.35rem);
  letter-spacing: 0.12em;
}

.click-pad > small {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.click-pad kbd {
  display: inline-block;
  padding: 3px 8px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: var(--night);
  color: var(--ink);
  font: inherit;
}

.click-pad > i {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.click-pad.is-hit > i { animation: hit-ring 220ms ease-out; }

.round-meter {
  display: flex;
  width: min(760px, 100%);
  justify-content: space-between;
  margin-top: 16px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: #0a2026;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.round-meter[hidden] { display: none; }
.round-meter strong { color: var(--gold); }

.primary-button {
  min-width: min(420px, 100%);
  margin-top: 24px;
  padding: 16px 22px;
  border: 3px solid var(--ink);
  border-radius: 5px;
  background: var(--gold);
  color: var(--night);
  box-shadow: 5px 5px 0 var(--shadow);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.primary-button[hidden] { display: none; }

.control-note {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
}

.click-pad:focus-visible,
.mode-switch 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;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 54px;
  padding: 82px 12px 56px;
}

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

.content-heading h2,
.info-panel h2,
.faq-section h2,
.related-section h2 {
  margin: 0;
  line-height: 1.15;
}

.steps-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}

.steps-list li > span { color: var(--gold); font-weight: 900; }
.steps-list p { margin: 0; color: var(--muted); line-height: 1.55; }

.reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-panel {
  padding: 28px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}

.info-panel p:not(.section-kicker) { color: var(--muted); line-height: 1.65; }

.faq-section,
.related-section { padding: 76px 12px 0; }

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.faq-list details {
  border: 2px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
}

.faq-list summary {
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.6;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.related-links a {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.related-links a:hover { border-color: var(--gold); }
.related-links small { color: var(--muted); font-size: 0.76rem; font-weight: 400; }

@keyframes hit-ring {
  0% { opacity: 0.95; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(3.2); }
}

@media (max-width: 860px) {
  .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, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .click-shell { width: min(100% - 18px, 620px); padding-top: 10px; }
  .topbar { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .topbar-meta { max-width: 100%; flex-wrap: wrap; justify-content: flex-end; }
  .game-card { box-shadow: 6px 6px 0 var(--shadow); }
  .game-heading { gap: 20px; padding: 24px 18px; }
  .game-heading h1 { font-size: clamp(1.95rem, 10.5vw, 3.5rem); overflow-wrap: anywhere; }
  .mode-panel { align-items: stretch; flex-direction: column; }
  .mode-description { text-align: left; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 2px solid var(--line); }
  .click-stage { min-height: 600px; padding: 26px 12px 28px; }
  .stage-copy { min-height: 165px; }
  .click-pad { min-height: 235px; padding: 18px; box-shadow: 5px 5px 0 var(--shadow); }
  .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 (max-width: 390px) {
  .topbar-meta { gap: 6px; font-size: 0.68rem; }
  .topbar-link { font-size: 0.64rem; }
  .mode-switch button { flex: 1 1 0; padding-inline: 8px; }
  .click-pad { min-height: 215px; }
  .round-meter { gap: 10px; font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .click-pad.is-hit > i { animation: none; }
}
