/* S60 formal blue/gold framework. Shared shell and existing live components only;
 * no preview HUD resource/queue/result selectors. Decoration stays at edges.
 * The authoritative live API and existing account/commission/replay controls stay intact.
 */
:root{color-scheme:dark;--paper:#102a40;--paper-card:#143249;--paper-deep:#0b2135;--ink:#e3ebef;--ink-2:#ccdde6;--ink-3:#abc2d0;--ink-4:#9bb4c5;--rule:#88754f;--rule-soft:#577183;--vermillion:#e4c485;--gold:#e4c485}
html,body{background:#102a40;color:var(--ink)}
body.game-theme{min-height:100vh;background:radial-gradient(ellipse at 50% 5%,#43657670,transparent 58%),radial-gradient(ellipse at 0 70%,#22566a80,transparent 60%),linear-gradient(135deg,#163b51,#081a2d);background-attachment:fixed}
body.game-theme::after{content:"";position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.11;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.07' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
.game-theme>header,.game-theme>main,.game-theme>footer{position:relative;z-index:1}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline-color:#95d9ef}
.topbar{background:linear-gradient(#102b42f5,#102c42e8);border-bottom:1px solid #c1a369;box-shadow:0 8px 28px #010f244a,inset 0 -4px 0 #bd9b5014}
.topbar-in{gap:24px;padding-top:19px;padding-bottom:16px}.brand,.brand-sub,.brand-box,.brand-mark{color:#edd5a1}.brand-en{color:#99b8ce}
.nav{gap:20px;flex-wrap:nowrap;min-width:0}.nav a{color:#c2d5df;white-space:nowrap}.nav a.on,.nav a:hover{color:#f1d9a7;border-bottom-color:#d6b876}
.seal{border-color:#8e7a54}.clock-label,.seal-hour,.worldnote{color:#a6c1d2}.seal-day{color:#edcc8a}.worldnote{border-color:#67879c38}
.wrap{max-width:1480px}.realm-intro h2,.sec-title,.territory-panel h2,.atlas-bar h2,.nation-head h3{color:#efd4a1}.eyebrow,.sec-no,.dayhead{color:#d3b47b}.intro-copy,.hint,.empty-detail,.realm-stats,.sec-en{color:#b6ccda!important}
.game-button{background:linear-gradient(#254b65,#142f46);border-color:#a38a5b;color:#e5c990;box-shadow:inset 0 0 0 3px #101e2e40}.game-button.primary{background:linear-gradient(120deg,#e7ce96,#b99558);color:#172739;border-color:#ead4a3}
.page-home::before{background-image:linear-gradient(90deg,#10263bbd,#102a40ec 25% 75%,#10263bbd),var(--realm-map,none);opacity:.19}
.page-home .realm-hero{background:#16354d;border:1px solid #b79a63;box-shadow:0 18px 42px #020f2952,inset 0 0 0 5px #091f30,inset 0 0 0 6px #a98c4c70;min-height:350px}
.realm-hero::before,.realm-hero::after{border-color:#d4b87f;width:40px;height:40px;z-index:3}
.realm-hero__art{background:#213f51}.realm-hero__art::after{background:linear-gradient(90deg,#16354d,#16354de0 16%,#16354d63 43%,transparent 80%),linear-gradient(0deg,#102940c0,transparent 65%)}
.realm-hero .intro-copy{color:#cfdfeb}.realm-hero__gallery>p{color:#e5d7b7;text-shadow:0 1px 5px #020d1d}
.realm-banner{background:#132e42de;border-color:#8c7b56;color:#d7e5ef;min-height:65px}.realm-banner img{width:48px;height:48px}.realm-banner[aria-pressed=true]{background:#284958;border-color:#ddc58d;box-shadow:inset 0 0 0 3px #d8b97822}.realm-banner:hover{background:#28465a;transform:none}
.page-home .realm-stats,.realm-stats{background:#122b40d9;border:1px solid #8c7959;box-shadow:inset 0 0 0 3px #10213280}.realm-stats strong{color:#edd4a2}.realm-stats .stat-live{color:#b6d6d2}
.atlas-panel,.territory-panel,.page-home .atlas-panel,.page-home .territory-panel,.nation-card,.vcard{background:linear-gradient(140deg,#24485e,#122f45 62%,#0f263b);border:1px solid #a08b60;box-shadow:0 12px 32px #01162d65,inset 0 0 0 4px #1021328c,inset 0 0 0 5px #a38d4f3d}
.atlas-panel{overflow:hidden}.atlas-bar,.page-home .atlas-bar{background:linear-gradient(100deg,#26485e,#102a40);border-bottom:3px double #af9563;padding:14px 18px}
.atlas-panel,.vcard,.nation-card{position:relative}
.atlas-panel::before,.vcard::after,.nation-card::after{content:"";position:absolute;inset:6px;z-index:2;pointer-events:none;border:1px solid #c2a26830;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 42 42'%3E%3Cpath d='M1 40V1H40M6 28V6H28M8 22Q8 8 22 8M11 19Q19 19 19 11M10 10L16 14L14 16Z' fill='none' stroke='%23d5b57b' stroke-width='.8'/%3E%3C/svg%3E");background-size:35px 35px;background-repeat:no-repeat;background-position:left top;opacity:.65}
.vcard::after,.nation-card::after{background-size:25px 25px;opacity:.45}
.atlas-tools{flex-wrap:wrap}.atlas-tools button,.atlas-tools a{color:#c3d6e2}.atlas-tools button[aria-pressed=true]{color:#f0d39a}.atlas-tools a{border-color:#8f7c56}
.atlas-bottom{background:#132d43;border-color:#907b51;color:#aec7d6;flex-wrap:wrap}.map-instruction{color:#aec7d6}
.hd-map{aspect-ratio:2000/1125;background:#243c45}.hd-map svg{width:100%;height:100%;display:block;user-select:none;-webkit-user-select:none}
.world-roads{pointer-events:none;fill:none;stroke:#2d2c21;stroke-width:3;stroke-opacity:.62}.world-roads path{vector-effect:non-scaling-stroke;stroke-width:1.2}
.realm-site{outline:none;cursor:pointer;--site-color:#8098af}.realm-site .site-hit{fill:transparent;stroke:none}.realm-site .site-aura{fill:var(--site-color);stroke:#f4dc9b;stroke-width:1.2}.realm-site .owner-flag{fill:var(--site-color);stroke:#161c1c;stroke-width:1.5;paint-order:stroke;stroke-linejoin:round}
.realm-site .settlement-icon{fill:#e0d2ae;stroke:#292c24;stroke-width:2.1;paint-order:stroke;stroke-linejoin:round}.realm-site .capital-crown{fill:#f3d995;stroke:#2a3027;stroke-width:3;paint-order:stroke}.realm-site .site-core{fill:#f5e4b6;stroke:#3c3825;stroke-width:1}
.realm-site.is-selected .site-aura,.realm-site:hover .site-aura,.realm-site:focus-visible .site-aura{stroke:#ffecb3;stroke-width:3;fill-opacity:.8!important}
.map-stage.hd-map .territory{fill-opacity:1;stroke:none}
.map-stage.hd-map .node-label{font-size:23px;stroke-width:4.2;fill:#f8edd3}.map-stage.hd-map .capital-label{font-size:27px;fill:#ffe3a4}.forest-label{font:27px var(--serif);fill:#dccfa7;stroke:#0b201b;stroke-width:6;paint-order:stroke;pointer-events:none;letter-spacing:3px}
.live-front{fill:none;stroke:#ffd18c;stroke-width:4;stroke-dasharray:10 8;paint-order:stroke;filter:drop-shadow(0 1px 2px #152015)}
.hd-map.no-borders .site-aura,.hd-map.no-borders .owner-flag{opacity:0}.hd-map.no-borders .is-selected .site-aura{opacity:1}.hd-map.no-borders .territory{fill-opacity:1;stroke:none}
.map-zoom{background:#102a40f5;border-color:#ddc48b;z-index:2;box-shadow:0 4px 12px #010f2860}.map-zoom button{color:#eed29a;border-color:#927c51;min-width:42px;min-height:42px}.map-zoom button:last-child{min-width:50px}
.territory-panel{position:relative;min-width:0;padding:23px}.territory-panel::after{content:"✧";position:absolute;right:12px;top:8px;color:#b69b64;font-size:18px;pointer-events:none}.territory-image{width:calc(100% + 46px);margin:-23px -23px 19px;border-color:#9b8458;opacity:.86}
.territory-panel p,.territory-owner,.territory-dials small,.route-link span,.front-route,.nation-info,.nation-head p,.nation-info b{color:#bacfdc}.territory-owner img{width:56px;height:56px}.territory-dials{border-color:#6d7f82}.territory-dials b{color:#e4edf1;font-size:18px}.territory-panel h3,.route-link{color:#e0c287}.territory-panel .neighbor-list button{background:#17394e;color:#c8dce6;border-color:#7b8c8d;min-height:36px}.neighbor-list button.hostile{border-color:#c88770;color:#ffd6b8}.route-link{border-color:#587385}
.territory-archive{display:block;margin-top:15px;padding:12px 2px;border-top:1px solid #9a8458;font-family:var(--serif);color:#eccd90}.tip{background:#122e43f5;color:#dbe7ee;border-color:#ceb582;box-shadow:0 8px 20px #010d2666}.tip .t-name{color:#edcc8c!important}.alert{background:#3c3430;color:#ffe2b8;border-color:#bd9f6b}
.sec-rule{background:linear-gradient(90deg,#bd9c60,transparent)}.vpair .nm,.vmain{color:#e5d2a4}.vpair .bar,.vmeta{border-color:#658196}.vmeta{color:#b7cbd7}.entry{color:#c5d9e3;border-color:#718b95}.empty,.chartwrap{background:#102c42;color:#bbd0de;border-color:#9b875b}.toggle,.toggle-box{color:#b3c9d9}.foot{color:#9db8cb;border-color:#8e795233}
.page-home .nation-card,.nation-card{border-top:3px solid var(--nation-color);min-width:0}.nation-scene{height:130px;opacity:.83}.nation-head img{width:64px;height:64px}.nation-head{gap:12px;align-items:center}.nation-history{font-size:11px}.nation-card-body{padding:18px}.nation-info{justify-content:space-between;gap:8px;margin-top:18px}.nation-join{color:#e4c78d;border-color:#738890;min-height:44px;font-size:12px}
.leader-link{display:flex;align-items:center;gap:12px;padding:13px 0;margin:12px 0;border-block:1px solid #6a7d85;text-decoration:none}.leader-avatar{position:relative;display:block;overflow:hidden;flex:none;width:62px;height:70px;background:radial-gradient(ellipse,#54707b,#183349);border:1px solid #c4aa74;box-shadow:inset 0 0 0 3px #122a3b}.leader-avatar img{position:absolute;max-width:none;height:auto;object-fit:unset}.leader-link strong{display:block;color:#efd3a1;font:18px var(--serif)}.leader-link small{display:block;color:#b7cad5;font-size:10px;line-height:1.8;margin-top:4px}.leader-arrow{margin-left:auto;color:#d1b475}
/* Existing functional forms and notice markup, with a clean reading surface. */
.company-auth__intro,.company-form,.company-subsection,.company-identity,.company-purse article,.commission-card{background:#143249!important;border-color:#8c7a54!important}.company-auth__intro h3,.company-form h4,.company-identity h3{color:#ecd4a3!important}.company-form input{background:#0c263b!important;color:#e4edf1!important;border-color:#8ca5af!important}.company-auth__rules,.company-subhead,.company-party-slot,.commission-board{border-color:#7b8b83!important}.company-kicker{color:#e0c58e!important}.company-monogram{background:#274d66!important;color:#edd6aa}.company-locked{color:#b3c9d6!important}
.company-auth,.company-ledger,.company-subsection,.guild-board,.guild-rule-grid article{border-color:#9e875a;background:linear-gradient(140deg,#24485d,#102b40);box-shadow:inset 0 0 0 4px #9c864d15,0 12px 30px #04152d40}
.guild-board__top,.guild-notice__facts div,.guild-empty,.guild-tabs button,.guild-filters button,.guild-refresh{background:#112e43;color:#c7d9e2;border-color:#859293}.guild-notice{background:#18394f;border-color:#99855b}.guild-notice::before{background:#be9f6755}.guild-notice.urgency--pressing .guild-notice__urgency{color:#efcf95}.guild-notice__foot em.is-registered{color:#b6deba}.guild-board__top{border-color:#8d7953}.guild-rule-grid article b{color:#e0c182}
.battle-scenes button,.battle-speed button{background:#133249;color:#bdd3e0;border-color:#8c9da0}.battle-scenes button.on{color:#f0d293;background:#284659}.battle-condition{color:#bdd1de!important}
@media(max-width:1250px){.topbar-in{flex-wrap:wrap}.nav{order:2;width:100%;justify-content:center}.seal{margin-left:auto}.brand-en{display:inline}.territory-panel{padding:18px}.territory-image{width:calc(100% + 36px);margin:-18px -18px 19px}.realm-banner{flex-direction:column;gap:3px}.realm-banner img{width:48px;height:48px}.realm-hero__gallery{width:47%}.realm-hero .intro-actions{flex-wrap:wrap}.realm-hero__copy{max-width:400px}}
@media(max-width:850px){.nav{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;gap:20px;scrollbar-width:thin}.nav a{font-size:12px;min-height:44px;padding:12px 0;flex:none}.realm-hero__gallery{width:auto}.realm-banner{flex-direction:row}.realm-hero__art::after{background:linear-gradient(90deg,#16354d,#16354dbd 35%,#16354d20),linear-gradient(0deg,#16354dee,transparent 70%)}.territory-image{width:180px;margin:0 0 10px 20px;opacity:.9}.realm-intro .intro-actions{flex-direction:row;flex-wrap:wrap}.nations-row{gap:16px}.nation-head img{width:56px;height:56px}.leader-link strong{font-size:17px}.guild-intro{gap:14px}}
@media(max-width:520px){.brand-en{display:none}.topbar-in{gap:10px}.nav{gap:20px}.wrap{padding-inline:12px}.realm-intro .intro-actions{margin-top:15px}.game-button{min-height:44px}.page-home .realm-hero{padding:155px 20px 138px}.realm-hero__art{height:177px}.realm-hero__art::after{background:linear-gradient(0deg,#16354d,transparent 70%)}.page-home .realm-hero h2{font-size:29px;letter-spacing:.06em}.realm-hero__gallery>p{font-size:10px}.realm-banner{flex-direction:column;min-height:78px;padding:5px 2px;font-size:9px}.realm-banner img{width:48px;height:48px}.realm-hero .intro-actions{gap:7px}.realm-hero .intro-actions .game-button{padding:8px 10px;font-size:10px}.hd-map{aspect-ratio:1.4}.atlas-bar{flex-wrap:wrap;padding:12px;gap:8px}.atlas-tools button{min-height:36px;padding:4px 8px}.atlas-bottom{font-size:10px;line-height:1.7}.atlas-bottom .map-instruction{display:block;text-align:left}.map-compass{display:none}.territory-image{width:130px;height:107px}.territory-panel h2{font-size:24px}.territory-panel p{font-size:13px}.territory-dials{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.territory-owner{font-size:13px}.territory-panel .neighbor-list button{font-size:12px;min-height:44px}.nations-row{grid-template-columns:1fr;gap:18px}.nation-scene{height:150px}.nation-head h3{font-size:21px}.nation-info{font-size:12px}.nation-card-body{padding:20px}.leader-avatar{width:64px;height:73px}.leader-link strong{font-size:20px}.leader-link small{font-size:12px}.nation-join{padding-top:14px}.guild-intro{display:block}.guild-state{text-align:left;margin-top:18px;padding:12px 0;border:0;border-top:1px solid #8d7953}.foot{font-size:10px}.vpair .nm{font-size:12px}.page-home .realm-stats{font-size:11px}.territory-panel::after{display:none}}

/* Four mirrored flourishes avoid covering the clean reading area. */
.atlas-panel::before,.vcard::after,.nation-card::after{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2042%2042%27%3E%3Cg%20transform%3D%27%27%3E%3Cpath%20d%3D%27M1%2040V1H40M6%2028V6H28M8%2022Q8%208%2022%208M11%2019Q19%2019%2019%2011M10%2010L16%2014L14%2016Z%27%20fill%3D%27none%27%20stroke%3D%27%23d5b57b%27%20stroke-width%3D%27.8%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2042%2042%27%3E%3Cg%20transform%3D%27translate%2842%200%29%20scale%28-1%201%29%27%3E%3Cpath%20d%3D%27M1%2040V1H40M6%2028V6H28M8%2022Q8%208%2022%208M11%2019Q19%2019%2019%2011M10%2010L16%2014L14%2016Z%27%20fill%3D%27none%27%20stroke%3D%27%23d5b57b%27%20stroke-width%3D%27.8%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2042%2042%27%3E%3Cg%20transform%3D%27translate%280%2042%29%20scale%281%20-1%29%27%3E%3Cpath%20d%3D%27M1%2040V1H40M6%2028V6H28M8%2022Q8%208%2022%208M11%2019Q19%2019%2019%2011M10%2010L16%2014L14%2016Z%27%20fill%3D%27none%27%20stroke%3D%27%23d5b57b%27%20stroke-width%3D%27.8%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"),url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2042%2042%27%3E%3Cg%20transform%3D%27translate%2842%2042%29%20scale%28-1%20-1%29%27%3E%3Cpath%20d%3D%27M1%2040V1H40M6%2028V6H28M8%2022Q8%208%2022%208M11%2019Q19%2019%2019%2011M10%2010L16%2014L14%2016Z%27%20fill%3D%27none%27%20stroke%3D%27%23d5b57b%27%20stroke-width%3D%27.8%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-position:left top,right top,left bottom,right bottom;background-size:24px 24px}
.atlas-bar,.page-home .atlas-bar{padding-left:28px}
@media(max-width:520px){.guild-tabs button,.guild-filters button,.guild-refresh,.company-seal-button{min-height:44px}.atlas-panel::before,.vcard::after,.nation-card::after{background-size:18px 18px}.atlas-bar,.page-home .atlas-bar{padding-left:23px}}
/* S65 live political tint over the calibrated HD map; never intercept city input. */
.ownership-overlay{pointer-events:none;fill-opacity:.34;stroke-opacity:.54;stroke-width:1.5;stroke-linejoin:round}
.ownership-cell{vector-effect:non-scaling-stroke}
.hd-map.no-borders .ownership-overlay{display:none}
#game-nation-dock button{border-bottom:3px solid var(--ownership-color,#a88e57)}

/* S159 战力比行：深色底下数字提亮，够门槛的用暖色 */
.route-link .route-odds b{color:#e4edf1}.route-link .route-odds.is-ready b{color:#ffc27a}
