/* The landing, design B «Todo el mar» (JR, 18–19 Nov 2026): the dive's pixel sea (afondo.css tokens) is
   the page. Ported from mockups/landing/b/b.css on branch design/landing-options, with the pieces of the
   mockups' shared.css the page uses. Panels are square, with stepped pixel corners and hard edges. */

.pix { image-rendering: pixelated; }
.ph-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 700 .72rem/1.6 var(--sans); letter-spacing: .04em; text-transform: uppercase; border: 2px dashed currentColor; opacity: .8; }

/* The boats sit two art pixels lower, behind a deeper band of water (portada/waterline.ts), and rock a
   little less, so no hull edge shows under the front wave (JR, 18 Nov). Units are art pixels. */
.b-body .af-sea .af-boat { animation-name: b-boat; }
@keyframes b-boat { from { transform: translateY(1.6px) rotate(-.8deg); } to { transform: translateY(2.6px) rotate(.8deg); } }
@media (prefers-reduced-motion: reduce) { .b-body .af-sea .af-boat { transform: translateY(2px); } }

.b-body { background: var(--sea-floor); background-image: none; color: var(--af-cream); overflow-x: hidden; }
.b-body a { color: inherit; }
.b-main { position: relative; z-index: 1; }

/* Stepped corners: a pixel "rounded" box. */
.b-panel, .b-top nav a, .b-theme, .b-body .af-btn {
  --s: 4px;
  clip-path: polygon(0 calc(2 * var(--s)), var(--s) calc(2 * var(--s)), var(--s) var(--s), calc(2 * var(--s)) var(--s), calc(2 * var(--s)) 0,
    calc(100% - 2 * var(--s)) 0, calc(100% - 2 * var(--s)) var(--s), calc(100% - var(--s)) var(--s), calc(100% - var(--s)) calc(2 * var(--s)), 100% calc(2 * var(--s)),
    100% calc(100% - 2 * var(--s)), calc(100% - var(--s)) calc(100% - 2 * var(--s)), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - 2 * var(--s)) calc(100% - var(--s)), calc(100% - 2 * var(--s)) 100%,
    calc(2 * var(--s)) 100%, calc(2 * var(--s)) calc(100% - var(--s)), var(--s) calc(100% - var(--s)), var(--s) calc(100% - 2 * var(--s)), 0 calc(100% - 2 * var(--s)));
  border-radius: 0;
}
.b-panel { background: rgba(14, 14, 28, .9); color: var(--af-cream); padding: 20px 18px; border: 4px solid var(--af-cream); }
.b-body .af-btn { text-decoration: none; box-shadow: none; }
.b-body .af-btn.ghost { box-shadow: inset 0 0 0 3px rgba(255, 249, 238, .7); }

