:root {
  --listen-ink: #132722;
  --listen-paper: #f4efe4;
  --listen-lime: #dfff4f;
  --listen-coral: #f36f4e;
  --listen-muted: #6f7771;
  --listen-line: rgba(19, 39, 34, 0.18);
  --listen-white: #fffdf7;
  --listen-green: #217d51;
}

* { box-sizing: border-box; }

html { background: var(--listen-paper); }

body {
  margin: 0;
  color: var(--listen-ink);
  background:
    radial-gradient(circle at 7% 92%, rgba(243, 111, 78, 0.11), transparent 24rem),
    var(--listen-paper);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input { font: inherit; }

button { color: inherit; }

.hidden { display: none !important; }

#nav-placeholder:empty,
#footer-placeholder:empty { display: none; }

.listen-app {
  position: relative;
  width: 100%;
  min-height: 760px;
  overflow: hidden;
}

.screen { min-height: 760px; }

.brand-row,
.game-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--listen-line);
}

.brand-row { justify-content: space-between; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--listen-paper);
  background: var(--listen-ink);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.brand-mark.small {
  width: 39px;
  height: 39px;
  font-size: 14px;
}

.edition {
  color: var(--listen-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.intro-screen { position: relative; }

.sun-disc {
  position: absolute;
  top: 95px;
  right: -90px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: var(--listen-lime);
  opacity: 0.86;
}

.intro-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 90px;
  align-items: center;
  padding: 58px 0 105px;
}

.eyebrow,
.mini-label,
.result-kicker {
  margin: 0 0 18px;
  color: var(--listen-coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.intro-copy h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 8.1vw, 118px);
  line-height: 0.86;
  letter-spacing: -0.07em;
}

.intro-lede {
  max-width: 590px;
  margin: 38px 0 30px;
  color: #42534e;
  font-size: 18px;
  line-height: 1.65;
}

.primary {
  min-height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 3px;
  color: white;
  background: var(--listen-ink);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--listen-coral);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.primary:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--listen-coral);
}

.primary:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--listen-coral);
}

.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.start-button { min-width: 260px; }

.rules-panel {
  position: relative;
  padding: 34px;
  background: var(--listen-white);
  border: 1px solid var(--listen-ink);
  box-shadow: 11px 11px 0 rgba(19, 39, 34, 0.95);
}

.mini-label { color: var(--listen-muted); }

.rules-panel ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-panel li {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  min-height: 78px;
  border-top: 1px solid var(--listen-line);
}

.rules-panel li b {
  color: var(--listen-coral);
  font-family: Georgia, serif;
  font-size: 21px;
}

.rules-panel li span {
  color: #53605c;
  font-size: 14px;
  line-height: 1.45;
}

.rules-panel li strong {
  color: var(--listen-ink);
  font-size: 16px;
}

.bonus-note {
  margin: 18px -34px -34px;
  padding: 19px 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--listen-lime);
  font-size: 13px;
  font-weight: 800;
}

.bonus-note span {
  font-family: Georgia, serif;
  font-size: 26px;
}

