:root{--paper:#f5f1e7;--ink:#3f4d40;--muted:#838775;--sage:#7e9077;--accent:#be724e;--line:#dcded0;--serif:Georgia,'Times New Roman',serif;--sans:'Trebuchet MS',Arial,sans-serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-tap-highlight-color:transparent}button,a{-webkit-touch-callout:none}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--accent);outline-offset:5px}button{border:0;background:none}button:disabled{opacity:.45;cursor:default}.app{max-width:1720px;margin:auto;padding:0 4.2%}.header{height:110px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-family:var(--serif);font-size:29px;font-weight:bold;letter-spacing:-1.3px}.brand img{width:49px;height:49px}.brand i{font-weight:normal;font-size:23px}.brand small{display:block;font:8px var(--sans);letter-spacing:2px;margin-top:6px}.header-right{display:flex;align-items:center;gap:14px}.made-note{font:italic 15px var(--serif);color:#7e8374;margin-right:24px}.made-note span{font-size:22px;margin-left:10px}.icon-button{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #cdd3c4;border-radius:50%;font-size:23px;position:relative;background:#f5f1e788}.icon-button:hover{background:#e4e8d9}.sound-slash{position:absolute;width:23px;border-top:1.5px solid;transform:rotate(-45deg)}.sound-on .sound-slash{display:none}.river{position:relative;height:min(650px,72vh);min-height:500px;overflow:hidden;border-radius:22px;background:#e9ecd9;isolation:isolate;border:1px solid #dce0d2}canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}.grain{position:absolute;inset:0;pointer-events:none;opacity:.12;z-index:2;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23434b37' opacity='.6' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");mix-blend-mode:multiply}.scene-top{position:absolute;top:27px;left:31px;right:31px;display:flex;justify-content:space-between;font-size:11px;color:#737f68;letter-spacing:.3px;pointer-events:none}.place{display:flex;gap:10px;align-items:center}.place-dot{width:6px;height:6px;border-radius:50%;background:#7e9077}.divider{opacity:.4;margin:0 2px}.chapter{font-size:9px;letter-spacing:2px}.home{position:absolute;left:6%;top:18%;z-index:3}.eyebrow{font-size:9px;letter-spacing:2.7px;color:#77856a}.home h1{font-family:var(--serif);font-weight:normal;font-size:clamp(44px,4.8vw,76px);line-height:1.04;letter-spacing:-2.8px;margin:20px 0}.home h1 em{color:#718366;font-weight:normal}.home p{font:14px/1.8 var(--sans);color:#7b8271;margin:0 0 26px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:38px;border-radius:8px;background:#52694f;color:#fffdf3;padding:16px 25px;font-size:14px;box-shadow:0 4px 0 #384e3820;transition:transform .15s,background .15s}.primary:hover{background:#425d40;transform:translateY(-2px)}.primary span{font-size:21px;line-height:14px}.mode-button{display:block;font-size:10px;margin-top:19px;color:#77816e;padding:4px 0}.mode-button span{margin:0 6px}.home-stamp{position:absolute;right:7%;top:18%;width:120px;height:120px;border:1px solid #9daa8766;border-radius:50%;transform:rotate(12deg);display:flex;flex-direction:column;justify-content:center;align-items:center;color:#8c9879;gap:8px}.home-stamp span{font-size:7px;letter-spacing:1.8px}.home-stamp b{font:italic 21px/1 var(--serif);text-align:center}.float-label{position:absolute;left:59%;top:46%;font:italic 16px var(--serif);color:#73816d;transform:rotate(-7deg);pointer-events:none}.float-label span{display:block;text-align:center;font-size:32px;line-height:34px}.scene-bottom{position:absolute;bottom:25px;left:31px;right:31px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#5c786d;pointer-events:none}.key{border:1px solid #80988a66;border-radius:4px;font-size:8px;padding:4px 7px;margin-right:6px;letter-spacing:1px}.scene-bottom i{color:#b87859;font-size:18px;font-style:normal}.scroll-note{font:italic 13px var(--serif)}.journal{display:grid;grid-template-columns:1fr 1fr 1fr;margin:26px 0 0;border-bottom:1px solid var(--line);padding-bottom:25px;gap:25px}.journal-card{display:flex;align-items:center;text-align:left;gap:16px;padding:8px 21px 8px 0;border-right:1px solid var(--line)}.journal-card:last-child{border:0}.card-icon{width:49px;height:49px;border-radius:14px;background:#e8eadf;display:flex;align-items:center;justify-content:center;font-size:28px;flex-shrink:0}.flower{color:#b87d5c;background:#eee6d8}.book{color:#85876b;background:#eae8dc}.journal-card small{display:block;font-size:8px;letter-spacing:1.5px;color:#858877;margin-bottom:9px}.journal-card strong{font-weight:normal;font-size:18px;font-family:var(--serif)}.journal-card strong b{font-weight:normal}.journal-card em{font-style:normal;font-size:15px}.card-arrow{margin-left:auto;color:#8b917f}.journal-card:hover .card-arrow{color:var(--accent);transform:translate(2px,-2px)}footer{padding:24px 0;display:flex;justify-content:space-between;align-items:center;color:#929583;font-size:10px}footer>span:nth-child(2){font:italic 12px var(--serif)}footer button{font-size:10px}footer button span{margin-left:8px}.heart{color:#b47a5d;margin-left:8px}.hidden{display:none!important}.hud{position:absolute;top:65px;left:32px;right:32px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.score-block{display:flex;flex-direction:column}.score-block>span{font-size:9px;letter-spacing:2px}.score-block strong{font:54px/1.2 var(--serif)}.score-block small{color:#83917b;font-size:10px}.run-info{display:flex;align-items:center;gap:20px}.run-info button{pointer-events:auto}.run-info #hearts{font-size:24px;color:#b87760}.petal-count{font-size:20px;color:#a57854}.petal-count b{font-size:16px;font-weight:normal}.play-hint{position:absolute;bottom:32px;left:0;right:0;text-align:center;font-size:12px;color:#526f61;pointer-events:none}.streak{position:absolute;top:27%;left:0;right:0;text-align:center;font:italic 22px var(--serif);color:#a6774d;pointer-events:none}.jump-button{position:absolute;bottom:60px;right:25px;width:76px;height:76px;background:#f8f5e7c9;border:1px solid #9daf94;border-radius:50%;font-size:32px;touch-action:none;box-shadow:0 5px 0 #5b755122}.jump-button small{display:block;font-size:9px;letter-spacing:2px}.toast{position:absolute;bottom:90px;left:50%;transform:translateX(-50%);padding:12px 19px;background:#f9f5e9ee;border:1px solid #ced5be;border-radius:20px;font-size:12px;opacity:0;transition:opacity .3s;pointer-events:none;z-index:10;max-width:90%;text-align:center}.toast.show{opacity:1}dialog{width:min(470px,92vw);max-height:88vh;overflow:auto;border:1px solid #d4d8c5;border-radius:20px;padding:38px;background:#f7f3e8;color:var(--ink);box-shadow:0 25px 120px #32483733}dialog::backdrop{background:#394b3b48;backdrop-filter:blur(6px)}.close-modal{position:absolute;top:12px;right:14px;font-size:25px;width:34px;height:34px}.modal-eyebrow{font-size:9px;letter-spacing:2px;color:#8b927a;text-transform:uppercase}.modal-title{font:normal 37px/1.1 var(--serif);letter-spacing:-1px;margin:14px 0}.modal-copy{font-size:13px;line-height:1.8;color:#7a8270}.modal-actions{display:flex;flex-direction:column;gap:11px;margin-top:24px}.secondary{padding:14px;border:1px solid #cdd4bf;border-radius:8px;font-size:12px}.stats{display:grid;grid-template-columns:repeat(3,1fr);padding:20px 0;border-block:1px solid var(--line);margin:25px 0;text-align:center}.stats b{display:block;font:32px var(--serif)}.stats span{font-size:9px;color:#92977f}.setting-row,.moment,.palette{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line);gap:14px;font-size:13px}.setting-row button{background:#e4e8d9;padding:8px 15px;border-radius:20px;min-width:66px}.moment>span:first-child{font-size:25px;color:#a48a59}.moment div{flex:1}.moment strong{display:block;font:17px var(--serif);margin-bottom:5px}.moment small{font-size:10px;color:#888d79}.moment.locked{opacity:.5}.swatch{width:41px;height:41px;border-radius:50%;border:4px solid #fff8;flex-shrink:0}.palette div{flex:1}.palette strong{display:block;font:19px var(--serif)}.palette small{font-size:10px;color:#8b917d}.palette button{font-size:11px;border:1px solid #cbd2bd;padding:9px 13px;border-radius:7px}.art-credit{display:flex;gap:10px;margin-top:20px}.art-credit img{width:48%;height:125px;object-fit:cover;border:6px solid #fffbef;box-shadow:0 2px 5px #45513322;transform:rotate(-3deg)}.art-credit img+img{transform:rotate(3deg)}.help-steps{padding-left:20px;font-size:13px;line-height:1.9;color:#737e6a}.privacy-copy{font-size:12px;line-height:1.8;color:#747d6a}.privacy-copy a{color:#52694f}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1500px){.home{top:20%}.river{height:700px;max-height:75vh}}@media(max-width:1000px){.home h1{font-size:56px}.home{left:5%;top:19%}.float-label{left:63%;top:45%;font-size:13px}.home-stamp{right:6%;width:100px;height:100px}.journal-card{gap:10px;padding-right:10px}.journal-card em{font-size:12px}.journal{gap:14px}.card-icon{width:40px;height:40px}.made-note{margin-right:8px}.chapter{display:none}}@media(max-width:640px){.app{padding:0 16px}.header{height:82px}.brand{font-size:24px}.brand img{width:40px;height:40px}.brand small{font-size:6px;letter-spacing:1.5px}.header-right{gap:8px}.icon-button{width:37px;height:37px;font-size:20px}.made-note{display:none}.river{height:calc(100svh - 181px);min-height:540px;max-height:810px;border-radius:17px}.scene-top{top:20px;left:20px;right:20px;font-size:9px}.place{gap:7px}.home{left:0;right:0;top:12%;text-align:center}.home h1{font-size:46px;letter-spacing:-1.8px;margin:16px 0}.eyebrow{font-size:7px;letter-spacing:2px}.home p{font-size:11px;line-height:1.7;margin-bottom:18px}.primary{padding:14px 23px;font-size:13px}.mode-button{margin:14px auto 0;font-size:9px}.home-stamp{display:none}.float-label{left:53%;top:60%;font-size:11px}.float-label span{font-size:25px}.scene-bottom{left:18px;right:18px;bottom:19px;font-size:9px}.scene-bottom>span:nth-child(2){display:none}.scroll-note{font-size:10px}.journal{margin-top:14px;padding-bottom:14px;gap:8px}.journal-card{padding:0 8px 0 0;gap:7px}.card-icon{width:28px;height:34px;font-size:21px;border-radius:8px}.journal-card small{font-size:6px;letter-spacing:.6px;margin-bottom:5px}.journal-card strong{font-size:15px}.journal-card em{display:none}.journal-card:last-child em{display:block;font-size:12px}.journal-card:last-child small{display:none}.card-arrow{display:none}footer{padding:16px 0;font-size:8px}footer>span:nth-child(2){display:none}footer button{font-size:9px}.hud{left:20px;right:20px;top:55px}.run-info{gap:10px;flex-wrap:wrap;justify-content:flex-end}.run-info #hearts{font-size:20px}.score-block strong{font-size:43px}.play-hint{font-size:10px;bottom:26px}.jump-button{width:65px;height:65px;bottom:62px;right:18px}.streak{top:29%;font-size:19px}dialog{padding:30px 25px}.modal-title{font-size:32px}.is-playing .river{height:calc(100svh - 103px);min-height:420px}.is-playing .journal,.is-playing footer{display:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media (orientation:landscape) and (max-height:560px){.app{padding:0 16px}.header{height:62px}.brand{font-size:23px}.brand img{width:35px;height:35px}.brand small{font-size:6px}.river,.is-playing .river{height:calc(100svh - 78px);min-height:240px;max-height:none;border-radius:14px}.journal,footer{display:none}.scene-top{top:16px}.home{top:23%;left:6%;right:auto;text-align:left}.home h1{font-size:38px;line-height:1;margin:10px 0 14px}.home p,.home-stamp,.float-label{display:none}.eyebrow{font-size:7px}.home .primary{padding:9px 19px}.mode-button{margin:10px 0 0;font-size:8px}.scene-bottom{bottom:12px;font-size:8px}.hud{top:45px}.score-block strong{font-size:35px}.score-block small{font-size:8px}.jump-button{width:53px;height:53px;bottom:39px;font-size:24px}.jump-button small{font-size:7px}.play-hint{bottom:14px;font-size:9px}.streak{top:34%;font-size:17px}.toast{bottom:60px;font-size:10px}}
.streak{top:115px;left:auto;right:30px;font:11px var(--sans);letter-spacing:1px;background:#fff6dbdc;border:1px solid #d4c398;border-radius:24px;padding:10px 16px}.home h1{font-size:clamp(38px,4.3vw,65px)}.score-block strong{font-size:46px}.play-hint{background:#edf1dfba;width:max-content;max-width:90%;margin:auto;padding:7px 13px;border-radius:20px}.is-playing .grain{opacity:.065}@media(max-width:640px){.home h1{font-size:39px}.streak{top:135px;right:18px;font-size:9px;padding:8px 12px}.score-block strong{font-size:37px}.home p{font-size:10px}.float-label{left:48%;top:61%;font-size:11px}}@media(orientation:landscape) and (max-height:560px){.home h1{font-size:34px}.streak{top:92px;font-size:9px}.score-block strong{font-size:30px}}
/* A quiet night-paper theme, independent of the river's day/night clock. */
:root[data-theme="dark"]{--paper:#222c31;--ink:#e2e5d7;--muted:#a9b4a7;--sage:#b0c3a6;--accent:#ddb48c;--line:#46534e;color-scheme:dark}
[data-theme="dark"] .icon-button{background:#303d40;border-color:#576660;color:#e5e4cf}
[data-theme="dark"] .icon-button:hover{background:#405050}
[data-theme="dark"] .made-note,[data-theme="dark"] footer,[data-theme="dark"] .journal-card small{color:#a9b9ab}
[data-theme="dark"] .card-icon{background:#364742;color:#c0ccb1}
[data-theme="dark"] .card-icon.flower{background:#4d463d;color:#dfb693}
[data-theme="dark"] .river{border-color:#46564e;background:#374c50}
[data-theme="dark"] dialog{background:#2c383b;border-color:#57645c;color:var(--ink)}
[data-theme="dark"] .modal-copy,[data-theme="dark"] .help-steps,[data-theme="dark"] .privacy-copy,[data-theme="dark"] .setting-row,[data-theme="dark"] .moment small,[data-theme="dark"] .palette small{color:#bac5b8}
[data-theme="dark"] .modal-eyebrow,[data-theme="dark"] .stats span{color:#b7bda9}
[data-theme="dark"] .secondary,[data-theme="dark"] .setting-row button{background:#3b4947;color:#e1e4d5;border-color:#58675d}
[data-theme="dark"] .stats{background:#34433f}
[data-theme="dark"] .close-modal{color:#d4dccb}
[data-theme="dark"] .privacy-copy a{color:#cfdaa9}
[data-theme="dark"] .moment,[data-theme="dark"] .palette,[data-theme="dark"] .setting-row{border-color:#536057}
.night-scene .home h1,.night-scene .hud,.night-scene .scene-top{color:#f0e8d2}
.night-scene .home h1 em{color:#cad8b6}
.night-scene .home p,.night-scene .eyebrow,.night-scene .mode-button,.night-scene .float-label,.night-scene .scene-bottom,.night-scene .score-block small{color:#d0d9c4}
.night-scene .home-stamp{color:#c8d3b7;border-color:#c1c9ac66}
.night-scene .play-hint{background:#334c4ce8;color:#e5e8d3}
.night-scene .streak{background:#394c4ee8;border-color:#91a294;color:#efdfb8}
.night-scene .jump-button{background:#3b5253ed;color:#e8ead6;border-color:#9aaf99}
.night-scene .toast{background:#34474aee;border-color:#80958a;color:#eee7cf}
.shoo-button{right:116px;font-size:25px;opacity:.58;transition:background .2s,opacity .2s}
.shoo-button svg{display:block;width:34px;height:29px;margin:0 auto 2px}
.shoo-button.ready{opacity:1;background:#e8dfbe;box-shadow:0 0 0 5px #d8cba42b,0 5px 0 #5b755122}
.night-scene .shoo-button.ready{background:#627665;color:#fff3ce}
.visitor-notice{position:absolute;top:163px;left:30px;max-width:310px;border:1px solid #9fae86;border-radius:12px;background:#eef0dfeb;padding:9px 13px;font-size:11px;color:#54694b;pointer-events:none}
.night-scene .visitor-notice{background:#435951ed;color:#e2e9cd;border-color:#8da68e}
.kaba-speech{position:absolute;left:16%;bottom:29%;max-width:290px;padding:11px 16px;border:1px solid #c8cbb4;border-radius:17px 17px 17px 3px;background:#faf5e7ee;opacity:0;transition:opacity .3s;pointer-events:none;color:#4f6552;text-align:left;z-index:4}
.kaba-speech.show{opacity:1}.kaba-speech .speaker{display:block;font-size:8px;letter-spacing:2px;color:#899574;margin-bottom:5px}
#kaba-japanese{display:block;font-family:'Yu Gothic','Hiragino Kaku Gothic ProN',sans-serif;font-size:13px;line-height:1.6}
.kaba-speech small{display:block;font:italic 12px/1.5 var(--serif);margin-top:3px}
.night-scene .kaba-speech{background:#354b4dec;border-color:#819a88;color:#ece7d1}
.night-scene .kaba-speech .speaker{color:#c1ceaa}
.concept-art{display:block;width:100%;margin-top:16px;border:6px solid #fff7e8;border-radius:5px}
@media(max-width:640px){.header-right{gap:8px}.shoo-button{right:96px}.visitor-notice{top:180px;left:18px;right:18px;max-width:none;font-size:10px;padding:8px 11px}.kaba-speech{left:18px;bottom:26%;max-width:225px;padding:9px 12px}.kaba-speech small{font-size:11px}.place{gap:6px}.scene-top{font-size:10px}}
@media(max-width:360px){.brand{font-size:24px;gap:7px}.brand img{width:36px;height:36px}.brand small{font-size:6px;letter-spacing:1px}.header-right{gap:5px}.header-right .icon-button{width:33px;height:33px;font-size:20px}}
@media(orientation:landscape) and (max-height:560px){.shoo-button{right:88px}.visitor-notice{top:auto;bottom:15px;left:20px;right:auto;font-size:9px;max-width:230px}.kaba-speech{bottom:29%;left:13%;max-width:220px;padding:7px 11px}.kaba-speech .speaker{display:none}#kaba-japanese{font-size:11px}.kaba-speech small{font-size:10px}}
.is-playing .toast{top:151px;bottom:auto;max-width:330px;font-size:11px}
@media(max-width:640px){.is-playing .toast{top:235px;max-width:85%;font-size:10px}}
@media(orientation:landscape) and (max-height:560px){.is-playing .toast{top:92px;font-size:9px;max-width:250px}}
.steer-pad{display:none;position:absolute;left:22px;bottom:62px;width:102px;height:72px;border:1px solid #9daf94;border-radius:40px;background:#f8f5e7c9;touch-action:none;user-select:none;-webkit-user-select:none;color:#62765a;box-shadow:0 5px 0 #5b755122;cursor:ew-resize}
body[data-controls="touch"] .steer-pad:not(.hidden){display:block}
.steer-arrows{position:absolute;inset:5px 0 0;text-align:center;font-size:28px;letter-spacing:10px;padding-left:10px;opacity:.6}
.steer-knob{position:absolute;left:34px;top:10px;width:32px;height:32px;border:1px solid #9caf8d;border-radius:50%;background:#d4dfc4;box-shadow:0 2px 3px #55644918;pointer-events:none}
.steer-pad small{position:absolute;bottom:9px;left:0;right:0;text-align:center;font-size:8px;letter-spacing:2px}.steer-pad.active{background:#edf1dd;box-shadow:0 0 0 4px #abbc9830}.steer-pad.active .steer-knob{background:#becfac}
.night-scene .steer-pad{background:#3b5253ed;color:#e1e9d4;border-color:#9aaf99}.night-scene .steer-knob{background:#809a84;border-color:#b6c5a5}
.daily-swatch{width:64px;height:42px;display:flex;gap:2px;border-radius:7px;border:2px solid #fff8;overflow:hidden}.daily-swatch i{width:33.333%;height:100%}
@media(max-width:640px){.steer-pad{left:18px;width:90px;height:65px}.steer-knob{left:29px;top:8px;width:30px;height:30px}.steer-pad small{bottom:8px}.play-hint{max-width:94%;font-size:9px}}
@media(orientation:landscape) and (max-height:560px){.steer-pad{left:18px;bottom:39px;width:90px;height:53px}.steer-knob{width:27px;height:27px;left:31px;top:5px}.steer-arrows{top:0}.steer-pad small{bottom:4px;font-size:7px}}
/* Fit the game to the inset-safe WebView rather than a minimum page height. */
.native-app .app{height:100dvh;padding:0 10px;display:flex;flex-direction:column}
.native-app .header{height:48px;min-height:48px;flex-shrink:0}
.native-app .brand{font-size:22px}.native-app .brand img{width:30px;height:30px}.native-app .brand small{display:none}
.native-app .made-note,.native-app .journal,.native-app footer{display:none}
.native-app .river,.native-app.is-playing .river{height:auto;min-height:0;max-height:none;flex:1;margin-bottom:8px}
.native-app.is-playing .header{height:42px;min-height:42px}
.native-app .steer-pad:not(.hidden){display:block}
@media(pointer:coarse){
 .is-playing .app{height:100dvh;display:flex;flex-direction:column}
 .is-playing .header{height:48px;min-height:48px;flex-shrink:0}
 .is-playing .river{height:auto;min-height:0;max-height:none;flex:1;margin-bottom:8px}
 .is-playing .journal,.is-playing footer{display:none}
 .steer-pad:not(.hidden){display:block}
 .steer-pad{left:22px;bottom:18px;width:120px;height:76px;z-index:6}
 .steer-knob{width:38px;height:38px;left:40px;top:9px}
 .steer-arrows{top:5px}.steer-pad small{bottom:8px;font-size:9px}
 .jump-button{width:76px;height:76px;bottom:18px;right:22px;z-index:6;font-size:28px}
 .jump-button small{font-size:9px}.shoo-button{right:112px}
 .play-hint{bottom:6px;font-size:9px;max-width:calc(100% - 360px)}
 .visitor-notice{bottom:105px;left:22px;top:auto;max-width:260px}
 .scene-top{top:10px}.hud{top:32px}.streak{top:82px}
}
@media(pointer:coarse) and (orientation:portrait){.play-hint{max-width:94%;bottom:102px}.steer-pad{left:12px;width:104px}.steer-knob{left:32px}.jump-button{right:12px;width:68px;height:68px}.shoo-button{right:88px}}
.native-app main{flex:1;min-height:0;display:flex;flex-direction:column}
@media(pointer:coarse){.is-playing main{flex:1;min-height:0;display:flex;flex-direction:column}}
.steer-arrows{font-size:0;letter-spacing:0;padding:0;inset:12px 12px auto;height:26px}
.steer-arrows::before,.steer-arrows::after{position:absolute;top:0;font-size:28px;line-height:26px}
.steer-arrows::before{content:'‹';left:0}.steer-arrows::after{content:'›';right:0}
/* Dialogue sits in the quiet water beneath Kaba, between the controls. */
.kaba-speech{left:50%;bottom:8px;transform:translateX(-50%);width:max-content;max-width:min(340px,calc(100% - 360px));padding:6px 12px;border-radius:14px;text-align:center}
.kaba-speech .speaker{display:none}#kaba-japanese{font-size:12px;line-height:1.3}.kaba-speech small{font-size:11px;line-height:1.3;margin-top:2px}
.river:has(.kaba-speech.show) .play-hint{visibility:hidden}
@media(max-width:640px) and (orientation:portrait){.kaba-speech{max-width:calc(100% - 36px)}.steer-pad,.jump-button{bottom:72px}.play-hint{bottom:153px}.header-right{gap:4px}.header-right .icon-button{width:32px;height:32px}.brand{font-size:21px;gap:5px}.brand img{width:29px;height:29px}}
@media(orientation:landscape) and (max-height:400px){.kaba-speech{bottom:6px;padding:3px 10px}#kaba-japanese{font-size:11px;line-height:1.2}.kaba-speech small{font-size:10px;line-height:1.2}}
/* Android is an immersive game surface; cutouts inset controls, never the river. */
.native-app{overflow:hidden;background:#222c31}
.native-app .app{width:100%;max-width:none;height:100dvh;padding:0}
.native-app .header,.native-app.is-playing .header{position:absolute;z-index:8;top:var(--safe-top,0px);left:var(--safe-left,0px);right:var(--safe-right,0px);height:50px;min-height:50px;padding:0 16px;background:linear-gradient(var(--paper),transparent)}
.native-app main{height:100%;width:100%}
.native-app .river,.native-app.is-playing .river{height:100%;width:100%;margin:0;border:0;border-radius:0}
.native-app .scene-top{top:calc(58px + var(--safe-top,0px));left:calc(22px + var(--safe-left,0px));right:calc(22px + var(--safe-right,0px))}
.native-app .hud{top:calc(80px + var(--safe-top,0px));left:calc(22px + var(--safe-left,0px));right:calc(22px + var(--safe-right,0px))}
.native-app .home{left:calc(6% + var(--safe-left,0px));top:28%}
.native-app .steer-pad{left:calc(22px + var(--safe-left,0px));bottom:calc(18px + var(--safe-bottom,0px))}
.native-app #jump{right:calc(22px + var(--safe-right,0px));bottom:calc(18px + var(--safe-bottom,0px))}
.native-app #shoo{right:calc(112px + var(--safe-right,0px));bottom:calc(18px + var(--safe-bottom,0px))}
.native-app .kaba-speech{bottom:calc(8px + var(--safe-bottom,0px))}
.native-app .streak{top:130px}.native-app .scene-bottom{left:calc(22px + var(--safe-left,0px));right:calc(22px + var(--safe-right,0px))}
.native-app .scene-bottom .key{display:none}.native-app .scene-bottom>span:first-child{font-size:0}.native-app .scene-bottom>span:first-child::after{content:'Steer left · Fly & Shoo right';font-size:10px}
.setting-help{display:block;font-size:11px;line-height:1.5;max-width:260px;margin-top:5px;color:var(--muted)}
.credits-copy{font-size:14px;line-height:1.8}.credits-copy strong{font:22px var(--serif)}
.native-app .header,.native-app.is-playing .header{left:0;right:0;padding-left:calc(16px + var(--safe-left,0px));padding-right:calc(16px + var(--safe-right,0px))}
.journey-choices{display:flex;gap:7px;margin-top:14px}.journey-choices button{border:1px solid var(--line);border-radius:9px;background:var(--paper);padding:9px 12px;font-size:11px;text-align:left}.journey-choices small{display:block;font-size:9px;margin-top:4px;opacity:.75}.journey-choices [aria-pressed="true"]{border-color:#708866;box-shadow:inset 0 0 0 1px #708866;background:#dde5cc;color:#435b42}
.kaba-speech::before{content:'';position:absolute;left:16px;top:-15px;width:23px;height:17px;background:inherit;clip-path:polygon(0 0,100% 100%,0 100%);border-left:1px solid #c8cbb4;transform:skewX(20deg)}
body:not(.native-app) .steer-pad{display:none!important}
body:not(.native-app) .river{user-select:none;-webkit-user-select:none}
@media(orientation:landscape) and (max-height:560px){.journey-choices{margin-top:9px}.journey-choices button{padding:7px 10px;font-size:10px}.journey-choices small{font-size:8px}.native-app .home{top:25%}}
@media(max-width:640px) and (orientation:portrait){.journey-choices{justify-content:center}.brand{font-size:20px}.brand small{font-size:5px;letter-spacing:.5px}.header-right{gap:3px}.header-right .icon-button{width:29px;height:29px}.brand img{width:25px;height:25px}}

.accessory-preview{width:64px;height:48px;flex-shrink:0}.accessory small{max-width:260px}

.journey-notes{list-style:none;padding:15px 0;margin:12px 0;border-top:1px solid #9aa58740;border-bottom:1px solid #9aa58740;font:italic 15px/1.7 var(--serif)}.journey-notes li+li{margin-top:7px}.accessory-preview{position:static;inset:auto;width:64px;height:56px;border-radius:10px;flex-shrink:0}.accessory strong{font-size:15px}.accessory button{min-width:68px}

@media (orientation:landscape) and (max-height:550px){
 dialog:has(.journey-notes){width:min(760px,94vw);padding:20px 26px}
 dialog:has(.journey-notes) #modal-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 22px}
 dialog:has(.journey-notes) .modal-eyebrow{grid-column:1/-1}
 dialog:has(.journey-notes) .modal-title{grid-column:1/-1;margin:4px 0 8px;font-size:28px}
 dialog:has(.journey-notes) #modal-content>.modal-copy:first-of-type{display:none}
 dialog:has(.journey-notes) .stats{grid-column:1;grid-row:3;margin:0;padding:10px 0}
 dialog:has(.journey-notes) .stats b{font-size:25px}
 dialog:has(.journey-notes) .journey-notes{grid-column:1;grid-row:4;font-size:12px;line-height:1.5;margin:0;padding:9px 0;border-top:0}
 dialog:has(.journey-notes) .journey-notes li+li{margin-top:5px}
 dialog:has(.journey-notes) .modal-actions{grid-column:2;grid-row:3/5;margin:0;align-self:center}
 dialog:has(.journey-notes) #modal-content>.modal-copy:last-child{grid-column:1/-1;margin:6px 0 0}
}
