:root {
  color-scheme: dark;
  --bg: #060a07;
  --bg-deep: #030604;
  --panel: rgba(11, 20, 14, 0.82);
  --panel-strong: #0b1510;
  --line: rgba(196, 255, 119, 0.13);
  --line-strong: rgba(196, 255, 119, 0.28);
  --text: #f3f8e9;
  --muted: #8ca092;
  --muted-strong: #b5c5b8;
  --lime: #c7ff68;
  --lime-bright: #e2ffa8;
  --mint: #6fffd0;
  --amber: #ffd166;
  --coral: #ff786f;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", serif;
  --font-ui: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --shadow-panel: 0 30px 80px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-deep);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-ui);
  background:
    radial-gradient(1200px 800px at 12% -10%, rgba(83, 148, 74, 0.2), transparent 60%),
    radial-gradient(900px 700px at 100% 20%, rgba(20, 102, 84, 0.16), transparent 60%),
    linear-gradient(180deg, #07100a 0%, var(--bg) 45%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(196, 255, 119, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 255, 119, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  color: #071008;
  background: var(--lime);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.2;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb--lime {
  top: 8%;
  left: -8rem;
  width: 28rem;
  height: 28rem;
  background: #89d23d;
}

.orb--mint {
  right: -9rem;
  bottom: 8%;
  width: 30rem;
  height: 30rem;
  background: #24b99c;
  animation-delay: -7s;
}

.orb--amber {
  top: 38%;
  right: 28%;
  width: 16rem;
  height: 16rem;
  background: #d59a32;
  opacity: 0.08;
  animation-delay: -12s;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.page {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 24px;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  outline: none;
}

.brand:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(199, 255, 104, 0.3);
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--lime);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(199, 255, 104, 0.06);
  box-shadow: 0 0 24px rgba(199, 255, 104, 0.08) inset;
}

.brand__mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.brand__mark circle {
  fill: currentColor;
  stroke: none;
}

.brand__text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.brand__blink {
  color: var(--lime);
  animation: blink 1.2s steps(1) infinite;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 16, 11, 0.56);
}

.status-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(140, 160, 146, 0.08);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.status-pill[data-state="running"] {
  color: var(--lime-bright);
  border-color: rgba(199, 255, 104, 0.28);
}

.status-pill[data-state="running"] .status-pill__dot {
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(199, 255, 104, 0.12), 0 0 12px rgba(199, 255, 104, 0.8);
  animation: status-pulse 1.2s ease-in-out infinite;
}

.status-pill[data-state="paused"] .status-pill__dot {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.1);
}

.status-pill[data-state="over"] .status-pill__dot {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 120, 111, 0.1);
}

.text-link {
  position: relative;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 160ms ease;
}

.text-link::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--lime);
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  flex: 1;
  padding: 10px 0 50px;
}

.intro {
  min-width: 0;
  padding-left: clamp(0px, 2vw, 18px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.eyebrow__index {
  color: var(--lime);
}

.eyebrow__rule {
  width: 42px;
  height: 1px;
  background: var(--line-strong);
}

.title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.25rem, 7.8vw, 7.1rem);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.title > span:first-child {
  color: var(--text);
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.title__sub {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1;
  text-shadow: 0 0 36px rgba(199, 255, 104, 0.3);
}

.title__cursor {
  display: inline-block;
  margin-left: 0.12em;
  font-size: 0.56em;
  line-height: 0.7;
  color: var(--lime);
  transform: translateY(-0.05em);
  animation: blink 1.2s steps(1) infinite;
}

.lede {
  max-width: 28rem;
  margin: 28px 0 0;
  color: var(--muted-strong);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.9;
  letter-spacing: 0.015em;
}

.scoreboard {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.85fr;
  gap: 10px;
  margin: 34px 0 0;
}

.score-card {
  position: relative;
  min-width: 0;
  min-height: 96px;
  padding: 15px 14px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(20, 35, 24, 0.7), rgba(7, 14, 9, 0.6));
}

.score-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  content: "";
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  border-radius: 0 13px 0 0;
  opacity: 0.5;
}

.score-card--score {
  border-color: rgba(199, 255, 104, 0.24);
  background: linear-gradient(160deg, rgba(51, 81, 31, 0.46), rgba(8, 16, 10, 0.7));
}

