@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Nunito:wght@400;500;600;700;800;900&family=Caveat:wght@400;500&display=swap');
:root {
  --white:#f7fbff; --mist:#d8f3ff; --aqua:#a7d8f0; --sea:#5ea8c7;
  --deep:#244b5a; --pink:#fff1f5; --gold:#ffe6a8;
  --shadow:0 24px 70px rgba(36,75,90,.16);
  --serif:'DM Serif Display',Georgia,serif; --sans:'Nunito',Arial,sans-serif; --hand:'Caveat',cursive;
  --radius:24px; --line:rgba(94,168,199,.2); --ink-soft:#486875;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:0}
body{margin:0;min-width:320px;color:var(--deep);font:600 15px/1.7 var(--sans);overflow-x:clip;background:radial-gradient(circle at 16% 10%,rgba(255,241,245,.95),transparent 22rem),radial-gradient(circle at 88% 14%,rgba(255,230,168,.58),transparent 18rem),linear-gradient(180deg,var(--white),var(--mist) 42%,var(--aqua) 100%);background-attachment:fixed;min-height:100svh}
button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible{outline:3px solid var(--sea);outline-offset:4px}
a{color:inherit}
[hidden]{display:none!important}
h1,h2,h3,p{overflow-wrap:break-word}
::selection{background:var(--gold);color:var(--deep)}
.definitions{position:absolute;width:0;height:0}
.grain{display:none}
.sea-atmosphere{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:0}
.bubbles{position:absolute;inset:0;opacity:.55}
.bubbles i{position:absolute;left:var(--left);bottom:-35px;width:var(--size);height:var(--size);border:1px solid #fff;border-radius:50%;background:radial-gradient(circle at 35% 28%,#fff,transparent 54%);animation:bubble-rise var(--duration) var(--delay) linear infinite}
.ambient-star{position:absolute;left:5%;top:36%;color:var(--sea);opacity:.35;font-size:25px;animation:twinkle 6s infinite alternate}
.ambient-star+span{left:auto;right:4%;top:78%;font-size:19px;animation-delay:-3s}
header{position:sticky;top:16px;z-index:40;display:flex;align-items:center;gap:20px;justify-content:space-between;width:min(1000px,calc(100% - 40px));margin:20px auto 0;padding:15px 22px;border:1px solid #fff;border-radius:20px;background:rgba(247,251,255,.96);box-shadow:0 8px 25px #244b5a0a;backdrop-filter:blur(16px)}
header:after{content:'';position:absolute;left:22px;right:22px;bottom:-1px;height:2px;border-radius:3px;background:var(--sea);transform-origin:left;transform:scaleX(var(--journey-progress,.2));opacity:.6}
.wordmark{display:flex;align-items:center;gap:9px;font:23px var(--serif);text-decoration:none;white-space:nowrap}
.mark{font:32px/1 Georgia;color:var(--sea)}
.chapter-indicator{font-size:10px;color:var(--ink-soft);letter-spacing:.06em;text-align:center;flex:1}
.music{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 14px;border:1px solid #fff;border-radius:24px;background:var(--pink);font-size:18px;transition:transform .25s,box-shadow .25s;white-space:nowrap}
.music span{font-size:11px;font-weight:800}
.music:hover{transform:translateY(-2px);box-shadow:0 5px 14px #244b5a13}
.music[aria-pressed=true]{box-shadow:0 0 0 3px #fff1f577}
main{position:relative;z-index:2;width:min(1000px,calc(100% - 40px));margin:28px auto 0}
.scene{position:relative;margin:0 0 28px;padding:48px;border:1px solid #fff;border-radius:var(--radius);background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(247,251,255,.88));box-shadow:var(--shadow);scroll-margin-top:110px}
.scene-heading{text-align:center;max-width:640px;margin:0 auto 30px}
.eyebrow{margin:0 0 14px;color:#3f8ead;font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
h1,h2,h3{font-family:var(--serif);font-weight:400;letter-spacing:-.02em;line-height:1.06;margin:0}
h1{font-size:clamp(48px,5.1vw,68px)}
h2{font-size:clamp(37px,4.2vw,52px)}
em{font-weight:400;color:var(--sea)}
.scene-heading>p:not(.eyebrow){max-width:470px;margin:16px auto 0;color:var(--ink-soft);font-size:14px;line-height:1.8}
.text-button{display:inline-flex;align-items:center;justify-content:center;gap:23px;min-height:50px;padding:13px 25px;border:1px solid #fff;border-radius:30px;background:linear-gradient(135deg,var(--pink),var(--gold));box-shadow:0 10px 24px #244b5a19;font-size:13px;font-weight:900;transition:transform .25s,box-shadow .25s}
.text-button span{font-size:21px;font-weight:500;line-height:1;transition:translate .25s}
.text-button:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 14px 28px #244b5a25}
.text-button:hover:not(:disabled) span{translate:3px 0}
.text-button:active:not(:disabled){transform:translateY(0)}
.text-button:disabled{background:var(--mist);color:var(--ink-soft);box-shadow:none;border-color:#fff;opacity:.72}
.intro{padding:30px 36px 23px}
.hero-topline{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:23px;border-bottom:1px solid var(--line)}
.little-label{display:inline-block;padding:6px 12px;border:1px solid #fff;border-radius:20px;background:var(--pink);font-size:10px;font-weight:800}
.edition-label{font-size:8px;letter-spacing:.14em;color:var(--ink-soft)}
.intro-layout{display:grid;grid-template-columns:1fr .92fr;gap:34px;align-items:center;padding:36px 0}
.intro-copy .eyebrow{font-size:10px;margin-bottom:18px}
.intro-line{font-size:14px;line-height:1.85;color:var(--ink-soft);margin:23px 0}
.primary{min-width:215px}
.hero-art{position:relative;height:365px;overflow:hidden;border-radius:21px;border:1px solid #fff;background:radial-gradient(circle at 82% 17%,#ffe6a8bb,transparent 30%),linear-gradient(165deg,var(--white),var(--mist) 55%,var(--aqua));box-shadow:inset 0 0 30px #f7fbff88,0 8px 25px #244b5a10;isolation:isolate}
.ocean-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.sun-glow{position:absolute;width:75px;height:75px;right:12%;top:28px;background:radial-gradient(circle,var(--gold),#ffe6a800 70%);border-radius:50%;filter:blur(3px)}
.hero-art .pool-ring{position:absolute;width:78%;height:50%;left:12%;top:39%;border:1px solid #f7fbff99;border-radius:50%;transform:rotate(-14deg);opacity:.45}
.hero-art .ring-two{width:55%;height:33%;left:21%;top:49%;opacity:.3}
.hero-art>svg:not(.note-arrow){position:absolute;z-index:3;filter:drop-shadow(0 10px 7px #244b5a22)}
.hero-shell{width:135px;height:135px;top:119px;left:41%;transform:rotate(15deg);animation:shell-float 8s ease-in-out infinite}
.hero-glass{width:66px;height:66px;left:17%;top:245px;animation:glass-drift 9s ease-in-out infinite}
.hero-pearl{width:51px;height:51px;left:73%;top:265px;animation:float 7s ease-in-out infinite}
.hero-note{position:absolute;z-index:4;left:24px;top:25px;font:27px/1.1 var(--hand);transform:rotate(-6deg)}
.handwritten{font:28px/1.25 var(--hand)}
.note-arrow{position:absolute;z-index:3;width:67px;height:67px;left:29px;top:98px;fill:none;stroke:var(--sea);stroke-width:1.1}
.star{position:absolute;z-index:2;font-style:normal;color:#fff;animation:twinkle 4s infinite alternate}
.star-one{left:40%;top:87px;font-size:27px}
.star-two{left:82%;top:208px;font-size:19px;animation-delay:-2s}
.personal-strip{display:grid;grid-template-columns:1fr 38px 1fr;align-items:center;gap:12px;padding:18px 22px;border:1px solid var(--line);border-radius:16px;background:var(--mist);text-align:center}
.personal-strip>div{min-width:0}
.personal-strip div span{display:block;color:#3f8ead;font-size:10px;font-weight:900;letter-spacing:.06em;margin-bottom:3px}
.personal-strip strong{font-size:16px;font-weight:900;line-height:1.4}
.strip-heart{font:26px var(--serif);color:var(--sea)}
.soundtrack-row{padding:20px 0 0}
.soundtrack-note{display:flex;align-items:center;gap:14px;width:100%;padding:15px 18px;border:1px solid #f1e9ed;border-radius:16px;background:var(--pink);text-align:left;transition:box-shadow .25s,transform .25s}
.soundtrack-note:hover{transform:translateY(-2px);box-shadow:0 8px 20px #244b5a0d}
.soundtrack-note b{display:block;font-size:13px;font-weight:900;line-height:1.4}
.soundtrack-note small{display:block;font-size:12px;line-height:1.55;margin-top:3px;color:var(--ink-soft)}
.record-icon{flex-shrink:0;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:7px double var(--sea);background:var(--deep);color:var(--pink);font-size:13px}
.music-playing .record-icon{animation:record-spin 15s linear infinite}
#soundtrack-icon{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border:1px solid #fff;border-radius:50%;background:#fff9;font-size:15px;margin-left:auto}
.music-status{font-size:9px;line-height:1.5;color:var(--ink-soft);margin:8px 2px 0}
.shore-label{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--line);padding-top:18px;margin-top:20px;font-size:8px;letter-spacing:.09em;color:var(--ink-soft)}
.scroll-invitation{letter-spacing:0;text-align:right}.scroll-invitation b{font-size:14px;margin-left:6px}
.counter{display:inline-flex;align-items:center;justify-content:center;border:1px solid #c5e6f3;border-radius:20px;background:var(--mist);padding:7px 14px;margin:17px 0 0;font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.collect-pool{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:25px 18px 20px;border:1px solid #c5e6f3;border-radius:20px;background:linear-gradient(155deg,var(--mist),#a7d8f066);isolation:isolate;overflow:hidden}
.collect-pool>.pool-ring{position:absolute;pointer-events:none;width:90%;height:100%;left:5%;top:22%;border:1px solid #fff9;border-radius:50%;opacity:.5}
.collectible{position:relative;min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:8px;min-height:154px;padding:12px 5px;border:1px solid transparent;border-radius:16px;transition:background .25s,transform .25s,border-color .25s}
.collectible>svg{width:78px;height:78px;filter:drop-shadow(0 8px 6px #244b5a18);transition:transform .3s}
.collectible:hover,.collectible.is-reading{background:#f7fbffdd;border-color:#fff}
.collectible:hover>svg{transform:translateY(-4px) rotate(6deg)}
.object-name{font-size:12px;font-weight:900;line-height:1.4;text-align:center}
.collect-hint{font-size:9px;color:var(--ink-soft);line-height:1.4}
.collectible[aria-pressed=true] .collect-hint{color:#3f8ead}
.collectible.found-0>svg{animation:glass-turn .65s both}.collectible.found-1>svg{animation:shell-open .65s both}.collectible.found-2>svg{animation:pearl-rise .65s both}.collectible.found-3>svg{animation:stone-rock .65s both}
.keepsake-note{min-height:142px;margin-top:16px;padding:22px 25px;border:1px solid #ecdde4;border-radius:16px;background:var(--pink);transition:background .25s}
.note-kicker{display:block;color:#3f8ead;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;margin-bottom:7px}
.keepsake-note strong{font:26px/1.15 var(--serif);display:block}
.keepsake-note p{font-size:13px;line-height:1.8;margin:10px 0 0;color:var(--ink-soft);max-width:700px}
.keepsake-note[data-tone="2"]{background:linear-gradient(135deg,var(--white),var(--mist));border-color:#c5e6f3}
.keepsake-note[data-tone="3"]{background:linear-gradient(135deg,var(--white),#ffe6a877);border-color:#eadfbf}
.found-tray{display:flex;justify-content:center;gap:14px;padding:18px 0 0;min-height:0}
.found-tray:empty{display:none}.found-tray svg{width:34px;height:34px;animation:note-reveal .5s both}
.little-game{margin:27px 0 0;padding:28px;border:1px solid #c5e6f3;border-radius:20px;background:linear-gradient(145deg,var(--white),#d8f3ff88);animation:note-reveal .5s both}
.game-heading{display:flex;justify-content:space-between;align-items:start;gap:15px;margin-bottom:25px}
.game-heading .eyebrow{font-size:9px;margin-bottom:10px}
.game-heading h3{font-size:32px;line-height:1.15}
.game-heading p:not(.eyebrow){font-size:12px;color:var(--ink-soft);line-height:1.8;margin:12px 0 0;max-width:450px}
.game-tag{padding:5px 10px;border:1px solid #fff;border-radius:20px;font-size:9px;background:var(--pink);white-space:nowrap;flex-shrink:0}
.match-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;max-width:540px;margin:auto}
.match-card{position:relative;aspect-ratio:1/1.04;padding:0;border-radius:15px;perspective:700px}
.match-card-inner{position:absolute;inset:0;display:block;transform-style:preserve-3d;transition:transform .5s cubic-bezier(.2,.75,.25,1)}
.match-card.is-flipped .match-card-inner{transform:rotateY(180deg)}
.match-card-back,.match-card-front{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;border:1px solid #fff;border-radius:15px;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 6px 14px #244b5a10}
.match-card-back{background:linear-gradient(150deg,var(--mist),var(--aqua));font:36px var(--serif);color:var(--sea)}
.match-card-back small{font:19px var(--hand);color:var(--deep)}
.match-card-front{background:var(--white);transform:rotateY(180deg)}
.match-card-front svg{width:70%;height:70%;filter:drop-shadow(0 6px 4px #244b5a18)}
.match-card:hover:not(:disabled) .match-card-back{border-color:var(--sea);box-shadow:0 8px 18px #244b5a20}
.match-card:disabled{opacity:1}
.match-card.is-matched .match-card-front{border-color:var(--gold);background:linear-gradient(145deg,var(--white),#ffe6a899)}
.game-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;max-width:540px;margin:20px auto 0;padding-top:16px;border-top:1px solid var(--line)}
.game-bottom p{font-size:11px;line-height:1.7;margin:0;color:var(--ink-soft)}
.quiet-button{font-size:10px;text-decoration:underline;text-underline-offset:4px;white-space:nowrap;padding:4px 0}
.game-won{border-color:#e9d5a0}
.chapter-gate{margin:28px 0 0;padding:23px 0 0;border-top:1px dashed #accfdd;text-align:center}
.chapter-gate>p{font-size:12px;color:var(--ink-soft);line-height:1.8;margin:0 auto 15px;max-width:540px}
.next-action{display:flex;width:100%;max-width:440px;margin:auto}
.trail-route{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #c5e6f3;border-radius:20px;background:var(--white);overflow:hidden}
.route-line{display:none}
.trail-stop{padding:25px;min-width:0;border-bottom:1px solid var(--line)}
.trail-stop:nth-of-type(odd){border-right:1px solid var(--line)}
.trail-stop:nth-last-child(-n+2){border-bottom:0}
.trail-stop button{width:100%;padding:0;text-align:left;display:grid;grid-template-columns:60px 1fr;column-gap:17px;align-items:center}
.trail-stop svg{grid-row:1/3;width:60px;height:60px;filter:drop-shadow(0 6px 5px #244b5a12);transition:transform .25s}
.trail-stop button:hover svg{transform:translateY(-4px) rotate(-6deg)}
.stop-number{font-size:9px;letter-spacing:.07em;color:#3f8ead;font-weight:900;display:block;margin-bottom:5px}
.trail-stop h3{font-size:24px;line-height:1.15}
.trail-text{font-size:13px;line-height:1.8;margin:18px 0 0;color:var(--ink-soft);animation:note-reveal .45s both}
.trail-image{width:72px;height:72px;float:right;margin:5px 0 10px 13px;padding:4px;border:1px solid var(--line);border-radius:8px;background:#fff;object-fit:cover}
.trail-stop.opened .stop-number:after{content:' · found';letter-spacing:0}
.trail-hint{text-align:center;color:var(--ink-soft);font-size:11px;margin:17px 0 0}
.pearl-water{position:relative;height:250px;max-width:570px;margin:auto;overflow:hidden;border:1px solid #c5e6f3;border-radius:18px;background:radial-gradient(ellipse at 40% 30%,var(--white),var(--mist) 40%,var(--aqua));box-shadow:inset 0 0 30px #fff9}
.pearl-catch-rings{position:absolute;inset:16% 12%;border:1px solid #fff;border-radius:50%;box-shadow:0 0 0 14px #fff3,0 0 0 16px #fff6,0 0 0 30px #fff2;animation:pool-breathe 8s infinite}
.catch-pearl{position:absolute;left:50%;top:48%;width:80px;height:80px;transform:translate(-50%,-50%);padding:0;border-radius:50%;transition:left .2s,top .2s}
.catch-pearl svg{width:100%;height:100%;filter:drop-shadow(0 6px 6px #244b5a22);animation:float 5s infinite}
.catch-pearl:hover svg{filter:drop-shadow(0 0 12px #fff)}
.pearl-progress{display:flex;justify-content:center;gap:11px;margin:20px 0 14px}
.pearl-progress i{width:12px;height:12px;border:1px solid var(--sea);border-radius:50%;background:#fff9}
.pearl-progress i.caught{background:var(--gold);border-color:#d1ba80;box-shadow:0 0 0 3px #ffe6a844}
.pearl-wish{text-align:center;font-size:13px;line-height:1.7;min-height:24px;margin:0;color:var(--ink-soft)}
.pearl-complete{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:18px;animation:note-reveal .5s both}
.pearl-complete svg{width:80px;height:80px}.pearl-complete span{font:29px/1.2 var(--hand)}
.caught-a-pearl .pearl-catch-rings{animation:pearl-ripple .6s both}
.memory-beach{height:370px;position:relative;isolation:isolate;overflow:hidden;border:1px solid #c5e6f3;border-radius:20px;background:linear-gradient(170deg,var(--white),var(--mist))}
.memory-ocean{opacity:.65}
.memory-print{position:absolute;z-index:1;left:50%;top:30px;width:230px;height:294px;padding:10px 10px 32px;border:1px solid #fff;border-radius:11px;background:var(--white);box-shadow:0 12px 25px #244b5a22;transform:translate(calc(-50% + var(--x)*.22),16px) rotate(var(--r));scale:.88;opacity:.45;transition:transform .3s,box-shadow .3s}
.memory-print:last-child{z-index:10;scale:1;opacity:1;transform:translate(-50%,0) rotate(-3deg);animation:arrive 1s both}
.memory-print:last-child:hover{transform:translate(-50%,-4px) rotate(0deg);box-shadow:0 16px 30px #244b5a2b}
.memory-print img{display:block;width:100%;height:225px;object-fit:cover;border-radius:5px;background:var(--mist)}
.print-label{display:block;font:23px/1.3 var(--hand);text-align:center;margin-top:9px}
.memory-controls{text-align:center;padding-top:5px}
.memory-controls .counter{margin-top:19px}
.memory-hint{font-size:12px;line-height:1.8;color:var(--ink-soft);margin:14px auto;max-width:480px}
.memory-action-row{display:flex;justify-content:center;gap:13px;flex-wrap:wrap;margin-top:18px}
.memory-action-row .text-button{font-size:12px;gap:15px;min-width:180px}
.memory-controls .bottle-button{display:flex;max-width:440px;width:100%;justify-content:center;margin:22px auto 0;padding:15px 20px;border:1px solid #fff;border-radius:19px;background:linear-gradient(135deg,var(--pink),var(--gold));box-shadow:0 8px 20px #244b5a15}
.bottle-button{display:inline-flex;align-items:center;gap:18px;font:27px/1.2 var(--hand)}
.bottle-button svg{width:52px;height:80px;filter:drop-shadow(0 8px 7px #244b5a18);transition:transform .3s}
.bottle-button:hover svg{transform:rotate(8deg) translateY(-3px)}
.bottle-intro{text-align:center;max-width:500px;margin:auto;padding:8px 0}
.large-bottle{position:relative;display:flex;align-items:center;flex-direction:column;margin:32px auto 0;gap:16px;padding:18px 30px 22px;border:1px solid #c5e6f3;border-radius:20px;background:linear-gradient(145deg,var(--white),var(--mist))}
.large-bottle svg{width:108px;height:180px;animation:float 7s infinite}
.large-bottle:before{content:'';position:absolute;top:26px;width:22px;height:14px;border-radius:2px;background:var(--gold);opacity:0;pointer-events:none}
.large-bottle.uncorking:before{animation:cork-pop .65s both}.large-bottle.uncorking svg{animation:uncork-bottle .65s both}
.letter{max-width:650px;margin:auto;padding:36px 40px;border:1px solid #eadfe4;border-radius:18px;background:linear-gradient(145deg,var(--white),#fff1f5aa);box-shadow:0 12px 30px #244b5a0b;transform-origin:top;animation:unfold .8s both}
.letter:before{content:'A NOTE FROM THE SHORE';display:block;margin-bottom:26px;font-size:9px;font-weight:900;letter-spacing:.13em;color:#3f8ead}
.letter p{font-size:14px;line-height:1.95;margin:0 0 20px;white-space:pre-line}
.letter p:first-child,.letter p:last-child{font:30px/1.25 var(--hand)}
.reply-area{position:relative;margin:30px auto 0;padding:28px 25px 15px;border-top:1px solid var(--line);max-width:750px;text-align:center}
.empty-bottle{position:absolute;width:37px;height:65px;top:28px;right:14px;transform:rotate(15deg)}
.reply-area>.handwritten{margin:0 0 23px}
.reply-choices{display:flex;flex-direction:column;gap:10px;max-width:440px;margin:auto}
.reply-choices button{padding:13px 18px;min-height:47px;border:1px solid #c5e6f3;border-radius:15px;background:var(--white);font-size:12px;font-weight:800;transition:background .25s,transform .25s}
.reply-choices button:hover{background:var(--pink);transform:translateY(-2px)}
.reply-choices button[aria-pressed=true]{background:var(--gold);border-color:#e9d5a0}
.reply-paper{max-width:380px;margin:20px auto;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--white);font:24px/1.35 var(--hand);animation:paper-into-bottle 1.6s both}
#send-reply{margin-top:20px}
#reply-status{font-size:11px;line-height:1.7;color:var(--ink-soft);margin:15px auto 0;max-width:380px}
.fallback{display:inline-block;font-size:12px;margin-top:12px}
.final-shore{text-align:center;padding:55px 0 25px}.final-shore>p:not(.eyebrow){font:26px var(--hand)}
body.sent .empty-bottle{animation:bottle-away 3s forwards}
footer{position:relative;z-index:2;width:min(1000px,calc(100% - 40px));margin:0 auto 24px;padding:15px 4px;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:11px}
.back{font-size:11px;padding:6px 0;font-weight:800}.back:hover{color:var(--sea)}
.footer-wave{font:24px Georgia;letter-spacing:3px;color:var(--sea)}.footer-label{font-size:10px;color:var(--ink-soft)}
.touch-ripple{position:absolute;z-index:50;pointer-events:none;width:18px;height:18px;margin:-9px;border:1px solid #fff;border-radius:50%;box-shadow:0 0 0 6px #a7d8f033;animation:touch-ripple .8s ease-out forwards}
.motion-ready .scroll-reveal{opacity:0;translate:0 16px;transition:opacity .6s var(--reveal-delay,0ms),translate .6s var(--reveal-delay,0ms)}
.motion-ready .scroll-reveal.in-view{opacity:1;translate:0 0}
.chapter-opened{animation:chapter-arrive .6s both}
dialog{max-width:min(90vw,460px);padding:30px;border:1px solid #fff;border-radius:20px;background:var(--white);color:var(--deep);box-shadow:var(--shadow)}
dialog[open]{animation:note-reveal .3s both}dialog::backdrop{background:#244b5a88;backdrop-filter:blur(7px)}
.close-dialog{position:absolute;top:3px;right:9px;font-size:26px;padding:4px 9px}
#photo-detail img{display:block;width:100%;max-height:55svh;object-fit:contain;border-radius:9px}
#photo-detail p{text-align:center;font:27px/1.3 var(--hand);margin:20px 0 0}
@media(max-width:900px){.scene{padding:34px}.intro{padding:27px}.intro-layout{gap:24px}.hero-art{height:345px}.hero-shell{width:120px;height:120px;left:39%;top:113px}.hero-glass{top:230px}.hero-pearl{top:250px}.hero-note{font-size:25px}.game-tag{display:none}.trail-stop{padding:22px}.trail-stop button{grid-template-columns:54px 1fr;gap:12px}.trail-stop svg{width:54px;height:54px}.trail-stop h3{font-size:22px}}
@media(max-width:650px){
 header{top:10px;width:calc(100% - 24px);margin-top:12px;padding:12px 15px;border-radius:17px;gap:12px}
 .wordmark{font-size:21px;gap:7px}.mark{font-size:28px}.chapter-indicator{display:none}.music{min-height:36px;padding:6px 11px;margin-left:auto;gap:6px}.music span{font-size:10px}
 main{width:calc(100% - 24px);margin-top:18px}.scene{padding:28px 20px;border-radius:21px;margin-bottom:19px;scroll-margin-top:94px}
 .intro{padding:19px 19px 16px}.hero-topline{gap:10px;padding-bottom:17px}.little-label{font-size:8px;padding:5px 9px}.edition-label{font-size:6px;letter-spacing:.07em;white-space:nowrap}
 .intro-layout{display:flex;flex-direction:column;gap:25px;padding:25px 0}.intro-copy{width:100%;text-align:center}.intro-copy .eyebrow{font-size:9px;letter-spacing:.12em;margin-bottom:14px}
 h1{font-size:clamp(42px,10.9vw,63px);line-height:1.06}h2{font-size:38px}.intro-line{font-size:12px;line-height:1.85;margin:18px 0}.intro-line br{display:none}.primary{width:100%;min-width:0}
 .hero-art{width:100%;height:240px;border-radius:17px}.hero-note{left:19px;top:17px;font-size:24px}.note-arrow{left:22px;top:80px;width:52px;height:52px}.sun-glow{width:65px;height:65px;top:20px;right:9%}
 .hero-shell{width:105px;height:105px;left:45%;top:75px}.hero-glass{width:51px;height:51px;left:18%;top:166px}.hero-pearl{width:41px;height:41px;left:76%;top:178px}.star-one{top:55px;left:40%;font-size:23px}.star-two{left:87%;top:147px;font-size:17px}
 .personal-strip{grid-template-columns:1fr 20px 1fr;padding:14px 10px;gap:6px;border-radius:13px}.personal-strip div span{font-size:9px}.personal-strip strong{font-size:13px}.strip-heart{font-size:22px}
 .soundtrack-row{padding-top:15px}.soundtrack-note{padding:12px;gap:10px;border-radius:13px}.soundtrack-note b{font-size:12px}.soundtrack-note small{font-size:10px;line-height:1.5}.record-icon{width:31px;height:31px;border-width:6px}#soundtrack-icon{width:26px;height:26px;font-size:13px}.music-status{font-size:8px;margin-top:7px}
 .shore-label{font-size:6px;letter-spacing:.04em;padding-top:14px;margin-top:15px;gap:10px}.scroll-invitation{max-width:150px}.scroll-invitation b{font-size:12px;margin-left:3px}
 .scene-heading{margin-bottom:24px}.eyebrow{font-size:9px;letter-spacing:.12em;margin-bottom:12px}.scene-heading>p:not(.eyebrow){font-size:12px;line-height:1.8;margin-top:15px}.scene-heading>p br{display:none}.counter{font-size:9px;margin-top:15px;padding:6px 11px}
 .collect-pool{grid-template-columns:repeat(2,minmax(0,1fr));padding:13px;gap:8px;border-radius:16px}.collectible{min-height:139px;padding:12px 5px;gap:7px;border-radius:13px}.collectible>svg{width:68px;height:68px}.object-name{font-size:11px}.collect-hint{font-size:8px}
 .keepsake-note{min-height:165px;padding:18px;border-radius:14px;margin-top:13px}.note-kicker{font-size:8px}.keepsake-note strong{font-size:23px}.keepsake-note p{font-size:12px;line-height:1.8;margin-top:9px}.found-tray{padding-top:16px;gap:13px}.found-tray svg{width:30px;height:30px}
 .little-game{padding:22px 15px;border-radius:16px;margin-top:22px}.game-heading{margin-bottom:21px}.game-heading .eyebrow{font-size:8px;margin-bottom:9px}.game-heading h3{font-size:28px;line-height:1.13}.game-heading p:not(.eyebrow){font-size:11px;line-height:1.7;margin-top:12px}
 .match-board{gap:8px}.match-card{aspect-ratio:1/1.24}.match-card,.match-card-back,.match-card-front{border-radius:11px}.match-card-back{font-size:27px}.match-card-back small{font-size:14px}.match-card-front svg{width:83%;height:83%}.game-bottom{align-items:start;gap:12px;padding-top:14px;margin-top:17px}.game-bottom p{font-size:9px;max-width:170px}.quiet-button{font-size:8px;padding-top:0}
 .chapter-gate{padding-top:20px;margin-top:24px}.chapter-gate>p{font-size:11px;line-height:1.8;margin-bottom:15px}.text-button{font-size:12px;padding:12px 19px;min-height:48px}.text-button span{font-size:19px}.next-action{max-width:100%}
 .trail-route{display:block;border-radius:16px}.trail-stop,.trail-stop:nth-of-type(odd){border:0;border-bottom:1px solid var(--line);padding:20px}.trail-stop:last-child{border-bottom:0}.trail-stop:nth-last-child(2){border-bottom:1px solid var(--line)}.trail-stop button{grid-template-columns:52px 1fr;column-gap:15px}.trail-stop svg{width:52px;height:52px}.trail-stop h3{font-size:24px}.stop-number{font-size:8px}.trail-text{font-size:12px;line-height:1.85;margin-top:16px}.trail-image{width:63px;height:63px}.trail-hint{font-size:10px;line-height:1.6;margin-top:15px}
 .pearl-water{height:225px;border-radius:14px}.catch-pearl{width:72px;height:72px}.pearl-complete{gap:12px}.pearl-complete svg{width:60px;height:60px}.pearl-complete span{font-size:25px}.pearl-wish{font-size:12px;line-height:1.7;min-height:38px}
 .memory-beach{height:330px;border-radius:16px}.memory-print{width:196px;height:254px;padding:9px 9px 28px;top:27px;transform:translate(calc(-50% + var(--x)*.16),14px) rotate(var(--r));scale:.86}.memory-print:last-child{transform:translate(-50%,0) rotate(-3deg);scale:1}.memory-print:last-child:hover{transform:translate(-50%,-3px) rotate(0deg)}.memory-print img{height:188px}.print-label{font-size:21px;margin-top:9px}.memory-hint{font-size:11px;line-height:1.8;max-width:275px}.memory-action-row{gap:10px;margin-top:15px}.memory-action-row .text-button{min-width:0;width:100%;font-size:11px}.memory-controls .bottle-button{margin-top:20px;padding:13px 12px;border-radius:16px}
 .bottle-button{font-size:24px;gap:12px}.bottle-button svg{width:42px;height:70px}.bottle-intro{padding:5px 0}.large-bottle{padding:20px 18px;margin-top:25px;border-radius:17px;gap:15px}.large-bottle svg{width:95px;height:160px}.large-bottle span{font-size:24px}.large-bottle:before{top:28px;width:20px}
 .letter{padding:27px 22px;border-radius:16px}.letter:before{font-size:8px;margin-bottom:23px}.letter p{font-size:12px;line-height:2;margin-bottom:19px}.letter p:first-child,.letter p:last-child{font-size:28px}.reply-area{padding:23px 0 5px;margin-top:25px}.reply-area>.handwritten{font-size:26px;line-height:1.2;margin-bottom:23px}.empty-bottle{right:-6px;top:22px;width:27px;height:53px}.reply-choices button{font-size:11px;min-height:46px;padding:12px 13px;border-radius:13px}.reply-paper{font-size:22px}.final-shore{padding:30px 0 10px}.final-shore h2{font-size:37px}
 footer{width:calc(100% - 32px);padding:8px 0 18px;margin-bottom:8px}.back{font-size:10px}.footer-wave{font-size:20px;letter-spacing:1px}.footer-label{font-size:8px;max-width:105px;text-align:right}
 .ambient-star{left:1%;font-size:19px}.ambient-star+span{right:1%;font-size:15px}.bubbles{opacity:.35}
}
@media(max-width:360px){.intro{padding:17px 16px 15px}.scene:not(.intro){padding:26px 17px}.personal-strip strong{font-size:12px}.little-label{font-size:7px}.edition-label{font-size:5px}.wordmark{font-size:19px}.music span{font-size:9px}.soundtrack-note small{font-size:9px}.match-board{gap:6px}.game-bottom p{max-width:145px}.collect-pool{padding:10px}.collectible{min-height:132px}}
@keyframes bubble-rise{0%{transform:translate(0,0);opacity:0}10%,80%{opacity:.7}100%{transform:translate(var(--sway),-110vh);opacity:0}}
@keyframes twinkle{to{opacity:.15;transform:scale(.75) rotate(20deg)}}
@keyframes float{50%{translate:0 -10px}}
@keyframes shell-float{50%{transform:translateY(-14px) rotate(24deg)}}
@keyframes glass-drift{50%{transform:translate(5px,-8px) rotate(-12deg)}}
@keyframes pool-breathe{50%{scale:1.025;rotate:2deg}}
@keyframes scroll-cue{50%{translate:0 6px}}
@keyframes music-pulse{50%{box-shadow:0 0 0 6px #fff1f544}}
@keyframes note-reveal{from{opacity:0;translate:0 14px;scale:.96}to{opacity:1;translate:0 0;scale:1}}
@keyframes glass-turn{50%{transform:rotateY(90deg) rotate(20deg)}}
@keyframes shell-open{50%{transform:scale(1.2) rotate(-15deg)}}
@keyframes pearl-rise{50%{transform:translateY(-25px);filter:drop-shadow(0 0 18px var(--white))}}
@keyframes stone-rock{30%{transform:rotate(-18deg)}70%{transform:rotate(12deg)}}
@keyframes trail-flow{to{stroke-dashoffset:-200}}
@keyframes sand-reveal{from{opacity:0;filter:blur(3px);letter-spacing:.08em}to{opacity:1;filter:blur(0);letter-spacing:normal}}
@keyframes ripple-reveal{from{opacity:0;clip-path:circle(0% at 50% 50%)}to{opacity:1;clip-path:circle(100% at 50% 50%)}}
@keyframes arrive{from{opacity:0;translate:80px -100px;filter:blur(2px)}to{opacity:1;translate:0 0;filter:blur(0)}}
@keyframes incoming-tide{0%{opacity:0;transform:translateY(-40px) scaleY(.5)}45%{opacity:.9}100%{opacity:0;transform:translateY(90px) scaleY(1.2)}}
@keyframes cork-pop{0%{opacity:1;transform:translate(0,0)}80%,100%{opacity:0;transform:translate(45px,-65px) rotate(90deg)}}
@keyframes uncork-bottle{40%{transform:rotate(-8deg)}to{transform:rotate(12deg);opacity:.2}}
@keyframes unfold{from{opacity:0;transform:perspective(900px) rotateX(-45deg) scale(.9)}to{opacity:1;transform:perspective(900px) rotateX(0) scale(1)}}
@keyframes paper-into-bottle{0%,45%{opacity:1;transform:scale(1)}65%{opacity:1;transform:scale(.5,.22) rotate(5deg)}100%{opacity:0;transform:translate(185px,-165px) scale(.03) rotate(18deg)}}
@keyframes bottle-away{to{transform:translate(80px,-180px) rotate(-35deg) scale(.25);opacity:0}}
@keyframes touch-ripple{to{transform:scale(5);opacity:0}}
@keyframes chapter-arrive{from{opacity:0;translate:0 24px}to{opacity:1;translate:0 0}}
@keyframes pearl-ripple{0%{scale:.8;opacity:.2}to{scale:1.1;opacity:1}}
@keyframes record-spin{to{rotate:360deg}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.scroll-reveal{opacity:1!important;translate:0 0!important}.bubbles{display:none}.touch-ripple{display:none}.reply-paper{animation:none;opacity:1}.match-card-inner{transition:none}}
