.player-corner{position:absolute;right:22px;top:18px;z-index:45;display:flex;gap:12px;align-items:center}.player-corner button{position:relative;display:grid;place-items:center;width:76px;height:76px;min-width:76px;padding:4px;border:2px solid #c3954c;border-radius:50%;background:radial-gradient(circle,#51381c,#1b130d);box-shadow:0 3px 12px #0009,inset 0 0 0 2px #38230e;cursor:pointer;transition:filter .16s,transform .16s,box-shadow .16s}.player-corner button:hover{filter:brightness(1.16);box-shadow:0 3px 18px #d6ab4c55}.player-corner button:active{transform:scale(.96)}.player-corner button img{width:64px;height:64px;border-radius:50%;object-fit:cover;pointer-events:none}.player-corner #globalMapButton img{object-fit:contain;padding:1px}.player-corner #globalMapButton{width:76px;height:76px;min-height:0}.player-status-dot{position:absolute;width:11px;height:11px;border:2px solid #ba9a55;border-radius:50%;background:#93ab59;right:4px;bottom:4px}.game-detail-dialog{position:fixed;inset:0;margin:auto;width:840px;max-width:94%;max-height:760px;padding:0;overflow:hidden;border:1px solid #a87e43;border-radius:8px;color:#382918;background:linear-gradient(135deg,#dfd0ab,#bead87);box-shadow:0 22px 90px #000b;font-family:Georgia,serif}.game-detail-dialog::backdrop{background:#100c08aa;backdrop-filter:blur(3px)}.game-detail-dialog>header{height:39px;padding:0 12px 0 18px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#70482e,#382317);color:#f5dfaa;border-bottom:1px solid #b68a48}.game-detail-dialog>header h2{font-size:18px;margin:0}.game-detail-dialog>header button{background:transparent;border:0;color:#e7c78d;font-size:27px;cursor:pointer}#detailBody{max-height:690px;overflow:auto;padding:24px;scrollbar-color:#8f7146 #c8b68d}.entity-detail{display:grid;grid-template-columns:240px minmax(0,1fr);gap:26px}.entity-art{align-self:start;background:radial-gradient(ellipse,#ad96616b,transparent 70%);position:sticky;top:0}.entity-art>img{width:100%;max-height:340px;object-fit:contain}.detail-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:12px 0;gap:1px;background:#836b3e30;border:1px solid #856e4140;border-radius:4px;overflow:hidden}.detail-stats>div{background:#e7d9b542;padding:10px 8px;min-width:0}.detail-stats dt{font-size:11px;line-height:1.3;color:#715b37}.detail-stats dd{font-size:16px;margin:5px 0 0;overflow-wrap:anywhere}.entity-detail h3,.profile-layout h3{font-size:15px;margin:20px 0 9px;color:#4b351d}.entity-detail p,.profile-layout p{font-size:13px;line-height:1.6}.detail-costs{display:flex;gap:10px;flex-wrap:wrap}.detail-costs span{display:flex;align-items:center;font-size:14px;gap:5px}.detail-costs img{height:32px;width:32px;object-fit:contain}.profile-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:30px}.profile-layout aside{text-align:center}.profile-large-avatar{width:158px;height:158px;border-radius:50%;object-fit:cover;border:4px double #8d6e33;box-shadow:0 4px 14px #55380e44}.profile-layout small{font-size:11px;line-height:1.6;color:#77633e}.profile-avatar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:18px 0}.profile-avatar-grid button{padding:2px;border:2px solid #9d8150;background:#8f7240;border-radius:50%;cursor:pointer;aspect-ratio:1}.profile-avatar-grid button[aria-pressed=true]{border-color:#e5c159;box-shadow:0 0 0 2px #7c5a20}.profile-avatar-grid img{width:100%;display:block;border-radius:50%;aspect-ratio:1;object-fit:cover}.profile-layout form{display:grid;gap:10px}.profile-layout label{display:grid;gap:5px;font-size:12px}.profile-layout input:not([type=file]),.profile-layout textarea{width:100%;box-sizing:border-box;background:#ece0bf;border:1px solid #a28b5f;border-radius:4px;padding:8px;font:14px Georgia;color:#3d2c18}.profile-layout button[type=submit],.profile-upload{background:linear-gradient(#80603d,#4d3521);color:#f5dfaf;border:1px solid #b3945a;border-radius:5px;padding:9px 12px;cursor:pointer}.profile-upload input{font-size:10px;width:100%;margin-top:7px}.profile-save-row{display:flex;align-items:center;gap:12px;min-height:38px}#profileStatus{font-size:12px;line-height:1.4}.detail-trigger{cursor:pointer;transition:filter .16s,transform .16s}.detail-trigger:hover{filter:brightness(1.15);transform:translateY(-1px)}.detail-trigger:focus-visible,.player-corner button:focus-visible{outline:2px solid #f4d784;outline-offset:3px}.arena-empty{padding:42px 20px;text-align:center;color:#806847;border:1px dashed #a08b5f;margin-top:18px;border-radius:6px}.arena-intel{padding:12px 15px;border-bottom:1px solid #8e794744}.arena-intel summary{cursor:pointer}.arena-intel-grid{display:flex;flex-wrap:wrap;gap:15px}.arena-intel-grid span{display:flex;align-items:center;gap:6px}.arena-intel-grid img{width:40px;height:55px;object-fit:contain}.arena-intel .ledger-cost{display:inline-flex;margin-right:12px}.arena-intel h4{margin:14px 0 8px}.arena-intel .ledger-cost img{width:30px;height:30px}.house-population-breakdown{margin-top:12px}.house-population-breakdown .detail-stats{margin:0}.recruit-row>img{cursor:pointer}.raid-table small{display:block;margin-top:4px;font-size:10px}.ledger-summary select,.ledger-summary input[type=date]{background:#e0d2ad;border:1px solid #9b8253;border-radius:4px;padding:6px;color:#49361d}.game-detail-dialog button{font-family:inherit}@media(prefers-reduced-motion:reduce){.player-corner button,.detail-trigger{transition:none}}

.profile-layout section>.detail-stats:last-child{grid-template-columns:repeat(4,minmax(0,1fr))}.game-detail-dialog .detail-stats>div:last-child:nth-child(3n+1){grid-column:1/-1}.profile-layout section>.detail-stats:last-child>div{grid-column:auto}
.game-detail-dialog .profile-layout section>.detail-stats:last-child>div{grid-column:auto!important}
.game-detail-dialog img[data-building-art].is-mirrored{transform:scaleX(-1)}.detail-building-cost{display:flex;align-items:center;gap:8px;min-width:150px}.detail-level-building-art{width:50px;height:54px;flex:0 0 50px;object-fit:contain;padding:2px;border:1px solid #a48a5a66;border-radius:4px;background:linear-gradient(145deg,#d8c9a5,#eee2c2);filter:drop-shadow(0 2px 2px #291e1522)}.detail-building-cost>div{min-width:0}.detail-building-cost>div>b{display:block;margin:0 0 3px;font:10px Georgia,serif;color:#745d39}.detail-level-table .detail-building-cost .detail-costs{gap:2px!important}.detail-level-table .detail-building-cost .detail-costs span{display:inline-flex!important;gap:2px!important;font-size:9px!important}.detail-level-table .detail-building-cost .detail-costs img{width:16px!important;height:16px!important}.detail-level-table th:nth-child(3){min-width:210px}
#arenaConsole [data-rank-replay],#arenaScoutMap{border:1px solid #a88b58;border-radius:4px;padding:6px 12px;background:linear-gradient(#89683e,#503720);color:#fae9be;font:12px Georgia,serif;cursor:pointer;box-shadow:inset 0 1px #e9d49a44;transition:filter .15s,transform .15s}#arenaConsole [data-rank-replay]:hover,#arenaScoutMap:hover{filter:brightness(1.15)}#arenaConsole [data-rank-replay]:active,#arenaScoutMap:active{transform:translateY(1px)}@media(prefers-reduced-motion:reduce){#arenaConsole [data-rank-replay],#arenaScoutMap{transition:none}}
.game-detail-dialog{width:min(1040px,92vw)!important;max-width:92vw!important;max-height:88vh!important;padding:0!important;border:2px solid #ab8d50!important;border-radius:6px!important;background:linear-gradient(115deg,#d8c9a5,#efe3c4)!important;color:#48361f!important;box-shadow:0 20px 80px #000b!important}.game-detail-dialog>header{min-height:34px!important;padding:0 10px 0 16px!important;background:linear-gradient(#785235,#432c1b)!important;color:#f7e9c5!important;border-bottom:1px solid #ba9b5e!important}.game-detail-dialog>header h2{font-size:17px!important;line-height:1.4!important}.game-detail-dialog>header button{color:#f0d9ac!important;background:transparent!important;border:0!important}.game-detail-dialog #detailBody{padding:20px!important;max-height:calc(88vh - 40px)!important;overflow:auto!important}.game-detail-dialog .entity-detail{display:grid!important;grid-template-columns:265px minmax(0,1fr)!important;gap:23px!important;align-items:start!important}.game-detail-dialog .entity-art{background:radial-gradient(ellipse at 50% 40%,#f4e8c9,#ad936655)!important;border:1px solid #a58b56!important;border-radius:7px!important;box-shadow:inset 0 0 0 5px #fff3ce88,0 3px 8px #604b2a20!important;padding:18px!important;position:sticky!important;top:0!important;min-height:260px!important;display:flex!important;align-items:center!important;justify-content:center!important}.game-detail-dialog .entity-art>img{width:100%!important;max-height:330px!important;min-height:180px!important;object-fit:contain!important;filter:drop-shadow(0 6px 4px #291e152a)}.game-detail-dialog .entity-detail>section{min-width:0}.game-detail-dialog .detail-stats{display:block!important;margin:8px 0 15px!important}.game-detail-dialog .detail-stats>div{display:flex!important;justify-content:space-between!important;align-items:baseline!important;gap:15px!important;padding:8px 12px!important;border-bottom:1px solid #a58d5a3b!important;border-radius:0!important;background:transparent!important;grid-column:auto!important}.game-detail-dialog .detail-stats>div:nth-child(odd){background:#ad956621!important}.game-detail-dialog .detail-stats dt{font:12px Georgia!important;color:#74613f!important}.game-detail-dialog .detail-stats dd{font:700 14px Georgia!important;margin:0!important;text-align:right!important;color:#49351e!important}.game-detail-dialog .detail-entity-title{font:700 24px Georgia!important;margin:0 0 12px!important}.game-detail-dialog .entity-detail h3{font-size:15px!important;margin:18px 0 9px!important;padding-bottom:7px;border-bottom:1px solid #a58b5655}.game-detail-dialog .entity-detail p{font:13px/1.65 Georgia!important;margin:9px 0!important}.detail-traits{background:#ae976124;border:1px solid #ad945b66;border-radius:5px;padding:8px 14px;margin-top:17px}.detail-positive{color:#4d7026}.detail-negative{color:#9c462e}.detail-requirement{color:#7b6744;font-size:11px!important}.game-detail-dialog .detail-costs{display:flex!important;flex-wrap:wrap!important;gap:8px!important}.game-detail-dialog .detail-costs span{background:#baa17022;padding:3px 6px!important;font-size:12px!important;display:inline-flex!important;align-items:center!important;gap:4px}.game-detail-dialog .detail-costs img{width:27px!important;height:27px!important;object-fit:contain}.detail-level-table{border-collapse:collapse;width:100%;font-size:11px}.detail-level-table th{text-align:left;color:#86704a;font-weight:400;padding:8px 6px;border-bottom:1px solid #a68b53}.detail-level-table td{padding:7px 6px;border-bottom:1px solid #a68b5333;vertical-align:middle}.detail-level-table tr:nth-child(even){background:#af95611c}.detail-level-table .current-level{background:#bea36b66!important;font-weight:bold}.detail-level-table .detail-costs{gap:3px!important}.detail-level-table .detail-costs span{padding:0!important;background:none!important;font-size:10px!important}.detail-level-table .detail-costs img{width:19px!important;height:19px!important}.game-detail-dialog .population-detail-image{height:125px!important;min-height:0!important}.market-scroll .premium-benefits{grid-template-columns:repeat(2,minmax(0,1fr))!important}.market-scroll .premium-benefits article{min-height:48px!important;padding:9px 12px!important}

.mil-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}
