/* Home has its own layout and motion; battle HUD and vertical upgrade cards keep their rules. */
body:not(.in-game)>.brand,body:not(.in-game) #app>.brand{display:none}
#menu.home-screen{padding:24px 36px 20px;display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain;background:linear-gradient(90deg,#f6faf7f5 0%,#f5f9f2e8 21%,#f4f8ef5c 37%,transparent 54%,#f3f9f320 77%,#f6faf788 100%);color:#263f49;scrollbar-width:thin}
.home-top{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:62px;padding-right:145px;flex-shrink:0;animation:home-top-in .4s both}
.home-profile{border:0;background:#ffffffbd;border-radius:40px;display:flex;align-items:center;gap:12px;padding:5px 18px 5px 5px;box-shadow:0 5px 20px #283e4710;text-align:left;min-width:230px}
.avatar-ring{border:2px solid #bfded7;box-shadow:inset 0 0 0 3px #fff;width:53px;height:53px;border-radius:50%;background:#eaf0db;display:grid;place-items:center;overflow:hidden}
.avatar-ring img{width:43px;height:46px;image-rendering:pixelated;object-fit:contain}
.home-profile b{display:block;font-size:15px;letter-spacing:.07em}.home-profile small{display:block;font-size:10px;color:#778d83;margin-top:2px}.home-profile>svg{width:15px;margin-left:10px;color:#76928c}
.home-resources{display:flex;gap:10px;align-items:center}.home-resources>button,.home-balance{height:42px;background:#fffffff0;box-shadow:0 3px 12px #2d574014;border:1px solid #fff;border-radius:24px;padding:7px 14px;display:flex;align-items:center;gap:8px;white-space:nowrap}
.home-balance img{width:22px;height:24px;object-fit:contain;image-rendering:pixelated}.home-resources b{font-size:17px;font-variant-numeric:tabular-nums;color:#326a86}.home-resources small,.home-resources span:not(.home-balance){font-size:10px;color:#7b918c}.home-resources svg{width:17px;color:#6f9087}
.home-layout{position:relative;display:grid;grid-template-columns:360px 1fr 250px;align-items:center;gap:20px;flex:1;min-height:590px;padding:26px 10px 18px}
.home-primary{grid-column:1;align-self:center}.home-heading{animation:home-in .6s .04s backwards}.home-kicker{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:.18em;font-weight:700;color:#638e88}.home-kicker i{width:5px;height:5px;border-radius:50%;background:#67a799}
.home-heading h1{font-size:62px;letter-spacing:-.04em;line-height:1.18;color:#244a54;margin:18px 0 0;animation:home-title-float 3.4s ease-in-out infinite;text-shadow:0 3px 25px #fff9}
.home-heading h1 small{font-size:22px;color:#53776e;line-height:1.55;letter-spacing:.05em;font-weight:500;margin-top:14px}.home-heading p{font-size:11px;color:#7c9387;margin:16px 0 26px;letter-spacing:.09em}
.home-play{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;gap:15px;width:100%;padding:18px 20px;border:1px solid #80b6cb;border-radius:18px;background:linear-gradient(120deg,#3e91b1,#2e6e94);box-shadow:0 5px 0 #22536d,0 14px 24px #325f8025;color:#fff;text-align:left;animation:home-in .5s .1s backwards;transition:transform .18s,filter .18s,box-shadow .18s}
.home-play:before{content:"";position:absolute;inset:-50% auto -50% -80%;width:40%;background:linear-gradient(90deg,transparent,#fff3,transparent);transform:skewX(-25deg);animation:home-sheen 4s 1s infinite;pointer-events:none}
.home-play:hover:not(:disabled){transform:translateY(-4px);filter:brightness(1.03);box-shadow:0 7px 0 #22536d,0 17px 30px #325f8030}.home-play:active:not(:disabled){transform:translateY(-1px) scale(.97);box-shadow:0 2px 0 #22536d}
.play-mark{width:40px;height:40px;background:#ffffff20;border:1px solid #ffffff25;border-radius:13px;display:grid;place-items:center}.play-mark svg{width:24px;height:24px;animation:play-leaf 2.2s ease-in-out infinite}.home-play b{display:block;font-size:23px;letter-spacing:.1em}.home-play small{display:block;font-size:10px;opacity:.8;margin-top:3px;letter-spacing:.03em}.play-arrow{margin-left:auto;flex-shrink:0}
.home-nav{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:22px}.home-nav-card{position:relative;display:flex;align-items:center;gap:10px;min-height:82px;min-width:0;padding:12px 11px;border-radius:14px;border:1px solid #fff;background:#fffffff0;box-shadow:0 4px 0 #cbdad77a,0 8px 16px #2e625210;text-align:left;animation:home-in .5s calc(.13s + var(--order)*.05s) backwards;transition:transform .18s,background .18s,box-shadow .18s,border-color .18s}
.home-nav-card:hover,.home-nav-card.is-active{border-color:#76aabd;background:#f7fdff;box-shadow:0 4px 0 #c0d9e2,0 8px 19px #2e62521a}.home-nav-card:active:not(:disabled){box-shadow:0 1px 0 #c0d9e2;transform:translateY(2px) scale(.98)}
.nav-art{width:34px;height:37px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:#eef5f2;color:#6e9388}.nav-art img{width:29px;height:32px;object-fit:contain;image-rendering:pixelated}.nav-art svg{width:23px;height:23px}.home-nav-card b{display:block;font-size:14px;font-weight:700}.home-nav-card small{display:block;font-size:9px;color:#7b9287;margin-top:5px;white-space:nowrap}.nav-badge{position:absolute;right:8px;top:-7px;border:2px solid #fff;border-radius:12px;min-width:21px;height:21px;display:grid;place-items:center;background:#5d91ac;color:#fff;font-size:10px;font-weight:700;font-style:normal;padding:0 4px}.reward-badge{background:#d28a50;animation:badge-pulse 1.2s ease-in-out infinite}
.home-keyhint{font-size:9px;color:#7c9488;margin:17px 0 0;text-align:center}.home-keyhint kbd{font-size:9px;background:#ffffffa1;margin:0 5px;border-color:#c9d9ce}
.home-notebook{grid-column:3;align-self:center;background:#fffffff0;border:1px solid #fff;border-radius:20px;box-shadow:0 8px 0 #577a5330,0 22px 60px #29483b20;overflow:hidden;animation:notebook-in .55s .25s backwards;transform:rotate(1deg)}
.notebook-heading{padding:19px 18px 14px;background:#edf4f1;border-bottom:1px dashed #c7d8cd;display:flex;align-items:center;justify-content:space-between;gap:7px;font-weight:700;font-size:12px;letter-spacing:.08em;color:#647f72}.notebook-heading svg{width:16px;height:16px;color:#b5a164}.notebook-body{padding:22px 18px 18px}.notebook-label{font-size:10px;color:#8a9b90;letter-spacing:.06em}.notebook-body h2{font-size:19px;line-height:1.5;margin:8px 0;color:#365d53}.notebook-body p{font-size:11px;line-height:1.8;color:#84998c;margin:0 0 15px;min-height:20px}
.home-progress{display:flex;align-items:center;gap:10px}.home-progress progress{flex:1;min-width:0;appearance:none;border:0;height:6px;border-radius:5px;overflow:hidden;background:#e8efea}.home-progress progress::-webkit-progress-bar{background:#e8efea}.home-progress progress::-webkit-progress-value{background:#7fb7a3;border-radius:5px;transition:width .5s}.home-progress b{font-size:10px;font-weight:500;color:#799889;font-variant-numeric:tabular-nums}
.home-link{display:flex;align-items:center;justify-content:space-between;width:100%;background:#eaf3f6;color:#39738b;border:0;padding:10px 13px;border-radius:9px;font-size:11px;font-weight:700;margin-top:17px}.home-link svg{width:15px;height:15px}.notebook-divider{border-top:1px dashed #d5dfd7;margin:23px 0 20px}.home-keepsake{display:flex;align-items:center;text-align:left;gap:9px;background:none;border:0;width:100%;padding:12px 0 5px}.home-keepsake>img{width:33px;height:36px;object-fit:contain;image-rendering:pixelated}.home-keepsake b{display:block;font-size:11px;color:#58766a}.home-keepsake small{display:block;font-size:9px;color:#92a095;margin-top:4px}.home-keepsake svg{width:13px;height:13px;margin-left:auto;color:#7a9687}.notebook-stats{display:flex;gap:20px;justify-content:center;margin-top:22px;padding-top:16px;border-top:1px solid #e7ece7;color:#95a296;font-size:9px}.notebook-stats b{font-size:17px;font-weight:600;color:#749482;margin-right:5px}
.pond-caption{position:absolute;left:54%;bottom:42px;transform:translateX(-50%);color:#315a4c;font-size:11px;letter-spacing:.12em;background:#f6fff1b0;padding:11px 19px;border:1px solid #ffffffe0;border-radius:30px;white-space:nowrap;text-align:center;pointer-events:none;animation:home-in .5s .45s backwards;box-shadow:0 5px 20px #22462c0a}.pond-caption small{display:block;font-size:9px;color:#6e8a76;margin-top:3px}.pond-caption span{display:inline-block;width:5px;height:5px;background:#80ad77;border-radius:50%;margin:0 4px 2px 0}
.home-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:26px;flex-shrink:0;font-size:10px;color:#6d8b7b;animation:home-in .4s .4s backwards}.home-footer>span:last-child{display:flex;gap:12px;align-items:center}.home-footer i{height:10px;width:1px;background:#99b5a2}.home-footer button{background:none;border:0;padding:2px 0;font-size:10px;color:inherit}.home-footer b{font:9px monospace;color:#96a99a}
.home-dialog{width:660px;background:#fbfdfb;padding:30px;border:1px solid #fff;box-shadow:0 25px 100px #0b303566;max-height:calc(100dvh - 32px);overflow:auto}.home-dialog .dialog-kicker{display:block;font-size:10px;letter-spacing:.13em;color:#89a095;margin-bottom:8px}.home-dialog h2{font-size:29px;margin:0;color:#325b65;letter-spacing:.03em}.home-dialog>.dialog-intro{font-size:12px;color:#82958c;margin:8px 0 22px}.home-dialog .close-modal.icon-button{position:absolute;right:18px;top:18px;width:32px;height:32px;background:#edf3ef;border:0}.home-dialog .close-modal svg{width:15px;height:15px}
#prepare-modal .weapon-cards{display:flex;gap:10px;margin-top:10px}#prepare-modal .weapon-card{flex:1;min-width:0;min-height:165px;background:#f0f5f1;border:2px solid transparent;backdrop-filter:none;box-shadow:none;transition:flex .4s cubic-bezier(.2,.8,.2,1),border-color .2s,background .2s,transform .18s;padding:14px 10px;border-radius:15px;text-align:center}#prepare-modal .weapon-card.selected{flex:1.45;border-color:#76a8b8;background:#fff;box-shadow:0 5px 18px #33758c16}#prepare-modal .weapon-art{height:75px}#prepare-modal .weapon-art img{width:90px;height:72px;transition:transform .4s var(--ease)}#prepare-modal .weapon-card.selected img{transform:translateY(-3px) rotate(-5deg) scale(1.1)}#prepare-modal .weapon-card small{display:block;font-size:10px;margin-top:4px}#prepare-modal .weapon-card b{font-size:15px;margin:5px 0}#prepare-modal .weapon-card .card-note{display:none}#prepare-modal .select-dot{width:10px;height:10px}
.weapon-detail{border-radius:12px;background:#edf4f5;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 17px;margin-top:12px;min-height:77px}.weapon-detail b{font-size:13px;color:#407083}.weapon-detail p{font-size:11px;color:#7a928d;margin:4px 0 0;line-height:1.7}.weapon-stats{display:flex;gap:16px;text-align:center;flex-shrink:0}.weapon-stats b{display:block;font-size:19px;font-weight:600;font-variant-numeric:tabular-nums}.weapon-stats small{display:block;font-size:9px;color:#829892}
.prepare-route{display:flex;align-items:center;flex-wrap:wrap;gap:8px 15px;margin-top:19px;font-size:12px}.prepare-route>span{color:#6a857c;font-weight:600}.prepare-route>div{display:flex;gap:6px;margin-left:auto}.prepare-route button{border:1px solid #dce8e0;border-radius:8px;background:#fff;padding:6px 13px;font-size:11px}.prepare-route button[aria-pressed=true]{background:#e3eff4;border-color:#aacbd8;color:#3e7993}.prepare-route button:disabled{cursor:not-allowed;opacity:.5}.prepare-route>small{flex-basis:100%;font-size:10px;text-align:right;color:#8b9f94;min-height:15px}
.prepare-keepsake{width:100%;display:flex;align-items:center;gap:10px;border:1px dashed #cbded2;border-radius:9px;background:#f4f9f3;padding:10px 13px;font-size:11px;color:#6b8a74;margin-top:10px}.prepare-keepsake>svg{width:16px;height:16px}.prepare-keepsake>svg:last-child{margin-left:auto}.prepare-controls{display:flex;justify-content:center;gap:16px;font-size:9px;color:#8aa093;margin-top:15px}.prepare-controls kbd{font-size:9px;border-color:#d5dfd5}.home-dialog #loading-status{text-align:center;font-size:10px;color:#7c9288;height:auto;min-height:15px;margin-top:13px}.home-dialog .start-button{background:#3e85a4;box-shadow:0 4px 0 #285970;margin-top:18px;padding:14px 20px}
.record-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.record-stats>div{padding:18px 10px;background:#eff5f2;border-radius:13px;text-align:center}.record-stats b{display:block;font-size:29px;font-weight:600;color:#427d91;font-variant-numeric:tabular-nums}.record-stats small{font-size:10px;color:#89a093}.record-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#6d8b7d;margin:22px 0 13px}.record-heading span{font-size:10px;color:#91a297}.record-weapons{display:flex;gap:10px}.record-weapons>div{flex:1;text-align:center;border:1px solid #e0e9e1;border-radius:12px;padding:12px 8px;background:#fff}.record-weapons img{height:52px;width:65px;object-fit:contain;image-rendering:pixelated;opacity:.55}.record-weapons .record-done{border-color:#b8d3c5;background:#f1f7f2}.record-weapons .record-done img{opacity:1}.record-weapons b{display:block;font-size:12px;margin-top:5px;color:#648776}.record-weapons small{display:block;font-size:9px;color:#97a69b;margin-top:3px}.record-summary{background:#eaf2f4;padding:15px;border-radius:12px;font-size:11px;color:#6b8a93;display:flex;justify-content:space-between;gap:8px;margin-top:20px}.record-summary b{font-weight:700;color:#3e7285}.records-footnote{font-size:10px!important;color:#91a297!important;text-align:center;margin:18px 0 0!important}
.settings-dialog{width:520px}.setting-row{display:flex;align-items:center;gap:15px;padding:21px 0;border-bottom:1px solid #e3ebe5}.setting-row>span{flex:1}.setting-row b{display:block;font-size:13px;color:#52756c}.setting-row small{display:block;font-size:10px;color:#8aa092;margin-top:5px;line-height:1.8}.toggle-pill{min-width:82px;flex-shrink:0;border:1px solid #d5e1da;background:#eef3ef;border-radius:9px;padding:9px 12px;font-size:11px;display:flex;align-items:center;justify-content:center;gap:6px}.toggle-pill[aria-pressed=true]{background:#dceef5;border-color:#a1c5d5;color:#39738c}.toggle-pill svg{width:14px;height:14px}
.reward-feedback{position:fixed;z-index:100;pointer-events:none}.reward-feedback b{position:absolute;white-space:nowrap;font-size:17px;color:#317c9c;text-shadow:0 2px 0 #fff,1px 0 #fff,-1px 0 #fff;animation:reward-rise 1s both}.reward-feedback i{position:absolute;width:5px;height:5px;background:#d9b86e;animation:reward-spark .65s both;border-radius:1px}.reward-feedback i:nth-child(2n){background:#69b9c3}.growth-wallet.bump{animation:wallet-bump .4s}.journal-goal.claimed-now button{animation:claim-stamp .35s}.growth-tile.upgraded-now{animation:wallet-bump .4s}.growth-body.settled .growth-tile,.growth-body.settled .journal-goal{animation:none}.growth-body.settled .upgraded-now{animation:wallet-bump .4s}.growth-failed{animation:home-shake .35s}
@keyframes home-in{from{opacity:0;transform:translateY(16px) skewX(-3deg) scale(.96)}to{opacity:1;transform:none}}
@keyframes home-top-in{from{opacity:0;transform:translateY(-24px)}to{opacity:1;transform:none}}
@keyframes notebook-in{0%{opacity:0;transform:translateX(60px) rotate(3deg) scale(.9)}70%{opacity:1;transform:translateX(-6px) rotate(1deg) scale(1.01)}100%{opacity:1;transform:rotate(1deg)}}
@keyframes home-title-float{50%{transform:translateY(-6px)}}
@keyframes play-leaf{30%{transform:translateY(-4px) rotate(-8deg)}65%{transform:rotate(8deg)}}
@keyframes home-sheen{0%,65%{left:-80%}90%,100%{left:150%}}
@keyframes badge-pulse{50%{transform:scale(1.15)}}
@keyframes wallet-bump{40%{transform:scale(1.18)}}
@keyframes claim-stamp{from{opacity:0;transform:scale(1.3) rotate(-8deg)}to{opacity:1;transform:none}}
@keyframes reward-rise{0%{opacity:0;transform:translate(-50%,10px) scale(.5)}15%{opacity:1;transform:translate(-50%,-5px) scale(1.2)}35%{opacity:1;transform:translate(-50%,-20px) scale(1)}100%{opacity:0;transform:translate(-50%,-70px)}}
@keyframes reward-spark{from{opacity:1;transform:translate(0,0) scale(1)}to{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--turn)) scale(.2)}}
@keyframes home-shake{25%,75%{transform:translateX(-4px)}50%{transform:translateX(4px)}}
@media(min-width:861px) and (max-height:720px){.home-layout{min-height:450px;padding-top:16px;padding-bottom:14px}.home-heading h1{font-size:49px;margin-top:12px}.home-heading h1 small{font-size:17px;line-height:1.45;margin-top:8px}.home-heading p{margin:10px 0 15px}.home-play{padding:12px 18px}.home-play b{font-size:21px}.home-nav{margin-top:15px;gap:9px}.home-nav-card{min-height:66px;padding:9px 10px}.home-keyhint{margin-top:12px}.home-notebook{transform:none}.notebook-body{padding:17px 17px 14px}.notebook-divider{margin:17px 0}.notebook-stats{margin-top:15px;padding-top:12px}.pond-caption{bottom:19px}.home-dialog{padding:24px}.home-dialog>.dialog-intro{margin-bottom:14px}#prepare-modal .weapon-card{min-height:135px;padding:10px}#prepare-modal .weapon-art{height:56px}#prepare-modal .weapon-art img{height:53px}.weapon-detail{min-height:63px;padding:9px 14px}.prepare-route{margin-top:13px}.home-dialog .start-button{margin-top:12px}.prepare-controls{margin-top:10px}}
@media(max-width:1080px) and (min-width:861px){#menu.home-screen{padding:18px 25px 14px}.home-layout{grid-template-columns:320px 1fr 225px;gap:10px;padding-left:0;padding-right:0}.home-heading h1{font-size:55px}.home-nav-card{gap:7px;padding:10px 8px}.home-nav-card b{font-size:13px}.home-nav-card small{font-size:8px}.home-top{padding-right:137px}.home-profile{min-width:215px}.home-resources>button{display:none}}
@media(max-width:860px){#menu.home-screen{padding:18px 22px;background:linear-gradient(90deg,#f6faf7ed, #f6faf776 75%),linear-gradient(0deg,#f5f9f3,transparent 70%);pointer-events:auto}.home-top{padding-right:0;min-height:62px;padding-top:40px;gap:10px;align-items:flex-end}.home-profile{min-width:0;padding-right:12px;gap:8px}.home-profile>svg{display:none}.home-profile b{font-size:13px}.home-profile small{font-size:9px}.avatar-ring{width:45px;height:45px}.avatar-ring img{width:37px;height:39px}.home-resources{gap:5px}.home-resources>button{display:none}.home-resources .home-balance{padding:6px 10px;gap:5px;height:37px}.home-balance b{font-size:15px}.home-balance small{font-size:9px}.home-balance img{width:18px;height:20px}.home-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;min-height:0;padding:30px 0 25px;max-width:520px;width:100%;margin:0 auto}.home-primary{grid-column:1}.home-heading h1{font-size:53px;margin-top:14px}.home-heading h1 small{font-size:19px;margin-top:10px}.home-heading p{margin:13px 0 21px}.home-nav-card{min-height:80px}.home-notebook{grid-column:1;transform:none}.notebook-body{padding:20px}.notebook-heading{padding:15px 20px}.notebook-stats{justify-content:flex-start}.pond-caption{display:none}.home-footer{flex-wrap:wrap;gap:10px;font-size:9px}.home-footer>span:last-child{font-size:9px;gap:8px}.home-footer button{font-size:9px}.home-keyhint{display:none}.home-dialog{width:min(660px,100%);padding:25px 20px;max-height:calc(100dvh - 24px)}.home-dialog h2{font-size:25px}.home-dialog .weapon-cards{gap:7px}#prepare-modal .weapon-card{padding:12px 5px;min-height:145px}#prepare-modal .weapon-card b{font-size:13px}#prepare-modal .weapon-card small{font-size:9px}#prepare-modal .weapon-art img{height:56px;width:65px}#prepare-modal .weapon-art{height:61px}.weapon-detail{align-items:flex-start;padding:12px;gap:10px}.weapon-detail p{font-size:10px}.weapon-stats{gap:9px}.weapon-stats b{font-size:17px}.prepare-controls{gap:8px;font-size:8px;flex-wrap:wrap}.prepare-controls kbd{font-size:8px}.record-summary{flex-wrap:wrap;gap:9px}.record-stats{gap:7px}.record-stats b{font-size:25px}.record-weapons{gap:7px}.setting-row{gap:10px}.toggle-pill{min-width:74px;padding:8px}.home-top~.home-layout .home-heading{max-width:90%}}
.home-footer>span:last-child{padding:4px 9px;background:#ffffffc7;border-radius:20px;color:#537468}
#fullscreen-row[hidden]{display:none}
@media(min-width:861px) and (max-height:620px){.home-heading h1{font-size:46px}.home-heading h1 small{font-size:16px}.home-heading p{margin:9px 0 13px}.home-keyhint{display:none}.home-nav-card{min-height:62px}.home-layout{min-height:425px}}
@media(max-width:860px){.home-layout{flex:none}.home-notebook{align-self:stretch}.home-footer{min-height:50px}.home-footer>span:last-child{font-size:9px}}
.reduce-motion *, .reduce-motion *:before,.reduce-motion *:after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Phones use a compact landscape layout, never the tall desktop stack. */
.rotate-guide{position:fixed;inset:0;z-index:120;background:radial-gradient(ellipse at 50% 15%,#e2f1e8,transparent 55%),#f7fbf9;display:grid;place-items:center;padding:28px;color:#315761;animation:home-in .35s both}
.rotate-card{text-align:center;max-width:330px}.rotate-card>img{width:87px;height:98px;object-fit:contain;image-rendering:pixelated;margin-bottom:25px;filter:drop-shadow(0 9px 3px #567e4d13)}.rotate-device{display:block;margin:0 auto 26px;width:90px;height:90px;stroke:#78a5ab;stroke-width:2;animation:rotate-hint 3s ease-in-out infinite}.rotate-card>span{font-size:10px;color:#89a39a;letter-spacing:.13em}.rotate-card h2{font-size:25px;margin:12px 0;color:#335e6b}.rotate-card p{font-size:12px;line-height:1.9;color:#88a096;margin:14px 0 27px}.rotate-card button{display:flex;align-items:center;gap:18px;justify-content:center;background:#438ba8;border:0;border-radius:12px;padding:13px 23px;color:#fff;box-shadow:0 4px 0 #2f657c;margin:auto;font-size:13px}.rotate-card small{display:block;font-size:10px;line-height:1.8;color:#93aa9c;margin-top:24px}.rotate-card button svg{width:16px;height:16px}
@keyframes rotate-hint{0%,20%,100%{transform:rotate(0)}50%,75%{transform:rotate(-12deg)}}
@media(orientation:landscape) and (max-height:500px){
  #menu.home-screen{padding:10px 18px 8px;background:linear-gradient(90deg,#f6faf7f5,#f4f8efb3 29%,transparent 57%,#f6faf75c)}
  .home-top{padding:0 125px 0 0;min-height:43px;align-items:center;gap:12px}.home-profile{padding:3px 11px 3px 3px;gap:8px;min-width:180px}.avatar-ring{width:36px;height:36px}.avatar-ring img{width:29px;height:33px}.home-profile b{font-size:12px}.home-profile small{font-size:8px}.home-profile>svg{display:none}.home-resources>button{display:none}.home-resources .home-balance{height:32px;padding:5px 11px}.home-balance b{font-size:14px}.home-balance small{font-size:8px}.home-balance img{width:17px;height:18px}
  .home-layout{display:grid;grid-template-columns:minmax(235px,.9fr) minmax(70px,1fr) 210px;align-items:center;flex:1;min-height:0;max-width:none;width:100%;padding:8px 0 5px;gap:14px;margin:0}
  .home-primary{grid-column:1;align-self:center}.home-top~.home-layout .home-heading{max-width:none}.home-kicker{font-size:7px;letter-spacing:.12em}.home-heading h1{font-size:38px;margin-top:7px;line-height:1.12}.home-heading h1 small{font-size:11px;line-height:1.5;margin-top:6px;letter-spacing:.03em}.home-heading h1 small br{display:none}.home-heading>p{display:none}.home-play{margin-top:15px;padding:10px 13px;gap:10px;border-radius:13px}.home-play b{font-size:18px}.home-play small{font-size:8px;margin-top:3px}.play-mark{width:30px;height:30px;border-radius:9px}.play-mark svg{width:19px;height:19px}.play-arrow{width:16px;height:16px}
  .home-nav{gap:8px;margin-top:14px}.home-nav-card{min-height:50px;padding:8px;gap:7px;border-radius:10px}.home-nav-card b{font-size:11px}.home-nav-card small{font-size:8px;margin-top:2px}.nav-art{width:26px;height:29px;border-radius:7px}.nav-art img{width:23px;height:25px}.nav-art svg{width:19px;height:19px}.nav-badge{width:17px;min-width:17px;height:17px;font-size:8px;top:-5px;right:6px}.home-keyhint{display:none}
  .home-notebook{grid-column:3;align-self:center;transform:none;border-radius:14px}.notebook-heading{padding:10px 13px;font-size:10px}.notebook-heading svg{height:13px}.notebook-body{padding:12px 13px}.notebook-label{font-size:8px}.notebook-body h2{font-size:16px;margin:5px 0;line-height:1.4}.notebook-body p{font-size:9px;margin:0 0 10px;min-height:16px}.home-progress{gap:7px}.home-progress b{font-size:8px}.home-progress progress{height:4px}.home-link{padding:7px 9px;font-size:9px;border-radius:7px;margin-top:10px}.notebook-divider{margin:12px 0 10px}.home-keepsake{gap:6px;padding:7px 0 1px}.home-keepsake>img{width:25px;height:28px}.home-keepsake b{font-size:9px}.home-keepsake small{font-size:8px;margin-top:2px;line-height:1.4}.notebook-stats{margin-top:11px;padding-top:9px;justify-content:center;font-size:8px;gap:20px}.notebook-stats b{font-size:13px}
  .home-footer{min-height:20px;font-size:8px;flex-wrap:nowrap;gap:10px}.home-footer>span:last-child{font-size:8px;padding:2px 6px;gap:7px}.home-footer button{font-size:8px}.home-footer b{font-size:8px}.home-footer i{height:7px}.pond-caption{display:block;left:56%;bottom:13px;font-size:8px;padding:6px 10px}.pond-caption small{font-size:7px}.corner-controls{top:14px;right:16px;gap:5px}.icon-button{width:30px;height:30px;padding:6px}.icon-button svg{width:16px;height:16px}
  .modal-layer{padding:8px 14px}
  #prepare-modal{width:min(820px,100%);max-height:calc(100dvh - 16px);padding:16px 19px;display:grid;grid-template-columns:minmax(275px,1.35fr) minmax(200px,1fr);grid-template-areas:"kicker kicker" "title title" "weapons route" "weapons keepsake" "details start" "controls status";gap:6px 18px}
  #prepare-modal>.dialog-kicker{grid-area:kicker;font-size:8px;margin:0}#prepare-modal>h2{grid-area:title;font-size:23px;margin:0 0 6px}#prepare-modal>.dialog-intro{display:none}#prepare-modal .close-modal{top:11px;right:12px}
  #prepare-modal .weapon-cards{grid-area:weapons;gap:6px;margin:0}#prepare-modal .weapon-card{min-height:123px;padding:9px 5px}#prepare-modal .weapon-art{height:53px}#prepare-modal .weapon-art img{height:51px;width:61px}#prepare-modal .weapon-card b{font-size:12px;margin:4px 0}#prepare-modal .weapon-card small{font-size:8px}
  #prepare-modal .weapon-detail{grid-area:details;min-height:60px;margin:0;padding:8px 11px;gap:8px}#prepare-modal .weapon-detail b{font-size:11px}#prepare-modal .weapon-detail p{font-size:9px;margin-top:2px;line-height:1.5}#prepare-modal .weapon-stats{gap:10px}#prepare-modal .weapon-stats b{font-size:16px}#prepare-modal .weapon-stats small{font-size:8px}
  #prepare-modal .prepare-route{grid-area:route;align-self:start;margin:0;display:block;font-size:10px}#prepare-modal .prepare-route>div{margin:5px 0}#prepare-modal .prepare-route button{font-size:9px;padding:6px 10px}#prepare-modal .prepare-route small{display:block;text-align:left;min-height:14px;font-size:8px;line-height:1.6}
  #prepare-modal .prepare-keepsake{grid-area:keepsake;align-self:center;margin:0;padding:8px;font-size:9px;gap:6px}#prepare-modal .prepare-keepsake svg{height:13px;width:13px}#prepare-modal #start{grid-area:start;align-self:center;margin:0;padding:13px 14px;font-size:12px}#prepare-modal .prepare-controls{grid-area:controls;justify-content:center;gap:7px;margin:5px 0 0;font-size:7px}#prepare-modal .prepare-controls kbd{font-size:7px}#prepare-modal #loading-status{grid-area:status;margin:5px 0 0;font-size:8px;line-height:1.6}
  #growth-modal{max-height:calc(100dvh - 16px)}.growth-head{padding:10px 18px;gap:12px}.growth-naiwa{width:44px;height:46px}.growth-eyebrow{font-size:8px}#growth-modal h2{font-size:19px;margin:2px 0}.growth-head p{display:none}.growth-wallet b{font-size:21px}.growth-wallet img{width:24px;height:24px}.growth-wallet{min-width:88px}.growth-tabs{padding:6px 15px}.growth-tabs button{font-size:11px;padding:7px 12px}.growth-footer{padding:9px 16px}.growth-footer>span{font-size:9px}.growth-footer button{font-size:10px;padding:7px 12px}.growth-body{padding:15px 18px}.growth-intro{margin-bottom:13px}.workshop-grid,.collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.growth-tile{padding:12px}.growth-tile h3{font-size:13px}.growth-tile p{font-size:10px}.journal-list{grid-template-columns:repeat(2,minmax(0,1fr))}.journal-goal{padding:12px;gap:8px}.goal-body h3{font-size:11px}.goal-body p{font-size:9px}.journal-goal button{width:62px;font-size:9px}.tile-heading{flex-direction:row;gap:9px}.growth-art{width:35px;height:35px}.growth-art img{width:26px;height:26px}
  .player-panel{left:12px;top:12px;min-width:190px;padding:8px;gap:8px}.player-panel img{width:37px;height:43px}.player-status{width:133px}.in-game .run-clock{left:50%;right:auto;top:10px;transform:translateX(-50%);padding:4px 17px}.run-clock>b{font-size:20px}.run-clock>span{display:none}.growth-hud{left:50%;top:70px;transform:translateX(-50%);font-size:8px;padding:3px 8px}.quest-panel{left:12px;top:103px;min-width:162px;padding:10px}.quest-panel h2{font-size:11px}.quest-panel p{font-size:8px}.quest-panel .eyebrow{font-size:8px}.minimap-wrap{right:12px;top:55px;width:88px;border-width:3px}.minimap-wrap canvas{width:82px;height:82px}.minimap-wrap>div{display:none}.boss-health{top:95px;width:220px}.bottom-hud{left:12px;right:12px;bottom:12px}.weapon-badge{display:none}.action-bar{position:static;transform:none;margin-left:auto;gap:8px}.action-button{min-width:89px;padding:8px}.control-hint{display:none}.direction{bottom:79px;right:12px}.build-pips{bottom:78px;left:12px;max-width:210px}
}
@media(orientation:landscape) and (max-height:500px) and (max-width:750px){.home-layout{grid-template-columns:225px minmax(50px,1fr) 180px;gap:10px}.home-heading h1{font-size:35px}.home-nav-card{gap:5px;padding:7px 6px}.home-nav-card b{font-size:10px}.home-nav-card small{font-size:7px}.home-footer>span:first-child{max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-notebook{border-radius:12px}.notebook-body{padding:10px 11px}.notebook-body h2{font-size:14px}.home-keepsake small{font-size:7px}.pond-caption{display:none}.journal-list{grid-template-columns:1fr}.home-resources .home-balance{padding:4px 8px}.home-top{padding-right:115px}.home-profile{min-width:170px}#prepare-modal{padding:13px 14px;gap:5px 13px;grid-template-columns:minmax(260px,1.3fr) minmax(185px,1fr)}#prepare-modal .weapon-stats{gap:6px}#prepare-modal .weapon-detail{padding:8px}.workshop-grid,.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(orientation:landscape) and (max-height:345px){.home-layout{min-height:280px;flex:none}.home-dialog{max-height:calc(100dvh - 12px)}}
