@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #18352f;
  background: #e8f1e9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 36px 16px;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  background: #dcebe0;
}

.scene-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #8dd2e7 0%, #e3e7ca 67%, #c4d39b 100%);
  transition: background 1.4s ease;
}
.scene-background.scene-city { background: linear-gradient(180deg, #83c7e3 0%, #d4e4d5 62%, #9abd83 100%); }
.scene-background.scene-meadow { background: linear-gradient(180deg, #8bd4ed 0%, #dcf0c2 63%, #74b866 100%); }
.scene-background.scene-mountains { background: linear-gradient(180deg, #80b9e0 0%, #d1e2e8 59%, #829b89 100%); }
.scene-background.scene-desert { background: linear-gradient(180deg, #f5b978 0%, #f6d99d 62%, #d5a456 100%); }
.scene-background.scene-beach { background: linear-gradient(180deg, #71c9e3 0%, #a7e1dc 52%, #e8d29a 53%, #d9bd77 100%); }
.scene-background.scene-ice { background: linear-gradient(180deg, #8ecde8 0%, #d8f1f4 55%, #b9e2e6 100%); }
.scene-background.scene-jungle { background: linear-gradient(180deg, #76bdad 0%, #b8d5a1 59%, #527d55 100%); }
.sun { position: absolute; top: 9%; right: 13%; width: 74px; height: 74px; border-radius: 50%; background: #fff2b0; box-shadow: 0 0 50px #fff2b088; transition: background 1s, transform 1s; }
.scene-desert .sun { background: #fff0bd; transform: scale(1.18); }
.scene-ice .sun { background: #f2fbff; box-shadow: 0 0 55px #c4f4ff99; }
.scene-jungle .sun { background: #f7f3c8; transform: scale(.82); }
.distant-hills { position: absolute; left: -8%; right: -8%; bottom: 14%; height: 34%; border-radius: 50% 50% 0 0 / 25% 25% 0 0; background: #88ad91; opacity: .7; transition: background 1.2s, height 1.2s, border-radius 1.2s; }
.scene-meadow .distant-hills { height: 28%; background: #75bc73; }
.scene-mountains .distant-hills { height: 53%; border-radius: 50% 50% 0 0 / 75% 75% 0 0; background: #6e8da0; }
.scene-desert .distant-hills { height: 40%; border-radius: 54% 46% 0 0 / 34% 28% 0 0; background: #d19a55; }
.scene-beach .distant-hills { height: 28%; background: #55b7c1; border-radius: 50% 50% 0 0 / 18% 18% 0 0; }
.scene-ice .distant-hills { height: 46%; border-radius: 52% 48% 0 0 / 70% 60% 0 0; background: #d8eef1; }
.scene-jungle .distant-hills { height: 45%; background: #47785a; }
.landmarks { position: absolute; left: 0; right: 0; bottom: 6%; height: 24%; display: flex; align-items: end; justify-content: space-around; white-space: nowrap; font-size: clamp(2rem, 7vw, 5.8rem); opacity: 0; transform: translateX(5%); transition: opacity 1s ease, transform 1.4s ease; filter: drop-shadow(0 9px 7px #213c2940); animation: landscape-drift 12s ease-in-out infinite alternate; }
.scene-city .landmarks-city, .scene-meadow .landmarks-meadow, .scene-mountains .landmarks-mountains, .scene-desert .landmarks-desert, .scene-beach .landmarks-beach, .scene-ice .landmarks-ice, .scene-jungle .landmarks-jungle { opacity: .96; transform: translateX(0); }
.landmarks-city { color: #526d70; }
.landmarks-meadow { color: #498b50; }
.landmarks-mountains { color: #536e82; }
.landmarks-desert { color: #855b35; }
.landmarks-beach { color: #287f9d; }
.landmarks-ice { color: #55899d; }
.landmarks-jungle { color: #265941; }
.foreground { position: absolute; inset: auto 0 0; height: 9%; background: #719465; transition: background 1.2s ease; }
.scene-meadow .foreground { background: #62a95a; }
.scene-mountains .foreground { background: #647d70; }
.scene-desert .foreground { background: #b68443; }
.scene-beach .foreground { height: 11%; background: #d7bb75; }
.scene-ice .foreground { background: #b8e1e8; }
.scene-jungle .foreground { background: #315d44; }

.game-shell { position: relative; z-index: 1; width: min(100%, 680px); }
.game-header { text-align: center; margin-bottom: 22px; }
.eyebrow { margin: 0 0 6px; color: #e17b42; font-size: .76rem; font-weight: 800; letter-spacing: .16em; }
h1, h2 { font-family: 'Space Grotesk', system-ui, sans-serif; }
h1 { margin: 0; font-size: clamp(2.25rem, 8vw, 3.6rem); letter-spacing: -.055em; color: #173b35; }
.subtitle { margin: 6px 0 0; color: #60766c; }

.road-panel, .card {
  border: 1px solid #dbe8dd;
  border-radius: 24px;
  background: #fffefaed;
  box-shadow: 0 18px 50px #183b2b26;
  backdrop-filter: blur(8px);
}

.road-panel { padding: 18px 22px 16px; margin-bottom: 16px; }
.road-labels, .game-stats { display: flex; align-items: center; justify-content: space-between; }
.road-labels { margin-bottom: 7px; color: #71847a; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.road {
  --avance: 0%;
  position: relative;
  height: 57px;
  overflow: hidden;
  border: 4px solid #344744;
  border-radius: 12px;
  background: linear-gradient(#566561, #414e4b);
}
.road::before, .road::after { content: ''; position: absolute; top: 0; bottom: 0; width: 5px; background: #e4d58e; opacity: .85; }
.road::before { left: 9px; }
.road::after { right: 9px; }
.road-dashes {
  position: absolute;
  left: 0; right: 0; top: 50%; height: 4px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, #f5f2d8 0 24px, transparent 24px 43px);
  background-position-x: 0;
  animation: road-roll .45s linear infinite;
}
.finish-line {
  position: absolute;
  z-index: 2;
  top: 4px;
  bottom: 4px;
  right: 7%;
  width: 10px;
  border: 1px solid #ffffffaa;
  border-radius: 2px;
  opacity: 0;
  transform: scaleY(.45);
  background: repeating-conic-gradient(#fff 0% 25%, #202b2a 0% 50%) 50% / 10px 10px;
  transition: opacity .5s ease, transform .5s ease, box-shadow .5s ease;
}
.road.finished .finish-line {
  opacity: 1;
  transform: scaleY(1);
  box-shadow: 0 0 18px #fff6a8;
}
.road.finished .road-dashes { animation-duration: .12s; }
.car {
  position: absolute;
  z-index: 1;
  top: 50%; left: var(--avance);
  display: grid; place-items: center;
  width: 47px; height: 42px;
  font-size: 2rem;
  transform: translateY(-55%);
  transition: left 850ms cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 3px 2px #13201b80);
}
.game-stats { padding-top: 11px; color: #51675e; font-size: .88rem; font-weight: 700; }

.card { padding: clamp(22px, 6vw, 38px); }
.intro-card, .final-card { text-align: center; }
.card h2 { margin: 0 0 12px; color: #193a33; font-size: clamp(1.5rem, 5vw, 2rem); letter-spacing: -.035em; }
.card p { color: #5c7168; line-height: 1.55; }
.intro-card > p:not(.error-message) { max-width: 430px; margin: 0 auto 22px; }
.primary-button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: #d96f3d;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 0 #a54e2d;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.primary-button:hover { background: #c95e30; transform: translateY(-1px); box-shadow: 0 6px 0 #a54e2d; }
.primary-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #a54e2d; }
.primary-button:disabled { cursor: not-allowed; opacity: .6; }

.timer-row { display: flex; justify-content: space-between; align-items: center; color: #7c8a80; font-size: .76rem; font-weight: 800; letter-spacing: .13em; }
.timer { display: grid; place-items: center; min-width: 48px; height: 48px; border: 3px solid #dbe8dd; border-radius: 50%; color: #1c725d; font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; letter-spacing: 0; }
.timer.urgent { border-color: #df6d45; color: #c94b31; animation: pulse .75s ease-in-out infinite alternate; }
.question-number { margin: 22px 0 4px; color: #e17b42 !important; font-size: .76rem; font-weight: 800; letter-spacing: .15em; }
.question-card h2 { min-height: 2.8em; margin: 0 0 22px; font-size: clamp(1.45rem, 5vw, 2rem); }
#formulario-respuesta { display: flex; gap: 10px; }
#campo-respuesta { flex: 1; min-width: 0; height: 50px; padding: 0 15px; border: 1.5px solid #cbd9cf; border-radius: 12px; background: #fbfcf9; font: inherit; outline: none; }
#campo-respuesta:focus { border-color: #388c72; box-shadow: 0 0 0 3px #388c7220; }
.result-message { min-height: 1.55em; margin: 15px 0 0; font-weight: 700; }
.result-message.correct { color: #24735c; }
.result-message.missed { color: #a95436; }
.result-message.corrected { color: #876317; }
.continue-button { margin-top: 12px; }
.answer-summary { margin-top: 20px; text-align: left; }
.answer-summary-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.answer-summary-item { padding: 13px 15px; border: 1px solid #dbe8dd; border-radius: 13px; background: #f8faf6; }
.answer-summary-item p { margin: 3px 0; }
.answer-summary-question { color: #29483e !important; font-weight: 700; }
.answer-summary-response { color: #536a60 !important; }
.answer-summary-score { color: #24735c !important; font-size: .88rem; font-weight: 800; }
.error-message { color: #a33b2f !important; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@keyframes road-roll { to { background-position-x: -43px; } }
@keyframes landscape-drift { from { margin-left: -1.5%; } to { margin-left: 1.5%; } }
@keyframes pulse { to { transform: scale(1.08); } }

@media (max-width: 520px) {
  body { padding: 22px 12px; }
  .road-panel { padding: 15px; }
  #formulario-respuesta { flex-direction: column; }
  #formulario-respuesta .primary-button { width: 100%; }
}

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

/* Paisaje dibujado: las únicas señales con emojis están en la carretera. */
.landmarks { width:200%; right:auto; animation:none; margin:0; transform:translateX(var(--travel,0px)); transition:opacity .6s; justify-content:space-around; filter:none; }
.scene-background .landmarks { transform:translateX(var(--travel,0px)); }
.landmarks i { display:block; flex-shrink:0; width:8vw; height:14vh; background:currentColor; border-radius:5px 5px 0 0; }
.landmarks-city i { background:repeating-linear-gradient(0deg,transparent 0 15px,#d5e3d5 16px 20px),repeating-linear-gradient(90deg,#526d70 0 16px,#73958e 17px 24px); }
.landmarks i:nth-child(even) { height:22vh; }
.landmarks-meadow i { height:8vh; width:15vw; border-radius:100% 100% 0 0; }
.landmarks-mountains i,.landmarks-ice i { width:22vw;height:30vh;clip-path:polygon(50% 0,100% 100%,0 100%);background:linear-gradient(#eef7f4 0 24%,currentColor 25%); }
.landmarks-desert i { width:20px;height:95px;border-radius:20px;box-shadow:25px -20px 0 -4px currentColor,-22px -8px 0 -5px currentColor; }
.landmarks-beach i,.landmarks-jungle i {width:9vw;height:20vh;clip-path:polygon(45% 100%,45% 35%,0 45%,20% 15%,50% 0,80% 15%,100% 45%,55% 35%,55% 100%);}
.distant-hills { transform:translateX(var(--far-travel,0px));width:600%;left:-100%;background-size:500px 100%; }
.world-road {position:absolute;bottom:3%;height:65px;width:100%;background:#485b55;border-top:4px solid #e7ddae;border-bottom:4px solid #e7ddae;}
.world-road div {position:absolute;top:50%;height:3px;width:100%;background:repeating-linear-gradient(90deg,#ede9cd 0 35px,transparent 35px 80px);background-position-x:var(--travel,0px);}

.road-dashes {animation:none;background-position-x:var(--road-offset,0px);}
.travelling .road-dashes {animation:road-roll .2s linear infinite;}
.car {transition:none;}
[data-points="0"],[data-points="10"] {color:#737d86!important;}
[data-points="30"] {color:#277bb8!important;}
[data-points="60"] {color:#c43f3f!important;}
[data-points="85"] {color:#8750b7!important;}
[data-points="100"] {color:#a57908!important;text-shadow:0 0 18px #e8c95d55;}
#share-panel {margin:24px 0;padding:20px;background:#edf3ed;border-radius:18px;}
#share-preview {font:inherit;white-space:pre-wrap;line-height:1.8;user-select:text;}
.share-actions {display:flex;flex-wrap:wrap;justify-content:center;gap:8px;}
.share-actions button,.share-actions a {font:inherit;font-size:.85rem;cursor:pointer;padding:10px 13px;border:1px solid #bdcfc4;background:white;color:#244b3d;border-radius:10px;text-decoration:none;}
.krillion-badge {margin:0 auto 25px;padding:30px 10px;background:radial-gradient(ellipse,#fff4b7,#dbc271 70%,#b28b32);border:3px double #a27b28;border-radius:24px;box-shadow:0 0 55px #e4c55866;color:#634709;}
.krillion-badge small,.krillion-badge span {display:block;letter-spacing:.15em;font-size:11px;}
.krillion-badge strong {display:block;font-family:'Space Grotesk',sans-serif;font-size:clamp(32px,8vw,58px);line-height:1.05;margin:18px 0;}
.confetti {position:fixed;z-index:20;top:-20px;width:9px;height:16px;pointer-events:none;animation:confetti-fall 4s ease-in forwards;}
@keyframes confetti-fall {to {transform:translateY(110vh) rotate(var(--spin));}}
@media(prefers-reduced-motion:reduce){.confetti{display:none}.scene-background *{transition:none!important}}

.landmarks {width:20000px;justify-content:flex-start;gap:90px;}
.distant-hills {transform:translateX(calc(var(--far-travel,0px) * .1));}

/* Escenas y señales del trayecto */
.scene-background {transition:background 2.4s ease;}
.distant-hills {transition:background 2.4s ease,height 2.4s ease,border-radius 2.4s ease;}
.foreground {transition:background 2.4s ease;}
.landmarks {transition:opacity 2s ease;}
.car {transform:translateY(-55%);}
.biome-markers {position:absolute;inset:0;pointer-events:none;}
.biome-markers span {position:absolute;top:-4px;height:100%;border-left:1px solid #ffffff45;}
.biome-markers span:first-child {border:0;}
.biome-markers small {position:absolute;top:60px;left:0;transform:translateX(-50%);font-size:9px;color:#52675c;white-space:nowrap;}
.biome-markers span:last-child small {transform:translateX(-100%);}
.countdown {margin:8px 0 0;color:#425d50!important;font-weight:700;}
.countdown strong {font-variant-numeric:tabular-nums;letter-spacing:.08em;}
.world-road {height:90px;bottom:2%;clip-path:polygon(0 65%,12% 55%,25% 61%,39% 73%,52% 66%,67% 45%,82% 35%,100% 46%,100% 100%,0 100%);}
.world-road div {height:0;border-top:3px dashed #ede9cd;background:none;top:58%;}
.landmarks-city i {width:clamp(34px,6vw,75px);height:16vh!important;border-radius:8px 8px 0 0;background:repeating-linear-gradient(0deg,transparent 0 15px,#d5e3d5 16px 20px),linear-gradient(90deg,#526d70,#73958e)!important;position:relative;}
.landmarks-city i:nth-child(3n) {height:25vh!important;}
.landmarks-city i:after {content:'';position:absolute;inset:12px 8px;background:repeating-linear-gradient(0deg,transparent 0 17px,#d9e7d4 18px 22px);}
.landmarks-desert i {position:relative;width:17px;height:74px;border-radius:12px 12px 5px 5px;background:#44805a;box-shadow:0 -12px 0 -5px #44805a,-10px -24px 0 -6px #44805a,10px -32px 0 -6px #44805a;}
.landmarks-desert i:nth-child(3n) {height:130px;width:24px;border-radius:55% 45% 5px 5px;}
.landmarks-beach i {position:relative;width:70px;height:76px;clip-path:none!important;background:linear-gradient(90deg,#df6652 0 50%,#f3d37b 50%)!important;border-radius:50% 50% 8px 8px;}
.landmarks-beach i:after {content:'';position:absolute;left:48%;bottom:-28px;width:5px;height:42px;background:#765a3b;}
.landmarks-jungle i {position:relative;width:24px;height:18vh!important;background:#76543b!important;border-radius:8px 8px 0 0;}
.landmarks-jungle i:before {content:'';position:absolute;left:50%;top:-45px;transform:translateX(-50%);width:clamp(70px,11vw,135px);height:72px;border-radius:50%;background:radial-gradient(ellipse at 25% 75%,#7ea85e 0 28%,transparent 30%),radial-gradient(ellipse at 70% 70%,#39784e 0 37%,transparent 39%),radial-gradient(ellipse at 50% 30%,#5d9654 0 44%,transparent 46%);}
.landmarks-jungle i:nth-child(odd) {height:25vh!important;}
@media(max-width:520px){.biome-markers small{font-size:7px;top:62px;}}

/* Siluetas nuevas: formas simples y reconocibles en cada paisaje. */
.scene-background {transition:background 2.8s cubic-bezier(.22,.61,.36,1);}
.distant-hills,.foreground {transition:background 2.8s cubic-bezier(.22,.61,.36,1),height 2.8s cubic-bezier(.22,.61,.36,1),border-radius 2.8s ease;}
.landmarks {transition:opacity 2.3s ease;}
/* Ciudad: edificios de distintas alturas, tejados y ventanas cálidas. */
.landmarks-city {align-items:flex-end;gap:24px;}
.landmarks-city i {position:relative;width:clamp(48px,7vw,88px);height:17vh!important;flex:0 0 auto;border-radius:5px 5px 0 0;background:linear-gradient(90deg,#647f82,#91a8a2 52%,#607b7d)!important;box-shadow:inset 5px 0 #ffffff18,0 -3px #e6d4a5;}
.landmarks-city i:nth-child(3n) {height:27vh!important;width:clamp(56px,8vw,100px);}
.landmarks-city i:nth-child(4n) {height:21vh!important;border-radius:2px 2px 0 0;}
.landmarks-city i:after {content:'';position:absolute;inset:12px 9px 0;background:repeating-linear-gradient(90deg,transparent 0 12px,#f4dfa0 13px 17px,transparent 18px 25px),repeating-linear-gradient(0deg,transparent 0 18px,#f4dfa0 19px 23px,transparent 24px 31px);opacity:.8;}
.landmarks-city i:nth-child(5n):before {content:'';position:absolute;top:-10px;left:30%;width:40%;height:10px;background:#536e70;border-radius:3px 3px 0 0;}
/* Jungla: troncos rectos con copas en varios niveles. */
.landmarks-jungle {gap:36px;align-items:flex-end;}
.landmarks-jungle i {position:relative;width:17px;height:19vh!important;flex:0 0 auto;border-radius:6px 6px 0 0;background:linear-gradient(90deg,#624b36,#98734a 55%,#5b4934)!important;}
.landmarks-jungle i:nth-child(odd) {height:26vh!important;width:21px;}
.landmarks-jungle i:before {content:'';position:absolute;z-index:1;left:50%;top:-56px;transform:translateX(-50%);width:clamp(72px,10vw,120px);height:82px;border-radius:50%;background:radial-gradient(ellipse at 50% 90%,#315e40 0 35%,transparent 36%),radial-gradient(ellipse at 22% 62%,#548853 0 34%,transparent 35%),radial-gradient(ellipse at 77% 60%,#477b49 0 37%,transparent 38%),radial-gradient(ellipse at 49% 28%,#719c56 0 40%,transparent 42%);}
/* Desierto: tronco vertical y brazos de cactus con pequeñas púas. */
.landmarks-desert {gap:clamp(38px,7vw,90px);align-items:flex-end;}
.landmarks-desert i {position:relative;width:19px;height:100px!important;flex:0 0 auto;border-radius:12px 12px 4px 4px;background:linear-gradient(90deg,#47764d,#75a05c 55%,#3e6b48)!important;box-shadow:inset 3px 0 #ffffff20;}
.landmarks-desert i:nth-child(3n) {height:137px!important;width:23px;border-radius:15px 15px 4px 4px;}
.landmarks-desert i:before,.landmarks-desert i:after {content:'';position:absolute;width:15px;height:27px;border:7px solid #56844f;border-bottom:0;}
.landmarks-desert i:before {left:-13px;top:34px;border-right:0;border-radius:12px 0 0 0;}
.landmarks-desert i:after {right:-13px;top:53px;border-left:0;border-radius:0 12px 0 0;}
/* Playa: sombrilla con paneles y mástil fino. */
.landmarks-beach {gap:clamp(48px,8vw,100px);align-items:flex-end;}
.landmarks-beach i {position:relative;width:78px;height:91px!important;flex:0 0 auto;border-radius:50% 50% 0 0!important;clip-path:none!important;background:transparent!important;}
.landmarks-beach i:before {content:'';position:absolute;top:0;left:0;width:100%;height:54px;border-radius:55px 55px 4px 4px;background:repeating-conic-gradient(from 270deg at 50% 100%,#e86d5d 0deg 28deg,#f1d483 29deg 56deg);clip-path:polygon(0 100%,8% 49%,25% 15%,50% 0,75% 15%,92% 49%,100% 100%);}
.landmarks-beach i:after {content:'';position:absolute;left:calc(50% - 2px);top:48px;width:4px;height:56px;border-radius:3px;background:#795b3e;}

/* El coche mira en la dirección del viaje. */
.car { transform: translateY(-55%) scaleX(-1); }

/* La respuesta final abre el explorador de respuestas de esa pregunta. */
.answer-summary-item p { margin: 3px 0; }
.answer-bubble {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  margin: 5px 0;
  padding: 9px 11px;
  border: 1px solid #c9dbcf;
  border-radius: 11px;
  color: #29483e;
  background: #edf4ee;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.answer-bubble:hover { background: #e2efe5; border-color: #8eb69d; transform: translateY(-1px); }
.answer-bubble:focus-visible,
.answer-browser-close:focus-visible,
.answer-browser-controls input:focus-visible,
.answer-browser-controls select:focus-visible { outline: 3px solid #32876e80; outline-offset: 2px; }
.answer-bubble-value { font-weight: 750; }
.answer-bubble-hint { margin-top: 3px; color: #587165; font-size: .76rem; }

.answer-browser-dialog {
  width: min(680px, calc(100% - 24px));
  max-width: 680px;
  max-height: min(84vh, 820px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #d6e2d8;
  border-radius: 20px;
  color: #24473c;
  background: #fbfcf9;
  box-shadow: 0 24px 80px #12241d55;
}
.answer-browser-dialog::backdrop { background: #10251dcc; backdrop-filter: blur(3px); }
.answer-browser-content { position: relative; display: flex; max-height: min(84vh, 820px); flex-direction: column; padding: 26px; }
.answer-browser-content .eyebrow { margin: 0 42px 5px 0; color: #d96f3d; font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.answer-browser-content h2 { margin: 0 42px 5px 0; color: #193a33; font-size: clamp(1.45rem, 4vw, 1.9rem); }
.answer-browser-question { margin: 4px 40px 18px 0; color: #5c7168; line-height: 1.45; }
.answer-browser-close { position: absolute; top: 16px; right: 16px; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #d5e0d7; border-radius: 50%; color: #345649; background: white; font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.answer-browser-close:hover { background: #edf4ee; }
.answer-browser-controls { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(190px, .8fr); gap: 12px; }
.answer-browser-controls label { display: block; margin: 0 0 6px; color: #36594d; font-size: .82rem; font-weight: 750; }
.answer-browser-controls input,
.answer-browser-controls select { width: 100%; min-width: 0; height: 44px; padding: 0 11px; border: 1px solid #cbd9cf; border-radius: 10px; color: #203d34; background: white; font: inherit; }
.answer-browser-count { margin: 12px 0 8px; color: #63766d; font-size: .82rem; }
.answer-browser-list { display: grid; gap: 7px; min-height: 70px; max-height: 42vh; margin: 0; padding: 2px 5px 2px 0; overflow: auto; list-style: none; overscroll-behavior: contain; }
.answer-browser-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e0e9e1; border-radius: 10px; background: #f5f8f4; }
.answer-browser-name { min-width: 0; overflow-wrap: anywhere; color: #29483e; }
.answer-browser-score { flex: 0 0 auto; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.answer-browser-empty { padding: 18px 12px; color: #65766e; text-align: center; }

@media (max-width: 520px) {
  .answer-browser-content { padding: 21px 17px; }
  .answer-browser-controls { grid-template-columns: 1fr; gap: 10px; }
  .answer-browser-list { max-height: 48vh; }
  .answer-browser-item { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* Explicación del krillón, visible en resultados y en el explorador final. */
.answer-explanation {
  color: #6f5b23;
  font-size: .84rem;
  line-height: 1.45;
}
.answer-browser-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.answer-browser-item .answer-explanation { grid-column: 1 / -1; margin: 2px 0 0; }
