/* Lantern Bay landing: the game's world (logo cream + navy ink, Aegean sea, coin amber, lighthouse red, Baloo 2), the
   same family as ../assets/site.css (privacy / support). The 3D bay sits fixed behind the page and shows through the
   transparent sections (hero, cast, home); the "sheet" sections are opaque paper over it. */
@font-face{font-family:"Baloo 2";font-weight:800;font-display:swap;src:url(assets/baloo2-extrabold.woff2) format("woff2")}
@font-face{font-family:"Baloo 2";font-weight:600;font-display:swap;src:url(assets/baloo2-semibold.woff2) format("woff2")}

:root{
  --cream:#fff6de; --paper:#fffbf0; --sand:#f3e6c4; --line:#e6d6ae;
  --ink:#16224e; --ink-2:#3b4670; --sea:#0b7fb8; --sea-deep:#0a4f7a; --foam:#e3f3fb;
  --amber:#f5b21b; --amber-deep:#d98f00; --red:#d8432f; --green:#8fd14f;
  --r-lg:28px; --r-md:18px; --r-sm:12px;
  --shadow:0 18px 40px -18px rgba(10,40,80,.45), 0 3px 8px -3px rgba(10,40,80,.22);
  --out:cubic-bezier(.16,1,.3,1);
  --gutter:clamp(20px,5vw,72px);
  color-scheme:light; accent-color:var(--sea);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scrollbar-color:var(--sea-deep) var(--sand)}
body{margin:0;color:var(--ink);background:#7fc4e6;font:600 18px/1.6 "Baloo 2",ui-rounded,system-ui,sans-serif}
::selection{background:var(--amber);color:var(--ink)}
a{color:inherit;text-decoration-thickness:2px;text-underline-offset:3px}
:focus-visible{outline:3px solid var(--amber);outline-offset:3px;border-radius:10px}
h1,h2,h3{font-weight:800;line-height:1.05;letter-spacing:-.015em;text-wrap:balance;margin:0}
h2{font-size:clamp(38px,5.6vw,76px)}
h3{font-size:clamp(24px,2.4vw,32px);line-height:1.12}
p{margin:0;text-wrap:pretty}
img{max-width:100%}

/* one language at a time once the head script has picked it; without the script both show */
html[data-lang=en] [lang=tr], html[data-lang=tr] [lang=en]{display:none !important}

.skip{position:absolute;left:12px;top:-60px;z-index:20;background:var(--ink);color:var(--cream);padding:10px 16px;border-radius:999px;font-weight:800;text-decoration:none}
.skip:focus{top:12px}

/* ------------------------------------------------------------------ the bay (fixed behind the page) */
.stage{position:fixed;inset:0;z-index:0;background:linear-gradient(#3f9be0 0%,#a5d8f3 42%,#ffe1ad 55%,#26b0d4 56%,#0a5c8c 100%)}
.stage canvas{display:block;width:100%;height:100%;opacity:0;transition:opacity 1.2s var(--out)}
.stage canvas.on{opacity:1}
.stage .keyart{display:none}
html.no-webgl .stage canvas{display:none}
html.no-webgl .stage .keyart{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 52%}
html.no-webgl .stage::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,246,222,.82),rgba(255,246,222,.35) 46%,transparent 70%)}
html.no-webgl.dusk .stage::after{background:rgba(22,34,78,.62)}
@media (max-aspect-ratio:3/4){html.no-webgl .stage .keyart{top:auto;bottom:0;height:128%}}

main{position:relative;z-index:1}

/* ------------------------------------------------------------------ top bar */
.top{position:fixed;inset:0 0 auto;z-index:10;display:flex;align-items:center;gap:12px;padding:14px var(--gutter);pointer-events:none}
.top > *{pointer-events:auto}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;font-size:20px;line-height:1;color:var(--ink);
  background:rgba(255,246,222,.92);padding:5px 16px 5px 5px;border-radius:999px;border:2px solid var(--ink);
  box-shadow:0 4px 0 -1px var(--ink),0 10px 18px -10px rgba(10,40,80,.4);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);transition:opacity .4s var(--out),transform .4s var(--out),visibility .4s}
.brand img{width:36px;height:36px;border-radius:10px}
html:not(.scrolled) .brand{opacity:0;visibility:hidden;transform:translateY(-8px)}
.lang{margin-left:auto;display:inline-flex;border:2px solid var(--ink);border-radius:999px;overflow:hidden;background:var(--cream);
  box-shadow:0 4px 0 -1px var(--ink),0 10px 18px -10px rgba(10,40,80,.4)}
.lang a{padding:9px 15px 7px;font-weight:800;font-size:15px;line-height:1.2;text-decoration:none;color:var(--ink);transition:background .2s}
.lang a:hover{background:var(--sand)}
.lang a:focus-visible{outline-offset:-5px;border-radius:999px}
/* both links always show (each names its own language), so undo the one-language rule here */
html[data-lang] .lang a{display:block !important}
html[data-lang=en] .lang a[data-set-lang=en], html[data-lang=tr] .lang a[data-set-lang=tr]{background:var(--ink);color:var(--cream)}

