:root {
  --blue: #11305b;
  --blue-deep: #0b2141;
  --blue-ink: #07172f;
  --cream: #f2e8d5;
  --cream-2: #e6d8bf;
  --paper: #f7f0e2;
  --red: #d9352b;
  --red-bright: #e64539;
  --red-dark: #a9251d;
  --yellow: #f3b31d;
  --ink: #111014;
  --muted: #a9b6c9;
  --muted-strong: #c7d2df;
  --line: rgba(242, 232, 213, 0.26);
  --line-strong: rgba(242, 232, 213, 0.46);
  --line-dark: rgba(17, 16, 20, 0.24);
  --shadow-blue: 7px 7px 0 rgba(11, 33, 65, 0.88);
  --shadow-ink: 4px 4px 0 var(--ink);
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --font-display: "Dela Gothic One", Impact, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", "Consolas", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--blue);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 23, 47, 0.1), rgba(7, 23, 47, 0.38)),
    var(--blue);
}

.background::before {
  position: absolute;
  top: -18vw;
  left: -10vw;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  background: var(--red);
  content: "";
  opacity: 0.96;
  pointer-events: none;
}

.background::after {
  position: absolute;
  right: -7vw;
  bottom: -14vw;
  width: 36vw;
  height: 36vw;
  border: 8vw solid var(--yellow);
  border-radius: 50%;
  content: "";
  opacity: 0.94;
  pointer-events: none;
}

.app-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-updated {
  position: absolute;
  top: 6px;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(242, 232, 213, 0.6);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.site-updated-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #75c97c;
  box-shadow: 0 0 0 2px rgba(117, 201, 124, 0.16);
}

.site-updated time {
  color: rgba(243, 179, 29, 0.8);
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 20px;
  border-bottom: 2px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}

.brand-mark {
  display: block;
  width: 72px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(3px 3px 0 rgba(17, 16, 20, 0.55));
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(242, 232, 213, 0.4);
  border-radius: var(--radius-md);
  background: var(--blue-deep);
  color: var(--cream);
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}

.icon-btn:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.icon-btn[aria-pressed="false"] {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.1s,
    color 0.18s,
    transform 0.1s;
}

.btn-primary {
  border-color: var(--ink);
  background: var(--red);
  box-shadow: var(--shadow-ink);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--red-bright);
}

.btn-primary:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}

.btn-ghost {
  border-color: rgba(242, 232, 213, 0.44);
  background: transparent;
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink);
}

.btn-small {
  padding: 8px 12px;
  font-size: 9px;
}

.btn-large {
  padding: 15px 24px;
  font-size: 11px;
}

.btn-wide {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  box-shadow: none;
  transform: none;
}

.btn.is-armed {
  border-color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
}

.play-button:disabled,
.icon-btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.input-wrap input:disabled {
  opacity: 0.6;
}

.screens {
  flex: 1;
}

.site-footer {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  padding: 16px 8px 2px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  border-bottom: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.16s,
    color 0.16s;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  border-bottom-color: currentColor;
  color: var(--cream);
}

