:root{--green:#087d64;--deep:#063e35;--mint:#dcf0e7;--gold:#b88a37;--goldlight:#f6e5ba;--ink:#193f35;--muted:#79867d;--paper:#f6f5ef;--line:#e1e6dc;--white:#fffefa;--red:#ad5646;--shadow:0 10px 32px #1b45310b;--radius:20px;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,a,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #d6ad59;outline-offset:3px}a{color:inherit;text-decoration:none}button{color:inherit}button,.btn{transition:background .15s,transform .15s,box-shadow .15s}button:not(:disabled):active,.btn:active{transform:translateY(1px)}.test-ribbon{height:29px;padding:0 26px;display:flex;align-items:center;justify-content:center;gap:7px;background:#e6d8b5;font-size:11px;font-weight:600;color:#65542f;letter-spacing:.15px}.test-dot{height:6px;width:6px;border-radius:50%;background:#a27325}.connection{position:absolute;right:24px;font-size:10px;opacity:.8}.connection.offline{color:#973c2b}.topbar{height:87px;background:var(--deep);color:white;padding:0 34px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #c1a45f38}.brand{display:flex;gap:13px;align-items:center}.brand-mark{width:43px;height:47px;background:linear-gradient(150deg,#e6c980,#b28b3d);display:grid;place-items:center;clip-path:polygon(5% 0,95% 0,95% 68%,50% 100%,5% 68%);color:#164a37;font-size:24px;font-weight:900}.brand b{font-size:20px;letter-spacing:3px}.brand small{display:block;color:#b7c7ba;font-size:11px;letter-spacing:1px;margin-top:3px}.top-right{display:flex;align-items:center;gap:20px}.game-clock{font-size:11px;color:#bed1c4;line-height:1.8;text-align:right}.user-button{border:1px solid #8ba68f45;background:#ffffff0d;color:white;padding:10px 14px;border-radius:30px;font-size:12px;display:flex;gap:7px;align-items:center}.shell{display:flex;max-width:1640px;margin:auto;min-height:calc(100vh - 116px)}.side-nav{width:212px;flex-shrink:0;padding:34px 16px 24px 23px;border-right:1px solid var(--line);position:relative;display:flex;flex-direction:column;background:#f3f4ed}.nav-caption{font-size:9px;letter-spacing:2px;color:#9a9e8d;padding:0 15px 18px}.nav-item{display:flex;align-items:center;gap:13px;background:none;padding:14px 17px;border-radius:12px;text-align:left;font-size:13px;margin-bottom:6px;width:100%;font-weight:600}.nav-item span{width:22px;font-size:24px;font-weight:400;line-height:1}.nav-item:hover{background:#e7ece1}.nav-item.active{background:var(--deep);color:#f5e3b8;box-shadow:0 5px 12px #063e3518}.nav-bottom{margin-top:auto;padding-top:70px}.nav-bottom p{font-size:10px;color:#8d978c;line-height:2;text-align:center;margin-top:30px}.nav-bottom p span{font-size:16px;color:#b2a176}main{width:100%;padding:30px 34px 60px;min-width:0}.page-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin:0 0 24px}.eyebrow{letter-spacing:2px;font-size:9px;font-weight:700;color:var(--gold);margin-bottom:7px}.page-heading h1{margin:0;font-size:26px;letter-spacing:.5px;font-weight:750}.page-heading p{font-size:12px;color:var(--muted);margin:9px 0 0;line-height:1.7}.season-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid #d5c59c;background:#fbf7e9;color:#8c6a2d;font-size:11px;padding:8px 11px;border-radius:20px;white-space:nowrap}.season-pill:before{content:"";width:5px;height:5px;border-radius:50%;background:#b6914c}.card{border:1px solid var(--line);border-radius:var(--radius);background:var(--white);box-shadow:var(--shadow);overflow:hidden}.card-pad{padding:22px}.card h2{font-size:16px;margin:0 0 16px}.card h3{font-size:14px;margin:0 0 10px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:28px 0 14px}.section-heading h2{font-size:17px;margin:0}.section-heading small{font-size:11px;color:var(--muted)}.grid{display:grid;gap:16px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.split{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr);gap:20px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:10px;min-height:40px;padding:10px 16px;background:var(--green);color:white;font-size:12px;font-weight:650;line-height:1.5}.btn:hover:not(:disabled){background:#086650}.btn.small{padding:7px 11px;min-height:32px;font-size:11px;border-radius:8px}.btn.ghost{background:#edf3eb;color:#416854;border-color:#dce7d9}.btn.ghost:hover:not(:disabled){background:#dfebdc}.btn.gold{background:#e5ca8a;color:#5e4820}.btn.gold:hover:not(:disabled){background:#dcc078}.btn.dark{background:var(--deep);color:#eedca9}.btn.danger{background:#f7e8e4;color:#a04b3f;border-color:#e7cac2}.btn.full{width:100%}.btn-row{display:flex;gap:8px;flex-wrap:wrap}.text-btn{background:none;color:var(--green);padding:4px 0;font-size:11px}.muted{color:var(--muted)}.tiny{font-size:11px;line-height:1.8}.notice{border:1px solid #e3d9bd;background:#f8f2df;border-radius:12px;padding:12px 15px;color:#8c753f;font-size:11px;line-height:1.8}.notice.green{border-color:#d3e8db;background:#eef6ee;color:#4f7b60}.notice.red{border-color:#e9c9bf;background:#fbefea;color:#a85f4a}.chip{display:inline-flex;border-radius:6px;background:#eef3e8;color:#698161;font-size:10px;font-weight:600;padding:4px 7px;white-space:nowrap}.chip.gold{color:#8e6a28;background:#faf0d6}.chip.red{background:#f7e9e2;color:#a8624b}.divider{height:1px;background:var(--line);margin:18px 0}.resource-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.resource{background:#fffefa;border:1px solid var(--line);border-radius:13px;padding:15px 17px;position:relative}.resource label{display:block;color:var(--muted);font-size:10px;letter-spacing:.5px;margin-bottom:7px}.resource strong{font-size:20px;font-variant-numeric:tabular-nums;font-weight:750}.resource small{display:block;font-size:10px;color:#9aa38f;margin-top:5px}.resource .resource-icon{position:absolute;right:15px;top:19px;font-size:21px;opacity:.35}.family-hero{min-height:245px;background:linear-gradient(105deg,#083f35,#125844);display:flex;color:#fff7df;position:relative;padding:28px;isolation:isolate}.family-hero:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 83% 50%,#e1b15718,transparent 65%);z-index:-1}.hero-copy{z-index:2;width:65%;display:flex;flex-direction:column;align-items:flex-start}.family-hero .eyebrow{color:#d4be7c}.family-hero h2{font-size:26px;margin:7px 0}.family-hero p{font-size:11px;line-height:1.8;color:#b6cfbd;max-width:340px;margin:10px 0 20px}.hero-art{width:270px;position:absolute;right:15px;bottom:0;top:0;opacity:.9;mask-image:linear-gradient(to right,transparent,#000 28%,#000 85%,transparent);background-position:center;background-size:cover}.family-tag{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:750;background:#e6d3a4;color:#59491f;padding:5px 9px;border:1px solid #ba9857;border-radius:5px;white-space:nowrap}.family-tag:before{content:"♛";font-size:12px}.family-tag:hover{background:#f3e3bd}.hero-meta{display:flex;align-items:center;gap:9px}.hero-meta .chip{background:#ffffff13;color:#c4d9bd;border:1px solid #b0ca9f2c}.progress-track{height:7px;background:#dbe5d5;border-radius:10px;overflow:hidden}.progress-track>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#b58e42,#e3c986);transition:width .4s}.hero-progress{margin-top:auto;width:min(330px,100%)}.hero-progress .progress-track{background:#ffffff1b}.progress-label{display:flex;justify-content:space-between;gap:10px;font-size:10px;margin-bottom:7px;color:#c4d6c0}.hero-flag{position:absolute;right:27px;top:20px;font-size:10px;border:1px solid #d7bc7844;color:#e2c987;padding:6px 9px;border-radius:20px;z-index:2}.goal-card{padding:22px;display:flex;flex-direction:column;min-height:245px;background:linear-gradient(145deg,#fffefa,#f5efdc)}.goal-card .goal-icon{font-size:30px;margin:10px 0}.goal-card h3{font-size:18px;margin:0 0 8px}.goal-card p{font-size:11px;color:var(--muted);line-height:1.9;margin:0 0 18px}.goal-card .btn{margin-top:auto;align-self:flex-start}.building-card{padding:0 0 16px}.art-tile{background-size:contain;width:100%;height:180px;background-repeat:no-repeat;position:relative;border-bottom:1px solid var(--line)}.art-tile.palace{background-position:0 0}.art-tile.barracks{background-position:50% 0}.art-tile.workshop{background-position:100% 0}.art-tile.shield{background-position:0 100%}.art-tile.archer{background-position:50% 100%}.art-tile.camel{background-position:100% 100%}.art-tile .level{position:absolute;bottom:10px;left:12px;border:1px solid #ddc58e99;background:#133d2ddd;color:#f1d99f;font-size:11px;border-radius:7px;padding:5px 9px}.building-body{padding:17px 16px 0}.building-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.building-title h3{font-size:15px;margin:0}.building-body p{color:var(--muted);font-size:11px;line-height:1.7;min-height:35px;margin:9px 0}.building-info{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #ebeee5;padding-top:11px;margin-top:12px;font-size:10px;color:#839078}.building-info b{color:#4e6d56}.task{display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line);padding:15px 0}.task:first-of-type{padding-top:0}.task:last-child{border:0;padding-bottom:0}.task-icon{height:40px;width:40px;display:grid;place-items:center;background:#edf4e9;border-radius:12px;color:var(--green);font-size:20px;flex-shrink:0}.task-copy{flex:1}.task-copy h3{font-size:12px;margin:0 0 5px}.task-copy p{font-size:10px;color:var(--muted);margin:0}.queue-row{padding:11px 0;border-bottom:1px solid var(--line)}.queue-row:last-child{border:0;padding-bottom:0}.queue-top{display:flex;justify-content:space-between;font-size:11px;margin-bottom:7px}.queue-top b{font-weight:650}.queue-top span{color:var(--gold);font-variant-numeric:tabular-nums}.empty-small{font-size:11px;text-align:center;padding:20px;color:var(--muted);line-height:1.8}.report{font-size:11px;padding:12px 0;border-bottom:1px solid var(--line);line-height:1.9;display:flex;gap:10px}.report:last-child{border:0}.report-icon{color:var(--gold);font-size:17px}.report small{display:block;color:#9ba38f;font-size:9px}.officer-row{display:flex;gap:12px;flex-wrap:wrap}.officer{display:flex;align-items:center;gap:9px;background:#f5f5ec;border:1px solid var(--line);border-radius:12px;padding:10px 14px;text-align:left}.avatar{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;background:linear-gradient(145deg,#c9d9b8,#6c9877);border:2px solid #d3bb7a;color:#153f2c;font-weight:750;font-size:14px}.avatar.large{width:72px;height:72px;font-size:28px;border-width:3px}.officer b{display:block;font-size:11px}.officer small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.family-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.family-card{padding:22px;position:relative}.family-card h3{font-size:18px;margin:14px 0 9px}.family-card .description{font-size:11px;line-height:1.8;color:var(--muted);margin:0 0 20px}.family-card .mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;border-top:1px solid var(--line);padding:15px 0}.mini-stats b{display:block;font-size:17px;font-variant-numeric:tabular-nums}.mini-stats span{font-size:10px;color:var(--muted)}.family-card .status{position:absolute;right:20px;top:23px}.public-hero{min-height:300px}.public-hero .hero-copy{width:62%}.public-hero .hero-art{width:390px;right:0}.public-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:16px;overflow:hidden;margin:18px 0}.public-metrics>div{background:#fffefa;padding:20px 14px;text-align:center}.public-metrics strong{display:block;font-size:23px}.public-metrics span{font-size:10px;color:var(--muted);display:block;margin-top:7px}.public-building{padding:15px 17px;display:flex;align-items:center;justify-content:space-between}.public-building b{font-size:12px}.public-building span{font-size:17px;color:var(--gold);font-weight:700}.honor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.honor-card{text-align:center;padding:22px 16px;background:linear-gradient(150deg,#fffcf0,#f5edda);border:1px solid #e6d9b6;border-radius:16px}.honor-medal{font-size:40px;margin-bottom:10px;filter:drop-shadow(0 4px 3px #a7782020)}.honor-card h3{font-size:13px;margin:0 0 7px}.honor-card p{font-size:10px;color:var(--muted);line-height:1.8;margin:0}.rank-row{display:flex;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);gap:15px;font-size:12px}.rank-row:last-child{border:0}.rank-number{width:26px;font-size:20px;color:var(--gold);font-weight:750}.rank-copy{flex:1}.rank-copy b{display:block}.rank-copy small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.rank-score{font-size:14px;font-weight:700}.map-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,.8fr);gap:18px;align-items:start}.map-toolbar{padding:13px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:10px;font-size:11px;background:#fffdf6}.map-scroll{height:min(72vh,940px);min-height:550px;overflow:auto;background:#e5dfc5;position:relative;scrollbar-width:thin;scrollbar-color:#aeab87 #e5dfc5}.world-map{display:block;min-width:100%;height:auto;touch-action:pan-x pan-y}.map-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:9px;color:var(--muted);padding:12px 16px;border-top:1px solid var(--line)}.map-legend span{display:flex;gap:5px;align-items:center}.legend-dot{width:7px;height:7px;background:#a29c7d;border-radius:50%}.legend-dot.open{background:#c79c4b}.legend-dot.won{background:#17856b}.legend-dot.battle{background:#ba6a3d}.province-node{cursor:pointer;outline:0}.province-node circle.outer{transition:all .2s}.province-node:hover circle.outer{stroke-width:4;filter:drop-shadow(0 0 7px #d7b35488)}.province-node.selected circle.outer{stroke:#fff3b4;stroke-width:5;filter:drop-shadow(0 0 10px #ae792b)}.province-name{font-size:14px;fill:#48654a;font-weight:700;paint-order:stroke;stroke:#efe8ce;stroke-width:4px;pointer-events:none}.province-id{font-size:15px;font-weight:800;fill:#fff6d9;pointer-events:none}.map-region-name{font-size:29px;letter-spacing:10px;fill:#777550;font-weight:700;opacity:.25}.map-path{fill:none;stroke:#b7a477;stroke-width:3;stroke-dasharray:5 6}.map-path.done{stroke:#5e9a72;stroke-dasharray:none;opacity:.7}.province-detail{padding:23px;position:sticky;top:18px}.province-detail h2{font-size:23px;margin:9px 0 16px}.province-detail .province-number{font-size:10px;color:var(--gold);letter-spacing:2px}.detail-stat{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:11px}.detail-stat:last-child{border:0}.detail-stat span{color:var(--muted)}.detail-stat b{font-size:13px}.province-detail .btn-row{margin-top:18px}.province-art{height:140px;border-radius:12px;background:linear-gradient(145deg,#decf9a,#95ad84);margin-bottom:18px;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;position:relative}.province-art:before{content:"";position:absolute;width:220px;height:120px;background:#b2ba8c;border-radius:100% 100% 0 0;bottom:-50px;left:-40px}.province-art svg{width:120px;height:115px;z-index:1;filter:drop-shadow(0 5px 0 #91875f30)}.unit-card .art-tile{height:210px}.unit-card .unit-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;border-top:1px solid var(--line);padding:13px 0;font-size:10px}.unit-stats strong{display:block;font-size:16px;margin-bottom:4px}.unit-stats span{color:var(--muted)}.unit-card .building-body p{min-height:0}.field{display:block;margin-bottom:16px}.field>span{font-size:11px;font-weight:650;display:block;margin-bottom:7px}.field input,.field select,.inline-input{width:100%;border:1px solid #d8e0d1;border-radius:10px;padding:12px;background:#fafbf5;color:var(--ink);outline:none;min-height:43px}.field small{display:block;color:var(--muted);font-size:10px;line-height:1.7;margin-top:6px}.inline-form{display:flex;gap:8px;align-items:center}.inline-input{min-width:0}.form-note{font-size:11px;line-height:1.9;color:var(--muted);margin:0 0 20px}.lab-controls{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.lab-controls .btn{min-height:55px}.stat-line{display:flex;justify-content:space-between;gap:20px;font-size:11px;line-height:2.1}.stat-line span{color:var(--muted)}.wallet-amount{font-size:31px;font-weight:750;margin:10px 0}.wallet-caption{font-size:10px;color:var(--muted)}.table-scroll{overflow-x:auto}.simple-table{width:100%;border-collapse:collapse;font-size:11px;white-space:nowrap}.simple-table th,.simple-table td{padding:11px 13px;border-bottom:1px solid var(--line);text-align:left}.simple-table th{font-size:10px;color:#84917c;font-weight:600}.simple-table tbody tr:last-child td{border:0}.application{padding:13px 0;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);font-size:12px}.application:last-child{border:0}.application strong{flex:1}.empty-kingdom{max-width:820px;margin:0 auto;padding-top:10px}.empty-intro{text-align:center;padding:35px 20px}.empty-intro h1{font-size:30px;margin:12px 0}.empty-intro p{font-size:12px;color:var(--muted);line-height:2}.empty-mark{font-size:47px;color:var(--gold)}.setup-card{padding:24px}.setup-card .form-note{min-height:54px}.empty-number{display:inline-block;border:1px solid #ddc99e;color:var(--gold);padding:5px 8px;border-radius:5px;font-size:10px;letter-spacing:1px;margin-bottom:13px}.setup-card h2{font-size:17px;margin:0 0 12px}.login-wrap{max-width:510px;margin:25px auto}.login-wrap .card{padding:32px}.login-emblem{display:flex;justify-content:center;margin-bottom:20px}.login-wrap h1{text-align:center;font-size:27px;margin:0 0 12px}.login-wrap .intro{text-align:center;font-size:12px;color:var(--muted);line-height:1.9;margin-bottom:28px}.profile-top{display:flex;flex-direction:column;align-items:center;padding:10px 0 15px;gap:10px}.profile-top h3{margin:0;font-size:21px}.profile-top .muted{font-size:10px}.profile-plate{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.profile-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;text-align:center;padding:18px 0}.profile-facts b{display:block;font-size:19px}.profile-facts small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.modal-head h2{font-size:19px;margin:0}.icon-button{font-size:26px;width:32px;height:32px;background:#f0f3e9;border-radius:50%;display:grid;place-items:center;color:#86917d;line-height:1}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.mobile-nav{display:none}dialog{border:1px solid #d1d8c6;border-radius:22px;padding:25px;width:min(520px,calc(100vw - 28px));color:var(--ink);background:#fffefa;box-shadow:0 30px 100px #082a2940;max-height:88vh;overflow:auto}dialog::backdrop{background:#092f2ace;backdrop-filter:blur(5px)}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,20px);background:#073f35;color:#f1e7cb;border:1px solid #c1a56855;border-radius:12px;padding:12px 20px;font-size:12px;box-shadow:0 12px 40px #042c3040;max-width:calc(100vw - 36px);opacity:0;pointer-events:none;transition:.2s;z-index:1000;line-height:1.8;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error{background:#8b473c;color:white}.loading{padding:100px 20px;text-align:center;color:var(--muted);font-size:12px}.spinner{display:inline-block;width:28px;height:28px;border:2px solid #dce5d7;border-top-color:var(--gold);border-radius:50%;animation:spin 1s linear infinite}.loading p{margin-top:18px}.busy{opacity:.65;pointer-events:none}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:1550px){main{padding:36px 48px 70px}.art-tile{height:220px}}@media(max-width:1120px){.side-nav{width:177px;padding-left:12px;padding-right:10px}main{padding:26px 23px 60px}.split{grid-template-columns:1fr}.goal-card{min-height:0}.resource strong{font-size:18px}.hero-art{width:310px}.family-hero{min-height:255px}.map-layout{grid-template-columns:1fr}.province-detail{position:static}.map-scroll{max-height:680px}.grid-3{gap:11px}.art-tile{height:150px}}@media(max-width:760px){.test-ribbon{padding:0 12px;font-size:9px;justify-content:flex-start;height:26px}.connection{right:12px;font-size:9px}.topbar{height:71px;padding:0 17px}.brand{gap:9px}.brand-mark{width:33px;height:37px;font-size:20px}.brand b{font-size:16px;letter-spacing:2px}.brand small{font-size:9px;letter-spacing:.5px}.game-clock{display:none}.user-button{font-size:10px;padding:8px 11px}.top-right{gap:8px}.side-nav{display:none}.shell{min-height:calc(100vh - 97px)}main{padding:22px 15px 100px}.page-heading{margin-bottom:19px;gap:8px}.page-heading h1{font-size:23px}.page-heading p{font-size:10px;max-width:250px}.eyebrow{font-size:8px;letter-spacing:1.8px}.season-pill{font-size:9px;padding:7px 9px}.resource-row{grid-template-columns:repeat(2,1fr);gap:9px;margin:14px 0}.resource{padding:14px}.resource strong{font-size:19px}.resource small{font-size:9px}.resource .resource-icon{right:13px;top:19px;font-size:20px}.family-hero{padding:22px;min-height:258px}.family-hero h2{font-size:25px}.hero-copy{width:77%}.hero-copy p{max-width:235px;font-size:10px}.hero-art{width:230px;right:-32px;opacity:.5;mask-image:linear-gradient(to right,transparent,#000 35%,#000)}.hero-flag{right:15px;top:16px;font-size:8px}.hero-meta{flex-wrap:wrap}.hero-meta .chip{font-size:8px}.family-tag{font-size:10px}.hero-progress{width:100%;max-width:250px}.split{gap:13px}.goal-card{padding:20px;min-height:210px}.goal-card .goal-icon{font-size:24px;margin:3px 0 10px}.goal-card h3{font-size:17px}.goal-card p{font-size:10px}.goal-card .btn{font-size:11px}.section-heading{margin:24px 0 12px}.section-heading h2{font-size:15px}.section-heading small{font-size:9px}.grid-2,.family-list{grid-template-columns:1fr}.grid-3{gap:8px}.building-card{padding-bottom:12px;border-radius:13px}.art-tile{height:115px}.building-body{padding:11px 10px 0}.building-title{flex-wrap:wrap;gap:6px}.building-title h3{font-size:12px}.building-body p{font-size:9px;min-height:43px;line-height:1.75;margin:7px 0}.building-info{flex-wrap:wrap;font-size:9px;gap:4px;padding-top:8px;margin-top:9px}.building-body .btn.full{font-size:10px;padding:8px 4px;min-height:34px;border-radius:7px}.art-tile .level{font-size:9px;bottom:7px;left:8px;padding:3px 6px;border-radius:5px}.card-pad{padding:19px}.task{gap:9px}.task-icon{width:35px;height:35px;font-size:18px}.task-copy h3{font-size:11px}.task-copy p{font-size:9px}.btn.small{font-size:10px}.officer{padding:9px 11px}.officer-row{gap:8px}.officer b{font-size:10px}.officer small{font-size:8px}.avatar{width:31px;height:31px;font-size:12px}.family-card{padding:20px}.family-card h3{font-size:17px}.family-card .description{font-size:10px}.public-hero .hero-copy{width:82%}.public-hero .hero-art{width:270px}.public-metrics{grid-template-columns:repeat(2,1fr);gap:1px}.public-metrics>div{padding:17px 10px}.public-metrics strong{font-size:22px}.public-building{padding:12px 10px}.public-building b{font-size:10px}.public-building span{font-size:14px}.public-hero{min-height:280px}.honor-grid{gap:8px}.honor-card{padding:17px 7px}.honor-medal{font-size:30px}.honor-card h3{font-size:10px}.honor-card p{font-size:9px}.unit-card .art-tile{height:140px}.unit-card .unit-stats{grid-template-columns:1fr;gap:8px;padding:10px 0}.unit-stats strong{display:inline;font-size:13px;margin-right:6px}.unit-stats span{font-size:9px}.unit-card .building-body p{font-size:9px}.map-scroll{height:66vh;min-height:470px}.map-toolbar{padding:11px;font-size:10px}.map-toolbar .btn.small{font-size:9px;padding:6px 8px}.map-layout{gap:13px}.province-detail{padding:20px}.map-legend{font-size:8px;gap:9px}.province-name{font-size:13px}.map-region-name{font-size:26px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:50;background:#fffef9ed;backdrop-filter:blur(10px);border-top:1px solid #dbe2d2;padding:7px 6px max(9px,env(safe-area-inset-bottom));justify-content:space-around}.mobile-nav button{display:flex;flex-direction:column;align-items:center;gap:3px;background:none;color:#98a08e;font-size:9px;min-width:52px;padding:4px;border-radius:8px}.mobile-nav button span{font-size:24px;line-height:1}.mobile-nav button.active{color:var(--green);background:#f0f5e9}.mobile-nav button.active span{color:#09624f}.empty-intro{padding:20px 5px}.empty-intro h1{font-size:25px}.empty-intro p{font-size:11px}.setup-card{padding:22px}.setup-card .form-note{min-height:0}.login-wrap{margin:10px auto}.login-wrap .card{padding:26px 22px}.login-wrap h1{font-size:24px}.login-wrap .intro{font-size:11px}.lab-controls{gap:8px}.lab-controls .btn{font-size:10px;min-height:48px}.wallet-amount{font-size:27px}dialog{padding:22px}.modal-head h2{font-size:17px}.notice{font-size:10px;padding:10px 12px}.btn{font-size:11px}.section-heading .btn.small{font-size:9px}#toast{bottom:86px;font-size:11px;padding:10px 15px}.profile-facts b{font-size:17px}.profile-facts small{font-size:9px}}
/* Explicit diamond payment is separate from the free test-clock controls. */
.btn.speedup-button{background:#f5e4b7;color:#7b5824;border-color:#d7b36c;font-weight:750}
.btn.speedup-button:hover:not(:disabled){background:#ebd396}
.building-body .speedup-button{margin-top:8px}
.queue-speedup{display:flex;justify-content:flex-end;margin-top:9px}
.speedup-error{color:var(--red);margin:12px 0 0;min-height:0}
/* Queue results remain available until the member confirms reading them. */
.result-notice[hidden]{display:none}
.result-notice{display:flex;align-items:center;gap:13px;background:#f8efd8;color:#6e5829;border-bottom:1px solid #dac58f;padding:13px max(24px,calc((100vw - 1540px)/2));position:sticky;top:0;z-index:45;box-shadow:0 4px 16px #173e240b}
.result-notice-icon{font-size:25px;color:#b18a3b;flex-shrink:0}
.result-notice>div:first-of-type{flex:1;min-width:0}
.result-notice b{font-size:12px;display:block;line-height:1.6}
.result-notice small{display:block;font-size:10px;line-height:1.7;color:#9a885e;margin-top:2px}
.result-notice-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
dialog.results-dialog{width:min(580px,calc(100vw - 28px));padding:23px;max-height:90vh}
dialog.war-results-dialog{width:min(650px,calc(100vw - 24px));padding:19px}
.completion-list{display:grid;gap:11px}
.completion-intro{margin-bottom:16px}
.completion-card{padding:17px 18px;border:1px solid #dbe7d6;background:#f4f8ef;border-radius:14px}
.completion-card h3{font-size:16px;margin:4px 0 0}
.completion-card small{font-size:9px;color:#92a087;display:block;margin-top:11px}
.completion-heading{display:flex;align-items:center;gap:11px}
.completion-heading>div{flex:1;min-width:0}
.completion-symbol{font-size:26px;line-height:1;color:#658b58;flex-shrink:0}
.completion-type{font-size:10px;color:#698564;font-weight:700}
.completion-detail{font-size:11px;line-height:1.8;color:#6c8065;margin:13px 0 0}
.completion-card.success{background:#eef7ec;border-color:#b9d5b3}
.completion-card.failure{background:#f9eee8;border-color:#dfb6a8}
.failure .completion-symbol,.failure .completion-type{color:#a45d48}
.failure .completion-detail{color:#9b7566}
.battle-result-numbers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}
.battle-result-numbers>div{border-radius:10px;background:#ffffff86;padding:12px 15px}
.battle-result-numbers span{display:block;font-size:10px;color:#849479;margin-bottom:6px}
.battle-result-numbers strong{font-size:25px;font-variant-numeric:tabular-nums;font-weight:750}
.battle-result-numbers>div:first-child strong{color:#a5684d}
.battle-result-numbers>div:last-child strong{color:#427a58}
.battle-result-breakdown{display:grid;gap:5px;font-size:10px;line-height:1.6;color:#88937e;margin-top:13px}
.unified-result{background:#fbf1d6;border-color:#dec58b}
.unified-result .completion-symbol,.unified-result .completion-type{color:#ab8131}
.completion-actions{position:sticky;bottom:-23px;margin:16px -2px -5px;padding:16px 2px 5px;background:#fffefa;border-top:1px solid #e3e8dc;z-index:2}
.war-result-hero{position:relative;height:265px;border-radius:16px;overflow:hidden;background:linear-gradient(140deg,#0d5b45,#a28549);isolation:isolate}
.war-result-hero.defeat{background:linear-gradient(140deg,#4d4a43,#8a5c45)}
.war-result-hero img{width:100%;height:100%;object-fit:cover;display:block;position:absolute;inset:0;z-index:-2}
.war-result-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#08291c00 20%,#092f2480 66%,#092f24ed);z-index:-1}
.war-result-hero.defeat:after{background:linear-gradient(180deg,#2a221e00 10%,#382a2380 60%,#382a23f0)}
.war-hero-copy{position:absolute;bottom:24px;left:25px;right:25px;color:#fff0c6}
.war-hero-copy>span{font-size:9px;letter-spacing:2px;color:#e1d09e}
.war-hero-copy h2{font-size:33px;font-weight:800;letter-spacing:2px;margin:9px 0 5px;text-shadow:0 3px 12px #082b2970}
.war-hero-copy p{font-size:16px;margin:0;color:#e5e7cf;line-height:1.6}
.war-main-detail{margin-top:11px}
.war-main-detail .completion-heading{display:none}
.war-main-detail .completion-card{border-radius:13px}
.war-main-detail .battle-result-numbers{margin-top:0}
.war-other-results{margin-top:20px}
.war-other-results>h3{font-size:12px;color:#77876e;font-weight:650;margin:0 0 8px}
.war-result-summary{display:flex;align-items:center;gap:11px;padding:11px 3px;border-bottom:1px solid #e4e8dd}
.war-result-summary:last-child{border-bottom:0}
.war-result-summary>div{flex:1}
.war-result-summary b{display:block;font-size:11px}
.war-result-summary small{display:block;font-size:9px;color:#94a087;margin-top:5px;line-height:1.7}
@media(max-width:760px){.result-notice{padding:11px 15px;gap:9px;flex-wrap:wrap}.result-notice-icon{font-size:23px}.result-notice b{font-size:11px}.result-notice small{font-size:9px}.result-notice-actions{gap:6px}.result-notice-actions .btn.small{font-size:9px;min-height:30px;padding:6px 9px}dialog.results-dialog{padding:20px}dialog.war-results-dialog{padding:16px}.completion-card{padding:14px}.completion-card h3{font-size:14px}.completion-heading{gap:9px}.completion-symbol{font-size:23px}.completion-heading .chip{font-size:8px}.completion-detail{font-size:10px}.battle-result-numbers{gap:8px}.battle-result-numbers>div{padding:12px}.battle-result-numbers strong{font-size:24px}.battle-result-breakdown{font-size:9px}.war-result-hero{height:235px;border-radius:12px}.war-hero-copy{bottom:20px;left:20px;right:20px}.war-hero-copy h2{font-size:30px}.war-hero-copy p{font-size:14px}.war-hero-copy>span{font-size:8px;letter-spacing:1.5px}.war-result-summary{gap:8px}.war-result-summary .chip{font-size:8px}.war-result-summary small{font-size:8px}.completion-actions{bottom:-20px}}
.campaign-summary{margin:0 0 18px;display:flex;align-items:center;gap:7px 14px;flex-wrap:wrap}
.campaign-summary b{font-size:11px;font-weight:700}
.campaign-summary span{font-size:10px}
.map-toolbar-summary{display:flex;flex-direction:column;gap:5px;min-width:0}
.map-toolbar-summary small{font-size:9px;color:#939378;line-height:1.6}
.event-chip{margin-top:9px;line-height:1.5;white-space:normal}
.building-body>.event-chip{display:flex;justify-content:center;margin:0 0 8px;padding:5px 6px;font-size:9px}
.action-event-note{margin:12px 0;color:#8d8c72;line-height:1.9}
.workshop-effect{margin:10px 0;padding:9px 10px;border:1px solid #d6e3c4;background:#edf4df;border-radius:9px;line-height:1.6;color:#627a43}
.workshop-effect b{font-size:10px;display:block}
.workshop-effect small{font-size:9px;display:block;color:#8b9879;margin-top:3px}
.workshop-effect.compact{margin:8px -4px 0;padding:6px 8px}
.workshop-effect.compact b,.workshop-effect.compact small{font-size:9px}
.section-link{float:right;font-size:10px;font-weight:500;line-height:1.8}
.queue-support-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;width:100%}
.queue-support-actions>small{width:100%;text-align:right;font-size:9px;line-height:1.6;color:#97a087}
.building-body>.queue-support-actions{margin-top:8px}
.building-body>.queue-support-actions .btn{width:100%;margin:0;font-size:10px}
.building-body>.queue-support-actions>small{text-align:center;font-size:8px}
.partial-support-field{margin-top:18px;margin-bottom:10px}
#partial-speedup-form>.btn{margin-top:10px}
.history-toolbar,.merit-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 17px}
.history-toolbar label{display:flex;align-items:center;gap:10px;font-size:11px;color:#819174}
.history-toolbar select{border:1px solid #d7dfcc;border-radius:9px;color:var(--ink);background:#fffef8;padding:9px 30px 9px 12px;font-size:11px}
.history-legacy{margin:0 0 15px}
.history-row{display:flex;gap:13px;padding:17px 0;border-bottom:1px solid var(--line)}
.history-row:first-child{padding-top:0}
.history-row:last-child{border-bottom:0;padding-bottom:0}
.history-marker{height:29px;width:29px;border-radius:50%;display:grid;place-items:center;background:#edf2e5;color:#909b74;flex-shrink:0;font-size:18px}
.history-marker.won{background:#e5f2df;color:#468252}
.history-marker.lost{background:#f6e6dd;color:#aa674d}
.history-row-body{min-width:0;flex:1}
.history-row-heading{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.history-row-heading>b{font-size:11px}
.history-row-heading>small{font-size:9px;color:#9aa48d;margin-left:auto}
.history-row h3{font-size:13px;margin:10px 0 0}
.history-row p{font-size:11px;line-height:1.9;color:#6b7e60;margin:8px 0 0;overflow-wrap:anywhere}
.history-pagination{display:flex;align-items:center;gap:15px;justify-content:space-between;margin:20px 0;font-size:11px;color:#86967a}
.history-pagination small{font-size:10px}
.merit-boards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:start}
.merit-board-title{display:flex;gap:9px;align-items:center}
.merit-board-title>span{font-size:25px;color:#b18c3b}
.merit-board-title h2{margin:0;font-size:16px}
.merit-board-caption{margin:8px 0 14px;min-height:38px}
.merit-row{display:flex;align-items:center;gap:8px;padding:13px 0;border-top:1px solid #e5e9de}
.merit-rank{width:15px;flex-shrink:0;color:#b18a39;font-size:13px;font-weight:700}
.merit-row .avatar{width:30px;height:30px;font-size:11px;border-width:1px}
.merit-person{flex:1;min-width:0}
.merit-person>b{font-size:11px;display:block;overflow-wrap:anywhere}
.merit-person>strong{display:block;font-size:13px;color:#4d7253;margin:5px 0}
.merit-person>small{display:block;font-size:8px;color:#93a085;line-height:1.8;overflow-wrap:anywhere}
@media(max-width:1150px){.merit-boards{grid-template-columns:1fr}.merit-board-caption{min-height:0}.merit-row{gap:12px}.merit-person>strong{font-size:14px}.merit-person>small{font-size:10px}}
@media(max-width:760px){.history-toolbar{gap:9px;align-items:flex-end}.history-toolbar label{flex-direction:column;align-items:flex-start;gap:5px;font-size:10px}.history-toolbar select{font-size:10px;max-width:165px}.history-toolbar .btn{font-size:9px;padding:8px 10px}.history-list{padding:17px}.history-row{gap:9px}.history-marker{height:25px;width:25px;font-size:15px}.history-row-heading>b{font-size:10px}.history-row-heading>.chip{font-size:8px}.history-row-heading>small{width:100%;margin-left:0;font-size:8px}.history-row p{font-size:10px}.history-pagination{font-size:10px;gap:10px}.history-pagination .btn{font-size:10px}.queue-support-actions{gap:6px}.queue-support-actions>.btn.small{font-size:9px}.queue-support-actions>small{font-size:8px}.section-link{font-size:9px}.merit-boards{gap:12px}.merit-toolbar{gap:9px}.merit-row .avatar{width:33px;height:33px}.merit-person>b{font-size:11px}.merit-person>small{font-size:9px}}

/* Unified modal feedback is part of the native dialog top layer, never behind its backdrop. */
.modal-feedback[hidden]{display:none}
.modal-feedback{position:sticky;bottom:-1px;z-index:2;margin:16px 0 0;padding:13px 15px;border:1px solid #d68f7e;border-left:4px solid #b24932;border-radius:10px;background:#fff0e9;color:#8c3022;font-size:13px;font-weight:600;line-height:1.8;overflow-wrap:anywhere;box-shadow:0 -8px 20px #fffefaed;scroll-margin:14px}
#toast{margin:0;inset:auto auto max(26px,env(safe-area-inset-bottom)) 50%;width:max-content;max-width:calc(100vw - 36px);overflow-wrap:anywhere}
#toast[popover]::backdrop{background:transparent;backdrop-filter:none;pointer-events:none}
.busy-action dialog[open] .btn:not([data-close]){cursor:progress}
@media(max-width:760px){.modal-feedback{font-size:12px;padding:12px}#toast{bottom:calc(85px + env(safe-area-inset-bottom))}}

.modal-progress{display:none}dialog[aria-busy="true"] .modal-progress{display:block;position:sticky;bottom:0;margin-top:14px;padding:11px 14px;border:1px solid #d6e5d9;border-radius:10px;background:#f0f7ef;color:var(--deep);font-size:12px;line-height:1.8}

/* Shared family identity and public navigation. */
.family-tag.has-custom-emblem:before{display:none}.family-tag.has-custom-emblem{gap:7px}.family-tag .family-emblem-small{width:22px;height:22px;border-radius:5px}
.family-identity{display:flex;align-items:center;gap:15px;margin:12px 0}.family-identity .family-emblem-hero{margin:0}.family-identity h2{margin:0;min-width:0;overflow-wrap:anywhere}.family-card-identity{display:flex;align-items:center;gap:12px;margin-bottom:10px;padding-right:70px}.family-card-identity .family-emblem-card{margin:0}.badge-manage{color:#f1d897;padding:5px 0;margin-bottom:10px;text-decoration:underline;text-underline-offset:4px}
@media(max-width:760px){.family-identity{gap:11px}.family-identity h2{font-size:23px}.family-card-identity{gap:8px}.family-card-identity .family-tag{max-width:calc(100% - 56px);white-space:normal;text-align:left}.mobile-nav button{flex:1;min-width:0;font-size:9px}}

.family-card-identity h3{margin:0;min-width:0}.family-card-name{font:inherit;font-weight:750;line-height:1.5;color:var(--ink);text-align:left;background:none;padding:0;border:0;cursor:pointer;overflow-wrap:anywhere}.family-card-name:hover{color:var(--green)}

.honor-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.honor-tabs button {
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.honor-tabs button[aria-pressed="true"] {
  background: var(--deep);
  color: var(--white);
}
.honor-tabs button:focus-visible,
.honor-season-picker select:focus-visible,
.honor-family-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.honor-season-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
}
.honor-season-picker select {
  min-height: 44px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.honor-archive-card h3 {
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.honor-archive-card .honor-family-link {
  max-width: 100%;
  font: inherit;
  overflow-wrap: anywhere;
}
.honor-archive-place {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #ded2b2;
  border-radius: 999px;
  color: #6b4a17;
  background: #fffaf0;
  font-size: 12px;
  font-weight: 700;
}
.honor-award {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}
.honor-archive-empty {
  padding: 26px 20px;
}
.honor-archive-empty h3 {
  margin: 0;
}
.honor-archive-empty p {
  margin: 10px 0 0;
  color: #4e665d;
}
.honor-archive-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 520px) {
  .honor-tabs {
    display: flex;
  }
  .honor-tabs button {
    flex: 1;
  }
  .honor-archive-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