/* ------------------------------------------------------------------ buttons */
.store{display:inline-flex;align-items:center;gap:10px;background:var(--amber);color:var(--ink);font-weight:800;font-size:19px;line-height:1.15;
  text-decoration:none;padding:15px 26px 13px;border-radius:999px;border:3px solid var(--ink);box-shadow:0 6px 0 -1px var(--ink),0 14px 24px -10px rgba(0,0,0,.32);
  transition:transform .18s var(--out),box-shadow .18s var(--out)}
.store.big{font-size:22px;padding:18px 32px 16px}
a.store:hover{transform:translateY(-2px);box-shadow:0 8px 0 -1px var(--ink),0 18px 28px -10px rgba(0,0,0,.32)}
a.store:active{transform:translateY(4px);box-shadow:0 2px 0 -1px var(--ink)}
span.store{cursor:default}
.ghost{display:inline-flex;align-items:center;font-weight:800;font-size:17px;text-decoration:none;color:var(--ink);padding:10px 18px;border-radius:999px;
  background:rgba(255,251,240,.72);border:2px solid rgba(22,34,78,.28);transition:background .2s,border-color .2s}
.ghost:hover{background:var(--paper);border-color:var(--ink)}

/* ------------------------------------------------------------------ hero */
/* a band of hazy sky on the copy side keeps it legible over the 3D bay */
.hero{min-height:100vh;min-height:100svh;display:flex;align-items:flex-start;padding:clamp(88px,12vh,132px) var(--gutter) 90px;
  background:linear-gradient(90deg,rgba(255,243,220,.62),rgba(255,243,220,.34) 34%,rgba(255,243,220,0) 52%)}
.hero-copy{max-width:600px}
/* the wordmark: assets/wordmark.svg (landing_assets.py wordmark: the game's logo built from the Baloo 2 outlines, it pops
   itself in once); the h1's name is the image's alt text */
.logo{line-height:0}
.logo img{display:block;width:clamp(300px,37vw,540px);height:auto;filter:drop-shadow(0 14px 16px rgba(10,40,80,.24))}
.sub{margin-top:20px;font-weight:800;font-size:clamp(26px,2.5vw,36px);line-height:1.12;letter-spacing:-.01em;color:var(--ink)}
.lead{margin-top:10px;font-size:clamp(18px,1.45vw,21px);line-height:1.55;max-width:31em;color:var(--ink-2)}
/* a cream lift under the text: stays readable over every frame of the bay, the bright sun included */
.sub, .lead{text-shadow:0 1px 1px rgba(255,246,222,.55),0 3px 14px rgba(255,246,222,.8)}
/* the two stores stacked at one width, the page's own links in a row under them */
.actions{margin-top:26px;display:grid;justify-items:start;gap:16px}
.hero .stores{display:grid;gap:12px}
.hero .store{justify-content:center}
.more{display:flex;flex-wrap:wrap;gap:10px}

/* entrance: the logo pops (inside the SVG), then the copy rises in after it (already visible without JS / reduced motion) */
html.js:not(.reduced) .hero-copy > :not(.logo){animation:rise .9s var(--out) both}
html.js:not(.reduced) .hero-copy > .sub{animation-delay:.35s}
html.js:not(.reduced) .hero-copy > .lead{animation-delay:.45s}
html.js:not(.reduced) .hero-copy > .actions{animation-delay:.55s}
@keyframes rise{from{opacity:0;transform:translateY(22px);filter:blur(6px)}}

/* ------------------------------------------------------------------ cast-a-line toy */
.cast{position:relative;height:100vh;height:100svh;min-height:620px;padding:100px var(--gutter) 70px;display:grid;grid-template-columns:minmax(0,440px) 1fr;align-items:start;
  overflow-x:clip} /* the catch card's untransformed box must not widen the page on phones */
/* the panel: the game's cream card, an amber keyline inside the ink outline, the chunky ink foot of its buttons */
.cast-copy{position:relative;z-index:1;background:var(--paper);border:3px solid var(--ink);border-radius:var(--r-lg);padding:24px 26px 20px;
  box-shadow:inset 0 0 0 5px var(--paper),inset 0 0 0 7px rgba(245,178,27,.5),0 6px 0 -1px var(--ink),var(--shadow)}