.screen {
  display: none;
  animation: screenIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.screen.is-active {
  display: block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow .icon {
  width: 14px;
  height: 14px;
}

body.has-modal {
  overflow: hidden;
}

body[data-screen="home"] .site-header {
  display: none;
}

body[data-screen="home"] .app-shell {
  padding-top: 0;
  padding-bottom: 14px;
}

body[data-screen="home"] .screens {
  display: flex;
  flex-direction: column;
}

body[data-screen="home"] .screen.is-active {
  display: flex;
  flex: 1;
}

body[data-screen="home"] .landing {
  flex: 1;
  min-height: 0;
}

.ad-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  transition:
    background 0.16s,
    box-shadow 0.1s,
    transform 0.1s;
}

.ad-banner:hover {
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.ad-banner:active {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.ad-banner-left {
  grid-area: left;
  justify-self: start;
}

.ad-banner-right {
  grid-area: right;
  justify-self: end;
}

.ad-banner-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.ad-banner-title {
  color: var(--red-dark);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.ad-banner-price {
  display: inline-flex;
  padding: 2px 7px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-xs);
  background: var(--yellow);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.ad-banner-icon {
  align-self: flex-end;
  width: 24px;
  height: 24px;
  margin-top: auto;
  color: var(--red-dark);
}

.landing {
  display: grid;
  grid-template-areas: "left main right";
  grid-template-columns: clamp(160px, 22vw, 250px) minmax(0, 1fr) clamp(160px, 22vw, 250px);
  align-items: center;
  gap: 28px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px 0;
  text-align: center;
}

.landing-main {
  display: flex;
  flex-direction: column;
  grid-area: main;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 20px 0;
}

.landing-logo {
  display: block;
  width: min(440px, 82vw, 100%);
  margin: 0 auto;
  line-height: 0;
  text-shadow: none;
}

.landing-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(5px 5px 0 rgba(11, 33, 65, 0.55));
}

.landing-tagline {
  margin: 20px 0 0;
  color: #b9c5d5;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(300px, 100%);
  gap: 10px;
  margin-top: 36px;
}

.landing-actions .btn {
  width: 100%;
}

.btn-settings {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 2px auto 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  transition:
    background 0.18s,
    box-shadow 0.1s,
    transform 0.1s;
}

.btn-settings:hover {
  background: var(--yellow);
}

.btn-settings:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}

.btn-settings .icon {
  width: 22px;
  height: 22px;
}

.daily-teaser {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(360px, 100%);
  margin-top: 26px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--cream);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  text-align: left;
  transition:
    background 0.16s,
    border-color 0.16s;
}

.daily-teaser:hover {
  background: var(--paper);
}

.daily-teaser:active {
  background: var(--cream-2);
}

.daily-teaser-flame {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 54px;
  padding: 6px 9px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
}

.daily-teaser-flame .icon {
  width: 17px;
  height: 17px;
  color: var(--red);
}

.daily-teaser-flame.is-empty {
  background: var(--cream-2);
  box-shadow: none;
  color: #6b7280;
}

.daily-teaser-flame.is-empty .icon {
  color: #9aa1ab;
}

.daily-teaser-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.daily-teaser-kicker {
  color: var(--red-dark);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.daily-teaser-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.daily-teaser-countdown {
  color: #4a515c;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.daily-teaser-arrow {
  flex: 0 0 auto;
  color: var(--red-dark);
}

.daily-teaser.is-done .daily-teaser-kicker {
  color: #6b7280;
}

.daily-teaser + .landing-actions {
  margin-top: 18px;
}

.modal {
  width: min(540px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 3px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--cream);
  box-shadow: 10px 10px 0 rgba(11, 33, 65, 0.9);
  color: var(--ink);
}

.modal::backdrop {
  background: rgba(7, 23, 47, 0.78);
}

.modal-inner {
  padding: 26px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  color: var(--ink);
}

.modal-close:hover {
  background: var(--yellow);
}

.modal h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.how-list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: how;
  text-align: left;
}

.how-list li {
  position: relative;
  padding: 12px 12px 12px 46px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: #4f5b6b;
  font-size: 12.5px;
  line-height: 1.55;
  counter-increment: how;
}

.how-list li::before {
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  content: counter(how, decimal-leading-zero);
}

.how-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.settings-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
}

.settings-hint {
  display: block;
  margin-top: 4px;
  color: #4f5b6b;
  font-size: 12px;
  line-height: 1.35;
}

.volume-row-settings {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 0;
}

.modal .btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.modal .btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 78px);
  padding: 52px 0 62px;
}

h1 {
  margin: 22px 0 22px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 rgba(11, 33, 65, 0.72);
}

.gradient-text {
  background: none;
  color: var(--yellow);
}

