/* Font: aktiv-grotesk via Adobe Fonts / Typekit */

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Elimina el delay de 300ms en Safari iOS y el flash azul al tocar */
button, input, select, textarea, a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

:root {
  --bg:      #e3e3e3;
  --surface: #ffffff;
  --surface2: #d4d4d4;
  --accent:  #e5ff5a;
  --accent2: #c3c3c3;
  --accent3: #e5ff5a;
  --text:    #000000;
  --muted:   #666666;
  --border:  #ffffff;
}

body { background: var(--bg); color: var(--text); font-family: aktiv-grotesk, Helvetica, Arial, sans-serif; min-height: 100dvh; }

.screen { display: none; min-height: 100dvh; flex-direction: column; align-items: center; justify-content: center; padding: 40px 32px; }
.screen.active { display: flex; }

/* ── COUNTRY SELECTOR ── */
#screen-country {
  background: var(--bg);
  color: var(--text);
  align-items: flex-start;
  justify-content: space-between;
  padding: 0;
  overflow: hidden;
}
.country-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: max(28px, env(safe-area-inset-top)) clamp(24px, 5vw, 48px) 0;
}
.country-kicker,
.country-overline,
.country-footer {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.country-kicker { padding-top: 12px; }
.country-content {
  width: min(100%, 1080px);
  padding: clamp(24px, 6vh, 72px) clamp(24px, 8vw, 104px);
}
.country-overline { margin-bottom: 22px; }
.country-title {
  max-width: 670px;
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 800;
  line-height: 0.92;
  text-wrap: balance;
}
.country-intro {
  max-width: 420px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
  margin-top: 20px;
}
.country-list {
  display: grid;
  gap: 10px;
  margin-top: clamp(28px, 5vh, 56px);
}
.country-choice {
  width: 100%;
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #000;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 14px 18px;
  text-align: left;
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  transition: transform 0.15s ease-out, background 0.15s ease-out;
}
.country-choice:hover { background: #000; color: #fff; transform: translateY(-2px); }
.country-choice:active { transform: scale(0.99); }
.country-choice:disabled {
  border-color: #a8a8a8;
  color: #8b8b8b;
  cursor: not-allowed;
  opacity: 0.68;
}
.country-choice:disabled:hover { background: transparent; transform: none; }
.country-choice.country-choice-completed:disabled {
  border-color: #000;
  color: var(--text);
  cursor: default;
  opacity: 1;
}
.country-choice.country-choice-completed:disabled:hover { background: transparent; color: var(--text); }
.country-flag {
  width: 72px;
  height: 48px;
  display: flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.14);
}
.flag-pe span { flex: 1; }
.flag-pe span:nth-child(1), .flag-pe span:nth-child(3) { background: #d91023; }
.flag-pe span:nth-child(2) { background: #fff; }
.flag-co { flex-direction: column; }
.flag-co span:nth-child(1) { background: #f7d117; flex: 2; }
.flag-co span:nth-child(2) { background: #173f96; flex: 1; }
.flag-co span:nth-child(3) { background: #cf242d; flex: 1; }
.flag-cl { flex-direction: column; }
.flag-cl-top { height: 50%; display: flex; }
.flag-cl-blue {
  width: 32%;
  background: #063f87;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.flag-cl-white { flex: 1; background: #fff; }
.flag-cl-red { height: 50%; background: #d42a32; }
.country-choice-copy { display: flex; flex-direction: column; gap: 4px; }
.country-choice-copy strong { font-size: 22px; line-height: 1; }
.country-choice-copy small { color: currentColor; font-size: 14px; }
.country-choice-arrow, .country-choice-state { margin-left: auto; font-size: 20px; font-weight: 700; }
.country-choice-state { font-size: 13px; text-transform: uppercase; }
.country-footer {
  width: 100%;
  padding: 0 clamp(24px, 5vw, 48px) max(24px, env(safe-area-inset-bottom));
}

/* ── COUNTRY ACCESS DIALOG ── */
.country-access-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.72);
  overscroll-behavior: contain;
}
.country-access-overlay.active { display: grid; }
.country-access-dialog {
  width: min(100%, 520px);
  padding: clamp(28px, 5vw, 48px);
  background: var(--bg);
  border: 1px solid #000;
  box-shadow: 12px 12px 0 #000;
  animation: countryAccessEnter 0.24s ease-out both;
}
.country-access-loader {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border: 4px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: countryAccessSpin 0.8s linear infinite;
}
.country-access-loader[hidden],
.country-access-close[hidden] { display: none; }
.country-access-title {
  max-width: 430px;
  color: #000;
  font-size: clamp(32px, 7vw, 52px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.94;
  text-wrap: balance;
}
.country-access-close {
  width: 100%;
  margin-top: 34px;
  padding: 17px 20px;
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.15s ease-out, color 0.15s ease-out;
}
.country-access-close:hover { background: var(--accent); color: #000; }

@keyframes countryAccessEnter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes countryAccessSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .country-access-dialog { animation: none; }
  .country-access-loader { animation: none; }
}

/* ── WAIT SCREEN ── */
#screen-wait {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0;
  gap: 0;
}

/* Canvas de ondas */
#wave-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#screen-wait > *:not(canvas):not(.wait-speaker-right) { position: relative; z-index: 1; }
.wait-speaker-right { z-index: 1; }

/* Logo pequeño top-left */
.wait-header {
  width: 100%;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 48px) 0;
}
.wait-logo-small {
  height: clamp(36px, 4.5vw, 48px);
  width: auto;
  display: block;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

#screen-success.active .success-footer .btn-siguiente {
  animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}

#screen-wait.active .wait-headline {
  animation: fadeInLeft 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
#screen-wait.active .wait-sub {
  animation: fadeInLeft 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.18s both;
}

/* Título y subtítulo left-aligned */
.wait-copy {
  width: 100%;
  padding: clamp(16px, 3vh, 28px) clamp(24px, 5vw, 48px) clamp(12px, 2vh, 20px);
}
.wait-headline {
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  font-size: clamp(32px, 7.5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  color: #000000;
  margin-bottom: clamp(10px, 1.5vh, 16px);
}
.wait-sub {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  line-height: 1.5;
  max-width: 480px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Zona botón — el parlante va directo en screen-wait */
.wait-image-zone {
  width: 100%;
  flex: 1;
  position: relative;
  z-index: 2;
}
/* Botón en el 30% inferior de la zona */
.wait-image-zone .btn-start {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.instance-status {
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: min(86%, 430px);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  transform: translateX(-50%);
}
.instance-status:empty { display: none; }
.instance-status.is-error { color: #a31717; }
/* Imagen parlante wait: absolute en screen-wait, libre para crecer */
.wait-speaker-right {
  position: absolute;
  right: 8%;
  bottom: clamp(50px, 8vh, 90px);
  height: clamp(380px, 60vh, 640px);
  width: auto;
  object-fit: contain;
  object-position: right bottom;
  z-index: 1;
  pointer-events: none;
}

/* Imagen producto genérica — posición derecha con overflow */
.screen-product-img {
  position: absolute;
  right: -12%;
  top: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: right center;
  pointer-events: none;
}

/* Registro: aparece desde el 50% horizontal, top en "Sonos Play" */
.reg-product-img {
  left: 50%;
  right: auto;
  top: clamp(141px, 18vh, 224px);
  height: clamp(468px, 78vh, 806px);
  width: auto;
  object-position: left top;
  z-index: 0;
}

/* Game: imagen detrás del contenido — base */
.game-product-img {
  top: 53%;
  transform: translateY(-50%);
  left: 55%;
  right: auto;
  height: 60%;
  width: auto;
  z-index: 0;
}

/* Pregunta 2 */
.game-product-img.q-img-1 {
  top: auto;
  bottom: 0;
  left: 58%;
  transform: none;
  height: 74%;
}

/* Pregunta 3 */
.game-product-img.q-img-2 {
  top: auto;
  bottom: 0;
  left: 58%;
  transform: none;
  height: 74%;
}

/* Reglas bottom */
.rules-row {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  padding: clamp(14px, 2vh, 22px) clamp(24px, 5vw, 48px);
}
.rule-chip {
  background: transparent;
  border: none;
  padding: 8px 24px;
  text-align: center;
  flex: 0 0 auto;
}
.rule-chip .num { font-family: aktiv-grotesk, Helvetica, Arial, sans-serif; font-size: 22px; font-weight: 800; color: #000000; }
.rule-chip .label { font-size: 14px; color: var(--muted); margin-top: 2px; }

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(100,110,60,0.5); }
  100% { box-shadow: 0 0 0 24px rgba(100,110,60,0); }
}

/* Logo mediano — results */
.screen-logo {
  display: block;
  height: 36px;
  width: auto;
  margin: 0 auto 16px;
}

.btn-start {
  position: relative;
  z-index: 2;
  width: auto;
  background: #c3c9a6;
  color: #000000;
  border: 2px solid #ffffff;
  border-radius: 50px;
  padding: 18px clamp(40px, 8vw, 72px);
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: transform 0.15s;
  animation: pulse-ring 2.5s ease-out infinite;
  align-self: center;
}
.btn-start:active { transform: scale(0.97); }
.wait-image-zone .btn-start:active { transform: translateX(-50%) scale(0.97); }
.btn-start:disabled { cursor: not-allowed; opacity: 0.55; animation: none; }

/* ── GAME SCREEN ── */
#screen-game {
  background: #e0e0e0;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  gap: 0;
  position: relative;
  overflow: hidden;
}

/* Contenido del game sobre la imagen */
#screen-game .game-top,
#screen-game .game-content,
#screen-game .timer-wrap,
#screen-game .options-grid,
#screen-game .skip-row { position: relative; z-index: 1; }

#screen-game .game-top { z-index: 4; }

/* Preparación de audio: ocupa el juego sin fingir que el timer ya comenzó */
.audio-loading-skeleton {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(112px, 16vh, 150px) clamp(24px, 6vw, 72px) clamp(28px, 5vh, 56px);
  background: #e0e0e0;
}

.audio-loading-skeleton[hidden] { display: none; }

.audio-skeleton-layout {
  width: min(100%, 680px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vh, 30px);
}

.audio-skeleton-heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.audio-skeleton-line,
.audio-skeleton-option {
  position: relative;
  overflow: hidden;
  background: #cacaca;
}

.audio-skeleton-line::after,
.audio-skeleton-option::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 12%, rgba(255,255,255,0.72) 48%, transparent 84%);
  transform: translateX(-110%);
  animation: audioSkeletonSweep 1.65s ease-in-out infinite;
  will-change: transform;
}

.audio-skeleton-line {
  display: block;
  height: 14px;
  border-radius: 999px;
}

.audio-skeleton-line-title { width: min(72%, 410px); height: 20px; }
.audio-skeleton-line-subtitle { width: min(48%, 270px); }

.audio-skeleton-signal {
  position: relative;
  width: clamp(88px, 12vw, 116px);
  height: clamp(88px, 12vw, 116px);
  display: grid;
  place-items: center;
}

.audio-skeleton-orbit {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0,0,0,0.12);
  border-top-color: #e5ff5a;
  border-radius: 50%;
  animation: audioSkeletonOrbit 1.4s linear infinite;
  will-change: transform;
}

.audio-skeleton-core {
  width: 68%;
  height: 68%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.audio-skeleton-core i {
  width: 4px;
  height: 30%;
  border-radius: 999px;
  background: #e5ff5a;
  transform-origin: center;
  animation: audioSkeletonBar 0.8s ease-in-out infinite alternate;
}

.audio-skeleton-core i:nth-child(2) { height: 48%; animation-delay: -0.3s; }
.audio-skeleton-core i:nth-child(3) { height: 68%; animation-delay: -0.55s; }
.audio-skeleton-core i:nth-child(4) { height: 44%; animation-delay: -0.15s; }
.audio-skeleton-core i:nth-child(5) { height: 28%; animation-delay: -0.45s; }

.audio-skeleton-label {
  color: #000;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

.audio-skeleton-retry {
  min-height: 48px;
  padding: 12px 28px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.audio-skeleton-retry[hidden] { display: none; }

.audio-skeleton-retry:active { transform: scale(0.98); }
.audio-skeleton-retry:focus-visible { outline-color: #000; }

.audio-skeleton-retry:disabled {
  cursor: wait;
  opacity: 0.58;
}

.audio-skeleton-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vh, 16px);
}

.audio-skeleton-option {
  min-height: clamp(58px, 8vh, 72px);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border: 2px solid rgba(255,255,255,0.78);
  border-radius: 14px;
}

.audio-skeleton-option i {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255,255,255,0.58);
}

.audio-skeleton-option b {
  width: min(56%, 280px);
  height: 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
}

@keyframes audioSkeletonSweep {
  0%, 18% { transform: translateX(-110%); }
  72%, 100% { transform: translateX(110%); }
}

@keyframes audioSkeletonOrbit {
  to { transform: rotate(360deg); }
}

@keyframes audioSkeletonBar {
  from { transform: scaleY(0.45); opacity: 0.55; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .audio-skeleton-line::after,
  .audio-skeleton-option::after,
  .audio-skeleton-orbit,
  .audio-skeleton-core i {
    animation: none;
  }

  .audio-skeleton-orbit { border-color: #e5ff5a; }
}

/* Top: logo left + progress right */
.game-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 48px) 0;
}
.game-progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.progress-dots { display: flex; gap: 8px; }
.dot { width: 32px; height: 7px; border-radius: 4px; background: #ffffff; transition: background 0.3s; }
.dot.done { background: #c3c9a6; }
.dot.current { background: #c3c9a6; }
.song-label { font-size: 13px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }

/* Título left + bars right */
.game-content {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(24px, 5vh, 52px) clamp(24px, 5vw, 48px) 0;
}
.game-copy-col {
  flex: 1;
  min-width: 0;
}
.game-question {
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  font-size: clamp(30px, 6.5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  color: #000000;
  margin-bottom: clamp(8px, 1.2vh, 14px);
}
.game-hint {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  line-height: 1.5;
}
.game-bars-col {
  flex: 0 0 auto;
  padding-top: 6px;
}

/* Sound cover: solo barras, sin card */
.song-cover {
  width: 72px;
  height: 64px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
}
.song-cover.playing { border: none; }

/* Timer: número centrado dentro del círculo */
.timer-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 16vh, 160px) 0 clamp(12px, 2.5vh, 24px);
}
.timer-inner {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timer-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.timer-text {
  position: relative;
  z-index: 1;
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #000000;
  line-height: 1;
}

.song-card { width: 100%; max-width: 680px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; margin-bottom: 0; display: flex; align-items: center; gap: 24px; }
.song-cover { width: 80px; height: 80px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; overflow: hidden; }
.song-cover svg { width: 36px; height: 36px; fill: var(--muted); }
.song-cover.playing { border-color: var(--accent); }
.song-cover.playing svg { fill: var(--accent); }
.sound-bars { display: flex; align-items: flex-end; gap: 4px; height: 48px; }
.bar { width: 7px; background: #a3a3a3; border-radius: 3px; animation: none; }
.playing .bar { background: var(--accent); }
.bar.b1 { height: 40%; }
.bar.b2 { height: 70%; }
.bar.b3 { height: 100%; }
.bar.b4 { height: 55%; }
.bar.b5 { height: 30%; }
.playing .bar.b1 { animation: b-anim 0.6s ease-in-out infinite alternate; }
.playing .bar.b2 { animation: b-anim 0.8s ease-in-out 0.1s infinite alternate; }
.playing .bar.b3 { animation: b-anim 0.5s ease-in-out 0.2s infinite alternate; }
.playing .bar.b4 { animation: b-anim 0.7s ease-in-out 0.05s infinite alternate; }
.playing .bar.b5 { animation: b-anim 0.9s ease-in-out 0.15s infinite alternate; }
@keyframes b-anim { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }

.song-info { flex: 1; }
.song-label { font-size: 12px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; }
.song-question { font-family: aktiv-grotesk, Helvetica, Arial, sans-serif; font-size: 22px; font-weight: 700; line-height: 1.3; }
.song-hint { font-size: 18px; color: var(--muted); margin-top: 8px; }

.options-grid { width: 100%; display: flex; flex-direction: column; gap: 24px; padding: 0 clamp(24px, 5vw, 48px); margin-bottom: 0; }
.option-btn { background: var(--surface); border: 2px solid #ffffff; border-radius: 14px; padding: 22px 24px; cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s, transform 0.1s; display: flex; align-items: center; gap: 16px; }
.option-btn:hover { background: var(--surface2); }
.option-btn:active { transform: scale(0.99); }
.option-letter { width: 36px; height: 36px; border-radius: 8px; background: var(--surface2); border: 1px solid #ffffff; display: flex; align-items: center; justify-content: center; font-family: aktiv-grotesk, Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 700; color: #000000; flex-shrink: 0; }
.option-text { font-size: 18px; line-height: 1.4; color: var(--text); }
.option-author { font-size: 16px; color: var(--muted); margin-top: 3px; }

.option-btn.correct { border-color: #ffffff; background: #e5ff5a; }
.option-btn.correct .option-letter { background: rgba(0,0,0,0.12); color: #000000; border-color: rgba(0,0,0,0.1); }
.option-btn.wrong { border-color: var(--accent2); background: rgba(255,107,107,0.06); }
.option-btn.wrong { border-color: #ffffff; background: #c3c3c3; }
.option-btn.wrong .option-letter { background: rgba(0,0,0,0.1); color: #000000; border-color: rgba(0,0,0,0.08); }
.option-btn.reveal-correct { border-color: #ffffff; background: #e5ff5a; }
.option-btn.disabled { pointer-events: none; }

.skip-row { width: 100%; display: flex; justify-content: center; margin-top: auto; padding: 1vh clamp(24px, 5vw, 48px) 2vh; }
.btn-skip { background: transparent; border: 1px solid var(--border); border-radius: 10px; padding: 12px 32px; min-height: 44px; color: var(--muted); font-size: 14px; cursor: pointer; font-family: aktiv-grotesk, Helvetica, Arial, sans-serif; transition: border-color 0.15s, color 0.15s; }
.btn-skip:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.btn-skip:disabled { opacity: 0.3; pointer-events: none; }

/* ── RESULTS SCREEN ── */
#screen-results {
  background: #e4e4e4;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  gap: 0;
}

/* Título y subtítulo full-width */
.results-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(18px, 3vh, 32px) clamp(24px, 5vw, 48px) clamp(24px, 4vh, 40px);
}
#screen-results .wait-headline { font-size: clamp(32px, 6.5vw, 56px); }

/* 2 columnas: trofeo e imagen parten al mismo nivel */
.results-layout {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
}
.results-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 clamp(24px, 5vw, 48px) clamp(12px, 2vh, 20px);
  min-height: 0;
}

.results-stats { display: flex; flex-direction: column; gap: 0; }
/* Trofeo — más grande, alineado a la izquierda con el texto */
.results-trophy {
  display: block;
  height: clamp(80px, 11vh, 120px);
  width: auto;
  object-fit: contain;
  align-self: flex-start;
  margin-top: 0;
  margin-bottom: 8px;
}
.results-score-big {
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  font-size: clamp(60px, 10vw, 92px);
  font-weight: 800;
  line-height: 1;
  color: #000000;
}
.results-time-big {
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  font-size: clamp(52px, 8.5vw, 76px);
  font-weight: 800;
  line-height: 1.1;
  color: #000000;
}

/* Lista canciones */
.results-list {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vh, 28px);
  margin-top: clamp(52px, 7vh, 80px);
}
.recap-item {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeInRight 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: var(--item-delay, 0s);
}

/* Botón oculto hasta que el tiempo termine */
#screen-results .btn-siguiente {
  opacity: 0;
  pointer-events: none;
}
#screen-results .btn-siguiente.btn-visible {
  pointer-events: auto;
  animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}
.recap-check { width: clamp(36px, 5vw, 48px); height: clamp(36px, 5vw, 48px); flex-shrink: 0; }
.recap-wrong-icon {
  width: clamp(36px, 5vw, 48px);
  height: clamp(36px, 5vw, 48px);
  border-radius: 50%;
  background: #c3c3c3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.recap-texts { flex: 1; min-width: 0; }
.recap-song { font-size: clamp(15px, 2.2vw, 18px); font-weight: 700; color: #000; }
.recap-artist { font-size: clamp(14px, 1.8vw, 16px); color: var(--muted); margin-top: 2px; }

/* Imagen experiencia — llena toda la altura del layout */
.results-right {
  flex: 0 0 42%;
  max-width: 42%;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(12px, 2vw, 20px) clamp(16px, 2.5vh, 24px) 0;
}
.results-exp-img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* Botón Siguiente */
.btn-siguiente {
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  background: #c3c9a6;
  color: #000000;
  border: 2px solid #ffffff;
  border-radius: 50px;
  padding: clamp(16px, 2.5vh, 22px) clamp(40px, 7vw, 64px);
  cursor: pointer;
  letter-spacing: 0.3px;
  margin-top: clamp(24px, 4vh, 40px);
  align-self: flex-start;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.btn-siguiente:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.16); transform: translateY(-1px); }
.btn-siguiente:active { transform: scale(0.97); }
.btn-siguiente:disabled { opacity: 0.35; pointer-events: none; }

/* ── REGISTER SCREEN ── */
#screen-register {
  background: #c3c9a6;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  gap: 0;
  position: relative;
  overflow: hidden;
}
/* Contenido encima de la imagen */
#screen-register .wait-header,
#screen-register .wait-copy,
#screen-register .quiz-form,
#screen-register .reg-nav {
  position: relative;
  z-index: 1;
}
#screen-register .wait-copy {
  padding-bottom: clamp(24px, 5vh, 48px);
}

/* Formulario más estrecho y centrado */
#screen-register .quiz-form {
  width: clamp(280px, 72%, 480px);
  max-width: 480px;
  padding: 0;
  margin: 0 auto clamp(16px, 2vh, 24px);
}
#screen-register .form-input {
  border-radius: 50px;
}
.reg-nav {
  display: flex;
  justify-content: center;
  align-self: stretch;
  padding: clamp(16px, 2vh, 24px) 0;
}

/* ── DEV NAV — quitar antes de producción ── */
#dev-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none !important;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  z-index: 9999;
  flex-wrap: wrap;
}
.dev-nav-label {
  font-size: 10px;
  font-weight: 700;
  color: #ff4444;
  letter-spacing: 2px;
  padding-right: 4px;
  font-family: monospace;
}
#dev-nav button {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  color: #ffffff;
  font-size: 11px;
  font-family: monospace;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.15s;
}
#dev-nav button:hover { background: rgba(255,255,255,0.25); }

/* Imagen hero Sonos Roam */
.register-hero-img {
  width: 100%;
  max-width: 560px;
  margin-bottom: 24px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.roam-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.form-header { text-align: center; margin-bottom: 36px; }
.form-header-brand { font-family: aktiv-grotesk, Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.form-header-title { font-family: aktiv-grotesk, Helvetica, Arial, sans-serif; font-size: clamp(24px, 5vw, 36px); font-weight: 800; margin-bottom: 10px; }
.form-header-sub { font-size: 15px; color: var(--muted); }

.quiz-form { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 13px; font-weight: 500; letter-spacing: 0.5px; color: var(--muted); }
.form-input {
  background: #e3e3e3;
  border: 2px solid #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 16px;
  color: #000000;
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus { border-color: rgba(0,0,0,0.3); }
.form-input::placeholder { color: rgba(0,0,0,0.35); }

.btn-submit {
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  border-radius: 12px;
  padding: 18px;
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  letter-spacing: 0.5px;
}
.btn-submit:hover { box-shadow: 0 0 32px rgba(232,255,90,0.35); }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { opacity: 0.5; pointer-events: none; }

.btn-back { background: transparent; border: none; color: var(--muted); font-size: 14px; cursor: pointer; padding: 8px 16px; min-height: 44px; display: inline-flex; align-items: center; font-family: aktiv-grotesk, Helvetica, Arial, sans-serif; transition: color 0.2s; }
.btn-back:hover { color: var(--text); }

/* ── CHECKBOX + BASES ── */
.form-group-bases {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0;
}
.bases-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.4;
  min-height: 44px;
}
.bases-check-label input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.link-bases {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 16px;
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-bases-actions { display: flex; justify-content: flex-start; }
.btn-ver-bases {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 18px;
  color: var(--muted);
  font-size: 13px;
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ver-bases:hover { border-color: rgba(255,255,255,0.25); color: var(--text); }

/* ── TIEMPOS EN RESULTS ── */
.tiempos-section {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.tiempos-grid {
  display: flex;
  gap: 0;
  flex-direction: column;
  margin-bottom: 12px;
}
.tiempo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.tiempo-item:last-child { border-bottom: none; }
.tiempo-label { color: var(--muted); }
.tiempo-val { font-family: aktiv-grotesk, Helvetica, Arial, sans-serif; font-weight: 700; color: var(--accent); }
.tiempo-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  letter-spacing: 0.5px;
}

/* ── BASES OVERLAY ── */
.bases-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.bases-overlay.active { display: flex; }

.bases-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bases-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.bases-panel-title {
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.bases-close-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.bases-close-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }

.bases-panel-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.7;
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bases-instance-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bases-instance-content[hidden] { display: none; }
.legal-placeholder { font-weight: 700; }
.bases-panel-body p { margin: 0; }
.bases-panel-body strong { color: var(--text); }

.bases-panel .btn-finish {
  margin: 0 28px 24px;
  flex-shrink: 0;
}

/* ── LISTO SCREEN ── */
#screen-listo {
  background: #c3c9a6;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  gap: 0;
  transition: background 0.25s ease;
}
/* Título con triple espaciado desde el logo */
.listo-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(100px, 16vh, 160px) clamp(24px, 5vw, 48px) 0;
  gap: clamp(28px, 4.5vh, 52px);
}
.listo-title {
  font-size: clamp(32px, 6.5vw, 56px);
  text-align: center;
}
.listo-check-icon {
  width: clamp(72px, 11vw, 110px);
  height: clamp(72px, 11vw, 110px);
  object-fit: contain;
}

/* Pregunta + botón al 50% vertical */
.listo-bottom {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vh, 28px);
  padding: 0 clamp(24px, 5vw, 48px) clamp(32px, 5vh, 56px);
}
.listo-sub {
  max-width: 480px;
  text-align: center;
}

/* Botón estoy listo — negro con texto blanco */
#screen-listo .btn-start {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}
.listo-countdown {
  display: none;
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  font-size: clamp(80px, 20vw, 180px);
  font-weight: 800;
  color: #000;
  line-height: 1;
  align-self: center;
  width: 100%;
  text-align: center;
}

@keyframes countdownPop {
  0%   { transform: scale(1.45); opacity: 0.5; }
  60%  { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}
@keyframes screenFlash {
  0%   { opacity: 0.18; }
  100% { opacity: 0; }
}

#countdown-num.pop {
  animation: countdownPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
/* Destello de fondo en cada cambio */
#screen-listo.flash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
  animation: screenFlash 0.4s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

/* ── SUCCESS SCREEN ── */
#screen-success {
  background: var(--bg);
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  gap: 0;
  position: relative;
  overflow: hidden;
}

/* Imagen decorativa — tercio inferior con padding en 4 lados */
.success-img-wrap {
  width: 100%;
  padding: clamp(16px, 2.5vh, 28px) clamp(20px, 4vw, 40px) clamp(40px, 8vw, 80px);
  flex: 1;
  display: flex;
  align-items: flex-end;
}
.success-product-img {
  width: 100%;
  height: clamp(320px, 56vh, 560px);
  object-fit: cover;
  object-position: center 20%;
  border-radius: 20px;
  display: block;
  pointer-events: none;
}

/* Contenido centrado */
.success-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(12px, 2vh, 18px);
  padding: clamp(32px, 5vh, 56px) clamp(24px, 5vw, 48px) 0;
  width: 100%;
}

.success-check-icon {
  width: clamp(56px, 8vw, 80px);
  height: clamp(56px, 8vw, 80px);
  object-fit: contain;
}

.success-title {
  font-family: aktiv-grotesk, Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  color: #000;
}
.success-sub {
  font-size: clamp(18px, 2vw, 20px);
  color: var(--muted);
  max-width: 380px;
  line-height: 1.6;
}

/* Footer centrado */
.success-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.5vh, 16px);
  padding: clamp(20px, 3vh, 32px) clamp(24px, 5vw, 48px) 0;
}
.success-footer .btn-siguiente { align-self: center; }

.success-countdown-msg {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.success-countdown-msg span {
  font-weight: 700;
  color: #000;
}

/* ════════════════════════════════════════════════════════════
   TABLET OPTIMIZATION  –  768px+
   Landscape (1024×768) y Portrait (768×1024)
   ════════════════════════════════════════════════════════════ */

/* Wrappers transparentes en mobile */
/* game-body: flex-col con gap vh → separa song-card, timer y opciones */
.game-body {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3vh;
}
.game-left,
.game-right { display: contents; }

.results-body { display: contents; }

/* ── Tablet portrait (768px+) ────────────────────────────── */
@media (min-width: 768px) {
  .screen { padding: 48px 56px; }

  #screen-country { padding: 0; }
  .country-content { padding-top: clamp(52px, 9vh, 112px); }
  .country-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .country-choice {
    min-height: 230px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    padding: 22px;
  }
  .country-flag { width: 100%; height: 92px; }
  .country-choice-arrow, .country-choice-state { margin-left: 0; }

  /* Game: más ancho y cover más grande */
  .game-header              { max-width: 1000px; }
  .game-body                { max-width: 1000px; }
  .song-cover               { width: 110px; height: 110px; }
  .sound-bars               { height: 36px; }
  .bar                      { width: 6px; }
  .song-question            { font-size: 22px; }
  .dot                      { width: 48px; height: 10px; }
  .option-btn               { padding: 24px 28px; }
  .option-text              { font-size: 18px; }
  .option-author            { font-size: 15px; }
  .option-letter            { width: 40px; height: 40px; font-size: 15px; }
  .options-grid             { gap: 14px; }

  /* Results: tiempos y recap al mismo ancho */
  .tiempos-section          { max-width: 560px; }
  .answers-recap            { max-width: 560px; }
  .score-highlight          { font-size: 60px; }

  /* Wait: brand más grande */
  .wait-hero-logo           { max-width: 88vw; margin: -35px auto 0; }
  .rule-chip                { min-width: 150px; padding: 18px 28px; }
  .rule-chip .num           { font-size: 32px; }
  .btn-start                { padding: 26px 80px; font-size: 22px; }

  .quiz-form                { max-width: 540px; }
  .form-input               { padding: 18px 20px; font-size: 17px; }
}

@media (min-width: 768px) and (max-height: 820px) {
  .country-header { padding-top: 24px; }
  .country-content { padding-top: 34px; padding-bottom: 18px; }
  .country-title { font-size: clamp(46px, 7vw, 70px); }
  .country-intro { margin-top: 12px; }
  .country-list { margin-top: 28px; }
  .country-choice { min-height: 190px; }
  .country-flag { height: 72px; }
}

/* ── Tablet landscape (768–1366px landscape) ─────────────── */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {

  /* ── GAME SCREEN: 2 columnas ── */
  #screen-game {
    padding: 3vh 48px 3vh;
    gap: 2vh;
    align-items: flex-start;
  }

  .game-header {
    max-width: 1100px;
  }

  .game-body {
    flex-direction: row;
    gap: 36px;
    max-width: 1100px;
    align-items: flex-start;
    margin-bottom: 0;
  }

  .game-left {
    display: flex;
    flex: 0 0 360px;
    flex-direction: column;
    gap: 0;
  }

  .game-right {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
  }

  /* Song card: cover grande arriba, info abajo */
  .song-card {
    flex-direction: column;
    max-width: 100%;
    gap: 20px;
    padding: 24px;
  }
  .song-cover {
    width: 100%;
    height: 150px;
    border-radius: 14px;
    flex-shrink: unset;
  }
  .sound-bars { height: 44px; }
  .bar        { width: 7px; }

  /* Timer centrado en columna izquierda */
  .timer-wrap {
    max-width: 100%;
    padding: 12px 0;
  }
  .timer-inner  { width: 88px; height: 88px; }
  .timer-text   { font-size: 30px; }

  /* Skip: abajo, centrado, ancho completo del screen */
  .skip-row { max-width: 1100px; margin-top: 16px; }
  .btn-skip { padding: 12px 48px; font-size: 15px; }

  /* Options: llenan la columna derecha */
  .options-grid { max-width: 100%; margin-bottom: 0; }
  .option-btn   { padding: 22px 24px; }

  /* ── RESULTS SCREEN ── */
  #screen-results { align-items: center; }

  .results-body {
    display: flex;
    flex-direction: row;
    gap: 28px;
    max-width: 1000px;
    width: 100%;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .tiempos-section  { flex: 0 0 300px; max-width: 300px; margin-bottom: 0; }
  .answers-recap    { flex: 1; max-width: unset; margin-bottom: 0; }

  .results-header { margin-bottom: 28px; }

  /* Register landscape: mantiene layout top-left */
  #screen-register { padding: 0; }
}

/* ── iPad Pro landscape (1024px+) ───────────────────────── */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {

  .game-body,
  .game-header    { max-width: 1200px; }
  .game-left      { flex: 0 0 420px; }

  .song-cover     { height: 190px; }
  .sound-bars     { height: 56px; }
  .bar            { width: 8px; }

  .option-btn     { padding: 26px 28px; }
  .option-text    { font-size: 19px; }
  .options-grid   { gap: 16px; }

  .results-body   { max-width: 1100px; }
  .prize-banner   { flex: 0 0 340px; max-width: 340px; }

  .register-cta   { max-width: 900px; }
}

/* ══════════════════════════════════════════════════════════════
   iPad Air 11" M2 (2024) — 1180 × 820 CSS px, landscape, DPR 2
   Aplica también a cualquier tablet landscape con altura ≤ 900px
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) and (orientation: landscape) and (max-height: 900px) {

  .audio-loading-skeleton {
    padding-top: 96px;
    padding-bottom: 24px;
  }

  .audio-skeleton-layout { gap: 14px; }
  .audio-skeleton-heading { gap: 8px; }
  .audio-skeleton-signal { width: 82px; height: 82px; }
  .audio-skeleton-options { gap: 8px; }
  .audio-skeleton-option { min-height: 58px; padding-top: 10px; padding-bottom: 10px; }

  /* ── GAME SCREEN: reducir espacios verticales ── */

  /* Top: menos padding para ganar altura útil */
  .game-top {
    padding-top: 24px;
  }

  /* Contenido: acercar al top */
  .game-content {
    padding-top: 20px;
  }

  /* Timer: el mayor culpable de overflow.
     El padding clamp(80px, 16vh, 160px) da 131px en 820px.
     Lo bajamos a valores fijos para esta franja. */
  .timer-wrap {
    padding-top: 20px;
    padding-bottom: 10px;
  }

  /* Opciones: reducir padding vertical sin romper el mínimo táctil.
     14 + 41px contenido + 14 = 69px por botón > 44px HIG ✓ */
  .option-btn {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  /* Reducir gap entre opciones */
  .options-grid {
    gap: 8px;
  }

  /* Skip: recortar padding extra */
  .skip-row {
    padding-top: 8px;
    padding-bottom: 10px;
  }

  /* ── RESULTS SCREEN ── */
  .results-copy {
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .results-list {
    margin-top: 24px;
    gap: 16px;
  }

  /* Trophy y score: reducir un poco para que quepan cómodamente */
  .results-trophy {
    height: clamp(60px, 9vh, 90px);
  }

  .results-score-big {
    font-size: clamp(52px, 8vw, 80px);
  }

  .results-time-big {
    font-size: clamp(44px, 7vw, 64px);
  }

  /* Botón Siguiente en results */
  .btn-siguiente {
    margin-top: 16px;
  }

  /* ── SUCCESS SCREEN ── */
  .success-content {
    padding-top: 28px;
    gap: 10px;
  }

  .success-img-wrap {
    padding-bottom: clamp(20px, 4vw, 40px);
  }

  .success-product-img {
    height: clamp(200px, 38vh, 380px);
  }

  /* ── LISTO SCREEN ── */
  .listo-top {
    padding-top: clamp(48px, 8vh, 80px);
    gap: clamp(16px, 2.5vh, 32px);
  }
}
