/* A fondo (/app/a-fondo/, beta-spec §25): the daily dive. The sea is the whole screen and the page
   floats over it, dark at every theme (JR, 12 Nov 2026). Colours are still the DESIGN.md tokens: the
   five blues are mixed from --azul and the ink, cempasúchil for the lamps and the buttons, jade and
   rosa for right and wrong. The sea is flat colour on an art-pixel grid. */

body.af-body {
  --sea-sky: #F1E4CA;
  --sea1: color-mix(in srgb, #2E5BD9 62%, #fff);
  --sea2: #2E5BD9;
  --sea3: color-mix(in srgb, #2E5BD9 40%, #1A1A2E);
  --sea4: color-mix(in srgb, #2E5BD9 14%, #1A1A2E);
  --sea-floor: color-mix(in srgb, #2E5BD9 6%, #0E0E1C);
  --af-ink: #1A1A2E;
  --af-cream: #FFF9EE;
  --af-dim: #C9C3DA;
  --af-glass: rgba(14, 14, 28, .86);
  margin: 0; background: var(--sea-floor); color: var(--af-cream); min-height: 100dvh;
}
body.af-body .game.af {
  /* The shared game styles read these: light on dark here, whatever the theme. */
  --ink: var(--af-cream); --text: var(--af-cream); --muted: var(--af-dim); --surface: rgba(255, 249, 238, .07); --gline: rgba(255, 249, 238, .45);
  --paper: var(--af-glass); --card-ink: var(--af-cream); --line: var(--af-cream); --bg: var(--af-ink); --focus: #F5A623;
  max-width: none; margin: 0; padding: 0; position: relative; z-index: 1; color: var(--af-cream);
}

/* ---- the sea, behind everything ---- */
#sea { position: fixed; inset: 0; z-index: 0; }
.af-win { position: absolute; inset: 0; overflow: hidden; background: var(--sea-floor); }
/* Three layers that slide at their own speed: far shapes, the sea, near specks. */
.af-col { position: absolute; left: 0; top: 0; will-change: transform; backface-visibility: hidden; }
.af-col svg { display: block; }
.af-l-far { z-index: 0; } .af-l-sea { z-index: 1; } .af-l-near { z-index: 4; pointer-events: none; }
.af-l-far { mix-blend-mode: normal; }
.af-sea.l-far rect { fill: #0E0E1C; opacity: .2; }
.af-sea.l-far .ray rect { fill: #FFF9EE; }
.af-sea.l-near rect { fill: #FFF9EE; }
.af-sea .sky-night { display: none; }
:root[data-theme="dark"] .af-sea .sky-day { display: none; }
:root[data-theme="dark"] .af-sea .sky-night { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .af-sea .sky-day { display: none; }
  :root:not([data-theme="light"]) .af-sea .sky-night { display: inline; }
}
.af-sea .cl { fill: #FFFFFF; }
.af-sea .mo { fill: #FFF9EE; } .af-sea .mc { fill: #D9D2C0; }
.af-sea .star { fill: #FFF9EE; animation: af-twinkle var(--t, 3s) ease-in-out var(--d, 0s) infinite alternate; }
@keyframes af-twinkle { from { opacity: .25; } to { opacity: 1; } }
.af-sea .k { fill: #1A1A2E; } .af-sea .w { fill: #FFF9EE; } .af-sea .h { fill: #F5A623; } .af-sea .r { fill: #E6007E; } .af-sea .a { fill: #2E5BD9; }
.af-sea .foam { fill: #FFF9EE; opacity: .9; }
.af-sea.l-sea .s { fill: #0E0E1C; opacity: .34; }
.af-sea .g { fill: #F5A623; } .af-sea .glowj { fill: #F5A623; opacity: .75; }
.af-sea.l-sea .d { fill: #7D99E7; opacity: .34; } .af-sea.l-sea .p { fill: #FFF9EE; opacity: .3; }
.af-sea .b { fill: #B9C8F3; opacity: .9; } .af-sea .glowr { fill: #E6007E; opacity: .7; }
.af-sea.l-far rect.df { fill: #7D99E7; opacity: .17; } .af-sea.l-far rect.fe { fill: #F5A623; opacity: .8; }
.af-sea .rb1 { fill: #2F7BFF; } .af-sea .rb2 { fill: #7CC4FF; } .af-sea .rg1 { fill: #19C37D; } .af-sea .rg2 { fill: #A8F06B; }
.af-sea .ro1 { fill: #FF7A1A; } .af-sea .ro2 { fill: #FFB547; } .af-sea .rw { fill: #FFF2C9; } .af-sea .rk { fill: #0B3036; } .af-sea .rt { fill: #1B6873; }
/* The reef glows: a slow pulse on some corals and strands (palette «Arrecife eléctrico», JR, 17 Nov 2026). */
.af-glow { animation: af-glow var(--t, 3s) ease-in-out var(--d, 0s) infinite alternate; }
@keyframes af-glow { from { opacity: .55; } to { opacity: 1; } }
/* Shadows that swim across the shallows, then wait off screen. */
.af-x { animation: af-cross var(--t, 30s) linear var(--d, 0s) infinite; transform: translateX(var(--x0)); will-change: transform; }
@keyframes af-cross { 0% { transform: translateX(var(--x0)); } 45%, 100% { transform: translateX(var(--x1)); } }
.af-blink { animation: af-blink var(--t, 6s) steps(1, end) var(--d, 0s) infinite; }
@keyframes af-blink { 0%, 93% { opacity: 1; } 94%, 100% { opacity: 0; } }
.af-sea .tick { fill: #FFF9EE; opacity: .7; }
.af-sea text { font-family: var(--sans); font-weight: 700; fill: #FFF9EE; }
.af-sea .tl { font-size: 5px; opacity: .85; }
/* Pixel shapes, smooth motion: everything alive drifts there and back. */
.af-dr { animation: af-drift var(--t, 6s) ease-in-out var(--d, 0s) infinite alternate; will-change: transform; }
@keyframes af-drift { from { transform: translate(0, 0); } to { transform: translate(var(--dx, 0), var(--dy, 0)); } }
.af-wave { will-change: transform; }
.af-wave.wv-b { animation: af-wave 5.5s linear infinite reverse; opacity: .8; }
.af-wave.wv-f { animation: af-wave 3.4s linear infinite; }
@keyframes af-wave { from { transform: translateX(0); } to { transform: translateX(-16px); } }
.af-boat { animation: af-boat 3.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes af-boat { from { transform: translateY(0) rotate(-1.2deg); } to { transform: translateY(1.2px) rotate(1.2deg); } }
.af-boat.af-sail { animation-duration: 4.1s; animation-delay: -1.3s; }
@keyframes af-deck { from { transform: translateY(0); } to { transform: translateY(3px); } }
.af-diver { position: absolute; z-index: 2; line-height: 0; }
.af-diver .af-spr { animation: af-float 3.4s ease-in-out infinite alternate; }
.af-diver.still .af-spr { animation: af-deck 3.2s ease-in-out infinite alternate; }
@keyframes af-float { from { transform: translateY(-4px) rotate(-1.5deg); } to { transform: translateY(4px) rotate(1.5deg); } }
.af-spr { display: inline-block; line-height: 0; image-rendering: pixelated; }
img.af-spr { display: block; }
.af-ph { display: inline-flex; align-items: center; justify-content: center; }
.af-ph > span { display: block; }
.af-ph svg { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.af-diver.bob { animation: af-bob 1.1s ease-in-out 1; }
@keyframes af-bob { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(12px); } 65% { transform: translateY(-4px); } }
/* A right answer: he plunges, deeper for a heavier tier (--plunge, set by the page), and settles back
   to his place while the sea slides past (a first Piedrita is ~300 px of sea on a phone, log scale). */
.af-diver.plunge { animation: af-plunge var(--plunge-ms, 1900ms) cubic-bezier(.3, .6, .3, 1) 1; }
@keyframes af-plunge { 0% { transform: translateY(0); } 28% { transform: translateY(var(--plunge, 40px)); } 100% { transform: translateY(0); } }
.af-diver.plunge + .af-bubs i { animation-duration: .6s; animation-delay: calc(var(--i) * .12s); }
/* Off the boat: up, over the stern and down to the water; then the splash. */
.af-diver.jump { animation: af-jump .64s cubic-bezier(.3, 0, .7, 1) both; }
.af-diver.jump .af-spr { animation: af-tuck .64s ease-in both; }
@keyframes af-jump { 0% { transform: translate(0, 0); animation-timing-function: cubic-bezier(.2, .7, .4, 1); } 42% { transform: translate(calc(var(--jx) * .5), -54px); animation-timing-function: cubic-bezier(.6, 0, .9, .5); } 100% { transform: translate(var(--jx), var(--jy)); } }
@keyframes af-tuck { 0% { transform: rotate(0); } 100% { transform: rotate(-70deg); } }
.af-splash { position: absolute; z-index: 3; width: 0; height: 0; pointer-events: none; }
.af-splash i { position: absolute; left: 0; top: 0; width: var(--w, 6px); height: var(--w, 6px); background: #FFF9EE; opacity: 0; }
.af-splash i:nth-child(4n) { background: #BFD0F7; }
.af-splash.on i { animation: af-splash .8s cubic-bezier(.2, .7, .5, 1) both; }
@keyframes af-splash { 0% { transform: translate(0, 0); opacity: 1; } 55% { transform: translate(var(--a), var(--h)); opacity: 1; } 100% { transform: translate(calc(var(--a) * 1.5), 10px); opacity: 0; } }
/* He breathes: a slow string of bubbles, and a rush of them on the way down. */
.af-bubs { position: absolute; z-index: 3; width: 24px; height: 10px; pointer-events: none; }
.af-bubs[hidden], .af-diver[hidden] { display: none; }
.af-bubs i { position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 1px; background: #FFF9EE; opacity: 0; left: calc(var(--i) * 6px);
  animation: af-rise 3.6s ease-out calc(var(--i) * .9s) infinite; }
.af-bubs i:nth-child(even) { width: 3px; height: 3px; }
.af-bubs.on i { animation-duration: .9s; animation-delay: calc(var(--i) * .2s); }
@keyframes af-rise { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: .9; } 100% { transform: translate(calc((var(--i) - 1.5) * 5px), -90px); opacity: 0; } }

/* The depth, top centre: the one number that matters. */
.af-depth { position: absolute; z-index: 3; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 0;
  background: var(--af-glass); color: var(--af-cream); border-radius: 12px; padding: 4px 16px 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.af-depth b { font-family: var(--slab); font-weight: 400; font-size: 28px; line-height: 1.1; color: #F5A623; }
.af-depth span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--af-dim); }
body:is([data-af="start"], [data-af="jump"], [data-af="result"]) .af-depth { display: none; }
body[data-af="jump"] :is(.af-card, .af-title, .af-back) { opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }

/* ---- shared pieces ---- */
.af-panel { background: var(--af-glass); color: var(--af-cream); border-radius: 16px; padding: 16px; box-sizing: border-box; }
.af-back { position: fixed; z-index: 5; top: calc(10px + env(safe-area-inset-top, 0px)); left: 12px; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px;
  background: var(--af-glass); color: var(--af-cream); border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; }
.af-back:focus-visible, .af-btn:focus-visible { outline: 3px solid #F5A623; outline-offset: 3px; }
.af-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; box-sizing: border-box; border: 0; border-radius: 12px; cursor: pointer;
  background: #F5A623; color: #1A1A2E; font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; touch-action: manipulation; }
.af-btn:active { transform: translateY(2px); }
.af-btn[disabled] { opacity: .6; cursor: progress; }
.af-btn.ghost { background: transparent; color: var(--af-cream); box-shadow: inset 0 0 0 2px rgba(255, 249, 238, .6); }
.af-no { margin: 0 0 4px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--af-dim); }
.af-lead { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.af-stat { margin: 0 0 14px; color: var(--af-dim); font-weight: 700; }
.af-say { margin: 0 0 14px; padding: 0 0 0 12px; border-left: 3px solid #F5A623; font-size: 15.5px; line-height: 1.35; }
.af-say[hidden] { display: none; }
.af-say b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #F5A623; }
.af-say p { margin: 2px 0 0; }

/* ---- start ---- */
.af-title { position: fixed; z-index: 2; top: 9dvh; left: 0; right: 0; text-align: center; pointer-events: none; }
.af-title h1 { margin: 0; padding: 0 12px; font-family: var(--slab); font-weight: 400; font-size: clamp(40px, 11.5vw, 88px); line-height: .95; color: #F5A623; text-shadow: 4px 4px 0 #1A1A2E; text-wrap: balance; }
/* The subtitle under the title (JR, 27 Nov 2026, «Clavado diario»): a cream box, hard shadow. */
.af-sub { box-sizing: content-box; max-width: min(20em, calc(100% - 56px)); margin: 12px auto 0; padding: 6px 12px; font-size: 14px; font-weight: 700; line-height: 1.3;
  color: #1A1A2E; background: #FFF9EE; border: 2px solid #1A1A2E; border-radius: 8px; box-shadow: 3px 3px 0 #1A1A2E; }
.af-title .ab-tag { margin-top: 8px; }
body:is([data-af="start"], [data-af="jump"]) .af-card { position: fixed; z-index: 4; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 460px; margin: 0 auto; text-align: center; }
body[data-af="start"] .af-say { text-align: left; }
.af-go, .af-soon .af-btn { width: 100%; }

/* ---- the question: a sheet at the bottom of the sea ---- */
body[data-af="play"] { overflow: hidden; }
.af-qp { position: fixed; z-index: 4; left: 0; right: 0; bottom: 0; max-height: 68dvh; overflow-y: auto; border-radius: 18px 18px 0 0;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)); }
.af-hud { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.af-pips { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; }
.pip { flex: 0 0 auto; width: 24px; height: 24px; box-sizing: border-box; line-height: 1; display: grid; place-items: center; font-size: 12px; font-weight: 700; border-radius: 6px;
  background: rgba(255, 249, 238, .12); color: var(--af-dim); }
.pip.now { background: #F5A623; color: #1A1A2E; }
.pip.s-hit { background: #0F8B6C; color: #fff; }
.pip.s-miss { background: #C62839; color: #fff; }
.pip.s-timeout { background: transparent; color: #F5A623; box-shadow: inset 0 0 0 2px #F5A623; }
.pip.s-seen { background: rgba(255, 249, 238, .4); color: #1A1A2E; }
.pip.s-skipped { opacity: .5; box-shadow: inset 0 0 0 2px var(--af-dim); }
.af-clk { font-weight: 700; font-size: 14px; white-space: nowrap; min-width: 4ch; text-align: right; color: var(--af-dim); }
.af-num { font-size: 20px; color: var(--af-cream); }
.af-bar { height: 6px; border-radius: 3px; background: rgba(255, 249, 238, .15); overflow: hidden; margin: 0 0 12px; }
.af-bar-i { display: block; height: 100%; width: 100%; background: #F5A623; }
.af-bar.low .af-bar-i { background: #E6007E; }
.af-q { margin: 0 0 12px; }
.af-q .qtext { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.38; outline: none; }
.af-q .qtag { margin-bottom: 6px; border-color: transparent; background: rgba(255, 249, 238, .16); color: var(--af-cream); }
.af-q .sim-ctx { margin: 0 0 6px; color: var(--af-dim); font-weight: 700; font-size: 15px; }
.af-q .vstrip { margin: 0 0 8px; }
.af-q .vt { background: transparent; }
.af-opts { display: grid; gap: 8px; }
.af .opt { box-shadow: none; padding: 10px 12px; font-size: 16.5px; line-height: 1.3; min-height: 48px; border-color: rgba(255, 249, 238, .35); background: rgba(255, 249, 238, .06); color: var(--af-cream); }
.af .opt .k { background: rgba(255, 249, 238, .18); color: var(--af-cream); }
.af .opt:active:not([disabled]) { transform: none; box-shadow: none; }
@media (hover: hover) { .af-opts .opt:hover:not([disabled]) { border-color: #F5A623; } }
.af .opt.ok { border-color: #17B890; background: rgba(15, 139, 108, .45); }
.af .opt.no { border-color: #FF5A6E; background: rgba(198, 40, 57, .45); }
.af .opt.ok .k { background: #0F8B6C; color: #fff; } .af .opt.no .k { background: #C62839; color: #fff; }
.af .opt.dim { opacity: .45; }
.af-qp.answered .af-bar, .af-qp.answered .af-clk { visibility: hidden; }

/* ---- after the answer: right or wrong, and the metres ---- */
.af-pop { position: fixed; z-index: 3; left: 0; right: 0; top: calc(20dvh + 56px); display: grid; justify-items: center; gap: 0; pointer-events: none; text-align: center;
  animation: af-pop 2.3s cubic-bezier(.2, .8, .2, 1) both; text-shadow: 3px 3px 0 #1A1A2E; }
.af-verdict { font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; text-shadow: 2px 2px 0 #1A1A2E; }
.af-gain { font-family: var(--slab); font-weight: 400; font-size: 46px; line-height: 1.05; }
.af-tier { font-weight: 700; font-size: 15px; text-shadow: 2px 2px 0 #1A1A2E; }
.af-mult { color: #F5A623; font-size: 19px; }
.ab-x { color: #7CF0CF; font-size: 15px; }
.af-pop.ok .af-gain { color: #F5A623; } .af-pop.ok .af-verdict { color: #7CF0CF; }
.af-pop.no .af-gain { color: var(--af-cream); } .af-pop.no .af-verdict { color: #FF8A98; }
@keyframes af-pop { 0% { opacity: 0; transform: translateY(18px) scale(.92); } 14% { opacity: 1; transform: none; } 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }

/* ---- results: the page scrolls over the sea ---- */
.af-res { position: relative; z-index: 4; max-width: 560px; margin: 0 auto; padding: calc(20dvh + 80px) 12px 40px; display: grid; gap: 14px; }
.af-score { text-align: center; }
.af-big { font-family: var(--slab); font-size: clamp(52px, 15vw, 76px); line-height: 1; margin: 2px 0 4px; color: #F5A623; }
.af-of { margin: 0 0 12px; color: var(--af-dim); font-weight: 700; }
.af-score .af-pips { justify-content: center; margin: 0 0 16px; }
.af-score .pip { width: 30px; height: 30px; font-size: 14px; }
.af-chartc { margin: 0 0 14px; }
.af-chart { display: block; width: 100%; height: auto; }
.ch-area { fill: color-mix(in srgb, #2E5BD9 70%, #fff); stroke: #FFF9EE; stroke-width: 2; stroke-linejoin: round; }
.ch-axis { stroke: #FFF9EE; stroke-width: 2; }
.ch-you { stroke: #F5A623; stroke-width: 3; }
.ch-flag { fill: #F5A623; stroke: #1A1A2E; stroke-width: 2; }
.ch-ft { fill: #1A1A2E; font: 700 13px var(--sans); }
.ch-tx { fill: #FFF9EE; font: 700 11.5px var(--sans); }
.af-cap { margin: 0 0 8px; font-weight: 700; font-size: 19px; }
.af-capsub { margin: 4px 0 0; color: var(--af-dim); font-weight: 700; font-size: 14.5px; }
.af-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.af-stats li { display: grid; gap: 0; text-align: center; border-radius: 10px; padding: 8px 2px; background: rgba(255, 249, 238, .08); }
.af-stats b { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.af-stats span { font-size: 12.5px; color: var(--af-dim); line-height: 1.15; }
.af-score .af-say { text-align: left; }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.af-row .af-btn { padding: 0 8px; font-size: 16.5px; }
.af-row.one, .af-stats.one { grid-template-columns: 1fr; }
/* Free dives («Otra inmersión», JR, 13 Nov 2026): the button, the note that it doesn't count, and a tag over the sea. */
.af-again { width: 100%; margin: 0 0 10px; }
.af-free { margin: 0 0 12px; font-weight: 700; font-size: 14.5px; color: #F5A623; }
.af-free-tag { position: fixed; z-index: 3; top: calc(14px + env(safe-area-inset-top, 0px)); right: 12px; margin: 0; padding: 4px 10px; border-radius: 10px;
  background: var(--af-glass); color: #F5A623; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.af-copied { margin: 8px 0 0; min-height: 1.3em; font-weight: 700; color: #7CF0CF; }
.af-share { width: 100%; box-sizing: border-box; font: inherit; margin-top: 6px; border: 0; border-radius: 8px; padding: 8px; background: #FFF9EE; color: #1A1A2E; }
.af-next { margin: 4px 0 0; font-weight: 700; color: var(--af-dim); }
.af-next a { color: #F5A623; }

.af-h3 { font-family: var(--slab); font-weight: 400; font-size: 21px; margin: 6px 4px 10px; line-height: 1.15; }
.af-rv { background: var(--af-glass); color: var(--af-cream); border-radius: 12px; margin: 0 0 8px; }
.af-rv > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 8px 12px; min-height: 48px; }
.af-rv > summary::-webkit-details-marker { display: none; }
.af-rv > summary:focus-visible { outline: 3px solid #F5A623; outline-offset: 2px; }
.rv-n { grid-row: span 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; font-weight: 700; background: rgba(255, 249, 238, .15); }
.rv-n.s-hit { background: #0F8B6C; color: #fff; } .rv-n.s-miss { background: #C62839; color: #fff; } .rv-n.s-timeout { box-shadow: inset 0 0 0 2px #F5A623; color: #F5A623; }
.af-rv.s-skipped .rv-n { grid-row: auto; }
.rv-s { grid-column: 2; font-size: 14.5px; color: var(--af-dim); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.af-rv[open] .rv-s { display: none; }
.af-rv > :not(summary) { margin-inline: 12px; }
.af-rv > :last-child { margin-bottom: 12px; padding-bottom: 2px; }
.af-rb.case { box-shadow: none; border: 0; background: transparent; padding: 4px 0 10px; margin: 0 12px; }
.af-rb .qtext { font-size: 17px; }
.af-ropts { display: grid; gap: 8px; }
.af-ropts .opt { cursor: default; font-size: 16px; }
.af-ropts .opt .ob { display: grid; gap: 3px; min-width: 0; }
.af-mk { font-size: 13px; font-weight: 700; }
.opt.ok .af-mk { color: #7CF0CF; } .opt.no .af-mk { color: #FF8A98; }
.af-rat { font-size: 14.5px; color: var(--af-dim); }
.af-exp { margin: 10px 12px 2px; }
.af-exp.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.af-more { margin: 0 12px; min-height: 44px; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; color: #F5A623; cursor: pointer; }
.af-more:focus-visible { outline: 3px solid #F5A623; outline-offset: 2px; }
.af-trap, .af-fb p { margin: 6px 12px 0; font-size: 15.5px; }
.af-src em { font-style: italic; color: var(--af-dim); }
.af-lost { margin: 0 12px 12px; font-weight: 700; color: var(--af-dim); }

/* ---- a wide screen: the question is a card, not a sheet ---- */
@media (min-width: 760px) {
  .af-qp { left: 50%; right: auto; transform: translateX(-50%); width: min(720px, calc(100vw - 48px)); bottom: 24px; border-radius: 18px; padding: 16px 20px 20px; max-height: 62dvh; }
  .af-q .qtext { font-size: 19px; }
  .af-depth b { font-size: 34px; }
  .af-gain { font-size: 60px; }
  .af-pop { top: calc(20dvh + 76px); }
}

@media (prefers-reduced-motion: reduce) {
  .af-wave, .af-star, .af-sea .star, .af-boat, .af-dr, .af-blink, .af-diver .af-spr, .af-diver.bob, .af-diver.plunge, .af-bubs i, .af-pop { animation: none; }
  .af-col, .af-diver { transition: none !important; }
  .af-glow { animation: none; }
  .af-x { animation: none; transform: translateX(var(--xs)); }
}

/* ---- «A fondo» with typed answers, a test (/app/a-fondo-abierto/, JR 18 Nov 2026) ---- */
.ab-tag { margin: 2px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--af-dim); text-align: center; }
.ab-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 4px; }
.ab-in { min-width: 0; min-height: 48px; box-sizing: border-box; padding: 0 12px; font: inherit; font-size: 17px; color: var(--af-cream); background: rgba(255, 249, 238, .08);
  border: 2px solid rgba(255, 249, 238, .35); border-radius: 12px; }
.ab-in::placeholder { color: var(--af-dim); opacity: .8; }
.ab-in:focus-visible { outline: 3px solid #F5A623; outline-offset: 1px; }
.ab-in.s-right { border-color: #1FB58F; background: rgba(15, 139, 108, .28); }
.ab-in.s-half { border-color: #F5A623; background: rgba(245, 166, 35, .18); }
.ab-in.s-wrong, .ab-in.s-timeout { border-color: #E0485A; background: rgba(198, 40, 57, .22); }
.ab-send { min-width: 104px; padding: 0 14px; }
.ab-taken { margin: 8px 0 0; font-size: 15px; color: var(--af-dim); }
.ab-taken b { color: var(--af-cream); }
.pip.s-half { background: #F5A623; color: #1A1A2E; }
.rv-n.s-half { background: #F5A623; color: #1A1A2E; }
.af-pop.half .af-gain { color: #F5A623; } .af-pop.half .af-verdict { color: #FFD58A; }
.af-stats.two { grid-template-columns: 1fr 1fr; }
.ab-rows { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin-block: 8px; font-size: 15px; }
.ab-rows dt { color: var(--af-dim); } .ab-rows dd { margin: 0; overflow-wrap: anywhere; }
.ab-rows .ab-key { font-weight: 700; color: #7CF0CF; }
@media (max-width: 420px) { .ab-form { grid-template-columns: 1fr; } }
.ab-form[hidden] { display: none; }
/* The two modes on the start card (JR 19 Nov 2026): «Opción múltiple» (default) and «Texto libre» x1.5. */
.ab-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.ab-mode { display: grid; gap: 2px; align-content: start; min-height: 64px; padding: 10px 12px; text-align: left; font: inherit; cursor: pointer;
  color: var(--af-cream); background: rgba(255, 249, 238, .06); border: 2px solid rgba(255, 249, 238, .35); border-radius: 12px; }
.ab-mode b { font-size: 16px; }
.ab-mode span { font-size: 13.5px; line-height: 1.25; color: var(--af-dim); }
.ab-mode.on { border-color: #F5A623; background: rgba(245, 166, 35, .16); }
.ab-mode:focus-visible { outline: 3px solid #F5A623; outline-offset: 1px; }
.ab-mode[disabled] { cursor: default; opacity: .7; }
@media (hover: hover) { .ab-mode:hover:not([disabled]):not(.on) { border-color: rgba(245, 166, 35, .7); } }
@media (max-width: 360px) { .ab-modes { grid-template-columns: 1fr; } }
.ab-mode-tag { letter-spacing: .06em; }

/* ---- Guests (/clavado/, JR 18 Nov 2026): the door card and the locked result ---- */
.af-door .af-ts { min-height: 65px; margin: 4px 0 6px; }
.af-doornote { margin: 0 0 8px; min-height: 1.2em; font-size: 14.5px; color: #FF8A98; }
.af-doorin { margin: 12px 0 0; font-size: 14.5px; color: var(--af-dim); }
.af-doorin a { color: var(--af-cream); font-weight: 700; text-underline-offset: 3px; }
/* The result: «Crear cuenta gratis» lies over the outline of a chart, and there is no review. */
.af-chartc.g-lock { position: relative; min-height: 236px; margin: 0 0 10px; }
.g-lock .g-blur { max-height: 236px; overflow: hidden; filter: blur(9px); opacity: .55; pointer-events: none; user-select: none; }
.g-over.g-cta { position: absolute; inset: 6px; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 8px; padding: 12px 14px;
  background: rgba(14, 14, 28, .66); border: 3px solid #F5A623; border-radius: 12px; text-align: center; }
.g-cta .g-h { margin: 0; font-family: var(--slab); font-weight: 400; font-size: 20px; line-height: 1.2; color: #F5A623; text-shadow: 2px 2px 0 #1A1A2E; }
.g-what { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 15px; color: var(--af-cream); }
.g-what li::before { content: "🔒 "; }
.g-cta .af-btn { width: 100%; text-decoration: none; }

/* The card sets the height, and the blurred chart lies behind it, so longer copy never spills out. */
.af-chartc.g-lock { min-height: 0; padding: 6px; }
.g-lock .g-blur { position: absolute; inset: 0; max-height: none; overflow: hidden; }
.g-over.g-cta { position: relative; inset: auto; }

/* A blurred bell curve behind the card (JR, 18 Nov): the shape of «tu percentil», nobody's numbers.
   It replaces the blurred bars. The bright stripe is «you», at no particular place. */
.g-lock .g-blur { display: none; }
.af-chartc.g-lock::before { content: ""; position: absolute; inset: 10px 4px 4px; z-index: 0; pointer-events: none; filter: blur(5px); opacity: .8;
  background: linear-gradient(90deg, transparent 0 66%, #F5A623 66% 69%, transparent 69%), linear-gradient(180deg, #7C9BEE, #2E5BD9);
  clip-path: polygon(0% 100%, 0.0% 94.8%, 2.5% 94.2%, 5.0% 93.4%, 7.5% 92.1%, 10.0% 90.5%, 12.5% 88.3%, 15.0% 85.4%, 17.5% 81.8%, 20.0% 77.5%, 22.5% 72.2%, 25.0% 66.2%, 27.5% 59.3%, 30.0% 52.0%, 32.5% 44.2%, 35.0% 36.4%, 37.5% 28.8%, 40.0% 22.0%, 42.5% 16.2%, 45.0% 11.7%, 47.5% 8.9%, 50.0% 8.0%, 52.5% 8.9%, 55.0% 11.7%, 57.5% 16.2%, 60.0% 22.0%, 62.5% 28.8%, 65.0% 36.4%, 67.5% 44.2%, 70.0% 52.0%, 72.5% 59.3%, 75.0% 66.2%, 77.5% 72.2%, 80.0% 77.5%, 82.5% 81.8%, 85.0% 85.4%, 87.5% 88.3%, 90.0% 90.5%, 92.5% 92.1%, 95.0% 93.4%, 97.5% 94.2%, 100.0% 94.8%, 100% 100%); }
.g-over.g-cta { z-index: 1; background: rgba(14, 14, 28, .5); }

/* The typed-answer dive for a guest: what they typed, with no answers (those wait behind sign-up). */
.ab-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ab-mine li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--af-glass); color: var(--af-cream); }
.ab-mine .rv-n { grid-row: auto; }
.ab-mine-t { display: grid; min-width: 0; } .ab-mine-t b { overflow-wrap: anywhere; } .ab-mine-t span { font-size: 14px; color: var(--af-dim); overflow-wrap: anywhere; }
.ab-mine-s { font-size: 14px; color: var(--af-dim); white-space: nowrap; }