.hero-lead {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-rules {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  color: #b9c5d5;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-rules strong {
  color: var(--yellow);
  font-weight: 700;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  transform: rotate(45deg);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.visual-glow {
  display: none;
}

.visual-card {
  position: relative;
  width: min(410px, 100%);
  padding: 34px 22px 22px;
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: 10px 10px 0 rgba(11, 33, 65, 0.85);
  color: var(--ink);
}

.visual-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 12px;
  border-bottom: 3px solid var(--ink);
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 14px,
    var(--yellow) 14px 28px,
    var(--blue) 28px 42px
  );
  content: "";
}

.visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.visual-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.visual-demo {
  padding: 4px 8px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.visual-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 96px;
  margin: 6px 0 16px;
}

.visual-wave span {
  width: 5px;
  height: var(--h);
  background: var(--blue);
  animation: wavePulse 1.4s ease-in-out infinite alternate;
}

.visual-wave span:nth-child(2n) {
  animation-delay: -0.25s;
}

.visual-wave span:nth-child(3n) {
  background: var(--red);
  animation-delay: -0.5s;
}

.visual-wave span:nth-child(4n) {
  background: var(--yellow);
}

.visual-name {
  color: rgba(17, 16, 20, 0.2);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
}

.visual-meta {
  margin-top: 6px;
  color: #5b6573;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.visual-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.visual-chips span {
  padding: 6px 8px;
  border: 2px solid var(--ink);
  background: var(--cream-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.visual-chips span:nth-child(2) {
  background: var(--yellow);
}

.visual-chips span:nth-child(3) {
  background: var(--blue);
  color: var(--cream);
}

.visual-score {
  position: absolute;
  top: 106px;
  right: -18px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
  transform: rotate(3deg);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  margin: 34px 0 20px;
}

.section-head h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.section-head > p {
  max-width: 380px;
  margin: 0;
  color: #b9c5d5;
  font-size: 12.5px;
  line-height: 1.65;
}

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

.mode-grid-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
  margin: 0 auto;
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  overflow: hidden;
  width: 100%;
  padding: 28px;
  border: 3px solid var(--ink);
  background: var(--cream);
  box-shadow: 8px 8px 0 rgba(11, 33, 65, 0.88);
  color: var(--ink);
  text-align: left;
  transition:
    background 0.18s,
    box-shadow 0.18s;
}

.mode-card:hover {
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--red);
}

.mode-card:disabled,
.mode-card.is-locked {
  cursor: not-allowed;
  filter: grayscale(0.5);
  opacity: 0.55;
}

.mode-card:disabled:hover,
.mode-card.is-locked:hover {
  background: var(--cream);
  box-shadow: 8px 8px 0 rgba(11, 33, 65, 0.88);
}

.mode-card::after,
.mode-glow {
  display: none;
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 2px solid var(--ink);
  background: var(--red);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--cream);
}

.mode-kicker {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mode-title {
  margin: 5px 0 8px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.mode-desc {
  max-width: 430px;
  color: #4f5b6b;
  font-size: 13px;
  line-height: 1.65;
}

.mode-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 2px dashed var(--line-dark);
  color: #5b6573;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mode-meta strong,
.mode-best strong {
  color: var(--ink);
  font-weight: 700;
}

.mode-best {
  margin-left: auto;
}

.mode-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 700;
}

.mode-play .icon {
  transition: transform 0.18s;
}

.mode-card:hover .mode-play .icon {
  transform: translateX(3px);
}

.how-head {
  margin-top: 58px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.how-card {
  position: relative;
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: 5px 5px 0 var(--blue-deep);
  color: var(--ink);
}

.how-number {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.how-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
}

.how-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.how-card p {
  margin: 0;
  color: #556171;
  font-size: 12.5px;
  line-height: 1.65;
}

.rule-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 20px;
  padding: 20px 22px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
}

.rule-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--ink);
}