.score-card dt {
  margin: 0 0 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.score-card dd {
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.score-card--score dd {
  color: var(--lime);
  text-shadow: 0 0 22px rgba(199, 255, 104, 0.22);
}

.score-card dd small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 0.55em;
}

.score-card__bar {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(199, 255, 104, 0.1);
}

.score-card__bar::after {
  display: block;
  width: var(--score-progress, 12%);
  height: 100%;
  content: "";
  background: var(--lime);
  box-shadow: 0 0 8px rgba(199, 255, 104, 0.7);
  transition: width 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bump {
  animation: bump 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hints {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hints__label {
  margin: 0 0 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.hints__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
}

.key-group {
  display: inline-flex;
  gap: 3px;
}

kbd {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  place-items: center;
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
}

kbd.key-wide {
  min-width: 44px;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.hints__or,
.hints__desc {
  color: #64776b;
}

.hints__or {
  margin: 0 1px;
}

.hints__desc {
  margin-left: 4px;
}

.game-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.game-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 29, 20, 0.9), rgba(7, 13, 9, 0.94));
  box-shadow: var(--shadow-panel);
}

.game-shell::before {
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0.6;
}

.game-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--line);
}

.game-topline__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
}

.game-topline__label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(199, 255, 104, 0.8);
}

.game-topline__meta {
  color: #667a6b;
  white-space: nowrap;
}

.stage {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 14px;
  overflow: hidden;
  border: 1px solid rgba(199, 255, 104, 0.13);
  border-radius: 13px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(38, 66, 41, 0.28), transparent 68%),
    #07110b;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3) inset,
    0 20px 40px rgba(0, 0, 0, 0.25) inset;
  isolation: isolate;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}

#gameCanvas:focus-visible {
  box-shadow: 0 0 0 2px var(--lime), 0 0 0 7px rgba(199, 255, 104, 0.13);
}

.stage__scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.28) 3px,
    rgba(0, 0, 0, 0.28) 4px
  );
  mix-blend-mode: multiply;
}

