:root{--cream:#faf6ed;--ink:#475b52;--muted:#849087;--pink:#e9a0a7;--line:#e3e5d8;--sage:#648d76;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #ca9073;outline-offset:4px}button:disabled{opacity:.46;cursor:default}[hidden]{display:none!important}.topbar{max-width:1360px;margin:auto;padding:23px 36px;display:flex;align-items:center;justify-content:space-between;height:94px}.brand{display:flex;align-items:center;gap:11px;font-size:29px;font-weight:850;letter-spacing:1px}.brand small{display:inline-block;margin-left:12px;padding-left:14px;border-left:1px solid #cdd5c5;font-size:13px;letter-spacing:1px;font-weight:600}.brand-bird{color:#da929a;font-size:33px}.top-actions{display:flex;align-items:center;gap:22px}.edition{font-size:9px;letter-spacing:1.7px;color:var(--muted)}.icon-button{border:1px solid var(--line);border-radius:50%;background:#fffaf2;width:38px;height:38px;font-size:20px}.hub-link{font-size:12px;color:#7e8e7f}.page{max-width:1288px;margin:auto;padding:0 0 28px}.welcome{position:relative;isolation:isolate;height:560px;border:1px solid #dce6d7;border-radius:24px;overflow:hidden;background:#e6f0e5}.welcome canvas{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;z-index:-2}.welcome:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#f0f6e9ee,#f0f6e9b0 36%,#f0f6e900 62%);z-index:-1;pointer-events:none}.welcome-copy{padding:66px 64px;max-width:610px}.eyebrow{display:block;font-size:9px;font-weight:700;letter-spacing:2px;color:#84957f}.welcome h1{font-size:56px;line-height:1.27;letter-spacing:2px;margin:24px 0 22px;font-weight:850;color:#4b6758}.welcome p{font-size:14px;line-height:1.95;margin:0 0 26px;color:#728271}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:20px;padding:13px 21px;border-radius:11px;font-size:14px;font-weight:750;min-height:46px;border:1px solid transparent}.primary{background:#dd9299;color:#fffdf6;box-shadow:0 4px 0 #c77f861c}.primary:hover{background:#d88a93}.secondary{background:#fffcf4;border-color:#dfe3d4}.secondary:hover{background:#f0f2e5}.text-button{display:block;background:none;border:0;padding:16px 0 0;color:#83927d;font-size:12px;text-decoration:underline;text-underline-offset:4px}.home-note{display:flex;gap:20px;font-size:10px;color:#82917a;margin-top:28px}.art-label{position:absolute;right:52px;bottom:24px;font-size:8px;letter-spacing:2.5px;color:#7d9079}.crews{display:flex;justify-content:space-between;gap:30px;align-items:center;margin:44px 6px 28px}.crews h2{font-size:23px;margin:12px 0}.crews p{font-size:12px;color:#83917f;margin:0}.profile-list{display:flex;gap:13px}.profile{background:#fffdf5;border:1px solid #e3e5d8;border-radius:14px;padding:17px 21px;display:flex;align-items:center;gap:16px;min-width:235px;text-align:left}.profile[aria-pressed=true]{border-color:#cd9b9c;background:#fcf0ec;box-shadow:0 0 0 2px #e3bdaf25}.profile:last-child[aria-pressed=true]{background:#ebf2e9;border-color:#94b3a5}.profile b{display:block;font-size:14px}.profile small{display:block;color:#96988a;margin-top:7px;font-size:10px}.profile-check{font-size:13px;color:#b9858b;margin-left:auto}.mini-bird{display:block;flex-shrink:0;width:40px;height:37px;background:#eaa0a7;border-radius:47% 50% 46% 46%;position:relative;box-shadow:inset -5px -5px 0 #00000005}.mini-bird:before{content:"";position:absolute;width:4px;height:6px;border-radius:50%;background:#5a5d50;left:20px;top:11px;box-shadow:10px 0 #5a5d50}.mini-bird:after{content:"";position:absolute;left:27px;top:19px;border-left:8px solid #d49d50;border-top:4px solid transparent;border-bottom:3px solid transparent}.mini-bird.mint{background:#82bdb1}.mini-bird.honey{background:#ecc673}.bird-guide{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line);padding:24px 10px;gap:35px}.bird-guide>div{display:flex;gap:18px;align-items:center}.bird-guide b{font-size:12px}.bird-guide small{display:block;font-size:10px;margin-top:7px;color:#8e9788}.footer-note{font-size:10px;color:#a0a495;text-align:center;letter-spacing:.5px;margin:26px 0 0}.map-head{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:26px 0 38px}.map-head h1{font-size:30px;margin:12px 0}.map-head p{font-size:12px;color:#849180}.star-count{background:#f8edca;border-radius:40px;padding:12px 20px;color:#b79a57;font-size:16px;white-space:nowrap}.chapter{padding:25px 28px 28px;border:1px solid #dfe5d7;background:#eff4e8;border-radius:18px;margin-bottom:20px}.chapter:nth-child(2){background:#f7f0df}.chapter:nth-child(3){background:#eeedf4}.chapter h2{font-size:18px;margin:0 0 8px}.chapter p{font-size:12px;margin:0;color:#91988a}.level-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:20px}.level-card{border:1px solid #dfe4d6;border-radius:12px;background:#fffdf7;padding:20px;text-align:left;min-height:136px;position:relative}.level-card b{font-size:29px;color:#829f85;font-weight:750}.level-card span{display:block;font-size:12px;margin:12px 0 6px}.level-card small{color:#dfbd66;font-size:17px;letter-spacing:3px}.level-card:disabled{background:#ffffff66;opacity:.62}.level-card:disabled small{font-size:10px;color:#a3a69c;letter-spacing:1px}.level-card:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 4px 12px #455b4910}body.playing{height:100dvh;overflow:hidden}body.playing>.topbar{display:none}#play{height:100dvh;max-width:1600px;margin:auto;display:flex;flex-direction:column;padding:12px 24px 8px}.play-head{height:70px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:20px}.play-head>div:nth-child(2){text-align:center}.play-head h2{margin:7px 0 0;font-size:22px}.game-counters{display:flex;gap:10px;font-size:12px;color:#778872}.game-counters span{border:1px solid #e4e7d8;border-radius:9px;padding:9px 12px;background:#fffdf5}#stage{position:relative;min-height:0;flex:1;display:flex;justify-content:center;align-items:center;overflow:hidden;border-radius:15px;background:#e9f0e3;border:1px solid #dfe5d5}#world{display:block;touch-action:none;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-select:none}#stage-toast{position:absolute;top:12px;left:50%;transform:translateX(-50%);max-width:90%;background:#fffdf2ed;border:1px solid #e4e3ce;border-radius:30px;padding:11px 22px;font-size:13px;box-shadow:0 3px 14px #42594610;pointer-events:none}.play-bottom{height:84px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:20px}.current-bird{display:flex;align-items:center;gap:14px}.current-bird b{font-size:14px}.current-bird p{font-size:11px;color:#8b9685;margin:6px 0 0;max-width:470px}.play-buttons{display:flex;gap:10px}.fine-controls{display:flex;gap:7px;align-items:center;justify-content:center;font-size:10px;color:#97a18f;flex-wrap:wrap;padding-bottom:5px}.fine-controls button{background:#f2f0e6;border:1px solid #e2e5d6;border-radius:6px;padding:6px 10px;font-size:10px;min-height:31px}.fine-controls span{margin-left:10px}.fine-controls #launch-button{background:#ebf0de}.fine-controls button:disabled{opacity:.35}dialog{width:min(500px,calc(100vw - 28px));border:1px solid #e3e4d4;background:#fffbf2;color:var(--ink);border-radius:23px;padding:32px;text-align:center;box-shadow:0 20px 100px #29473430;max-height:90dvh;overflow:auto}dialog::backdrop{background:#334c4170;backdrop-filter:blur(4px)}dialog h2{font-size:28px;margin:12px 0 17px}dialog p{font-size:13px;line-height:1.9;color:#85917e}dialog .dialog-actions{display:flex;flex-direction:column;gap:10px;margin-top:24px}.result-stars{font-size:52px;letter-spacing:7px;color:#ebc264;filter:drop-shadow(0 4px 0 #e2bc5b33);margin:15px 0}.result-icon{font-size:45px;color:#dca0a3}.help-steps{text-align:left;display:grid;gap:16px;margin-top:22px}.help-step{display:flex;gap:14px;align-items:flex-start}.help-step>span{background:#f4ead2;color:#b59b60;font-weight:bold;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;flex-shrink:0}.help-step b{font-size:14px}.help-step p{font-size:12px;margin:4px 0 0}.profile-pill{font-size:12px;color:#b18c8e;background:#f9ece6;border-radius:30px;padding:8px 14px;display:inline-block}#storage-note{position:fixed;bottom:5px;left:50%;transform:translateX(-50%);z-index:10;padding:9px 15px;font-size:12px;background:#fff5dc;border:1px solid #e2ca8d;border-radius:8px;max-width:90vw}#fatal{position:fixed;inset:20%;background:#fff9ea;padding:40px;border-radius:20px;z-index:99}#fatal button,#fatal a{display:inline-block;padding:12px}@media(max-width:1340px){.page{margin:0 30px}.welcome-copy{padding:56px 46px}.welcome{height:530px}.profile{min-width:215px}}@media(max-width:850px){.page{margin:0 20px}.topbar{height:78px;padding:18px 22px}.brand{font-size:26px}.brand small{font-size:11px;margin-left:9px;padding-left:10px}.edition{display:none}.top-actions{gap:16px}.welcome{height:550px}.welcome-copy{padding:48px 36px;max-width:430px}.welcome h1{font-size:47px}.welcome canvas{object-position:64% center}.welcome:after{background:linear-gradient(90deg,#f0f6e9f0,#f0f6e9aa 55%,#f0f6e933)}.crews{align-items:flex-start;flex-direction:column;gap:20px;margin-top:32px}.profile-list{width:100%}.profile{flex:1;min-width:0}.bird-guide{gap:15px}.bird-guide>div{gap:10px}.bird-guide b{font-size:11px}.bird-guide .mini-bird{width:33px;height:32px}.bird-guide small{font-size:9px;line-height:1.5}.map-head h1{font-size:23px}.map-head .eyebrow{font-size:8px}.map-head .secondary{padding:10px;font-size:12px}.level-grid{gap:10px}.level-card{padding:15px}.play-head h2{font-size:17px}.play-head .eyebrow{font-size:8px}.game-counters{gap:5px;font-size:10px}.game-counters span{padding:8px}.play-bottom{gap:10px}.play-buttons{gap:6px}.play-buttons button{font-size:12px;padding:10px 13px}.current-bird p{max-width:310px}}@media(max-width:520px){.page{margin:0 15px}.topbar{padding:17px 18px;height:73px}.brand small{display:block;margin:1px 0 0;padding:0;border:0;font-size:9px}.brand{font-size:23px;gap:8px}.brand-bird{font-size:29px}.top-actions{gap:14px}.hub-link{font-size:10px}.icon-button{height:34px;width:34px;font-size:17px}.welcome{height:635px;border-radius:18px}.welcome-copy{padding:34px 27px;max-width:none}.welcome h1{font-size:43px;margin:18px 0}.welcome p{font-size:12px;margin-bottom:20px}.welcome .eyebrow{font-size:8px;letter-spacing:1.4px}.welcome canvas{height:300px;top:auto;bottom:0;width:100%;object-fit:cover;object-position:74% center}.welcome:after{background:linear-gradient(#edf4e8 0%,#edf4e8 47%,#edf4e800 68%)}.welcome-copy .primary{font-size:12px;min-height:44px}.text-button{font-size:11px;padding-top:13px}.home-note{margin-top:20px;font-size:9px;gap:13px}.art-label{right:18px;bottom:13px;font-size:6px;letter-spacing:1.6px}.crews h2{font-size:21px}.profile-list{gap:8px}.profile{padding:15px 12px;gap:10px}.profile b{font-size:12px}.profile small{font-size:9px;line-height:1.6}.profile .mini-bird{width:33px;height:32px}.profile-check{display:none}.bird-guide{grid-template-columns:1fr;padding:20px 8px;gap:20px}.bird-guide b{font-size:12px}.bird-guide small{font-size:10px}.bird-guide>div{gap:17px}.footer-note{font-size:9px;line-height:1.8}.map-head{flex-wrap:wrap;gap:18px;padding:15px 0 25px}.map-head>div{order:3;width:100%}.map-head h1{font-size:25px}.map-head .star-count{font-size:13px;padding:10px 15px}.chapter{padding:20px 16px}.level-grid{grid-template-columns:repeat(2,1fr)}.level-card{min-height:130px}#play{padding:8px 10px}.play-head{height:77px;gap:10px;flex-wrap:wrap}.play-head>div:nth-child(2){flex:1;text-align:right}.play-head h2{font-size:17px}.play-head>.secondary{font-size:12px;min-height:37px;padding:9px 11px}.game-counters{width:100%;justify-content:center;height:27px}.game-counters span{padding:4px 9px}.play-bottom{height:auto;flex-direction:column;align-items:stretch;gap:13px;padding:15px 6px 10px}.play-buttons{justify-content:center;flex-wrap:wrap}.current-bird{gap:12px}.current-bird p{font-size:11px;max-width:none;line-height:1.6}.play-buttons .primary{flex:1}.fine-controls{gap:6px}.fine-controls span{margin:2px 0;font-size:9px;width:100%;text-align:center}#stage{margin-top:10px;border-radius:10px}#stage-toast{font-size:10px;white-space:normal;width:max-content;max-width:94%;top:7px;padding:7px 12px}.fine-controls button{min-height:36px;padding:8px 9px}dialog{padding:25px}dialog h2{font-size:25px}}@media(orientation:landscape) and (max-height:550px){#play{padding:3px 12px}.play-head{height:44px}.play-head h2{font-size:14px;margin:3px 0}.play-head>.secondary{min-height:32px;padding:5px 11px;font-size:11px}.game-counters{font-size:10px}.game-counters span{padding:6px}.play-bottom{height:54px}.current-bird .mini-bird{width:28px;height:27px}.current-bird .mini-bird:before{top:8px;left:12px}.current-bird .mini-bird:after{top:15px;left:19px}.current-bird b{font-size:11px}.current-bird p{font-size:9px;margin-top:3px;max-width:330px}.play-buttons button{min-height:34px;padding:7px 12px;font-size:11px}.fine-controls{padding:0;gap:5px}.fine-controls button{min-height:23px;padding:3px 9px;font-size:9px}.fine-controls span{font-size:8px}dialog{max-height:94dvh;padding:18px 25px}dialog h2{font-size:22px}.result-stars{font-size:32px;margin:9px 0}dialog .dialog-actions{margin-top:14px;gap:7px}dialog .primary,dialog .secondary{min-height:36px;padding:9px}#stage-toast{top:6px;padding:7px 15px;font-size:10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Sister Stars 2.0 */
:root{--pink:#c59ccc}.welcome{background:#eee7f6}.welcome h1{font-size:47px;letter-spacing:0}.welcome-copy{padding-top:65px;max-width:670px}.profile:last-child[aria-pressed=true]{background:#f0eaf8;border-color:#afa0cd}.mini-bird.moon{background:#aaa3de}.mini-bird.sky{background:#79b8da}.mini-bird.plum{background:#c88ebc}.primary{background:#b98cc2}.primary:hover{background:#aa7ab5}.bird-guide{row-gap:25px}.chapter:nth-child(2){background:#e9f3f6}.chapter:nth-child(3){background:#f7f0df}.chapter:nth-child(4){background:#eeedf7}.chapter:nth-child(5){background:#e5e9f6}.chapter h2 small{font-size:10px;background:#d0c5e2;border-radius:10px;padding:4px 9px;margin-left:10px}.level-grid{grid-template-columns:repeat(3,1fr)}.footer-note a{text-decoration:underline;text-underline-offset:3px}#flock{display:flex;justify-content:center;gap:7px;min-height:42px;flex-shrink:0;align-items:center}.flock-bird{display:flex;gap:6px;align-items:center;padding:6px 12px;font-size:11px;border-radius:20px;border:1px solid #dce1d6;background:#fffdf6;min-height:32px}.flock-bird span{color:var(--bird-color);font-size:17px}.flock-bird.selected{border-color:var(--bird-color);background:#f8f0f7}.flock-bird:disabled{opacity:.55}.flock-bird.selected:disabled{opacity:.9}
@media(max-width:850px){.welcome h1{font-size:39px}.welcome-copy{max-width:500px}.flock-bird{font-size:10px;padding:5px 9px}}
@media(max-width:520px){.welcome h1{font-size:33px;margin-top:20px}.welcome-copy{padding:31px 23px}.welcome p{font-size:12px}.home-note{flex-wrap:wrap;gap:8px}.welcome .eyebrow{font-size:7px;letter-spacing:1px}.level-grid{grid-template-columns:repeat(2,1fr)}.map-head h1{font-size:23px}#flock{gap:4px;min-height:40px;overflow-x:auto;justify-content:flex-start;padding:0 3px}.flock-bird{font-size:9px;padding:5px 7px;white-space:nowrap;flex-shrink:0}.flock-bird span{font-size:13px}.play-head h2{font-size:15px}.bird-guide{grid-template-columns:repeat(2,1fr);gap:23px 12px}.bird-guide>div{gap:9px}.bird-guide .mini-bird{width:28px;height:28px}.bird-guide b{font-size:11px}.bird-guide small{font-size:9px;line-height:1.6}.bird-guide .mini-bird:before{left:12px}.bird-guide .mini-bird:after{left:18px}}
@media(orientation:landscape) and (max-height:550px){#flock{min-height:30px}.flock-bird{min-height:25px;font-size:9px;padding:3px 9px}.flock-bird span{font-size:12px}}

/* 2.1: the canvas owns the play area; controls sit in thumb-sized rails. */
.mobile-note{text-align:center;color:#718171;font-size:12px;line-height:1.9;margin:24px 0 0}.screen-tools{display:flex;gap:6px}.screen-tools button{min-height:44px;padding:10px 14px;font-size:12px}.level-title{flex:1;min-width:0}.view-tools{position:absolute;right:12px;bottom:12px;display:flex;gap:6px}.view-tools button{font-size:11px;padding:8px 12px;min-height:40px;background:#fffdf3ed}.view-tools [aria-pressed=true],.screen-tools [aria-pressed=true]{background:#eee1f4;border-color:#b58cbe}#world{object-fit:fill}#fine-toggle{display:none}.game-counters{white-space:nowrap}#play{width:100%;height:var(--game-height,100dvh)}
body.compact-play{overscroll-behavior:none;-webkit-user-select:none;user-select:none;background:#e8f1e5}body.compact-play #play{position:fixed;left:0;top:0;margin:0;padding:0;max-width:none;width:var(--game-width,100vw);height:var(--game-height,100dvh);isolation:isolate;--bottom-rail:144px;--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
body.compact-play #stage{position:absolute;inset:0 0 calc(var(--bottom-rail) + var(--safe-bottom)) 0;margin:0;border:0;border-radius:0;display:block;z-index:0}body.compact-play .play-head{position:absolute;z-index:3;top:var(--safe-top);left:var(--safe-left);right:var(--safe-right);height:60px;padding:8px 10px;display:flex;flex-wrap:nowrap;gap:8px;background:linear-gradient(#faf6edf5,#faf6eddd);pointer-events:none}body.compact-play .play-head button{pointer-events:auto}body.compact-play .play-head>.secondary{min-width:44px;min-height:44px;font-size:0;padding:8px}body.compact-play .play-head>.secondary::before{content:'Ⅱ';font-size:18px}body.compact-play .play-head>.level-title{text-align:left;flex:1;min-width:0}body.compact-play .play-head h2{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0 0}body.compact-play .play-head .eyebrow{font-size:8px;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.compact-play .screen-tools{gap:5px}body.compact-play .screen-tools button{font-size:12px;min-width:44px;min-height:44px;padding:8px}body.compact-play .game-counters{position:absolute;top:65px;left:12px;width:auto;height:auto;font-size:10px;gap:5px}body.compact-play .game-counters span{border:0;background:#fffdf4de;border-radius:16px;padding:6px 9px}body.compact-play #flock{position:absolute;z-index:2;left:var(--safe-left);right:var(--safe-right);bottom:calc(96px + var(--safe-bottom));min-height:44px;height:44px;margin:0;gap:5px;padding:0 12px;justify-content:center;overflow-x:auto;overflow-y:hidden;background:#faf6ed;scrollbar-width:none}body.compact-play .flock-bird{min-height:40px;flex-shrink:0;padding:7px 10px;font-size:11px;white-space:nowrap}body.compact-play .flock-bird span{font-size:16px}body.compact-play .play-bottom{position:absolute;left:var(--safe-left);right:var(--safe-right);bottom:0;height:calc(96px + var(--safe-bottom));padding:5px 12px calc(8px + var(--safe-bottom));gap:5px;display:flex;flex-direction:column;align-items:stretch;background:#faf6ed;z-index:3}body.compact-play .current-bird{height:29px;gap:9px;overflow:hidden}body.compact-play .current-bird .mini-bird{width:24px;height:24px}body.compact-play .current-bird .mini-bird:before{left:9px;top:5px;width:3px;height:5px;box-shadow:8px 0 #5a5d50}body.compact-play .current-bird .mini-bird:after{left:16px;top:12px}body.compact-play .current-bird>div{min-width:0;display:flex;gap:10px;align-items:center}body.compact-play .current-bird b{font-size:12px;white-space:nowrap}body.compact-play .current-bird p{margin:0;font-size:10px;line-height:1.4;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:none}body.compact-play .play-buttons{display:flex;gap:7px;flex-wrap:nowrap;justify-content:stretch}body.compact-play .play-buttons button{min-height:46px;font-size:13px;padding:9px 12px}body.compact-play .play-buttons .primary{flex:1}body.compact-play #fine-toggle{display:block}body.compact-play .fine-controls{display:none;position:absolute;left:calc(8px + var(--safe-left));right:calc(8px + var(--safe-right));bottom:calc(var(--bottom-rail) + 8px + var(--safe-bottom));background:#fffaf4f5;border:1px solid #dedfce;box-shadow:0 4px 20px #475b5220;border-radius:13px;padding:10px;z-index:4;gap:5px}body.compact-play .fine-open .fine-controls{display:flex}body.compact-play .fine-controls button{min-height:44px;padding:8px;font-size:12px;flex:1;white-space:nowrap}body.compact-play .fine-controls span{width:100%;text-align:center;margin:2px 0 0;font-size:10px}body.compact-play .view-tools{right:calc(8px + var(--safe-right));bottom:8px;gap:5px}body.compact-play .view-tools button{min-height:44px;padding:8px 12px;font-size:12px}body.compact-play #stage-toast{top:calc(99px + var(--safe-top));padding:8px 13px;font-size:11px;max-width:92%;width:max-content;line-height:1.5;white-space:normal}body.compact-play #play.wide-play{--bottom-rail:64px}body.compact-play .wide-play #flock{top:calc(64px + var(--safe-top));bottom:auto;left:auto;right:calc(8px + var(--safe-right));width:auto;max-width:64%;height:40px;min-height:40px;justify-content:flex-start;padding:0 3px;background:none}body.compact-play .wide-play .flock-bird{font-size:10px;min-height:36px;padding:5px 9px;background:#fffdf6e8}body.compact-play .wide-play .play-bottom{height:calc(64px + var(--safe-bottom));display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:6px calc(12px + var(--safe-right)) calc(6px + var(--safe-bottom)) calc(12px + var(--safe-left));gap:10px;left:0;right:0}body.compact-play .wide-play .current-bird{height:42px;flex:1}body.compact-play .wide-play .current-bird>div{display:block}body.compact-play .wide-play .current-bird p{max-width:310px;margin-top:4px}body.compact-play .wide-play .play-buttons{flex-shrink:0}body.compact-play .wide-play .play-buttons .primary{min-width:120px}body.compact-play .wide-play #stage-toast{top:calc(108px + var(--safe-top));font-size:10px;padding:6px 12px;max-width:80%}body.compact-play .wide-play .fine-controls{left:auto;max-width:460px;min-width:320px}body.compact-play .wide-play .view-tools{bottom:5px}body.rotated-play #play{transform-origin:0 0;transform:translateX(var(--physical-width)) rotate(90deg);--safe-top:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-right,0px);--safe-left:env(safe-area-inset-bottom,0px)}
body.rotated-play dialog{position:fixed;inset:0;margin:auto;transform:rotate(90deg);width:min(500px,calc(100dvh - 30px));max-width:calc(100dvh - 30px);max-height:calc(100dvw - 28px);padding:18px 24px}body.rotated-play dialog h2{font-size:22px;margin:8px 0}body.rotated-play dialog .result-stars{font-size:32px;margin:8px 0}body.rotated-play dialog .dialog-actions{margin-top:12px;gap:7px}body.rotated-play dialog .help-steps{gap:10px;margin-top:12px}body.rotated-play dialog .primary,body.rotated-play dialog .secondary{min-height:44px;padding:10px}
@media(max-width:350px){body.compact-play .screen-tools button{font-size:11px;padding:6px}body.compact-play .play-head h2{font-size:11px}body.compact-play .flock-bird{font-size:10px;padding:6px 8px}body.compact-play #flock{justify-content:flex-start}}

body.compact-play .wide-play .view-tools{left:calc(10px + var(--safe-left));right:auto}body.compact-play #stage-toast{max-height:56px;overflow:hidden}body.compact-play .screen-tools button{touch-action:manipulation}body.compact-play .play-buttons button{touch-action:manipulation}
/* Keep the high towers clear: in landscape the flock shares the bottom rail. */
body.compact-play .wide-play .play-head{height:52px;padding-top:4px;padding-bottom:4px}body.compact-play .wide-play .game-counters{top:58px}body.compact-play .wide-play #flock{top:auto;bottom:calc(10px + var(--safe-bottom));left:calc(8px + var(--safe-left));right:auto;max-width:calc(100% - 292px - var(--safe-left) - var(--safe-right));height:44px;z-index:4;background:#faf6ed}body.compact-play .wide-play .flock-bird{min-height:40px}body.compact-play .wide-play .current-bird{display:none}body.compact-play .wide-play .play-bottom{justify-content:flex-end}body.compact-play .wide-play #stage-toast{top:calc(99px + var(--safe-top));left:12px;transform:none;max-width:42%;font-size:10px}
body.rotated-play dialog{left:50%;top:50%;right:auto;bottom:auto;margin:0;transform:translate(-50%,-50%) rotate(90deg);padding:12px 20px}body.rotated-play dialog .eyebrow{display:none}body.rotated-play dialog h2{font-size:20px;line-height:1.25;margin:4px 0}body.rotated-play dialog>div>p{font-size:12px;line-height:1.5;margin:4px 0}body.rotated-play dialog .dialog-actions{gap:6px;margin-top:8px}
/* A family storybook, with the three approved portraits. */
:root{--pink:#d5a06e;--ink:#4d5c4e}.primary{background:#ba8d62}.primary:hover{background:#a97c52}.story-welcome{height:590px;background:#f4edda;border-color:#e5ddc8}.story-welcome #hero{opacity:.17}.story-welcome:after{background:linear-gradient(90deg,#fbf6e9f5,#fbf6e9aa 46%,#fbf6e922)}.story-welcome .welcome-copy{padding:62px 54px;max-width:640px;width:53%}.story-welcome h1{font-size:48px;line-height:1.28;color:#526344;margin:22px 0}.story-welcome .eyebrow{letter-spacing:1.7px;font-size:9px}.story-welcome p{color:#79816d}.book-link{margin:12px 0 0;padding:10px 17px;display:flex;width:max-content;font-size:12px}.family-portraits{position:absolute;top:25px;right:4%;width:40%;display:grid;grid-template-columns:1fr 1fr;gap:0 22px;text-align:center}.family-portraits figure{margin:0;min-width:0}.family-portraits img{display:block;width:100%;height:auto;border-radius:50%;border:7px solid #fffaf1;box-shadow:0 7px 22px #78644113}.family-portraits figcaption{font-size:16px;font-weight:750;margin-top:12px;letter-spacing:1px}.family-portraits small{display:block;font-size:10px;letter-spacing:.3px;font-weight:400;color:#89907c;margin-top:6px}.portrait-man{transform:rotate(-5deg)}.portrait-moon{transform:rotate(5deg);padding-top:20px}.family-portraits .portrait-sun{grid-column:1 / -1;width:44%;justify-self:center;margin-top:-24px;position:relative}.portrait-sun button{display:block;border:0;background:none;padding:0;border-radius:50%;width:100%}.portrait-sun button:active{transform:translateY(-5px) rotate(-5deg)}.profile-avatar{width:58px;height:58px;object-fit:cover;border-radius:50%;border:3px solid #fff8ef}.profile{min-width:230px;gap:13px}.profile:last-child[aria-pressed=true]{background:#f0eaf8;border-color:#afa0cd}.map-story-actions{display:flex;align-items:center;gap:15px;margin:-12px 0 25px}.map-story-actions span{font-size:12px;color:#8b9584}.chapter-story{margin-top:14px;padding:9px 15px;font-size:12px;min-height:40px}.mini-bird.mint{background:#88aa52}.mini-bird.mint:before{background:#343c2f;box-shadow:10px 0 #343c2f;outline:2px solid #f9f3df}.mini-bird.mint:after{border-left-color:#514c42}.album-preface{display:flex;gap:25px;padding:28px;background:#f5ecd9;border:1px solid #e8dec7;border-radius:20px;margin-bottom:30px;align-items:center}.album-preface>img{border-radius:50%;flex:none}.album-preface b{font-size:17px}.album-preface p{font-size:13px;line-height:1.85;color:#7c8974;margin:10px 0 0}.album-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.memory-card{border:1px solid #e1decf;border-radius:17px;background:#fffaf0;overflow:hidden;min-width:0;display:flex;flex-direction:column}.memory-art{height:144px;background:linear-gradient(135deg,#ebeecf,#f6e2cc);position:relative;display:flex;align-items:center;justify-content:center}.memory-art img{width:77px;height:77px;border-radius:50%;border:4px solid #fff9ef;margin:0 -4px}.memory-art img:nth-child(2){width:91px;height:91px;z-index:1;transform:translateY(-5px)}.memory-motif{position:absolute;right:12px;top:10px;color:#bc9e6c;font-size:25px}.memory-locked .memory-art{background:#ecece1}.memory-locked .memory-art img{filter:grayscale(.9);opacity:.38}.memory-copy{padding:20px;display:flex;flex-direction:column;flex:1;align-items:flex-start}.memory-copy small{font-size:10px;color:#919984}.memory-copy h2{font-size:18px;margin:10px 0}.memory-copy p{font-size:12px;color:#86927e;line-height:1.65;flex:1;margin:0 0 15px}.memory-copy button{font-size:12px;min-height:44px}.memory-copy .text-button{padding-top:13px}.story-panel{text-align:left}.story-kicker{display:flex;justify-content:space-between;gap:15px;color:#9b967a;font-size:10px;letter-spacing:1px}.story-cast{display:flex;align-items:center;gap:14px;margin:22px 0 10px}.story-cast img{width:86px;height:86px;border-radius:50%;border:4px solid #fff6e7;box-shadow:0 3px 12px #77685315}.story-cast b{display:block;font-size:17px}.story-cast small{display:block;margin-top:6px;font-size:11px;color:#929981}.story-panel h2{font-size:26px;line-height:1.35;margin:15px 0 12px}.story-panel .story-text{font-size:14px;line-height:1.95;color:#76816e;margin:0}.story-line{background:#f2eddc;border-left:3px solid #ccb47c;padding:14px 16px;border-radius:0 12px 12px 0;font-size:14px;line-height:1.8;margin:18px 0 6px;color:#617057}.story-source{font-size:10px;color:#a7a68f;margin-top:12px;line-height:1.5}.story-dialog{width:min(540px,calc(100vw - 28px))}.story-result{display:flex;align-items:center;gap:14px;text-align:left;padding:15px 17px;margin:18px 0 0;background:#f3efdf;border-radius:15px}.story-result img{width:64px;height:64px;flex-shrink:0;border-radius:50%}.story-result b{font-size:12px}.story-result p{font-size:12px;line-height:1.6;margin:5px 0 0}.memory-earned{display:block;font-size:12px;color:#a5824f;margin-top:14px}.album-grid .locked-note{font-size:12px;color:#989e8c}
@media(max-width:1000px){.story-welcome .welcome-copy{padding:47px 32px;width:54%;max-width:none}.story-welcome h1{font-size:39px}.family-portraits{right:3%;gap:0 13px;top:63px}.family-portraits figcaption{font-size:13px}.family-portraits small{font-size:9px}.story-welcome{height:565px}.album-grid{grid-template-columns:repeat(2,1fr)}.profile{min-width:0}.profile-avatar{width:46px;height:46px}}
@media(max-width:620px){.story-welcome{height:auto;min-height:0}.story-welcome .welcome-copy{padding:28px 25px 18px;width:100%;max-width:none}.story-welcome h1{font-size:34px;margin:19px 0 16px}.story-welcome p{font-size:12px;line-height:1.85;margin-bottom:18px}.story-welcome .eyebrow{font-size:8px;letter-spacing:1px}.story-welcome .welcome-copy .primary{min-height:46px;font-size:13px;padding:12px 18px}.book-link{font-size:11px;padding:9px 14px;min-height:40px;display:inline-flex;margin:10px 0 0}.story-welcome .home-note{font-size:9px;gap:8px;margin-top:18px;flex-wrap:wrap}.family-portraits{position:relative;inset:auto;width:100%;padding:4px 16px 27px;grid-template-columns:repeat(3,1fr);gap:10px;align-items:center}.family-portraits .portrait-sun{grid-column:auto;width:100%;margin:0}.portrait-moon{padding-top:0;transform:rotate(3deg)}.family-portraits img{border-width:4px}.family-portraits small{font-size:8px;line-height:1.5;letter-spacing:0}.family-portraits figcaption{font-size:12px;margin-top:8px;letter-spacing:0}.family-portraits .portrait-sun button{transform:translateY(-4px)}.profile-avatar{width:43px;height:43px}.profile{padding:12px 9px;gap:8px}.profile b{font-size:12px}.profile small{font-size:9px}.album-grid{grid-template-columns:1fr}.album-preface{align-items:flex-start;padding:20px 17px;gap:14px}.album-preface>img{width:62px;height:62px}.album-preface b{font-size:14px}.album-preface p{font-size:12px}.map-story-actions{gap:12px;margin:0 0 20px;flex-wrap:wrap}.map-story-actions span{font-size:11px}.map-head h1{font-size:23px}.story-cast{margin:15px 0 8px}.story-cast img{width:67px;height:67px}.story-panel h2{font-size:23px}.story-panel .story-text{font-size:13px}.story-line{font-size:13px;padding:12px;margin-top:14px}.story-dialog .dialog-actions{margin-top:18px}.story-result img{width:50px;height:50px}.story-result{padding:12px;margin-top:12px}.story-result p{font-size:11px}.story-source{font-size:9px}.topbar .brand small{font-size:9px}}
@media(orientation:landscape) and (max-height:550px){.story-dialog .story-cast{float:left;display:block;width:86px;margin:8px 17px 7px 0;text-align:center}.story-dialog .story-cast img{width:68px;height:68px}.story-dialog .story-cast b{font-size:12px;margin-top:5px}.story-dialog .story-cast small{display:none}.story-dialog .story-panel h2{font-size:21px;margin:10px 0}.story-dialog .story-text{font-size:12px;line-height:1.7}.story-dialog .story-line{font-size:12px;line-height:1.65;margin:12px 0 5px;padding:9px 12px;clear:both}.story-dialog .dialog-actions{flex-direction:row;margin-top:12px}.story-dialog .dialog-actions button{flex:1;min-height:44px}.story-result{margin:10px 0 0;padding:10px}.story-result img{width:42px;height:42px}}
body.rotated-play .story-dialog{width:min(610px,calc(100dvh - 30px));max-width:calc(100dvh - 30px)}body.rotated-play .story-dialog .story-cast{float:left;display:block;width:76px;margin:9px 14px 7px 0;text-align:center}body.rotated-play .story-dialog .story-cast img{width:64px;height:64px}body.rotated-play .story-dialog .story-cast b{font-size:12px}body.rotated-play .story-dialog .story-cast small{display:none}body.rotated-play .story-dialog .story-panel h2{font-size:20px;margin:10px 0}body.rotated-play .story-dialog .story-text{font-size:12px;line-height:1.65}body.rotated-play .story-dialog .story-line{font-size:12px;line-height:1.6;padding:8px 11px;margin:10px 0 5px;clear:both}body.rotated-play .story-dialog .dialog-actions{flex-direction:row}body.rotated-play .story-dialog .dialog-actions button{flex:1}body.rotated-play .story-dialog .story-source{display:none}

.memory-art>div{display:flex;align-items:center;justify-content:center}.memory-art>small{position:absolute;bottom:9px;left:0;width:100%;font-size:8px;letter-spacing:1.5px;text-align:center;color:#91947e}.story-line{border-left-color:var(--speaker-color,#ccb47c)}.mini-bird.mint{background:#edf0d4 url('./assets/sun.png') center/cover;border-radius:50%;box-shadow:none}.mini-bird.mint:before,.mini-bird.mint:after{display:none}

@media(orientation:landscape) and (max-height:550px){.result-dialog{padding:14px 24px}.result-dialog .eyebrow{font-size:8px}.result-dialog .result-stars{font-size:28px;margin:4px 0}.result-dialog h2{font-size:21px;margin:6px 0}.result-dialog .profile-pill{font-size:10px;padding:5px 12px}.result-dialog .dialog-actions{margin-top:10px;gap:6px}.result-dialog .dialog-actions button{min-height:40px;padding:8px;font-size:12px}.result-dialog .story-result{padding:7px 10px;margin-top:9px}.result-dialog .memory-earned{margin:7px 0;font-size:10px}}
body.rotated-play .result-dialog .result-stars{font-size:27px;margin:3px 0}body.rotated-play .result-dialog .profile-pill{font-size:10px;padding:5px 12px}body.rotated-play .result-dialog .story-result{padding:7px 10px;margin-top:9px}body.rotated-play .result-dialog .story-result img{width:38px;height:38px}body.rotated-play .result-dialog .story-result p{font-size:11px}body.rotated-play .result-dialog .dialog-actions button{min-height:40px;padding:8px;font-size:12px}
@media(max-width:360px){.story-welcome h1{font-size:30px;letter-spacing:1px}.story-dialog{padding:20px}.story-cast{margin:12px 0 8px}.story-cast img{width:50px;height:50px}.story-cast b{font-size:15px}.story-cast small{font-size:10px}.story-panel h2{font-size:22px;margin:12px 0 10px}.story-panel .story-text{font-size:12px;line-height:1.8}.story-line{font-size:12px;padding:10px;line-height:1.75;margin-top:12px}.story-source{font-size:8px}.story-dialog .dialog-actions{margin-top:14px;gap:8px}.story-dialog .dialog-actions button{font-size:12px;min-height:44px;padding:10px}}

/* Approved portraits also appear in the playable cast and HUD. */
.mini-bird.peach,.mini-bird.moon{background:#fff4ec center/cover;border-radius:50%;box-shadow:none}.mini-bird.peach{background-image:url('./assets/man.png')}.mini-bird.moon{background-image:url('./assets/moon.png')}.mini-bird.peach:before,.mini-bird.peach:after,.mini-bird.moon:before,.mini-bird.moon:after{display:none}.flock-avatar{width:26px;height:26px;flex-shrink:0;object-fit:cover;border-radius:50%;border:1px solid #fff9ec}.flock-bird{align-items:center}.flock-bird .flock-avatar{margin-right:5px}body.compact-play .flock-bird{padding:5px 10px;display:inline-flex;align-items:center;gap:3px}body.compact-play .flock-avatar{width:27px;height:27px;margin:0}
/* Full-body companions wait at ground level; keep landscape camera controls above them. */
body.compact-play .wide-play .view-tools{top:calc(58px + var(--safe-top));bottom:auto;left:auto;right:calc(10px + var(--safe-right))}

/* The new journey is independently accessible without changing the original save. */
.expedition-entry{display:block;margin:12px 0;background:#e4eddb;border-color:#b1c8a8;color:#355840;font-weight:800}
.mechanic-status{margin:2px auto 4px;text-align:center;color:#596f60;font-size:12px;font-weight:750;letter-spacing:.04em}
.compact-play .mechanic-status{position:absolute;right:12px;top:66px;z-index:3;background:#fffaf0df;padding:5px 9px;border-radius:15px;pointer-events:none;font-size:11px}
.compact-play .wide-play .mechanic-status{top:60px;left:178px;right:auto;font-size:10px}
@media(max-width:440px){.screen-tools{gap:3px}.screen-tools .secondary{padding:7px 9px;min-height:38px}}