.rule-banner strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.rule-banner p {
  margin: 0;
  color: #3c321c;
  font-size: 12.5px;
  line-height: 1.6;
}

code {
  padding: 1px 5px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.game-shell {
  padding: 10px 0 0;
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: 7px 7px 0 rgba(11, 33, 65, 0.88);
  color: var(--ink);
}

.game-topbar .btn-ghost {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.game-topbar .btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.game-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--blue-deep);
  color: var(--muted-strong);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-pill strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

.stat-muted {
  color: var(--muted);
}

.stat-score {
  background: var(--ink);
}

.stat-score strong {
  color: var(--yellow);
}

.lives {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.life {
  color: var(--red);
  filter: drop-shadow(2px 2px 0 rgba(17, 16, 20, 0.9));
  transition:
    color 0.3s,
    opacity 0.3s,
    transform 0.3s;
}

.life .icon {
  width: 22px;
  height: 22px;
}

.life.is-empty {
  color: rgba(17, 16, 20, 0.17);
  filter: none;
}

.life.is-lost {
  animation: heartLost 0.7s ease both;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 18px;
}

.audio-card,
.answer-card {
  position: relative;
  padding: 24px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: 7px 7px 0 rgba(11, 33, 65, 0.85);
  color: var(--ink);
}

.audio-card {
  overflow: hidden;
}

.audio-head {
  margin-bottom: 20px;
}

.audio-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.player {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-button {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--cream);
  transition:
    background 0.18s,
    box-shadow 0.1s,
    transform 0.1s;
}

.play-button:hover {
  background: var(--red-bright);
}

.play-button:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(3px, 3px);
}

.play-button .play-icon {
  width: 28px;
  height: 28px;
}

.play-button.is-playing .play-icon {
  width: 24px;
  height: 24px;
}

.play-ripple {
  position: absolute;
  inset: -1px;
  border: 2px solid var(--red);
  border-radius: 50%;
  animation: ripple 2.4s ease-out infinite;
}

.player-main {
  flex: 1;
  min-width: 0;
}

.progress {
  position: relative;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: rgba(17, 16, 20, 0.14);
  cursor: pointer;
  outline: none;
  touch-action: none;
}

.progress:focus-visible {
  box-shadow: 0 0 0 3px rgba(243, 179, 29, 0.55);
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: var(--radius-pill);
  background: var(--red);
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.time-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: #4f5b6b;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.time-sep {
  opacity: 0.5;
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.volume-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #4f5b6b;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.volume-label .icon {
  width: 16px;
  height: 16px;
}

.volume-slider {
  flex: 1;
  min-width: 0;
  height: 26px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.volume-slider::-webkit-slider-runnable-track {
  box-sizing: border-box;
  height: 6px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: linear-gradient(
    to right,
    var(--red) 0 var(--volume-pct, 50%),
    rgba(17, 16, 20, 0.16) var(--volume-pct, 50%) 100%
  );
}

.volume-slider::-webkit-slider-thumb {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  appearance: none;
  background: var(--yellow);
}

.volume-slider::-moz-range-track {
  box-sizing: border-box;
  height: 6px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: rgba(17, 16, 20, 0.16);
}

.volume-slider::-moz-range-progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--red);
}

.volume-slider::-moz-range-thumb {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}

.volume-value {
  flex: 0 0 46px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.icon-btn-ghost {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  color: var(--ink);
}

.icon-btn-ghost:hover {
  background: var(--yellow);
}

.duration-meter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed var(--line-dark);
}

.duration-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  color: #4f5b6b;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.duration-label .icon {
  width: 14px;
  height: 14px;
  color: var(--red);
}

.duration-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 5px 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  color: #6b7280;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.55;
}

.duration-step.is-unlocked {
  background: var(--cream);
  color: var(--ink);
  opacity: 0.82;
}

.duration-step.is-active {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  opacity: 1;
}

