:root{color-scheme:light;--ink:#203b34;--muted:#778279;--paper:#f5f2e9;--card:#fffef9;--line:#e1e3d6;--green:#285c49;--gold:#bc9656;--red:#a04c3e}*{box-sizing:border-box}body{margin:0;background:#e8ece2;color:var(--ink);font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif}button,input{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible{outline:3px solid #d1a457;outline-offset:3px}button,input{touch-action:manipulation}h1,h2,h3,p{margin:0}h1,h2,h3,.serif{font-family:"Noto Serif SC","Songti SC",serif}h2{font-size:23px;letter-spacing:2px}h3{font-size:17px}.shell{max-width:1120px;margin:auto;background:var(--paper);min-height:100dvh;padding-bottom:86px}.top{padding:24px 32px 19px;background:#15372d;color:#f4f0de;display:flex;align-items:center;gap:12px}.crest{width:44px;height:49px;display:grid;place-items:center;font-size:32px;color:#e4c482;background:#284e3e;clip-path:polygon(0 0,100% 0,100% 74%,50% 100%,0 74%)}.brand{font-family:"Noto Serif SC",serif;font-weight:600;letter-spacing:4px;font-size:22px}.eyebrow{font-size:10px;letter-spacing:2.5px;color:var(--gold);text-transform:uppercase}.top .eyebrow{color:#c4ccba}.identity{margin-left:auto;text-align:right}.identity strong{font-size:13px;font-weight:500}.status{font-size:10px;color:#b7c9af}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#9bbf78;margin-right:5px}.icon-btn{background:transparent;color:inherit;padding:8px;font-size:18px}.resources{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0;padding:17px 32px;background:#fffef9;border-bottom:1px solid var(--line)}.resource{display:grid;grid-template-columns:30px 1fr;gap:0 8px}.res-symbol{grid-row:span 2;font-size:28px;line-height:1.4;color:var(--gold)}.resource strong{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}.resource small{font-size:10px;color:var(--muted)}.res-track{grid-column:2;height:3px;margin-top:4px;background:#eeeee3}.res-track i{display:block;height:3px;background:#b8c396}.content{padding:24px 32px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px;gap:10px}.sub{font-size:12px;color:var(--muted);margin-top:4px}.pill{background:#e7eddf;color:#537447;border:1px solid #d7e2cb;border-radius:30px;padding:4px 10px;font-size:11px;white-space:nowrap}.columns{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:22px}.landscape{position:relative;background:#cbd8b5;border:1px solid #c0caa9;border-radius:12px;overflow:hidden;box-shadow:0 10px 24px #1d3b2610}.town-svg{display:block;width:100%;height:auto}.town-note{position:absolute;left:14px;top:13px;color:#4a614a;font-size:10px;letter-spacing:1px;background:#f9f6e4d9;border:1px solid #f7f3e6;padding:4px 8px;border-radius:4px}.map-label{pointer-events:none;font-family:system-ui;fill:#254539;font-size:19px;text-anchor:middle;font-weight:600}.town-building{cursor:pointer;outline:none}.town-building:hover .building-base,.town-building:focus .building-base{stroke:#f7d57a;stroke-width:6}.card{border:1px solid var(--line);background:var(--card);border-radius:10px;padding:18px}.card+.card{margin-top:14px}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.badge{font-size:10px;letter-spacing:1px;color:var(--gold)}.building-list{margin-top:18px;display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.building-chip{border:1px solid var(--line);background:#fffef8;border-radius:7px;padding:10px 2px;color:var(--ink);display:flex;flex-direction:column;align-items:center;font-size:11px;gap:3px}.building-chip.selected{border-color:#708f66;background:#e7eddf;box-shadow:inset 0 0 0 1px #708f66}.building-chip .icon{font-size:23px;color:#7b8b60}.building-chip small{font-size:10px;color:var(--muted)}.feature-icon{width:48px;height:48px;border-radius:9px;background:#e8eede;color:#59724f;display:grid;place-items:center;font-size:31px}.feature-top{display:flex;gap:12px;align-items:center;margin-bottom:14px}.description{color:var(--muted);font-size:12px;margin:12px 0 16px;min-height:35px}.stats{display:flex;justify-content:space-between;font-size:12px;padding:10px 0;border-top:1px solid var(--line)}.stats span{color:var(--muted)}.cost{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:11px;margin:12px 0}.cost .short{color:var(--red)}.primary{background:#285c49;color:#fffef2;border:1px solid #285c49;border-radius:6px;padding:11px 18px;font-weight:500;letter-spacing:1px;min-height:44px}.primary:hover{background:#1e4939}.primary.wide{width:100%}.secondary{background:#f4f4ea;border:1px solid #d9decd;border-radius:6px;color:var(--ink);padding:9px 14px;min-height:40px}.danger{background:#9b4b3f;border-color:#9b4b3f}.small{padding:5px 9px;font-size:11px;min-height:30px}.queue{padding:11px 0;border-top:1px solid var(--line)}.queue:first-of-type{border-top:0}.queue-title{display:flex;justify-content:space-between;font-size:12px}.timer{font-variant-numeric:tabular-nums;color:#8d743e}.progress{height:4px;background:#edeedc;margin-top:8px;border-radius:3px}.progress i{height:100%;display:block;background:#8fa773;border-radius:3px}.quiet{font-size:12px;color:var(--muted);padding:15px 0}.guide{margin-top:18px;padding:15px 18px;border:1px dashed #c7d2b4;background:#eef1e3;border-radius:8px;display:flex;gap:12px;align-items:center}.guide .icon{font-size:25px}.guide strong{font-size:12px}.guide p{font-size:11px;color:var(--muted)}.bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(1120px,100%);z-index:15;padding:9px 24px calc(9px + env(safe-area-inset-bottom));background:#fdfcf6f5;backdrop-filter:blur(14px);border-top:1px solid #dce1d2;display:grid;grid-template-columns:repeat(4,1fr);box-shadow:0 -4px 20px #173a2710}.nav{background:none;color:#8a9485;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;padding:8px 0;min-height:47px}.nav .icon{font-size:23px;line-height:1}.nav.active{color:#285c49;font-weight:600}.nav.active:after{content:'';position:absolute;bottom:5px;height:3px;width:24px;background:#8da671;border-radius:3px}.army-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.troop-card .card{margin:0}.troop-title{display:flex;align-items:center;gap:14px;margin-bottom:15px}.troop-title .feature-icon{height:64px;width:64px;font-size:40px;background:#eceadd;color:#9b885f}.troop-title .amount{margin-left:auto;font-family:serif;font-size:30px}.training{display:flex;gap:10px;margin-top:12px}input[type=number]{min-width:0;width:80px;padding:9px;border:1px solid #d6ddcc;background:#f7f7ee;border-radius:5px;color:var(--ink)}input[type=text],input[type=password]{width:100%;border:1px solid #cbd6c1;border-radius:6px;padding:13px;background:#fffdf3;color:var(--ink);margin:8px 0 14px}.training button{flex:1}.research{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:17px;padding-top:14px;gap:8px}.research p{font-size:11px;color:var(--muted)}.notice{padding:13px 16px;border-radius:7px;background:#efe8d5;border:1px solid #e5d9b9;font-size:12px;margin-bottom:18px;color:#806a3c}.world-container{position:relative;border-radius:11px;overflow:hidden;border:1px solid #c2cbaa;background:#cbd7b4}.world-map{display:block;width:100%;height:480px;touch-action:none;cursor:grab}.world-map:active{cursor:grabbing}.world-controls{position:absolute;right:12px;bottom:12px;display:flex;gap:5px}.world-controls button{background:#f8f6e9e8;border:1px solid #b6c3a6;border-radius:5px;color:#385d40;min-width:38px;height:38px;font-size:20px}.map-legend{position:absolute;left:14px;top:12px;background:#fbf8e9e8;padding:7px 10px;font-size:10px;border-radius:4px;display:flex;gap:13px}.city-marker{cursor:pointer;outline:none}.city-marker:hover .city-ring,.city-marker:focus .city-ring{stroke:#e9bb50;stroke-width:5}.target-list{display:flex;gap:7px;overflow:auto;margin:12px 0 18px;padding-bottom:4px}.target-list button{flex-shrink:0}.target-row{display:flex;align-items:center;gap:12px}.target-row small{color:var(--muted)}.tag{font-size:10px;border-radius:4px;padding:2px 6px;background:#e7eada;color:#69784e}.tag.enemy{background:#eee1d8;color:#9c6950}.empty{padding:40px 15px;text-align:center;border:1px dashed #cbd3bf;border-radius:10px;color:var(--muted)}.empty .icon{display:block;font-size:42px;color:#b0bda1;margin-bottom:10px}.march-card{padding:14px 0;border-top:1px solid var(--line)}.march-top{display:flex;justify-content:space-between;gap:7px;font-size:12px}.march-top b{font-weight:500}.route{margin:10px 0;height:2px;background:#d1d9c1;position:relative}.route i{position:absolute;top:-9px;font-size:16px;transform:translateX(-50%);color:#8f7a50}.report{display:flex;gap:14px;align-items:center;width:100%;text-align:left;background:var(--card);border:1px solid var(--line);border-radius:8px;color:var(--ink);padding:17px;margin-bottom:10px}.result-icon{font-size:24px;background:#e7edda;color:#6e8a4c;width:46px;height:46px;display:grid;place-items:center;border-radius:50%}.result-icon.lost{background:#eee2dd;color:#a27966}.report small{font-size:11px;color:var(--muted)}.report .right{margin-left:auto;text-align:right;font-size:11px;color:var(--muted)}.backdrop{position:fixed;inset:0;z-index:50;background:#10241ed0;display:flex;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(4px)}.dialog{background:var(--paper);width:min(100%,480px);border-radius:13px;padding:24px;max-height:90dvh;overflow:auto;box-shadow:0 20px 80px #0005}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.dialog h2{font-size:21px}.dialog label{font-size:12px;color:var(--muted)}.dialog .text{font-size:12px;color:var(--muted);margin:12px 0;line-height:1.8}.dialog table{width:100%;font-size:11px;border-collapse:collapse;margin:12px 0}.dialog th,.dialog td{padding:8px 4px;text-align:right;border-bottom:1px solid var(--line)}.dialog th:first-child,.dialog td:first-child{text-align:left}.dialog th{color:var(--muted);font-weight:400}.deploy-row{display:grid;grid-template-columns:1fr 80px 48px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}.deploy-row input{width:80px}.deploy-row button{background:#e6ebdd;color:#5c7751;border-radius:4px;padding:7px;font-size:10px}.split{display:flex;gap:10px}.split>*{flex:1}.key-box{width:100%;word-break:break-all;background:#e6eadc;padding:12px;font:12px/1.5 monospace;border:1px solid #c4d0b7;border-radius:5px;user-select:all}.login{min-height:100dvh;background:#173a2e;display:grid;place-items:center;padding:24px;position:relative;overflow:hidden}.login:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0,#63875c77,transparent 65%),repeating-linear-gradient(45deg,transparent 0 80px,#aec08e04 80px 81px)}.login-card{position:relative;max-width:440px;width:100%;background:#f6f2e5;padding:35px;border-radius:12px;box-shadow:0 20px 90px #07170d66;border:1px solid #a1ad7f}.login-art{text-align:center;font-size:86px;color:#b29660;line-height:1.2;filter:drop-shadow(0 4px #b2966020)}.login h1{text-align:center;font-size:29px;letter-spacing:5px;margin:12px 0 3px}.login .eyebrow{text-align:center;margin-bottom:24px}.login .text{font-size:12px;color:var(--muted);text-align:center;margin:14px 0}.login-footer{display:flex;justify-content:center;gap:20px;border-top:1px solid #d9ddc9;margin-top:22px;padding-top:18px;color:#859273;font-size:11px}.boot{min-height:100dvh;display:grid;align-content:center;justify-items:center;gap:12px}.boot span{font-size:70px;color:var(--gold)}.boot p{color:var(--muted)}#toast{position:fixed;bottom:94px;left:50%;transform:translate(-50%,20px);z-index:100;background:#1e3c32;color:#fff7df;box-shadow:0 5px 25px #0003;max-width:88%;padding:12px 20px;border-radius:7px;font-size:13px;opacity:0;pointer-events:none;transition:all .2s}#toast.show{opacity:1;transform:translate(-50%,0)}.connection{background:#9a513f;color:#fff8e9;padding:8px 14px;text-align:center;font-size:12px}.hint-link{background:none;text-decoration:underline;color:#71805c;font-size:11px;padding:5px}.footnote{font-size:10px;color:#929a86;text-align:center;margin:20px 0 0}.scrollnote{font-size:10px;color:#7c886b;margin-top:7px}
@media(max-width:760px){.top{padding:17px 18px 15px}.brand{font-size:20px}.crest{width:34px;height:41px;font-size:26px}.identity strong{font-size:11px}.top .eyebrow{font-size:8px;letter-spacing:1.4px}.resources{padding:12px 16px;gap:7px}.resource{grid-template-columns:18px 1fr;gap:0 5px}.res-symbol{font-size:19px;line-height:1.7}.resource strong{font-size:14px}.resource small{font-size:8px;white-space:nowrap}.content{padding:20px 16px}.columns{grid-template-columns:1fr;gap:18px}.section-head{margin-bottom:14px}h2{font-size:22px}.building-list{margin-top:10px;gap:5px}.building-chip{font-size:10px;padding:8px 1px}.building-chip .icon{font-size:21px}.card{padding:16px}.description{min-height:0}.army-grid{grid-template-columns:1fr;gap:14px}.bottom{padding:5px 10px calc(5px + env(safe-area-inset-bottom))}.nav{flex-direction:column;gap:2px;font-size:10px;padding:5px 0}.nav .icon{font-size:22px}.nav.active:after{bottom:1px}.world-map{height:420px}.world .columns{gap:10px}.dialog{padding:20px}.backdrop{padding:14px}.login-card{padding:28px 23px}.map-legend{font-size:9px;gap:9px}.report{padding:13px;gap:10px}.report .right{font-size:10px}.report strong{font-size:12px}.guide{padding:13px}.troop-title{gap:11px}.troop-title .feature-icon{width:54px;height:54px}.troop-title h3{font-size:18px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Shared responsive controls and the server-authoritative rankings. */
html{scroll-padding-bottom:90px}body{overflow-wrap:break-word}input{font-size:16px}.content,.columns>*,.army-grid>*,.identity,.rank-player{min-width:0}.identity strong{display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bottom{grid-template-columns:repeat(5,minmax(0,1fr))}.nav{position:relative}.nav small{font-size:10px}.world-controls button{min-width:44px;height:44px}.world-map:focus-visible{outline:3px solid #bc9656;outline-offset:-4px}.touch-help{display:none}.rank-summary{background:linear-gradient(115deg,#234c3e,#35644c);color:#f8f5e6;padding:26px 28px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #547653}.rank-summary h3{font-size:23px;margin:6px 0}.rank-summary p{font-size:12px;color:#bfcfb5}.my-standing{display:flex;flex-direction:column;text-align:right;flex-shrink:0}.my-standing small{color:#cfdbc6;font-size:11px}.my-standing strong{font:40px/1.25 Georgia,serif;color:#f2d18a}.my-standing span{font-size:12px}.rank-tabs{display:flex;gap:6px;margin:20px 0 14px;border-bottom:1px solid var(--line);padding-bottom:10px}.rank-tabs button{background:transparent;border-radius:6px;color:var(--muted);min-height:44px;padding:10px 20px}.rank-tabs button.selected{background:#e2e9d8;color:var(--green);font-weight:600}.rank-table{border:1px solid var(--line);border-radius:10px;background:var(--card);overflow:hidden}.rank-row{display:grid;grid-template-columns:80px minmax(0,1fr) 130px 110px;align-items:center;gap:12px;padding:16px 20px;border-top:1px solid var(--line);min-height:84px}.rank-row:first-child{border:0}.rank-heading{min-height:0;background:#eeefe3;color:var(--muted);font-size:11px;padding:12px 20px}.rank-heading span:nth-child(n+3){text-align:right}.rank-self{background:#ecf2e3;box-shadow:inset 3px 0 #7d9d65}.rank-number{font:23px Georgia,serif;color:#8b9881}.rank-medal{color:#a07b34}.rank-player strong{font-size:14px;display:block;overflow-wrap:anywhere}.rank-player small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.rank-player em{font:10px system-ui;background:#d6e2c7;color:#4e6e3b;border-radius:3px;padding:2px 5px;white-space:nowrap}.rank-score{text-align:right;font-variant-numeric:tabular-nums;font-size:19px;font-weight:500}.rank-locate{text-align:right;color:var(--green);background:none;min-height:44px;font-size:12px;padding:4px}.rank-locate span{display:block;font-size:10px;color:var(--muted)}.rank-rules{margin-top:20px;padding:20px 24px;border:1px dashed #c7d2b4;border-radius:9px;background:#eef1e3}.rank-rules h3{font-size:15px;margin-bottom:8px}.rank-rules p{font-size:12px;color:#728068;margin-top:7px;line-height:1.8}.rank-rules .rank-sync{font-size:10px;color:#8b957e}.report>span{min-width:0}.report strong{overflow-wrap:anywhere}.report .right{flex-shrink:0}.rank-locate:hover{background:#e4ead9;border-radius:5px}
@media(min-width:1100px){.shell{max-width:1440px;display:grid;grid-template-columns:168px minmax(0,1fr);grid-template-rows:auto auto 1fr;padding-bottom:0;box-shadow:0 0 60px #173a2710}.top{grid-column:1/-1;grid-row:1;padding:22px 36px}.resources{grid-column:1/-1;grid-row:2;padding:18px 36px}.content{grid-column:2;grid-row:3;padding:28px 32px 36px;border-left:1px solid var(--line)}.bottom{grid-column:1;grid-row:3;position:sticky;top:18px;bottom:auto;left:auto;transform:none;width:auto;display:flex;flex-direction:column;align-self:start;padding:20px 12px;background:transparent;box-shadow:none;border:0;backdrop-filter:none;gap:8px}.nav{justify-content:flex-start;min-height:54px;padding:12px 18px;gap:12px;font-size:14px;border-radius:7px}.nav.active{background:#e2e9d8}.nav.active:after{left:0;bottom:15px;top:15px;width:3px;height:auto}.world-map{height:clamp(480px,60dvh,680px)}.columns{grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr)}.connection{position:fixed;top:0;left:0;right:0;z-index:30}#toast{bottom:28px}.army-grid{gap:20px}.footnote{text-align:left}.ranking{max-width:1140px;width:100%}}
@media(min-width:761px) and (max-width:1099px){.shell{max-width:100%;}.content{padding:24px}.columns{grid-template-columns:minmax(0,1.25fr) minmax(275px,1fr);gap:16px}.army-grid{gap:12px}.troop-card{padding:15px}.troop-title{gap:8px}.troop-title .feature-icon{width:48px;height:52px}.troop-title h3{font-size:16px}}
@media(max-width:760px){.shell{padding-bottom:calc(80px + env(safe-area-inset-bottom))}.top{gap:8px}.identity{max-width:33%}.identity strong{font-size:11px}.status{font-size:9px}.top .eyebrow{letter-spacing:.8px;font-size:7px}.resources{padding-left:12px;padding-right:12px}.resource small{font-size:8px;letter-spacing:-.2px}.rank-summary{padding:20px 17px;gap:10px}.rank-summary h3{font-size:19px}.rank-summary p{max-width:180px;font-size:11px}.my-standing strong{font-size:34px}.rank-tabs{gap:3px;margin-top:16px}.rank-tabs button{flex:1;font-size:12px;padding:10px 4px}.rank-row{grid-template-columns:36px minmax(0,1fr) 68px 72px;gap:6px;padding:13px 10px;min-height:78px}.rank-heading{padding:10px;min-height:0;font-size:10px}.rank-number{font-size:18px}.rank-player strong{font-size:12px}.rank-player small{font-size:10px}.rank-score{font-size:16px}.rank-locate{font-size:11px;padding:0}.rank-rules{padding:16px}.rank-rules p{font-size:11px}.rank-heading span:nth-child(3){letter-spacing:-.5px}.world-map{height:clamp(300px,53dvh,480px)}.touch-help{display:inline}.desktop-help{display:none}.small,.target-list button,.deploy-row button{min-height:44px}.target-list{margin-bottom:10px}.report{flex-wrap:wrap}.report .right{margin-left:56px;text-align:left;flex-basis:100%}.dialog-head h2{font-size:20px}.deploy-row{grid-template-columns:minmax(0,1fr) 70px 48px}.deploy-row input{width:70px}.login input{font-size:16px}.building-chip{min-height:76px}.guide{gap:8px}.guide>div{flex:1;min-width:0}.guide .small{flex-shrink:0}}
@media(max-width:359px){.top{padding:14px 12px}.brand{font-size:18px;letter-spacing:2px}.crest{width:28px}.content{padding:18px 12px}.rank-row{grid-template-columns:28px minmax(0,1fr) 58px 64px;gap:4px;padding-left:8px;padding-right:8px}.rank-score{font-size:14px}.resource{grid-template-columns:14px 1fr;gap:0 2px}.res-symbol{font-size:16px}.resource strong{font-size:13px}.resource small{font-size:7px}.troop-title h3{font-size:16px}.map-legend{left:8px;gap:5px;padding:6px;font-size:8px}}
@media(max-height:500px) and (max-width:1099px) and (orientation:landscape){.world-map{height:300px}.top{padding-top:10px;padding-bottom:10px}.resources{padding-top:8px;padding-bottom:8px}.dialog{max-height:92dvh}.columns{grid-template-columns:minmax(0,1.15fr) minmax(260px,1fr)}.content{padding:16px}.army-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(hover:hover){.building-chip:hover,.secondary:hover{background:#e7eddf}.nav:hover{color:var(--green)}}
@media(max-width:760px){.nav small{position:absolute;top:1px;right:calc(50% - 22px);background:#e5eadb;color:#5d7652;border-radius:8px;padding:0 4px;font-size:9px;line-height:14px}.bottom{min-height:62px}}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;border-radius:7px;background:#e8ebdc;padding:4px;gap:4px;margin-bottom:22px}.auth-tabs button{min-height:44px;background:transparent;color:#7c886c;border-radius:5px}.auth-tabs button.selected{background:#fffdf3;box-shadow:0 2px 5px #243e2110;color:var(--green);font-weight:600}.auth-error{color:#a04c3e;font-size:12px;line-height:1.7;margin:0 0 12px}.auth-error:empty{display:none}.auth-note{font-size:11px;line-height:1.8;color:var(--muted);margin:14px 0;text-align:center}.account-panel{border:1px solid #d0dbc3;background:#eaf0e0;border-radius:8px;padding:17px;margin-bottom:20px}.account-panel h3{margin-top:5px}.bind-city{padding:12px 15px;background:#e5eddb;border-radius:6px;font-size:16px;color:var(--green);margin:8px 0 18px}.bind-city small{display:block;font-size:11px;margin-top:4px;color:var(--muted)}.login-card:has(#auth-confirm){margin:12px 0}.login-card:has(#auth-confirm) .login-art{font-size:56px}.login-card:has(#auth-confirm) .eyebrow{margin-bottom:18px}.login input{display:block;font-size:16px}.login label{font-size:12px;color:#68755c}.login-card .hint-link{min-height:44px}.login-card input:focus{border-color:#6f8c5e}.dialog #auth-form label{display:block}
@media(max-width:760px){.login{padding:16px}.login-card{padding:24px}.login-card:has(#auth-confirm){padding:22px}.login-card:has(#auth-confirm) h1{font-size:25px}.login-card:has(#auth-confirm) .login-art{font-size:40px}.login-card:has(#auth-confirm) input{padding:10px 12px;margin-bottom:12px}.login-card:has(#auth-confirm) .auth-tabs{margin-bottom:18px}.login-footer{gap:14px}}
.secure-entry{display:block;text-align:center;text-decoration:none;margin:16px 0}

/* Storybook kingdom: shared inline SVG art, system fonts, no extra asset requests. */
:root{--ink:#345563;--muted:#667f88;--paper:#fffaf0;--card:#fffefa;--line:#e2e8db;--green:#257d83;--gold:#a06d27;--red:#b24c53}
body{background:linear-gradient(180deg,#d7f2f7,#edf5dd 65%,#fff3d9);font-size:15px}
h1,h2,h3,.serif,.brand{font-family:ui-rounded,"PingFang SC","Microsoft YaHei",sans-serif;font-weight:800;letter-spacing:.5px}
h2{font-size:26px;line-height:1.35}h3{font-size:18px;line-height:1.4}
.shell{background:#fffaf0;box-shadow:0 0 50px #75a6a51a}
.game-icon{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}
.top{position:relative;background:linear-gradient(115deg,#50b9c7,#73cdbb);color:#fff;padding-top:18px;padding-bottom:18px;border-bottom:4px solid #3fa1ad;isolation:isolate}
.top:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 76% 0,#ffffff30 0 22%,transparent 22.2%),radial-gradient(ellipse at 15% 105%,#ffffff18 0 30%,transparent 30.2%)}
.crest{width:54px;height:58px;padding:4px;border-radius:17px;clip-path:none;background:#ffffffdc;box-shadow:0 4px 0 #3398a047;color:inherit;flex-shrink:0}
.brand{font-size:26px;letter-spacing:2px;text-shadow:0 2px 0 #358b9c55}.top .eyebrow{font-size:11px;letter-spacing:2px;color:#fff;opacity:.95;margin-top:3px}
.identity strong{font-size:14px;font-weight:700}.status{color:#effff5;font-size:11px}.dot{background:#ffdf82;box-shadow:0 0 0 3px #ffffff26}
.icon-btn{min-width:44px;min-height:44px;border-radius:14px;background:#ffffff24;font-size:22px}.dialog .icon-btn{color:#5e8592;background:#e7f2ef}
.resources{gap:12px;background:#fffaf0;padding-top:18px;padding-bottom:18px;border-bottom:1px solid #e9e9d8}
.resource{grid-template-columns:44px minmax(0,1fr);background:#fffefa;padding:10px 12px;border:2px solid #efe4ca;border-radius:18px;gap:0 8px;box-shadow:0 3px 0 #eddfc65c}
.resource:nth-child(2){border-color:#dae7f3}.resource:nth-child(3){border-color:#d6ebeb}.resource:nth-child(4){border-color:#f8e8b5}
.res-symbol{width:42px;height:42px;grid-row:span 3;align-self:center}.resource strong{font-size:20px;font-weight:800;line-height:1.25}.resource small{font-size:11px;color:#657e85}.res-track{height:5px;background:#edf0e2;border-radius:5px;overflow:hidden;margin-top:5px}.res-track i{height:5px;background:#9acb89;border-radius:5px}
.content{padding-top:24px}.section-head{margin-bottom:20px}.eyebrow{font-size:11px;letter-spacing:1px;color:#9b6e36;font-weight:700;margin-bottom:4px}.sub{font-size:13px;line-height:1.65}.pill{background:#e4f4e8;border:1px solid #b9ddbe;color:#3b7857;padding:7px 12px;font-size:12px;font-weight:600}
.landscape,.world-container{border:3px solid #d2e5b7;border-radius:24px;background:#bce6a2;box-shadow:0 5px 0 #c6dba65c}
.town-note{left:14px;top:14px;border-radius:20px;background:#fffdf0f2;border:1px solid #e5d8ac;padding:6px 12px;color:#657a4c;font-size:11px;letter-spacing:0;box-shadow:0 2px 0 #8ea55a18}
.map-label{font-family:"PingFang SC",system-ui;fill:#3d6852;font-size:17px;font-weight:700}.town-building:hover .building-base,.town-building:focus .building-base{stroke:#f3bd45;stroke-width:6}
.card{border:2px solid #e8e7d5;border-radius:22px;padding:20px;box-shadow:0 4px 0 #e6e4cb59}.feature-icon{width:58px;height:58px;flex-shrink:0;padding:4px;background:#e5f4ed;border-radius:18px}.feature-top{gap:12px}.feature-top .eyebrow{font-size:10px;letter-spacing:0}.description{font-size:13px;line-height:1.75;min-height:0}.stats{font-size:13px;border-color:#e9ecdf}.badge{font-size:11px;letter-spacing:0;background:#fff1ce;padding:3px 7px;border-radius:8px;color:#936b2f}
.cost{gap:8px;font-size:12px}.cost>span{background:#f5f5e9;border-radius:8px;padding:4px 7px}.cost .short{background:#fff0e8}
.primary{background:linear-gradient(#59c4bb,#3eaaa5);border:2px solid #32918c;border-radius:14px;box-shadow:0 4px 0 #2e8d87;color:#fff;min-height:48px;font-weight:750;letter-spacing:.2px;padding:11px 16px;text-shadow:0 1px #277c7b66;transition:transform .15s,box-shadow .15s}
.primary:hover{background:linear-gradient(#65cec5,#46b5ae)}.primary:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #2e8d87}.primary:disabled{opacity:1;background:#e6ebe5;border-color:#c8d4ca;color:#64786b;box-shadow:0 3px 0 #c5d1c5;text-shadow:none}
.secondary{border:2px solid #dfd6b7;background:#fff6da;border-radius:13px;box-shadow:0 3px 0 #dfd6b75c;color:#795f35;min-height:44px;font-weight:650;padding:9px 13px}.danger{background:#e98282;border-color:#c36269;box-shadow:0 4px 0 #b85a63}.small{font-size:12px;padding:6px 10px}.secondary:disabled{opacity:.65}
button:focus-visible,input:focus-visible{outline:3px solid #247a9c;outline-offset:3px}
.building-list{gap:9px;margin-top:18px}.building-chip{border:2px solid #e9e5ce;border-radius:16px;background:#fffefa;padding:9px 3px 8px;font-size:12px;gap:2px;box-shadow:0 3px 0 #e9e5ce66;min-height:100px}.building-chip .icon{width:44px;height:44px}.building-chip small{font-size:11px}.building-chip.selected{border-color:#68bca4;background:#e6f5df;box-shadow:0 3px 0 #b8d89d}.building-chip.selected small{color:#447952}
.guide{border:2px solid #f1dfaa;background:#fff5d8;border-radius:20px;padding:16px;gap:12px}.guide>.icon{width:54px;height:54px;flex-shrink:0}.guide strong{font-size:14px;color:#7c613a}.guide p{font-size:12px;line-height:1.7;margin-top:3px}.guide .secondary{background:#fffefa}
.queue{border-color:#e8eadb;padding:14px 0}.queue-title{font-size:13px;gap:8px}.timer{color:#956a31;white-space:nowrap}.progress{height:8px;background:#edf0df;border-radius:6px}.progress i{border-radius:6px;background:linear-gradient(90deg,#85cfaa,#55bdb1)}.quiet{font-size:13px;line-height:1.7}
.bottom{background:#fffdf5f5;border-color:#e0e7d3;padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}.nav{color:#647f87;font-weight:650;border-radius:16px;gap:8px;min-height:62px}.nav .icon{width:36px;height:36px;flex-shrink:0}.nav.active{background:#e3f3e2;color:#357653;box-shadow:inset 0 0 0 1px #c9e3bf}.nav.active:after{display:none}.nav small{border-radius:10px;background:#ffe5af;color:#8f6432}
.troop-card .feature-icon{background:#e9f3f4;padding:2px;border-radius:20px}.troop-card:nth-child(2) .feature-icon{background:#edf5df}.troop-card:nth-child(3) .feature-icon{background:#efebfa}.troop-card:nth-child(4) .feature-icon{background:#fff0df}.troop-title .amount{font-family:ui-rounded,system-ui;font-weight:800;color:#4b7f8b}.notice{background:#fff2d5;border:1px solid #eddaa4;border-radius:15px;color:#7e673d;font-size:13px;line-height:1.7}.research{border-color:#e7e9db}.research p{font-size:12px}
input[type=number],input[type=text],input[type=password]{border:2px solid #dbe7df;border-radius:12px;background:#fffef8;color:#345563;font-size:16px}input[type=text],input[type=password]{padding:12px;margin-top:6px}.training{gap:10px}
.world-controls button{border:2px solid #b8d5a7;border-radius:13px;background:#fffdf0;box-shadow:0 3px 0 #92b18d44;color:#4b806c}.map-legend{border:1px solid #d3dfb9;border-radius:14px;background:#fffdf1f2;padding:8px 10px;color:#526c50;font-weight:600}.tag{border-radius:8px;background:#e5f2df;color:#52743e;padding:4px 7px}.tag.enemy{background:#fff0d5;color:#9a6b34}.march-card{border-color:#e7e9db}.route{background:#d4e8b9}.route i{color:#ad7e38}.empty{background:#fffdf5;border:2px dashed #d4e2c3;border-radius:22px;color:#648276}
.rank-summary{border:2px solid #8cd1bf;border-radius:22px;background:linear-gradient(110deg,#58b3b0,#83cba8);box-shadow:0 4px 0 #badac15c;color:#fff}.rank-summary .eyebrow{color:#effff5}.rank-summary p,.my-standing small{color:#fff}.my-standing strong{font-family:ui-rounded,system-ui;font-weight:800;color:#fff1b3}.rank-tabs button{border-radius:13px;font-weight:650}.rank-tabs button.selected{background:#e2f3df;color:#3f7a59}.rank-table{border:2px solid #e7e8d4;border-radius:20px}.rank-heading{background:#f1f4e5}.rank-self{background:#eef8e5;box-shadow:inset 4px 0 #83c591}.rank-number{font-family:ui-rounded,system-ui;font-weight:750}.rank-medal{color:#a77b31}.rank-rules{border:2px dashed #d3e3bd;border-radius:20px;background:#f1f7e7}.rank-rules p{color:#647d6f}.report{border:2px solid #e5e7d3;border-radius:18px;box-shadow:0 3px 0 #e5e7d333}.result-icon{background:#e2f3de;color:#4b9668}.result-icon.lost{background:#ffe9de;color:#a86d5c}
.dialog{border:3px solid #e6e8d2;border-radius:25px;background:#fffaf0;box-shadow:0 16px 60px #315d6a44}.backdrop{background:#244b5d99}.dialog .text{font-size:13px;color:#627f85}.dialog label{font-size:13px}.account-panel{background:#e9f5e8;border:2px solid #ccdfbe;border-radius:17px}.bind-city{background:#e8f4e1;border-radius:14px}.hint-link{color:#537b85;font-size:12px}.footnote,.scrollnote{font-size:11px;color:#6a837a}#toast{border:2px solid #3a8b8c;background:#367b82;border-radius:15px;color:#fffaf0;box-shadow:0 4px 0 #2357604d}
.login{background:linear-gradient(145deg,#d4f1fa,#e0f4dd 65%,#fff0cf);padding:40px 24px;overflow:visible}.login:before{position:fixed;pointer-events:none;background:radial-gradient(circle at 9% 12%,#ffffffa0 0 2%,transparent 2.2%),radial-gradient(circle at 90% 78%,#fff7cd 0 4%,transparent 4.2%)}
.login-layout{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);align-items:center;gap:70px;width:min(100%,1000px)}.login-story{color:#346573}.story-badge{display:inline-block;background:#ffffffb8;border:1px solid #b6dddb;padding:7px 16px;border-radius:22px;font-size:13px;color:#447e80}.login-story h2{font-size:56px;line-height:1.25;margin:22px 0 16px;letter-spacing:2px;color:#357b85;text-shadow:0 3px #fff9}.login-story p{font-size:17px;line-height:1.8;color:#5e8990}.welcome-art{width:100%;max-width:500px;display:block;margin-top:-15px}.story-chips{display:flex;gap:12px;justify-content:center;margin-top:4px}.story-chips span{padding:7px 14px;background:#fffdf0b3;border:1px solid #cfe2bc;border-radius:20px;font-size:13px;color:#607d58}
.login-card{max-width:none;background:#fffdf4;border:3px solid #fff;border-radius:30px;padding:30px;box-shadow:0 10px 0 #9acdb43b,0 18px 60px #6caaaf26}.login-art{width:82px;height:82px;margin:auto;filter:none;line-height:1}.login h1{font-size:28px;letter-spacing:2px;margin:7px 0}.login .eyebrow{font-size:12px;letter-spacing:.5px;color:#6c9594;margin-bottom:22px}.auth-tabs{background:#ecf3e9;border:1px solid #e0e8d7;border-radius:14px;padding:5px}.auth-tabs button{border-radius:10px;color:#637e70;font-weight:700}.auth-tabs button.selected{color:#2e7e78;background:#fffefa;box-shadow:0 3px 0 #d9e6cf}.login label{color:#52777c;font-size:13px;font-weight:650}.login-footer{gap:12px;color:#738778;font-size:11px;border-color:#e2e8d7}.login-card:has(#auth-confirm) .login-art{width:58px;height:58px}.login-card:has(#auth-confirm){margin:0}.login-card:has(#auth-confirm) .eyebrow{margin-bottom:16px}.auth-note{font-size:12px;color:#688179}.auth-error{color:#a9484d}.boot{background:#e4f4e7;color:#43868c}
@media(min-width:1100px){.shell{grid-template-columns:160px minmax(0,1fr)}.bottom{padding:24px 10px;background:transparent;gap:10px}.nav{padding:12px;gap:8px;font-size:14px}.nav .icon{width:34px;height:34px}.columns{gap:20px;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr)}.content{border-color:#e6e9d6}}
@media(min-width:761px) and (max-width:1099px){.login-layout{gap:28px}.login-story h2{font-size:44px}.resource{padding:8px;grid-template-columns:34px 1fr;gap:0 5px}.res-symbol{width:32px;height:36px}.resource strong{font-size:17px}.resource small{font-size:9px}.columns{gap:16px}.card{padding:16px}.bottom .nav{flex-direction:column;gap:2px}}
@media(max-width:760px){h2{font-size:23px}.top{padding:14px 13px;gap:9px}.crest{width:42px;height:46px;border-radius:14px}.brand{font-size:21px;letter-spacing:1px}.top .eyebrow{font-size:9px;letter-spacing:.4px}.identity{max-width:28%}.identity strong{font-size:11px}.status{font-size:8px}.top>.icon-btn{min-width:36px;padding:4px}.resources{gap:6px;padding:12px 10px;grid-template-columns:repeat(4,minmax(0,1fr))}.resource{display:flex;flex-wrap:wrap;justify-content:center;gap:0;padding:6px 3px;border-radius:14px;text-align:center}.res-symbol{width:29px;height:29px;flex-basis:29px}.resource strong{font-size:13px;align-self:center;padding:0 1px;font-variant-numeric:tabular-nums}.resource small{font-size:9px;width:100%;line-height:1.4;white-space:normal;letter-spacing:0}.res-track{width:85%;margin-top:5px;height:4px}.res-track i{height:4px}.content{padding:20px 13px}.sub{font-size:12px}.eyebrow{font-size:10px}.pill{font-size:10px;padding:5px 9px}.section-head{gap:6px}.landscape,.world-container{border-radius:20px}.town-note{font-size:9px;left:9px;top:9px;padding:4px 9px}.building-list{gap:6px;margin-top:12px}.building-chip{font-size:10px;min-height:87px;padding:7px 1px}.building-chip .icon{width:38px;height:38px}.building-chip small{font-size:10px}.card{padding:17px;border-radius:20px}.guide{padding:12px;gap:8px}.guide>.icon{width:44px;height:48px}.guide strong{font-size:12px}.guide p{font-size:11px}.guide .small{padding:7px 9px}.nav{padding:5px 0;gap:1px;font-size:11px;min-height:57px}.nav .icon{width:31px;height:31px}.bottom{padding:5px 7px calc(5px + env(safe-area-inset-bottom));gap:4px}.nav small{top:3px}.map-legend{font-size:8px;gap:6px;border-radius:10px;left:9px;top:9px}.queue-title{font-size:12px}.login{padding:24px 16px}.login-layout{display:block;max-width:430px}.login-story{display:none}.login-card{padding:25px 22px;border-radius:27px}.login-art{width:76px;height:76px}.login h1{font-size:27px}.login-card:has(#auth-confirm){padding:23px 22px}.login-card:has(#auth-confirm) .login-art{width:56px;height:56px}.login-footer{font-size:10px;gap:12px}.rank-tabs button{font-size:12px;padding:10px 4px}.rank-summary{padding:20px 16px}.my-standing strong{font-size:32px}.rank-row{padding:13px 9px}.report{padding:14px}.world-controls button{border-radius:12px}}
@media(max-width:359px){.brand{font-size:18px}.crest{width:36px;height:42px}.top{gap:6px}.top .eyebrow{font-size:8px}.identity{max-width:26%}.resource strong{font-size:12px}.res-symbol{width:24px;height:26px;flex-basis:24px}.resource small{font-size:8px}.card{padding:15px}.guide>.icon{width:36px}.guide p{font-size:10px}.content{padding:18px 10px}}
@media(prefers-reduced-motion:no-preference){.town-building[data-building="keep"] .castle-flag,.welcome-art .castle-flag{transform-box:fill-box;transform-origin:left bottom;animation:flag-wave 4s ease-in-out infinite}.primary:not(:disabled),.building-chip,.nav{transition:background .15s,transform .15s,box-shadow .15s}@keyframes flag-wave{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(3deg)}}}

.vip-badge{display:inline-block;padding:3px 9px;border-radius:10px;color:#805315;background:#ffe7a2;font-size:12px;vertical-align:middle}.queue-summary{display:flex;flex-direction:column;gap:5px;padding:15px 18px;margin:14px 0;background:#fff8df;border:1px solid #e8d6a5;border-radius:16px;color:#6d5943}.queue-summary span,.queue-summary small{font-size:13px;line-height:1.6}

/* Frontier expansion: original vector artwork, viewport-cullable resource markers. */
.world-overview{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;margin-bottom:18px;border:1px solid #d6dfc0;border-radius:16px;background:linear-gradient(100deg,#f4f4dc,#e4f3df);font-size:13px;color:#54765f}.world-overview .hint-link{margin:0;padding:0;min-height:32px}.world-filters{display:flex;gap:6px;margin:16px 0;flex-wrap:wrap}.world-filters button{border:1px solid #d8dfc3;background:#fffdf1;min-height:40px;border-radius:12px;padding:8px 13px;font:inherit;font-size:12px;color:#668271}.world-filters .selected{background:#347f75;border-color:#347f75;color:#fff}.map-coordinate{position:absolute;bottom:12px;left:12px;background:#fffdf1e8;border:1px solid #cfdbb6;border-radius:10px;padding:7px 10px;font-size:11px;color:#5b7761;pointer-events:none}.mine-marker{cursor:pointer;outline:none}.mine-marker:focus-visible>ellipse,.mine-marker:hover>ellipse{stroke:#d7a03f;stroke-width:4}.holding-row{display:flex;gap:9px;align-items:center;width:100%;background:#f4f8eb;border:1px solid #dbe6ce;border-radius:13px;padding:10px;margin-top:9px;text-align:left;color:#426e60;min-height:60px}.holding-icon{width:38px;height:38px;flex-shrink:0}.holding-row strong,.holding-row small{display:block}.holding-row small{font-size:11px;margin-top:3px;color:#78917b}.holding-row b{font-size:12px;margin-left:auto;white-space:nowrap}.mine-detail{background:linear-gradient(160deg,#fffef5,#f1f7e8)}.mine-detail .feature-icon{background:#e5f0db}.landscape{background:#b4df9b;box-shadow:0 6px 0 #c5d8ab,0 18px 32px #6c8f6310}.world-container{box-shadow:0 5px 0 #c5d8ab,0 16px 30px #7b9d6b12}.town-building{filter:drop-shadow(0 3px 0 #6f945416)}.target-list .secondary{display:flex;align-items:center;gap:8px}.target-list small{color:#879371;font-size:10px}.holdings{margin-top:16px}.mine-detail .primary{margin-top:10px}
@media(max-width:760px){.world-overview{padding:10px 12px;font-size:11px;gap:5px}.world-overview .hint-link{font-size:11px}.world-filters{gap:5px}.world-filters button{font-size:11px;padding:8px 10px}.map-coordinate{font-size:10px;bottom:9px;left:9px}.world .section-head>.primary{min-height:42px;padding:8px 14px;white-space:nowrap}}
