*{box-sizing:border-box;margin:0}html{scroll-behavior:smooth}
body{font:18px/1.6 -apple-system,system-ui,sans-serif;color:#0b2a4a;transition:color 1.2s;-webkit-text-size-adjust:100%;overflow-x:hidden}
body.dark{color:#fff8e1}
.bg{position:fixed;inset:0;z-index:-2;opacity:0;transition:opacity 1.4s}.bg.on{opacity:1}
.b0{background:linear-gradient(#bfe6fb,#fff3bf)}.b1{background:linear-gradient(#8fd0f0,#e6f6ff)}
.b2{background:linear-gradient(#1f6aa0,#0d3b66)}.b3{background:linear-gradient(#0a2140,#0e3a6b)}
#fx{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
main{position:relative;z-index:1}
section{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:clamp(44px,9vh,84px) 24px;gap:16px}
.hero,.fin{min-height:100vh;min-height:100svh}.fin{min-height:70vh;min-height:70svh}.hero{padding-top:max(64px,env(safe-area-inset-top))}
h1,h2{font-family:"Iowan Old Style",Palatino,Georgia,serif;font-weight:600;line-height:1.1;letter-spacing:-.01em}
h1{font-size:clamp(44px,13vw,104px)}h2{font-size:clamp(32px,8.5vw,64px)}
p{max-width:30em}.sub{font-size:1.25em}
.pill{background:rgba(255,255,255,.55);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:10px 20px;border-radius:99px;color:#0b2a4a;font-weight:600}
.whale{font-size:72px;animation:bob 4s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-14px) rotate(-5deg)}}
#t span{display:inline-block;opacity:0;transform:translateY(-.6em) rotate(-6deg)}
#t .sp{width:.3em}#t .w{display:inline-block;white-space:nowrap}
body.go #t span{animation:drop .9s cubic-bezier(.2,.8,.2,1) forwards;animation-delay:calc(var(--i)*55ms)}
@keyframes drop{to{opacity:1;transform:none}}
.rv{opacity:0;transform:translateY(24px);transition:opacity .9s,transform .9s}.rv.in{opacity:1;transform:none}
.gal{justify-content:flex-start;gap:28px}
#g{width:100%;max-width:760px;display:flex;flex-direction:column;gap:22px}
figure{width:min(80%,380px);background:#fff;padding:10px 10px 38px;border-radius:6px;box-shadow:0 14px 40px rgba(0,0,0,.35);position:relative;opacity:0;transform:scale(.9) rotate(var(--r));transition:opacity .9s,transform .9s}
figure.in{opacity:1;transform:rotate(var(--r))}
figure:nth-child(odd){margin-left:4%;--r:-2.5deg}figure:nth-child(even){margin-left:auto;margin-right:4%;--r:2.5deg}
figure img{display:block;width:100%;height:auto;border-radius:3px;background:#dbeefa}
figure b{position:absolute;right:12px;bottom:6px;font-size:22px}
.carta div{max-width:28em;display:flex;flex-direction:column;gap:18px;font-family:"Iowan Old Style",Palatino,Georgia,serif;font-size:1.25em}
button{font:inherit;font-weight:600;border:0;border-radius:99px;padding:14px 28px;background:#ffd23f;color:#0b2a4a;box-shadow:0 8px 24px rgba(0,0,0,.25);cursor:pointer;transition:transform .2s}
button:active{transform:scale(.95)}button:focus-visible{outline:3px solid #fff;outline-offset:3px}
#gate{position:fixed;inset:0;z-index:10;background:linear-gradient(#bfe6fb,#fff3bf);display:flex;flex-direction:column;gap:24px;align-items:center;justify-content:center;font:600 clamp(36px,10vw,64px) "Iowan Old Style",Palatino,Georgia,serif;color:#0b2a4a;transition:opacity 1s}
#gate.off{opacity:0;pointer-events:none}#gate p{margin:0}#gate button{font-size:20px}
#mute{position:fixed;z-index:5;right:max(14px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top));width:44px;height:44px;padding:0;background:rgba(255,255,255,.7)}
#mute.x{opacity:.5}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.rv,figure,#t span{opacity:1;transform:none}}
#pr{position:fixed;top:0;left:0;right:0;height:3px;background:#ffd23f;transform:scaleX(0);transform-origin:0 50%;z-index:6}
#lb{position:fixed;inset:0;z-index:20;background:rgba(5,15,35,.92);display:none;align-items:center;justify-content:center;padding:16px}#lb.on{display:flex}#lb img{max-width:100%;max-height:100%;border-radius:8px}
figure{cursor:zoom-in}.fin button{margin:4px}.fin{gap:14px}#wt{min-height:1.6em}

/* quiz */
#gate{padding:24px 20px;overflow-y:auto;text-align:center}
#gate .gs{font:400 18px/1.4 -apple-system,system-ui,sans-serif;max-width:22em}
#qz{display:flex;flex-direction:column;gap:12px;width:min(100%,420px);font:600 17px/1.3 -apple-system,system-ui,sans-serif;margin:auto 0}
#qz[hidden]{display:none}
#qz .qn{font-size:13px;opacity:.7;letter-spacing:.1em;text-transform:uppercase}
#qz h3{font:600 clamp(24px,6.5vw,32px)/1.2 "Iowan Old Style",Palatino,Georgia,serif;margin:4px 0 8px}
#qz .o{background:#fff;box-shadow:0 4px 14px rgba(11,42,74,.18);border-radius:16px;padding:14px 18px;font-size:17px;width:100%;color:#0b2a4a}
#qz .o.ok{background:#8fe3a8}
#qz .o.no{background:#ffb3b3;opacity:.8;animation:shk .4s}
@keyframes shk{25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
#qm{min-height:1.4em;font-size:16px}
/* vale */
.vale{min-height:80vh;min-height:80svh}
#vale{position:relative;max-width:360px;width:100%;background:#fff8e1;color:#0b2a4a;padding:28px 24px;border-radius:18px;box-shadow:0 16px 44px rgba(0,0,0,.4);border:3px dashed #ffd23f;display:flex;flex-direction:column;gap:12px;align-items:center}
#vale .vt{font-weight:700;letter-spacing:.14em;font-size:14px}
#vale h2{font-size:clamp(28px,7vw,44px)}
#vale .lk,#vale .rvl{display:flex;flex-direction:column;gap:12px;align-items:center}
#vale .rvl{display:none}#vale.used .rvl{display:flex;animation:pop .6s cubic-bezier(.2,.8,.2,1)}#vale.used .lk{display:none}
#vale .cand{font-size:56px;line-height:1}
@keyframes pop{from{opacity:0;transform:scale(.85)}}
#vale .stamp{display:block;font:800 26px -apple-system,system-ui,sans-serif;color:#d6336c;border:4px solid #d6336c;padding:4px 14px;border-radius:8px;transform:rotate(-8deg);letter-spacing:.06em}
#vale .vs{font-size:16px}

/* mobile */
html{-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}
button,figure{touch-action:manipulation;-webkit-user-select:none;user-select:none}
button{min-height:48px}
#gate{height:100vh;height:100dvh;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}
.fin{padding-bottom:max(44px,calc(env(safe-area-inset-bottom) + 24px))}
section{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
.pill{max-width:100%}
@media(max-width:480px){
body{font-size:17px}
.whale{font-size:64px}
section{gap:14px}
#g{gap:18px}
figure{width:min(86%,340px)}
#vale{padding:24px 18px}
}
@media(max-height:520px) and (orientation:landscape){.hero,.fin{min-height:auto}#gate{justify-content:flex-start}}
