/* The Florida Year: the shared world engine styles (all pages, EN + ES). */
:root {
  --palm: #14532d; --leaf: #15803d; --sun: #ea580c; --sun-dark: #c2410c; --sand: #fffbeb; --sand-2: #fef3c7;
  --teal: #0f766e; --teal-2: #14b8a6; --night: #1e293b; --ink: #1c1917; --ink-soft: #44403c; --line: #e7e5e4;
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- the scene ---------- */
.world {
  position: relative; overflow: hidden; overflow-x: clip; isolation: isolate;
  height: clamp(640px, 92vh, 820px); background: #fde7c4; touch-action: pan-y;
  --t: 0; --dark: 0; --storm: 0;
}
.world.short { height: clamp(520px, 74vh, 660px); }
.layer { position: absolute; left: 0; right: 0; pointer-events: none; }
.sky { inset: 0; background: linear-gradient(180deg, var(--sky-top, #f9d9a8) 0%, var(--sky-mid, #fde7c4) 55%, var(--sky-bot, #fff3dc) 75%); transition: background 0.2s; }
.sky::after { /* night stars */
  content: ""; position: absolute; inset: 0 0 40% 0; opacity: var(--dark);
  background-image: radial-gradient(1.5px 1.5px at 12% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 52% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 10%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 86% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 6%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 6% 36%, #fff 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { to { filter: brightness(1.6); } }
.cloud { position: absolute; width: 260px; height: 90px; opacity: calc(0.9 - var(--dark) * 0.5); filter: blur(0.3px); animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fffaf0, #fde2c0 70%); }
.cloud::before { width: 60%; height: 100%; left: 10%; top: 0; }
.cloud::after { width: 70%; height: 70%; left: 30%; top: 30%; }
.cloud.c1 { top: 9%; left: -30%; animation-duration: 90s; }
.cloud.c2 { top: 20%; left: -40%; transform: scale(0.7); animation-duration: 120s; animation-delay: -60s; }
.cloud.c3 { top: 4%; left: -50%; transform: scale(1.2); animation-duration: 150s; animation-delay: -20s; }
@keyframes drift { to { translate: 180vw 0; } }

.sun {
  position: absolute; z-index: 6; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  left: var(--sun-x, 8%); top: var(--sun-y, 40%); pointer-events: auto; cursor: grab; touch-action: none;
  background: radial-gradient(circle at 38% 35%, #ffe29a, #fbbf24 45%, var(--sun) 100%);
  box-shadow: 0 0 0 10px rgba(253, 186, 116, .25), 0 0 60px 20px rgba(251, 146, 60, calc(.55 - var(--dark) * .4));
  outline: none; transition: background .3s;
}
.sun.moon { background: radial-gradient(circle at 38% 35%, #fff, #e2e8f0 60%, #94a3b8); box-shadow: 0 0 0 10px rgba(226, 232, 240, .15), 0 0 50px 10px rgba(226, 232, 240, .35); }
.sun:active { cursor: grabbing; }
.sun:focus-visible { box-shadow: 0 0 0 4px #fff, 0 0 0 8px var(--palm), 0 0 60px 20px rgba(251, 146, 60, .5); }
.sun .grip { position: absolute; inset: 0; display: grid; place-items: center; }
.sun .grip svg { width: 44px; height: 44px; opacity: .85; }
.sun.hint { animation: nudge 2.4s var(--pop) infinite; }
@keyframes nudge { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 16px -4px; } 90% { translate: -4px 0; } }
.sun-date {
  position: absolute; z-index: 7; left: var(--sun-x, 8%); top: var(--sun-y, 40%); translate: -50% -86px; pointer-events: none;
  font: 700 1rem/1 "Sora", sans-serif; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  background: var(--palm); color: #fff; padding: 9px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(20, 83, 45, .25);
}
.sun-track { position: absolute; z-index: 5; left: 15%; right: 6%; top: 35%; height: 13%; pointer-events: none; }
.sun-track svg { width: 100%; height: 100%; overflow: visible; }

.far { top: 47%; height: 7%; }
.far img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; opacity: .95; filter: saturate(calc(1 - var(--storm) * .4)) brightness(calc(1 - var(--dark) * .55)); }
.sea { top: 52%; bottom: 0; background: linear-gradient(180deg, var(--sea-top, #5fd0c4) 0%, var(--sea-bot, #0f766e) 100%); filter: brightness(calc(1 - var(--dark) * .6)) saturate(calc(1 - var(--storm) * .45)); }
.sea svg { position: absolute; left: 0; width: 200%; height: 40px; animation: waves 9s linear infinite; }
.sea .w1 { top: 6%; opacity: .55; }
.sea .w2 { top: 18%; opacity: .4; animation-duration: 13s; animation-direction: reverse; }
.sea .w3 { top: 32%; opacity: .35; animation-duration: 17s; }
@keyframes waves { to { translate: -50% 0; } }
.glints { position: absolute; inset: 0; background-image: radial-gradient(2px 1px at 20% 20%, #fff, transparent), radial-gradient(3px 1px at 60% 30%, #fff, transparent), radial-gradient(2px 1px at 80% 12%, #fff, transparent), radial-gradient(2px 1px at 40% 44%, #fff, transparent); animation: glint 3s ease-in-out infinite alternate; opacity: calc(.8 - var(--storm) * .6 - var(--dark) * .6); }
@keyframes glint { to { translate: 8px 0; opacity: .2; } }

.beach { bottom: 0; height: 46%; }
.beach img { position: absolute; bottom: 0; left: 50%; translate: -50% 0; height: 100%; width: auto; min-width: 100%; object-fit: cover; filter: brightness(calc(1 - var(--dark) * .55)) saturate(calc(1 - var(--storm) * .3)); }
.palms-sway { transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite alternate; }
@keyframes sway { from { rotate: -.4deg; } to { rotate: .5deg; } }

.shade { inset: 0; z-index: 4; background: linear-gradient(180deg, rgba(30, 41, 59, calc(var(--dark) * .72)), rgba(30, 41, 59, calc(var(--dark) * .45))), rgba(71, 85, 105, calc(var(--storm) * .28)); mix-blend-mode: multiply; }
.grain { inset: 0; z-index: 9; opacity: .07; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* storm + rain */
.storm { position: absolute; z-index: 5; top: 10%; right: 10%; width: min(46vw, 360px); opacity: var(--storm); translate: calc((1 - var(--storm)) * 40vw) 0; transition: opacity .5s, translate .9s var(--pop); pointer-events: none; }
.storm img { width: 100%; animation: bob 4s ease-in-out infinite alternate; }
@keyframes bob { to { translate: 0 8px; } }
.rain { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: var(--storm); background-image: repeating-linear-gradient(105deg, transparent 0 18px, rgba(226, 232, 240, .35) 18px 19px, transparent 19px 38px); animation: rain .5s linear infinite; }
@keyframes rain { to { background-position: -20px 40px; } }
.flash { position: absolute; inset: 0; z-index: 8; background: #fff; opacity: 0; pointer-events: none; }
.flash.on { animation: flash .6s ease-out; }
@keyframes flash { 10% { opacity: .55; } 30% { opacity: .05; } 40% { opacity: .35; } 100% { opacity: 0; } }

/* buildings: the business-type picker */
.town { position: absolute; z-index: 6; left: 20%; right: 34%; bottom: 15%; height: 24%; display: flex; justify-content: center; align-items: flex-end; gap: 1%; pointer-events: none; }
.bldg { pointer-events: auto; position: relative; background: none; border: 0; padding: 0; cursor: pointer; width: 25%; max-width: 160px; min-width: 64px; height: 62%; transition: height .5s var(--pop), filter .3s; filter: saturate(.75) brightness(calc(.92 - var(--dark) * .45)); -webkit-tap-highlight-color: transparent; }
.bldg img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; transform-origin: 50% 100%; }
.bldg[aria-pressed="true"] { height: 100%; filter: saturate(1.05) brightness(calc(1 - var(--dark) * .3)) drop-shadow(0 0 18px rgba(251, 191, 36, .55)); }
.bldg[aria-pressed="true"] img { animation: breathe 3.5s ease-in-out infinite; }
.bldg:hover img { animation: wobble .5s var(--pop); }
.bldg:focus-visible { outline: 4px solid #fff; outline-offset: 2px; border-radius: 12px; }
.bldg .lbl { position: absolute; left: 50%; bottom: -34px; translate: -50% 0; white-space: nowrap; font: 700 1rem/1 "Sora", sans-serif; color: #fff; background: rgba(20, 83, 45, .88); padding: 7px 10px; border-radius: 999px; }
.bldg[aria-pressed="true"] .lbl { background: var(--sun-dark); }
.bldg .lights { position: absolute; inset: 20% 20% 30%; border-radius: 30%; background: radial-gradient(#fde68a, transparent 70%); opacity: calc(var(--dark) * .9); mix-blend-mode: screen; }
.world.dissolved .bldg .lights { opacity: 0; }
@keyframes breathe { 50% { scale: 1.02 0.99; } }
@keyframes wobble { 30% { scale: 1.1 .9; } 60% { scale: .96 1.05; } }

/* Pel */
.pel { position: absolute; z-index: 7; left: 2%; bottom: 12%; width: clamp(100px, 15vw, 190px); pointer-events: auto; cursor: pointer; background: none; border: 0; padding: 0; }
.pel img { width: 100%; display: block; transform-origin: 50% 100%; animation: breathe 3s ease-in-out infinite; filter: brightness(calc(1 - var(--dark) * .35)); }
.pel.hop img { animation: hop .5s var(--pop); }
@keyframes hop { 30% { translate: 0 -18px; scale: .95 1.06; } 70% { translate: 0 0; scale: 1.06 .94; } }
.bubble {
  position: absolute; z-index: 8; left: calc(2% + clamp(80px, 12vw, 160px)); bottom: calc(12% + clamp(100px, 15vw, 190px)); max-width: min(64vw, 320px);
  background: #fff; color: var(--ink); border-radius: 22px 22px 22px 6px; padding: 14px 18px; font: 600 1.125rem/1.4 "Source Sans 3", sans-serif;
  box-shadow: 0 10px 30px rgba(20, 83, 45, .18); transform-origin: 0 100%; pointer-events: none; min-height: 1.4em;
}
.bubble.pop { animation: bubble .45s var(--pop); }
@keyframes bubble { from { scale: .4; opacity: 0; } }

/* the bill (price tag) */
.bill {
  position: absolute; z-index: 8; right: 3%; bottom: 6%; width: min(31vw, 360px); min-width: 280px; background: var(--sand); border-radius: 20px; padding: 16px 20px 18px;
  box-shadow: 0 18px 40px rgba(20, 41, 30, .28); border: 3px solid #fff; transform-origin: 50% 100%;
}
.bill .k { font: 700 1rem/1.2 "Sora", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--sun-dark); }
.bill .amt { font: 700 clamp(2.6rem, 9vw, 3.6rem)/1 "Sora", sans-serif; color: var(--palm); margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.bill .why { font-size: 1.0625rem; line-height: 1.45; color: var(--ink-soft); margin: 0; }
.bill.bump { animation: bump .45s var(--pop); }
@keyframes bump { 30% { scale: 1.06 .95; } 70% { scale: .98 1.02; } }
.bill .cta { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* headline over the sky */
.world-head { position: absolute; z-index: 8; top: 0; left: 0; right: 0; padding: 18px 16px 0; text-align: center; pointer-events: none; }
.world-head .eyebrow { margin: 0 0 6px; color: var(--sun-dark); }
.world-head h1 { margin: 0 auto 6px; max-width: 900px; font-size: clamp(1.9rem, 5.6vw, 3.3rem); line-height: 1.08; color: var(--palm); text-shadow: 0 2px 0 rgba(255, 251, 235, .7); }
.world.night .world-head h1, .world.night .world-head .lede { color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.world-head .lede { margin: 0 auto; max-width: 640px; font-size: 1.125rem; color: var(--ink-soft); }

/* controls in the world */
.wbtn { position: absolute; z-index: 10; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 251, 235, .92); color: var(--palm); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); cursor: pointer; }
.wbtn svg { width: 26px; height: 26px; }
.wbtn.sound { top: 12px; right: 12px; }
.wbtn:active { scale: .92; }
.lang-switch { position: absolute; z-index: 10; top: 16px; left: 12px; display: flex; background: rgba(255, 251, 235, .92); border-radius: 999px; padding: 4px; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.lang-switch a { font: 700 1rem/1 "Sora", sans-serif; padding: 9px 12px; border-radius: 999px; text-decoration: none; color: var(--palm); }
.lang-switch a[aria-current="true"] { background: var(--palm); color: #fff; }
.sound-invite { position: absolute; z-index: 10; top: 70px; right: 12px; background: #fff; border-radius: 16px; padding: 10px 14px; font-weight: 700; color: var(--palm); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); border: 0; cursor: pointer; font-size: 1rem; animation: bubble .5s var(--pop) 1.2s both; }

.particle { position: absolute; z-index: 9; pointer-events: none; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #fbbf24 50%, #b45309); box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .12); }
.spark { position: absolute; z-index: 9; pointer-events: none; width: 10px; height: 10px; background: #fde68a; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

/* ---------- the year strip (timeline under the scene) ---------- */
.year { background: var(--palm); color: #fff; padding: 22px 0 26px; }
.year h2 { color: #fff; font-size: 1.35rem; margin: 0 0 14px; }
.year-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.year-strip button { text-align: left; background: rgba(255, 255, 255, .08); border: 2px solid rgba(255, 255, 255, .18); color: #fff; border-radius: 16px; padding: 14px; cursor: pointer; font: inherit; transition: transform .25s var(--pop), background .2s; }
.year-strip button:hover { background: rgba(255, 255, 255, .16); transform: translateY(-3px); }
.year-strip b { display: block; font: 700 1.125rem/1.2 "Sora", sans-serif; color: #fde68a; margin-bottom: 4px; }
.year-strip span { font-size: 1rem; line-height: 1.4; }

/* ---------- chapters ---------- */
.chapter { padding: 56px 0; position: relative; }
.chapter.sand { background: var(--sand); }
.chapter.teal { background: linear-gradient(180deg, #ccfbf1, #f0fdfa); }
.chapter h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.chapter .intro { font-size: 1.1875rem; max-width: 680px; }
.stage { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.art-card { position: relative; border-radius: 28px; overflow: hidden; background: #fde7c4; aspect-ratio: 4 / 3; box-shadow: 0 20px 50px rgba(20, 83, 45, .18); }
.art-card img { width: 100%; height: 100%; object-fit: cover; }

/* coin jar calculator */
.jar-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.jar-scene { position: relative; aspect-ratio: 4 / 5; max-width: 360px; margin: 0 auto; width: 100%; }
.jar-scene .jar { position: absolute; top: 0; bottom: 0; left: 50%; translate: -50% 0; height: 100%; width: auto; z-index: 2; opacity: .62; }
.jar-coins { position: absolute; z-index: 1; left: 31%; right: 31%; bottom: 5%; height: 0; max-height: 58%; background: url(/assets/world/coins.webp) bottom / 100% auto no-repeat; transition: height .6s var(--pop); }
.jar-total { position: absolute; z-index: 3; left: 50%; top: 40%; width: min(88%, 300px); translate: -50% -50%; text-align: center; background: rgba(255, 251, 235, .92); border-radius: 18px; padding: 10px 16px; box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.jar-total .amt { font: 700 clamp(2rem, 7vw, 2.8rem)/1 "Sora", sans-serif; color: var(--palm); font-variant-numeric: tabular-nums; }
.jar-total small { display: block; font-size: 1rem; color: var(--ink-soft); }
.pickers { display: grid; gap: 12px; }
.type-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.type-row button, .coin-btn { font: 700 1rem/1.2 "Sora", sans-serif; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 8px; cursor: pointer; color: var(--palm); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .25s var(--pop), border-color .2s, background .2s; }
.type-row button img { width: 56px; height: 56px; object-fit: contain; }
.type-row button[aria-pressed="true"] { border-color: var(--sun); background: #fff7ed; transform: translateY(-3px); }
.coin-btn { flex-direction: row; justify-content: space-between; text-align: left; padding: 12px 14px; font-family: "Source Sans 3", sans-serif; font-weight: 700; font-size: 1.125rem; color: var(--ink); }
.coin-btn .c { flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0, #fbbf24 50%, #b45309); display: grid; place-items: center; color: #7c2d12; font: 800 1rem/1 "Sora", sans-serif; transition: transform .35s var(--pop); }
.coin-btn .p { font-family: "Sora", sans-serif; color: var(--palm); white-space: nowrap; }
.coin-btn[aria-pressed="false"] .c { filter: grayscale(1) opacity(.45); }
.coin-btn[aria-pressed="true"] { border-color: #fbbf24; background: #fffbeb; }
.coin-btn[aria-pressed="true"] .c { transform: rotate(360deg); }
.coin-btn:disabled { opacity: .5; cursor: not-allowed; }

/* lighthouse (reinstatement) */
.lh-tool { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.lh-scene { position: relative; aspect-ratio: 4 / 5; max-width: 420px; width: 100%; margin: 0 auto; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #1e293b, #334155 60%, #0f766e 60%, #134e4a); }
.lh-scene .lh { position: absolute; left: 6%; bottom: 6%; width: 50%; z-index: 2; }
.lh-scene .beam { position: absolute; z-index: 1; left: 28%; top: 21%; width: 140%; height: 18%; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(253, 230, 138, .85), transparent); clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%); opacity: 0; transition: opacity .6s; animation: sweep 5s ease-in-out infinite alternate; }
.lh-scene.lit .beam { opacity: 1; }
@keyframes sweep { from { rotate: -14deg; } to { rotate: 8deg; } }
.bills { position: absolute; z-index: 3; right: 8%; bottom: 8%; width: 34%; display: flex; flex-direction: column-reverse; align-items: center; }
.bills i { display: block; width: 100%; height: 22px; margin-top: -6px; border-radius: 6px; background: linear-gradient(180deg, #86efac, #15803d); border: 2px solid #14532d; box-shadow: 0 3px 0 rgba(0, 0, 0, .2); animation: billIn .4s var(--pop) both; }
.bills i:nth-child(odd) { rotate: -3deg; } .bills i:nth-child(even) { rotate: 2deg; }
@keyframes billIn { from { translate: 0 -60px; opacity: 0; } }
.range { width: 100%; accent-color: var(--sun); height: 44px; }
.big-total { font: 700 clamp(2.4rem, 8vw, 3.4rem)/1 "Sora", sans-serif; color: var(--palm); font-variant-numeric: tabular-nums; }
.math { font-size: 1.125rem; color: var(--ink-soft); }

/* form walkthrough (how to file) */
.walk { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start; }
.clip { position: relative; background: #a16207; border-radius: 26px; padding: 26px 16px 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .2); }
.clip::before { content: ""; position: absolute; top: -12px; left: 50%; translate: -50% 0; width: 120px; height: 34px; border-radius: 12px; background: linear-gradient(#cbd5e1, #64748b); }
.paper { background: #fff; border-radius: 12px; padding: 14px; display: grid; gap: 8px; }
.paper .row { border: 2px dashed #e7e5e4; border-radius: 10px; padding: 10px 12px; transition: border-color .2s, background .2s, transform .3s var(--pop); }
.paper .row b { display: block; font: 700 1rem/1.2 "Sora", sans-serif; color: var(--palm); text-transform: uppercase; letter-spacing: .04em; }
.paper .row span { display: block; height: 12px; margin-top: 8px; border-radius: 6px; background: #f5f5f4; width: 70%; }
.paper .row.on { border: 3px solid var(--sun); border-style: solid; background: #fff7ed; transform: scale(1.02); box-shadow: 0 8px 20px rgba(234, 88, 12, .18); }
.paper .row.done span { background: #bbf7d0; }
.walk-panel { position: sticky; top: 16px; background: var(--sand); border-radius: 26px; padding: 22px; box-shadow: 0 10px 30px rgba(20, 83, 45, .12); }
.walk-panel .pel-mini { width: 110px; float: right; margin: -40px -6px 0 8px; }
.walk-panel h3 { font-size: 1.4rem; margin-bottom: 8px; }
.walk-panel .step-n { font: 700 1rem/1 "Sora", sans-serif; color: var(--sun-dark); text-transform: uppercase; letter-spacing: .06em; }
.walk-nav { display: flex; gap: 10px; margin-top: 16px; }
.meter { height: 10px; border-radius: 999px; background: #e7e5e4; overflow: hidden; margin: 12px 0 4px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--sun)); width: 0; transition: width .4s var(--pop); }

/* quiz */
.quiz { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 24px; box-shadow: 0 20px 50px rgba(20, 83, 45, .15); }
.quiz .q { font: 700 clamp(1.3rem, 4vw, 1.6rem)/1.3 "Sora", sans-serif; color: var(--palm); margin: 8px 0 16px; }
.quiz .opts { display: grid; gap: 10px; }
.quiz .opts button { text-align: left; font: 600 1.125rem/1.4 "Source Sans 3", sans-serif; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--sand); cursor: pointer; transition: transform .2s var(--pop); }
.quiz .opts button:hover { transform: translateX(4px); }
.quiz .opts button.right { background: #dcfce7; border-color: var(--leaf); }
.quiz .opts button.wrong { background: #fee2e2; border-color: #dc2626; animation: shake .35s; }
@keyframes shake { 25% { translate: -6px; } 75% { translate: 6px; } }
.quiz .explain { margin-top: 14px; font-size: 1.125rem; }
.quiz .progress { display: flex; gap: 6px; }
.quiz .progress i { flex: 1; height: 8px; border-radius: 999px; background: #e7e5e4; }
.quiz .progress i.ok { background: var(--leaf); } .quiz .progress i.no { background: #f87171; }
.share-card { width: 100%; max-width: 520px; border-radius: 18px; display: block; margin: 16px auto; box-shadow: 0 14px 30px rgba(0, 0, 0, .18); }

/* map + passport */
.map-wrap { position: relative; max-width: 980px; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: 0 20px 50px rgba(20, 83, 45, .18); }
.map-wrap > img { width: 100%; height: auto; display: block; }
.place { position: absolute; translate: -50% -50%; display: grid; justify-items: center; gap: 4px; text-decoration: none; }
.place .pin { width: clamp(46px, 8vw, 78px); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transition: transform .3s var(--pop); overflow: hidden; }
.place .pin img { width: 100%; height: 100%; object-fit: cover; }
.place.locked .pin img { filter: grayscale(1) brightness(.6) opacity(.6); }
.place:hover .pin { transform: scale(1.12) rotate(-4deg); }
.place .nm { font: 700 1rem/1.1 "Sora", sans-serif; background: rgba(255, 251, 235, .95); color: var(--palm); padding: 6px 10px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.place.here .pin { box-shadow: 0 0 0 5px var(--sun), 0 8px 20px rgba(0, 0, 0, .25); animation: breathe 2s infinite; }
.passport { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.passport .st { width: 104px; text-align: center; font-size: 1rem; line-height: 1.25; color: var(--palm); font-weight: 700; text-decoration: none; }
.passport .st img { width: 84px; height: 84px; object-fit: contain; }
.passport .st.locked img { filter: grayscale(1) opacity(.35); }
.levelup { position: fixed; z-index: 50; left: 50%; top: 18%; translate: -50% 0; background: #fff; border-radius: 26px; padding: 18px 22px; text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); animation: bubble .5s var(--pop); max-width: 92vw; }
.levelup img { width: 120px; height: 120px; object-fit: contain; animation: hop .6s var(--pop) .2s; }
.levelup b { display: block; font: 700 1.3rem/1.2 "Sora", sans-serif; color: var(--palm); }

/* mail (save your world) */
.mailbox { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.mailbox .pel-mail { width: clamp(120px, 24vw, 200px); animation: bob 3s ease-in-out infinite alternate; }

/* fold-out notes (SEO text) */
.notes details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
.notes summary { font: 700 1.125rem/1.4 "Sora", sans-serif; color: var(--palm); padding: 12px 0; cursor: pointer; }
.notes details[open] { box-shadow: 0 10px 24px rgba(20, 83, 45, .08); }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .world { height: 880px; }
  .world.short { height: 840px; }
  .world-head { padding-top: 66px; }
  .world-head .lede { font-size: 1.0625rem; }
  .world-head .lede-text { display: none; }
  .sun-track { top: 33%; height: 8%; left: 13%; right: 13%; }
  .sun { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .sun-date { translate: -50% -66px; }
  .far { top: 47%; height: 5%; }
  .sea { top: 50%; }
  .beach { height: 40%; }
  .town { left: 0; right: 0; bottom: 30%; height: 12%; }
  .bldg { width: 23%; }
  .bldg .lbl { bottom: -28px; padding: 6px 8px; }
  .bldg:not([aria-pressed="true"]) .lbl { display: none; }
  .art-card { aspect-ratio: 16 / 9; }
  .pel { left: auto; right: 2%; bottom: 43%; width: 92px; }
  .bubble { left: 4%; right: calc(2% + 96px); bottom: 45%; max-width: none; font-size: 1.0625rem; padding: 12px 14px; border-radius: 22px 22px 6px 22px; transform-origin: 100% 100%; }
  .bill { left: 4%; right: 4%; width: auto; min-width: 0; bottom: 2%; padding: 14px 16px; }
  .bill .cta .btn { padding: 12px 16px; }
  .storm { top: 30%; right: 2%; width: 52vw; }
  .sound-invite { top: 12px; right: 68px; padding: 10px 12px; }
  .site-header .header-inner { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .brand img { height: 60px; }
  .site-nav { gap: 10px 14px; }
  .year-strip { grid-template-columns: 1fr 1fr; }
  .stage, .jar-tool, .lh-tool, .walk { grid-template-columns: 1fr; }
  .walk-panel { position: sticky; top: 0; z-index: 3; order: -1; padding: 16px; }
  .walk-panel .pel-mini { width: 80px; margin: -10px -4px 0 8px; }
  .type-row { grid-template-columns: repeat(2, 1fr); }
  .mailbox { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .mailbox form { text-align: left; }
  .place .nm { display: none; }
  .place .pin { width: 44px; }
}

/* ---------- calm version ---------- */
@media (prefers-reduced-motion: reduce) {
  .cloud, .sea svg, .glints, .palms-sway, .rain, .storm img, .sun.hint, .bldg img, .pel img, .beam, .mailbox .pel-mail { animation: none !important; }
  .bill.bump, .bubble.pop, .pel.hop img { animation: none !important; }
  .flash.on { animation: none; }
}

/* header language switch + countdown pill */
.lang-pill { display: inline-flex; background: var(--sand); border: 2px solid var(--line); border-radius: 999px; padding: 3px; margin-left: 4px; }
.lang-pill a { font: 700 1rem/1 "Sora", sans-serif; padding: 8px 11px; border-radius: 999px; text-decoration: none; color: var(--palm); }
.lang-pill a[aria-current="true"] { background: var(--palm); color: #fff; }
.site-nav a[aria-current="page"] { color: var(--sun-dark); }
.cd-pill { display: inline-block; margin-top: 8px; font: 700 1rem/1.2 "Sora", sans-serif; color: #fff; background: var(--sun-dark); padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 14px rgba(194, 65, 12, .3); }
.cd-pill:empty { display: none; }
.world .btn-secondary { background: #fff; }

/* =====================================================================
   v2 (Nov 3): answer first, simple scene. Overrides the layout above.
   ===================================================================== */
.answer { background: linear-gradient(180deg, var(--sand), #fff); padding: 34px 0 30px; border-bottom: 1px solid var(--line); }
.answer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.answer h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 4px 0 10px; }
.answer .lead { font-size: 1.25rem; line-height: 1.55; max-width: 720px; margin-bottom: 18px; }
.answer-pel { width: clamp(140px, 20vw, 240px); height: auto; animation: bob 3s ease-in-out infinite alternate; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; max-width: 820px; }
.fact { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.fact span { display: block; font-size: 1rem; color: var(--ink-soft); }
.fact b { display: block; font: 700 1.2rem/1.25 "Sora", sans-serif; color: var(--palm); margin-top: 2px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 6px; }
.cd-line { margin: 10px 0 0; }
.steps-sec { padding: 36px 0 40px; background: #fff; }
.steps-sec h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.big-list { list-style: none; counter-reset: s; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.big-list li { counter-increment: s; position: relative; padding: 14px 16px 14px 64px; background: var(--sand); border-radius: 16px; font-size: 1.125rem; line-height: 1.5; min-height: 56px; }
.big-list li::before { content: counter(s); position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; background: var(--palm); color: #fff; display: grid; place-items: center; font: 700 1.1rem/1 "Sora", sans-serif; }

.toy { padding: 40px 0 28px; background: #f0fdfa; }
.toy h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
.wrap.wide { max-width: 1180px; }
.toy .world { height: clamp(360px, 40vw, 500px); border-radius: 28px; box-shadow: 0 18px 40px rgba(20, 83, 45, .16); }
.toy .sun-track { left: 10%; right: 8%; top: 9%; height: 34%; }
.toy .far { top: 45%; height: 8%; }
.toy .sea { top: 51%; }
.toy .beach { top: auto; bottom: 0; height: auto; }
.toy .beach img { position: static; display: block; width: 100%; height: auto; min-width: 0; translate: none; }
.toy .town { left: 16%; right: 16%; bottom: 5%; height: 34%; gap: 2%; }
.toy .bldg { width: 22%; max-width: 170px; height: 70%; }
.toy .bldg[aria-pressed="true"] { height: 100%; }
.toy .bldg .lbl { bottom: -6px; }
.toy .storm { top: 4%; right: 6%; width: min(30%, 320px); translate: calc((1 - var(--storm)) * 30vw) 0; }
.toy .wbtn.sound { top: 12px; right: 12px; }
.result { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; }
.result .pel { position: static; flex: none; width: clamp(84px, 12vw, 130px); }
.result .bill { position: static; flex: 1; width: auto; min-width: 0; box-shadow: 0 10px 26px rgba(20, 41, 30, .12); }
.result .bubble { position: static; max-width: none; margin: 10px 0 0; padding: 10px 14px; background: #fff; border: 2px solid var(--line); border-radius: 14px; box-shadow: none; font-size: 1.0625rem; min-height: 0; }
.result .bubble::before { content: "Pel: "; font-weight: 800; color: var(--sun-dark); }
html[lang="es"] .result .bubble::before { content: "Pel: "; }
.year { padding: 26px 0; }

@media (max-width: 760px) {
  .answer { padding: 22px 0 22px; }
  .answer-grid { grid-template-columns: 1fr; }
  .answer-pel { display: none; }
  .answer .lead { font-size: 1.125rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { flex: 1 1 100%; text-align: center; }
  .toy .world { height: 330px; border-radius: 20px; }
  .toy .sun-track { left: 12%; right: 12%; top: 10%; height: 30%; }
  .toy .far { top: 44%; height: 6%; }
  .toy .sea { top: 49%; }
  .toy .town { left: 2%; right: 2%; bottom: 6%; height: 30%; }
  .toy .bldg { width: 24%; }
  .toy .bldg .lbl { bottom: -4px; }
  .toy .storm { width: 42%; top: 6%; }
  .result .pel { width: 76px; }
}
.toy .sun-date { translate: -50% 54px; }
@media (max-width: 760px) { .toy .sun-date { translate: -50% 44px; } }

/* Characters always face the text they sit beside (Evelio, Nov 3). Pel's art faces right,
   so any Pel placed to the RIGHT of text is mirrored. */
.answer-pel, .walk-panel .pel-mini { transform: scaleX(-1); }

/* Independence note: right under the file button on every page (moved off the top bar, Nov 3). */
.indep { font-size: 1rem; line-height: 1.5; color: var(--ink-soft); max-width: 720px; margin: 12px 0 0; }
