@import "https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap";:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f4f8f8;--bg-deep:#e9f3f2;--surface:#fff;--surface-2:#f1f6f6;--surface-3:#e7f0f0;--ink:#0a1f2a;--muted:#475569;--muted-soft:#5b6b7b;--line:#d6e2e5;--line-strong:#b9cdd2;--teal:#0f766e;--teal-strong:#0d9488;--teal-soft:#ccfbf1;--amber:#b45309;--amber-soft:#fef3c7;--violet:#5b21b6;--violet-soft:#ede9fe;--green:#166534;--green-soft:#dcfce7;--red:#b91c1c;--red-soft:#fee2e2;--cyan:#0e7490;--cyan-soft:#cffafe;--shadow:0 18px 45px -32px #0a1f2a73;--shadow-soft:0 10px 24px -20px #0a1f2a59;--radius:20px;--radius-sm:14px;--font-body:"Space Grotesk", system-ui, -apple-system, sans-serif;--font-mono:"IBM Plex Mono", ui-monospace, SFMono-Regular, monospace}*{box-sizing:border-box}html{scroll-behavior:smooth}body{min-height:100vh;font-family:var(--font-body);color:var(--ink);background:radial-gradient(circle at 12% 0%, #0d948824, transparent 34%), radial-gradient(circle at 88% 6%, #b4530914, transparent 28%), linear-gradient(180deg, #f7fbfb 0%, var(--bg) 45%, #fbfdfd 100%);margin:0;line-height:1.5}body.modal-open{overflow:hidden}#root{min-height:100vh}h1,h2,h3,p{margin:0}h1{letter-spacing:-.035em;font-size:clamp(30px,4vw,44px);line-height:1.05}h2{letter-spacing:-.02em;font-size:clamp(20px,2vw,24px);line-height:1.15}h3{letter-spacing:-.01em;font-size:15px;line-height:1.25}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,a:focus-visible{outline-offset:2px;outline:3px solid #0d948873}.icon{flex:none}.skip-link{z-index:100;background:var(--ink);color:#fff;border-radius:10px;padding:10px 14px;font-weight:600;text-decoration:none;transition:top .15s;position:fixed;top:-60px;left:16px}.skip-link:focus{top:12px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app{flex-direction:column;gap:18px;width:min(1400px,100%);min-width:0;margin:0 auto;padding:28px 24px 56px;display:flex;overflow-x:clip}.muted{color:var(--muted);font-size:13px}.muted.small,.small{font-size:12px}.strong{font-weight:600}.negative{color:var(--red)!important}.align-right{text-align:right}.eyebrow{text-transform:uppercase;letter-spacing:.24em;color:var(--teal);margin-bottom:6px;font-size:11px;font-weight:700}.section-kicker{color:var(--teal);letter-spacing:.18em;text-transform:uppercase;align-items:center;gap:7px;margin-bottom:6px;font-size:11px;font-weight:700;display:flex}.section-kicker .icon{stroke-width:2px}.section-label{letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin:16px 0 8px;font-size:11px;font-weight:700}.topbar{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:20px;padding:4px 2px;display:flex}.brand{max-width:640px}.subtitle{color:var(--muted);max-width:58ch;margin-top:10px;font-size:14px}.topbar-actions{align-items:center;gap:12px;padding-top:4px;display:flex}.local-status{border:1px solid var(--line);background:#ffffffb8;border-radius:999px;align-items:center;gap:10px;padding:9px 12px;display:flex}.status-dot{background:var(--teal-strong);border-radius:50%;width:9px;height:9px;box-shadow:0 0 0 4px #0d94881f}.status-dot.danger{background:var(--red);box-shadow:0 0 0 4px #b91c1c1f}.local-status .pill{margin-bottom:2px}.local-status .muted{line-height:1.2}.topbar-buttons{gap:6px;display:flex}.btn{border:1px solid #0000;border-radius:12px;justify-content:center;align-items:center;gap:7px;min-height:40px;padding:9px 14px;font-size:13px;font-weight:600;line-height:1.2;text-decoration:none;transition:transform .15s,background .15s,border-color .15s,color .15s;display:inline-flex}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn:active:not(:disabled){transform:translateY(0)}.btn.primary{background:var(--ink);color:#fff}.btn.primary:hover:not(:disabled){background:#123241}.btn.accent{background:var(--teal);color:#fff}.btn.accent:hover:not(:disabled){background:var(--teal-strong)}.btn.ghost{border-color:var(--line);color:var(--ink);background:#ffffffb8}.btn.ghost:hover:not(:disabled){border-color:var(--teal-strong);color:var(--teal)}.btn.danger{background:var(--red);color:#fff}.btn.danger:hover:not(:disabled){background:#991b1b}.btn.disabled,.btn:disabled{background:var(--surface-3);color:var(--muted-soft);border-color:#0000;transform:none}.btn.icon{width:40px;min-width:40px;padding:0}.btn small{font-weight:500}.chip-row{flex-wrap:wrap;gap:6px;display:flex}.chip{border:1px solid var(--line);min-width:44px;min-height:36px;color:var(--muted);background:#fff;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:700;transition:all .15s}.chip:hover{border-color:var(--teal-strong);color:var(--teal)}.chip.active{background:var(--ink);border-color:var(--ink);color:#fff}.pill{white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:4px 9px;font-size:11px;font-weight:700;line-height:1.2;display:inline-flex}.pill.subtle{background:var(--surface-3);color:var(--muted)}.pill.accent{background:var(--teal-soft);color:#115e59}.pill.warn{background:var(--amber-soft);color:#92400e}.pill .icon{width:11px;height:11px}.hud{z-index:40;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#ffffffed;border:1px solid #b9cdd2cc;border-radius:18px;align-items:stretch;gap:12px;min-width:0;max-width:100%;padding:10px;display:flex;position:sticky;top:10px;box-shadow:0 16px 38px -30px #0a1f2a99}.hud-resources{scrollbar-width:thin;flex:auto;gap:8px;min-width:0;max-width:100%;padding-bottom:1px;display:flex;overflow-x:auto}.resource-tile{--tile:var(--cyan);--tile-soft:var(--cyan-soft);border:1px solid var(--line);background:linear-gradient(180deg, #fff, var(--surface-2));border-radius:13px;flex:1 1 0;min-width:118px;padding:8px 10px;position:relative;overflow:hidden}.resource-tile:before{content:"";background:var(--tile);width:4px;position:absolute;inset:0 auto 0 0}.resource-tile.data{--tile:var(--cyan);--tile-soft:var(--cyan-soft)}.resource-tile.insights{--tile:#7c3aed;--tile-soft:var(--violet-soft)}.resource-tile.wins{--tile:var(--amber);--tile-soft:var(--amber-soft)}.resource-tile.fans{--tile:var(--green);--tile-soft:var(--green-soft)}.resource-tile.titles{--tile:var(--red);--tile-soft:var(--red-soft)}.resource-label{color:var(--muted);letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;align-items:center;gap:5px;font-size:10px;font-weight:700;display:flex}.resource-label .icon{color:var(--tile)}.resource-value{font-family:var(--font-mono);letter-spacing:-.04em;font-variant-numeric:tabular-nums;white-space:nowrap;margin-top:2px;font-size:18px;font-weight:500}.resource-meta{color:var(--muted);white-space:nowrap;font-size:11px}.hud-actions{flex:none;align-items:stretch;gap:8px;display:flex}.click-button{border-radius:14px;flex-direction:column;justify-content:center;align-items:flex-start;gap:1px;min-width:190px;min-height:64px;padding:9px 16px}.click-button-label{letter-spacing:.03em;opacity:.85;align-items:center;gap:6px;font-size:12px;font-weight:700;display:flex}.click-button-value{font-family:var(--font-mono);letter-spacing:-.04em;font-variant-numeric:tabular-nums;font-size:20px;font-weight:500}.hud-rebirth{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;flex-direction:column;flex:260px;justify-content:center;gap:5px;min-width:220px;padding:7px 10px;display:flex}.hud-rebirth-head{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;justify-content:space-between;gap:10px;font-size:10px;font-weight:700;display:flex}.hud-rebirth-head span:last-child{font-family:var(--font-mono);letter-spacing:-.02em;text-transform:none}.rebirth-button{border-radius:9px;min-height:30px;padding:4px 10px;font-size:12px}.progress-wrap{flex-direction:column;gap:4px;display:flex}.progress-label{color:var(--muted);justify-content:space-between;gap:8px;font-size:11px;display:flex}.progress{background:#dbe7e8;border-radius:999px;width:100%;height:8px;overflow:hidden}.progress-bar{background:linear-gradient(90deg, var(--teal), var(--teal-strong));border-radius:999px;height:100%;transition:width .25s}.progress-bar.warm{background:linear-gradient(90deg,#d97706,#f59e0b)}.progress-bar.violet{background:linear-gradient(90deg,#6d28d9,#8b5cf6)}.layout{grid-template-columns:minmax(0,1.65fr) minmax(330px,1fr);align-items:start;gap:18px;min-width:0;display:grid}.main-column,.side-column{flex-direction:column;gap:18px;min-width:0;display:flex}.secondary-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;gap:18px;min-width:0;margin-top:18px;display:grid}.panel{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);background:#fffffff0;min-width:0;padding:18px}.panel-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px;display:flex}.panel-header>div:first-child{min-width:0;max-width:62ch}.panel-header h2{margin-bottom:4px}.panel-header .muted{font-size:12.5px}.buy-amount{flex-direction:column;align-items:flex-end;gap:5px;display:flex}.pipeline{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.building-card{--stage:var(--cyan);--stage-soft:var(--cyan-soft);border:1px solid var(--line);border-top:4px solid var(--stage);background:linear-gradient(#fff,#f9fcfc);border-radius:16px;flex-direction:column;flex:1 1 0;gap:9px;min-width:0;padding:13px;transition:border-color .15s,box-shadow .15s;display:flex}.building-card:hover{border-color:var(--line-strong);box-shadow:var(--shadow-soft)}.building-card.data{--stage:var(--cyan);--stage-soft:var(--cyan-soft)}.building-card.insights{--stage:#7c3aed;--stage-soft:var(--violet-soft)}.building-card.wins{--stage:var(--amber);--stage-soft:var(--amber-soft)}.building-card.fans{--stage:var(--green);--stage-soft:var(--green-soft)}.building-card.paused{background:linear-gradient(#fbfcfc,#f4f8f8)}.building-head{align-items:flex-start;gap:8px;display:flex}.building-icon{background:var(--stage-soft);width:34px;height:34px;color:var(--stage);border-radius:10px;flex:none;place-items:center;display:grid}.building-title{flex:1;min-width:0}.building-title h3{margin-bottom:2px;font-size:14px}.building-title .muted{font-size:11.5px;line-height:1.35}.building-stats{background:var(--surface-2);border-radius:11px;flex-direction:column;gap:6px;padding:8px;display:flex}.building-stats>div{grid-template-columns:44px 1fr;align-items:baseline;column-gap:6px;display:grid}.stat-line-label{color:var(--muted);letter-spacing:.09em;text-transform:uppercase;font-size:10px;font-weight:700}.building-stats strong{font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-size:12px;font-weight:500}.stat-line-sub{color:var(--muted);grid-column:2;font-size:10.5px}.building-value{font-size:10.5px}.toggle-row{color:var(--muted);cursor:pointer;align-items:center;gap:7px;font-size:11px;line-height:1.25;display:flex}.toggle-row input{width:16px;height:16px;accent-color:var(--teal);flex:none;margin:0}.toggle-row .pill{margin-left:auto;padding:3px 6px;font-size:10px}.building-actions{flex-direction:column;gap:6px;margin-top:auto;display:flex}.buy-button,.sell-button{text-overflow:ellipsis;white-space:nowrap;width:100%;min-height:36px;padding:7px 10px;font-size:12px;overflow:hidden}.sell-button{min-height:30px;padding:4px 8px;font-size:11px}.pipeline-footnote{border-top:1px dashed var(--line);color:var(--muted);flex-wrap:wrap;gap:8px 18px;margin-top:12px;padding-top:10px;font-size:11px;display:flex}.pipeline-footnote strong{color:var(--ink);font-family:var(--font-mono);font-weight:500}.upgrade-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.upgrade-card{border:1px solid var(--line);background:#fbfdfd;border-radius:15px;flex-direction:column;gap:10px;padding:13px;display:flex}.upgrade-card.affordable{background:linear-gradient(#fff,#f3fbfa);border-color:#0d948873}.upgrade-head{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.upgrade-head h3{margin-bottom:3px}.upgrade-facts{background:var(--surface-2);border-radius:10px;gap:6px;margin:0;padding:8px;font-size:11.5px;display:grid}.upgrade-facts>div{grid-template-columns:96px 1fr;gap:8px;display:grid}.upgrade-facts dt{color:var(--muted);font-weight:600}.upgrade-facts dd{font-family:var(--font-mono);font-variant-numeric:tabular-nums;margin:0;font-size:11px}.upgrade-card .btn{width:100%;margin-top:auto;font-size:12px}.purchased-block{margin-top:16px}.purchased-list{gap:5px;display:grid}.purchased-row{border:1px solid var(--line);background:var(--surface-2);border-radius:9px;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 9px;display:flex}.purchased-name{font-size:12px;font-weight:600}.purchased-effect{color:var(--muted);font-size:11px;font-family:var(--font-mono);text-align:right}.show-more{width:100%;margin-top:10px}.season-numbers{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px;display:grid}.season-numbers>div,.career-stat{background:var(--surface-2);border:1px solid var(--line);border-radius:11px;flex-direction:column;gap:2px;padding:9px 10px;display:flex}.season-numbers strong,.career-stat strong{font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-size:15px;font-weight:500}.season-panel .progress-wrap{margin-bottom:10px}.season-panel>.btn{width:100%}.automation-list{flex-direction:column;gap:8px;display:flex}.automation-row{border:1px solid var(--line);background:var(--surface-2);cursor:pointer;border-radius:12px;align-items:center;gap:10px;padding:9px 10px;display:flex}.automation-row.locked{cursor:not-allowed;background:#f7fafb;border-style:dashed}.automation-row input{width:17px;height:17px;accent-color:var(--teal);flex:none;margin:0}.automation-copy{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.automation-title{flex-wrap:wrap;align-items:center;gap:6px;font-size:12.5px;font-weight:600;display:flex}.automation-title .pill{padding:3px 6px;font-size:10px}.automation-last{margin-top:10px}.bottleneck-panel{background:linear-gradient(135deg,#effcf9,#fff 65%);border-color:#0d948859}.bottleneck-panel h2{margin-bottom:5px}.bottleneck-panel .btn{width:100%;margin-top:12px}.bottleneck-panel h2:after{content:"";background:var(--teal);border-radius:999px;width:44px;height:3px;margin-top:8px;display:block}.career-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;display:grid}.career-stat strong{font-size:14px}.stats-section{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}.stats-section-head{justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:8px;display:flex}.stats-section-head h3{margin:0}.sparkline{border:1px solid var(--line);background:linear-gradient(#f8fcfc,#eef7f6);border-radius:12px;width:100%;height:96px;display:block}.sparkline-line{fill:none;stroke:var(--teal);stroke-width:2.2px;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}.sparkline-area{fill:#0d94881f;stroke:none}.sparkline-empty{border:1px dashed var(--line);min-height:96px;color:var(--muted);background:var(--surface-2);border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:6px;display:flex}.contribution-list{flex-direction:column;gap:7px;display:flex}.contribution-row{grid-template-columns:minmax(120px,1.2fr) minmax(80px,2fr) 44px;align-items:center;gap:8px;display:grid}.contribution-label{flex-direction:column;gap:0;min-width:0;display:flex}.contribution-label>span:first-child{white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:600;overflow:hidden}.contribution-track{background:#e3eeef;border-radius:999px;height:9px;overflow:hidden}.contribution-fill{background:var(--teal);border-radius:999px;height:100%}.contribution-fill.scout{background:var(--cyan)}.contribution-fill.analyst{background:#7c3aed}.contribution-fill.strategy{background:var(--amber)}.contribution-fill.marketing{background:var(--green)}.contribution-share{text-align:right;font-family:var(--font-mono);color:var(--muted);font-variant-numeric:tabular-nums;font-size:11px}.achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;display:grid}.achievement{border:1px dashed var(--line);color:var(--muted);background:#fbfdfd;border-radius:8px;align-items:center;gap:6px;padding:6px 8px;font-size:11px;font-weight:600;display:flex}.achievement.unlocked{background:var(--teal-soft);color:#115e59;border-style:solid;border-color:#0d948859}.achievement-icon{background:var(--surface-3);width:20px;height:20px;color:var(--muted);border-radius:50%;flex:none;place-items:center;display:grid}.achievement.unlocked .achievement-icon{background:var(--teal);color:#fff}.legacy-progress{border:1px solid var(--line);background:var(--surface-2);border-radius:13px;flex-direction:column;gap:8px;margin-bottom:13px;padding:11px;display:flex}.legacy-progress-head{justify-content:space-between;gap:12px;display:flex}.legacy-progress-head>div{flex-direction:column;gap:1px;display:flex}.legacy-progress-head strong{font-size:13px}.legacy-gain-row{color:var(--muted);flex-wrap:wrap;gap:4px 14px;font-size:11px;display:flex}.legacy-gain-row strong{color:var(--ink);font-family:var(--font-mono);font-weight:500}.legacy-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;display:grid}.legacy-card{border:1px solid var(--line);background:#fbfdfd;border-radius:13px;flex-direction:column;gap:7px;padding:11px;display:flex}.legacy-card.affordable{background:linear-gradient(#fff,#f2fbf9);border-color:#0d948873}.legacy-card-head{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.legacy-card-head h3{margin-bottom:2px;font-size:13px}.legacy-card-head .pill{padding:3px 6px;font-size:9px}.legacy-effect{color:var(--teal);font-size:11px;font-weight:600}.legacy-card .btn{width:100%;min-height:34px;margin-top:auto;padding:5px 8px;font-size:11px}.legacy-locked{margin-top:14px}.legacy-locked-list{flex-direction:column;gap:5px;display:flex}.legacy-locked-row{border:1px dashed var(--line);background:#fbfdfd;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:7px 9px;font-size:11.5px;display:flex}.footer{color:var(--muted);flex-wrap:wrap;justify-content:space-between;gap:12px;padding:2px 4px 0;font-size:11px;display:flex}.mobile-nav{display:none}.modal-backdrop{z-index:80;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#06161e8f;justify-content:center;align-items:center;padding:20px;animation:.15s fade-in;display:flex;position:fixed;inset:0}.modal{background:var(--surface);border:1px solid var(--line);border-radius:22px;width:min(620px,100%);max-height:min(86vh,860px);animation:.18s modal-in;overflow:auto;box-shadow:0 30px 80px -30px #00000080}.modal-large{width:min(780px,100%)}.modal-small{width:min(460px,100%)}.modal-header{justify-content:space-between;align-items:flex-start;gap:14px;padding:20px 20px 0;display:flex}.modal-header h2{margin:0}.modal-body{flex-direction:column;gap:12px;padding:14px 20px 4px;display:flex}.modal-body h3{margin-bottom:4px}.modal-footer{flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:16px 20px 20px;display:flex}.help-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.help-grid>div{border:1px solid var(--line);background:var(--surface-2);border-radius:12px;padding:11px}.notice{color:#115e59;background:#0d948817;border-radius:12px;padding:11px 13px;font-size:12px;line-height:1.5}.notice.subtle{color:#92400e;background:#b4530914}.settings-block{border-bottom:1px solid var(--line);padding-bottom:14px}.settings-block:last-child{border-bottom:0;padding-bottom:0}.settings-actions{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.file-button{cursor:pointer;position:relative;overflow:hidden}.file-button input{opacity:0;cursor:pointer;position:absolute;inset:0}.danger-zone h3{color:var(--red)}.danger-zone .btn{margin-top:10px}.toggle-row.confirm-row{border:1px solid var(--line);background:var(--surface-2);color:var(--ink);border-radius:10px;padding:10px}.offline-gains{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.offline-gain{border:1px solid var(--line);background:var(--surface-2);border-radius:10px;align-items:center;gap:7px;padding:8px 9px;font-size:12px;display:flex}.offline-gain strong{font-family:var(--font-mono);margin-left:auto;font-weight:500}.resource-dot{background:var(--teal);border-radius:50%;flex:none;width:9px;height:9px}.resource-dot.data{background:var(--cyan)}.resource-dot.insights{background:#7c3aed}.resource-dot.wins{background:var(--amber)}.resource-dot.fans{background:var(--green)}.offline-score{background:var(--teal-soft);color:#115e59;border-radius:10px;justify-content:space-between;gap:12px;padding:10px 12px;font-size:12px;font-weight:600;display:flex}.offline-score strong{font-family:var(--font-mono);font-weight:500}.rebirth-current{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;display:flex}.rebirth-score{align-items:baseline;gap:7px;display:flex}.rebirth-score strong{font-family:var(--font-mono);letter-spacing:-.04em;font-size:26px;font-weight:500}.story-unlock{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;gap:10px;padding:12px;display:flex}.story-unlock .icon{color:var(--teal);flex:none}.empty-state{border:1px dashed var(--line);background:var(--surface-2);text-align:center;border-radius:12px;padding:18px}.error-screen{place-items:center;min-height:100vh;padding:24px;display:grid}.error-panel{flex-direction:column;gap:14px;width:min(620px,100%);display:flex}.error-panel h1{font-size:clamp(28px,4vw,38px)}.error-details summary{cursor:pointer;color:var(--muted);font-size:12px;font-weight:600}.error-details pre{background:var(--surface-2);font-family:var(--font-mono);white-space:pre-wrap;border-radius:8px;margin-top:8px;padding:10px;font-size:11px;overflow:auto}.toast{z-index:90;border:1px solid var(--line);background:#fffffffa;border-radius:14px;align-items:flex-start;gap:10px;width:min(380px,100vw - 40px);padding:12px 12px 12px 14px;animation:.2s toast-in;display:flex;position:fixed;bottom:20px;right:20px;box-shadow:0 24px 50px -24px #0a1f2a8c}.toast.achievement{background:linear-gradient(135deg,#fffbeb,#fff);border-color:#b4530959}.toast.error{background:linear-gradient(135deg,#fef2f2,#fff);border-color:#b91c1c59}.toast>.icon{color:var(--teal);margin-top:2px}.toast.achievement>.icon{color:var(--amber)}.toast strong{font-size:12px;display:block}.toast p{color:var(--muted);font-size:12px}.toast .btn{border:0;width:28px;min-width:28px;min-height:28px;margin-left:auto}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-in{0%{opacity:0;transform:translateY(10px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media (width<=1200px){.layout{grid-template-columns:minmax(0,1.4fr) minmax(310px,1fr)}.upgrade-grid{grid-template-columns:minmax(0,1fr)}}@media (width<=980px){.app{padding:18px 16px 92px}h1{font-size:34px}.brand .subtitle{display:none}.topbar{gap:12px}.topbar-actions{gap:8px}.local-status{padding:7px 10px}.hud{flex-wrap:wrap;top:6px}.hud-resources,.hud-actions{flex:100%}.click-button{flex:160px}.hud-rebirth{flex:220px}.layout,.secondary-grid{grid-template-columns:minmax(0,1fr)}.tab-panel{display:none}.tab-panel.active{display:block}.side-column{gap:14px}.mobile-nav{left:12px;right:12px;bottom:max(10px, env(safe-area-inset-bottom));z-index:70;border:1px solid var(--line);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#fffffff2;border-radius:18px;gap:4px;padding:6px;display:flex;position:fixed;box-shadow:0 18px 40px -20px #0a1f2a8c}.mobile-nav-button{min-height:48px;color:var(--muted);background:0 0;border:0;border-radius:13px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:10px;font-weight:700;display:flex}.mobile-nav-button.active{background:var(--ink);color:#fff}.toast{width:calc(100vw - 32px);bottom:84px;right:16px}.footer{display:none}}@media (width<=720px){.topbar{flex-direction:column;gap:12px}.topbar-actions{justify-content:space-between;width:100%}.brand .subtitle{font-size:13px}.hud{gap:8px;padding:8px}.resource-tile{min-width:102px;padding:7px 9px}.hud-resources{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;display:grid;overflow:visible}.hud-resources .resource-tile{grid-column:auto;min-width:0;padding:6px}.hud-resources .resource-tile:nth-child(4),.hud-resources .resource-tile:nth-child(5){grid-column:auto}.resource-label{letter-spacing:.04em;gap:3px;font-size:9px}.resource-label .icon{width:13px;height:13px}.resource-value{font-size:13px}.resource-meta{font-size:9px}.hud-actions{flex-direction:row}.click-button{flex:45%;min-width:0;min-height:56px;padding:8px 10px}.hud-rebirth{flex:55%;min-width:0}.rebirth-button{font-size:11px}.pipeline{grid-template-columns:minmax(0,1fr)}.panel{border-radius:17px;padding:14px}.panel-header{margin-bottom:11px}.buy-amount{flex-direction:row;justify-content:space-between;align-items:center;width:100%}.career-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.legacy-grid,.help-grid{grid-template-columns:minmax(0,1fr)}.contribution-row{grid-template-columns:minmax(110px,1.4fr) minmax(70px,1.4fr) 40px}.modal-backdrop{align-items:flex-end;padding:10px}.modal{border-radius:19px;max-height:90vh}.modal-header{padding:16px 16px 0}.modal-body{padding:12px 16px 4px}.modal-footer{padding:14px 16px 16px}.modal-footer .btn{flex:auto}.offline-gains{grid-template-columns:minmax(0,1fr)}.rebirth-score strong{font-size:22px}}@media (width<=420px){.app{padding-left:12px;padding-right:12px}.local-status{padding:7px 10px}.resource-tile{min-width:94px}}@media (width<=360px){.hud-resources{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.hud-resources .resource-tile{grid-column:span 2}.hud-resources .resource-tile:nth-child(4),.hud-resources .resource-tile:nth-child(5){grid-column:span 3}.hud-actions{flex-direction:column}.season-numbers,.career-grid,.achievement-grid{grid-template-columns:minmax(0,1fr)}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