.duration-step.is-new {
  animation: unlockPop 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.audio-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 2px solid var(--red);
  border-radius: var(--radius-md);
  background: #f6d8d2;
  color: var(--ink);
  font-size: 12px;
}

.audio-error .icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--red);
}

.audio-error strong {
  display: block;
  margin-bottom: 2px;
}

.audio-error p {
  margin: 0;
  color: #6d2b23;
  line-height: 1.5;
}

.audio-error .btn {
  flex: 0 0 auto;
  margin-left: auto;
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.audio-error .btn:hover {
  background: var(--ink);
  color: var(--cream);
}

.stat-daily {
  background: var(--red);
  color: var(--cream);
}

.stat-daily .icon {
  width: 15px;
  height: 15px;
  align-self: center;
  color: var(--yellow);
}

.stat-daily strong {
  color: var(--yellow);
}

.daily-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed var(--line-dark);
  color: #4f5b6b;
  font-size: 12px;
  line-height: 1.55;
}

.daily-note .icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--red);
}

.daily-note p {
  margin: 0;
}

.daily-hint {
  margin: -8px 0 16px;
  color: #5b6573;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.daily-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px 11px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  transition:
    background 0.16s,
    border-color 0.16s,
    box-shadow 0.1s,
    transform 0.1s;
}

.daily-choice:hover:not(:disabled) {
  background: var(--yellow);
}

.daily-choice:active:not(:disabled) {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(1px, 1px);
}

.daily-choice:disabled {
  cursor: default;
}

.daily-choice:disabled:not(.is-correct):not(.is-wrong) {
  opacity: 0.55;
}

.choice-key {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xs);
  background: var(--cream-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.choice-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.choice-name {
  overflow-wrap: break-word;
}

.choice-work {
  color: #5b6573;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-transform: uppercase;
}

.daily-choice.is-correct .choice-work,
.daily-choice.is-wrong .choice-work {
  color: currentColor;
  opacity: 0.72;
}

.choice-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.choice-mark .icon {
  display: none;
  width: 18px;
  height: 18px;
}

.daily-choice.is-correct {
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
}

.daily-choice.is-correct .choice-check {
  display: block;
}

.daily-choice.is-correct .choice-key {
  background: var(--ink);
  color: var(--yellow);
}

.daily-choice.is-wrong {
  border-color: var(--red);
  background: #f6d8d2;
  color: #6d2b23;
}

.daily-choice.is-wrong .choice-cross {
  display: block;
  color: var(--red);
}

.daily-choice.is-wrong .choice-key {
  border-color: var(--ink);
  background: var(--red);
  color: var(--cream);
}

.answer-head h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}

.input-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 4px 4px 0 var(--yellow);
}

.input-icon {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  color: #6b7280;
}

.input-wrap input {
  flex: 1;
  min-width: 0;
  padding: 11px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  outline: none;
}

.input-wrap input::placeholder {
  color: #7b8491;
}

.input-wrap input.is-error {
  animation: shake 0.4s;
}

.btn-submit {
  padding: 11px 15px;
  font-size: 10px;
  box-shadow: 3px 3px 0 var(--ink);
}

.feedback {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--cream-2);
  color: var(--ink);
  transition:
    background 0.2s,
    border-color 0.2s;
}

.feedback-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--cream);
}

.feedback-body strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

.feedback-body p {
  margin: 0;
  color: #4f5b6b;
  font-size: 12.5px;
  line-height: 1.55;
}

.feedback.is-error {
  border-color: var(--ink);
  background: #f6d8d2;
}

.feedback.is-error .feedback-icon {
  background: var(--red);
  color: var(--cream);
}

.feedback.is-error .feedback-body strong {
  color: var(--red-dark);
}

.feedback.is-success {
  border-color: var(--ink);
  background: var(--yellow);
}

.feedback.is-success .feedback-icon {
  background: var(--ink);
  color: var(--yellow);
}

