:root{--bg:#0b121d;--sidebar:#101923;--panel:#162232;--panel2:#1b293b;--line:#2b3a4c;--muted:#91a0b1;--text:#f1eee5;--gold:#d3aa63;--red:#e06e64;--blue:#73b0d4;--green:#74bfa2;--font:Inter,Segoe UI,Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.45}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.035em}h2{font-size:21px}p{line-height:1.62}code{background:#233044;color:#f6d79c;padding:1px 5px;border-radius:3px}.logo{display:flex;align-items:center;gap:11px;font-weight:800;letter-spacing:.14em;font-size:13px;white-space:nowrap}.logo strong{color:var(--gold)}.logo-mark{display:grid;place-items:center;background:var(--gold);color:#14202c;font-weight:950;font-size:24px;letter-spacing:-.12em;width:39px;height:39px;border-radius:3px}.eyebrow,.section-kicker,.sidebar-section-label,.stat-kicker,.stat-foot,.resource-foot,.district-coordinate,.action-overline,.action-cost,.panel-foot,.dash-footer,.topbar-breadcrumb,.section-side,.tag-muted,.mini-state{font-weight:800;font-size:10px;letter-spacing:.15em}.eyebrow,.section-kicker{color:var(--gold)}.muted{color:var(--muted)}.notice{padding:13px 16px;margin-bottom:18px;background:#1d3750;border-left:3px solid var(--blue);font-size:13px}.notice.error{background:#3a2229;border-color:var(--red)}.notice.success{background:#1a3935;border-color:var(--green)}.btn{border:0;border-radius:4px;padding:14px 18px;font-size:12px;font-weight:900;letter-spacing:.08em;display:flex;justify-content:space-between;align-items:center;gap:10px}.btn-gold{background:var(--gold);color:#101723}.btn-gold:hover{background:#e9c280}.btn-full{width:100%}
/* Welcome / registration */
.auth-body{min-height:100vh;background:#0b121d}.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(390px,.9fr)}.auth-story{position:relative;overflow:hidden;padding:38px clamp(30px,5vw,85px);display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(circle at 75% 45%,#4b3330 0,#1d2c3b 32%,#0a1622 72%);border-right:1px solid #384351}.auth-story:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 62px,#ffffff06 63px 64px);pointer-events:none}.auth-story .logo,.story-content,.story-bottom{position:relative;z-index:2}.story-content{max-width:680px;margin-top:10vh}.story-content h1{font-size:clamp(56px,6.8vw,100px);font-weight:950;line-height:.96;margin:23px 0 25px;letter-spacing:-.075em}.story-content h1 em{color:var(--gold);font-style:normal}.story-content p{color:#c3cbd6;max-width:480px;font-size:17px}.story-pill-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:35px}.story-pill-row span{padding:9px 11px;border:1px solid #586273;color:#d2d9df;letter-spacing:.12em;font-size:9px;font-weight:900}.story-bottom{display:flex;justify-content:space-between;color:#c1c9d2;font-size:10px;font-weight:800;letter-spacing:.12em}.skyline{position:absolute;bottom:5%;right:-3%;width:72%;height:43%;display:flex;align-items:flex-end;gap:6px;opacity:.26;transform:skew(-6deg);filter:drop-shadow(0 0 24px #0b0e15)}.skyline i{display:block;background:linear-gradient(90deg,#020913,#1d354b);width:13%;height:57%;border-top:3px solid #61768d}.skyline i:nth-child(2){height:90%;width:19%}.skyline i:nth-child(3){height:69%;width:9%}.skyline i:nth-child(4){height:99%;width:20%}.skyline i:nth-child(5){height:48%}.skyline i:nth-child(6){height:71%}.skyline i:nth-child(7){height:32%}.auth-panel{display:grid;place-items:center;padding:40px 35px;background:#111b27}.auth-card{max-width:430px;width:100%}.auth-card h2{font-size:38px;line-height:1.1;margin:16px 0 13px}.auth-tabs{display:flex;border-bottom:1px solid var(--line);margin:34px 0 24px}.auth-tab{flex:1;border:0;border-bottom:3px solid transparent;background:transparent;color:#879bad;padding:13px 10px;font-size:11px;letter-spacing:.11em;font-weight:900}.auth-tab.active{color:var(--gold);border-bottom-color:var(--gold)}.auth-form{display:grid;gap:17px}.auth-form label{display:grid;gap:7px;font-size:10px;letter-spacing:.12em;font-weight:800;color:#b9c5cf}.auth-form input{display:block;width:100%;background:#1e2c3d;color:white;padding:14px 13px;border:1px solid #344559;border-radius:3px;letter-spacing:normal;font-size:14px}.auth-form input::placeholder{color:#8896a5}.auth-form .btn{margin-top:6px}.auth-footnote{margin-top:28px;color:#798a9a;font-size:11px;line-height:1.7}.error-shell{max-width:600px;margin:10vh auto;padding:30px}.error-shell h1{margin-top:45px;font-size:35px}
/* Dashboard */
.game-shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--sidebar);border-right:1px solid #293749;display:flex;flex-direction:column;padding:27px 17px 22px;min-height:100vh}.sidebar .logo{padding:0 6px 39px;font-size:11px;letter-spacing:.11em}.sidebar .logo-mark{width:36px;height:36px;font-size:22px}.sidebar-section-label{color:#697b8e;margin:28px 13px 10px}.nav-group{display:grid;gap:3px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:3px;color:#98a8b7;font-size:13px;font-weight:650}.nav-link.active{background:#26384a;color:#f5dfbc;border-left:3px solid var(--gold);padding-left:10px}.nav-link.locked{color:#637487;cursor:default}.nav-symbol{font-size:17px;color:#c0cedc;width:18px;text-align:center}.locked .nav-symbol{color:#708092}.soon{font-size:8px;letter-spacing:.13em;margin-left:auto;color:#687f93;border:1px solid #36485a;padding:3px 4px}.sidebar-bottom{margin-top:auto;padding:25px 12px 0}.sidebar-status{display:flex;align-items:center;gap:7px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:19px;color:#8d9ca9;font-size:9px;font-weight:800;letter-spacing:.06em}.sidebar-status b{color:var(--green)}.pulse-dot{width:7px;height:7px;border-radius:50%;background:#68d0aa;display:inline-block;box-shadow:0 0 10px #68d0aa88}.logout-button{margin-top:18px;background:transparent;border:0;padding:0;color:#b2c0c9;font-size:10px;font-weight:900;letter-spacing:.12em}.logout-button:hover{color:var(--gold)}.main-area{min-width:0}.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #263546;background:#121d2a;padding:0 clamp(17px,3vw,43px)}.topbar-breadcrumb{color:#9baabc}.topbar-breadcrumb span{color:#586e80;margin:0 10px}.topbar-right{display:flex;align-items:center;gap:22px}.topbar-username{font-weight:800;font-size:12px;color:#e6d4af}.small-status{display:flex;align-items:center;gap:8px;font-size:9px;color:#89a797;letter-spacing:.08em;font-weight:800}.dashboard-content{max-width:1500px;margin:0 auto;padding:34px clamp(17px,3vw,43px)}.dashboard-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:26px}.dashboard-head h1{font-size:clamp(29px,3.2vw,44px);margin:6px 0 7px;line-height:1.05;font-weight:950}.dashboard-head h1 span{color:var(--gold)}.dashboard-head p{margin:0;color:#94a5b6}.chapter-mark{font-size:58px;letter-spacing:-.08em;font-weight:900;line-height:1;color:#29394a}.chapter-mark span{font-size:24px;color:#384a5e}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}.stat-card{background:var(--panel);padding:20px 19px 17px;border:1px solid var(--line);border-top:3px solid var(--gold);min-height:136px}.stat-card.accent-blue{border-top-color:var(--blue)}.stat-card.accent-red{border-top-color:var(--red)}.stat-card.accent-green{border-top-color:var(--green)}.stat-kicker{color:#91a3b4}.stat-value{font-weight:950;letter-spacing:-.065em;font-size:35px;margin:7px 0 9px;white-space:nowrap}.stat-location{font-size:26px;overflow:hidden;text-overflow:ellipsis}.stat-small{color:#8091a2;font-size:17px;letter-spacing:-.02em}.stat-foot{color:#75889b;font-size:9px}.progress-track{height:6px;background:#2a3b4c;overflow:hidden;border-radius:5px}.progress-value{height:100%;background:var(--gold);border-radius:5px}.progress-value.xp{background:var(--blue)}.progress-value.energy{background:var(--green)}.progress-value.nerve{background:var(--red)}.progress-value.focus{background:var(--blue)}.stat-card .progress-track{margin:11px 0 8px}.resource-card{border:1px solid var(--line);background:#152132;padding:21px 23px;margin-bottom:22px}.resource-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px;gap:15px}.resource-title h2{font-size:18px;margin:4px 0 0}.tag-muted{color:#738699;font-size:9px}.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.resource-head{display:flex;justify-content:space-between;color:#c8d1d9;font-size:12px;margin-bottom:9px}.resource-head b{font-weight:900;color:white}.resource-name{font-size:10px;font-weight:900;letter-spacing:.14em}.resource-energy{color:var(--green)}.resource-nerve{color:var(--red)}.resource-focus{color:var(--blue)}.resource-foot{color:#7890a2;margin-top:8px;font-size:9px}.layout-columns{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(280px,1fr);gap:21px}.primary-column,.secondary-column{min-width:0}.district-hero{min-height:201px;position:relative;overflow:hidden;display:flex;align-items:center;border:1px solid #4a4850;background:radial-gradient(ellipse at 73% 44%,#65504b 0,#283649 38%,#1b2838 77%);padding:28px 30px;margin-bottom:27px}.district-hero:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 27px,#ffffff07 28px 29px);opacity:.5}.district-hero-content{position:relative;z-index:2;max-width:360px}.district-hero h2{font-size:37px;font-weight:950;letter-spacing:-.05em;margin:8px 0 6px}.district-hero p{font-size:13px;color:#d3d6d9;margin-bottom:19px}.district-coordinate{color:#d4ad78}.city-silhouette{position:absolute;bottom:-6px;right:-6px;width:47%;height:85%;display:flex;align-items:flex-end;gap:5px;opacity:.51}.city-silhouette i{display:block;width:16%;height:65%;background:#101d2b;border-top:3px solid #8b8c87;box-shadow:inset 7px 0 #ffffff0b}.city-silhouette i:nth-child(2){height:90%;width:21%}.city-silhouette i:nth-child(3){height:58%;width:12%}.city-silhouette i:nth-child(4){height:97%;width:22%}.city-silhouette i:nth-child(5){height:49%}.city-silhouette i:nth-child(6){height:75%}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:15px}.section-heading h2{font-size:20px;margin:3px 0 0}.section-heading.tight{margin-bottom:10px}.section-heading.tight h2{font-size:18px}.section-side{color:#74869a;font-size:9px}.actions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.action-card{background:#172435;border:1px solid var(--line);padding:17px 15px;display:flex;flex-direction:column;min-height:227px}.action-line{height:3px;width:28px;background:var(--blue);margin-bottom:16px}.action-card.red .action-line{background:var(--red)}.action-card.gold .action-line{background:var(--gold)}.action-overline{color:var(--blue);font-size:9px}.action-card.red .action-overline{color:var(--red)}.action-card.gold .action-overline{color:var(--gold)}.action-card h3{font-size:17px;line-height:1.2;margin:8px 0}.action-card p{font-size:11px;color:#a1b2c1;line-height:1.65}.action-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:auto}.action-cost{color:#8f9fac;font-size:8px}.action-button{background:#2b4054;color:#f2f4f5;border:1px solid #466077;border-radius:3px;padding:8px 9px;font-size:9px;letter-spacing:.08em;font-weight:900;white-space:nowrap}.action-button:hover{background:#4c6680}.action-card.red .action-button:hover{background:#86443f}.action-card.gold .action-button:hover{background:#766344}.panel{background:#152132;border:1px solid var(--line);padding:19px 18px;margin-bottom:15px}.mini-icon{color:#a7bac6;font-size:22px}.leader-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #2a394a}.leader-row:last-child{border-bottom:0}.rank-num{color:#657c90;font-weight:900;font-size:11px;width:19px}.leader-avatar{display:grid;place-items:center;width:34px;height:34px;background:#30455b;border:1px solid #456077;color:#e3ca99;font-weight:900}.leader-info{display:flex;flex-direction:column;min-width:0;flex:1}.leader-info b{font-size:12px;overflow:hidden;text-overflow:ellipsis}.leader-info span{font-size:9px;color:#869bab;letter-spacing:.06em}.leader-row>strong{font-size:10px;color:#dac399;white-space:nowrap}.panel-foot{border-top:1px solid #2a394a;margin-top:8px;padding-top:13px;color:#7b8e9e;font-size:9px;line-height:1.6;letter-spacing:.05em}.activity-row{display:flex;gap:10px;padding:13px 0;border-bottom:1px solid #2b3948}.activity-row:last-child{border-bottom:0}.activity-row b{font-size:10px;letter-spacing:.1em;color:#c8d2da}.activity-row p{font-size:11px;color:#9cacb8;margin:4px 0 0}.activity-dot{width:8px;height:8px;margin-top:4px;flex-shrink:0;border:2px solid var(--green);border-radius:50%}.activity-dot.failure{border-color:var(--red)}.empty-state{color:#92a3b5;font-size:12px;padding:18px 0}.district-panel h2{font-size:18px;margin:4px 0 11px}.mini-district{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #2a394a;padding:8px 0;font-size:11px;color:#b9c7d2}.mini-state{font-size:8px}.mini-state.available{color:var(--green)}.mini-state.closed{color:#68798c}.dash-footer{margin-top:34px;padding:19px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#63788c;font-size:9px}.dash-footer span{color:#667b8e}
@media(max-width:1240px){.layout-columns{grid-template-columns:minmax(0,1.35fr) minmax(250px,1fr)}.actions-grid{grid-template-columns:1fr}.action-card{min-height:135px}.stat-value{font-size:28px}.stat-location{font-size:22px}}@media(max-width:970px){.game-shell{grid-template-columns:75px minmax(0,1fr)}.sidebar{padding:20px 10px}.sidebar .logo{padding:0 0 34px;justify-content:center}.sidebar .logo span:last-child,.sidebar-section-label,.nav-link .soon,.nav-link{font-size:0}.nav-link{justify-content:center;padding:12px 9px}.nav-link.active{padding-left:6px}.nav-symbol{font-size:20px}.sidebar-status,.logout-button{font-size:0}.sidebar-status .pulse-dot{margin:auto}.sidebar-bottom{text-align:center;padding:20px 0}.logout-button:after{content:'\2192';font-size:18px}.layout-columns{grid-template-columns:1fr 290px}.auth-layout{grid-template-columns:1fr 1fr}.story-content h1{font-size:62px}}@media(max-width:750px){.layout-columns{grid-template-columns:1fr}.actions-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.action-card{min-height:215px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-grid{gap:12px}.auth-layout{grid-template-columns:1fr}.auth-story{min-height:430px;padding:30px}.story-content{margin-top:40px}.story-content h1{font-size:60px}.story-bottom{margin-top:36px}.auth-panel{padding:50px 28px}.dashboard-head h1{font-size:34px}}@media(max-width:560px){.game-shell{display:block}.sidebar{position:fixed;bottom:0;left:0;right:0;min-height:unset;height:60px;z-index:10;display:flex;flex-direction:row;align-items:center;justify-content:center;border:1px solid #33475a;padding:6px 8px}.sidebar .logo,.sidebar-section-label,.sidebar-bottom,.sidebar .nav-group:nth-of-type(2){display:none}.nav-group{display:flex;justify-content:center;gap:15px}.nav-link{min-width:50px}.topbar{padding:0 17px;height:55px}.topbar-breadcrumb{font-size:9px}.topbar-right{gap:8px}.small-status{display:none}.dashboard-content{padding:25px 14px 85px}.dashboard-head h1{font-size:30px}.dashboard-head p{font-size:12px}.chapter-mark{display:none}.stats-grid{gap:9px}.stat-card{padding:14px;min-height:115px}.stat-value{font-size:25px}.stat-location{font-size:20px}.stat-kicker,.stat-foot{font-size:8px}.resource-card{padding:16px}.resource-grid{grid-template-columns:1fr;gap:16px}.resource-title{margin-bottom:14px}.resource-title h2{font-size:16px}.tag-muted{font-size:8px}.actions-grid{grid-template-columns:1fr}.action-card{min-height:150px}.district-hero{padding:22px 18px;min-height:172px}.district-hero h2{font-size:30px}.city-silhouette{width:38%}.dash-footer{display:block;font-size:8px}.dash-footer span{display:block;margin-top:4px}}

.topbar-logout{display:none}.topbar-logout button{border:1px solid #485769;background:transparent;color:#d6c7a8;border-radius:2px;padding:7px 9px;font-size:9px;letter-spacing:.08em;font-weight:850}@media(max-width:560px){.topbar-logout{display:block}.topbar-username{max-width:86px;overflow:hidden;text-overflow:ellipsis}}