/* Top bar */
.b-top { position: fixed; z-index: 6; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; pointer-events: none; }
.b-top > * { pointer-events: auto; }
.b-brand { font-family: var(--slab); font-size: 1.1rem; text-decoration: none; color: #1A1A2E; }
.b-under .b-brand { color: var(--af-cream); }
:root[data-theme="dark"] .b-brand { color: var(--af-cream); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b-brand { color: var(--af-cream); } }
.b-top nav { display: flex; gap: 8px; align-items: center; }
.b-top nav a, .b-theme { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; background: #1A1A2E; color: var(--af-cream); font: 700 .95rem/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; }
.b-top nav .b-in { background: #F5A623; color: #1A1A2E; }
.b-top :focus-visible { outline: 3px solid #F5A623; outline-offset: 2px; }

/* Zones: one screen each; the panel sits low on a phone so Rojelio shows above it. */
.b-zone { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 46vh 12px 28px; box-sizing: border-box; }
.b-zone h2 { margin: 0 0 12px; font: 400 clamp(1.5rem, 6vw, 2.1rem)/1.12 var(--slab); color: #F5A623; text-shadow: 3px 3px 0 #1A1A2E; }
.b-zname { margin: 0 0 6px; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #B9C8F3; }
.b-wide { width: 100%; max-width: 1040px; margin: 0 auto; }
.b-left, .b-right, .b-end { width: 100%; max-width: 440px; margin: 0 auto; }
@media (min-width: 900px) {
  .b-zone { justify-content: center; padding: 90px 5vw 60px; }
  .b-left { margin: 0 auto 0 0; } .b-right { margin: 0 0 0 auto; }
  .b-wide { margin-top: 30vh; }
}

/* Hero */
.b-hero { padding-top: 0; position: relative; }
.b-title { position: absolute; top: 9vh; left: 0; right: 0; margin: 0; text-align: center; font: 400 clamp(52px, 16vw, 104px)/1 var(--slab); color: #F5A623; text-shadow: 4px 4px 0 #1A1A2E; pointer-events: none; }
.b-start { width: 100%; max-width: 460px; margin: 0 auto; text-align: center; }
@media (min-width: 900px) { .b-hero { justify-content: flex-end; padding-bottom: 40px; } }
.b-no { margin: 0 0 4px; font: 400 1.5rem/1.1 var(--slab); }
.b-lead { margin: 0 0 10px; font-weight: 700; }
.b-say { margin: 0 0 14px; padding: 9px 12px; text-align: left; background: rgba(255, 249, 238, .08); font-size: .97rem; }
.b-say b { display: block; font-size: .82rem; color: #F5A623; }
.b-go { width: 100%; font-size: 1.25rem; min-height: 58px; }
.b-fine { margin: 10px 0 0; font-size: .88rem; color: var(--af-dim); }
.b-big { margin: 0; font: 400 3rem/1 var(--slab); color: #F5A623; }
.b-start .b-res { margin-bottom: 14px; }
.b-scroll { margin: 12px 0 0; text-align: center; font-weight: 700; font-size: .85rem; color: var(--af-cream); opacity: .85; animation: b-nudge 1.4s steps(2, end) infinite; }
@keyframes b-nudge { 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .b-scroll { animation: none; } }

.b-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.b-list li { padding-left: 22px; position: relative; }
.b-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; background: #F5A623; }
.b-signs { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.b-signs li { display: flex; gap: 12px; align-items: flex-start; }
.b-signs img { flex: 0 0 48px; width: 48px; height: 50px; }

/* Bottles and chests */
.b-bottles, .b-chests { display: grid; gap: 16px; }
@media (min-width: 760px) { .b-bottles, .b-chests { grid-template-columns: repeat(3, 1fr); } }
.b-ico { display: block; height: 48px; width: auto; margin: 0 0 10px; image-rendering: pixelated; }
.b-bottle { margin: 0; }
.b-bottle blockquote { margin: 0 0 12px; font-size: 1.08rem; line-height: 1.4; }
.b-bottle blockquote::before { content: "«"; } .b-bottle blockquote::after { content: "»"; }
.b-bottle figcaption { font-size: .88rem; color: var(--af-dim); display: grid; gap: 6px; justify-items: start; }
@media (min-width: 760px) { .b-bottle:nth-child(2) { transform: translateY(26px); } .b-bottle:nth-child(3) { transform: translateY(-10px); } }
.b-sub { margin: 0 0 16px; max-width: 56ch; }
.b-chest { display: flex; flex-direction: column; gap: 8px; }
.b-chest h3 { margin: 0; font: 400 1.35rem/1.15 var(--slab); }
.b-chest p { margin: 0; }
.b-chest .af-btn { margin-top: auto; }
.b-chest > p:last-of-type { margin-bottom: 12px; }
.b-price { color: var(--af-dim); }
.b-price b { font: 400 2.1rem/1.1 var(--slab); color: var(--af-cream); margin-right: 4px; }
.b-best { border-color: #F5A623; }
.b-flag { align-self: flex-start; padding: 2px 8px; background: #E6007E; color: #fff; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }

/* The floor */
.b-floor { justify-content: flex-end; gap: 22px; }
.b-end { text-align: center; }
.b-end p { margin: 0 0 14px; }
.b-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.b-row .af-btn { flex: 1 1 150px; }
.b-foot { text-align: center; font-size: .9rem; color: var(--af-dim); }
.b-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
.b-foot a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; color: var(--af-cream); }
.b-foot p { margin: 4px 0 0; }

/* The sea's own depth pill: under the top bar on a phone, hidden at the surface. */
.b-body .af-depth { top: calc(58px + env(safe-area-inset-top, 0px)); }
.b-body:not(.b-under) .af-depth { display: none; }
@media (min-width: 900px) { .b-body .af-depth { top: 10px; } }
.b-body .af-btn.ghost { background: rgba(255, 249, 238, .16); box-shadow: none; }

/* «Crear cuenta gratis» stays within reach once the hero has scrolled away (hidden for an account). */
.b-body .b-fab { display: none; position: fixed; z-index: 6; right: 12px; bottom: calc(40px + env(safe-area-inset-bottom, 0px)); min-height: 52px; padding: 0 26px; font-size: 1.1rem; }
.b-body.b-under .b-fab { display: inline-flex; }
@media (max-width: 899px) { .b-zone:not(.b-hero) { padding-bottom: 104px; } }

/* ---- v2 (JR, 18 Nov): a shorter page. Sections are as tall as their content, with a stretch of
   open sea between them; rows that would stack on a phone scroll sideways instead. ---- */
.b-zone:not(.b-hero) { min-height: 0; justify-content: flex-start; padding: 16vh 12px 0; }
.b-zone.b-floor { padding-bottom: 28px; gap: 28px; }
@media (max-width: 899px) { .b-zone:not(.b-hero) { padding-bottom: 0; } .b-zone.b-floor { padding-bottom: 104px; } }
@media (min-width: 900px) { .b-zone:not(.b-hero) { padding: 20vh 5vw 0; } .b-wide { margin-top: 0; } }
.b-body .af-depth span { display: none; } /* metres only: no zone names on the landing */
.b-p { margin: 0 0 14px; }

/* The platform: the counter beside the pitch */
.b-about { display: grid; gap: 16px; }
@media (min-width: 900px) { .b-about { grid-template-columns: 320px 1fr; align-items: stretch; } }
.b-count { display: flex; flex-direction: column; justify-content: center; text-align: center; border-color: #F5A623; }
.b-count-n { margin: 0; font: 400 1.6rem/1 var(--slab); color: var(--af-cream); }
.b-count-n b { display: block; font: 400 clamp(4.5rem, 22vw, 6.5rem)/.95 var(--slab); color: #F5A623; text-shadow: 4px 4px 0 #1A1A2E; font-variant-numeric: tabular-nums; }
.b-count-t { margin: 8px 0 0; font-size: 1.05rem; }
.b-count-t strong { display: block; color: #F5A623; }

/* Sideways rows */
.b-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 12px 14px; margin: 0 -12px; scrollbar-width: thin; scrollbar-color: #F5A623 transparent; }
.b-rail > * { scroll-snap-align: center; flex: 0 0 auto; }
@media (min-width: 900px) { .b-rail { overflow: visible; margin: 0; padding: 4px 0 0; } .b-rail > * { flex: 1 1 0; min-width: 0; } }

/* Game screens: a pixel frame around each capture */
.b-shot { margin: 0; width: 232px; }
.b-shot img { display: block; width: 100%; height: auto; border: 4px solid var(--af-cream); background: #F1E4CA; box-shadow: 6px 6px 0 #0E0E1C; }
.b-shot figcaption { margin-top: 12px; font-size: .95rem; line-height: 1.35; }
.b-shot figcaption b { display: block; font: 400 1.15rem/1.2 var(--slab); color: #F5A623; }
.b-shot figcaption i { display: block; margin-top: 4px; font-style: normal; font-size: .82rem; color: var(--af-dim); }
@media (min-width: 900px) { .b-shot { width: auto; } }

/* Testimonials: plain quote cards */
/* The quotes carry their own « » (as written), so no drawn quote mark. */
.b-quote { margin: 0; width: 280px; position: relative; }
.b-quote blockquote { margin: 0 0 12px; font-size: 1rem; line-height: 1.42; }
.b-quote figcaption { font-size: .88rem; color: var(--af-dim); display: grid; gap: 4px; justify-items: start; }
.b-quote figcaption b { color: var(--af-cream); }
@media (min-width: 900px) { .b-quote { width: auto; } }

/* Plans, tighter */
.b-chest { padding: 16px; }
.b-chests { gap: 12px; }

/* Register: the ten free games by subject */
.b-end { max-width: 760px; text-align: left; }
.b-end h2 { text-align: center; }
.b-end > .b-p { text-align: center; }
.b-free { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px 18px; }
@media (min-width: 620px) { .b-free { grid-template-columns: 1fr 1fr; } }
.b-free li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.b-free b { flex: 0 0 100%; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #B9C8F3; }
.b-free span { padding: 3px 10px; background: rgba(255, 249, 238, .12); font-size: .95rem; }

/* Phone: the ruler at the right already shows the depth; the pill would sit under the headings. */
@media (max-width: 899px) { .b-body .af-depth { display: none; } .b-row .af-btn { flex: 1 1 100%; } }
/* The fixed button steps aside at the register section, which has its own buttons. */
.b-body.b-atfloor .b-fab { display: none; }

/* ---- v3 (JR, 18 Nov): live game screens, and cards off-centre on desktop ---- */

/* A stage: a slice of the game's own screen (game.css + medviz.css), on the game's paper. */
.b-shot { width: 300px; }
.b-stage.game {
  max-width: none; margin: 0; padding: 12px; box-sizing: border-box; height: 372px; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  background-color: var(--bg); background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px); background-size: 18px 18px;
  color: var(--text); border: 4px solid var(--af-cream); box-shadow: 6px 6px 0 #0E0E1C; font-size: 15px; line-height: 1.35; text-align: left;
}
.b-stage > img { display: block; width: calc(100% + 24px); max-width: none; margin: -12px; border: 0; box-shadow: none; }
.b-stage .codemon { margin: 0; padding: 8px 10px 10px; box-shadow: 4px 4px 0 var(--ink); }
.b-stage .codemon .mon-top { font-size: 11px; }
.b-stage .codemon .screen { height: 84px; }
.b-stage .codemon .ro b { font-size: 17px; }
.b-stage .codemon .ro small { font-size: 10.5px; }
.b-q { background: var(--paper); color: var(--line); border: 2px solid var(--line); border-radius: 12px; box-shadow: 3px 3px 0 var(--line); padding: 8px 12px; }
.b-q p { margin: 0; }
.b-q .b-qq { margin-top: 4px; font-weight: 700; }
.b-stage .ecg { margin: 0; }
.b-stage .ecg .lead { transition: background-color .2s ease; border-radius: 4px; }
.b-stage .ecg .lead.on { background: #F6A21E; box-shadow: 0 0 0 2px #1A1A2E; }
.b-vac { display: inline-block; margin-top: 6px; padding: 2px 12px; background: #EFC343; color: #1A1A2E; border: 2px solid #1A1A2E; border-radius: 8px; font-weight: 700; }
.b-hint { margin: 0; color: var(--muted); }
.b-map { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.b-map .fig { height: 100%; width: auto; max-width: 100%; }
.b-map .fig .z { transition: fill .18s ease; }
.b-map .fig .z.sel { fill: #F6A21E; stroke-width: 3; }
.b-tap { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #E4007C; opacity: 0; pointer-events: none; }
.b-tap.go { animation: b-tap .7s ease-out; }
@keyframes b-tap { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.7); } }
.b-eyebox { display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 12px; box-shadow: 3px 3px 0 var(--line); padding: 10px; }
.b-eyebox .eye .pp { transition: r .6s ease; }
.b-opts { display: grid; gap: 6px; }
.b-opt { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--paper); color: var(--line); border: 2px solid var(--line); border-radius: 10px; transition: background-color .2s ease; }
.b-opt b { width: 24px; height: 24px; display: grid; place-items: center; background: var(--line); color: var(--paper); border-radius: 6px; font-size: .85rem; }
.b-opt.on { background: #F6A21E; }
@media (prefers-reduced-motion: reduce) { .b-stage * { transition: none !important; } }

/* Desktop: cards hug one side, alternating, so Rojelio (in the middle) and the ruler stay in view. */
@media (min-width: 900px) {
  .b-zone:not(.b-hero) > .b-wide { width: min(40vw, 560px); max-width: none; margin: 0 auto 0 4vw; }
  .b-zone:not(.b-hero):nth-of-type(odd) > .b-wide { margin: 0 9vw 0 auto; }
  .b-about { grid-template-columns: 1fr; }
  .b-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; overflow: visible; }
  .b-quotes, .b-chests { grid-template-columns: 1fr; }
  .b-quote, .b-shot { width: auto; }
  .b-bottle:nth-child(n), .b-quote:nth-child(n) { transform: none; }
  .b-chest { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; }
  .b-chest > * { grid-column: 1; }
  .b-chest > .af-btn { grid-column: 2; grid-row: 1 / span 4; margin: 0; align-self: center; min-width: 150px; }
  .b-chest > p:last-of-type { margin-bottom: 0; }
  .b-end { max-width: none; }
  .b-free { grid-template-columns: 1fr; }
  .b-stage.game { height: 350px; }
}

/* Desktop, tuned: each card fits the free half (left of Rojelio, or between him and the ruler).
   The game screens keep their phone size and scroll sideways inside the card. */
@media (min-width: 900px) {
  .b-zone:not(.b-hero) > .b-wide { width: min(36vw, 480px); }
  .b-zone:not(.b-hero):nth-of-type(odd) > .b-wide { margin: 0 3vw 0 auto; }
  .b-rail.b-shots { display: flex; overflow-x: auto; gap: 14px; padding-bottom: 14px; }
  .b-rail.b-shots > * { flex: 0 0 300px; }
  .b-stage.game { height: 372px; }
}
.b-map .fig { height: 205px; max-height: 100%; }

/* ---- v4 (JR, 18 Nov): on desktop the multi-card sections use BOTH sides of Rojelio, at different
   heights, so nothing scrolls sideways. A three-track grid: left, a free lane for him, right. ---- */
@media (min-width: 900px) {
  .b-zone:not(.b-hero) > .b-wide.b-split {
    --mid: 250px; --drop: 70px;
    width: auto; max-width: none; margin: 0 56px 0 0; /* the right margin clears the depth ruler */
    display: grid; grid-template-columns: minmax(0, 1fr) var(--mid) minmax(0, 1fr); column-gap: 0; row-gap: 18px; align-items: start;
  }
  .b-split > * { grid-column: 1; }
  .b-split > .b-rail, .b-split > .b-chests { display: contents; }
  .b-split h2, .b-split .b-sub { margin-bottom: 0; }

  /* Three cards (testimonials, plans): first and third on the left, the second alone on the right, lower. */
  .b-split-3 > h2 { grid-row: 1; }
  .b-split-3 > .b-sub { grid-row: 2; }
  .b-split-3 :is(.b-quote, .b-chest):nth-child(1) { grid-column: 1; grid-row: 3; }
  .b-split-3 :is(.b-quote, .b-chest):nth-child(3) { grid-column: 1; grid-row: 4; }
  .b-split-3 :is(.b-quote, .b-chest):nth-child(2) { grid-column: 3; grid-row: 2 / span 3; align-self: center; margin-top: var(--drop); }
  .b-split-3 > .b-fine { grid-row: 5; }
  .b-split-3 .b-chest:nth-child(2) { display: flex; flex-direction: column; padding: 22px; }
  .b-split-3 .b-chest:nth-child(2) > .af-btn { margin-top: 14px; }

  /* Six testimonials: three each side of Rojelio, the right column lower. */
  .b-split-quotes > h2 { grid-row: 1; }
  .b-split-quotes .b-quote:nth-child(odd) { grid-column: 1; }
  .b-split-quotes .b-quote:nth-child(even) { grid-column: 3; position: relative; top: var(--drop); }
  .b-split-quotes .b-quote:nth-child(-n+2) { grid-row: 2; }
  .b-split-quotes .b-quote:nth-child(n+3):nth-child(-n+4) { grid-row: 3; }
  .b-split-quotes .b-quote:nth-child(n+5) { grid-row: 4; }
  .b-zone:not(.b-hero) > .b-wide.b-split-quotes { padding-bottom: var(--drop); }

  /* Four game screens: one column each side, the right one lower. */
  .b-split-shots > h2 { grid-row: 1; }
  .b-split-shots .b-shot { width: auto; max-width: 380px; }
  .b-split-shots .b-shot:nth-child(1) { grid-column: 1; grid-row: 2; }
  .b-split-shots .b-shot:nth-child(2) { grid-column: 1; grid-row: 3; }
  .b-split-shots .b-shot:nth-child(3) { grid-column: 3; grid-row: 2; }
  .b-split-shots .b-shot:nth-child(4) { grid-column: 3; grid-row: 3; }
  .b-split-shots .b-shot:nth-child(n+3) { position: relative; top: var(--drop); }
  .b-split-shots > .b-fine { grid-row: 4; margin-top: 0; }
}
/* Wide screens: two game screens side by side on each side of him. */
@media (min-width: 1500px) {
  .b-zone:not(.b-hero) > .b-wide.b-split-shots { grid-template-columns: repeat(2, minmax(0, 1fr)) var(--mid) repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .b-split-shots > h2, .b-split-shots > .b-fine { grid-column: 1 / span 2; }
  .b-split-shots .b-shot { max-width: none; }
  .b-split-shots .b-shot:nth-child(1) { grid-column: 1; grid-row: 2; }
  .b-split-shots .b-shot:nth-child(2) { grid-column: 2; grid-row: 2; }
  .b-split-shots .b-shot:nth-child(3) { grid-column: 4; grid-row: 2; }
  .b-split-shots .b-shot:nth-child(4) { grid-column: 5; grid-row: 2; }
  .b-split-shots > .b-fine { grid-row: 3; }
}
@media (min-width: 900px) { .b-split-shots .b-stage.game { height: 408px; } .b-split-3 .b-chest:nth-child(2) > * { align-self: flex-start; } }

/* v5 (JR, 18 Nov): the register card sits under Rojelio, centred and wide, on desktop. The section
   is a full screen tall with the card at its foot, so he floats above it when the page ends. */
@media (min-width: 900px) {
  .b-zone.b-floor:not(.b-hero) { min-height: 100svh; justify-content: flex-end; padding-top: 44vh; }
  .b-zone.b-floor:not(.b-hero) > .b-wide { width: min(100%, 960px); margin: 0 auto; }
  .b-floor .b-free { grid-template-columns: repeat(3, 1fr); gap: 14px 22px; }
  .b-floor .b-row { justify-content: center; }
  .b-floor .b-row .af-btn { flex: 0 1 280px; }
}
.b-h2sub { display: block; margin-top: 6px; font: 700 clamp(1.05rem, 3.6vw, 1.3rem)/1.3 var(--sans); color: var(--af-cream); text-shadow: none; }

/* The platform section: the counter on one side of Rojelio, the pitch on the other, lower (desktop). */
@media (min-width: 900px) {
  .b-about.b-split > .b-count { grid-column: 1; grid-row: 1; justify-self: end; width: min(100%, 380px); padding-block: 30px; }
  .b-about.b-split > .b-panel:nth-child(2) { grid-column: 3; grid-row: 1; margin-top: var(--drop); max-width: 520px; }
}

/* v6 (JR, 18 Nov): a bigger brand, and the hero title with its subtitle. */
.b-brand { font-size: clamp(1.5rem, 5.6vw, 2.2rem); line-height: 1; text-shadow: 2px 2px 0 #F5A623; }
.b-under .b-brand, :root[data-theme="dark"] .b-brand { text-shadow: 2px 2px 0 #1A1A2E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b-brand { text-shadow: 2px 2px 0 #1A1A2E; } }
.b-title { top: calc(64px + 2vh); padding: 0 12px; font-size: clamp(40px, 10.5vw, 84px); }
.b-title span { display: block; margin-top: 8px; font: 700 clamp(1.05rem, 4.2vw, 1.6rem)/1.25 var(--sans); color: #1A1A2E; text-shadow: none; }
:root[data-theme="dark"] .b-title span { color: var(--af-cream); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b-title span { color: var(--af-cream); } }
/* The brand reads on the sky (ink) and under water or at night (cream). */
.b-body .b-brand { color: #1A1A2E; }
.b-body.b-under .b-brand, :root[data-theme="dark"] .b-body .b-brand { color: var(--af-cream); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b-body .b-brand { color: var(--af-cream); } }

/* Scrolling up: he tips his nose up, swimming. (The sprite inside keeps its own gentle float.) */
.b-body .af-diver { transition: rotate .25s ease; }
.b-body.b-up .af-diver:not(.jump) { rotate: -22deg; }
@media (prefers-reduced-motion: reduce) { .b-body.b-up .af-diver { rotate: none; } }

/* v7 (JR, 18 Nov): the start card always fits the first screen on a phone, and a clear cue that
   there is more below, worded for the device (a finger on touch screens, the wheel on a computer). */
.b-scroll {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px auto 0; min-height: 44px; padding: 0 16px;
  background: rgba(14, 14, 28, .78); color: var(--af-cream); border: 0; cursor: pointer; font: 700 .95rem/1.2 var(--sans); opacity: 1; animation: none;
  clip-path: none; border-radius: 0; box-shadow: inset 0 0 0 2px rgba(255, 249, 238, .55);
}
.b-scroll i { font-style: normal; font-size: 1.3rem; line-height: 1; color: #F5A623; animation: b-nudge 1s steps(2, end) infinite; }
.b-scroll:focus-visible { outline: 3px solid #F5A623; outline-offset: 2px; }
.b-scroll .b-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .b-scroll .b-touch { display: inline; } .b-scroll .b-mouse { display: none; } }
@media (prefers-reduced-motion: reduce) { .b-scroll i { animation: none; } }

@media (max-width: 899px) {
  /* Exactly one screen: title on top, Rojelio on his boat, the card and the cue at the foot. */
  .b-hero { height: 100vh; height: 100svh; min-height: 0; padding: 0 12px calc(40px + env(safe-area-inset-bottom, 0px)); }
  /* A compact card, so Rojelio's boat shows above it (JR, 19 Nov 2026). */
  .b-start { padding: 10px 12px; border-width: 3px; }
  .b-start .b-no { font-size: 1.15rem; margin-bottom: 2px; }
  .b-start .b-lead { margin-bottom: 8px; font-size: .9rem; }
  .b-start .b-go { min-height: 46px; font-size: 1.1rem; }
  .b-start .b-big { font-size: 2.4rem; }
  .b-start .b-fine { margin-top: 6px; font-size: .78rem; }
  .b-say { display: none; } /* his line comes back on tall phones, below */
}
@media (max-width: 899px) and (min-height: 880px) { .b-say { display: block; } }
/* Short phones (a browser bar eats the height): no fine print, so the boat stays in view. */
@media (max-width: 899px) and (max-height: 700px) { .b-start .b-fine { display: none; } }
@media (max-width: 899px) and (max-height: 620px) {
  .b-title { top: 54px; font-size: 34px; }
  .b-title span { font-size: .95rem; margin-top: 4px; }
  .b-start .b-fine { display: none; }
}
/* Short laptop screens: the same care as on phones. */
@media (min-width: 900px) and (max-height: 720px) {
  .b-say { display: none; }
  .b-title { top: 56px; font-size: clamp(40px, 5.2vw, 60px); }
  .b-title span { font-size: 1.15rem; margin-top: 4px; }
  .b-hero { padding-bottom: 16px; }
  .b-start { padding: 12px 16px; }
}
.b-brand { white-space: nowrap; }
@media (max-width: 899px) {
  .b-brand { font-size: clamp(1.25rem, 5.4vw, 1.7rem); }
  .b-top nav a, .b-theme { padding: 0 11px; }
  .b-hero { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); } /* the cue sits above the mockup's labels */
  .b-scroll { margin-top: 8px; min-height: 40px; }
}

/* v8 (JR, 18 Nov): the «there is more below» cue, much more obvious: a cream sign as wide as the start
   card, bold ink text, an arrow on each side, and the whole sign bobbing. Cream, so the main button (orange)
   stays the main button. */
.b-scroll {
  width: 100%; max-width: 460px; min-height: 48px; gap: 12px; margin-top: 12px;
  background: #FFF9EE; color: #1A1A2E; font: 700 1.08rem/1.2 var(--sans); letter-spacing: .01em;
  box-shadow: none; border: 3px solid #1A1A2E; animation: b-bob 1.5s ease-in-out infinite;
}
.b-scroll i { color: #E4007C; font-size: 1.05rem; animation: b-nudge .8s steps(2, end) infinite; }
.b-scroll:hover { background: #F5A623; }
@keyframes b-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-width: 899px) { .b-scroll { min-height: 40px; margin-top: 8px; font-size: .95rem; } }
@media (prefers-reduced-motion: reduce) { .b-scroll, .b-scroll i { animation: none; } }

/* The section menu: a ☰ button with the other floating buttons, and a pixel panel under them. */
.b-menu span { font-size: 1.25rem; line-height: 1; }
.b-menulist {
  position: absolute; top: calc(100% - 2px); right: 12px; margin: 0; padding: 8px; list-style: none; width: min(270px, calc(100vw - 24px));
  background: #1A1A2E; border: 3px solid var(--af-cream); box-shadow: 6px 6px 0 rgba(14, 14, 28, .55); pointer-events: auto;
}
.b-menulist a { display: flex; align-items: center; min-height: 46px; padding: 0 12px; color: var(--af-cream); font: 700 1rem/1.2 var(--sans); text-decoration: none; }
.b-menulist a:hover, .b-menulist a:focus-visible { background: #F5A623; color: #1A1A2E; outline: none; }
.b-menulist li + li { border-top: 2px solid rgba(255, 249, 238, .16); }
.b-top { position: fixed; }

/* «Arriba»: shows once the page is under water, stacked over the fixed «Crear cuenta gratis». */
.b-totop {
  display: none; position: fixed; z-index: 6; right: 12px; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); min-height: 44px; padding: 0 14px;
  align-items: center; gap: 6px; background: #1A1A2E; color: var(--af-cream); border: 2px solid rgba(255, 249, 238, .6); font: 700 .92rem/1 var(--sans); cursor: pointer;
}
.b-totop span { color: #F5A623; }
.b-body.b-under .b-totop { display: inline-flex; }
.b-totop:hover { background: #F5A623; color: #1A1A2E; } .b-totop:hover span { color: #1A1A2E; }
.b-totop:focus-visible { outline: 3px solid #F5A623; outline-offset: 2px; }

/* A quiet list of the sections in the sky, between the brand and the sailboat (JR, 18 Nov). Wide
   screens with room for it only; phones and short windows use the ☰ button. It belongs to the first
   screen, so it scrolls away with it. */
.b-sky { display: none; }
@media (min-width: 1240px) and (min-height: 700px) {
  .b-sky { position: absolute; z-index: 2; left: 14px; top: 78px; display: grid; gap: 2px; }
  .b-body .b-sky a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 4px; color: #1A1A2E; font: 700 .95rem/1.2 var(--sans); text-decoration: none; opacity: .78; }
  .b-body .b-sky a::before { content: "›"; margin-right: 7px; color: #E4007C; font-weight: 700; }
  .b-body .b-sky a:hover, .b-body .b-sky a:focus-visible { opacity: 1; text-decoration: underline; text-underline-offset: 4px; outline: none; }
  :root[data-theme="dark"] .b-body .b-sky a { color: var(--af-cream); }
}
@media (min-width: 1240px) and (min-height: 700px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b-body .b-sky a { color: var(--af-cream); } }

/* No depth box on the landing at any size (JR, 18 Nov): the ruler at the right shows the metres. */
.b-body .af-depth { display: none !important; }


/* ---- v9 (JR, 24 Nov 2026): the landing sells the account and its ten free games. ---- */
/* «Ya tengo cuenta · Entrar» under the main button: a plain text link with a full tap height. */
.b-start .b-fine { margin-top: 6px; }
.b-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--af-cream); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.b-login:focus-visible { outline: 3px solid #F5A623; outline-offset: 2px; }
@media (max-width: 899px) { .b-start .b-fine { display: block; margin-top: 2px; font-size: .92rem; } .b-login { min-height: 40px; } }
.b-body .b-fab { padding: 0 20px; }

/* The gallery: one lotería card per free game (DESIGN.md §4: number in the corner, a big pixel object,
   the slab title on a band in the subject's colour), sliding sideways in an endless loop. Two copies
   of the list side by side, and the track moves by one copy. Paused on hover, on focus and while
   touched; under reduced motion it stands still and scrolls by hand. The cards stay printed cards
   (cream and ink) in both themes. */
.b-gal h2 { margin-bottom: 4px; }
.b-reel { overflow: hidden; margin: 0 -12px; padding: 14px 0 22px; }
.b-track { display: flex; width: max-content; animation: b-reel 55s linear infinite; }
.b-reel:hover .b-track, .b-reel:focus-within .b-track, .b-reel.b-held .b-track { animation-play-state: paused; }
@keyframes b-reel { to { transform: translateX(-50%); } }
.b-tiles { display: flex; gap: 20px; margin: 0; padding: 0 20px 0 0; list-style: none; }
.b-tiles > li { flex: 0 0 auto; display: flex; }
.b-body .b-tile {
  --paper: #FFF9EE; --card-ink: #1A1A2E;
  width: 176px; min-height: 248px; background: #FFF9EE; color: #1A1A2E; text-decoration: none;
  box-shadow: 0 0 0 3px #1A1A2E, 6px 6px 0 3px #0E0E1C; transition: transform .15s, box-shadow .15s;
}
.b-tile .num { color: #1A1A2E; }
.b-tile .ico { display: block; width: 96px; height: 96px; margin: 34px auto 12px; image-rendering: pixelated; }
.b-tile .ttl { display: flex; align-items: center; justify-content: center; min-height: 2.5em; font-size: 17px; color: var(--ct, #FFFFFF); }
.b-tile .b-tile-sub { padding: 6px 8px 8px; font-size: 13px; font-weight: 700; line-height: 1.2; color: #1A1A2E; }
@media (hover: hover) { .b-body .b-tile:hover { transform: translate(-2px, -2px) rotate(-1deg); } }
.b-body .b-tile:active { transform: translate(3px, 3px); box-shadow: 0 0 0 3px #1A1A2E, 3px 3px 0 3px #0E0E1C; }
.b-body .b-tile:focus-visible { outline: 3px solid #F5A623; outline-offset: 6px; }
@media (min-width: 900px) {
  .b-zone:not(.b-hero) > .b-wide.b-gal { width: auto; max-width: none; margin: 0 56px 0 0; } /* clears the depth ruler */
  .b-gal .b-reel { margin: 0; }
  .b-body .b-tile { width: 196px; min-height: 262px; }
}
@media (prefers-reduced-motion: reduce) {
  .b-track { animation: none; width: auto; }
  .b-copy { display: none; }
  .b-reel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #F5A623 transparent; }
  .b-tiles { padding-left: 12px; }
  .b-tiles > li { scroll-snap-align: start; scroll-margin-left: 12px; }
  .b-body .b-tile { transition: none; }
}
/* The hero title is longer since 24 Nov («Estudia para el ENARM jugando»): smaller on desktop so it
   clears Rojelio on his boat, and narrower where the sky's section links show, so it never runs into
   them. On phones his line comes back from 740 px tall: the card is shorter than the dive's was. */
@media (min-width: 900px) { .b-title { font-size: clamp(36px, 3.4vw, 52px); } }
@media (min-width: 1240px) and (min-height: 700px) { .b-title { padding: 0 250px; } }
@media (max-width: 899px) and (min-height: 740px) { .b-say { display: block; } }
