:root{--bg: #1d1f2a;--bar: #1a1b24;--surface: #262835;--surface2: #33405f;--surface3: #3c4b6f;--line: rgba(120, 140, 190, .16);--text: #e8eaf2;--muted: #8b91a8;--dim: #4f556e;--accent: #e0a43a;--accent2: #c58a22;--grad: linear-gradient(180deg, #d9a93a 0%, #b9861f 100%);--on-accent: #2a1d02;--good: #3cb054;--bad: #e5484d;--warn: #ff9f5a;--radius: 12px;--status-h: 48px;--nav-h: 106px;--tile: 54px;--row-h: 64px;--safe-b: env(safe-area-inset-bottom, 0px);--fade: 29, 31, 42;--flow-bg: radial-gradient(120% 80% at 50% 30%, #2a3150 0%, #1d1f2a 70%);--tile-bg: rgba(51, 64, 95, .96);--tab: #e0a43a;color-scheme:dark}.app[data-tab=log]{--tab: #3cb054}.app[data-tab=town]{--tab: #e0a43a}.app[data-tab=treasury]{--tab: #2fb6b0}.app[data-tab=ledger]{--tab: #3b82f6}.app[data-tab=army]{--tab: #e85d4a}.app[data-tab=world]{--tab: #e8479a}.app[data-tab=spirits]{--tab: #39c08a}.app[data-tab=more]{--tab: #a0a6bd}:root[data-theme=dark]{--bg: #0e1120;--bar: #0b0e1a;--surface: #161a2c;--surface2: #1d2238;--surface3: #262c47;--line: rgba(255, 255, 255, .07);--text: #eef1fb;--muted: #8e97b8;--dim: #586083;--accent: #7b8cff;--accent2: #9a6bff;--grad: linear-gradient(135deg, #6f86ff 0%, #9a6bff 100%);--on-accent: #fff;--good: #3ecf8e;--bad: #ff6b81;--fade: 14, 17, 32;--flow-bg: radial-gradient(120% 80% at 50% 30%, #1a2040 0%, #0e1120 70%);--tile-bg: rgba(29, 34, 56, .92)}:root[data-theme=light]{--accent: #6f86ff;--grad: linear-gradient(135deg, #6f86ff 0%, #9a6bff 100%);--on-accent: #fff;--bg: #eef1f8;--bar: #ffffff;--surface: #ffffff;--surface2: #f1f3fa;--surface3: #e3e7f3;--line: rgba(20, 30, 70, .1);--text: #1a1f36;--muted: #69708f;--dim: #a3a9c2;--fade: 238, 241, 248;--flow-bg: radial-gradient(120% 80% at 50% 30%, #ffffff 0%, #e8ecf7 70%);--tile-bg: rgba(255, 255, 255, .95);color-scheme:light}:root[data-theme=light] body{background:#dfe3ee}:root[data-theme=light] .tile{box-shadow:0 4px 14px #141e461f}*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%}body{background:#07080f;color:var(--text);font:15px/1.4 system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-variant-numeric:tabular-nums;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;overscroll-behavior:none}button{font:inherit;color:inherit}h1,h2,h3{margin:.2em 0;letter-spacing:-.01em}#app{height:100%}.app{max-width:520px;height:100dvh;margin:0 auto;display:flex;flex-direction:column;background:var(--bg);position:relative;overflow:hidden}.screen{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 14px 18px;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}.screen.flush{padding:0;overflow:hidden;display:flex;flex-direction:column;scrollbar-gutter:auto}.statusbar{flex:none;height:var(--status-h);display:grid;grid-template-columns:1fr 38px 1.35fr 1.35fr 40px;align-items:center;gap:4px;padding:0 8px;background:var(--bar);font-weight:700;font-size:13px;border-bottom:1px solid var(--line)}.statusbar .stat{min-width:0;white-space:nowrap}.fleet-actions{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:6px;margin-top:12px}.fleet-actions .btn{min-width:0}.shipcard{margin-bottom:10px}.military-tabs{flex:none}.sea-battle{display:block;width:100%;height:auto;border-radius:8px;margin-top:12px}.bar.sea-ammo .bar-fill{background:#6aaeff}.stat{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;min-width:0}.stat .of{color:var(--muted);font-weight:600;font-size:13px}.stat.happybadge{justify-content:center;width:34px;height:22px;border-radius:7px;background:#2f9e48;color:#fff;font-size:13px;gap:3px}.stat.happybadge.zero{background:var(--surface2);color:var(--muted)}.stat.streak{justify-content:flex-end;color:#ff9f3a}.stat.off{visibility:hidden}.nav{flex:none;height:calc(var(--nav-h) + var(--safe-b));display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:1fr 1fr;background:var(--bar);padding:2px 4px var(--safe-b);border-top:1px solid var(--line)}.navbtn{position:relative;border:0;background:none;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer;color:var(--dim)}.navbtn .lbl{font-size:9.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.navbtn.on{color:var(--text)}.navbtn.on{color:var(--tab)}.navbtn.on:after{content:"";position:absolute;bottom:3px;width:22px;height:4px;border-radius:3px;background:var(--tab)}.navbtn .badge-dot{position:absolute;top:4px;left:calc(50% + 6px);min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:var(--bad);color:#fff;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center}.navbtn:disabled{opacity:.28;cursor:default}.glyph{display:inline-block;flex:none;background:currentColor;-webkit-mask:var(--g) center / contain no-repeat;mask:var(--g) center / contain no-repeat}.glyph.none{background:transparent}.icon{display:inline-flex;align-items:center;justify-content:center;flex:none}.icon img{width:100%;height:100%;object-fit:contain}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:14px;margin-bottom:10px}.panel.hl{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 0 22px #e0a43a47}.panel.locked{opacity:.5}.section-title{display:flex;justify-content:space-between;align-items:center;font-size:11.5px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:18px 2px 8px;font-weight:800}.row{display:flex;align-items:center;gap:8px}.row-between{display:flex;align-items:center;justify-content:space-between;gap:8px}.wrap{flex-wrap:wrap}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.small{font-size:13px}.tiny{font-size:11px}.pos{color:var(--good)}.neg{color:var(--bad)}.warn-text{color:var(--warn)}.mt{margin-top:8px}.one-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.btn{border:1px solid var(--line);border-radius:12px;height:42px;padding:0 18px;font-weight:700;cursor:pointer;white-space:nowrap;background:var(--surface2);color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:6px;transition:transform .06s,filter .15s,opacity .15s}.btn:hover:not(:disabled){filter:brightness(1.12)}.btn:active:not(:disabled){transform:scale(.98)}.btn:disabled{opacity:.4;cursor:default}.btn.primary{background:var(--grad);border-color:transparent;color:var(--on-accent);box-shadow:0 4px 14px #0000004d}.btn.primary:disabled{box-shadow:none}.btn.good{background:#2e8b3e;border-color:transparent;color:#fff}.btn.danger{background:#ff6b8124;border-color:#ff6b814d;color:var(--bad)}.btn.ghost{background:transparent}.btn.sq{width:42px;padding:0}.btn.slim{height:34px;padding:0 12px;font-size:13px;border-radius:10px}.btn.wide{width:100%}.btn.hidden{visibility:hidden}.tile{position:relative;flex:none;width:var(--tile);height:var(--tile);border-radius:14px;cursor:pointer;padding:0;border:1px solid var(--line);background:var(--tile-bg);backdrop-filter:blur(6px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--text);box-shadow:0 4px 14px #00000059}.tile.on{background:var(--grad);border-color:transparent;box-shadow:0 6px 18px #00000059}.tile.on .glyph{color:var(--on-accent)!important}.tile.on .n{color:var(--on-accent)}.tile.locked{opacity:.45}.tile .n{font-size:11.5px;font-weight:800;line-height:1;height:12px}.tile .lock{position:absolute;right:4px;bottom:4px;display:flex}.check{position:absolute;top:-5px;right:-5px;width:18px;height:18px;border-radius:50%;background:var(--good);display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px var(--bg)}.chips{display:inline-flex;flex-wrap:wrap;gap:4px 12px}.chip{display:inline-flex;align-items:center;gap:4px;font-size:14px;font-weight:700}.chip .have{color:var(--muted);font-weight:600}.chip.lack,.chip.lack .have{color:var(--bad)}.bar{height:8px;background:#ffffff0f;border-radius:99px;overflow:hidden;margin:6px 0 3px}.bar-fill{height:100%;background:var(--grad);border-radius:99px;transition:width .9s linear}.bar.good .bar-fill{background:var(--good)}.bar.full .bar-fill{background:linear-gradient(90deg,#ff9f6b,#ff6b81)}.bar.thin{height:4px;margin:3px 0 0}.badge{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:99px;font-size:11px;font-weight:800;white-space:nowrap}.badge.ok{background:#3ecf8e24;color:var(--good)}.badge.warn{background:#ff9f6b24;color:var(--warn)}.badge.blue{background:#7b8cff29;color:#aab6ff}.tabs{display:flex;gap:4px;margin:-4px 0 12px;border-bottom:1px solid var(--line);height:42px}.tabs button{flex:1;border:0;background:none;padding:0 4px;font-weight:800;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center;gap:6px}.tabs button.on{color:var(--tab)}.tabs button.on:after{content:"";position:absolute;left:12%;right:12%;bottom:-1px;height:4px;border-radius:3px;background:var(--tab)}.tabs .cnt{display:inline-flex;min-width:18px;height:18px;border-radius:99px;background:#1e9bf0;color:#fff;font-size:11px;align-items:center;justify-content:center;padding:0 5px}.tabs .cnt.off{visibility:hidden}.seg{display:flex;gap:6px;margin-top:8px}.seg-btn{flex:1;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);cursor:pointer;font-weight:700}.seg-btn.on{background:var(--grad);border-color:transparent;color:var(--on-accent)}.board{position:relative;display:flex;flex-direction:column;height:100%}.boardbar{flex:none;height:46px;display:flex;align-items:center;gap:8px;padding:0 12px;background:var(--bar);border-top:1px solid var(--line)}.boardbar .title{flex:1;min-width:0;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.boardbar .pop{flex:none;width:64px;display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:var(--muted)}.boardbar .zbtn{flex:none;width:32px;height:30px;border-radius:9px;border:1px solid var(--line);background:var(--surface2);color:var(--text);cursor:pointer;font-weight:800}.queue{flex:none;position:relative;width:82px;height:32px;border-radius:10px;background:var(--surface2);border:1px solid var(--line);display:flex;align-items:center;gap:6px;padding:0 8px;cursor:pointer;overflow:hidden;font-size:12.5px;font-weight:800}.queue .qn{color:var(--muted)}.queue>i{position:absolute;left:0;bottom:0;height:3px;background:var(--grad)}.qrow{display:flex;align-items:center;gap:10px;height:52px;border-bottom:1px solid var(--line)}.qrow:last-child{border-bottom:0}.field{flex:1;position:relative;min-height:0;overflow:hidden}.mapbox{position:absolute;inset:0;overflow:hidden;background:#172a1f;touch-action:none;cursor:grab;user-select:none}.mapbox:active{cursor:grabbing}.mapbox canvas{position:absolute;left:0;top:0;will-change:transform}.palette{position:absolute;left:0;right:0;bottom:0;padding:26px 6px 6px;background:linear-gradient(180deg,rgba(var(--fade),0),rgba(var(--fade),.78) 26%,rgba(var(--fade),.94));pointer-events:none}.prow{height:var(--row-h);display:flex;align-items:center;justify-content:flex-start;gap:7px;padding:0 8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;pointer-events:auto}.prow>:first-child{margin-left:auto}.prow>:last-child{margin-right:auto}.prow::-webkit-scrollbar{display:none}.prow.empty{pointer-events:none}.info{flex:none;height:200px;background:var(--surface);border-top:1px solid var(--line);padding:10px 14px;display:grid;grid-template-rows:30px 24px 63px 16px 46px;row-gap:2px;overflow:hidden}.info-head{display:flex;align-items:center;gap:8px;min-width:0}.info-head .name{font-weight:800;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.info-head .cnt{margin-left:auto;flex:none;font-weight:800;font-size:18px}.info-head .cnt .of{color:var(--muted);font-size:14px}.fx{display:flex;flex-direction:column;gap:1px;color:var(--muted);font-size:13.5px;overflow:hidden}.fx .line{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;height:21px}.fx b{color:var(--text);font-weight:700}.fx .chips{flex-wrap:nowrap}.reason{font-size:12.5px;color:var(--warn);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.info-actions{display:flex;gap:10px;align-items:center;min-width:0}.info-actions .cost{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;height:46px}.info-actions .cost .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.info-actions .cost .chips::-webkit-scrollbar{display:none}.info-actions .btn.build{flex:none;width:112px}.info-actions .chip{font-size:13.5px}.time{display:inline-flex;align-items:center;gap:4px;color:var(--muted);font-size:12.5px;white-space:nowrap}.flow{position:absolute;inset:0;background:var(--flow-bg)}.flow svg{position:absolute;inset:0;width:100%;height:100%}.flow .lbl{font:700 12px system-ui,sans-serif;fill:var(--text)}.flow .sub{font:600 11px system-ui,sans-serif;fill:var(--muted)}.flow .in{fill:var(--good)}.flow .out{fill:var(--bad)}.flow .link{fill:none;stroke-linecap:round;stroke-dasharray:6 8;animation:flowdash 1.2s linear infinite}@keyframes flowdash{to{stroke-dashoffset:-28}}.flow .node{fill:var(--surface2);stroke:var(--line)}.flow .empty{font:600 13px system-ui,sans-serif;fill:var(--dim)}.mcard{display:flex;gap:12px;align-items:center;cursor:pointer;height:96px;margin-bottom:10px;padding:12px 14px}.mcard.next{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 0 22px #e0a43a4d}.mcard.locked{opacity:.45;cursor:default}.micon{flex:none;width:54px;height:54px;border-radius:14px;background:var(--surface2);display:flex;align-items:center;justify-content:center}.mcard .grow>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.foes{display:flex;gap:4px 10px;margin:4px 0;font-size:13px;font-weight:700;overflow:hidden;height:18px}.foes span{display:inline-flex;align-items:center;gap:3px;flex:none}.expslot{height:150px;overflow:hidden}.vs{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;text-align:center;margin:10px 0}.vs .side{background:var(--surface2);border-radius:12px;padding:8px}.vs .x{color:var(--muted);font-weight:800}.vs .val{font-size:18px;font-weight:800}.battle{position:absolute;inset:0;z-index:60;display:flex;flex-direction:column;background:#2b5b27}.bhead{position:absolute;top:0;left:0;right:0;z-index:3;height:56px;display:flex;align-items:center;gap:8px;padding:0 16px;background:transparent;font-size:17px}.bhead b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bhead .stage{flex:none;width:150px;height:28px;border-radius:99px;background:#1416208c;border:1px solid rgba(255,255,255,.25);font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center}.bfield{flex:1;position:relative;overflow:hidden}.battle-bonuses{flex:none;margin:56px 12px 0;padding:8px;border-radius:8px;background:#0a12088c;font-size:12px}.oracle-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.oracle-topics .btn{min-height:48px;white-space:normal;flex-direction:column}.oracle-reply{min-height:7em;line-height:1.55;margin-bottom:0}.bfield canvas{position:absolute;inset:0;width:100%;height:100%}.bfoot{position:absolute;left:12px;right:12px;bottom:calc(12px + var(--safe-b));display:flex;gap:8px;align-items:center;z-index:3}.bfoot .btn{background:#302634eb;border-color:transparent;font-size:16px}.bresult{position:absolute;left:12px;right:12px;bottom:calc(66px + var(--safe-b));z-index:4;text-align:center;padding:18px 16px;border-radius:18px;background:#161a2cf5;border:1px solid rgba(123,140,255,.4);flex-direction:column;align-items:center;gap:8px}.bresult .chips{justify-content:center}.banner{position:relative;height:150px;border-radius:var(--radius);margin-bottom:10px;display:flex;flex-direction:column;justify-content:flex-end;padding:14px;background:linear-gradient(135deg,#283058,#171b2e);background-size:cover;background-position:center;overflow:hidden}.banner:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0e11201a,#0e1120e0)}.banner>*{position:relative}.banner-title{font-weight:800;font-size:19px}.chapter{position:relative;border-radius:var(--radius);margin-bottom:10px;padding:14px;background:linear-gradient(135deg,#283058,#171b2e);background-size:cover;background-position:center;overflow:hidden;border:1px solid var(--line);height:74px}.chapter.cur{height:262px;display:grid;grid-template-rows:16px 30px 62px 20px 14px 46px 20px;row-gap:2px;border-color:#7b8cff73}.chapter:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0e1120f2,#0e1120b8)}.chapter>*{position:relative;min-width:0}.chapter .kicker{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chapter .title{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:800;white-space:nowrap;overflow:hidden}.chapter .story{font-size:13.5px;line-height:1.5;color:#c4cae2;margin:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.chapter .req{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chapter .bar{margin:4px 0 0}.chapter.locked{opacity:.5;filter:grayscale(.6)}.chapter.done .title{color:var(--muted)}.mark{flex:none;width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;color:#fff;background:var(--accent)}.mark.ok,.mark.done{background:var(--good);color:#06281a}.glist .gi{display:flex;align-items:center;gap:10px;height:44px;padding:0 4px;border-bottom:1px solid var(--line);white-space:nowrap;overflow:hidden}.glist .gi .grow{overflow:hidden;text-overflow:ellipsis}.glist .gi.future{opacity:.4}.glist .gi.cur{color:#aab6ff;font-weight:700}.empire .glist .gi{height:auto;min-height:64px;padding:8px 4px;white-space:normal}.empire .glist .gi.future{opacity:.75}.empire .gi .bar{height:5px;margin-top:4px}.job{display:flex;gap:12px;align-items:center}.job .ji{flex:none;width:48px;height:48px;border-radius:14px;background:var(--surface2);display:flex;align-items:center;justify-content:center}.job .cnt{font-size:20px;font-weight:800}.job .cnt .of{color:var(--muted);font-size:14px;font-weight:600}.job .hint{height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stepper{display:grid;grid-template-columns:1fr 1fr 1fr 1.6fr;gap:6px;margin-top:10px}.stepper .btn{padding:0 6px}.roles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.roles .r{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px;text-align:center}.roles .r .v{font-size:17px;font-weight:800}.roles .r .k{font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:700}.ustats{display:flex;gap:12px;font-size:13px;color:var(--muted);margin:2px 0 4px;white-space:nowrap;overflow:hidden}.ustats b{color:var(--text)}.ustats .g{display:inline-flex;align-items:center;gap:3px}.upg{display:flex;align-items:center;gap:12px}.upg .grow .bar{margin-top:8px}.qlist .q{display:flex;align-items:center;gap:10px;height:44px}.qlist .q .grow .bar{margin:4px 0 0}.qslot{min-height:0}.splash{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:24px 16px;max-width:460px;margin:0 auto}.splash h1{font-size:30px;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}.splash .language-selector{width:140px;margin:0 0 12px;flex-shrink:0}.game-rules{width:100%;text-align:left}.game-rules ol{margin:8px 0 16px;padding-left:24px}.game-rules li+li{margin-top:12px}.game-rules p{margin:0 0 12px}.dev-login{display:flex;flex-direction:column;gap:8px;align-items:center;width:100%}.dev-login input{width:100%;max-width:340px;height:46px;padding:0 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:16px}.btn.big{height:50px;font-size:16px;width:100%;max-width:340px}.spinner{width:34px;height:34px;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.modal{position:absolute;inset:0;z-index:70;background:#05060cb8;display:flex;align-items:center;justify-content:center;padding:16px}.modal-card{max-width:380px;width:100%;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;padding:22px 16px}.modal-card .chips{justify-content:center}.confirm-dialog{margin:auto;width:min(380px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--text);box-shadow:0 24px 80px #0008;overflow:auto;text-align:center}.confirm-dialog::backdrop{background:#05060cc2}.confirm-dialog[open]{display:grid;justify-items:center;gap:14px}.confirm-dialog h2,.confirm-dialog p{margin:0}.confirm-dialog h2{font-size:21px}.confirm-dialog p{line-height:1.5;overflow-wrap:anywhere}.confirm-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:var(--surface3)}.confirm-actions{display:flex;width:100%;gap:10px;margin-top:6px}.confirm-actions .btn{flex:1;min-width:0}.confirm-actions .btn:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.sheet-bg{position:absolute;inset:0;z-index:65;background:#05060c99}.sheet{position:absolute;left:0;right:0;bottom:0;z-index:66;background:var(--surface);border-top:1px solid var(--line);border-radius:22px 22px 0 0;padding:16px 16px calc(16px + var(--safe-b));box-shadow:0 -12px 40px #00000080}.sheet .grip{width:40px;height:4px;border-radius:4px;background:var(--surface3);margin:-4px auto 12px}.toast{position:absolute;left:50%;bottom:calc(var(--nav-h) + 14px);transform:translate(-50%);z-index:90;width:max-content;max-width:calc(100% - 32px);padding:11px 16px;border-radius:12px;font-weight:700;font-size:14px;white-space:normal;overflow-wrap:anywhere;line-height:1.4;background:#3a1622;color:#ffd6dc;border:1px solid rgba(255,107,129,.4);box-shadow:0 10px 30px #00000080;animation:toast-in .18s ease-out}.toast--info{background:#13283a;color:#d7e8ff;border-color:#7b8cff66}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,8px)}}.fcenter{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:14px;pointer-events:none}.fnode{position:absolute;height:46px;display:flex;align-items:center;gap:8px;padding:0 10px;border-radius:12px;background:var(--surface2);border:1px solid var(--line);box-shadow:0 6px 18px #0000004d}.fnode.idle{opacity:.5}.fnode .fi{flex:none;display:flex}.fnode .ft{display:flex;flex-direction:column;min-width:0}.fnode .fl{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fnode .fr{font-size:11.5px;font-weight:700;white-space:nowrap;overflow:hidden}.info.tinfo{grid-template-rows:30px 22px 14px 22px;row-gap:6px;height:134px}.trate{display:flex;gap:6px;align-items:center;font-size:13.5px;font-weight:700;white-space:nowrap;overflow:hidden}.info.tinfo .bar{margin:3px 0 0}.info.tinfo .reason{color:var(--muted)}.jobcard .srcs{height:22px;margin-top:8px;display:flex;gap:10px;overflow:hidden}.jobcard .src{display:inline-flex;align-items:center;gap:3px;font-size:12px;font-weight:700;color:var(--muted);flex:none}.big2{font-size:18px}.unitcard{padding:12px 14px}.locked-units{display:flex;flex-wrap:wrap;gap:14px}.locked-units .lu{display:inline-flex;flex-direction:column;align-items:center;gap:2px;width:64px;text-align:center}.upg .ji,.unitcard .ji{flex:none;width:48px;height:48px;border-radius:14px;background:var(--surface2);display:flex;align-items:center;justify-content:center}.cost-btn{min-width:76px}a{color:var(--accent)}.hub{display:flex;flex-direction:column;height:100%}.hub-body{flex:1;min-height:0;overflow-y:auto;padding:12px 14px;scrollbar-gutter:stable}.segbar{flex:none;height:68px;display:flex;align-items:center;justify-content:center;gap:8px}.segbar .tile{width:58px;height:46px;border-radius:12px}.segbar .tile.on{background:#2453a8;box-shadow:0 4px 14px #00000059}.segbar .tile.on .glyph{color:#fff!important}.segbar .tile .dot{position:absolute;top:-4px;right:-4px;width:14px;height:10px;border-radius:6px;background:#1e9bf0}.townhead{position:absolute;top:8px;left:50%;transform:translate(-50%);z-index:4;height:40px;display:flex;align-items:center;gap:4px;padding:0 6px;border-radius:12px;background:#1a1b24eb;box-shadow:0 6px 18px #00000059;max-width:calc(100% - 16px)}.townhead .title{color:var(--accent);font-weight:800;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:138px;text-align:center;padding:0 4px}.townhead .sep{width:1px;height:22px;background:var(--line);margin:0 2px}.townhead .offers{display:flex;gap:5px;padding:0 4px;width:84px}.hbtn{flex:none;width:30px;height:30px;border-radius:8px;border:0;background:transparent;color:#c3c8db;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.hbtn.on{color:var(--accent)}.hbtn.info{color:#1e9bf0}.townqueue{position:absolute;top:56px;right:8px;z-index:4}.towninfo{position:absolute;top:56px;left:12px;right:12px;z-index:5;padding:12px 14px;border-radius:14px;background:#1c2c42f5;border:1px solid rgba(30,155,240,.45);box-shadow:0 10px 30px #00000073;display:flex;flex-direction:column;gap:6px;font-size:13.5px}.towninfo .tirow{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.stock{display:flex;align-items:center;gap:6px;font-size:15px;height:24px;white-space:nowrap;overflow:hidden}.stock b{font-size:16px}.honorhead{margin:-12px -14px 10px}.honorhead .banner{border-radius:0;margin:0;height:170px}.honorhead p{margin:12px 14px 0;font-size:15px}.pillbar{position:relative;width:168px;height:26px;border-radius:99px;background:#141620bf;border:1px solid rgba(255,255,255,.18);overflow:hidden;display:flex;align-items:center;padding:0 10px;font-size:13px;font-weight:700}.pillbar>i{position:absolute;left:0;top:0;bottom:0;background:#5a6ab0}.pillbar>span{position:relative}.hgroup{display:flex;align-items:center;gap:14px;height:76px;cursor:pointer}.hgroup b{font-size:17px}.hgroup .bar{height:12px;margin-top:8px;background:#ffffff0f;border:1px solid rgba(255,255,255,.12)}.hgroup .bar-fill{background:#5a6ab0}.uprow{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.uprow:last-of-type{border-bottom:0}.upgrade-name{display:block;white-space:normal;line-height:1.3;margin-bottom:6px}.upgrade-level{flex:none;white-space:nowrap;margin-left:6px}.monument-research{gap:8px}.monument-research .ji{width:30px;height:36px}.monument-research .cost-btn{min-width:76px;padding:0 7px;font-size:12px}.monument-research-hint{height:38px;font-size:10px;line-height:18px;overflow:hidden}.place-tabs{margin-top:0}.oracle-page h2{margin:0;font-size:17px}.avala-page summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.avala-offer-condition{min-height:42px}.oracle-page p{line-height:1.6}.oracle-status{height:26px;font-size:12px}.oracle-threshold{min-height:20px;margin-bottom:0}.oracle-gift-text{min-height:72px;font-size:13px}.oracle-forecast-effect{min-height:66px;line-height:22px;font-size:13px}.oracle-wide{width:100%;min-height:44px}.oracle-buy{display:grid;grid-template-columns:1fr 1fr;gap:8px}.oracle-buy .btn{min-width:0;min-height:44px;font-size:12px}.oracle-trade{margin-bottom:12px}.oracle-trade-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.oracle-trade-buttons .btn{min-width:0;min-height:44px;padding:0 5px;font-size:12px}.spirit-garden{background:radial-gradient(ellipse at 50% 96%,#24425188,transparent 60%)}.spirit-tabs{flex:none;margin:0}.spirit-page{flex:1;min-height:0}.superwell-garden{background:radial-gradient(ellipse at 50% 60%,#29485a66,transparent 80%)}.superwell-sources{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px;font-size:11px}.superwell-sources>span{display:flex;align-items:center;gap:5px}.superwell-sources b{margin-left:auto}.super-season{position:relative;display:flex;align-items:center;justify-content:space-between;height:32px;margin:0 6px 18px;padding:0 9px;border:1px solid #8191ac;border-radius:16px;background:linear-gradient(90deg,#d5e1ef,#4a3b69);color:#fff;font-size:10px;text-shadow:0 1px 3px #000}.super-season>span:first-child{color:#23364f;text-shadow:none}.super-season>i{position:absolute;top:-4px;bottom:-4px;width:3px;background:#e2be72;box-shadow:0 0 0 1px #534831;transform:translate(-50%)}.superwell-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px}.superwell-cell{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;min-height:44px;border:0;padding:0 3px 5px;background:none;color:var(--text);cursor:pointer}.superwell-orb{display:block;width:100%;max-width:110px}.superwell-cell.selected circle:first-child{stroke:#e2be72;stroke-width:3}.superwell-cell:focus-visible{outline:2px solid #e2be72;border-radius:12px}.superwell-cell b{font-size:12px}.superwell-purity{position:absolute;top:16px;font-size:11px;color:#e2edf4;text-shadow:0 1px 3px #182235}.superwell-phase{height:17px;font-size:10px;color:var(--muted);white-space:nowrap}.superwell-selection{height:156px;font-size:12px;line-height:24px}.superwell-tier{position:absolute;top:4px;right:3px;min-width:22px;padding:1px 4px;border:1px solid #71869f;border-radius:8px;background:#25354d;font-size:10px}.superwell-cell[data-tier="4"] .superwell-tier{color:#ffe0a2;border-color:#dbb25e}.superwell-tier-status{color:#d3c5a5}.superwell-selection .bar{margin:5px 0}.superwell-controls .big{width:100%;min-height:44px}.spirit-grid-head{display:flex;align-items:center;gap:6px;min-height:36px;font-size:15px}.spirit-help{display:grid;place-items:center;width:32px;height:36px;padding:0;border:0;background:none;color:#70b4ed;cursor:pointer}.spirit-mercury{display:inline-flex;align-items:center;gap:5px;margin-left:auto;font-size:13px}.spirit-grid-caption{display:flex;justify-content:space-between;gap:8px;margin:3px 0 18px;color:var(--muted);font-size:11px}.well-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px 3px;align-items:start}.well-cell{position:relative;display:block;aspect-ratio:.86;width:100%;min-height:44px;border:0;padding:0 0 8px;background:none;color:#b6bada;cursor:pointer;border-radius:50%}.well-flower{display:block;width:100%;height:auto;overflow:visible}.well-rim{fill:#63758e;stroke:#8c9bb2;stroke-width:2}.well-water{fill:#174e78;stroke:#6684a3;stroke-width:2}.well-fill-ring{fill:none;stroke:#c2d9f4;stroke-width:3;transition:stroke-dasharray 1s linear}.well-cell.charged .well-rim{stroke:#d6b84f;fill:#a68b48}.well-cell.charged .well-water{fill:#286e9c}.well-cell.selected .well-rim{stroke:#e9cd78;stroke-width:4}.well-cell:focus-visible{outline:2px solid #f4d77a;outline-offset:2px}.well-cell.ready .well-water,.well-cell.upgrade .well-water{fill:#d7dfed}.well-cell.ready .well-flower,.well-cell.upgrade .well-flower{filter:drop-shadow(0 0 3px #cfe7ff66)}.well-petal{transform-origin:0px 0px}.petal-outer{fill:#dbe5f6;stroke:#8ea5c6;stroke-width:.65}.petal-inner{fill:#edf1fa;stroke:#a8b9d0;stroke-width:.65}.well-vein{fill:none;stroke:#9db2d2;stroke-width:.75}.well-bud{fill:none;stroke:#6698bf;stroke-width:5;stroke-linecap:round}.well-seed-petal{fill:#eee7a9;stroke:#b7bd82;stroke-width:.65}.well-flower-heart{fill:#b58b3d;stroke:#725d30;stroke-width:1}.well-pollen{fill:#303c30}.well-cell.filling .well-flower-heart{fill:#8cb4ce;stroke:none}.well-rune{position:absolute;left:50%;bottom:0;width:25px;height:10px;transform:translate(-50%)}.well-up-arrow{position:absolute;right:0;top:0;color:#7fe9af;font-size:17px;font-weight:900;text-shadow:0 1px 4px #000}.well-cell.locked{cursor:default;opacity:.42}.well-locked-orb{display:grid;place-items:center;aspect-ratio:1;border:2px solid #44526b;border-radius:50%;background:#152137;color:#b78d64}.well-locked-mark{position:absolute;bottom:4px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:#6d7090}.spirit-controls{flex:none;padding:10px 14px 12px;background:var(--bar);border-top:1px solid var(--line)}.well-selection{min-height:78px;font-size:12px;line-height:24px}.unit-promote{display:flex;justify-content:space-between;width:100%;min-height:44px;margin-top:10px;padding:7px 10px;font-size:12px}.well-harvest{display:flex;align-items:center;gap:10px;height:32px;margin-bottom:6px;overflow-x:auto;white-space:nowrap;font-size:11px}.well-harvest>span{flex:none}.well-find{display:inline-flex;align-items:center;gap:3px;font-size:12px}.spirit-global-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.spirit-global-actions .btn{min-width:0;min-height:44px}.spirit-sanctum{position:relative;width:190px;height:140px;margin:12px auto 0;filter:drop-shadow(0 0 12px #71bbd933);opacity:.65}.spirit-sanctum i{position:absolute;bottom:22px;width:22px;height:70px;background:linear-gradient(90deg,#182d42,#527386,#182d42);clip-path:polygon(50% 0,65% 22%,80% 25%,75% 75%,100% 100%,0 100%,25% 75%,20% 25%,35% 22%)}.spirit-sanctum i:nth-child(1){left:47px;height:65px}.spirit-sanctum i:nth-child(2){left:84px;height:105px}.spirit-sanctum i:nth-child(3){left:121px;height:65px}.spirit-sanctum div{position:absolute;bottom:10px;width:190px;height:24px;border-radius:50%;border:2px solid #82c8d9;background:radial-gradient(ellipse,#6399a7 0,#1b344c 55%,#102134 70%);box-shadow:0 0 14px #6fc4e655}@media(max-width:359px){.well-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.well-petal,.well-bud,.well-fill-ring{transition:none}}.card-row{padding:12px 14px}.uprow .ji{flex:none;width:44px;height:44px;border-radius:12px;background:var(--surface2);display:flex;align-items:center;justify-content:center}.kv{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--line);font-size:14px}.kv:last-child{border-bottom:0}.kv b{text-align:right}.qcard{position:relative;border-radius:14px;margin-bottom:12px;padding:12px 16px;height:168px;background:#2a2c38 center / cover;overflow:hidden;display:grid;grid-template-rows:18px 32px 26px 1fr;cursor:pointer}.qcard:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#14161ed1,#14161e73)}.qcard>*{position:relative;min-width:0}.qcard .kicker{font-size:13px;color:#c3c8db}.qtitle{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:800}.qtext{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px;color:#c9cddc}.qact{display:flex;align-items:center}.qact .btn.good{height:44px;min-width:156px;font-size:16px}.qreq{font-size:13px;color:#c3c8db}.qfire{font-size:15px;font-weight:800;color:#ff9f3a;display:flex;align-items:center}.qcard.flame{height:156px}.qcard.done{height:74px;grid-template-rows:18px 32px;cursor:default}.qcard.locked{height:92px;grid-template-rows:18px 1fr;filter:grayscale(1) brightness(.55);cursor:default}.qline{display:flex;align-items:center;gap:0}.qline>i{flex:1;height:1px;background:#ffffff59}.qline>i.dia{flex:none;width:8px;height:8px;margin:0 22px;background:transparent;border:1px solid rgba(255,255,255,.5);transform:rotate(45deg)}.qline .glyph{margin:0 10px}.qmark{flex:none;width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:900;background:#f2c53d;color:#2a1d02}.qmark.done{background:#f2c53d}.locked-tab{opacity:.5;cursor:default!important}.story-full{font-size:14.5px;line-height:1.5;color:#c9cddc}.streakbig{display:inline-flex;align-items:center;gap:4px;color:#ff9f3a;font-weight:800;font-size:18px}.flamesteps{display:flex;justify-content:space-between;margin-top:6px}.flamesteps span{font-size:12px;font-weight:800;color:var(--dim)}.flamesteps span.on{color:#ff9f3a}.regionchip{position:absolute;top:12px;right:12px;padding:4px 10px;border-radius:8px;background:#141620cc;font-weight:800;font-size:15px}.groupchip{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:8px;background:#262835f2;font-weight:800;font-size:14px;margin:14px 0 8px}.wcard{display:flex;align-items:stretch;gap:0;height:92px;margin-bottom:10px;border-radius:12px;background:var(--surface);border:1px solid var(--line);overflow:hidden;cursor:pointer}.wcard.next{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 0 24px #e0a43a59}.wcard.locked{opacity:.45;cursor:default}.wcard>.glyph{align-self:center;margin:0 12px 0 4px}.wrank{flex:none;width:86px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#0000002e}.wrank .rk{font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.06em}.wrank .rk b{color:#3cb054}.wrank .st{font-size:19px;font-weight:800}.wrank .lb{font-size:11.5px;color:var(--muted)}.wmain{flex:1;min-width:0;padding:10px 6px 8px 14px;display:flex;flex-direction:column;gap:4px}.wtitle{display:flex;align-items:center;gap:8px;font-size:16px}.wtitle b{flex:1;min-width:0}.whonor{flex:none;display:inline-flex;align-items:center;gap:3px;font-size:12.5px;font-weight:700;color:var(--muted)}.wloot{display:flex;gap:10px;font-size:13.5px;font-weight:600;height:18px}.wloot span{display:inline-flex;align-items:center;gap:4px;flex:none}.wprog{position:relative;height:18px;border-radius:99px;background:#ffffff0d;border:1px solid rgba(255,255,255,.12);overflow:hidden;font-size:11.5px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-right:6px}.wprog>i{position:absolute;left:0;top:0;bottom:0;background:#4a5aa8}.wprog>span{position:relative}.segbar.world .tile.on{background:var(--grad)}.segbar.world .tile.on .glyph{color:var(--on-accent)!important}.stagebar{position:relative;overflow:hidden}.stagebar>i{position:absolute;left:0;top:0;bottom:0;background:#5a6ab0}.stagebar>span{position:relative}.policy{display:flex;align-items:center;gap:6px;height:22px}.policy .seg-btn{flex:none;height:22px;padding:0 10px;font-size:12px;border-radius:7px}.sheethead{display:flex;align-items:center;gap:10px;height:36px;margin:-4px 0 10px}.backbtn{flex:none;display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 10px 0 6px;border-radius:9px;border:1px solid var(--line);background:var(--surface2);color:var(--text);font-weight:700;cursor:pointer}.backbtn .glyph{transform:rotate(180deg)}.sheettitle{font-weight:800;font-size:15px;min-width:0}.chain{position:absolute;inset:0;overflow-y:auto;background:var(--flow-bg);scrollbar-width:none}.chain::-webkit-scrollbar{display:none}.chain-in{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px 10px}.crow-wrap{display:flex;flex-direction:column;align-items:center}.crow{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.carrow{height:18px;line-height:18px;color:var(--muted);font-weight:800}.cnode{display:flex;align-items:center;gap:7px;border-radius:11px;border:1px solid var(--line);background:var(--surface2)}.cnode.res{height:44px;padding:0 12px 0 10px;min-width:150px;cursor:pointer}.cnode.res.main{height:52px;border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 6px 18px #00000059}.cnode .ct{display:flex;flex-direction:column;min-width:0}.cnode .cl{font-size:12.5px;font-weight:700;max-width:150px}.cnode .cr{font-size:12.5px;font-weight:700;white-space:nowrap}.cnode.bld,.cnode.sink{height:32px;padding:0 10px;background:#0000002e;font-size:12px}.cnode.bld .cl,.cnode.sink .cl{max-width:160px}.cnode.idle{opacity:.5}.crow.sinks{margin-top:0}.tpal{flex:none;background:var(--bg);border-top:1px solid var(--line);padding:2px 0}.prow.two{height:calc(var(--row-h) * 2 - 8px);flex-wrap:wrap;align-content:center;justify-content:center;overflow:hidden;row-gap:8px}.prow.two>:first-child,.prow.two>:last-child{margin:0}