.stage__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(2, 7, 4, 0.55) 100%);
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(3, 8, 5, 0.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.overlay[data-state="running"] {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.overlay__card {
  width: min(100%, 320px);
  padding: 26px 24px 23px;
  text-align: center;
  border: 1px solid rgba(199, 255, 104, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(22, 41, 26, 0.94), rgba(7, 15, 10, 0.97)),
    radial-gradient(circle at top, rgba(199, 255, 104, 0.08), transparent 55%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(199, 255, 104, 0.04) inset;
  animation: card-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.overlay[data-state="paused"] .overlay__card {
  border-color: rgba(255, 209, 102, 0.22);
}

.overlay[data-state="over"] .overlay__card,
.overlay[data-state="won"] .overlay__card {
  border-color: rgba(255, 120, 111, 0.22);
}

.overlay__kicker {
  margin: 0 0 11px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.overlay[data-state="paused"] .overlay__kicker {
  color: var(--amber);
}

.overlay[data-state="over"] .overlay__kicker,
.overlay[data-state="won"] .overlay__kicker {
  color: var(--coral);
}

.overlay__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.overlay__text {
  margin: 12px auto 0;
  max-width: 230px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.overlay__result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 7px 12px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.06);
}

.overlay__result[hidden] {
  display: none !important;
}

.cta {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  padding: 0 12px 0 18px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #0a1208;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 0;
  border-radius: 9px;
  background: var(--lime);
  box-shadow: 0 0 26px rgba(199, 255, 104, 0.18);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.cta:hover {
  background: var(--lime-bright);
  box-shadow: 0 0 32px rgba(199, 255, 104, 0.3);
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(0);
}

.cta:focus-visible {
  outline: 3px solid rgba(199, 255, 104, 0.36);
  outline-offset: 3px;
}

.cta__key {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid rgba(8, 16, 7, 0.22);
  border-radius: 5px;
  opacity: 0.7;
}

.overlay__tip {
  margin: 12px 0 0;
  color: #64776b;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px 10px 18px;
  border-top: 1px solid var(--line);
}

.game-footer__status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #718576;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.signal i {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 1px;
  background: var(--lime);
  opacity: 0.75;
  animation: signal 1.3s ease-in-out infinite;
}

.signal i:nth-child(2) {
  height: 7px;
  animation-delay: 0.15s;
}

.signal i:nth-child(3) {
  height: 10px;
  animation-delay: 0.3s;
}

.game-footer__actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tool-button {
  display: inline-flex;
  min-height: 32px;
  padding: 0 9px;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.tool-button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: currentColor;
}

.tool-button:hover:not(:disabled) {
  color: var(--lime);
  border-color: var(--line);
  background: rgba(199, 255, 104, 0.05);
}

.tool-button:focus-visible {
  outline: 2px solid rgba(199, 255, 104, 0.35);
  outline-offset: 2px;
}

.tool-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.tool-button--icon-only {
  width: 32px;
  padding: 0;
  justify-content: center;
}

.dpad {
  position: relative;
  display: none;
  grid-template-columns: repeat(3, 54px);
  grid-template-rows: repeat(2, 54px);
  gap: 7px;
  justify-content: center;
  margin-top: 18px;
}

.dpad__button {
  display: grid;
  place-items: center;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(10, 20, 13, 0.7);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: color 120ms ease, background 120ms ease, transform 120ms ease;
}

.dpad__button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dpad__button:active {
  color: var(--lime);
  background: rgba(199, 255, 104, 0.1);
  transform: scale(0.95);
}

.dpad__button:focus-visible {
  outline: 2px solid rgba(199, 255, 104, 0.35);
  outline-offset: 2px;
}

.dpad__button--up {
  grid-column: 2;
  grid-row: 1;
}

.dpad__button--left {
  grid-column: 1;
  grid-row: 2;
}

.dpad__button--right {
  grid-column: 3;
  grid-row: 2;
}

.dpad__button--down {
  grid-column: 2;
  grid-row: 2;
}

.dpad__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.dpad__label {
  position: absolute;
  right: 0;
  bottom: -14px;
  left: 0;
  color: #52655a;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  text-align: center;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  color: #4f6256;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(199, 255, 104, 0.07);
}

.page-footer p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
}

.page-footer__signal {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px rgba(199, 255, 104, 0.7);
}

.noscript {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  padding: 14px 18px;
  color: var(--text);
  font-size: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-strong);
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(390px, 1.2fr);
    gap: 42px;
  }

  .page {
    width: min(100% - 40px, 1020px);
  }

  .title {
    font-size: clamp(4rem, 8.5vw, 5.8rem);
  }
}

@media (max-width: 860px) {
  .page {
    width: min(100% - 36px, 620px);
    padding-top: 20px;
  }

  .topbar {
    padding-bottom: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 38px;
  }

  .intro {
    padding-left: 0;
  }

  .eyebrow {
    margin-bottom: 15px;
  }

  .title {
    display: block;
    font-size: clamp(3.4rem, 14vw, 5.4rem);
  }

  .title__sub {
    display: inline-block;
    margin-left: 0.22em;
    font-size: clamp(1.1rem, 4.4vw, 1.8rem);
    vertical-align: 0.38em;
  }

  .lede {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.75;
  }

  .scoreboard {
    margin-top: 22px;
  }

  .score-card {
    min-height: 82px;
    padding: 12px;
  }

  .score-card dt {
    margin-bottom: 9px;
  }

  .hints {
    display: none;
  }

  .dpad {
    display: grid;
    margin-bottom: 8px;
  }

  .game-footer {
    min-height: 54px;
  }

  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .page {
    width: calc(100% - 24px);
    padding: 14px 0 18px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand__mark svg {
    width: 20px;
    height: 20px;
  }

  .brand__text {
    font-size: 11px;
  }

  .topbar__actions {
    gap: 10px;
  }

  .status-pill {
    padding: 0 9px;
    font-size: 8px;
  }

  .text-link {
    font-size: 8px;
  }

  .hero {
    gap: 21px;
    padding-top: 4px;
  }

  .scoreboard {
    gap: 6px;
  }

  .score-card {
    min-height: 74px;
    padding: 10px;
    border-radius: 10px;
  }

  .score-card::after {
    width: 19px;
    height: 19px;
  }

  .score-card dt {
    font-size: 7px;
    letter-spacing: 0.06em;
  }

  .score-card dd {
    font-size: 1.35rem;
  }

  .game-shell {
    border-radius: 18px;
  }

  .game-topline {
    min-height: 38px;
    padding: 0 14px;
    font-size: 7px;
  }

  .stage {
    margin: 9px;
    border-radius: 11px;
  }

  .overlay {
    padding: 16px;
  }

  .overlay__card {
    padding: 21px 18px 18px;
  }

  .overlay__text {
    font-size: 11px;
  }

  .game-footer {
    min-height: 50px;
    padding: 7px 10px 7px 13px;
  }

  .game-footer__status {
    font-size: 7px;
  }

  .tool-button {
    min-height: 30px;
    padding: 0 7px;
    font-size: 9px;
  }

  .tool-button--icon-only {
    width: 30px;
  }

  .dpad {
    grid-template-columns: repeat(3, 48px);
    grid-template-rows: repeat(2, 48px);
    gap: 6px;
  }

  .page-footer {
    padding-top: 12px;
    font-size: 7px;
  }
}

@media (hover: none), (pointer: coarse) {
  .dpad {
    display: grid;
  }
}

@media (min-width: 861px) and (hover: none) {
  .dpad {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes drift {
  from {
    transform: translate3d(-2%, -2%, 0) scale(0.96);
  }
  to {
    transform: translate3d(4%, 5%, 0) scale(1.06);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes signal {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12);
    color: var(--lime-bright);
  }
  100% {
    transform: scale(1);
  }
}
