@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@400;450;500;550;600;650;700&display=swap");:root{--bg:#101719;--panel:#192124;--border:#303839;--gold:#d4b677;--text:#e6e7e1;--muted:#8b9898;--green:#96bda1}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:DM Sans,Arial,sans-serif;font-size:13px}button,input,select{font:inherit}a.button,button{cursor:pointer;border:1px solid var(--border);background:#20292c;color:var(--text);border-radius:5px;min-height:35px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:.18s}a.button:hover,button:hover{border-color:var(--gold);background:#303a3b}button:disabled{opacity:.38;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}input,select{border:1px solid var(--border);border-radius:5px;color:var(--text);background:#121c1f;padding:10px;min-width:0}select{max-width:100%}h1,h2{font-family:Cormorant Garamond,Georgia,serif;font-weight:500}h1{font-size:38px;letter-spacing:-.6px;margin:7px 0 9px}h2{font-size:27px;margin:10px 0}h3{font-size:15px;font-weight:550;margin:12px 0}p{line-height:1.7;margin:8px 0 16px}p,small{color:var(--muted)}small{font-size:11px}.app{min-height:100vh;display:flex}.sidebar{width:238px;background:#151d20;border-right:1px solid var(--border);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:26px 18px 0;z-index:30}.brand{display:flex;align-items:center;gap:11px;color:#e6c989;font-family:Georgia,serif;font-size:21px;letter-spacing:2px;padding:0 9px 26px}.brand small{display:block;font:8px DM Sans,Arial;letter-spacing:3px;text-align:center;color:#a69b7f;margin-top:5px}.realm{border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:19px 3px;display:flex;gap:10px;align-items:center;font-size:12px}.realm-icon{color:var(--gold);border:1px solid #77634166;border-radius:6px;background:#b9994820;padding:8px;display:flex}.realm small{display:block;font-size:9px;margin-top:6px}.dot,.live-dot,.realm small i{display:inline-block;width:5px;height:5px;background:#93b594;border-radius:50%;margin-right:5px}.realm small span{color:#657475}.nav-label{font-size:9px;letter-spacing:1.7px;color:#69797a;margin:24px 12px 12px}nav{display:flex;flex-direction:column;gap:4px}nav button{justify-content:flex-start;border:0;background:transparent;color:#98a5a5;padding:10px 12px;min-height:39px}nav button svg{color:#899696}nav button.active{background:linear-gradient(90deg,#c9aa5630,#c9aa5610);color:#e8c887;border-left:2px solid #cbb174;border-radius:3px;padding-left:10px}nav button.active svg{color:#d3b875}nav button b{font-size:10px;margin-left:auto;color:var(--gold)}nav .dot{margin-left:auto;background:#cbb174}.side-bottom{margin-top:auto;padding-top:22px}.side-bottom>button{background:none;border:0;justify-content:flex-start;width:100%;font-size:11px;color:#89999b;padding-left:11px}.season{border:1px solid #6c5d3d7a;border-radius:5px;background:radial-gradient(ellipse at 90% 0,#8b703e28,transparent),#1e2424;padding:13px;margin-bottom:14px}.season>div{display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1px;color:var(--gold)}.season p{font-family:Georgia,serif;font-size:15px;color:#dbd4bd;margin:10px 0 7px}.season small{font-size:9px}.profile{border-top:1px solid var(--border);display:flex;gap:9px;align-items:center;margin-top:14px;padding:18px 0;font-size:11px}.profile small{display:block;font-size:9px;margin-top:4px}.profile button{border:0;padding:0;background:none;margin-left:auto}.avatar{width:34px;height:37px;border:1px solid #8a754b;border-radius:5px;display:grid;place-items:center;background:linear-gradient(135deg,#79634b,#3c4a45);font-family:Georgia;color:#edd39f;font-size:23px}.main{margin-left:238px;width:calc(100% - 238px)}.topbar{height:73px;border-bottom:1px solid var(--border);background:#151d20;gap:20px;padding:0 30px}.castle-switch,.topbar{display:flex;align-items:center}.castle-switch{gap:8px;color:var(--gold)}.castle-switch select{background:transparent;border:0;max-width:170px;font-size:12px;padding:0}.castle-switch>span{font-size:9px;color:#72817e}.resources{margin-left:auto;display:flex;gap:30px}.resources>div{position:relative;display:grid;grid-template-columns:20px auto;column-gap:8px;align-items:center}.resources svg{grid-row:span 2;color:#a7a37f}.resources strong{font-size:12px;font-weight:550}.resources small{font-size:9px;color:#6f987d}.premium{color:#ebc677!important;background:#b38b3420!important;border-color:#a88a4b66!important;font-size:12px}.notifications{border:0;background:none;padding:5px;color:#8a9696}main{max-width:1800px;margin:auto;padding:30px 32px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.eyebrow{font-size:9px;letter-spacing:2.2px;color:var(--gold);font-weight:550}.page-heading p{font-size:12px;margin:0}.heading-status{text-align:right;font-size:10px;color:#a9b6b0}.heading-status small{display:block;font-size:9px;margin-top:8px;color:#617573}.map-toolbar{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--border);border-radius:7px 7px 0 0;padding:10px 14px;background:#192224}.map-toolbar>div{display:flex;gap:6px}.map-toolbar button{font-size:11px;background:none;border-color:transparent;color:#849393;min-height:31px;padding:6px 11px}.map-toolbar .selected,.tabs .selected{color:var(--gold);background:#c5a55f14;border-color:#a58b5055}.map-toolbar form{display:flex;align-items:center;gap:6px;color:#6c7f7e}.map-toolbar input{border:0;background:none;font-size:11px;width:165px;padding:4px}.map-container{height:515px;min-height:400px;position:relative;overflow:hidden;border:1px solid var(--border);border-top:0;border-radius:0 0 7px 7px;background:#253f35}.map-container canvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none}.map-container canvas:active{cursor:grabbing}.map-title{position:absolute;top:23px;left:24px;display:flex;gap:12px;align-items:center;color:#d0ceac;font-family:Georgia,serif;letter-spacing:1.5px;font-size:11px;pointer-events:none}.map-title svg{color:#b1ab85}.map-title small{display:block;font:9px Arial;letter-spacing:0;color:#9aa996;margin-top:6px}.map-tag{top:20px;font-size:9px;letter-spacing:.5px;padding:9px 12px;background:#122021c7;border:1px solid #6a7a5b40;border-radius:4px;color:#b7bba1}.map-controls,.map-tag{position:absolute;right:18px}.map-controls{top:80px;display:flex;flex-direction:column;border:1px solid #5a6b5f80;border-radius:5px;background:#142321de;padding:3px}.map-controls button{border:0;background:none;min-height:31px;width:32px;padding:5px;color:#c0cab6}.map-controls hr{width:20px;border:0;border-top:1px solid #60726066;margin:3px auto}.map-legend{position:absolute;bottom:19px;left:20px;display:flex;gap:16px;font-size:9px;color:#b0bcae;pointer-events:none}.map-legend span{display:flex;gap:6px;align-items:center}.map-legend span:last-child{color:#71877c;margin-left:10px}.map-legend i{width:6px;height:6px;border-radius:2px;background:#9ba38e}.map-legend .own{background:var(--gold)}.map-legend .ally{background:#66a6ab}.minimap{position:absolute;bottom:19px;right:18px;width:140px;height:112px;border:1px solid #87937065;background:#162b25db;cursor:pointer;border-radius:4px;box-shadow:0 5px 20px #0004}.minimap svg{width:100%;height:94px}.minimap small{display:block;font-size:7px;letter-spacing:1.5px;text-align:center;color:#b4b797}.below-map{display:grid;grid-template-columns:1.15fr 1fr;gap:18px;margin-top:19px}.panel{border:1px solid var(--border);border-radius:7px;background:var(--panel);padding:21px}.below-map .panel{padding:0 18px}.panel-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #303b3b;padding:13px 0}.panel-heading h3{display:flex;align-items:center;gap:8px;font-size:12px;margin:0}.panel-heading h3 svg{color:var(--gold)}.panel-heading h3 span{font-size:9px;color:#657a77;border:1px solid #3c4845;border-radius:3px;padding:2px 5px}.panel-heading button{font-size:9px;border:0;padding:0;background:none;color:#a1b0ab;min-height:20px}.count{font-size:9px;background:#293737;border-radius:3px;padding:2px 6px;color:#9aac9d}.empty-inline{display:flex;align-items:center;gap:12px;min-height:90px;color:#a7b0aa;font-size:11px}.empty-inline>svg{color:#6b8076}.empty-inline small{display:block;font-size:9px;color:#6f827b;margin-top:6px}.empty-inline button{margin-left:auto;min-height:28px;padding:6px;color:var(--gold)}footer{margin:25px 0 20px;display:flex;justify-content:space-between;font-size:9px;color:#607371}footer span{display:flex;align-items:center;gap:7px}footer i{font-style:normal;margin:0 3px;color:#3d5452}footer svg{color:#8a7f57}.gold{background:linear-gradient(135deg,#d3b67b,#b3955e)!important;color:#1b2424!important;border:1px solid #d4b775!important;font-size:11px;font-weight:650}.gold:hover{filter:brightness(1.1)}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.cards .panel>h3{font-family:Georgia,serif;font-size:20px;font-weight:400;margin-top:17px}.cards p{font-size:11px;min-height:36px}.cards .gold,.cards .working{width:100%;margin-top:12px;justify-content:space-between}.building-top{display:flex;align-items:center;justify-content:space-between}.building-icon{width:59px;height:59px;display:grid;place-items:center;border:1px solid #4c594c;background:radial-gradient(#39483b,#25312c);border-radius:9px;color:#b9bb9c}.building-icon.academy,.building-icon.keep{color:var(--gold);background:radial-gradient(#4e4330,#292b27);border-color:#675c3f}.building-icon.hospital{color:#94bca6}.building-icon.research{color:#a1acc8}.level{font-size:9px;border:1px solid #45504b;border-radius:4px;padding:4px 7px;color:#bcb793}.cost-row{gap:5px;font-size:10px;color:#aeb39d;border-top:1px solid #303b39;padding-top:14px;margin-top:16px}.cost-row,.cost-row>span{display:flex;align-items:center}.cost-row>span{margin-left:auto;gap:4px;color:#7e9590}.section-line{display:flex;align-items:center;justify-content:space-between;margin:20px 0 15px}.section-line h2{font-size:25px}.section-line label,.section-line>span{font-size:10px;color:var(--muted)}.castle-banner{display:flex;align-items:center;gap:27px;background:radial-gradient(ellipse at 25% 60%,#4d5430,#1b2c29 60%);border:1px solid #515d43;border-radius:7px;padding:31px}.castle-banner>svg{color:#c1b486;filter:drop-shadow(5px 10px 8px #0009)}.castle-banner h2{font-size:35px}.castle-banner p{margin-bottom:8px}.castle-banner span{color:#a4b69d;font-size:11px}.castle-banner button{margin-left:auto;background:#172c2499}.log{display:flex;gap:25px;padding:12px 4px;border-bottom:1px solid #2c3835;color:#b8c2b9;font-size:11px}.log span{color:#6d857b;min-width:130px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.stats>div{background:var(--panel);border:1px solid var(--border);border-radius:7px;padding:22px;position:relative;display:flex;flex-direction:column;gap:10px}.stats svg{position:absolute;right:20px;top:25px;color:#a0926d}.stats small{font-size:9px;letter-spacing:1px}.stats strong{font-family:Georgia;font-size:30px;font-weight:400;color:#e4d0a0}.unit{position:relative}.unit .level{position:absolute;right:18px;top:23px}.unit-emblem{height:90px;color:#c5b18c;display:flex;align-items:center;background:radial-gradient(ellipse at 20% 50%,#78643e25,transparent 70%)}.unit-stats{display:flex;gap:25px;font-size:11px;color:#a9b7ae}.unit-stats span{display:flex;gap:6px;align-items:center}.number{width:75px;margin-left:9px}.full-queue{margin-top:24px;padding-top:0;padding-bottom:0}.queue-row{display:flex;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid #2d3a36;font-size:11px}.queue-row>svg{color:#a89c74}.queue-row>div{flex:1 1}.queue-row strong{font-size:11px;font-weight:500}.queue-row>span{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;color:var(--gold);font-size:10px}.queue-row small{display:block}.queue-row button{font-size:9px;color:var(--gold);min-height:27px}.progress{height:4px;background:#34413a;margin-top:10px;border-radius:3px;overflow:hidden}.progress i{display:block;background:#c7ac71;height:100%}.march-row{padding:12px 0;display:flex;align-items:center;gap:10px;color:#b4bbab;font-size:10px}.march-row strong{margin-left:auto;font-size:10px;color:var(--gold)}.notice{display:flex;gap:17px;align-items:center;background:linear-gradient(110deg,#28332c,#192525);border:1px solid #414e3f;border-radius:7px;padding:20px 24px;margin-bottom:23px}.notice>svg{color:var(--gold);flex-shrink:0}.notice strong{font-size:13px;font-weight:500}.notice p{margin:5px 0 0;font-size:11px}.notice>button,.notice>span{margin-left:auto;font-size:10px;color:#acbcad}.tech .building-top svg{color:#b5a17a}.tech.locked{background:#182022}.tech small{font-size:9px;display:block;margin-top:14px}.tech-levels{display:flex;gap:4px;margin-top:20px}.tech-levels i{height:5px;flex:1 1;background:#344039}.tech-levels i.filled{background:var(--gold)}.dominion{text-align:center;padding:38px 20px 32px;border:1px solid #625437;background:radial-gradient(ellipse at 50% 0,#51442c50,transparent 70%),#1b2424;border-radius:7px;margin-bottom:23px}.dominion>svg{color:var(--gold);margin-bottom:20px;filter:drop-shadow(0 0 25px #dab46533)}.dominion h2{font-size:35px;color:#e8d6b4}.dominion p{font-size:12px}.dominion strong{color:#d8bc7c;font-weight:500}.clan-create{display:flex;gap:12px;align-items:center;margin-bottom:25px}.clan-create>div{flex:1 1}.clan-create h2{margin-top:0}.clan-create p{font-size:11px;margin:0}.clan-create input{width:170px}.clan-create .tag-input{width:65px}.clan-crest{display:flex;gap:15px;align-items:center;color:var(--gold)}.clan-crest span{font-family:Georgia;font-size:24px}.badge{padding:5px 8px;border:1px solid #60634366;border-radius:3px;font-size:9px;color:#c7bf8e;display:inline-block;white-space:nowrap}.tabs{display:flex;gap:8px;margin-bottom:20px}.tabs button{min-width:100px}.table{padding:0 22px}.table-row{display:grid;grid-template-columns:100px 1fr 140px 110px;align-items:center;min-height:68px;border-bottom:1px solid #303c38}.table-row>span:last-child,.table-row>strong:last-child{text-align:right}.table-head{font-size:9px;letter-spacing:1.2px;color:#6d827b;min-height:48px}.table-row strong{font-weight:500}.position{font-family:Georgia;font-size:20px;color:var(--gold);padding-left:15px}.me{background:#b79d5220;margin:0 -22px;padding:0 22px}.muted{font-size:11px;color:#7d9189}.table-row small{font-size:8px;color:var(--gold);padding-left:8px}.empty{min-height:260px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.empty>svg{color:#8b9273;margin:20px}.empty h2{margin:0}.empty p{font-size:12px;max-width:400px}.report-row{width:100%;border:0;border-bottom:1px solid var(--border);background:transparent;text-align:left;justify-content:flex-start;border-radius:0;padding:14px 0;gap:15px}.report-row>div:nth-child(2){flex:1 1}.report-row strong{font-weight:500}.report-row strong span{color:#6f8077;padding:0 9px}.report-row small{display:block;margin-top:7px;font-size:10px}.result{width:42px;height:42px;border-radius:5px;display:grid;place-items:center;background:#688d6e22;color:#9bb58f}.result.loss{background:#ba6b4c20;color:#bd866f}.green{color:#92bfa3}.big-number{font-family:Georgia;font-size:32px;color:#dbdbc6}.big-number small{font-family:Arial}.mission{display:flex;align-items:center;gap:25px;padding:30px}.mission-icon{border:1px solid #746344;background:#443e2c44;padding:25px;border-radius:10px;color:var(--gold)}.mission>div:nth-child(2){flex:1 1}.mission p{font-size:12px}.reward{display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--gold);padding:0 25px}.reward strong{font-family:Georgia;font-size:23px}.event{padding:0;overflow:hidden}.event-art{height:190px;display:grid;place-items:center;font-family:Georgia;font-size:100px;position:relative;background:radial-gradient(ellipse at 50% 80%,#a86a3544,#24282b 65%);color:#c79b69}.event-art>span{position:absolute;bottom:21px;font:9px Arial;letter-spacing:4px;color:#af987b}.event-11 .event-art{background:radial-gradient(ellipse at 50% 80%,#5e919b44,#232c2c 65%);color:#a0bdba}.event-3 .event-art{background:radial-gradient(ellipse at 50% 80%,#72944744,#26302b 65%);color:#a5b985}.event-content{padding:22px}.event h2{font-size:27px}.event p{min-height:55px}.event .gold-text{min-height:auto;color:var(--gold);font-size:10px}.admin-form{max-width:700px}.field{flex-direction:column;gap:8px;font-size:11px;color:#a6b4a8}.checkbox,.field{display:flex;margin:15px 0}.checkbox{gap:9px;align-items:center}.admin-form button{margin:8px 8px 8px 0}.danger{color:#d6a292;border-color:#77564c}.profile-edit{display:flex;align-items:center;gap:15px;margin-bottom:25px}.profile-edit h2{margin-right:auto}.guide-number{font:35px Georgia;color:var(--gold)}.cards+.notice{margin-top:24px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;display:flex;align-items:center;gap:12px;background:#2b3932;border:1px solid #8f885d;box-shadow:0 8px 40px #0009;padding:12px 18px;border-radius:7px;color:#e6dbc2}.toast>svg{color:var(--gold)}.toast button{padding:0;border:0;background:none;min-height:20px}.saving{position:fixed;top:0;right:0;z-index:100;background:var(--gold);color:#17241e;padding:7px 20px;font-size:11px}.castle-popup{position:absolute;left:24px;bottom:55px;width:310px;border:1px solid #89754a;background:#172322f5;box-shadow:0 10px 50px #0008;border-radius:7px;padding:24px;max-height:calc(100% - 90px);overflow:auto}.close{position:absolute;right:10px;top:9px;border:0;background:none;color:#9bac9d;padding:3px;min-height:24px}.castle-popup h2{font-size:25px;margin-top:12px}.castle-popup p{font-size:10px}.castle-popup .eyebrow{font-size:8px}.army-select{border-top:1px solid #394a3c;padding-top:8px}.army-select label{justify-content:space-between;font-size:11px;margin:5px 0}.army-select input{width:68px;padding:4px 6px}.army-select small{font-size:9px;color:#6d8577}.castle-popup .gold{width:100%}.modal-backdrop{position:fixed;inset:0;background:#030b0dd9;z-index:90;display:flex;justify-content:center;align-items:center;padding:20px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.report-modal{width:760px;max-height:90vh;overflow:auto;position:relative;padding:30px}.combat-table>div{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:12px;font-size:11px;border-bottom:1px solid #344139;padding:9px}.combat-table b{font-size:9px;color:#9caa90}.report-modal h3{margin-top:25px;color:var(--gold)}.report-buildings{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;font-size:10px}.report-buildings span{display:flex;justify-content:space-between;background:#26332b;padding:10px}.loading{height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(#344133,#101719 60%)}.loading>svg{color:var(--gold)}.loading h1{font-family:Georgia;letter-spacing:6px;font-size:34px;color:#ddc493;margin-top:30px}.loading a,.loading button{margin:8px}.working{color:var(--gold);font-size:10px}.button{display:inline-flex}@media(min-width:1600px){.map-container{height:620px}.sidebar{width:255px}.main{margin-left:255px;width:calc(100% - 255px)}.cards.buildings{grid-template-columns:repeat(4,1fr)}}@media(max-width:1200px){.sidebar{width:210px;padding-left:12px;padding-right:12px}.brand{font-size:18px}.main{margin-left:210px;width:calc(100% - 210px)}main{padding:25px 22px 0}.topbar{padding:0 20px;gap:13px}.resources{gap:18px}.castle-switch>span{display:none}.castle-switch select{max-width:132px}.resources small{font-size:8px}.heading-status,.map-legend span:last-child{display:none}.cards{gap:12px}.panel{padding:17px}.clan-create{flex-wrap:wrap}.clan-create>div{min-width:100%}.mission{gap:15px}.mission-icon{padding:18px}.mission>button{max-width:140px}}@media(max-width:950px){.sidebar{width:75px;padding:20px 9px}.brand{padding:0 10px 25px}.brand>div,.nav-label,.profile>button,.profile>div:not(.avatar),.realm,.side-bottom .season,.side-bottom>button,nav button>b,nav button>span{display:none}nav button{justify-content:center;padding:13px;margin-bottom:3px}nav button.active{padding-left:11px}.side-bottom{padding-top:15px}.profile{justify-content:center}.main{margin-left:75px;width:calc(100% - 75px)}h1{font-size:33px}.topbar{padding:0 15px}.castle-switch{display:none}.resources{margin-left:0;flex:1 1;justify-content:space-between}.resources>div{column-gap:4px}.cards{grid-template-columns:repeat(2,1fr)}.event-grid{grid-template-columns:1fr}.event{display:flex}.event-art{min-width:220px;height:auto}.map-container{height:510px}.map-tag{display:none}.below-map{grid-template-columns:1fr}.castle-banner>svg{width:65px}.notice{flex-wrap:wrap}.notice>span{margin-left:40px}.mission,.profile-edit{flex-wrap:wrap}.profile-edit h2{width:100%}.table-row{grid-template-columns:70px 1fr 90px 75px}.report-buildings{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.sidebar{width:57px;padding:15px 5px}.brand{padding:0 8px 24px}.brand svg{width:25px}nav button{padding:11px 7px}nav button svg{width:18px}.main{margin-left:57px;width:calc(100% - 57px)}main{padding:22px 12px 0}.topbar{height:65px;padding:0 10px;gap:9px}.resources{gap:6px}.resources>div{display:flex;flex-direction:column;gap:3px}.resources svg{width:14px;height:14px}.resources strong{font-size:10px}.notifications,.resources small{display:none}.premium{padding:6px;font-size:10px}.premium svg{width:13px}.premium svg:last-child{display:none}.eyebrow{font-size:7px;letter-spacing:1.5px}h1{font-size:29px}.page-heading p{font-size:10px}.page-heading{margin-bottom:20px}.map-toolbar{padding:7px}.map-toolbar>div button:nth-child(2){display:none}.map-toolbar form input{width:95px;font-size:9px}.map-toolbar form>svg{display:none}.map-toolbar button{padding:5px;font-size:9px}.map-title{left:15px;top:18px;font-size:9px}.map-title svg{display:none}.map-container{height:500px}.map-legend{left:12px;gap:9px;font-size:7px;bottom:15px}.minimap{width:90px;height:77px;bottom:45px;right:12px}.minimap svg{height:61px}.minimap small{font-size:6px}.map-controls{right:12px;top:65px}.map-controls button{width:26px;min-height:27px}.below-map{gap:12px}.below-map .panel{padding:0 12px}.panel-heading h3{font-size:10px}.panel-heading button{font-size:8px}.empty-inline{font-size:10px}.empty-inline small{font-size:8px}footer{font-size:7px}footer>span:last-child{display:none}.cards{grid-template-columns:1fr}.section-line{gap:10px}.section-line h2{font-size:22px}.section-line>span{font-size:8px}.castle-banner{padding:20px;gap:14px;flex-wrap:wrap}.castle-banner>svg{display:none}.castle-banner h2{font-size:29px}.castle-banner button{margin-left:0}.stats{gap:7px}.stats>div{padding:12px}.stats svg{display:none}.stats small{font-size:7px;letter-spacing:0;min-height:20px}.stats strong{font-size:23px}.notice{padding:15px;gap:12px}.notice>svg{width:20px}.notice>div{max-width:calc(100% - 40px)}.notice p{font-size:10px}.notice strong{font-size:11px}.dominion h2{font-size:30px}.clan-create input{width:calc(100% - 80px)}.table{padding:0 12px}.table-row{grid-template-columns:40px 1fr 48px 65px;font-size:10px}.table-head{font-size:7px}.position{padding-left:3px;font-size:17px}.me{margin:0 -12px;padding:0 12px}.mission{padding:20px}.mission-icon{display:none}.mission h2{font-size:25px}.reward{padding:0 8px}.mission>div:nth-child(2){min-width:60%}.event{display:block}.event-art{height:150px}.castle-popup{left:10px;bottom:40px;width:calc(100% - 20px);padding:20px}.modal-backdrop{padding:10px}.report-modal{padding:20px 13px}.combat-table>div{gap:6px;padding:9px 3px;font-size:9px}.combat-table b{font-size:8px}.report-buildings{grid-template-columns:1fr}.toast{width:85%;font-size:11px}.queue-row button{padding:5px;font-size:8px}.profile-edit input{width:100%}.event-content p{min-height:auto}}:root{--bg:#111619;--panel:#1d2427;--border:#444437;--gold:#d7b878;--text:#eee8da;--muted:#a0a497}.visual-era{background:radial-gradient(ellipse at 80% 0,#79613a1c,transparent 55%),#101719}.visual-era .sidebar{background:linear-gradient(95deg,#192123,#11191d);border-right:1px solid #9b804137;box-shadow:6px 0 25px #0003;width:216px}.visual-era .main{margin-left:216px;width:calc(100% - 216px)}.visual-era .brand{font-size:18px;letter-spacing:2px;padding-left:4px}.visual-era .brand>svg{filter:drop-shadow(0 2px 4px #0008)}.visual-era .topbar{background:linear-gradient(#2e3330,#172024);height:82px;border-bottom:1px solid #9b8256;box-shadow:0 5px 20px #0004;gap:20px;padding:0 25px;position:relative;z-index:35}.visual-era .topbar:after{content:"";position:absolute;left:0;right:0;bottom:3px;height:1px;background:#b7a16b2c;pointer-events:none}.visual-era .castle-switch{background:linear-gradient(125deg,#b08f4120,transparent);border:1px solid #977d473b;padding:11px 9px;border-radius:3px;gap:6px}.visual-era .castle-switch select{font-size:11px;max-width:145px}.visual-era .castle-switch>span{display:none}.visual-era .resources{gap:25px}.visual-era .resources>div{grid-template-columns:27px auto;column-gap:9px;min-width:74px}.visual-era .resources>div>svg{grid-row:span 3;width:26px;height:26px;color:#bca778;filter:drop-shadow(0 2px 2px #0008)}.visual-era .resources label{font-size:8px;letter-spacing:1px;text-transform:uppercase;color:#9ea38e}.visual-era .resources strong{font-size:14px;color:#ede4cf}.visual-era .resources small{font-size:8px}.visual-era .premium{height:39px;border-radius:3px;background:linear-gradient(120deg,#6b5531,#2e2d23)!important;box-shadow:inset 0 0 0 2px #0c171740;color:#f4d395!important}.visual-era .panel{background:linear-gradient(125deg,#272c28,#192124 65%);border-color:#52503b80;box-shadow:0 4px 18px #0002}.visual-era nav button.active{background:linear-gradient(90deg,#b49b5740,#8b76461a);box-shadow:inset 0 1px #e3ca8120,inset 0 -1px #e3ca8120;color:#f1d496}.visual-era main{padding:25px 26px 0}.visual-era .page-heading{margin-bottom:20px}.visual-era .page-heading h1{font-size:34px;letter-spacing:.1px}.visual-era .page-heading p{color:#8f9d93;font-size:11px}.visual-era .gold{background:linear-gradient(#dfc18a,#ba985c)!important;border-color:#d4bb81!important;border-radius:3px;text-shadow:0 1px #fff3;box-shadow:inset 0 0 0 1px #f4dfad50,0 3px 6px #0003}.visual-era .map-container{height:580px;border-color:#977f4d7a;border-radius:0 0 3px 3px;box-shadow:0 15px 35px #0003}.visual-era .map-toolbar{border-color:#977f4d7a;border-radius:3px 3px 0 0;background:linear-gradient(#29312d,#1a2527);padding:9px 14px}.visual-era .map-title{color:#fff0c9;text-shadow:0 2px 4px #000;top:22px}.visual-era .map-title small{color:#d0d3b5}.visual-era .map-tag{background:#172323df;border-color:#b8a26970}.visual-era .map-controls{background:linear-gradient(#30362a,#182826);border-color:#a7915b80;box-shadow:0 2px 10px #0005}.visual-era .map-controls button{min-height:38px;width:36px;color:#ecd6a1}.visual-era .map-legend{color:#e0e0c1;text-shadow:0 1px 3px black}.visual-era .map-legend span:last-child{color:#b8c5a5}.visual-era .castle-popup{border-radius:3px;border-color:#ac8f50;background:linear-gradient(130deg,#2a3128,#162127);box-shadow:0 15px 50px #0009}.visual-era .minimap{border:2px solid #958359;box-shadow:0 0 0 3px #18211d,0 5px 12px #0008}.visual-era .dominion{background:radial-gradient(ellipse at top,#71604555,transparent 70%),linear-gradient(#26312b,#172123);border-color:#8e754650}.visual-era .loading{background:linear-gradient(#0d1a22b0,#10171ae8),url(/art/terrain-v2.webp) 50%/cover}.mobile-bottom-nav,.mobile-menu-backdrop,.mobile-menu-trigger{display:none}.view-castle .page-heading{margin-bottom:16px}.view-castle .page-heading h1{font-size:26px;margin:5px 0}.view-castle .page-heading p{display:none}.view-castle .page-heading .eyebrow{font-size:8px}.castle-experience{border:1px solid #8f774b9e;border-radius:5px;background:#182126;box-shadow:0 10px 35px #0005;position:relative}.castle-view-header{display:flex;align-items:center;gap:12px;padding:14px 18px;background:linear-gradient(#2e3430,#1c2526);border-bottom:1px solid #b1945a80;position:relative}.castle-view-header:after{position:absolute;content:"";bottom:3px;left:7px;right:7px;height:1px;background:#b19a5a2c}.city-crest{height:43px;width:40px;display:grid;place-items:center;clip-path:polygon(5% 0,95% 0,95% 70%,50% 100%,5% 70%);background:linear-gradient(#a18a53,#6f5931);border:1px solid #f3d58a;color:#fff0c1;filter:drop-shadow(0 2px 3px black)}.castle-view-header>div:nth-child(2)>span{font-size:7px;letter-spacing:1.8px;color:#b3a47d}.castle-view-header h2{margin:3px 0 0;font-size:25px;color:#f0ddaf}.city-stats{display:flex;margin-left:auto;gap:20px;font-size:10px;color:#babba5}.city-stats>span{display:flex;align-items:center;gap:5px}.city-stats svg{color:#bca272}.city-stats b{font-weight:500;color:#e1d7b9}.city-map-link{background:#14242655;font-size:10px;border-color:#8c78564d;color:#d5c39e;padding:8px 10px}.city-stage-shell{isolation:isolate;background:#58553d}.city-viewport{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#8c7848 #1a2825;-webkit-overflow-scrolling:touch}.city-stage{position:relative;aspect-ratio:1.5;min-width:820px;overflow:hidden}.city-stage:after{content:"";box-shadow:inset 0 20px 40px #111d2455,inset 0 -40px 40px #151e2777;z-index:100}.city-stage:after,.courtyard-sun{position:absolute;inset:0;pointer-events:none}.courtyard-sun{background:linear-gradient(130deg,#e9d0950a,transparent 55%,#152b2d10)}.city-lot{position:absolute;aspect-ratio:1;min-height:0;border:0;border-radius:0;background:transparent!important;padding:0;transform:translate(-50%,-78%);display:block;transition:filter .18s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.city-lot:focus-visible,.city-lot:hover{border:0;filter:brightness(1.15);outline:0}.building-art{width:100%;aspect-ratio:1;background-image:none;background-repeat:no-repeat;background-size:400% 400%;pointer-events:none}.city-lot .building-art{position:relative;z-index:2;filter:drop-shadow(5px 8px 3px #18202045);transition:filter .2s,transform .2s}.city-lot:hover .building-art{transform:translateY(-3px);filter:drop-shadow(0 0 5px #f4d59070)}.city-lot:focus-visible .building-art,.lot-selected .building-art{filter:drop-shadow(0 0 3px #ffdfa9) drop-shadow(0 0 8px #ffe5b6aa)}.lot-shadow{position:absolute;left:15%;bottom:4%;width:70%;height:24%;border-radius:50%;background:#26342c2c;filter:blur(5px);z-index:1}.lot-selected .lot-shadow{background:#f6d78366;outline:2px solid #edd293;filter:none;transform:scale(1.15)}.city-lot .lot-caption{position:absolute;left:50%;bottom:-3%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;white-space:nowrap;z-index:5;box-shadow:0 2px 5px #0006;background:linear-gradient(#28302beb,#142423ed);border:1px solid #b59c63b0;border-radius:2px;padding:4px 5px 4px 8px;max-width:180px;font-size:9px;line-height:1.2;color:#efe3bf;pointer-events:none}.lot-caption>span{overflow:hidden;text-overflow:ellipsis}.lot-caption b{font-weight:500;font-size:8px;background:#ab8c402b;border-left:1px solid #88754266;padding:2px 3px 2px 7px;display:flex;align-items:center;gap:3px;color:#e0bd77}.hide-label:not(.lot-selected):not(:hover):not(:focus-visible) .lot-caption{opacity:0}.vacant .building-art{opacity:.8;filter:drop-shadow(0 2px 2px #342a2566)}.vacant .lot-caption{border-style:dashed;border-color:#f5dd9a9e;background:#1b2b25da}.vacant .lot-caption b{background:none;color:#e8d497}.build-plus{position:absolute;left:50%;top:55%;transform:translate(-50%,-50%);z-index:4;display:grid;place-items:center;width:32px;height:32px;color:#f5dd9e;border:1px solid #d9b975;background:linear-gradient(#6f6941dd,#2e3c2ada);border-radius:50%;box-shadow:0 0 0 4px #e6d08919,0 4px 12px #0005}.vacant:hover .build-plus{background:#d6b477;color:#25312a}.lot-progress{position:absolute;bottom:-7%;left:24%;width:52%;height:4px;background:#233329;border:1px solid #cfbb8a66;z-index:5;box-shadow:0 2px 4px #0005}.lot-progress i{display:block;height:100%;background:#e8c97e}.under-construction .lot-caption{border-color:#e3c779}.hearth-smoke{position:absolute;left:52%;top:15%;width:8%;height:15%;z-index:4;background:radial-gradient(ellipse,#c8c4af66,transparent 70%);filter:blur(4px);animation:chimney 5s ease-out infinite;pointer-events:none}.torch{position:absolute;bottom:12%;width:5px;height:12px;z-index:99;border-radius:50%;background:#ffe5a1;box-shadow:0 0 10px 3px #ffab5155;animation:flicker 2s infinite alternate}.torch-left{left:43.5%}.torch-right{left:57.5%}.city-scene-title{position:absolute;top:15px;left:19px;z-index:110;display:flex;gap:10px;align-items:center;font-size:9px;color:#f5e9c0;letter-spacing:2px;text-shadow:0 2px 5px #000;pointer-events:none}.city-scene-title .ornament{color:#ebc780;font-size:24px}.city-scene-title small{display:block;font-size:8px;letter-spacing:.25px;margin-top:4px;color:#e1d6b8}.city-view-tools{position:absolute;top:14px;right:15px;display:flex;gap:6px;z-index:110}.city-view-tools button{width:33px;height:33px;min-height:33px;padding:6px;border:1px solid #bea37199;background:linear-gradient(#374032ea,#1a2b28e6);color:#e7d9ae;border-radius:3px;box-shadow:0 2px 5px #0004}.city-hint{position:absolute;bottom:12px;left:18px;right:18px;z-index:110;display:flex;justify-content:space-between;gap:12px;pointer-events:none;font-size:8px;color:#ded8bc;text-shadow:0 1px 4px black}.city-hint i{display:inline-block;width:5px;height:5px;background:#e1ca83;border-radius:50%;margin-right:6px}.mobile-city-hint{display:none}.building-drawer{position:absolute;right:0;top:0;bottom:0;width:345px;max-width:100%;z-index:150;background:linear-gradient(130deg,#31372e,#1b2828 40%,#132026);box-shadow:-12px 0 40px #0008;border-left:1px solid #c8a976;display:flex;flex-direction:column;outline:0;animation:drawer-in .2s ease-out}.drawer-close{position:absolute;top:10px;right:10px;width:30px;height:30px;min-height:30px;background:#172221d9;border-color:#bca57466;border-radius:50%;padding:5px;z-index:5;color:#e3cda6}.drawer-hero{display:flex;align-items:center;gap:7px;padding:12px 18px 12px 6px;min-height:125px;border-bottom:1px solid #c6a45f50;position:relative;background:radial-gradient(ellipse at 20% 90%,#cfa56325,transparent 70%)}.drawer-hero>.building-art{width:113px;flex-shrink:0;filter:drop-shadow(0 5px 5px #0007)}.drawer-hero .eyebrow{font-size:6px;letter-spacing:1.2px;display:block;padding-right:15px}.drawer-hero h2{font-size:25px;line-height:1;margin:8px 0;color:#f0ddba}.drawer-level{font-size:9px;color:#b7ba9e}.drawer-body{padding:17px 20px 25px;overflow-y:auto;overscroll-behavior:auto;scrollbar-width:thin;scrollbar-color:#8b7c50 #1a2724;min-height:0}.drawer-body>p{font-size:11px;color:#afb6a4;margin-top:0}.building-next{display:flex;justify-content:space-between;align-items:center;margin:16px 0;color:#c1bea4;font-size:10px}.building-next strong{display:flex;align-items:center;gap:8px;color:var(--gold);font-family:Georgia;font-size:19px;font-weight:400}.building-next svg{color:#748276}.upgrade-resources{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;border:1px solid #8a7a4b4d;padding:9px;background:#111f235c;border-radius:3px;margin-bottom:12px}.upgrade-resources span{display:flex;flex-direction:column;gap:5px;text-align:center;border-right:1px solid #a18e4c33}.upgrade-resources span:last-child{border:0}.upgrade-resources small{font-size:8px;color:#929d89}.upgrade-resources b{font-size:12px;font-weight:500;color:#e0d3a7}.upgrade-resources .insufficient b{color:#d99479}.build-primary{width:100%;justify-content:space-between;min-height:40px;font-size:10px!important}.build-primary>span{display:flex;gap:4px;align-items:center;font-size:9px;color:#433c27}.build-in-progress>span{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--gold)}.build-in-progress button{width:100%;margin-top:14px;color:var(--gold);font-size:10px}.drawer-body h3{font-family:Georgia;font-size:15px;font-weight:400;margin:23px 0 14px;color:#dbd2ae}.drawer-body .missing-note{color:#d2a480;font-size:9px;line-height:1.5;margin:9px 0}.drawer-tabs{display:flex;gap:5px;padding-bottom:8px;margin-bottom:13px;border-bottom:1px solid #7f744148}.drawer-tabs button{flex:1 1;font-size:10px;padding:7px 8px;min-height:32px;background:#172524;color:#99a995;border-color:#65714e40}.drawer-tabs .selected{background:#b59a4b25;border-color:#b6a05b90;color:#e7ca8e}.unlock-road{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 6px}.unlock-road>div{display:flex;align-items:center;flex-direction:column;gap:6px;font-size:9px;border:1px solid #57644766;border-radius:3px;background:#101f1f55;padding:9px 2px;color:#6e8174}.unlock-road>div>span{width:20px;height:20px;display:grid;place-items:center;border-radius:50%;border:1px solid #5c6f5366}.unlock-road b{font-weight:500;font-size:8px}.unlock-road small{font-size:8px;color:#9aab97}.unlock-road .unlocked{border-color:#bb9e5870;background:#aa96551a;color:#dac48b}.unlock-road .unlocked>span{border-color:#bd9e58aa}.drawer-body .drawer-note{font-size:9px;color:#92a18c;line-height:1.7;margin:14px 0}.facility-action{margin-top:18px;padding-top:14px;border-top:1px solid #7b75404d}.facility-action p{font-size:10px}.facility-action>button{width:100%;font-size:10px;margin-top:12px;border-color:#9a874b66;color:#dbcb9e}.facility-link{margin-top:20px;width:100%;background:#68714a30;border-color:#9c8a4b77;font-size:11px;color:#d6cda4;justify-content:space-between}.recruit-quantity{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#b3b79e;margin:0 0 15px}.recruit-quantity input{width:70px;padding:7px}.recruit-card{background:linear-gradient(135deg,#31372c,#1a2927);border:1px solid #a18b4f55;border-radius:4px;padding:13px;margin:11px 0}.recruit-card.is-locked{background:#13232380;border-color:#56654866}.recruit-card-head{display:flex;gap:9px;align-items:center}.unit-seal{width:33px;height:38px;display:grid;place-items:center;border:1px solid #a2935d66;border-radius:4px;background:linear-gradient(#5f5839,#303d2e);color:#e1cea3}.unit-seal svg{width:19px}.unit-horse{background:linear-gradient(#6b5849,#41382f)}.unit-noble{color:#efdca2;background:linear-gradient(#74633b,#4a4432)}.recruit-card h4{font-family:Georgia;font-weight:400;font-size:15px;margin:0 0 5px;color:#e5dbb8}.recruit-card-head small{font-size:7px;color:#9aa98e}.recruit-card-head>b{margin-left:auto;font-size:14px;font-weight:400;color:#d2bd88;text-align:right}.recruit-card-head>b>small{display:block;margin-top:3px;font-size:7px}.unit-metrics{display:flex;gap:10px;flex-wrap:wrap;font-size:8px;color:#acb59b;padding:11px 0}.unit-metrics span{display:flex;gap:3px;align-items:center}.unit-metrics svg{color:#a9a171}.recruit-card>.academy-link,.recruit-card>.gold{width:100%;font-size:9px;min-height:33px}.recruit-card>.academy-link{color:var(--gold);background:#b59b4e18;border-color:#a28b4a66}.locked-reasons{display:flex;gap:7px;font-size:8px;line-height:1.6;color:#bfaf83;background:#70634218;padding:7px 5px;border-top:1px solid #80704444;margin-bottom:8px}.locked-reasons svg{flex-shrink:0;margin-top:2px}.recruit-queue>div{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #6b714440;padding:10px 0;font-size:10px}.recruit-queue small{display:block;font-size:9px;color:var(--gold);margin-top:4px}.recruit-queue button{min-height:26px;font-size:9px;padding:5px 8px;color:var(--gold)}.market-trade label{display:flex;align-items:center;justify-content:space-between;margin:10px 0;font-size:10px;color:#b1baa2}.market-trade input,.market-trade select{width:140px;padding:7px}.market-trade p{font-size:10px}.market-trade button{width:100%;color:var(--gold)}.city-command-bar{display:flex;align-items:center;gap:16px;padding:14px 18px;min-height:72px;border-top:1px solid #ad8b4c8c;background:linear-gradient(#2a302a,#192326)}.city-command-bar>div:first-child{display:flex;gap:10px;align-items:center;color:#dcc794;font-size:11px;min-width:160px}.city-command-bar>div:first-child svg{color:#bc9d61}.city-command-bar small{display:block;color:#7f9685;font-size:8px;margin-top:5px}.city-command-bar>button{margin-left:auto;font-size:9px;flex-shrink:0;color:#bcbd9d;border-color:#92835666;background:#1c2927}.city-order-chips{display:flex;align-items:center;gap:6px;overflow:auto;scrollbar-width:none}.city-order-chips button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:#101f2359;border-color:#8f7a434d;min-width:110px;font-size:9px;padding:7px 9px}.city-order-chips b{font-size:8px;color:var(--gold);font-weight:400}.idle-orders{font-size:10px;color:#7f9485;font-style:italic}.city-chronicle{border-radius:0;border-left:0;border-right:0;margin:0}.expanded-city{position:fixed;inset:10px;z-index:70;display:flex;flex-direction:column}.expanded-city .city-stage-shell{flex:1 1;min-height:0;overflow:hidden}.expanded-city .city-viewport{height:100%;display:flex;justify-content:center;align-items:center}.expanded-city .city-stage{height:100%;width:auto;min-width:0;flex-shrink:0}.expanded-city .city-command-bar{flex-shrink:0}.army-overview-banner{display:flex;align-items:center;gap:25px;border:1px solid #89734770;background:radial-gradient(ellipse at 10% 50%,#7564423d,transparent 70%),linear-gradient(#293329,#182626);border-radius:5px;padding:16px 30px;margin-bottom:22px}.army-overview-banner>.building-art{width:180px;flex-shrink:0;filter:drop-shadow(0 10px 7px #0005)}.army-overview-banner h2{font-size:30px;color:#eddbb4;margin:8px 0}.army-overview-banner p{font-size:11px;max-width:410px}.army-rank{margin-left:auto;font-size:8px;letter-spacing:2px;text-align:center;color:#a99c7c}.army-rank strong{display:block;font-family:Georgia;font-size:46px;letter-spacing:0;color:#dec58f;font-weight:400;margin:10px 0}.troop-total{font-family:Georgia;font-size:30px;color:var(--gold);margin:12px 0 20px}.troop-total small{font-family:Arial;font-size:10px}.army-inventory>button{width:100%;font-size:10px;color:#d8c391;border-color:#a58d4a66}.army-inventory>p{min-height:28px;font-size:10px;margin-top:15px}.visual-era .toast{z-index:200;background:linear-gradient(#394232,#1b2b29);border-color:#c6a868}.visual-era .saving{z-index:220}.visual-era .modal-backdrop{z-index:210}@keyframes chimney{0%{transform:translate(0) scale(.6);opacity:0}30%{opacity:.6}to{transform:translate(9px,-22px) scale(2);opacity:0}}@keyframes flicker{0%{opacity:.6;transform:scale(.8)}to{opacity:1;transform:scale(1.1)}}@keyframes drawer-in{0%{transform:translateX(20px);opacity:.6}to{transform:translateX(0);opacity:1}}@media(min-width:1700px){.visual-era .sidebar{width:230px}.visual-era .main{margin-left:230px;width:calc(100% - 230px)}.city-stage{max-height:840px}.city-lot .lot-caption{font-size:11px}.lot-caption b{font-size:10px}.building-drawer{width:400px}.drawer-hero>.building-art{width:140px}.drawer-hero h2{font-size:29px}}@media(max-width:1200px){.visual-era .resources{gap:16px}.visual-era .castle-switch select{max-width:105px}.visual-era .resources>div{min-width:62px;column-gap:5px}.visual-era .topbar{gap:13px;padding:0 18px}.visual-era main{padding:22px 19px 0}.city-stats{gap:13px}.city-stats>span:first-child{display:none}.city-stage{min-width:820px}.building-drawer{width:325px}.army-overview-banner{gap:15px;padding:15px}.army-overview-banner>.building-art{width:140px}.army-overview-banner h2{font-size:26px}}@media(max-width:950px){.visual-era .sidebar{width:75px}.visual-era .main{margin-left:75px;width:calc(100% - 75px)}.visual-era .brand{padding:0 10px 25px}.visual-era .resources{justify-content:space-between;gap:15px}.visual-era .resources>div{min-width:65px}.visual-era .castle-switch{display:none}.visual-era .topbar{height:75px}.visual-era .page-heading h1{font-size:30px}.visual-era .sidebar .side-bottom>.active{display:flex}.city-view-header{padding:10px 15px}.city-scene-title small{font-size:7px}.city-map-link{font-size:9px}.city-command-bar{gap:12px;padding:12px}.city-command-bar>div:first-child{min-width:130px;font-size:10px}.city-command-bar>div:first-child svg{width:15px}.idle-orders{font-size:9px}.building-drawer{width:320px}.expanded-city .city-viewport{justify-content:flex-start}.expanded-city .city-stage{min-width:820px;width:100%;height:auto}.visual-era .map-container{height:560px}}@media(max-width:700px){.visual-era .sidebar{transform:translateX(-105%);width:248px;padding:24px 17px;transition:transform .2s;z-index:180;inset:0 auto 0 0;overflow-y:auto}.visual-era.menu-open .sidebar{transform:translateX(0)}.visual-era .main{margin-left:0;width:100%;padding-bottom:74px}.visual-era .sidebar .brand>div,.visual-era .sidebar .nav-label,.visual-era .sidebar .profile>button,.visual-era .sidebar .profile>div:not(.avatar),.visual-era .sidebar .realm,.visual-era .sidebar .season,.visual-era .sidebar nav button>span{display:block}.visual-era .sidebar .realm,.visual-era .sidebar .side-bottom>button{display:flex}.visual-era .sidebar nav button{justify-content:flex-start;padding:11px 13px;margin-bottom:0}.visual-era .sidebar nav button.active{padding-left:11px}.visual-era .sidebar .brand{padding:0 7px 24px;display:flex}.visual-era .sidebar .profile{justify-content:flex-start}.visual-era .sidebar .side-bottom{padding-top:20px}.mobile-menu-backdrop{display:block;position:fixed;inset:0;z-index:170;background:#050d13bc!important;border:0;border-radius:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.mobile-bottom-nav{display:flex;flex-direction:row;position:fixed;bottom:0;left:0;right:0;padding:7px 8px max(7px,env(safe-area-inset-bottom));z-index:160;border-top:1px solid #b29a626e;background:linear-gradient(#28312e,#121e23);box-shadow:0 -5px 22px #0005;gap:2px}.mobile-bottom-nav button{flex:1 1;display:flex;flex-direction:column;align-items:center;gap:4px;justify-content:center;border:0;background:none;border-radius:4px;padding:6px 3px;color:#94a393;min-height:44px;font-size:8px}.mobile-bottom-nav button.active{background:#d1b17415;border-left:0;box-shadow:none;color:#ebd39c}.mobile-bottom-nav button.active svg{color:#e6c487}.mobile-bottom-nav button svg{width:19px;height:19px}.mobile-menu-trigger{display:flex;width:29px;min-height:30px;padding:4px;background:none;border:0;color:#d0bc8e}.visual-era .topbar{position:sticky;top:0;height:69px;padding:0 10px;gap:7px;z-index:150}.visual-era .resources{gap:7px}.visual-era .resources>div{display:grid;min-width:0;grid-template-columns:auto;justify-items:center;gap:1px}.visual-era .resources>div>svg{width:16px;height:16px;grid-row:auto}.visual-era .resources>div>label{font-size:6px;letter-spacing:.3px}.visual-era .resources>div>strong{font-size:11px}.visual-era .resources small{display:none}.visual-era .premium{height:31px;min-height:31px;padding:5px;font-size:11px;gap:4px}.visual-era .premium svg{width:14px}.visual-era .notifications,.visual-era .premium svg:last-child{display:none}.visual-era main{padding:17px 12px 0}.visual-era .page-heading h1{font-size:28px}.view-castle .page-heading{margin-bottom:12px}.view-castle .page-heading h1{font-size:24px;margin:4px 0 0}.view-castle .page-heading .eyebrow{font-size:7px}.castle-view-header{padding:11px 10px;gap:9px}.city-crest{width:29px;height:35px}.city-crest svg{width:17px}.castle-view-header h2{font-size:21px;line-height:1}.castle-view-header>div:nth-child(2)>span{font-size:6px;letter-spacing:1px}.city-stats{gap:8px;font-size:9px}.city-stats>span:last-child{display:none}.city-map-link{padding:6px;min-height:29px}.city-map-link span{display:none}.city-stage{width:840px;min-width:840px;aspect-ratio:1.5}.city-scene-title{top:13px;left:13px;font-size:8px;letter-spacing:1.3px}.city-scene-title .ornament{font-size:19px}.city-scene-title small{font-size:7px}.city-view-tools{right:11px;top:11px;gap:4px}.city-view-tools button{width:30px;height:30px;min-height:30px}.city-hint{left:12px;right:12px;font-size:7px;gap:6px;bottom:12px}.desktop-city-hint{display:none}.mobile-city-hint{display:inline}.city-command-bar{flex-wrap:wrap;gap:10px;padding:12px}.city-command-bar>div:first-child{min-width:0;flex:1 1}.city-command-bar>button{order:2;font-size:8px;padding:7px;min-height:29px}.city-order-chips{order:3;width:100%}.city-command-bar small{font-size:7px;margin-top:3px}.idle-orders{font-size:9px}.city-order-chips:has(.idle-orders){display:none}.building-drawer{position:fixed;right:0;left:0;top:auto;bottom:0;width:100%;max-height:min(83dvh,800px);z-index:195;border-top:2px solid #c9aa69;border-left:0;border-radius:13px 13px 0 0;box-shadow:0 -15px 60px #000b;animation:drawer-up .2s ease-out;overflow:hidden}.building-drawer:before{content:"";position:absolute;left:calc(50% - 18px);top:5px;width:36px;height:3px;border-radius:3px;background:#c6ad7155;z-index:7}.drawer-hero{min-height:109px;padding:12px 20px 8px 13px;gap:8px;flex-shrink:0}.drawer-hero>.building-art{width:99px}.drawer-hero h2{font-size:28px}.drawer-hero .eyebrow{font-size:7px}.drawer-level{font-size:10px}.drawer-close{right:13px;top:13px;width:35px;height:35px}.drawer-body{padding:15px 20px max(24px,env(safe-area-inset-bottom));min-height:120px}.drawer-body,.drawer-body>p{font-size:12px}.building-next{font-size:11px}.upgrade-resources small{font-size:9px}.upgrade-resources b{font-size:13px}.build-primary{min-height:43px;font-size:11px!important}.drawer-tabs button{min-height:37px;font-size:11px}.unlock-road small{font-size:10px}.unlock-road b{font-size:9px}.drawer-body .drawer-note{font-size:10px}.recruit-card{padding:14px}.recruit-card h4{font-size:18px}.recruit-card-head small{font-size:9px}.recruit-card-head>b>small{font-size:8px}.unit-metrics{font-size:10px;gap:12px}.locked-reasons{font-size:10px;padding:9px 7px}.recruit-card>.academy-link,.recruit-card>.gold{font-size:10px;min-height:38px}.recruit-quantity{font-size:11px}.recruit-quantity input{font-size:16px;width:80px;padding:7px}.market-trade label{font-size:11px}.market-trade input,.market-trade select{font-size:16px}.expanded-city{inset:0;border-radius:0;z-index:165}.expanded-city .city-stage{width:auto;height:100%;min-width:840px;aspect-ratio:1.5}.expanded-city .city-viewport{display:block;overflow:auto}.expanded-city .city-command-bar{padding-bottom:max(12px,env(safe-area-inset-bottom))}.army-overview-banner{padding:17px 12px;gap:13px;position:relative;align-items:flex-start}.army-overview-banner>.building-art{width:94px;margin-top:13px}.army-overview-banner h2{font-size:25px}.army-overview-banner .eyebrow{font-size:6px;letter-spacing:1.4px}.army-overview-banner p{font-size:10px}.army-overview-banner .gold{font-size:9px}.army-rank{display:none}.visual-era .map-container{height:calc(100dvh - 290px);min-height:420px}.visual-era .map-controls button{min-height:38px;width:35px}.visual-era .map-title{left:13px;top:15px;font-size:9px}.visual-era .map-title small{font-size:8px}.visual-era .map-toolbar{padding:8px 7px}.visual-era .map-toolbar form input{width:115px}.visual-era .map-legend{font-size:8px;bottom:14px}.visual-era .map-legend span:last-child{display:none}.visual-era .minimap{bottom:43px;right:12px}.visual-era .castle-popup{position:fixed;left:0;right:0;bottom:0;width:100%;max-height:80dvh;z-index:195;border-radius:12px 12px 0 0;padding:22px 20px max(24px,env(safe-area-inset-bottom));border-top:2px solid #d0b479}.visual-era .castle-popup h2{font-size:29px}.visual-era .castle-popup p{font-size:11px}.visual-era .army-select label{font-size:12px;margin:9px 0}.visual-era .army-select input{font-size:16px;width:80px;padding:6px 8px}.visual-era .castle-popup .gold{min-height:42px}.visual-era .castle-popup .close{right:14px;top:12px;min-height:35px;width:35px}.visual-era .toast{bottom:85px;width:calc(100% - 28px);font-size:11px;padding:12px 14px}.visual-era .city-chronicle .log{flex-direction:column;gap:5px}.visual-era footer{margin-top:17px}.visual-era .clan-create input,.visual-era .field input,.visual-era .field select,.visual-era .profile-edit input{font-size:16px}.visual-era .page-heading .heading-status{display:none}}@keyframes drawer-up{0%{transform:translateY(25px);opacity:.6}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){.building-drawer,.hearth-smoke,.torch{animation:none}.city-lot .building-art{transition:none}}@media(max-width:700px){.view-castle:has(.building-drawer) .castle-experience,.view-map:has(.castle-popup) .map-container{z-index:190}.view-castle:has(.building-drawer) .expanded-city{z-index:190}}.lot-keep .lot-caption{bottom:8%}.city-lot:focus-visible,.city-lot:hover{z-index:120!important}@media(max-width:700px){.mobile-bottom-nav button>span{display:block!important;font-size:8px}.mobile-bottom-nav button{min-height:49px}}img.building-art{background:none!important;height:auto}.unit-art,img.building-art{display:block;object-fit:contain;-webkit-user-select:none;user-select:none}.unit-art{object-position:center bottom;width:100%;height:100%;filter:drop-shadow(0 8px 6px #0006)}.recruit-card-head>.unit-art{width:88px;height:100px;flex:0 0 88px}.recruit-card-head>div{min-width:0}.recruit-card-head h4{overflow-wrap:anywhere}.army-inventory .unit-emblem{height:210px;justify-content:center;background:radial-gradient(ellipse at 50% 80%,#a68b4633,transparent 65%);margin:-12px -8px 10px}.army-inventory .unit-art{width:230px;max-width:100%;height:210px}.city-stage{max-height:none;background-size:100% 100%}.city-lot .lot-caption{bottom:-5%;max-width:95%;white-space:normal;text-align:left;min-height:28px}.city-lot .lot-caption>span{overflow:visible;text-overflow:clip}.city-lot .lot-caption b{white-space:nowrap;flex-shrink:0}.lot-keep .lot-caption{bottom:-5%}@media(max-width:700px){.recruit-card-head>.unit-art{width:76px;height:90px;flex-basis:76px}.recruit-card-head{gap:8px}.recruit-card-head>b{font-size:16px}.army-inventory .unit-art,.army-inventory .unit-emblem{height:180px}.city-lot .lot-caption{font-size:9px}}.city-floating-label{position:absolute;z-index:140;transform:translate(-50%);pointer-events:none;background:#192821ed;border:1px solid #b59c6380;border-radius:3px;padding:4px 6px;box-shadow:0 2px 5px #0007;display:flex;align-items:center;gap:5px;max-width:15%;font-size:10px;line-height:1.2;color:#efe3bf}.city-floating-label b{font-size:8px;white-space:nowrap;color:#e0bd77;border-left:1px solid #88754266;padding-left:5px;font-weight:500}.city-floating-label.label-hidden{display:none}@media(max-width:700px){.city-floating-label{font-size:9px}}.player-avatar{width:34px;height:34px;object-fit:cover;border:1px solid #b49b63;border-radius:50%;flex:0 0 auto;vertical-align:middle}.player-badge{display:inline-flex;align-items:center;gap:8px;min-width:0;vertical-align:middle}.player-badge>span{overflow-wrap:anywhere}.player-badge .player-avatar{width:28px;height:28px}.resource-art{width:42px;height:42px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 2px 2px #0008)}.resources>div>.resource-art{grid-row:span 3;width:37px;height:37px}.resources>div{grid-template-columns:37px auto}.player-picker{position:relative;margin:12px 0;max-width:100%}.crest-editor label,.form-grid label,.player-picker label,.village-manager label{display:flex;flex-direction:column;gap:7px;color:#c2c9bd;font-size:12px}.player-picker input{width:100%}.player-results{max-height:220px;overflow:auto;background:#172421;border:1px solid #6f674e;border-radius:5px;position:relative;z-index:4;padding:5px}.player-results>button{display:flex;width:100%;justify-content:flex-start;margin:2px 0;background:transparent;border:0}.chosen-player{display:flex;align-items:center;justify-content:space-between;padding:8px;background:#d4b6770e}.chosen-player button{min-height:28px;padding:3px}.form-grid{display:grid;grid-template-columns:2fr 1fr;gap:12px}.heraldic-crest{display:inline-flex;position:relative;flex-direction:column;align-items:center;justify-content:center;width:88px;height:104px;clip-path:polygon(0 0,100% 0,96% 68%,80% 86%,50% 100%,20% 86%,4% 68%);border:3px solid #c6a96b;box-shadow:inset 0 0 12px #0008;color:#f0d99b;flex-shrink:0}.heraldic-crest svg{width:38px;height:38px;filter:drop-shadow(0 2px 1px #0008)}.heraldic-crest b{font-size:11px;margin-top:4px;letter-spacing:2px}.heraldic-crest.crest-small{width:32px;height:38px;border-width:1px}.crest-small svg{width:19px;height:19px}.crest-small b{display:none}.crest-editor{display:flex;gap:20px;align-items:center;margin:20px 0;padding:16px;background:#111b19;border:1px solid #3b4b40;border-radius:6px}.crest-editor>div{display:grid;gap:12px;flex:1 1}.crest-options{display:flex;gap:8px;flex-wrap:wrap}.crest-options button{width:32px;height:32px;min-height:32px;border:2px solid transparent}.crest-options [aria-pressed=true]{border-color:#f5d68f;outline:2px solid #f5d68f;outline-offset:2px}.clan-home,.clan-treasury{margin-bottom:20px}.clan-title{display:flex;align-items:center;gap:20px;margin-bottom:18px}.clan-title>button{margin-left:auto}.clan-title h2{margin-top:0}.clan-members{display:flex;gap:16px;flex-wrap:wrap}.resource-donations{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.resource-donations label{display:flex;gap:10px;align-items:center;padding:10px;border:1px solid #394a3f;border-radius:5px}.resource-donations span{flex:1 1}.resource-donations b,.resource-donations small{display:block;margin-top:5px;font-size:11px}.resource-donations input{width:85px}.donation-log{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #3b493f;flex-wrap:wrap}.donation-log>span:nth-child(2){flex:1 1}.clan-home details,.clan-treasury details{margin-top:18px}.clan-research-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.clan-research-grid article{padding:16px;background:#101c18;border:1px solid #3f4c3d;border-radius:6px}.clan-research-grid button{width:100%}.village-manager{padding:7px 11px!important;margin-bottom:12px;max-width:520px}.village-manager summary{cursor:pointer;color:#d4b677;font-size:10px;display:flex;align-items:center;gap:8px;list-style:none}.village-manager summary::-webkit-details-marker{display:none}.village-manager summary b{font-size:9px;font-weight:500;color:#aeb9a8;background:#29352e;border:1px solid #59634b;border-radius:10px;padding:2px 6px}.village-manager summary i{font-style:normal;color:#e5d8b7;margin-left:auto;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.village-manager[open] summary{margin-bottom:9px}.village-manager-content{display:flex;align-items:flex-end;gap:10px}.village-manager-content>label{width:min(230px,42%);flex-shrink:0}.village-manager form{display:flex;align-items:flex-end;gap:8px;margin:0;flex:1 1}.village-manager form label{flex:1 1;min-width:0}.village-manager label{font-size:10px!important;gap:4px!important}.village-manager input,.village-manager select{width:100%;min-height:31px;padding:5px 8px;font-size:10px}.village-manager button{min-height:31px;padding:5px 9px;font-size:9px;white-space:nowrap}.avatar-settings{margin-bottom:18px}.avatar-options{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;max-width:660px}.avatar-options button{padding:3px;background:none;border:2px solid transparent;border-radius:12px}.avatar-options .player-avatar{width:100%;height:auto;aspect-ratio:1;border-radius:9px}.avatar-options [aria-pressed=true]{border-color:#e5c582;background:#cfa95744}.attack-panel>.player-badge{margin-bottom:10px}.army-tools{display:flex;gap:8px;margin:10px 0}.army-tools button{flex:1 1;font-size:11px}.army-select label>.unit-art{width:35px;height:40px;flex-shrink:0}.army-select label{display:flex;align-items:center;gap:7px}.army-select label>span{flex:1 1}.army-select input{width:65px}.report-players{display:flex;align-items:center;gap:12px;margin:12px 0}.scout-intel{display:flex;gap:14px;flex-wrap:wrap}.scout-intel>span{display:flex;align-items:center}.upgrade-resources .resource-art{width:30px;height:30px}.castle-view-header .player-badge{font-size:11px}.castle-view-header .player-avatar{width:23px;height:23px}.log .player-badge{font-size:inherit}.log .player-badge>span{display:inline;color:inherit}.chat-dock{position:fixed;bottom:0;right:22px;width:370px;max-width:calc(100vw - 24px);z-index:160;background:#14211fed;border:1px solid #8d7950;border-radius:9px 9px 0 0;box-shadow:0 -6px 35px #0005;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px)}.chat-toggle{width:100%;border:0;background:linear-gradient(#29382f,#1c2924);border-radius:8px 8px 0 0;justify-content:flex-start;min-height:42px;color:#e4c98c}.chat-toggle span{flex:1 1;text-align:left}.chat-tabs{display:flex;padding:7px;gap:5px;border-bottom:1px solid #35473a}.chat-tabs button{flex:1 1;background:transparent;font-size:12px}.chat-tabs .selected{color:#edce8c;border-color:#a28953;background:#b3923422}.chat-dock>.player-picker{margin:8px 10px}.chat-messages{height:250px;overflow:auto;overscroll-behavior:contain;padding:10px}.chat-messages article{background:#26372c;padding:9px;border-radius:6px;margin-bottom:9px;max-width:95%;overflow-wrap:anywhere}.chat-messages article.message-own{margin-left:auto;background:#584c2c55}.chat-messages header{display:flex;gap:8px;align-items:center;justify-content:space-between}.chat-messages time{font-size:9px;color:#9fa891}.chat-messages p{color:#e0e5da;font-size:12px;margin:6px 0 0;white-space:pre-wrap}.chat-dock>form{display:flex;gap:7px;padding:8px;border-top:1px solid #394b3d}.chat-dock>form input{flex:1 1;width:0}.chat-dock>small{display:block;padding:0 10px 8px;font-size:9px}.chat-open{max-height:80dvh;display:flex;flex-direction:column}.chat-open .chat-messages{flex:1 1;min-height:100px}.chat-open .player-results{max-height:140px}.visual-era main{padding-bottom:50px}.castle-popup{overscroll-behavior:contain}@media(max-width:700px){.resources>div>.resource-art{width:24px;height:24px;grid-row:auto}.resources>div{grid-template-columns:1fr}.resources label{font-size:6px!important}.resources strong{font-size:12px!important}.clan-research-grid,.resource-donations{grid-template-columns:1fr}.clan-title{flex-wrap:wrap;gap:12px}.clan-title>button{margin-left:0}.avatar-options{grid-template-columns:repeat(3,1fr)}.village-manager form{flex-direction:column;align-items:stretch}.village-manager form label{width:100%}.chat-dock{bottom:calc(56px + env(safe-area-inset-bottom));right:8px;max-width:calc(100vw - 16px);width:370px}.chat-dock:not(.chat-open){width:185px}.chat-toggle{min-height:36px;font-size:10px}.chat-open{max-height:calc(85dvh - 100px)}.chat-messages{height:230px}.visual-era main{padding-bottom:90px}.report-players .player-badge{font-size:11px}.castle-popup{max-height:76dvh}.crest-editor{gap:12px;padding:10px}.heraldic-crest{width:74px;height:90px}.village-manager{margin-bottom:12px!important}.table-row .player-avatar{width:23px;height:23px}.table-row .player-badge{gap:5px}.chat-dock{bottom:calc(70px + env(safe-area-inset-bottom))}}.castle-evolution{padding:14px 20px;margin-bottom:18px;border:1px solid #8d77474d;background:linear-gradient(120deg,#283229,#152123);border-radius:8px}.evolution-current{display:flex;align-items:center;gap:18px}.evolution-current>img{width:125px;height:125px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 8px 5px #0005)}.evolution-current>div{flex:1 1;min-width:0}.evolution-current h3{font:25px Georgia,serif;color:#e4d1a5;margin:7px 0}.evolution-current strong{font-size:12px;color:#e0d4b8}.evolution-current p{font-size:11px;margin:7px 0}.evolution-current .progress{max-width:360px}.castle-evolution details{border-top:1px solid #74826433;padding-top:12px;margin-top:8px}.castle-evolution summary{color:#cdb279;cursor:pointer;font-size:11px}.evolution-stages{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:14px}.evolution-stages>div{text-align:center;border:1px solid #435243;padding:10px;border-radius:5px}.evolution-stages>div.current{border-color:#d3b477;background:#d3b47716}.evolution-stages img{width:100%;height:auto;max-width:130px;object-fit:contain}.evolution-stages b,.evolution-stages small{display:block;margin-top:7px;font-size:11px}.evolution-stages .future{opacity:.65}.evolution-compact{padding:8px;margin:10px 0}.evolution-compact .evolution-current{gap:8px}.evolution-compact .evolution-current>img{width:72px;height:72px}.evolution-compact h3{font-size:16px}.evolution-compact p,.evolution-compact strong{font-size:10px}.evolution-compact .eyebrow{font-size:7px}.castle-popup{max-height:calc(100% - 20px)}@media(max-width:700px){.castle-evolution{padding:10px 12px}.evolution-current{gap:10px}.evolution-current>img{width:82px;height:95px}.evolution-current h3{font-size:19px}.evolution-stages{display:flex;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x proximity}.evolution-stages>div{flex:0 0 130px;scroll-snap-align:start}.evolution-current strong{font-size:10px}.castle-popup{max-height:76dvh}}.detailed-crest{background:none!important;clip-path:none;border:0;box-shadow:none;width:88px;height:108px;overflow:visible}.detailed-crest>svg{width:100%;height:100%;filter:drop-shadow(0 4px 4px #0008)}.detailed-crest.crest-small{width:34px;height:42px}.crest-workshop{display:grid;grid-template-columns:220px 1fr;background:#0d1917;border:1px solid #75603c;margin:24px 0;border-radius:12px;overflow:hidden}.crest-preview{padding:24px 15px;display:flex;align-items:center;flex-direction:column;gap:20px;background:radial-gradient(ellipse at center,#56604a44,transparent 70%),repeating-linear-gradient(45deg,#c9b77a05 0 1px,transparent 1px 12px)}.crest-preview>.detailed-crest{width:175px;height:215px}.crest-miniatures{display:flex;align-items:center;gap:10px;font-size:10px;color:#aaa995}.crest-controls{display:grid;gap:18px;padding:22px}.crest-controls fieldset{border:0;padding:0;margin:0}.crest-controls legend{font-size:12px;color:#d8c799;margin-bottom:10px}.heraldry-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.heraldry-choices button{padding:8px 4px;display:flex;flex-direction:column;gap:6px;font-size:10px;background:#1d2923}.heraldry-choices [aria-pressed=true]{border-color:#ddbd75;background:#b69a4d25;box-shadow:inset 0 0 0 1px #ddbd75}.research-benefit{color:#ecd395;font-size:20px}.research-costs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.research-costs>span{display:flex;align-items:center;flex-direction:column;font-size:12px}.research-costs small{font-size:9px;margin-top:5px}.research-costs .shortfall{color:#e7a48f}.active-research{padding:15px;background:#bfab4a15;border:1px solid #ad9556;border-radius:8px;margin:15px 0}.chat-dock{width:320px}.chat-open .chat-messages{height:135px;flex:auto;max-height:180px;min-height:60px}.chat-open{max-height:440px}.chat-dock>small{font-size:8px}.chat-messages article{padding:6px}.chat-messages .player-avatar{width:21px;height:21px}.chat-messages .player-badge{font-size:11px}@media(max-width:700px){.crest-workshop{grid-template-columns:1fr}.crest-preview{padding:15px}.crest-preview>.detailed-crest{width:120px;height:145px}.crest-controls{padding:15px}.heraldry-choices{grid-template-columns:repeat(4,1fr)}.chat-dock{width:285px}.chat-open{max-height:360px}.chat-open .chat-messages{height:90px;max-height:130px}.chat-toggle{min-height:32px}.chat-tabs{padding:4px}.chat-tabs button{padding:5px;min-height:28px}.chat-dock>form{padding:5px}.chat-dock>small{display:none}.visual-era main{padding-bottom:270px}}.separate-queues{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}.separate-queues .panel{padding:17px}.separate-queues header{display:flex;gap:8px}.separate-queues h3{margin:0;flex:1 1;font-size:14px}.separate-queues header>span{font-size:11px;color:#cbb47a}.lane-order{display:flex;gap:10px;padding:15px 0;border-bottom:1px solid #ffffff12}.lane-order>div{flex:1 1;min-width:0}.lane-order b,.lane-order small{display:block}.lane-order small{margin:7px 0;font-size:11px}.lane-order button{font-size:10px;padding:5px;margin-top:8px}.order-number{color:#ba9d62}.admin-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0}.admin-summary>div{background:#1f2d26;padding:20px;border:1px solid #bca16b33;border-radius:8px}.admin-summary b,.admin-summary small{display:block}.admin-summary b{font-size:28px;margin-top:7px;color:#e4cd93}.admin-search{display:flex;align-items:center;gap:10px}.admin-search input{flex:1 1;min-width:0}.admin-search select{max-width:160px}.admin-player-list{display:grid;gap:6px}.admin-player-list>button{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:12px;background:#10201b;padding:12px}.admin-player-list .player-badge{flex:1 1}.admin-player-list .selected{border-color:#c9a862}.status-pill{font-size:10px;background:#395441;color:#b3dbb3;padding:5px 9px;border-radius:20px}.status-banned{background:#6f302f;color:#ffb5a1}.admin-player-detail{margin-top:20px}.admin-player-detail>header{display:flex;gap:16px;align-items:center}.admin-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:20px 0}.admin-detail-grid fieldset{border:1px solid #6a6147;border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}.admin-detail-grid legend{padding:0 6px;color:#d9c38c}.admin-detail-grid label,.admin-edit-row label{display:flex;flex-direction:column;gap:7px;font-size:12px}.admin-detail-grid .checkbox{flex-direction:row}.admin-castle-resources{display:flex;gap:15px;flex-wrap:wrap;margin:15px 0}.admin-castle-resources>span{display:flex;align-items:center}.admin-edit-row{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:20px 0}.admin-player-detail select{max-width:100%;width:100%}.admin-player-detail details{margin:15px 0}.pagination{display:flex;align-items:center;justify-content:center;gap:15px;margin-top:15px}.audit-entry{display:flex;flex-wrap:wrap;gap:10px;padding:14px 0;border-bottom:1px solid #ffffff18}.audit-entry small{width:100%;overflow-wrap:anywhere}.ban-reason,.login-error{color:#efb2a2}.login-page{min-height:100dvh;display:grid;place-items:center;padding:25px;background:linear-gradient(#0b171bd9,#0b171bcc),url(/art/settlement/terrain.webp) 50%/cover}.login-card{max-width:440px;width:100%;padding:32px;background:#142420ed;border:1px solid #b69a60;border-radius:14px;box-shadow:0 20px 60px #0008}.login-card>svg{color:#d7b876}.login-card h1{font-size:36px}.login-card form{display:grid;gap:15px}.login-card label{display:flex;flex-direction:column;gap:7px}.login-card .button{display:block;text-align:center}.login-card>button{margin-top:15px}.account-panel{margin-bottom:18px}@media(max-width:700px){.admin-detail-grid,.separate-queues{grid-template-columns:1fr}.admin-summary{grid-template-columns:repeat(2,1fr)}.admin-search{flex-wrap:wrap}.admin-search input{width:calc(100% - 35px)}.admin-search select{width:100%;max-width:none}.admin-player-list small{width:100%;text-align:left}.admin-edit-row{grid-template-columns:1fr}}.unit-counters{display:flex;flex-direction:column;gap:5px;font-size:11px}.unit-counters>span{display:flex;align-items:center;gap:5px}.unit-counters .unit-art{width:25px;height:30px}.unit-counters .red{color:#dc9a88}.incoming-vignette{position:fixed;inset:0;z-index:500;pointer-events:none;border:5px solid #d52f35;box-shadow:inset 0 0 70px 20px #c51a3270;animation:threat-pulse 2s ease-in-out infinite}.incoming-banner{position:fixed;top:105px;right:18px;z-index:499;background:#491e25ed;border:1px solid #ef6c74;padding:12px 16px;max-width:min(330px,85vw);border-radius:8px;pointer-events:none;display:grid;gap:4px;color:#fff}.incoming-banner small{color:#f3c2c6}.garrison-row{display:flex;align-items:center;gap:16px;padding:14px 0;border-top:1px solid var(--border);flex-wrap:wrap}.garrison-row small{display:block}.garrison-row button{margin-left:auto}.citadel-status{display:flex;gap:16px;justify-content:space-between;align-items:center}.castle-popup .citadel-status{display:block;padding:10px}.castle-popup .citadel-status h2{font-size:22px}.castle-popup{max-height:80%;overflow-y:auto}@keyframes threat-pulse{50%{box-shadow:inset 0 0 40px 10px #c51a3245;border-color:#a4252b}}@media(prefers-reduced-motion:reduce){.incoming-vignette{animation:none}}@media(max-width:700px){.incoming-banner{top:84px;right:10px;padding:8px 12px;font-size:11px}.citadel-status{align-items:flex-start;flex-direction:column}}.shop-card{border:1px solid var(--border);padding:20px;border-radius:10px;display:flex;flex-direction:column;gap:12px;background:#172326}.shop-card button{margin-top:auto}.shop-resources{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shop-resources span{display:flex;gap:8px;align-items:center}.shop-resources img{width:32px;height:32px;object-fit:contain}.automation-editor{padding:18px 0;border-top:1px solid var(--border)}.automation-editor summary{font-size:18px;color:var(--gold);cursor:pointer}.farm-targets{max-height:220px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;margin:12px 0}.automation-editor>label{display:inline-flex;gap:8px;align-items:center;margin:12px}.automation-editor input[type=number]{max-width:110px}.navigation-art{display:inline-block;object-fit:contain;object-position:center;flex:none;vertical-align:middle;pointer-events:none;filter:drop-shadow(0 2px 2px #0007)}.sidebar nav button{min-height:46px}.sidebar nav button .navigation-art{margin-block:-4px}.mobile-bottom-nav button.active .navigation-art,.sidebar nav button.active .navigation-art{filter:drop-shadow(0 0 5px #d7b56c66)}.sidebar .brand>.navigation-art{width:40px!important;height:40px!important}.sidebar .realm-icon .navigation-art{width:32px!important;height:32px!important}.mobile-bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.mobile-bottom-nav .navigation-art{margin:0}.separate-queues header{align-items:center}.separate-queues header h3{min-width:0}.city-command-bar>div:first-child>.navigation-art{width:32px!important;height:32px!important}@media(max-width:700px){.sidebar nav button{min-height:46px}.separate-queues header{gap:10px}.mobile-bottom-nav button{min-height:54px}}.city-stage,.expanded-city .city-stage{aspect-ratio:3/2;background-size:100% 100%;image-rendering:auto}.city-stage{max-width:1536px}.city-floating-label{max-width:13.5%;text-align:center;justify-content:center}.torch{display:none}.expanded-city .city-stage{width:100%;height:auto;min-width:840px;max-width:1536px}.expanded-city .city-viewport{display:block;overflow:auto}.visual-era .sidebar{height:100dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b79a61 #172123;padding-bottom:max(18px,env(safe-area-inset-bottom))}.report-art,.visual-era .sidebar>*{flex-shrink:0}.report-art{filter:drop-shadow(0 2px 3px #0005)}.report-row.report-unread{background:#b99b5320;border-left:3px solid #d9bc7a}.report-row.report-read{border-left:3px solid transparent}.reports-toolbar{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;padding:12px 0 18px}.reports-toolbar label{display:flex;gap:8px;align-items:center}.reports-toolbar input{width:auto}.visual-era .sidebar nav button>b{display:inline-flex}.spawn-screen{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#172523}.spawn-panel{max-width:640px;text-align:center;padding:32px}.spawn-panel p{line-height:1.7}.spawn-directions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:28px 0}.spawn-directions button{padding:18px 8px;border:1px solid #a58c58;border-radius:8px}.spawn-directions button.selected{background:#d4b777;color:#172523}.spawn-directions button:disabled{opacity:.38;cursor:not-allowed;background:#7a7467;color:#d9d1bd}.spawn-directions button small{display:block;margin-top:5px;opacity:.8}.spawn-balance-note{font-size:.88rem;opacity:.8}.spawn-directions span{font-size:40px;align-self:center}.spawn-panel>.gold{padding:16px 24px}.clan-management{margin-bottom:20px}.clan-management button{margin:5px;padding:10px}.clan-management h3{margin-top:24px}.diplomacy-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:12px 0;border-bottom:1px solid #bca36c33}.clan-management input,.clan-management select{max-width:360px}.clan-management .council-heading{display:flex;justify-content:space-between;gap:16px}.clan-management .council-heading h2{margin:5px 0 16px}.council-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid #bca36c40}.clan-management .council-tabs button{margin:0;padding:12px 16px;white-space:nowrap;border:0;border-radius:0;background:transparent;color:#aab8ae}.clan-management .council-tabs button[aria-selected=true]{color:#eed39a;border-bottom:2px solid #d4b879;background:#d4b8790d}.council-tabs b{margin-left:8px;color:#ef8c76}.council-content{max-height:320px;overflow-y:auto;overscroll-behavior:contain;padding:4px 8px 8px 0;scrollbar-width:thin}.clan-management .council-content h3{margin:16px 0 10px;font-size:14px}.clan-management .council-content p{font-size:13px;line-height:1.6}.clan-management .council-content button{font-size:12px;padding:7px 10px}.clan-management .diplomacy-row{gap:8px;padding:10px 0}.diplomacy-row>strong{flex:1 1;min-width:120px}.profile-link{background:transparent!important;border:0!important;padding:0!important;color:inherit;cursor:pointer;text-align:left}.profile-link:hover .player-badge{text-decoration:underline}.profile-link:focus-visible{outline:2px solid #ebc783;outline-offset:5px}.map-owner{display:flex;align-items:center;gap:14px;margin:10px 0 18px}.map-owner small{color:#d6b97b}.player-profile-dialog{padding:0;border:1px solid #b99b5866;border-radius:18px;background:#192826;color:#eee7d2;width:min(520px,calc(100vw - 28px));max-height:85dvh;box-shadow:0 24px 90px #0009}.player-profile-dialog::backdrop{background:#06100dcc;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.player-profile-card{padding:28px;position:relative}.profile-close{position:absolute;right:14px;top:14px;border:0;background:transparent;color:#d9ccb1;padding:8px;cursor:pointer}.player-profile-header{display:flex;gap:18px;align-items:center;padding-right:24px}.player-profile-header .player-avatar{width:76px;height:76px;border-radius:18px;border:1px solid #b99b5866}.player-profile-header h2{margin:6px 0;font-size:26px;overflow-wrap:anywhere}.player-profile-header p{color:#a8b5ac;margin:0}.profile-stats{display:grid;grid-template-columns:1fr 1fr;background:#ffffff05;border:1px solid #b99b5828;border-radius:12px;margin:22px 0}.profile-stats span{display:flex;flex-direction:column;gap:4px;text-align:center;padding:16px;color:#b0bbb1;font-size:12px}.profile-stats strong{font-size:23px;color:#ebd29c}.profile-invite{display:flex;align-items:center;gap:12px;margin-bottom:24px;flex-wrap:wrap}.profile-invite button{display:flex;gap:8px;align-items:center;padding:12px 18px;border-radius:8px;cursor:pointer}.profile-invite small{color:#b0cba8}.profile-villages{max-height:280px;overflow:auto;scrollbar-width:thin}.profile-villages article{display:flex;gap:14px;align-items:center;border-bottom:1px solid #ffffff10;padding:14px 0;color:#d8bf83}.profile-villages article div{display:flex;flex-direction:column;gap:5px}.profile-villages strong{color:#ede4cf;overflow-wrap:anywhere}.profile-villages small{color:#99aa9e}@media(max-width:600px){.player-profile-card{padding:22px}.council-tabs button{padding:10px!important}.council-content{max-height:340px}.council-heading .badge{font-size:10px}}.minimap.settlement-minimap{width:190px;padding:7px}.settlement-minimap svg{display:block;width:100%;cursor:crosshair}.minimap-mode{width:100%;border:0!important;background:transparent!important;color:#e6d2a0!important;padding:6px!important;font-size:10px!important;cursor:pointer}.minimap-key{display:grid;grid-template-columns:1fr 1fr;gap:4px;font-size:8px;color:#d8decf;text-align:left}.minimap-key span{display:flex;align-items:center;gap:4px}.minimap-key i{width:6px;height:6px;border-radius:50%;flex-shrink:0}@media(max-width:600px){.minimap.settlement-minimap{width:145px}.minimap-key{font-size:7px}}.minimap.settlement-minimap{height:auto}.minimap.settlement-minimap svg{height:auto;aspect-ratio:140/100}.protection-panel{display:flex;gap:18px;margin-bottom:20px}.protection-panel>svg{flex-shrink:0;color:#9bcfa7}.protection-panel h2{margin-top:0}.protection-panel p{line-height:1.6}.protection-panel button{margin:6px 8px 0 0}.protection-notice{border-color:#83b58f55}.research-art{display:block;width:140px;height:140px;flex-shrink:0;border-radius:12px;background-repeat:no-repeat}.tech .building-top{align-items:flex-start}.report-unit{display:flex;align-items:center;gap:8px}.report-modal .report-unit .unit-art{width:38px;height:44px;flex:0 0 38px;object-fit:contain}.heal-costs,.report-loot{display:flex;flex-wrap:wrap;gap:14px;margin:14px 0}.heal-costs>span,.report-loot>span{display:flex;align-items:center;gap:6px}.heal-costs .resource-art,.report-loot .resource-art{width:32px;height:32px}.hospital-cards>article>.unit-art{width:85px;height:90px;object-fit:contain}.hospital-cards button{width:100%;margin-top:10px}.heal-costs .shortfall{color:#eb917c}.hospital-cards .heal-costs{font-size:12px}.combat-table>div{grid-template-columns:minmax(110px,1.5fr) repeat(4,minmax(42px,1fr))}.combat-table{overflow-x:auto}@media(max-width:600px){.research-art{width:110px;height:110px}.report-modal .report-unit .unit-art{width:28px;height:32px;flex-basis:28px}}.resource-missions{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px}.resource-mission{display:flex;flex-direction:column;gap:12px}.resource-mission header{display:flex;gap:12px;align-items:center}.resource-mission h3{margin:4px 0;font-size:19px}.resource-mission p{margin:0;font-size:13px}.resource-mission small{color:#a9b9a7}.mission-medal{color:#d7b979;background:#d7b97915;padding:12px;border-radius:12px}.mission-resources{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0}.mission-resources span{display:flex;align-items:center;flex-direction:column;gap:5px;font-size:13px}.mission-resources .resource-art{width:36px;height:36px}.resource-mission>button{margin-top:auto;min-height:40px}.mission-claimed{opacity:.65}.mission-claimed .mission-medal{color:#a3d1a4}.resource-mission .shortfall{color:#e4a182}.mission-periods{overflow-x:auto;white-space:nowrap}.topbar .resources strong .resource-capacity{display:block;font-size:10px;font-weight:400;color:#b9bba8;white-space:nowrap;line-height:1.3}.warehouse-storage{padding:12px;border:1px solid var(--border);border-radius:7px;background:#111b1e;margin-bottom:18px}.warehouse-storage h3{margin-top:0}.warehouse-storage>p{margin:6px 0}.warehouse-stock{display:grid;grid-template-columns:28px 1fr auto;gap:6px;align-items:center;margin-top:14px;font-size:11px}.warehouse-stock .resource-art{width:28px;height:28px}.warehouse-stock progress{grid-column:1/-1;width:100%;height:6px;accent-color:var(--gold)}.warehouse-storage .warehouse-next{border-top:1px solid var(--border);padding-top:12px;margin-top:14px;font-size:11px}.mission-filter,.mission-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0}.mission-filter label{display:flex;align-items:center;gap:10px}.mission-filter>span,.mission-pagination>span{color:var(--muted)}.mission-pagination{justify-content:center}.mission-bonus{display:flex;align-items:center;gap:9px;font-size:12px}.mission-bonus .unit-art{width:34px;height:34px;flex-shrink:0}.mission-resources small{font-size:10px}.panel.table .table-row:not(.table-head){min-height:52px}.panel.table .table-head{min-height:40px}.rank-more{display:block;margin:12px auto 14px;color:var(--gold);font-size:11px}.chat-open{max-height:min(72dvh,640px)}.chat-messages{height:190px}.private-unread-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:10px;background:#b56b4f;color:#fff4e3;font-size:10px;font-weight:700}.private-unread-list{padding:8px 10px;border-bottom:1px solid #35473a}.private-unread-list>small{display:block;margin-bottom:7px;color:#dcc393}.private-unread-list>div{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin}.private-unread-list button{min-height:28px;padding:4px 8px;white-space:nowrap;font-size:11px}.private-unread-list button.selected{border-color:var(--gold)}.private-unread-list .private-unread-count{margin-left:5px}@media(max-width:700px){.chat-dock{right:8px}.chat-messages{height:155px}.private-unread-list>div{max-width:100%}}.council-roster{padding:8px 12px;border:1px solid #4c543b;border-radius:6px;background:#213027}.council-roster p{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:7px 0;color:#d2dbc8}.council-roster strong{color:#e9ca88}.council-roster button{margin-left:auto}.council-editor{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:13px 0;padding:14px;border:1px solid #655739;border-radius:7px;background:#a88c4520}.council-editor h3{width:100%;margin:0 0 4px}.council-editor input,.council-editor select{flex:1 1;min-width:125px}.council-editor small{width:100%}.public-council{flex-basis:100%;font-size:12px;color:#d9c491}.public-council summary{cursor:pointer;max-width:max-content}.public-council .council-roster{margin:8px 0 5px}.precise-time{font-feature-settings:"tnum";font-variant-numeric:tabular-nums;white-space:nowrap;color:#e8d09b;font-size:inherit}.march-precision{border:1px solid #5f604b;background:#253128;padding:10px 12px;border-radius:8px;margin:12px 0}.march-precision p{margin:3px 0;color:#d1d9cc}.march-precision small{display:block;margin-top:7px}.lane-order small{display:block;margin:5px 0;line-height:1.6}.march-row strong{display:flex;flex-direction:column;gap:4px;text-align:right}.march-row strong small{font-size:9px;font-weight:400;color:#a6b49d}.queue-row>span{display:flex;flex-direction:column;gap:3px}.queue-row>span small{font-size:9px}.zone-detail{display:flex;align-items:center;gap:12px;margin:12px 0;padding:9px;background:#253327;border:1px solid #8b8057;border-radius:8px}.zone-detail img{width:72px;height:72px;flex:none}.zone-detail strong{color:#e6c988;display:block;font-size:13px}.zone-detail small{display:block;margin-top:8px}.compact-citadel{padding:12px 18px;gap:14px;margin-bottom:12px;min-height:auto}.compact-citadel h2{font-size:20px!important;margin:2px 0 4px}.compact-citadel .eyebrow{font-size:8px}.compact-citadel p{font-size:10px;margin:3px 0;line-height:1.4}.compact-citadel strong{font-size:11px;color:#d7c391}.compact-citadel button{white-space:nowrap;min-height:30px}.view-clans .dominion{padding:16px 20px;margin:12px 0}.view-clans .dominion h2{font-size:22px;margin:8px 0}.view-clans .dominion p{margin:5px 0}.view-clans .dominion>svg{max-height:42px;margin:5px}.clan-management{padding:14px 17px!important}.clan-management .council-heading{gap:12px;align-items:center;flex-wrap:wrap}.clan-management .council-heading h2{font-size:21px;margin:2px 0 8px}.clan-management .council-heading .eyebrow{font-size:8px}.clan-header-summary{display:flex;gap:12px;align-items:center;color:#d9c69a;font-size:11px}.clan-management .council-tabs button{padding:9px 13px;font-size:11px}.clan-management .council-content{max-height:420px;overflow-y:auto;padding:10px 4px 8px}.clan-member-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:7px 0 10px}.clan-member-heading h3{margin:0!important}.clan-member-heading small{font-size:10px;color:#839989}.clan-member-list{display:flex;flex-direction:column;gap:5px}.clan-member-entry{display:flex;align-items:center;gap:8px}.clan-member-entry .clan-member-row{flex:1 1;min-width:0}.clan-member-row{display:flex;align-items:center;gap:10px;border-radius:7px;padding:8px 10px;min-height:45px;width:100%;justify-content:flex-start;text-align:left;background:#202d28;border:1px solid #4a5346}.clan-member-row:hover{background:#2f4033;border-color:#c4a66f}.clan-member-row img{border-radius:50%;object-fit:cover;width:32px;height:32px;flex:none}.clan-member-row strong{min-width:0;overflow-wrap:anywhere}.clan-member-row>.player-badge{flex:1 1}.clan-member-row .clan-member-points,.clan-member-row>strong:last-child{margin-left:auto;color:#e7c887;white-space:nowrap}.clan-member-row .badge{font-size:8px}.clan-position{flex:none;min-width:22px;text-align:center;color:#bcb18c;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.clan-kick{white-space:nowrap;color:#d8a99f!important;font-size:10px!important;min-height:32px}.clan-council-roster>div{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #45513c}.clan-council-roster strong{flex:1 1}.clan-activity-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:9px;border-bottom:1px solid #4d5544}.clan-activity-row small{grid-column:1/-1;font-size:10px}.clan-activity-row strong{color:#e6cb9b}.clan-search-row{display:flex;flex-direction:column;align-items:flex-start!important;gap:5px;width:100%;border:0!important;background:transparent!important;padding:7px!important;text-align:left}.clan-search-row strong{font-size:13px}.clan-search-row small{font-size:10px}.clan-discovery{display:grid;gap:8px}.clan-diplomacy-card{border:1px solid #434b3f;border-radius:8px;padding:9px;background:#1d2a25;display:flex;flex-wrap:wrap;align-items:center;gap:6px}.clan-diplomacy-card .clan-search-row{flex:1 1;min-width:180px}.council-actions{display:flex;gap:6px;flex-wrap:wrap}.council-actions button{font-size:10px!important;min-height:29px}.clan-preview-dialog{padding:0;width:min(680px,calc(100vw - 26px));max-height:88dvh;border:1px solid #c5a968;border-radius:12px;background:#14221c;color:#ece5d3;box-shadow:0 30px 80px #000b}.clan-preview-dialog::backdrop{background:#05090bca;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.clan-preview-shell{max-height:88dvh;overflow-y:auto;padding:18px}.clan-preview-hero{position:relative;display:flex;gap:17px;align-items:center;border-bottom:1px solid #7d7046;padding:12px 28px 16px 0}.clan-preview-hero h2{font-size:27px;margin:3px 0}.clan-preview-hero p{margin:2px 0}.clan-preview-hero .profile-close{position:absolute;right:0;top:0}.clan-preview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0}.clan-preview-stats span{padding:10px;background:#26382e;border:1px solid #596a4f;border-radius:7px;display:flex;flex-direction:column;gap:5px}.clan-preview-stats svg{color:#d0b77f}.clan-preview-stats small{color:#aebaaa;font-size:10px}.clan-preview-stats strong{color:#f0d5a1;font-size:18px}.clan-preview-tech{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.clan-preview-tech>span{padding:6px 9px;background:#2b3d31;border:1px solid #65724c;border-radius:5px}.clan-preview-tech b{color:#e8c68e;margin-left:8px}@media(max-width:700px){.clan-preview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.clan-preview-hero h2{font-size:22px}.compact-citadel{flex-direction:column;align-items:flex-start}.clan-member-entry{flex-direction:column;align-items:stretch}.clan-member-entry .clan-kick{align-self:flex-end}.clan-management .council-content{max-height:460px}}.clan-territory-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:10px 0}.clan-territory-row{display:flex;gap:8px;align-items:center;min-height:65px;text-align:left;padding:8px;border:1px solid #536348;background:#243329;border-radius:7px}.clan-territory-row img{flex:none}.clan-territory-row strong{flex:1 1;font-size:11px;line-height:1.4}.clan-territory-row small{display:block;font-weight:400;margin-top:4px;font-size:9px;color:#adbca9}.clan-territory-row>span{font-size:14px;font-weight:700;color:#e9cd8a}.clan-profile-link{border:0!important;background:transparent!important;color:#dfc287!important;padding:2px 0!important;min-height:25px!important;font-size:12px!important;text-decoration:underline;text-underline-offset:3px}.map-compass{position:absolute;top:80px;right:62px;z-index:5;width:48px;height:58px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);align-items:center;justify-items:center;border:1px solid #bda46b55;border-radius:6px;background:#142321d9;box-shadow:0 4px 14px #0004;pointer-events:none;color:#e6cb91}.map-compass span{display:grid;place-items:center;font-size:9px;font-weight:700;color:#e6cb91}.map-compass-n{grid-column:2;grid-row:1}.map-compass-w{grid-column:1;grid-row:2}.map-compass svg{grid-column:2;grid-row:2}.map-compass-e{grid-column:3;grid-row:2}.map-compass-s{grid-column:2;grid-row:3}.minimap.settlement-minimap svg{touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair}@media(max-width:700px){.map-compass{top:65px;right:44px;width:38px;height:47px}.map-compass span{font-size:8px}.map-compass svg{width:13px;height:13px}}.chat-dock.chat-fixed.chat-open{width:370px;max-width:calc(100vw - 16px);height:min(550px,100dvh);max-height:none;display:flex;flex-direction:column}.chat-dock.chat-fixed.chat-open .chat-tabs,.chat-dock.chat-fixed.chat-open .private-unread-list,.chat-dock.chat-fixed.chat-open>.player-picker,.chat-dock.chat-fixed.chat-open>form,.chat-dock.chat-fixed.chat-open>small{flex-shrink:0}.chat-dock.chat-fixed.chat-open .chat-messages{flex:1 1 auto;height:auto;min-height:96px;max-height:none}.chat-dock.chat-fixed.chat-open .player-results{max-height:140px}@media(max-width:700px){.chat-dock.chat-fixed.chat-open{left:8px;right:8px;bottom:0;width:auto;max-width:none;height:min(550px,100dvh)}}.auto-access-dock{position:fixed;right:18px;top:50%;transform:translateY(-50%);z-index:45;display:flex;flex-direction:column;gap:7px;padding:7px;border:1px solid #9e87544d;border-radius:12px;background:#151d20ef;box-shadow:0 8px 28px #0006;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.auto-access-dock button{width:38px;height:38px;min-height:38px;padding:0;border-radius:9px;color:#d9bd7b;background:#222b2c;border-color:#b49a5a55}.auto-access-dock button.active,.auto-access-dock button:hover{background:#d4b677;color:#17201f;border-color:#e4cb8b}.automation-quick-backdrop{z-index:90;padding:18px;overflow:auto}.automation-quick-dialog{position:relative;width:min(680px,100%);margin:auto}.automation-quick-close{position:absolute;right:12px;top:12px;z-index:2}.automation-editor-panel{max-height:calc(100dvh - 36px);overflow:auto;padding:20px}.automation-editor-panel.automation-editor-compact{padding:20px 22px}.automation-editor-compact>h2{padding-right:32px;margin-top:0}.automation-editor-compact>p{font-size:11px;margin-bottom:12px}.automation-editor-compact .farm-targets{max-height:145px;overflow:auto}.automation-editor-compact .army-select{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.automation-editor-compact .army-select label{padding:5px 7px}@media(max-width:700px){.auto-access-dock{right:8px;left:auto;top:calc(76px + env(safe-area-inset-top));bottom:auto;transform:none;flex-direction:column;padding:5px;gap:5px;z-index:65}.auto-access-dock button{width:35px;height:35px;min-height:35px}.automation-quick-backdrop{padding:10px}.automation-editor-panel,.automation-editor-panel.automation-editor-compact{padding:15px}.automation-editor-compact .army-select{grid-template-columns:1fr 1fr}.village-manager{max-width:100%;padding:6px 8px!important}.village-manager-content{display:block}.village-manager-content>label{width:100%}.village-manager form{margin-top:7px}.village-manager form button{font-size:8px}.chat-dock.chat-fixed.chat-open{bottom:calc(100dvh - var(--chat-visual-height,100dvh) - var(--chat-visual-offset,0px));height:min(550px,var(--chat-visual-height,100dvh));max-height:var(--chat-visual-height,100dvh);z-index:220}.chat-dock.chat-fixed.chat-open>form{position:relative;z-index:2;padding-bottom:max(10px,env(safe-area-inset-bottom))}.chat-dock.chat-fixed.chat-open>form input{min-height:42px;font-size:16px;line-height:1.3;touch-action:manipulation;pointer-events:auto}.chat-dock.chat-fixed.chat-open>form button{min-width:42px;min-height:42px;touch-action:manipulation}}.private-conversations{padding:7px 10px;border-bottom:1px solid #35473a;max-height:150px;overflow:auto;flex-shrink:0}.private-conversations>small{display:block;margin-bottom:6px;color:#dcc393;font-size:10px}.private-conversations>button{display:flex;align-items:center;gap:8px;width:100%;min-height:38px;padding:5px 7px;margin:2px 0;text-align:left;background:transparent;border:1px solid transparent}.private-conversations>button.selected{border-color:var(--gold);background:#b3923422}.private-conversations .player-avatar{width:27px;height:27px;flex:0 0 27px}.private-conversation-info{display:flex;flex:1 1;min-width:0;flex-direction:column;gap:2px}.private-conversation-info>b,.private-conversation-info>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.private-conversation-info>b{font-size:11px;color:#eee0bd}.private-conversation-info>small{font-size:9px;color:#aeb9a8}.private-conversations>p{font-size:10px;margin:5px 0;color:#aeb9a8}@media(max-width:700px){.private-conversations{max-height:125px}.private-conversations>button{min-height:36px}}.market-logistics{padding:12px 0;border-top:1px solid #ad8b4c55}.market-logistics h4{margin:4px 0 10px;color:#e3c98d;font-size:12px;letter-spacing:.04em}.market-logistics p{line-height:1.6}.market-logistics input,.market-logistics select{max-width:150px}.market-logistics button{margin-top:8px}.market-search-controls{display:grid;grid-template-columns:minmax(180px,1fr) minmax(130px,.5fr) minmax(130px,.5fr);gap:8px;margin:10px 0}.market-search-controls input,.market-search-controls select{width:100%;max-width:none!important;min-width:0}.market-results-count{font-size:10px;color:#aeb9a8}.market-offer{border:1px solid #6f6042;background:#101d19;padding:12px;border-radius:7px;margin:9px 0}.market-offer p{margin:5px 0}.market-listing{border-top:0;padding-top:4px}@media(max-width:700px){.market-search-controls{grid-template-columns:1fr 1fr}.market-search-controls input{grid-column:1/-1}}@media(min-width:900px){.chat-dock.chat-shifted{right:auto;left:22px}}.attack-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.confirm-modal{width:min(460px,100%);max-height:85vh;overflow:auto;padding:24px;position:relative}.confirm-modal h2{font-family:Georgia;color:var(--gold);margin:0 0 16px}.confirm-modal ul{margin:8px 0 18px;padding-left:22px;display:grid;gap:6px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;flex-wrap:wrap}.view-castle .building-drawer{position:fixed;left:234px;right:22px;top:104px;bottom:76px;width:auto;z-index:210;border:1px solid #c8a976;border-radius:7px;box-shadow:0 18px 70px #000c}.view-castle .building-drawer .drawer-hero{min-height:170px;padding:18px 60px 18px 24px;gap:24px}.view-castle .building-drawer .drawer-hero>.building-art{width:160px;max-height:150px;object-fit:contain}.view-castle .building-drawer .drawer-hero .eyebrow{font-size:9px;letter-spacing:2px}.view-castle .building-drawer .drawer-hero h2{font-size:34px}.view-castle .building-drawer .drawer-level{font-size:13px}.view-castle .building-drawer .drawer-body{padding:24px 30px 34px;font-size:14px}.view-castle .building-drawer .drawer-body>p{font-size:14px;max-width:1000px}.view-castle .building-drawer .drawer-body h3{font-size:19px}.view-castle .building-drawer .drawer-body .recruit-card{padding:20px}.view-castle .building-drawer .drawer-body .recruit-card h4{font-size:21px}.view-castle .building-drawer .drawer-body .drawer-note,.view-castle .building-drawer .drawer-body .recruit-card p,.view-castle .building-drawer .drawer-body .unit-metrics{font-size:13px}.view-castle .building-drawer .drawer-body .build-primary,.view-castle .building-drawer .drawer-body button{font-size:13px;min-height:42px}.view-castle .building-drawer .drawer-body .recruit-card>.gold{min-height:46px}@media(max-width:1200px){.view-castle .building-drawer{left:224px;right:14px;top:96px;bottom:70px}}@media(max-width:950px){.view-castle .building-drawer{left:89px;right:10px;top:86px;bottom:68px}.view-castle .building-drawer .drawer-hero{min-height:130px;padding:14px 50px 14px 14px;gap:12px}.view-castle .building-drawer .drawer-hero>.building-art{width:112px;max-height:110px}.view-castle .building-drawer .drawer-hero h2{font-size:25px}.view-castle .building-drawer .drawer-body{padding:16px}}@media(max-width:600px){.view-castle .building-drawer{left:68px;right:7px;top:74px;bottom:64px;border-radius:5px}.view-castle .building-drawer .drawer-hero{min-height:108px;padding:10px 42px 10px 8px;gap:8px}.view-castle .building-drawer .drawer-hero>.building-art{width:78px;max-height:85px}.view-castle .building-drawer .drawer-hero h2{font-size:20px}.view-castle .building-drawer .drawer-body,.view-castle .building-drawer .drawer-body .recruit-card{padding:12px}}.view-castle .city-stage-shell:has(>.building-drawer) .city-hint,.view-castle .city-stage-shell:has(>.building-drawer) .city-scene-title,.view-castle .city-stage-shell:has(>.building-drawer) .city-view-tools,.view-castle .city-stage-shell:has(>.building-drawer) .city-viewport{display:none}.view-castle .city-stage-shell:has(>.building-drawer){background:#182126;isolation:auto}.view-castle .building-drawer{position:relative;inset:auto;width:100%;max-width:none;max-height:none;min-height:calc(100dvh - 310px);height:auto;overflow:hidden;border:0;border-top:1px solid #c8a976;border-radius:0;box-shadow:none;animation:none;z-index:1}.view-castle .building-drawer .drawer-hero{min-height:112px;padding:12px 54px 12px 18px;gap:14px}.view-castle .building-drawer .drawer-hero>.building-art{width:92px;max-height:90px}.view-castle .building-drawer .drawer-hero h2{font-size:25px}.view-castle .building-drawer .drawer-body{padding:14px 20px 24px}.view-castle .building-drawer .building-next{margin:8px 0 10px;font-size:10px}.view-castle .building-drawer .building-next strong{font-size:16px}.view-castle .building-drawer .upgrade-resources{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:6px 8px;margin-bottom:9px}.view-castle .building-drawer .upgrade-resources span{display:grid;grid-template-columns:25px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:5px;row-gap:1px;text-align:left;padding:3px 7px}.view-castle .building-drawer .upgrade-resources .resource-art{grid-column:1;grid-row:1/3;width:24px;height:24px;object-fit:contain}.view-castle .building-drawer .upgrade-resources small{grid-column:2;font-size:8px;line-height:1.1}.view-castle .building-drawer .upgrade-resources b{grid-column:2;font-size:10px;line-height:1.2;white-space:nowrap}.view-castle .building-drawer .build-primary{min-height:36px}.view-castle .market-trade{display:flex;flex-direction:column}.view-castle .market-trade>.tabs{order:1}.view-castle .market-trade>h3{order:0}@media(max-width:700px){.view-castle .city-stage-shell:has(>.building-drawer){min-height:calc(100dvh - 250px)}.view-castle .building-drawer{min-height:calc(100dvh - 250px);max-height:none;border-radius:0}.view-castle .building-drawer .drawer-hero{min-height:92px;padding:10px 48px 8px 10px;gap:8px}.view-castle .building-drawer .drawer-hero>.building-art{width:72px;max-height:72px}.view-castle .building-drawer .drawer-hero h2{font-size:21px}.view-castle .building-drawer .drawer-body{padding:12px 12px max(20px,env(safe-area-inset-bottom))}.view-castle .building-drawer .upgrade-resources{padding:5px 2px;gap:0}.view-castle .building-drawer .upgrade-resources span{grid-template-columns:20px minmax(0,1fr);column-gap:3px;padding:3px}.view-castle .building-drawer .upgrade-resources .resource-art{width:19px;height:19px}.view-castle .building-drawer .upgrade-resources small{font-size:7px}.view-castle .building-drawer .upgrade-resources b{font-size:8px}}.resource-transfer-panel{display:grid;gap:10px;margin-top:14px;padding:14px;border:1px solid rgba(205,174,112,.28);border-radius:12px;background:rgba(20,28,31,.72)}.resource-transfer-panel h3{margin:0;color:var(--gold,#d7b875);font-size:1rem}.resource-transfer-panel>p{margin:0;color:var(--muted,#a9aaa5);font-size:.82rem}.resource-transfer-panel label{display:grid;gap:5px;font-size:.82rem}.resource-transfer-panel input,.resource-transfer-panel select{min-width:0;width:100%}.resource-transfer-panel .resource-transfer-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.resource-transfer-panel .resource-transfer-row span{display:flex;align-items:center;gap:7px}.resource-transfer-panel .resource-transfer-row img{width:22px;height:22px;object-fit:contain}.resource-transfer-panel .resource-transfer-row input{max-width:112px}.resource-transfer-panel>button{width:100%}.map-village-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.map-village-actions>button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0}.map-village-actions>button:disabled{opacity:.42;cursor:not-allowed}.map-action-modal{width:min(620px,calc(100vw - 28px));max-height:min(86dvh,900px);overflow:auto}.map-action-modal>.attack-panel,.map-action-modal>.resource-transfer-panel{margin-top:16px}.resource-transfer-destination{padding:9px 11px;border:1px solid rgba(205,174,112,.22);border-radius:8px;background:rgba(205,174,112,.07)}@media(max-width:600px){.map-village-actions{grid-template-columns:1fr}.map-action-modal{width:calc(100vw - 18px);max-height:90dvh;padding:16px}}.tutorial-guide{display:flex;align-items:flex-start;gap:14px;margin:0 0 18px;padding:16px 18px;border:1px solid #d4b46d;border-left:4px solid #e5bd68;border-radius:10px;background:linear-gradient(120deg,#2b342b,#1d2928);box-shadow:0 8px 24px #0005;color:#f4e8c8}.tutorial-guide-mark{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:9px;background:#d5b46b22;color:#f1cd7d}.tutorial-guide small{display:block;color:#e8c77f;font-size:9px;font-weight:800;letter-spacing:.16em}.tutorial-guide h2{margin:3px 0 5px;color:#f4d995;font:700 18px Georgia,serif}.tutorial-guide p{margin:0;color:#e1dfd1;font-size:13px;line-height:1.55}.tutorial-complete{border-color:#8dbb85;color:#d9efd1}.city-lot.tutorial-spotlight{filter:drop-shadow(0 0 12px #ffcf57);outline:3px solid #ffcf57;outline-offset:5px;z-index:999!important;animation:tutorial-pulse 1.5s ease-in-out infinite alternate}.city-lot.tutorial-locked{opacity:.38;filter:grayscale(.8)}@keyframes tutorial-pulse{0%{filter:drop-shadow(0 0 5px #ffcf57)}to{filter:drop-shadow(0 0 18px #ffcf57)}}.tutorial-reserved-note,.tutorial-target-note{margin:12px 0;padding:12px;border:1px solid #e2bd68;border-radius:8px;background:#d4ad4b18;color:#f1dfb4}.tutorial-target-note strong{color:#f5d47f}.tutorial-target-note p{margin:5px 0 0;font-size:12px;line-height:1.5}.tutorial-reserved-note{border-color:#9b9b9b;color:#d2d2d2}.castle-experience.tutorial-active .city-command-bar,.mobile-bottom-nav.tutorial-nav-hidden{display:none!important}.city-stage-shell{position:relative}.tutorial-city-popover{position:absolute;z-index:1200;top:12px;left:50%;transform:translateX(-50%);width:min(360px,calc(100% - 24px));padding:12px 15px;border:1px solid #e3bd69;border-radius:9px;background:rgba(26,35,31,.96);box-shadow:0 10px 30px #0009;color:#f5e7c7;pointer-events:none}.tutorial-city-popover small{display:block;color:#e9c978;font-size:9px;font-weight:800;letter-spacing:.14em}.tutorial-city-popover strong{display:block;margin:3px 0;color:#f7d88f;font:700 15px Georgia,serif}.tutorial-city-popover p{margin:0;color:#e6e1d1;font-size:12px;line-height:1.45}.market-offer.market-offer-compact{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:7px 10px;margin:5px 0;border-radius:6px}.market-offer-compact .market-offer-info{display:grid;gap:4px;min-width:0}.market-offer-compact .market-offer-meta,.market-offer-compact .market-offer-title{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.market-offer-compact .market-offer-title{font-size:11px;line-height:1.25}.market-offer-compact .market-offer-title>b{color:#ead5a3;font-weight:700}.market-offer-compact .market-offer-title>span{color:#e1e4d4}.market-offer-compact .market-offer-meta{font-size:10px;line-height:1.25;color:#b8c2ad}.market-offer-compact .market-offer-meta small{font-size:9px;color:#8fa18e}.market-offer-compact>.market-offer-action{width:auto;min-width:88px;min-height:30px;padding:5px 9px;margin:0;font-size:9px;line-height:1.2;white-space:nowrap}.market-own-offer .market-offer-meta{color:#d6c18e}@media(max-width:700px){.market-offer.market-offer-compact{grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:7px}.market-offer-compact .market-offer-title{font-size:10px}.market-offer-compact .market-offer-meta{font-size:9px}.market-offer-compact .market-offer-meta small{font-size:8px}.market-offer-compact>.market-offer-action{min-width:74px;max-width:120px;min-height:29px;padding:5px 7px;font-size:8px;white-space:normal}}.city-lot.tutorial-locked{opacity:1!important;filter:none!important;cursor:not-allowed}.view-castle .building-drawer{height:calc(100dvh - 310px);min-height:0;max-height:calc(100dvh - 220px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}@media(max-width:700px){.view-castle .building-drawer{height:calc(100dvh - 250px);min-height:0;max-height:calc(100dvh - 180px);overflow-y:auto}}.tutorial-city-popover .tutorial-close-action{pointer-events:auto;width:100%;margin-top:9px;min-height:34px}.tutorial-page-close{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0 26px;padding:14px 16px;border:1px solid #d4b46d;border-radius:8px;background:linear-gradient(120deg,#2b342b,#1d2928)}.tutorial-page-close p{margin:0;color:#e1dfd1;font-size:12px}.tutorial-page-close button{flex-shrink:0}@media(max-width:600px){.tutorial-page-close{align-items:stretch;flex-direction:column}.tutorial-page-close button{width:100%}}:root,select{color-scheme:dark}select optgroup,select option{background:#152024;color:var(--text)}select option:checked{background:#3a3220;color:#f1d99a}select option:disabled{color:#6f7a7a}