:root{--ink:#081923;--paper:#f5ecd6;--gold:#e5c99a;--muted:#c5c9c3;--line:#e5c99a40;--serif:'Noto Serif KR','Batang',serif;--sans:Arial,'Noto Sans KR',sans-serif}
*{box-sizing:border-box}html,body{margin:0;background:var(--ink);color:var(--paper);font-family:var(--serif);font-weight:400}body{min-width:320px}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button{border:0;background:none}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid var(--gold);outline-offset:5px}[hidden]{display:none!important}#app{position:relative;min-height:100svh;isolation:isolate;overflow:hidden}.backdrop,#sea,.vignette{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.backdrop{background:url('assets/dawn.webp') center 53%/cover;transition:opacity 2s}.vignette{background:linear-gradient(180deg,#0616225c,transparent 40%,#061622db);z-index:1}#sea{opacity:0;transition:opacity 1.3s}body[data-scene='sailing'] #sea,body[data-scene='dock'] #sea{opacity:1}body[data-scene='ending'] .backdrop{background-image:linear-gradient(#071a2460,#071a24bf),url('assets/home-path.webp');background-position:center}header{height:90px;padding:0 5%;position:absolute;z-index:10;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between}.signature{font-size:25px;letter-spacing:.15em}.signature span{font:10px var(--sans);letter-spacing:.22em;margin-left:10px;color:var(--gold)}.header-actions{display:flex;align-items:center;gap:24px}.quiet{font-size:12px;letter-spacing:.04em;min-height:44px;padding:8px 0;color:#e5e0d1}.quiet:hover{color:#fff}.quiet span{font:11px var(--sans);border:1px solid var(--line);border-radius:50%;padding:4px 6px;margin-left:7px}.screen{position:relative;z-index:2;min-height:100svh}.intro{display:flex;align-items:center;padding:110px 12% 120px}.intro-copy{max-width:600px}.eyebrow{font-size:11px;letter-spacing:.25em;color:var(--gold);margin:0 0 22px;line-height:1.8}.intro h1{font-size:clamp(50px,6.2vw,86px);font-weight:300;line-height:1.35;letter-spacing:.08em;margin:0 0 27px;text-shadow:0 3px 35px #0005}.intro-desc{font-size:15px;line-height:2;letter-spacing:.05em;color:#f8ecd6db;margin-bottom:34px}.primary{border:1px solid #f5e8c880;border-radius:3px;background:#102a3380;backdrop-filter:blur(12px);padding:18px 24px;min-height:58px;display:inline-flex;justify-content:space-between;align-items:center;gap:50px;font-size:14px;letter-spacing:.04em;transition:background .25s}.primary:hover{background:#7c77536b}.primary span{font-family:var(--sans);font-size:19px}.play-note{font-size:10px;letter-spacing:.1em;color:#e7e3d3aa;margin-top:17px}.intro-bottom{position:absolute;bottom:33px;left:5%;right:5%;display:flex;justify-content:space-between;font-size:11px;letter-spacing:.12em;color:#ebe6d0ba}.intro-bottom i{display:inline-block;width:72px;height:1px;margin:0 15px 4px;background:#e4cda36b}.play{height:100svh;min-height:700px;overflow:hidden}.chapter{position:absolute;top:112px;left:5%;z-index:5;pointer-events:none}.chapter .eyebrow{margin-bottom:7px}.chapter h1{font-size:clamp(27px,3vw,42px);font-weight:300;letter-spacing:.09em;margin:0}.story-panel{position:absolute;bottom:58px;left:50%;transform:translateX(-50%);width:min(580px,90%);padding:28px 32px;background:linear-gradient(140deg,#0b202aef,#081923f7);border:1px solid var(--line);box-shadow:0 20px 70px #0005;z-index:6}.story-panel:empty{display:none}.panel-eyebrow{font:10px var(--sans);letter-spacing:.18em;color:var(--gold);margin:0 0 12px}.story-panel h2{font-size:25px;font-weight:400;line-height:1.6;letter-spacing:.04em;margin:0 0 14px}.story-panel p{font-size:13px;line-height:2;color:#ece7d6da;margin:0 0 18px}.story-panel .primary{width:100%;padding:14px 20px;min-height:51px}.story-panel .small{font-size:10px;color:#c6c5b7;line-height:1.7;margin-top:14px;margin-bottom:0}.secondary{border:1px solid var(--line);font-size:12px;padding:13px 20px;min-height:46px;letter-spacing:.04em}.secondary:hover{background:#d9b98515}.panel-actions{display:flex;gap:10px;margin-top:15px}.panel-actions>*{flex:1}.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.choice{padding:15px 13px;text-align:left;border:1px solid var(--line);min-height:84px}.choice strong{display:block;font-size:15px;font-weight:400;margin-bottom:7px}.choice small{font-size:10px;color:#c7c8bb;line-height:1.7;display:block}.choice:hover,.choice[aria-pressed='true']{background:#c7a66d20;border-color:var(--gold)}.load-row{display:flex;gap:8px;margin:20px 0}.bundle{width:100%;height:10px;border:1px solid var(--line);transition:background .5s}.bundle.loaded{background:#a1aa72}.panel-image{width:100%;height:150px;object-fit:cover;object-position:center 65%;margin-bottom:16px;border:1px solid var(--line)}.inspect{font-size:11px;color:var(--gold);text-decoration:underline;text-underline-offset:5px;min-height:36px;padding:0 0 6px}.boat{position:absolute;width:min(650px,66vw);bottom:-104px;left:50%;transform:translateX(-50%);z-index:3;pointer-events:none;filter:brightness(.72);transition:filter 1s}.boat svg{width:100%;display:block}.oar{position:absolute;top:61%;width:62%;height:11px;background:linear-gradient(#c4a077,#6d5036);border:1px solid #4d3a28;transform-origin:right center;border-radius:40%}.oar:before{content:'';position:absolute;left:0;top:-3px;width:21%;height:17px;background:#a78258;border-radius:40%}.oar-left{right:70%;transform:rotate(24deg)}.oar-right{left:70%;transform:rotate(156deg)}body[data-rowing='true'] .oar-left{animation:row-left 1s ease-in-out infinite}body[data-rowing='true'] .oar-right{animation:row-right 1s ease-in-out infinite}@keyframes row-left{50%{transform:rotate(8deg)}}@keyframes row-right{50%{transform:rotate(172deg)}}.sail-hud{position:absolute;z-index:5;left:50%;transform:translateX(-50%);bottom:29px;width:min(520px,90%);text-align:center}.route{display:flex;align-items:center;gap:15px;font-size:11px;letter-spacing:.12em;margin-bottom:14px;text-shadow:0 2px 6px #000}.route-line{height:1px;flex:1;background:#eee2bd55;position:relative}.route-line>div{height:1px;width:0;background:var(--gold)}#routeBoat{position:absolute;top:-9px;left:0;font-size:15px;color:var(--gold)}.sail-hint{font-size:13px;line-height:1.8;letter-spacing:.03em;min-height:24px;text-shadow:0 2px 9px #00111e}.controls{display:flex;justify-content:center;gap:12px;align-items:center}.control{background:#08222ddb;border:1px solid #e5d2a875;backdrop-filter:blur(12px);user-select:none;-webkit-user-select:none;touch-action:none}.side{width:54px;height:54px;font:24px var(--sans);border-radius:50%}.row{padding:13px 25px;min-width:180px;font-size:16px;letter-spacing:.12em;min-height:67px}.row span{display:block;font-size:9px;color:#ccc9b7;margin-top:6px;letter-spacing:.1em}.control:active{background:#7c7355bf}.key-hint{font-size:9px;letter-spacing:.07em;color:#e0d9bfad;margin:12px 0 0}progress{position:absolute;width:1px;height:1px;opacity:0}.landmark{position:absolute;top:39%;z-index:4;left:50%;transform:translateX(-50%);text-align:center;font-size:11px;letter-spacing:.1em;text-shadow:0 2px 10px #041823}.beacon{display:block;width:16px;height:16px;margin:0 auto 15px;border:1px solid var(--gold);transform:rotate(45deg);box-shadow:0 0 35px #ffdb85;animation:beacon 3s infinite}@keyframes beacon{50%{box-shadow:0 0 55px #ffdb85;background:#e2ce9755}}body[data-paused='true'] .boat{filter:brightness(.5)}.audio-status{position:fixed;left:50%;transform:translateX(-50%);bottom:15px;z-index:12;background:#081923dd;font-size:10px;max-width:90%;padding:0 14px;line-height:2;border-radius:2px;pointer-events:none}.audio-status:empty{display:none}.ending{padding:130px 24px 60px;text-align:center;background:#05172250}.ending-scroll{max-width:540px;margin:auto}.ending h1{font-size:clamp(42px,5.2vw,66px);font-weight:300;letter-spacing:.08em;line-height:1.5;margin:0 0 28px}.ending-desc,.ending-line{font-size:14px;line-height:2.1;color:#f2e9d6d6}.ending-line{margin:30px 0 38px}.ending-memories{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;padding:20px 0;border-block:1px solid var(--line);font-size:11px;color:var(--gold);margin-bottom:35px}.reflection-label{text-align:left;display:block;font-size:12px;margin-bottom:12px}.reflection-label span{font-size:9px;color:#bfccca;margin-left:10px}textarea{width:100%;resize:vertical;min-height:80px;max-height:180px;color:var(--paper);background:#071b24ba;border:1px solid var(--line);border-radius:0;padding:13px;font-size:13px;line-height:1.8}textarea::placeholder{color:#b1bcb6a8}.save-row{display:flex;align-items:center;justify-content:space-between;gap:10px}#saveStatus{font-size:10px;color:var(--gold)}.ending-actions{display:grid;gap:12px;margin-top:26px}.ending-actions .primary{justify-content:center}.ending-actions .primary span{margin-left:20px}.source-link{display:inline-block;margin-top:25px;min-height:36px;font-size:11px;color:var(--gold);text-decoration:underline;text-underline-offset:6px}.credit{font-size:10px;line-height:2.1;letter-spacing:.04em;color:#d8decea0;margin-top:20px}dialog{width:min(600px,92vw);max-height:88svh;background:#0a202b;color:var(--paper);padding:30px;border:1px solid var(--line);box-shadow:0 20px 80px #0008}dialog::backdrop{background:#020c14ce;backdrop-filter:blur(8px)}.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.dialog-head .eyebrow{font-size:9px;margin-bottom:8px}.dialog-head h2{font-size:26px;letter-spacing:.1em;font-weight:400;margin:0}.close{font:28px var(--sans);width:44px;min-height:44px;margin-top:-10px;margin-right:-12px}dialog p{font-size:13px;line-height:2;color:#dbe1d9}dialog img{width:100%;max-height:240px;object-fit:cover;border:1px solid var(--line)}.journal-item{border-top:1px solid var(--line);padding:20px 0 6px}.journal-item h3{font-size:17px;font-weight:400;color:var(--gold);margin:0 0 9px}.journal-empty{padding:20px 0 30px}.full{width:100%;margin-top:18px}.noscript{position:absolute;bottom:0;z-index:20;background:var(--ink);padding:20px;width:100%}
@media(min-width:1600px){.intro{padding-left:17%}}@media(max-width:650px){header{height:74px;padding:0 22px}.signature{font-size:21px}.signature span{display:none}.header-actions{gap:17px}.quiet{font-size:10px}.quiet span{font-size:9px;margin-left:3px}.intro{padding:115px 9% 120px;align-items:flex-start}.intro-copy{margin-top:7svh}.intro h1{font-size:49px;line-height:1.45;margin-bottom:24px}.intro-desc{font-size:13px;margin-bottom:29px}.eyebrow{font-size:9px;margin-bottom:20px}.primary{font-size:12px;min-height:53px;padding:16px 20px;gap:34px}.play-note{font-size:9px}.intro-bottom{left:22px;right:22px;bottom:28px;font-size:9px}.intro-bottom i{width:30px;margin-inline:7px}.play{min-height:690px}.chapter{top:95px;left:24px}.chapter h1{font-size:27px}.chapter .eyebrow{font-size:9px}.story-panel{bottom:max(22px,env(safe-area-inset-bottom));padding:23px 22px;width:calc(100% - 36px)}.story-panel h2{font-size:22px;margin-bottom:12px}.story-panel p{font-size:12px;line-height:1.9;margin-bottom:15px}.story-panel .small{font-size:9px}.panel-image{height:116px;margin-bottom:13px}.choice{padding:12px;min-height:81px}.choice strong{font-size:14px}.choice small{font-size:9px}.boat{width:570px;max-width:none;bottom:12px;opacity:.9}.sail-hud{bottom:calc(22px + env(safe-area-inset-bottom));width:88%}.key-hint{display:none}.sail-hint{font-size:11px;min-height:40px;max-width:320px;margin:12px auto}.row{min-width:156px;font-size:15px;padding:12px 15px;min-height:65px}.side{width:52px;height:52px}.controls{gap:10px}.route{font-size:10px}.landmark{top:34%}.ending{padding:115px 23px 40px}.ending h1{font-size:43px}.ending .eyebrow{font-size:9px}.ending-desc,.ending-line{font-size:12px}.ending-memories{gap:13px;font-size:10px}.ending-line{margin:25px 0}.ending-actions .primary{gap:15px}dialog{padding:24px;max-height:90svh}dialog p{font-size:12px;line-height:1.9}.dialog-head h2{font-size:23px}.audio-status{bottom:5px;font-size:9px;white-space:nowrap}.play:has(.story-panel:not(:empty)) .boat{bottom:-75px}.play:has(.story-panel:not(:empty)) .landmark{top:28%}}
@media(max-height:740px) and (min-width:651px){.play{min-height:660px}.chapter{top:96px}.story-panel{bottom:25px;padding:22px 28px}.panel-image{height:105px}.story-panel h2{font-size:22px}.intro{padding-top:95px;padding-bottom:90px}.intro h1{font-size:60px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* Keep focus from scrolling the cinematic stage toward its cropped boat. */
#app,.play{overflow:clip}.story-panel{max-height:calc(100svh - 215px);overflow-y:auto}.primary:disabled{opacity:.4;cursor:default}.primary:disabled:hover{background:#102a3380}
@media(min-width:900px){body[data-stage='load'] .story-panel,body[data-stage='route'] .story-panel,body[data-stage='memory'] .story-panel,body[data-stage='market'] .story-panel{left:auto;right:6%;transform:none;width:440px;bottom:60px}body[data-stage='load'] .boat,body[data-stage='route'] .boat,body[data-stage='memory'] .boat,body[data-stage='market'] .boat{left:35%;bottom:-35px}}
@media(max-width:650px){.story-panel{max-height:calc(100svh - 190px)}.boat{bottom:0}.play:has(.story-panel:not(:empty)) .boat{bottom:15px}.chapter h1{max-width:90vw}}
@media(min-width:651px){body[data-stage='sail'] .boat{bottom:-20px}}
@media(max-width:650px) and (min-height:740px){.play:has(.story-panel:not(:empty)) .boat{bottom:310px}}
@media(max-width:650px) and (max-height:739px){.play{min-height:640px}.story-panel{max-height:calc(100svh - 180px)}.chapter{top:85px}.chapter h1{font-size:24px}}
/* Photographic scene: an independently moving boat over a gently refracting sea. */
body[data-scene='dock'] .backdrop,body[data-scene='sailing'] .backdrop{background-image:url('assets/sea-photo-v2.webp');background-position:center;background-size:cover;opacity:1}
body[data-returning='true'][data-scene='sailing'] .backdrop{filter:sepia(.1) brightness(.93)}
#sea{z-index:0}.vignette{background:linear-gradient(180deg,#041a2d66,transparent 32%,transparent 60%,#05192970)}
.signature,.quiet,.chapter{text-shadow:0 2px 12px #092334c9}.chapter h1{font-size:clamp(27px,3vw,42px)}
#boat.photo-boat{--steer:0px;--yaw:0deg;position:absolute;left:50%;bottom:0;width:123svh;height:82svh;max-width:none;z-index:3;pointer-events:none;filter:none;opacity:1;transform:translateX(calc(-50% + var(--steer))) rotate(var(--yaw));transform-origin:50% 90%;margin:0;transition:transform .7s ease,left .8s ease,bottom .8s ease}
#boat .boat-bob{height:100%;width:100%;position:relative;animation:boat-float 7s ease-in-out infinite;transform-origin:50% 90%}
#boat img.father-boat{position:relative;z-index:2;width:100%;height:100%;display:block;object-fit:contain;filter:brightness(.91) saturate(.9);user-select:none}
body[data-returning='true'] #boat img.father-boat{filter:brightness(.86) saturate(.87) sepia(.07)}
body[data-paused='true'] #boat{filter:none}
#boat .oar{z-index:1;top:78%;width:43%;height:12px;border:1px solid #624832;background:url('assets/boat.webp') 45% 63%/200% auto;box-shadow:1px 3px 6px #071d2c70;border-radius:30%;transform-origin:96% center}
#boat .oar:before{top:-5px;width:24%;height:22px;left:-2%;border-radius:70% 25% 30% 40%;background:url('assets/boat.webp') 52% 60%/300% auto;box-shadow:0 2px 5px #061c2870}
#boat .oar-left{right:68%;transform:rotate(17deg)}#boat .oar-right{left:68%;transform:rotate(163deg)}
body[data-rowing='true'] #boat .oar-left{animation:photo-row-left 1.6s ease-in-out infinite}body[data-rowing='true'] #boat .oar-right{animation:photo-row-right 1.6s ease-in-out infinite}
body[data-rowing='true'] #boat .boat-bob{animation:boat-row-float 1.6s ease-in-out infinite}
@keyframes boat-float{0%,100%{transform:translateY(3px) rotate(-.18deg)}50%{transform:translateY(-3px) rotate(.18deg)}}
@keyframes boat-row-float{0%,100%{transform:translateY(3px) rotate(-.2deg)}50%{transform:translateY(-2px) rotate(.2deg)}}
@keyframes photo-row-left{0%,100%{transform:rotate(17deg) rotateX(0)}50%{transform:rotate(4deg) rotateX(25deg)}}
@keyframes photo-row-right{0%,100%{transform:rotate(163deg) rotateX(0)}50%{transform:rotate(176deg) rotateX(-25deg)}}
#sailHud{bottom:0;width:100%;padding:38px 20px 24px;background:linear-gradient(transparent,#041a2bd9 50%,#041a2bf2);max-width:none}
#sailHud .route{max-width:520px;margin:0 auto 12px}#sailHud .sail-hint{margin:8px auto 15px;max-width:560px}#sailHud .key-hint{margin-top:12px}
.landmark{z-index:4;color:#fff5d8;top:38%;text-shadow:0 2px 6px #051321,0 0 18px #051321}.beacon{box-shadow:0 0 28px #fff3bf;background:#fff4ba4a}
.archival-portrait{margin:10px 0 18px;text-align:center}.archival-portrait img{width:auto;max-width:100%;height:auto;max-height:45svh;object-fit:contain;display:block;margin:auto}.archival-portrait figcaption{font-size:12px;letter-spacing:.12em;color:var(--gold);margin-top:16px}
.journal-item img[src*='portrait']{object-fit:contain;background:#091721;max-height:330px}
@media(min-width:900px){body[data-stage='load'] #boat.photo-boat,body[data-stage='route'] #boat.photo-boat,body[data-stage='memory'] #boat.photo-boat,body[data-stage='market'] #boat.photo-boat{left:38%;bottom:0}body[data-stage='sail'] #boat.photo-boat{bottom:0;left:50%}.story-panel{background:linear-gradient(140deg,#0b202aec,#081923f5);backdrop-filter:blur(16px)}}
@media(max-width:650px){#boat.photo-boat{width:105svh;height:70svh;bottom:0;left:50%;opacity:1}.play:has(.story-panel:not(:empty)) #boat.photo-boat{height:54svh;width:81svh;bottom:200px;left:50%}.chapter h1{font-size:27px}.chapter{top:94px}#sailHud{padding:28px 22px calc(20px + env(safe-area-inset-bottom))}#sailHud .route{max-width:330px}#sailHud .sail-hint{font-size:11px;min-height:35px;max-width:330px;margin:8px auto 12px}.landmark{top:35%}#boat .oar{height:9px}#boat .oar:before{height:17px;top:-4px}}
@media(max-width:650px) and (max-height:739px){.play:has(.story-panel:not(:empty)) #boat.photo-boat{bottom:150px}.chapter{top:85px}.chapter h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){#boat .boat-bob,#boat .oar{animation:none!important}#boat.photo-boat{transition:none}}
#seaFallback{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;display:none;opacity:0;transition:opacity 1.3s}body[data-scene='dock'] #seaFallback,body[data-scene='sailing'] #seaFallback{opacity:1}
@media(max-width:650px){#boat.photo-boat,.play:has(.story-panel:not(:empty)) #boat.photo-boat{height:78svh;width:117svh;bottom:0;left:50%}}
/* Independent rowing poses, carried objects, and lighting shared by all foreground layers. */
#boat .empty-boat{position:relative;z-index:1;width:100%;height:100%;display:block;object-fit:contain;filter:brightness(calc(.92 - var(--night,0)*.62)) saturate(.88)}
#boat .father-actor{position:absolute;left:36.25%;top:6%;width:27.5%;height:55%;z-index:4;background-image:url('assets/father-rowing-atlas-v3.webp');background-size:400% 200%;background-repeat:no-repeat;background-position:100% 0%;filter:brightness(calc(.94 - var(--night,0)*.64)) saturate(.88);transform-origin:50% 94%;will-change:background-position,transform}
#boat .cargo{position:absolute;inset:0;z-index:5;filter:brightness(calc(.91 - var(--night,0)*.63)) saturate(.88)}
#boat .cargo-item{position:absolute;width:14%;height:21%;background-image:url('assets/cargo-atlas-v3.webp');background-size:300% 200%;background-repeat:no-repeat;filter:drop-shadow(2px 6px 5px #09151c99)}
#boat .cargo-item.seaweed{width:12%;height:18%}#boat .oar{z-index:3;top:56%;animation:none!important;transition:transform .04s linear;filter:brightness(calc(.9 - var(--night,0)*.6))}
#boat .boat-bob{animation:boat-float 7s ease-in-out infinite!important}body[data-stroking='true'] #boat .boat-bob{animation:boat-row-float 1.7s ease-in-out infinite!important}
#sailHud{background:linear-gradient(transparent,#041a2bb8 58%,#041a2bee);padding-top:28px}.route,.sail-hint{text-shadow:0 2px 5px #04131c,0 1px 12px #04131c}
@media(prefers-reduced-motion:reduce){#boat .boat-bob{animation:none!important}#boat .father-actor,#boat .oar{will-change:auto;transition:none}}
#boat .oar{width:30%}#boat .cargo-item{height:auto;aspect-ratio:1}#boat .cargo-item.seaweed{height:auto;aspect-ratio:1}
@media(max-width:650px){#boat.photo-boat,.play:has(.story-panel:not(:empty)) #boat.photo-boat{width:105vw;height:78svh}#boat .empty-boat{object-fit:fill}#boat .father-actor{height:45%;width:26.325svh;left:calc(50% - 13.1625svh);top:16%}#boat .cargo-item{width:20%}#boat .cargo-item.seaweed{width:15%}}
/* A day's crossing, with a child's bounded view of the market. */
.play{min-height:100svh;height:100svh}.journey-line{position:absolute;z-index:5;top:208px;left:5%;margin:0;max-width:580px;font-size:15px;line-height:1.9;letter-spacing:.04em;text-shadow:0 2px 9px #00111e,0 2px 22px #00111e;transition:opacity 1.5s;pointer-events:none}.journey-line:empty{display:none}.journey-line.faded{opacity:0}
.chapter{max-width:90vw}.time-label{font:10px var(--sans);letter-spacing:.16em;color:var(--gold);margin:0 0 13px;text-shadow:0 2px 6px #04131c}
#boat .boat-bob{animation:none!important;transform:translateY(var(--swell-y,0px)) rotate(var(--swell-roll,0deg));transition:none}
body[data-stage='harbor'] #boat.photo-boat,body[data-stage='departure'] #boat.photo-boat,body[data-stage='home'] #boat.photo-boat{left:35%;bottom:0}
body[data-stage='harbor'] .story-panel,body[data-stage='departure'] .story-panel,body[data-stage='home'] .story-panel{left:auto;right:6%;transform:none;width:440px;bottom:60px}
body[data-scene='market'] #sea,body[data-scene='market'] .backdrop{opacity:0}
.market-scene{position:absolute;inset:0;z-index:3;background:#554132;overflow:hidden}.market-view{position:absolute;inset:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x;outline-offset:-4px}.market-view::-webkit-scrollbar{display:none}
.market-panorama{position:relative;width:max(100vw,150svh);height:100svh;isolation:isolate}.market-panorama>img{width:100%;height:100%;object-fit:cover;display:block;user-select:none;-webkit-user-drag:none}.market-panorama:after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(#1a140c80,transparent 34%,transparent 66%,#1a140c35);pointer-events:none}
.market-sun{position:absolute;inset:0;z-index:1;background:linear-gradient(113deg,transparent 40%,#fff2bb16 47%,transparent 60%);opacity:.6;animation:market-light 9s ease-in-out infinite;pointer-events:none}@keyframes market-light{50%{opacity:.18;transform:translateX(20px)}}
.market-item{position:absolute;left:var(--item-x);top:var(--item-y);transform:translate(-50%,-50%);z-index:2;min-width:112px;min-height:100px;padding:10px 13px;background:linear-gradient(#18211ded,#0f201bd9);border:1px solid #f5d799a8;box-shadow:0 4px 24px #251d1b60;backdrop-filter:blur(6px);text-align:center;border-radius:3px;transition:background .25s,transform .25s}
.market-item strong{display:block;font-size:20px;font-weight:400;letter-spacing:.12em;margin:4px 0}.market-item small{font-size:10px;color:#f0dec0}.item-pin{display:block;color:#f4d69d;font:20px var(--sans);line-height:20px}.market-item:hover{background:#56492ded;transform:translate(-50%,-53%)}.market-item[aria-pressed='true']{background:#64562eeb;border-color:#ffe7a8}.market-item[aria-pressed='true'] .item-pin{color:#fff2bf}
body[data-stage='market'] .chapter{z-index:5;pointer-events:none;max-width:90%;text-shadow:0 2px 18px #211207}.market-look{position:absolute;z-index:4;bottom:182px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:16px;white-space:nowrap;font-size:11px;letter-spacing:.05em;background:#162a25da;padding:4px 8px;border:1px solid #e4c58d55;border-radius:40px}.market-look button{width:46px;height:44px;font:23px var(--sans)}.market-look button:hover{background:#e4c58d25;border-radius:50%}
.market-basket{position:absolute;z-index:4;bottom:0;left:0;right:0;min-height:166px;padding:27px max(5vw,24px) 24px;background:linear-gradient(transparent,#10211aef 18%,#0c1e19fa);display:flex;align-items:center;justify-content:space-between;gap:24px}.market-basket p{font-size:13px;line-height:1.7;margin:0 0 8px;letter-spacing:.03em}.market-basket .primary{min-width:290px;background:#483f26a1}.basket-items{display:flex;gap:16px;min-height:53px}.basket-good{display:flex;align-items:center;gap:5px;min-height:50px;font-size:12px;padding:0 8px 0 0;color:var(--gold)}.goods-sprite{display:inline-block;width:52px;height:52px;background-image:url('assets/cargo-atlas-v3.webp');background-size:300% 200%;background-repeat:no-repeat}.purchase-fly{position:fixed;z-index:12;top:0;left:0;width:80px;height:80px;background-image:url('assets/cargo-atlas-v3.webp');background-size:300% 200%;opacity:0;pointer-events:none}
body[data-stage='market'] header{background:linear-gradient(#14211a88,transparent)}
body[data-scene='ending'] .backdrop{background-image:linear-gradient(#071a2470,#071a24dd),url('assets/gaedo-landing-v4.webp')}
@media(max-width:899px){body[data-stage='harbor'] #boat.photo-boat,body[data-stage='departure'] #boat.photo-boat,body[data-stage='home'] #boat.photo-boat{left:50%}body[data-stage='harbor'] .story-panel,body[data-stage='departure'] .story-panel,body[data-stage='home'] .story-panel{left:50%;right:auto;transform:translateX(-50%);width:calc(100% - 36px);bottom:max(22px,env(safe-area-inset-bottom))}.market-basket{align-items:stretch;flex-direction:column;gap:8px;min-height:194px;padding:22px 20px calc(16px + env(safe-area-inset-bottom))}.market-basket p{font-size:11px;margin-bottom:0}.market-basket .primary{min-height:48px;min-width:0;width:100%;padding:11px 16px}.market-look{bottom:calc(207px + env(safe-area-inset-bottom));font-size:10px;gap:8px}.basket-items{min-height:48px;gap:20px}.goods-sprite{width:45px;height:45px}.basket-good{min-height:44px;font-size:11px}}
@media(max-width:650px){.play{min-height:100svh;height:100svh}.journey-line{top:175px;left:24px;right:24px;font-size:12px;max-width:310px;line-height:1.9}.chapter{top:94px}.chapter h1{font-size:25px}.chapter .eyebrow{letter-spacing:.12em}.time-label{font-size:9px;margin-bottom:9px}#sailHud .sail-hint{min-height:32px;margin-top:5px}.market-panorama{width:max(100vw,150svh)}.market-item{min-width:100px;min-height:94px;padding:8px 12px}.market-item strong{font-size:19px}.market-item small{font-size:9px}.market-view{inset:0}.market-look{max-width:calc(100vw - 40px)}body[data-stage='market'] .chapter{top:93px}.market-basket{min-height:190px}.market-basket p{min-height:20px}.market-basket .primary{font-size:12px}.story-panel{max-height:calc(100svh - 190px)}}
@media(max-height:700px){.journey-line{top:163px}.market-item{min-height:82px;min-width:90px}.market-item strong{font-size:17px}.market-basket{min-height:175px;padding-top:15px;padding-bottom:12px}.market-look{bottom:184px}.market-look button{height:38px;width:40px}.market-basket p{font-size:10px}.basket-items{min-height:42px}.goods-sprite{width:40px;height:40px}.basket-good{min-height:40px}.market-basket .primary{min-height:44px}}
@media(prefers-reduced-motion:reduce){.market-sun{animation:none}.market-item,.journey-line{transition:none}#boat .boat-bob{transform:none!important}}
/* Keep product targets clear of the thumb navigation, including short phones. */
.market-item[data-good='엿'],.market-item[data-good='콩기름']{top:60%}
@media(max-height:700px){.market-item[data-good='엿'],.market-item[data-good='콩기름']{top:55%}.market-item[data-good='빵']{top:43%}.market-item[data-good='밀가루']{top:47%}}
/* The outbound harvest fills the boat; the returning groceries stay distinct. */
#boat .boat-bob{transform:translateY(calc(var(--swell-y,0px) + var(--load-sink,0px))) rotate(var(--swell-roll,0deg))}
#boat .kelp-heap{position:absolute;inset:0;background:url('assets/kelp-heap-v5.webp') center 70%/77% 82% no-repeat;opacity:clamp(0,calc(var(--load-fill,0)*4),1);transform:scaleX(calc(.75 + var(--load-fill,0)*.25)) scaleY(calc(.34 + var(--load-fill,0)*.66));transform-origin:50% 91%;filter:drop-shadow(0 6px 6px #0a191a88);pointer-events:none}
#boat .cargo-item[data-item='밀가루']{left:32%;top:61%;width:23%;transform:rotate(4deg)}
#boat .cargo-item[data-item='콩기름']{left:58%;top:61%;width:14%;transform:rotate(-5deg)}
#boat .cargo-item[data-item='빵']{left:41%;top:73%;width:17%;transform:rotate(-8deg)}
#boat .cargo-item[data-item='엿']{left:58%;top:73%;width:15%;transform:rotate(7deg)}
.load-scene{position:absolute;inset:0;z-index:5;pointer-events:none}.load-direction{position:absolute;top:52%;left:50%;transform:translate(-50%,-50%);margin:0;font-size:12px;letter-spacing:.06em;color:#f9e7c1;text-shadow:0 2px 6px #03131d,0 1px 14px #03131d;white-space:nowrap;opacity:.85}
.load-hud{position:absolute;bottom:0;left:0;right:0;text-align:center;padding:28px 24px 20px;background:linear-gradient(transparent,#061b26d9 52%,#061b26f5);pointer-events:auto}.load-hud>p{font-size:13px;line-height:1.8;margin:0 0 8px;text-shadow:0 2px 7px #07171f}.kelp-handle{display:flex;justify-content:center;align-items:center;gap:18px;position:relative;min-height:108px;min-width:400px;max-width:100%;margin:auto;touch-action:none;user-select:none;-webkit-user-select:none;background:linear-gradient(110deg,#0a2622c9,#193228a1);border:1px solid #d4d6ab70;border-radius:3px;padding:6px 28px}.kelp-grip{display:block;width:104px;height:104px;flex:none;background:url('assets/cargo-atlas-v3.webp') 0 0/300% 200% no-repeat;filter:drop-shadow(0 5px 7px #0006);transform:translateY(calc(0px - var(--lift,0px)));transition:transform .12s}.kelp-handle-copy{display:block;text-align:left;font-size:15px;line-height:1.8;letter-spacing:.04em}.kelp-handle small{display:block;font-size:10px;color:#d4d8bf}.kelp-handle[data-carrying='true'] .kelp-grip{animation:carry-kelp 1.2s ease-in-out infinite}.kelp-handle[data-carrying='true']{border-color:#f3dda1;background:#2c422bd9}@keyframes carry-kelp{0%{transform:translateY(10px);opacity:.6}65%{transform:translateY(-45px) scale(.86);opacity:1}100%{transform:translateY(-85px) scale(.75);opacity:0}}
.load-meter{display:flex;gap:14px;align-items:center;justify-content:center;max-width:400px;margin:16px auto 8px;font-size:10px;color:#e2dfc6}.load-meter progress{position:static;width:auto;height:4px;flex:1;opacity:1;appearance:none;border:0;border-radius:1px;background:#cfcba03b}.load-meter progress::-webkit-progress-bar{background:#cfcba03b}.load-meter progress::-webkit-progress-value{background:#c6cc94}.load-meter progress::-moz-progress-bar{background:#c6cc94}.load-hud .primary{min-width:400px;margin:10px auto 6px}.load-hud .inspect{display:block;margin:auto;font-size:10px;color:#e3cfa3}
body[data-stage='load'] #boat.photo-boat{left:50%;bottom:0}body[data-stage='load'] .chapter{max-width:90%}
.basket-items{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;min-height:70px}.basket-good{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:0;font-size:11px;min-height:66px;line-height:1.5;white-space:nowrap}.basket-good.pending{opacity:.3}.basket-good.bought{color:#f1dcaa}.market-basket>div{min-width:340px;max-width:720px}.market-basket{min-height:180px}.market-look{bottom:196px}
@media(max-width:899px){.market-basket{min-height:218px}.market-basket>div{min-width:0;max-width:none}.market-look{bottom:calc(230px + env(safe-area-inset-bottom))}.basket-items{gap:4px;min-height:62px}.basket-good{font-size:10px;min-height:60px}.market-basket p{min-height:30px}.goods-sprite{width:42px;height:42px}.market-basket .primary{min-height:46px}}
@media(max-width:650px){#boat .cargo-item[data-item='밀가루']{left:27%;top:59%;width:30%}#boat .cargo-item[data-item='콩기름']{left:60%;top:59%;width:20%}#boat .cargo-item[data-item='빵']{left:38%;top:70%;width:23%}#boat .cargo-item[data-item='엿']{left:61%;top:70%;width:20%}.load-hud{padding:22px 20px calc(14px + env(safe-area-inset-bottom))}.load-hud>p{font-size:11px;margin-bottom:10px;min-height:22px}.kelp-handle{min-width:0;width:100%;min-height:94px;padding:4px 12px;gap:6px}.kelp-grip{width:86px;height:86px}.kelp-handle-copy{font-size:12px}.kelp-handle small{font-size:9px;letter-spacing:0}.load-direction{top:49%;font-size:10px}.load-hud .primary{min-width:0;width:100%;font-size:12px;padding:15px 16px}.load-meter{margin-top:12px}.load-hud .inspect{min-height:32px}}
@media(max-height:700px){.market-basket{min-height:202px;padding-top:16px}.market-look{bottom:214px}.market-item[data-good='엿'],.market-item[data-good='콩기름']{top:49%}.market-item[data-good='빵']{top:38%}.market-item[data-good='밀가루']{top:41%}.market-basket p{min-height:26px}.basket-items{min-height:58px}.basket-good{min-height:56px}.goods-sprite{width:36px;height:36px}.load-hud{padding-top:12px;padding-bottom:10px}.load-hud>p{margin-bottom:7px}.kelp-handle{min-height:78px}.kelp-grip{height:70px;width:70px}.load-meter{margin-block:10px 5px}.load-direction{top:45%}}
@media(prefers-reduced-motion:reduce){.kelp-handle[data-carrying='true'] .kelp-grip{animation:none}.kelp-grip{transition:none}}
.load-direction{top:214px;left:5%;transform:none;text-align:left}
@media(max-width:650px){.load-direction{top:180px;left:24px;font-size:10px;white-space:normal;right:24px}}
@media(max-width:650px){#boat .cargo-item[data-item='밀가루']{left:27%;top:55%;width:29%}#boat .cargo-item[data-item='콩기름']{left:60%;top:55%;width:19%}#boat .cargo-item[data-item='빵']{left:38%;top:63%;width:22%}#boat .cargo-item[data-item='엿']{left:61%;top:63%;width:19%}}

.lang-switch{display:inline-flex;align-items:center;gap:7px;font-size:11px;letter-spacing:.08em;color:#e8dcc0}.lang-switch a{min-height:32px;display:inline-flex;align-items:center}.lang-switch a[aria-current="page"]{color:var(--gold)}@media(max-width:650px){.lang-switch{font-size:10px;gap:5px}}

html[lang=en] .intro h1{font-size:clamp(40px,5.5vw,74px);letter-spacing:.015em}html[lang=en] .chapter h1{letter-spacing:.015em;max-width:88vw}html[lang=en] .header-actions{gap:12px}@media(max-width:650px){html[lang=en] .intro h1{font-size:clamp(33px,8vw,46px)}html[lang=en] .signature{font-size:16px;letter-spacing:0}html[lang=en] .header-actions{gap:8px}html[lang=en] .quiet{font-size:10px}html[lang=en] .lang-switch{font-size:9px}html[lang=en] header{padding:0 14px}html[lang=en] .chapter h1{font-size:22px}html[lang=en] .market-item strong{font-size:15px}}