.feedback.is-success .feedback-body strong {
  color: var(--ink);
}

#screen-result,
#screen-over {
  padding: 24px 0 0;
}

.result-card {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
  padding: 44px 36px 38px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--cream);
  box-shadow: 12px 12px 0 rgba(11, 33, 65, 0.88);
  color: var(--ink);
  text-align: center;
}

.result-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 12px;
  border-bottom: 3px solid var(--ink);
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0 14px,
    var(--yellow) 14px 28px,
    var(--blue) 28px 42px
  );
  content: "";
}

.result-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--cream);
}

.result-icon .icon {
  width: 34px;
  height: 34px;
}

.result-card.is-victory .result-icon {
  background: var(--yellow);
  color: var(--ink);
}

.result-card h2 {
  max-width: 560px;
  margin: 14px auto 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5.4vw, 50px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.04;
  overflow-wrap: break-word;
}

.result-voice {
  margin: 0 0 8px;
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.result-clip {
  margin: 8px 0 0;
  color: #5b6573;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.result-points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 22px 0 4px;
  padding: 8px 18px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.result-card.is-victory {
  box-shadow: 12px 12px 0 var(--yellow);
}

.result-card.is-victory .result-points {
  background: var(--yellow);
}

.daily-result-card.is-win {
  box-shadow: 12px 12px 0 var(--yellow);
}

.daily-result-card.is-loss {
  box-shadow: 12px 12px 0 var(--red);
}

.daily-result-card.is-win .result-icon {
  background: var(--yellow);
  color: var(--ink);
}

.daily-result-card.is-loss .result-icon {
  background: var(--red);
  color: var(--cream);
}

.daily-result-card.is-loss .eyebrow {
  background: var(--red);
  color: var(--cream);
}

.daily-result-card.is-win.is-fresh .result-confetti span {
  animation: confettiFall var(--dur) ease-in var(--delay) forwards;
}

.daily-flame-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  padding: 8px 16px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.daily-flame-row .icon {
  width: 24px;
  height: 24px;
  color: var(--red);
}

.daily-flame-row.is-cold {
  background: var(--cream-2);
  box-shadow: 3px 3px 0 var(--ink);
  color: #6b7280;
}

.daily-flame-row.is-cold .icon {
  color: #9aa1ab;
}

.daily-flame-row.is-new {
  animation: flamePop 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.daily-flame-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.daily-result-note {
  max-width: 430px;
  margin: 14px auto 0;
  color: #4f5b6b;
  font-size: 13px;
  line-height: 1.55;
}

.daily-countdown {
  margin: 18px 0 0;
}

.assoc {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 2px dashed var(--line-dark);
}

.assoc-title {
  margin: 0 0 10px;
  color: #5b6573;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.chips span {
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.chips span:nth-child(2n) {
  background: var(--cream-2);
}

.result-next {
  margin-top: 24px;
}

.countdown-note {
  margin: 10px 0 8px;
  color: #5b6573;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.countdown {
  height: 6px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: rgba(17, 16, 20, 0.14);
}

.countdown span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--red);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.result-card .btn-ghost,
.over-card .btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.result-card .btn-ghost:hover,
.over-card .btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.result-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.result-confetti span {
  position: absolute;
  top: -10px;
  left: var(--x);
  width: 8px;
  height: 14px;
  background: var(--color);
  opacity: 0;
  transform: rotate(var(--rot));
}

.result-card.is-success .result-confetti span,
.result-card.is-victory .result-confetti span {
  animation: confettiFall var(--dur) ease-in var(--delay) forwards;
}

.over-card {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  overflow: hidden;
  padding: 44px 36px 38px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--cream);
  box-shadow: 12px 12px 0 var(--red);
  color: var(--ink);
  text-align: center;
}

.over-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 12px;
  border-bottom: 3px solid var(--ink);
  background: var(--red);
  content: "";
}

.over-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--cream);
}