.cast-copy h2{font-size:clamp(40px,4.2vw,60px)}
.cast-copy p{margin-top:10px;color:var(--ink-2)}
.cast-copy :focus-visible{outline-color:var(--ink)}
.toy{position:absolute;inset:0;pointer-events:none}
.toy > *{pointer-events:auto}
.cast-btn{position:absolute;left:50%;bottom:clamp(60px,12vh,120px);transform:translateX(-50%);min-width:220px;
  font:800 26px/1 "Baloo 2",ui-rounded,system-ui,sans-serif;letter-spacing:.02em;color:var(--cream);background:#43b649;padding:20px 34px 17px;
  border-radius:22px;white-space:nowrap;border:3px solid var(--ink);box-shadow:0 7px 0 -1px #1d6b2b,0 7px 0 2px var(--ink),0 22px 30px -12px rgba(10,30,60,.6);cursor:pointer;
  -webkit-text-stroke:.16em #1d6b2b;paint-order:stroke fill;transition:transform .12s var(--out),box-shadow .12s var(--out),background .2s;touch-action:manipulation}
.cast-btn:hover{transform:translateX(-50%) translateY(-2px)}
.cast-btn:active{transform:translateX(-50%) translateY(5px);box-shadow:0 2px 0 -1px #1d6b2b,0 2px 0 2px var(--ink)}
.toy[data-state=cast] .cast-btn, .toy[data-state=wait] .cast-btn{background:#7f9bb0;-webkit-text-stroke-color:#3f5a70;box-shadow:0 7px 0 -1px #3f5a70,0 7px 0 2px var(--ink),0 22px 30px -12px rgba(10,30,60,.6);font-size:21px}
.toy[data-state=bite] .cast-btn{background:var(--red);-webkit-text-stroke-color:#8a2214;box-shadow:0 7px 0 -1px #8a2214,0 7px 0 2px var(--ink),0 22px 30px -12px rgba(10,30,60,.6);animation:nudge .32s ease-in-out infinite alternate}
.toy[data-state=fight] .cast-btn{background:var(--amber);color:var(--cream);-webkit-text-stroke-color:#8a5a00;box-shadow:0 7px 0 -1px #8a5a00,0 7px 0 2px var(--ink),0 22px 30px -12px rgba(10,30,60,.6)}
@keyframes nudge{to{transform:translateX(-50%) scale(1.07)}}
.toy-say{position:absolute;left:50%;bottom:calc(clamp(60px,12vh,120px) + 92px);transform:translateX(-50%);white-space:nowrap;
  font-weight:800;font-size:22px;color:var(--cream);-webkit-text-stroke:.2em var(--ink);paint-order:stroke fill;text-align:center}
.tally{margin-top:16px;padding-top:14px;border-top:2px dashed var(--line);display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-weight:800;font-size:17px;color:var(--ink) !important}
.tally b{font-size:26px;line-height:1;margin-right:2px;color:var(--sea-deep);font-variant-numeric:tabular-nums}
.tally a{font-size:16px;color:var(--sea-deep);margin-left:auto}

/* the meter: the game's vertical fight bar */
.meter{position:absolute;right:calc(var(--gutter) + 10px);top:50%;width:46px;height:min(46vh,320px);transform:translateY(-40%) scale(.9);opacity:0;
  border:3px solid var(--ink);border-radius:16px;background:linear-gradient(90deg,#1d5c8d,#2a78b0);box-shadow:var(--shadow);overflow:hidden;
  transition:opacity .25s var(--out),transform .35s var(--out)}
.toy[data-state=fight] .meter, .toy[data-state=caught] .meter, .toy[data-state=lost] .meter{opacity:1;transform:translateY(-40%)}
.toy[data-state=caught] .meter, .toy[data-state=lost] .meter{transition-delay:.0s;opacity:0}
.zone{position:absolute;left:4px;right:4px;border-radius:9px;background:var(--green);border:2px solid #3f8a24;box-shadow:inset 0 2px 0 rgba(255,255,255,.45)}
.mark{position:absolute;left:-3px;right:-3px;height:8px;margin-top:-4px;background:var(--cream);border:2px solid var(--ink);border-radius:6px}

/* the catch card: the game's catch popup (cream card, rarity keyline, rays of the rarity colour behind the fish) */
.catch{--rc:var(--amber);position:absolute;left:72%;top:48%;width:min(340px,84vw);transform:translate(-50%,-50%);text-align:center;background:var(--paper);
  border:3px solid var(--ink);border-radius:var(--r-lg);padding:26px 22px 20px;display:grid;justify-items:center;gap:6px;isolation:isolate;
  box-shadow:inset 0 0 0 5px var(--paper),inset 0 0 0 8px color-mix(in srgb,var(--rc) 75%,#fff),0 7px 0 -1px var(--ink),0 30px 60px -22px rgba(10,30,60,.7)}
.catch::before{content:"";position:absolute;z-index:-1;left:50%;top:84px;width:340px;height:340px;margin:-170px 0 0 -170px;border-radius:50%;
  background:repeating-conic-gradient(color-mix(in srgb,var(--rc) 42%,transparent) 0 10deg,transparent 10deg 24deg);
  -webkit-mask:radial-gradient(closest-side,#000 20%,transparent 78%);mask:radial-gradient(closest-side,#000 20%,transparent 78%);animation:spin 36s linear infinite}
@keyframes spin{to{transform:rotate(1turn)}}
.catch[hidden]{display:none}
.catch.pop{animation:pop .55s var(--out) both}
@keyframes pop{from{opacity:0;transform:translate(-50%,-38%) scale(.82)}}
.catch img{width:240px;height:136px;object-fit:contain;filter:drop-shadow(0 10px 10px rgba(10,40,80,.25));margin:-6px 0 4px}
.catch .name{font-size:30px;line-height:1.05}
.catch .chip{font-weight:800;font-size:14px;letter-spacing:.06em;text-transform:uppercase;color:#fff;background:var(--rc);padding:4px 14px 1px;border-radius:999px;
  border:2px solid var(--ink);-webkit-text-stroke:.18em rgba(22,34,78,.75);paint-order:stroke fill}
.catch .kg{font-size:18px;color:var(--ink-2);font-variant-numeric:tabular-nums}
.catch .new{position:absolute;top:-17px;left:50%;transform:translateX(-50%) rotate(-3deg);background:#b5301c;color:var(--cream);font-weight:800;font-size:15px;
  letter-spacing:.02em;padding:5px 16px 2px;border-radius:999px;border:3px solid var(--ink);box-shadow:0 3px 0 -1px var(--ink);white-space:nowrap}
.catch:not(.is-new) .new{display:none}

/* WebGL off: a drawn float on a drawn pond */
.pond{display:none}
html.no-webgl .pond{display:block;position:absolute;left:50%;top:72%;width:160px;height:80px;transform:translate(-50%,-50%);pointer-events:none}
.pond .float{position:absolute;left:50%;top:50%;width:26px;height:44px;margin:-34px 0 0 -13px;border-radius:50% 50% 45% 45%;border:3px solid var(--ink);
  background:linear-gradient(var(--red) 52%,#fff 52%);opacity:0;transition:opacity .2s}
.pond .ring{position:absolute;left:50%;top:50%;width:90px;height:26px;margin:-13px 0 0 -45px;border:3px solid rgba(255,255,255,.85);border-radius:50%;opacity:0}
.toy:not([data-state=idle]) .pond .float{opacity:1}
.toy[data-state=wait] .pond .float{animation:bob 1.6s ease-in-out infinite}
.toy[data-state=bite] .pond .float{animation:dip .28s ease-in-out infinite alternate}
.toy[data-state=bite] .pond .ring, .toy[data-state=fight] .pond .ring{animation:ring .9s ease-out infinite}
.toy[data-state=fight] .pond .float{transform:translateY(22px);opacity:.35}
@keyframes bob{50%{transform:translateY(4px)}}
@keyframes dip{to{transform:translateY(18px)}}
@keyframes ring{from{opacity:1;transform:scale(.5)}to{opacity:0;transform:scale(1.8)}}

/* ------------------------------------------------------------------ section edges: one wave mask (a crest line over the
   front wave), painted in the colour of the section it tops (--edge); .fair also hangs one under itself into the bay */
:root{--wave:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 27C160 11 330 11 490 23S810 39 970 25 1290 9 1440 19' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 40C160 24 330 24 490 36S810 52 970 38 1290 22 1440 32V60H0Z'/%3E%3C/svg%3E")}
.sheet::before, .legends::before, .trailer::before, .foot::before, .fair::after{content:"";position:absolute;left:0;right:0;bottom:calc(100% - 1px);height:clamp(28px,4vw,58px);
  background:var(--edge);-webkit-mask:var(--wave) bottom/100% 100% no-repeat;mask:var(--wave) bottom/100% 100% no-repeat;pointer-events:none}
.fair::after{bottom:auto;top:calc(100% - 1px);transform:scaleY(-1)}

/* ------------------------------------------------------------------ paper sheets over the bay */
.sheet{--edge:var(--cream);position:relative;background:var(--cream);padding:clamp(72px,9vw,130px) var(--gutter)}
.sheet-in{max-width:1180px;margin:0 auto}
.harbor :focus-visible, .album :focus-visible, .fair :focus-visible{outline-color:var(--ink)}

/* the loop: a sticky phone that changes screenshot as the steps scroll by (desktop); inline phones on small screens */
.harbor h2{max-width:13em}
.loop{display:grid;grid-template-columns:minmax(260px,340px) 1fr;gap:clamp(48px,8vw,120px);margin-top:clamp(40px,6vw,80px)}
/* a phone drawn in CSS: navy rim, black bezel, the island, the side buttons; every part sized from the phone's own
   width (cqw for its children, % for itself), so the 340 px sticky phone and the 120 px inline ones match */
.phone{margin:0;position:relative;container-type:inline-size;aspect-ratio:540/1173;border-radius:15%/6.9%;
  background:linear-gradient(135deg,#46579a,#16224e 20%,#0b1230 52%,#1d2b60 82%,#46579a);
  box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.28),inset 0 0 0 4px #070b1f,0 50px 80px -40px rgba(10,30,60,.6),0 16px 28px -18px rgba(10,30,60,.45)}
.phone > img, .phone > video{position:absolute;inset:3.6cqw;width:calc(100% - 7.2cqw);height:calc(100% - 7.2cqw);display:block;object-fit:cover;border-radius:11.4cqw;background:#070b1f}
.phone::after{content:"";position:absolute;z-index:3;top:6cqw;left:35.5cqw;width:29cqw;height:8.4cqw;border-radius:9cqw;background:#03050c;pointer-events:none}
.phone::before{content:"";position:absolute;left:-1cqw;right:-1cqw;top:24%;height:9%;border-radius:1cqw;pointer-events:none;
  background:linear-gradient(90deg,#2a3a78 1.4cqw,transparent 1.4cqw calc(100% - 1.4cqw),#2a3a78 calc(100% - 1.4cqw))}
.sticky-phone{position:sticky;top:max(90px,calc(50vh - 330px));align-self:start;transform:rotate(-2deg)}
.sticky-phone img{opacity:0;transform:scale(1.05);filter:blur(8px) saturate(1.3);transition:opacity .7s var(--out),transform 1s var(--out),filter .7s var(--out)}
.sticky-phone img.on{opacity:1;transform:none;filter:none}
/* the steps hang on a fishing line: a dashed rail with a float per step, the current one red and white */
.steps{list-style:none;margin:0;padding:0;position:relative}
.steps::before{content:"";position:absolute;left:15px;top:58px;bottom:36vh;border-left:3px dashed rgba(22,34,78,.2)}
.steps li{min-height:72vh;display:flex;align-items:center;padding:20px 0 20px 64px}
.steps li:first-child{min-height:56vh;align-items:flex-start;padding-top:40px}
.steps li > div{position:relative;max-width:27em}
.steps li > div::before{content:"";position:absolute;left:-63px;top:6px;width:30px;height:30px;border-radius:50%;border:3px solid var(--ink);background:var(--paper);
  transition:background .4s var(--out),transform .4s var(--out)}
.steps li.on > div::before{background:linear-gradient(var(--red) 50%,#fff 50%);transform:scale(1.15)}
.steps h3, .steps p{transition:opacity .5s var(--out)}
.steps li:not(.on) h3, .steps li:not(.on) p{opacity:.4}
.steps h3{font-size:clamp(28px,3vw,40px);margin-bottom:12px}
.steps p{font-size:20px;color:var(--ink-2)}
.steps .phone{display:none}

/* ------------------------------------------------------------------ legends: the night harbor notice board */
.legends{--edge:var(--ink);position:relative;background:var(--ink);color:var(--cream);padding:clamp(80px,10vw,140px) var(--gutter)}
.legends-in{max-width:1240px;margin:0 auto}
.legends-head{display:grid;grid-template-columns:1fr minmax(0,30em);gap:20px 60px;align-items:end}
.legends-head p{color:#c9d3f2;font-size:20px}
/* the board: harbor planks in the lamplight (wood from the game's crates and docks), framed, with grain from a noise filter */
.board{list-style:none;margin:clamp(40px,6vw,70px) 0 0;padding:clamp(40px,4.4vw,60px) clamp(24px,3vw,44px) clamp(44px,4.6vw,64px);display:grid;grid-template-columns:repeat(4,1fr);gap:44px 28px;
  border:3px solid var(--ink);border-radius:var(--r-lg);
  background:radial-gradient(80% 55% at 50% 0,rgba(255,206,120,.4),transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.003 .2' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .22 0 0 0 0 .1 0 0 0 0 .02 1.2 0 0 0 -.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    repeating-linear-gradient(180deg,transparent 0 92px,rgba(52,24,6,.45) 92px 95px,rgba(255,220,160,.18) 95px 97px),
    linear-gradient(90deg,#94602f,#ae7840 28%,#9d6834 58%,#b4803f);
  box-shadow:inset 0 0 0 9px #6a411e,inset 0 0 0 12px rgba(22,34,78,.55),inset 0 26px 40px -16px rgba(30,12,0,.45),0 34px 60px -30px rgba(0,0,0,.85)}
.note{--pin:var(--red);position:relative;color:var(--ink);border-radius:4px 4px 10px 10px/4px 4px 16px 16px;padding:30px 20px 18px;
  background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .38 0 0 0 0 .2 0 0 0 -1.4 .8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.35'/%3E%3C/svg%3E");
  box-shadow:inset 0 -14px 18px -14px rgba(160,120,50,.35),0 2px 3px rgba(40,16,0,.35),0 18px 26px -14px rgba(40,16,0,.7);
  transform:rotate(var(--tilt,0deg));transition:transform .35s var(--out),box-shadow .35s var(--out)}
.note:nth-child(4n+1){--tilt:-1.6deg}.note:nth-child(4n+2){--tilt:1.2deg;margin-top:22px}.note:nth-child(4n+3){--tilt:-.6deg}.note:nth-child(4n){--tilt:1.8deg;margin-top:12px}
.note:nth-child(3n+2){--pin:var(--sea)}.note:nth-child(5n+3){--pin:var(--amber)}
/* a map pin, or (every third note) a strip of tape */
.note::before{content:"";position:absolute;z-index:1;top:-10px;left:50%;width:22px;height:22px;margin-left:-11px;border-radius:50%;border:2px solid var(--ink);
  background:radial-gradient(circle at 36% 32%,rgba(255,255,255,.75) 0 16%,transparent 34%),var(--pin);box-shadow:0 5px 3px -1px rgba(40,16,0,.5)}
.note:nth-child(3n)::before{width:78px;height:26px;margin-left:-39px;top:-13px;border:0;border-radius:2px;transform:rotate(-4deg);
  background:repeating-linear-gradient(90deg,rgba(255,236,190,.82) 0 6px,rgba(255,226,160,.82) 6px 12px);box-shadow:0 1px 2px rgba(40,16,0,.3)}
.note:hover, .note:focus-visible{transform:rotate(0) translateY(-8px);box-shadow:inset 0 -14px 18px -14px rgba(160,120,50,.35),0 4px 6px rgba(40,16,0,.3),0 30px 40px -18px rgba(40,16,0,.8)}
.note:focus-visible{outline:3px solid var(--amber);outline-offset:5px;border-radius:6px 6px 12px 12px}
.note figure{position:relative;margin:0 0 8px;height:96px}
/* the rumour shows the legend as an ink silhouette (an alpha matte of its real render); hover / focus brings it out */
.note .sil, .note img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .5s var(--out),transform .5s var(--out)}
.note .sil{background:var(--ink);-webkit-mask:var(--fish) center/contain no-repeat;mask:var(--fish) center/contain no-repeat}
.note img{opacity:0;filter:drop-shadow(0 6px 6px rgba(10,40,80,.25))}
.note:hover img, .note:focus img{opacity:1;transform:scale(1.06)}
.note:hover .sil, .note:focus .sil{opacity:0}
.note h3{font-size:25px}
.note .when{display:inline-block;margin:6px 0 10px;font-weight:800;font-size:13.5px;letter-spacing:.04em;text-transform:uppercase;background:var(--ink);color:var(--amber);
  padding:4px 11px 1px;border-radius:999px;transform:rotate(-1deg)}
.note p{font-size:16px;line-height:1.45;color:var(--ink-2)}
.note .kg{display:block;margin-top:12px;padding-top:9px;border-top:2px dashed var(--line);font-weight:800;font-size:14px;color:var(--sea-deep);font-variant-numeric:tabular-nums}

/* ------------------------------------------------------------------ album */
.album{--edge:var(--sand);background:var(--sand)}
.album-head{display:grid;grid-template-columns:1fr minmax(0,30em);gap:16px 60px;align-items:end}
.album-head p{font-size:20px;color:var(--ink-2)}
.album-you{grid-column:2;font-weight:800;color:var(--ink) !important}
.album-you b{color:var(--sea-deep);font-size:26px;font-variant-numeric:tabular-nums}
/* the reveal: a game button (sea blue, ink outline, chunky foot); pressed it turns night blue */
.peek{grid-column:2;justify-self:start;display:inline-flex;align-items:center;gap:9px;font:800 17px/1 "Baloo 2",ui-rounded,system-ui,sans-serif;color:var(--cream);
  background:var(--sea);border:3px solid var(--ink);border-radius:999px;padding:11px 20px 9px 14px;margin-top:6px;cursor:pointer;touch-action:manipulation;
  box-shadow:0 5px 0 -1px var(--sea-deep),0 5px 0 2px var(--ink);transition:transform .12s var(--out),box-shadow .12s var(--out),background .2s}
.peek svg{width:24px;height:24px;flex:none}
.peek:hover{transform:translateY(-2px)}
.peek:active{transform:translateY(4px);box-shadow:0 1px 0 -1px var(--sea-deep),0 1px 0 2px var(--ink)}
.peek[aria-pressed=true]{background:var(--ink);box-shadow:0 5px 0 -1px #070b1f,0 5px 0 2px var(--ink)}
.peek .lid{transition:opacity .2s}
.peek[aria-pressed=false] .open, .peek[aria-pressed=true] .shut{opacity:0}
/* the rarity colours (rarities.json), read once, then just the dot on each card */
.rarity-key{list-style:none;margin:clamp(30px,4vw,44px) 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px 18px;font-weight:800;font-size:15px;color:var(--ink-2)}
.rarity-key li{display:inline-flex;align-items:center;gap:7px}
.rarity-key i, .fishes .dot{width:13px;height:13px;border-radius:50%;border:2px solid var(--ink);background:var(--rc)}
.fishes{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:12px}
/* an empty slot is a dashed pocket with the fish's shadow; a caught one a card washed in its rarity colour, with a green tick */
.fishes li{position:relative;display:grid;justify-items:center;align-content:start;gap:3px;padding:16px 8px 12px;border-radius:var(--r-md);text-align:center;
  border:2px dashed rgba(22,34,78,.2);background:rgba(255,251,240,.32)}
.fishes li.got{border:3px solid var(--ink);padding:15px 7px 11px;box-shadow:0 4px 0 -1px var(--ink);
  background:linear-gradient(color-mix(in srgb,var(--rc) 34%,var(--paper)),var(--paper) 78%)}
.fishes li.got::after{content:"";position:absolute;top:-9px;right:-9px;width:26px;height:26px;border-radius:50%;border:2px solid var(--ink);
  background:var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2316224e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat}
.fishes .pic{height:62px;display:grid;place-items:center}
.fishes img{max-width:112px;max-height:60px;object-fit:contain;filter:brightness(0) opacity(.2);transition:filter .5s var(--out)}
.fishes li.got img, .album.peek-all .fishes img{filter:none}
.fishes .fname{font-weight:800;font-size:14px;line-height:1.3;color:var(--ink)}
.fishes li:not(.got) .fname{color:rgba(22,34,78,.62)}
.fishes .dot{margin-top:4px}
.album:not(.peek-all) .fishes li:not(.got) .dot{opacity:.4}

/* ------------------------------------------------------------------ trailer */
.trailer{--edge:var(--sea-deep);position:relative;background:var(--sea-deep) radial-gradient(60% 80% at 78% 50%,#0f6fa6,transparent 70%);color:var(--cream);padding:clamp(80px,10vw,140px) var(--gutter)}
.trailer :focus-visible{outline-color:var(--amber)}
.trailer-in{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1fr minmax(260px,350px);gap:clamp(30px,6vw,90px);align-items:center}
.trailer-copy p{margin-top:14px;font-size:21px;color:#cfe8f6;max-width:22em}
.trailer .sticker{display:block;width:min(340px,70%);height:auto;margin-top:26px;filter:drop-shadow(0 18px 20px rgba(0,0,0,.3))}
.phone.video{transform:rotate(1.5deg)}
/* the play button over the poster (native controls take over once it plays) */
.play{position:absolute;z-index:4;left:50%;top:50%;width:92px;height:92px;margin:-46px 0 0 -46px;display:grid;place-items:center;border-radius:50%;cursor:pointer;
  background:var(--amber);border:3px solid var(--ink);box-shadow:0 6px 0 -1px var(--amber-deep),0 6px 0 2px var(--ink),0 24px 36px -12px rgba(0,0,0,.6);
  transition:transform .15s var(--out),box-shadow .15s var(--out)}
.play svg{width:36px;height:36px;margin-left:6px}
.play:hover{transform:scale(1.07)}
.play:active{transform:translateY(4px);box-shadow:0 2px 0 -1px var(--amber-deep),0 2px 0 2px var(--ink)}
.phone.video.playing .play, .play[hidden]{display:none}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ------------------------------------------------------------------ fair play */
.fair{background:var(--cream);position:relative;z-index:1}
.promises{list-style:none;margin:clamp(30px,5vw,56px) 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 64px;border-top:2px dashed var(--line)}
.promises li{display:grid;grid-template-columns:64px 1fr;gap:20px;align-items:center;padding:26px 0;border-bottom:2px dashed var(--line)}
/* one drawn icon set: 44-unit grid, ink strokes 2.5, cream / sea / amber / red fills, each in the same foam coin */
.promises svg{width:64px;height:64px;padding:7px;border-radius:50%;background:var(--foam);border:3px solid var(--ink);box-shadow:0 4px 0 -1px var(--ink)}
.promises b{display:block;font-size:23px;line-height:1.3;margin-bottom:2px}
.promises li > div{color:var(--ink-2)}
.promises a{color:var(--sea-deep)}

/* ------------------------------------------------------------------ finale */
.home{min-height:130vh;min-height:130svh;display:flex;align-items:flex-end;padding:40vh var(--gutter) 18vh;overflow-x:clip}
.home-copy{position:relative;max-width:640px;display:grid;justify-items:start;gap:18px;color:var(--cream)}
/* a pool of dusk behind the copy keeps it readable over the bright bay */
.home-copy::before{content:"";position:absolute;z-index:-1;inset:-30% -40% -30% -50%;background:radial-gradient(closest-side,rgba(10,22,58,.5),transparent);pointer-events:none}
.home h2{font-size:clamp(46px,7vw,96px);-webkit-text-stroke:.12em var(--ink);paint-order:stroke fill;text-shadow:0 .06em 0 var(--ink)}
.home p{font-size:clamp(19px,1.7vw,23px);max-width:28em;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.home .stores{margin-top:10px}

/* ------------------------------------------------------------------ footer */
.foot{--edge:var(--ink);position:relative;z-index:1;background:var(--ink);color:#aeb9e0}
.foot-in{max-width:1180px;margin:0 auto;padding:30px var(--gutter) max(36px,env(safe-area-inset-bottom));display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 32px}
.foot-brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--cream)}
.foot-brand img{width:46px;height:46px;border-radius:13px;border:2px solid rgba(255,246,222,.3)}
.foot-brand b{display:block;font-size:21px;line-height:1.1}
.foot-brand small{display:block;font-size:14px;line-height:1.3;color:#aeb9e0}
.foot-links{display:flex;flex-wrap:wrap;gap:8px}
.foot-links a{color:var(--cream);text-decoration:none;font-weight:800;font-size:15px;padding:8px 16px 6px;border-radius:999px;border:2px solid rgba(255,246,222,.24);transition:background .2s,border-color .2s}
.foot-links a:hover{background:rgba(255,246,222,.1);border-color:var(--cream)}
/* ------------------------------------------------------------------ small screens */
@media (max-width:820px){
  body{font-size:17px}
  /* hero: centred like the game's splash; the stronger haze reaches past the lead */
  .hero{padding:max(84px,10svh) 20px 36px;background:linear-gradient(rgba(255,243,220,.62),rgba(255,243,220,.48) 42%,rgba(255,243,220,.26) 58%,rgba(255,243,220,0) 72%)}
  .hero-copy{margin:0 auto;display:flex;flex-direction:column;align-items:center;text-align:center}
  .logo{align-self:stretch}
  .logo img{width:min(100%,330px);margin:0 auto}
  .sub{margin-top:16px;font-size:26px}
  .lead{max-width:24em;font-size:17px;line-height:1.5;color:var(--ink)}
  .actions{justify-items:center;margin-top:22px}
  .actions .ghost[href="#trailer"]{display:none}
  .store{font-size:17px;padding:13px 20px 11px;white-space:nowrap}
  .store.big{font-size:18px;padding:15px 24px 13px}
  .cast{display:block;padding:86px 18px 40px}
  .cast-copy{padding:16px 18px 14px;border-radius:22px}
  .cast-copy h2{font-size:40px}
  .cast-copy p{font-size:16px;line-height:1.45}
  .cast-btn{font-size:23px;min-width:200px;bottom:max(48px,7svh)}
  .toy-say{bottom:calc(max(48px,7svh) + 84px);font-size:20px}
  .tally{margin-top:10px;padding-top:8px;font-size:15px}
  .tally b{font-size:21px}
  .tally a{font-size:15px}
  .meter{right:18px;width:40px;height:min(36svh,260px)}
  .catch{left:50%;top:55%}
  html.no-webgl .pond{top:64%}
  .loop{display:block}
  .sticky-phone{display:none}
  .steps::before, .steps li > div::before{display:none}
  .steps li, .steps li:first-child{min-height:0;display:grid;grid-template-columns:minmax(0,140px) 1fr;gap:22px;align-items:center;padding:20px 0}
  .steps li:not(.on) h3, .steps li:not(.on) p{opacity:1}
  .steps li:nth-child(even){grid-template-columns:1fr minmax(0,140px)}
  .steps li:nth-child(even) .phone{order:1;transform:rotate(2deg)}
  .steps .phone{display:block;transform:rotate(-2deg)}
  .steps h3{font-size:26px;margin-bottom:8px}
  .steps p{font-size:17px;line-height:1.5}
  .legends-head, .album-head{display:block}
  .legends-head p, .album-head p{margin-top:14px}
  .board{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:20px;padding:34px var(--gutter) 34px;margin:30px calc(-1 * var(--gutter)) 0;scroll-padding-left:var(--gutter);
    border-width:3px 0;border-radius:0;scrollbar-width:none}
  .note{flex:0 0 min(270px,74vw);scroll-snap-align:start;margin-top:0 !important}
  .note img{opacity:1}
  .note .sil{opacity:0}
  .peek{margin-top:18px}
  .fishes{grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:9px}
  .fishes li{padding:12px 4px 9px}
  .fishes li.got{padding:11px 3px 12px}
  .fishes li.got::after{width:22px;height:22px;top:-7px;right:-7px;background-size:13px}
  .fishes img{max-width:66px;max-height:38px}
  .fishes .pic{height:40px}
  .fishes .fname{font-size:12px;line-height:1.2}
  .trailer-in{display:block}
  .phone.video{max-width:300px;margin:38px auto 0}
  .trailer .sticker{display:none}
  .promises{grid-template-columns:1fr}
  .promises li{grid-template-columns:56px 1fr;gap:16px}
  .promises svg{width:56px;height:56px;padding:6px}
  .promises b{font-size:21px}
  .home{padding-bottom:12svh}
  .home-copy{justify-items:center;text-align:center;margin:0 auto}
  .home-copy::before{inset:-20% -30%}
  .foot-in{justify-content:flex-start}
}
@media (max-width:420px){
  .steps li, .steps li:first-child{grid-template-columns:minmax(0,112px) 1fr;gap:16px}
  .steps li:nth-child(even){grid-template-columns:1fr minmax(0,112px)}
  .steps h3{font-size:22px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none !important;transition:none !important}
}
