:root {
  color-scheme: dark;
  --gold: #ffce70;
  --rose: #ff6098;
  --ice: #70ebe1;
  --line: #393546;
  --muted: #b3a9be;
  --px: "Press Start 2P", "Courier New", monospace;
  --mono: "VT323", "Courier New", monospace;
  /* 像素切角：四角各缺一格，替代圆角 */
  --px-corner: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}
body {
  margin: 0;
  min-height: 100svh;
  background: #090910;
  color: #fff4dc;
  font-family: var(--font-arcade);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
}

/* Header and stage */
.wrap {
  --header-height: clamp(44px, 6.2svh, 54px);
  --dock-padding: clamp(6px, 1.35svh, 14px);
  --timer-size: clamp(48px, 7.5svh, 58px);
  --dock-height: calc(var(--timer-size) + 21px + 2 * var(--dock-padding));
  --status-height: clamp(28px, 4.2svh, 40px);
  --scene-height: max(
    280px,
    calc(100svh - var(--dock-height) - var(--status-height))
  );
  width: 100%;
  margin: 0;
}
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: var(--header-height);
  padding: 0 clamp(14px, 2.5vw, 32px);
  background: linear-gradient(
    180deg,
    #080614de 0%,
    #0806148c 68%,
    transparent 100%
  );
  font-family: var(--font-arcade);
}
.brand,
.tools,
.sound,
.stage-label,
.help,
.brand small,
.stage-meta {
  display: flex;
  align-items: center;
}
.brand {
  gap: 8px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 2px 2px 0 #000000cc;
}
.mark {
  width: 28px;
  height: 28px;
  flex: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(2px 2px 0 #000000aa);
}
.brand small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #d0c6d8;
  margin-left: 5px;
}
.stage-meta {
  justify-content: center;
  font-family: var(--px);
  font-size: 8px;
  letter-spacing: 1.4px;
  text-shadow: 2px 2px 0 #000000cc;
}
.tools {
  justify-content: flex-end;
  gap: clamp(10px, 1.8vw, 20px);
}
.mode-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ice);
  font-size: 12px;
  font-weight: bold;
  text-underline-offset: 4px;
  white-space: nowrap;
  text-shadow: 2px 2px 0 #000000cc;
}
.mode-link:hover {
  color: var(--gold);
}
.mode-link:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}
.sound,
.help {
  background: none;
  border: 0;
  gap: 7px;
  color: #dfd8e6;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: bold;
  padding: 6px 2px;
  min-height: 40px;
  white-space: nowrap;
  text-shadow: 2px 2px 0 #000000cc;
}
.help:disabled {
  visibility: hidden;
}
.sound:hover,
.help:hover {
  color: var(--gold);
}
.sound canvas {
  width: 18px;
  height: 16px;
  image-rendering: pixelated;
}
.help span {
  font-size: 12px;
  border: 1px solid #a69bb2;
  width: 16px;
  line-height: 14px;
  text-align: center;
  background: #0b081ea6;
}
.site-main {
  margin-top: 0;
}
.cabinet {
  position: relative;
  font-family: var(--px);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 42px #0007;
  background: #11101b;
}
.stage-label {
  gap: 8px;
  color: #f5d6e6;
}
.led {
  width: 6px;
  height: 6px;
  background: var(--rose);
  box-shadow: 0 0 8px #ff4a89aa;
  animation: px-blink 1.2s steps(2) infinite;
}
.daily-edition {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 1vw, 9px);
  white-space: nowrap;
}
.daily-edition strong,
.daily-edition time {
  color: var(--gold);
}
.scene {
  height: var(--scene-height);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  container-type: size;
  background: #0a0818;
}
.stage-frame {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: #0a0818;
}
.stage-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.shade {
  position: absolute;
  inset: 0;
  background: #080b25;
  opacity: 0;
  transition: opacity 0.25s steps(4);
  z-index: -1;
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, #00000024 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, #0000000d 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at center, transparent 68%, #00000066 100%);
}
.scene[data-mode="play"] .shade {
  opacity: 0.08;
}
.scene[data-mode="miss"] .shade {
  opacity: 0.36;
}
.scene[data-mode="result"] .shade {
  opacity: 0.86;
}
.marquee {
  position: absolute;
  top: 17%;
  left: 0;
  right: 0;
  text-align: center;
}
.title {
  width: min(88%, 126cqh, 680px);
  height: auto;
  image-rendering: pixelated;
  display: block;
  margin: auto;
  filter: drop-shadow(0 5px 0 #170e2f) drop-shadow(0 0 22px #ff4f9a66);
}
.marquee h1 {
  margin: 0;
}
.subtitle {
  display: flex;
  justify-content: center;
  margin-top: clamp(6px, 1.4cqh, 12px);
}
.subtitle canvas {
  width: min(30%, 34cqh, 190px);
  height: auto;
  box-sizing: content-box;
  padding: clamp(5px, 1.2cqh, 9px) clamp(10px, 2.2cqh, 18px);
  image-rendering: pixelated;
  background: #ff4f9ae6;
  box-shadow:
    4px 4px 0 #00000073,
    inset -3px -3px 0 #00000033,
    inset 3px 3px 0 #ffffff40;
}
.dock {
  grid-template-columns: minmax(0, 1fr);
  min-height: var(--dock-height);
  padding: var(--dock-padding) 20px;
  border-top: 2px solid #000;
  background: linear-gradient(180deg, #191421, #100e19 90%);
  display: grid;
  align-content: center;
  justify-items: center;
}
.primary,
.pink {
  font-family: var(--px);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  background: #1c0d2c;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 3px #3a2a0a,
    4px 4px 0 3px #000000b3;
  color: var(--gold);
  min-height: 49px;
  padding: 0 22px;
  transition: transform 80ms;
}
.primary {
  width: min(334px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  letter-spacing: 3px;
  animation: px-cta 1.4s steps(2) infinite;
}
.primary:active,
.pink:active {
  transform: translate(2px, 2px);
}
.primary::before {
  content: "";
  border-left: 8px solid currentColor;
  border-block: 6px solid transparent;
}
.primary:hover {
  background: #2a1440;
  color: #ffe6a3;
}
.meta {
  font-size: 7px;
  line-height: 1.8;
  color: var(--muted);
  letter-spacing: 0.8px;
  margin: clamp(5px, 1.3svh, 12px) 0 0;
}

/* Game states and controls */
.hud {
  position: absolute;
  top: calc(var(--header-height) + clamp(4px, 1.2cqh, 10px));
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, 88%, calc(100cqh * 1672 / 941 - 24px));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: center;
  z-index: 2;
}
.stat,
.meter {
  background: #0b0820db;
  padding: clamp(5px, 1.1cqh, 7px) clamp(8px, 1.4cqw, 12px);
  border: 2px solid #96a4ff73;
  box-shadow: 3px 3px 0 #00000080;
  clip-path: var(--px-corner);
}
.stat {
  min-width: 64px;
}
.stat small,
.meter small,
.overline {
  font-size: 7px;
  letter-spacing: 2px;
  color: #8f9ce0;
  display: block;
}
.stat strong {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: normal;
  color: var(--gold);
}
.stat:last-child strong {
  color: var(--rose);
}
.cells {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 5px;
}
.cell {
  width: 14px;
  height: 10px;
  border: 1px solid #00000080;
  background: #ffffff24;
}
.cell.hit {
  background: var(--gold);
  border-color: #ffdb86;
}
.cell.miss {
  background: #7e687e;
}
.cell.current {
  background: var(--rose);
  animation: px-blink 0.8s steps(2) infinite;
}
.card,
.feedback,
.result {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}
.card {
  top: calc(var(--header-height) + clamp(50px, 11.5cqh, 82px));
  width: min(480px, 86%, calc(100cqh * 1672 / 941 - 40px));
  padding: clamp(8px, 1.8cqh, 15px) clamp(12px, 2cqw, 18px);
  background: #1a0b2ce6;
  border: 2px solid #96a4ff66;
  border-top: 4px solid var(--rose);
  box-shadow:
    inset 0 0 0 2px #00000066,
    5px 5px 0 #00000099;
  text-align: left;
}
.overline {
  color: var(--rose);
}
.card h2,
.result h2,
dialog h2 {
  margin: 7px 0 6px;
  font-family: var(--mono);
  font-weight: normal;
  font-size: clamp(20px, 4.4cqh, 31px);
  line-height: 1.08;
}
.hint {
  border-top: 2px dashed #ffffff2b;
  padding-top: 6px;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(16px, 2.9cqh, 20px);
  line-height: 1.12;
  color: #a8b4f0;
}
.hint b {
  font-family: var(--px);
  font-size: 8px;
  font-weight: normal;
  margin-right: 6px;
  color: var(--gold);
}

.feedback {
  top: calc(var(--header-height) + clamp(58px, 16cqh, 112px));
  color: var(--gold);
}
.feedback strong {
  font-size: clamp(28px, 8cqh, 52px);
  font-weight: normal;
  letter-spacing: 8px;
  text-shadow:
    -3px 0 #ff4f9a,
    3px 0 #4fe3ff,
    4px 5px 0 #000c;
  animation: px-pop 0.35s steps(3) both;
}
.feedback.missed {
  color: #e4cee3;
}
.feedback small {
  display: block;
  margin-top: 14px;
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000;
}
#answerForm {
  width: min(595px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.timer {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--timer-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #202136;
  box-shadow: 0 3px 14px #090713b3;
}
.timer::before,
.timer::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}
.timer::before {
  inset: 4px;
  background:
    repeating-radial-gradient(circle, transparent 0 1px, #17153148 2px 3px),
    conic-gradient(
      #cbc3ee,
      #57486e,
      #77edf0,
      #f4f2ff,
      #d988e7,
      #423665,
      #edc384,
      #cbc3ee
    );
  animation: spin-disc 2.2s steps(12) infinite;
}
.timer::after {
  inset: 0;
  background: conic-gradient(var(--gold) var(--time, 100%), #50465e 0);
  mask-image: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 2px)
  );
}
.timer-seconds {
  position: relative;
  display: grid;
  place-items: center;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #171322;
  color: #fff4dc;
  font-size: 12px;
}
@keyframes spin-disc {
  to {
    transform: rotate(1turn);
  }
}
input {
  min-width: 0;
  flex: 1;
  height: 45px;
  border: 2px solid #82aaffa6;
  background: #080c22eb;
  color: #fff;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 24px;
  border-radius: 0;
}
input::placeholder {
  color: #7f8dc8;
}
#answer:focus {
  border-color: var(--ice);
  box-shadow: 0 0 14px #4fe3ff66;
}
.pink {
  background: var(--rose);
  border: 0;
  color: #fff;
  clip-path: var(--px-corner);
  box-shadow:
    inset -4px -4px 0 #00000040,
    inset 4px 4px 0 #ffffff40;
  min-height: 45px;
  font-size: 11px;
}
.pink:hover {
  filter: brightness(1.12);
}
.notice {
  height: 14px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 18px;
  line-height: 14px;
  color: #ffadc9;
}
/* 底部像素方块声浪与右侧像素得分标尺 */
.eq-canvas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(22px, 4.6cqh, 38px);
  z-index: 1;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  opacity: 0.72;
}
.score-ruler {
  position: absolute;
  top: calc(var(--header-height) + 14px);
  bottom: 9%;
  right: clamp(10px, 1.8vw, 24px);
  width: 72px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: 10px;
  border-right: 2px solid #7f8dc855;
  font-family: var(--px);
}
.ruler-tick {
  position: relative;
  font-size: 7px;
  line-height: 1;
  color: #8f9ce0b8;
  letter-spacing: 0.5px;
}
.ruler-tick::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 6px;
  height: 2px;
  background: #8f9ce088;
  transform: translateY(-50%);
}
.ruler-gold,
.ruler-you {
  position: absolute;
  right: 6px;
  transform: translateY(50%);
  padding: 4px 6px;
  font-size: 7px;
  line-height: 1;
  white-space: nowrap;
  clip-path: var(--px-corner);
}
.ruler-gold {
  bottom: 71.43%;
  background: var(--gold);
  color: #160e24;
  box-shadow: 2px 2px 0 #00000099;
}
.ruler-you {
  bottom: var(--ruler-pct, 0%);
  background: var(--rose);
  color: #fff6fa;
  box-shadow:
    0 0 10px #ff609899,
    2px 2px 0 #000000a6;
  transition: bottom 0.45s steps(8);
  z-index: 1;
}
.scene[data-mode="result"] .eq-canvas {
  opacity: 0.42;
}
@container (max-aspect-ratio: 19 / 10) {
  .score-ruler {
    display: none;
  }
}

