:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;background:#08131c;color:#ecf2f3}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 50% -20%,#183241 0,transparent 48%),#08131c}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.topbar{height:74px;border-bottom:1px solid #27404b;background:#091923e8;display:flex;justify-content:space-between;align-items:center;padding:0 max(24px,calc((100vw - 1400px)/2));position:relative;z-index:2}.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:.15em;font-size:13px;line-height:1.1}.brand small{color:#7bc8bd;font-size:11px}.brandmark{width:40px;height:40px;display:grid;place-items:center;background:#1e655d;color:#eafff9;border:1px solid #55b6a6;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);font-size:12px}.topright{display:flex;align-items:center;gap:24px}.pilot{color:#c5d2d3;font-size:14px}.textbutton{border:0;background:transparent;color:#79c4b8;padding:8px;font-weight:700}.textbutton:hover{color:#d3fff7}.container{max-width:1400px;margin:auto;padding:44px 24px 70px}.eyebrow{color:#69c1ad;font-size:12px;font-weight:800;letter-spacing:.2em}.pagehead h1,.auth-copy h1{font-size:clamp(2.4rem,5vw,4.5rem);letter-spacing:-.05em;line-height:1.03;margin:10px 0 18px}.pagehead>p:last-child,.auth-copy>p:not(.eyebrow){color:#a9bec5;max-width:650px;line-height:1.65}.lobby-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;margin-top:38px}.lobby-side{display:grid;gap:22px;align-content:start}.panel{background:#10222e;border:1px solid #2a4652;border-radius:16px;box-shadow:0 14px 36px #03101755}.panel h2{font-size:1.1rem;margin:0 0 18px;letter-spacing:-.02em}.lobby .panel,.auth-forms .panel{padding:25px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-head h2{margin:0 0 18px}.section-head span{color:#839ea7;font-size:13px}.subtle{color:#9db2bb;font-size:14px;line-height:1.55;margin:-8px 0 20px}label{display:block;color:#bed0d2;font-size:14px;font-weight:650;margin:0 0 16px}input,select{width:100%;margin-top:7px;border:1px solid #3b5963;background:#0a1923;border-radius:9px;color:#eaf4f3;padding:12px 14px;outline:none}input:focus,select:focus{border-color:#70cdb9;box-shadow:0 0 0 3px #49bfa833}.primary,.secondary{border:1px solid #82d8c5;border-radius:9px;padding:12px 16px;background:#56bda8;color:#07231f;font-weight:800;min-height:43px}.primary:hover{background:#86dfc9}.secondary{background:#153b3b;color:#a9f3e2;border-color:#3a8b7c}.secondary:hover{background:#205250}.lobby form button,.auth-forms form button{width:100%}.match-card{display:flex;gap:16px;align-items:center;padding:18px 12px;border-top:1px solid #29434e}.match-card:hover{background:#193440}.match-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:9px;color:#8fe8d2;background:#1b4d4a;font-size:28px}.match-main{display:flex;flex-direction:column;gap:5px;flex:1}.match-main strong{font-size:17px}.match-main span{color:#91aab2;font-size:13px}.match-status{border:1px solid #466574;border-radius:20px;padding:6px 10px;color:#b9d0d6;font-size:12px;font-weight:800;white-space:nowrap}.match-status.active{color:#aaf2d7;border-color:#347d6c;background:#164339}.empty{text-align:center;color:#91aab2;padding:55px 10px}.empty strong{display:block;color:#e7f3f1;font-size:18px}.empty-symbol{font-size:54px;color:#67c8b2}.alert,.notice{border:1px solid #ca756f;color:#ffd6d0;background:#4d2628;padding:12px 15px;border-radius:9px;margin-bottom:18px}.notice{border-color:#4a9b87;color:#c5f3e1;background:#174239}.hidden{display:none!important}.auth-shell{max-width:1250px;margin:auto;display:grid;grid-template-columns:1fr 440px;gap:7vw;align-items:center;padding:55px 24px}.auth-copy{padding:30px 0}.auth-copy h1{max-width:650px}.auth-art{height:260px;max-width:560px;border-radius:17px;background:linear-gradient(135deg,#183c44,#0f252f 70%);border:1px solid #356067;margin-top:38px;position:relative;overflow:hidden}.art-grid{position:absolute;inset:0;background:linear-gradient(90deg,#8ee1ce16 1px,transparent 1px),linear-gradient(#8ee1ce16 1px,transparent 1px);background-size:33px 33px;transform:perspective(350px) rotateX(42deg) scale(1.4);top:24px}.art-diamond{position:absolute;width:44px;height:44px;transform:rotate(45deg);background:#70d6bd;box-shadow:0 0 32px #70d6bd80}.art-diamond.one{left:21%;top:36%}.art-diamond.two{left:62%;top:24%;background:#e4bc6c;box-shadow:0 0 32px #e4bc6c80}.art-diamond.three{left:77%;top:66%;width:27px;height:27px}.auth-forms{display:grid;gap:18px}.game-shell{max-width:1600px;margin:auto;padding:27px 22px 50px}.game-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.backlink{color:#78caba;font-size:13px;font-weight:700}.backlink:hover{text-decoration:underline}.game-heading h1{font-size:clamp(1.8rem,3vw,2.5rem);letter-spacing:-.04em;margin:8px 0 3px}.game-heading p{color:#9db5be;margin:0}.game-heading-right{display:flex;align-items:center;gap:12px}.turn-badge,.invite{padding:10px 14px;border-radius:8px;background:#1b3d3d;border:1px solid #438a7b;color:#baf1df;font-weight:750;font-size:13px}.invite{background:#1d2b38;border-color:#456477;color:#bacfda}.invite strong{display:block;color:#f2dda7;letter-spacing:.17em;margin-top:3px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px}.map-wrap{padding:0;overflow:hidden}.map-toolbar,.map-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 19px;background:#112a36;border-bottom:1px solid #2b4b56}.map-toolbar strong{font-size:12px;letter-spacing:.15em;color:#b5ecdd}.map-toolbar span,.map-footer{display:block;color:#91abb3;font-size:12px;margin-top:4px}.map-legend{white-space:nowrap}.map-legend i{display:inline-block;width:11px;height:11px;margin-left:12px;margin-right:4px}.legend-city{background:#e8c677;transform:rotate(45deg)}.legend-unit{background:#75d4bf;border-radius:50%}.map-scroller{overflow:auto;padding:22px;background:#0c1c27}.map{display:grid;grid-template-columns:repeat(12,minmax(49px,1fr));gap:3px;min-width:650px;max-width:1040px;margin:auto}.tile{aspect-ratio:1.08;border:1px solid #355260;border-radius:5px;position:relative;display:flex;align-items:center;justify-content:center;color:#dfeeed;transition:filter .1s,border-color .1s;min-width:0;padding:0}.tile:hover{filter:brightness(1.3);border-color:#d7efdf}.tile.plain{background:linear-gradient(145deg,#3d6256,#2c4d49)}.tile.forest{background:linear-gradient(145deg,#365d4c,#234438)}.tile.hill{background:linear-gradient(145deg,#6c6852,#4f594b)}.tile.water{background:linear-gradient(145deg,#245a70,#164156)}.tile.unknown{background:#0a1721;border-color:#203641;color:#43606a}.tile.explored{filter:saturate(.5) brightness(.7)}.tile.selected{outline:3px solid #f0d787;outline-offset:-3px}.tile.reachable{border-color:#8be5c8}.tile .texture{opacity:.21;font-size:24px;pointer-events:none}.tile .city-icon{position:absolute;top:2px;left:4px;color:#f6d687;font-size:17px;text-shadow:0 2px 3px #102325}.tile .city-icon.owned{color:#7fe3c0}.tile .city-icon.enemy{color:#f3938b}.tile .unit-token{min-width:28px;height:28px;border-radius:7px;display:grid;place-items:center;font-size:14px;font-weight:900;border:1px solid #91f0d9;background:#1d6a61;box-shadow:0 2px 6px #071d1eaa;z-index:1}.tile .unit-token.enemy{background:#8d4946;border-color:#f6a7a0}.tile .unit-token.no-move{opacity:.65}.tile .stack{position:absolute;right:2px;bottom:2px;border-radius:7px;padding:1px 4px;background:#07161c;font-size:11px;font-weight:800}.map-footer{border-top:1px solid #2b4b56;border-bottom:0;margin:0}.game-sidebar{display:grid;gap:16px;align-content:start}.game-sidebar .panel{padding:18px}.game-sidebar h2{font-size:1rem}.selection-placeholder{color:#8faab2;font-size:14px;line-height:1.5}.selection-title{font-size:20px;font-weight:800;margin-bottom:5px}.selection-meta{color:#9db4bb;font-size:13px;margin-bottom:16px}.selection-stats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.stat{background:#203b46;border:1px solid #365767;border-radius:7px;padding:6px 9px;font-size:12px}.selection-actions{display:flex;gap:7px;flex-wrap:wrap}.selection-actions button{padding:8px 10px;font-size:13px}.production-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.production-list button{background:#173a40;color:#c6ece5;border:1px solid #3d7374;border-radius:7px;padding:8px;text-align:left;font-size:13px}.production-list button:hover{background:#245054}.production-list button.active{border-color:#ead087;color:#f4df9e}.production-list small{display:block;color:#99b8bb;font-size:11px}.unit-list{display:grid;gap:5px;max-height:250px;overflow:auto}.unit-row{display:flex;align-items:center;gap:10px;border:1px solid transparent;border-radius:7px;background:#172d38;color:#e4f1ef;padding:7px 8px;text-align:left;width:100%;font-size:13px}.unit-row:hover,.unit-row.active{border-color:#68cbb2;background:#214540}.unit-glyph{display:grid;place-items:center;background:#327468;color:#e9fff6;width:27px;height:27px;border-radius:6px;font-weight:800}.unit-row small{margin-left:auto;color:#91aeb3}.log-list{display:grid;gap:0;max-height:290px;overflow:auto}.log-line{font-size:12px;line-height:1.4;color:#a4bbc1;padding:8px 0;border-top:1px solid #29434c}.log-line:first-child{color:#e2efe9}.game-sidebar .panel:has(.log-list){min-height:150px}@media(max-width:1100px){.game-layout{grid-template-columns:1fr}.game-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.game-sidebar .panel:last-child{grid-column:1/-1}}@media(max-width:760px){.lobby-grid,.auth-shell{grid-template-columns:1fr}.auth-shell{gap:20px}.auth-art{height:170px}.game-heading{align-items:flex-start;flex-direction:column}.game-heading-right{flex-wrap:wrap}.game-sidebar{grid-template-columns:1fr}.game-sidebar .panel:last-child{grid-column:auto}.map-toolbar,.map-footer{align-items:flex-start;flex-direction:column}.topbar{padding:0 18px}.pilot{display:none}}