.over-icon .icon {
  width: 30px;
  height: 30px;
}

.over-card h2 {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.over-sub {
  max-width: 470px;
  margin: 0 auto 16px;
  color: #4f5b6b;
  font-size: 13.5px;
  line-height: 1.6;
}

.over-answer {
  margin: 0 0 20px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 600;
}

.final-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 24px;
}

.final-score-label {
  color: #5b6573;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.final-score-value {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.final-score-unit {
  color: #6b7280;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.over-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0;
  border: 0;
}

.over-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.over-stat-label {
  color: #5b6573;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.over-stat-value {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.record-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.over-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

@media (max-width: 960px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 44px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .visual-card {
    width: min(460px, 100%);
  }

  .game-grid,
  .mode-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 28px, 1180px);
    padding-top: 16px;
  }

  .site-updated {
    top: 1px;
    font-size: 7.5px;
  }

  .site-footer {
    background: var(--blue);
  }

  .landing {
    grid-template-areas:
      "main main"
      "left right";
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 20px 0 18px;
  }

  .landing-main {
    padding: 24px 0 10px;
  }

  .daily-teaser {
    margin-top: 22px;
    padding: 9px 10px;
  }

  .daily-choices {
    grid-template-columns: 1fr;
  }

  .daily-choice {
    min-height: 52px;
  }

  .daily-result-card.is-win {
    box-shadow: 7px 7px 0 var(--yellow);
  }

  .daily-result-card.is-loss {
    box-shadow: 7px 7px 0 var(--red);
  }

  .ad-banner {
    max-width: 240px;
    padding: 16px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .ad-banner-left {
    justify-self: center;
  }

  .ad-banner-right {
    justify-self: center;
  }

  .ad-banner-title {
    font-size: 18px;
  }

  .ad-banner-price {
    font-size: 9px;
  }

  .ad-banner-icon {
    width: 20px;
    height: 20px;
  }

  .brand-mark {
    width: 60px;
  }

  .brand-name {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(38px, 9.4vw, 58px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .game-topbar {
    gap: 10px;
    padding: 10px;
  }

  .game-stats {
    order: 3;
    width: 100%;
  }

  .lives {
    margin-left: auto;
  }

  .audio-card,
  .answer-card {
    padding: 18px;
  }

  .player {
    flex-wrap: wrap;
  }

  .play-button {
    width: 62px;
    height: 62px;
  }

  .player-main {
    flex: 1 1 100%;
    order: 3;
  }

  .icon-btn-ghost {
    order: 2;
    margin-left: auto;
  }

  .input-wrap {
    flex-wrap: wrap;
  }

  .input-wrap input {
    flex: 1 1 100%;
  }

  .btn-submit {
    width: 100%;
  }

  .result-card,
  .over-card {
    padding: 34px 20px 28px;
    box-shadow: 7px 7px 0 rgba(11, 33, 65, 0.88);
  }

  .over-card {
    box-shadow: 7px 7px 0 var(--red);
  }

  .result-card.is-victory {
    box-shadow: 7px 7px 0 var(--yellow);
  }

  .over-stats {
    gap: 6px;
  }

  .over-stat {
    padding: 10px 5px;
  }

  .over-stat-value {
    font-size: 19px;
  }

  .final-score-value {
    font-size: 46px;
  }

  .visual-score {
    top: 104px;
    right: 6px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-bottom: 16px;
  }

  .ad-banner {
    padding: 12px;
  }

  .ad-banner-title {
    font-size: 15px;
  }

  .ad-banner-price {
    font-size: 9px;
  }

  .ad-banner-icon {
    width: 18px;
    height: 18px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 54px;
  }

  .brand-name {
    font-size: 14px;
  }

  .header-actions {
    gap: 7px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .header-actions .btn {
    padding: 8px 10px;
    font-size: 8px;
  }

  .home-hero {
    gap: 34px;
    padding: 38px 0 48px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 48px);
    text-shadow: 4px 4px 0 rgba(11, 33, 65, 0.72);
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-rules {
    gap: 9px;
    font-size: 8px;
  }

  .visual-card {
    padding: 32px 16px 18px;
    box-shadow: 7px 7px 0 rgba(11, 33, 65, 0.85);
  }

  .visual-name {
    font-size: 36px;
  }

  .visual-wave {
    height: 82px;
  }

  .visual-score {
    top: 100px;
    right: 4px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .mode-card {
    min-height: 0;
    padding: 22px;
    box-shadow: 6px 6px 0 rgba(11, 33, 65, 0.88);
  }

  .mode-footer {
    gap: 8px;
  }

  .mode-best {
    margin-left: 0;
  }

  .mode-play {
    margin-left: auto;
  }

  .how-card {
    padding: 20px;
  }

  .rule-banner {
    padding: 16px;
  }

  .stat-pill {
    padding: 6px 8px;
    font-size: 8px;
  }

  .stat-pill strong {
    font-size: 13px;
  }

  .life .icon {
    width: 19px;
    height: 19px;
  }

  .audio-card,
  .answer-card {
    padding: 16px;
    box-shadow: 6px 6px 0 rgba(11, 33, 65, 0.85);
  }

  .audio-head h2 {
    font-size: 23px;
  }

  .progress-thumb {
    width: 16px;
    height: 16px;
  }

  .result-card h2 {
    font-size: 32px;
  }

  .result-voice {
    font-size: 13.5px;
  }

  .result-card,
  .over-card {
    padding: 30px 15px 24px;
  }

  .over-stats {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .over-stat {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    text-align: left;
  }

  .over-stat-value {
    font-size: 18px;
  }

  .result-actions .btn,
  .over-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .landing {
    padding: 20px 0 18px;
  }

  .landing-main {
    padding: 22px 0 6px;
  }

  .landing-logo {
    width: min(320px, 84vw);
  }

  .landing-tagline {
    margin-top: 16px;
    font-size: 8px;
  }

  .daily-teaser {
    gap: 9px;
    margin-top: 18px;
    padding: 8px 9px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .daily-teaser-flame {
    min-width: 48px;
    padding: 5px 7px;
    font-size: 15px;
  }

  .daily-teaser-flame .icon {
    width: 15px;
    height: 15px;
  }

  .daily-teaser-title {
    font-size: 13.5px;
  }

  .daily-teaser-kicker {
    font-size: 8px;
  }

  .daily-flame-row {
    gap: 6px;
    padding: 7px 12px;
    font-size: 21px;
  }

  .daily-flame-row .icon {
    width: 21px;
    height: 21px;
  }

  .landing-actions {
    gap: 9px;
    margin-top: 30px;
  }

  .landing-actions .btn-large {
    padding: 12px 15px;
    font-size: 10px;
  }

  .btn-settings {
    width: 46px;
    height: 46px;
  }

  .modal-inner {
    padding: 20px;
  }

  .settings-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .settings-row .btn {
    width: 100%;
  }
}

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

  .result-confetti {
    display: none;
  }
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes unlockPop {
  0% {
    transform: scale(0.85);
  }

  45% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes flamePop {
  0% {
    transform: scale(0.82) rotate(-3deg);
  }

  50% {
    transform: scale(1.12) rotate(2deg);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@keyframes ripple {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes heartLost {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.35) rotate(-8deg);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-5px);
  }

  40% {
    transform: translateX(5px);
  }

  60% {
    transform: translateX(-3px);
  }

  80% {
    transform: translateX(3px);
  }
}

@keyframes confettiFall {
  0% {
    opacity: 0;
    transform: translateY(-10px) rotate(var(--rot));
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(560px) rotate(calc(var(--rot) + 360deg));
  }
}

@media (max-width: 359px) {
  .daily-teaser-title {
    font-size: 12.5px;
  }
}