/* 像素街机结算面板 */
.result {
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(580px, 92%);
  max-height: 92cqh;
  overflow-y: auto;
  background: #100c22f2;
  border: 3px solid #8296ff80;
  border-top: 4px solid var(--gold);
  box-shadow:
    inset 0 0 0 2px #00000080,
    8px 8px 0 #000000b3;
  padding: clamp(12px, 2.4cqh, 20px) clamp(14px, 2.4cqw, 22px);
}
.result-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.badge-rank,
.badge-stat {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 8px;
  letter-spacing: 1px;
  clip-path: var(--px-corner);
}
.badge-rank {
  background: var(--gold);
  color: #180f26;
}
.badge-stat {
  background: #132c38;
  color: var(--ice);
  border: 2px solid #70ebe173;
}
.result .total {
  margin: 4px 0 8px;
  font-family: var(--px);
  font-size: clamp(22px, 4.8cqh, 34px);
  line-height: 1.15;
  color: #fff;
  text-shadow:
    -2px 0 #ff4f9a,
    2px 0 #4fe3ff,
    4px 4px 0 #000000b3;
}
.total small {
  font-size: clamp(11px, 2cqh, 15px);
  color: #9ba8e8;
  text-shadow: none;
}
.total-pct {
  margin-left: 6px;
  font-size: clamp(12px, 2.3cqh, 17px);
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
}
.result-banner {
  background: #1b1336;
  border: 2px solid #594a86;
  padding: 7px 12px;
  margin-bottom: 8px;
}
.result-banner strong {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--gold);
}
.result-banner p {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: clamp(16px, 2.7cqh, 20px);
  line-height: 1.1;
  color: #d6cceb;
}
.result-highlight {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: clamp(15px, 2.5cqh, 19px);
  color: var(--ice);
  letter-spacing: 0.5px;
}
.recap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  text-align: left;
}
.recap-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 76px 54px;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #18132d;
  border-left: 3px solid #6b5a78;
}
.recap-row.won {
  border-left-color: var(--gold);
  background: #1e1638;
}
.recap-num {
  font-size: 7px;
  color: #8f9ce0;
}
.recap-name {
  font-family: var(--mono);
  font-size: clamp(16px, 2.7cqh, 20px);
  line-height: 1;
  color: #b7acc8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recap-row.won .recap-name {
  color: #fff6e5;
}
.recap-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}
.recap-bars i {
  display: block;
  height: 7px;
  background: #2c2448;
}
.recap-row.won .recap-bars i.on {
  background: var(--ice);
}
.recap-row.won .recap-bars i.on:nth-child(n + 5) {
  background: var(--gold);
}
.recap-row.won .recap-bars i.on:nth-child(n + 7) {
  background: var(--rose);
}
.recap-pts {
  text-align: right;
  font-size: 7px;
  color: #8b7b99;
}
.recap-row.won .recap-pts {
  color: var(--gold);
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.px-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  font-family: var(--px);
  font-size: 9px;
  letter-spacing: 1.2px;
  text-decoration: none;
  border: 2px solid;
  clip-path: var(--px-corner);
  transition: transform 80ms;
}
.px-btn:active {
  transform: translate(2px, 2px);
}
.px-btn-copy {
  background: var(--rose);
  border-color: #ff9bc0;
  color: #fff;
  box-shadow:
    inset -3px -3px 0 #00000040,
    inset 3px 3px 0 #ffffff40;
}
.px-btn-copy.copied {
  background: #174c4a;
  border-color: var(--ice);
  color: var(--ice);
}
.px-btn-link {
  background: #1a1233;
  border-color: var(--ice);
  color: var(--ice);
}
.px-btn-link:hover {
  background: #251a47;
  color: var(--gold);
  border-color: var(--gold);
}
.stage-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--status-height);
  padding: 0 clamp(14px, 2.5vw, 32px);
  color: #a799ad;
  font-family: var(--px);
  font-size: 8px;
  letter-spacing: 1.3px;
}
.scroll-cue {
  color: var(--ice);
  text-decoration: none;
  font-size: 7px;
  letter-spacing: 1.4px;
  animation: px-blink 2.4s steps(2) infinite;
}
.scroll-cue:hover {
  color: var(--gold);
}
dialog {
  width: min(400px, 90%);
  border: 2px solid #947589;
  background: #1a1524;
  color: #f9ebdf;
  padding: 24px;
  box-shadow: 6px 6px 0 #000000a6;
}
dialog .overline {
  font-family: var(--px);
}
dialog::backdrop {
  background: #070711c9;
}
dialog p {
  color: #ccc0d1;
  font-family: var(--mono);
  font-size: 21px;
  line-height: 1.2;
}
dialog .pink {
  width: 100%;
}