.intro-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 54px;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  gap: 52px;
  align-items: center;
  border-top: 1px solid var(--listen-line);
  color: var(--listen-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro-footer span::before {
  content: "●";
  margin-right: 9px;
  color: var(--listen-coral);
  font-size: 7px;
}

.compat-warning {
  color: #a33a24;
  font-size: 13px;
  max-width: 500px;
}

.game-header { justify-content: space-between; }

.status-cluster {
  display: flex;
  align-items: center;
  gap: 42px;
}

.stat { display: grid; gap: 3px; }

.stat > span {
  color: var(--listen-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.stat strong {
  font-family: Georgia, serif;
  font-size: 22px;
}

.lives div {
  display: flex;
  gap: 6px;
  color: #cbc7bc;
  font-size: 20px;
}

.lives .alive { color: var(--listen-coral); }

.progress-track {
  height: 4px;
  background: rgba(19, 39, 34, 0.09);
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--listen-coral);
  transition: width 0.35s ease;
}

.game-stage {
  width: min(880px, calc(100% - 48px));
  margin: 0 auto;
  padding: 45px 0 70px;
}

.round-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--listen-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.prompt-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 46px 0 30px;
}

.prompt-row .eyebrow { margin-bottom: 9px; }

.prompt-row h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.streak-pill {
  padding: 10px 14px;
  border: 1px solid var(--listen-ink);
  background: var(--listen-lime);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.audio-strip {
  min-height: 94px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  color: var(--listen-paper);
  background: var(--listen-ink);
}

.listen-button,
.slow-toggle {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.listen-button {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  font-weight: 800;
}

.listen-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.speaker {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--listen-ink);
  background: var(--listen-lime);
  font-size: 15px;
  letter-spacing: -2px;
}

.listen-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.listen-dots span {
  width: 9px;
  height: 9px;
  border: 1px solid #78857e;
  border-radius: 50%;
}

.listen-dots span.used {
  border-color: var(--listen-coral);
  background: var(--listen-coral);
}

.listen-dots small {
  margin-left: 4px;
  color: #aab3af;
}

.slow-toggle {
  padding: 10px 13px;
  border: 1px solid #60706a;
  border-radius: 100px;
  font-size: 11px;
}

.slow-toggle span { font-weight: 900; }

.slow-toggle.active {
  color: var(--listen-ink);
  border-color: var(--listen-lime);
  background: var(--listen-lime);
}

.answer-form { margin-top: 30px; }

.answer-form > label {
  display: block;
  margin-bottom: 10px;
  color: var(--listen-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.input-wrap { position: relative; }

.input-wrap input {
  width: 100%;
  height: 82px;
  padding: 0 64px 0 22px;
  border: 1px solid var(--listen-ink);
  border-radius: 0;
  outline: none;
  color: var(--listen-ink);
  background: var(--listen-white);
  font-family: Georgia, serif;
  font-size: clamp(23px, 4vw, 34px);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.input-wrap input:focus { box-shadow: 0 0 0 4px rgba(223, 255, 79, 0.8); }

.input-wrap input::placeholder { color: #aaa99f; }

.feedback-correct input {
  border-color: var(--listen-green);
  background: #f0fff3;
}

.feedback-wrong input {
  border-color: var(--listen-coral);
  background: #fff4ef;
}

.feedback-revealed input {
  color: var(--listen-muted);
  background: #e9e6dd;
}

.answer-mark {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  font-weight: 900;
}

.correct-mark { color: var(--listen-green); }
.wrong-mark { color: var(--listen-coral); }
.revealed-mark { color: var(--listen-muted); }

.helper-row {
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.character-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.character-bar button {
  min-width: 35px;
  height: 35px;
  border: 1px solid var(--listen-line);
  background: transparent;
  font-family: Georgia, serif;
  font-size: 17px;
  cursor: pointer;
}

.character-bar button:hover {
  border-color: var(--listen-ink);
  background: var(--listen-lime);
}

.shortcut {
  color: var(--listen-muted);
  font-size: 10px;
}

.correction-panel {
  margin: 2px 0 28px;
  padding: 22px 24px;
  border: 1px solid var(--listen-ink);
  background: var(--listen-white);
  box-shadow: 6px 6px 0 var(--listen-lime);
}

.result-kicker {
  margin-bottom: 9px;
  color: var(--listen-muted);
}

.correct-spanish {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.25;
}

.correct-english {
  margin: 8px 0 0;
  color: #485852;
  font-size: 17px;
  line-height: 1.5;
}

.accent-note {
  margin: 15px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--listen-line);
  color: var(--listen-muted);
  font-size: 12px;
}

.action-row {
  padding-top: 24px;
  border-top: 1px solid var(--listen-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.feedback-copy {
  margin: 0;
  color: var(--listen-muted);
  font-size: 13px;
  line-height: 1.45;
}

.feedback-copy.correct {
  color: var(--listen-green);
  font-weight: 800;
}

.feedback-copy.wrong {
  color: #a63c24;
  font-weight: 800;
}

.feedback-copy.revealed {
  color: var(--listen-muted);
  font-weight: 800;
}

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

.check-button,
.next-button { min-width: 190px; }

.reveal-button {
  border: 0;
  border-bottom: 1px solid var(--listen-ink);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 1px;
}

.result-screen {
  min-height: 760px;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--listen-ink);
}

.result-card {
  width: min(570px, 100%);
  padding: 55px;
  text-align: center;
  background: var(--listen-paper);
  border: 1px solid var(--listen-lime);
  box-shadow: 14px 14px 0 var(--listen-lime);
}

.result-card .eyebrow { margin-bottom: 12px; }

.result-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 25px;
  display: grid;
  place-items: center;
  color: var(--listen-paper);
  background: var(--listen-coral);
  border-radius: 50%;
  font-size: 32px;
}

.result-card h1 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: 54px;
  letter-spacing: -0.05em;
}

.result-card > p:not(.eyebrow) { color: var(--listen-muted); }

.final-score {
  margin: 32px 0 18px;
  padding: 25px 0;
  border-block: 1px solid var(--listen-line);
  display: grid;
  gap: 5px;
}

.final-score span {
  color: var(--listen-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.final-score strong {
  font-family: Georgia, serif;
  font-size: 52px;
}

.result-stats {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--listen-muted);
  font-size: 13px;
}

.result-stats b { color: var(--listen-ink); }

.result-card .primary { min-width: 220px; }

.related-links {
  width: min(1000px, calc(100% - 48px));
  margin: 38px auto 64px;
}

.related-links h2 {
  margin: 0 0 18px;
  font-family: Georgia, serif;
  font-size: 30px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.related-grid a {
  min-height: 74px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--listen-line);
  color: var(--listen-ink);
  background: var(--listen-white);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.related-grid a:hover { background: var(--listen-lime); }

@media (max-width: 980px) and (min-width: 761px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .listen-app,
  .screen { min-height: 700px; }

  .brand-row,
  .game-header,
  .intro-grid,
  .game-stage {
    width: min(100% - 28px, 680px);
  }

  .brand-row,
  .game-header { min-height: 72px; }
  .edition { display: none; }

  .sun-disc {
    width: 360px;
    height: 360px;
    right: -220px;
    top: 70px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 52px;
    padding-top: 48px;
    padding-bottom: 120px;
  }

  .intro-copy h1 { font-size: clamp(54px, 17vw, 88px); }
  .rules-panel { box-shadow: 7px 7px 0 var(--listen-ink); }

  .intro-footer {
    gap: 15px;
    flex-wrap: wrap;
  }

  .status-cluster { gap: 18px; }
  .brand-lockup > span:last-child { display: none; }
  .game-stage { padding-top: 30px; }
  .prompt-row { margin: 35px 0 23px; }

  .audio-strip {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .listen-dots { display: none; }
  .speaker { width: 48px; height: 48px; }
  .input-wrap input { height: 72px; }

  .helper-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 0 15px;
    gap: 10px;
  }

  .character-bar {
    width: 100%;
    justify-content: space-between;
  }

  .character-bar button { min-width: 36px; }

  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .check-button,
  .next-button { flex: 1; }

  .result-card {
    padding: 38px 24px;
    box-shadow: 8px 8px 0 var(--listen-lime);
  }

  .result-card h1 { font-size: 43px; }

  .related-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