/* Responsive layout and motion */
@media (max-width: 700px) {
  .wrap {
    --header-height: clamp(44px, 7svh, 54px);
    --strip-height: clamp(24px, 3.6svh, 30px);
    --status-height: clamp(26px, 3.8svh, 34px);
  }
  .brand {
    font-size: 15px;
    gap: 5px;
  }
  .brand small {
    display: none;
  }
  .tools {
    gap: 13px;
  }
  .help {
    font-size: 0;
    gap: 0;
  }
  .sound {
    font-size: 10px;
  }
  .strip {
    gap: 8px;
    padding: 0 12px;
    font-size: 6px;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }
  .stage-label {
    gap: 5px;
  }
  .daily-edition {
    letter-spacing: 0.04em;
  }
  .dock {
    padding-inline: 12px;
  }
  .primary {
    width: min(300px, 90%);
  }
  #answerForm {
    gap: 6px;
  }
  .pink {
    padding: 0 10px;
    letter-spacing: 1px;
    font-size: 9px;
  }
  .primary {
    font-size: 12px;
  }
  .stat strong {
    font-size: 12px;
  }
  .stat {
    min-width: 54px;
    padding: 5px;
  }
  .hud {
    width: 92%;
  }
  .site-header {
    grid-template-columns: auto 1fr;
    padding: 0 12px;
  }
  .stage-meta {
    display: none;
  }
  .stage-status {
    padding: 0 12px;
    font-size: 9px;
    letter-spacing: 0.6px;
  }
  .scroll-cue {
    display: none;
  }
  .recap-row {
    grid-template-columns: 20px minmax(0, 1fr) 52px 46px;
    gap: 5px;
    padding: 3px 6px;
  }
}
@media (max-width: 390px) {
  body:not([data-game]) .sound {
    font-size: 0;
    gap: 0;
  }
}
@media (max-height: 400px) {
  .wrap {
    --status-height: 24px;
  }
}
@container (max-aspect-ratio: 1 / 1) {
  .marquee {
    top: 15%;
  }
  .card {
    top: calc(var(--header-height) + clamp(52px, 12cqh, 88px));
    width: 90%;
  }
}
@container (max-height: 240px) {
  .stat,
  .meter {
    padding-block: 4px;
  }
  .stat strong {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.15;
  }
  .card {
    top: 48px;
    padding: 6px 10px;
  }
  .feedback {
    top: max(22%, 48px);
  }
  .card h2,
  .result h2 {
    font-size: 20px;
    margin: 4px 0;
  }
  .hint {
    padding-top: 4px;
  }
  .result {
    padding: 10px 12px;
  }
  .total {
    font-size: clamp(26px, 14cqh, 36px);
  }
  .recap div {
    padding-block: 4px;
  }
}
@keyframes px-blink {
  50% {
    opacity: 0.35;
  }
}
@keyframes px-cta {
  50% {
    box-shadow:
      0 0 0 3px #3a2a0a,
      4px 4px 0 3px #000000b3,
      0 0 28px #ffd24a8c;
  }
}
@keyframes px-glitch {
  0%,
  93%,
  100% {
    transform: translate(0);
  }
  94% {
    transform: translate(-3px, 1px);
  }
  96% {
    transform: translate(3px, -1px);
  }
  98% {
    transform: translate(-1px, 0);
  }
}
@keyframes px-pop {
  from {
    transform: scale(1.6);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Daily Encore and guide links */
.encore {
  width: min(1320px, calc(100% - 2 * clamp(14px, 2.5vw, 32px)));
  margin: 24px auto 0;
  padding: 22px clamp(14px, 4vw, 48px);
  background: #12111e;
  border-radius: 8px;
}
.encore .count {
  margin: 0 0 14px;
  font: bold 11px/1.6 var(--font-arcade);
  letter-spacing: 0.13em;
  text-align: center;
  color: #c4b4cf;
}
.count time {
  color: #ffd182;
  white-space: nowrap;
}
.encore p {
  margin: 5px 0;
  color: #e5dce5;
  line-height: 1.6;
}
.encore strong {
  color: #ff92b2;
}
.encore .cue {
  color: #d4c5dc;
  font-size: 14px;
}
.notes {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: clamp(22px, 6vw, 88px);
  padding: 48px clamp(14px, 4vw, 55px) 60px;
}
.wrap .site-footer {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(14px, 4vw, 55px);
}
.links {
  align-self: start;
  padding: 6px 0;
  font: 14px/1.5 var(--font-arcade);
}
.links h2 {
  font-size: 17px;
  line-height: 1.12;
  margin: 0 0 10px;
  letter-spacing: 0;
}
.links a {
  display: block;
  padding: 12px 0;
}
.notes a:focus-visible {
  outline: 2px solid #ffd182;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .notes {
    display: flex;
    flex-direction: column;
    padding-top: 30px;
  }
  .links {
    width: 100%;
  }
  .encore .count {
    letter-spacing: 0.06em;
  }
}
