/* CIVARION V247 — compact, game-first HUD for the home base.
   The 3D base fills the screen; small pills and round icon buttons sit in the corners
   (resources top-right, player badge top-left, ATTACK bottom-left, menus bottom-right).
   Enabled by html.civ-compact (dev first; opt out with ?ui=classic). Pure CSS: no logic changes. */
html.civ-compact{--cc-bg:rgba(12,16,14,.78);--cc-bd:rgba(255,255,255,.14);--cc-tx:#eef2ea;--cc-mut:#aab4a4;--cc-acc:#f0b43c}
/* ---------- top: player badge (left) + resource pills (right) ---------- */
html.civ-compact #top{position:fixed!important;left:8px;right:8px;top:8px;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;
 background:none!important;border:0!important;box-shadow:none!important;display:flex!important;align-items:flex-start;gap:6px;pointer-events:none;z-index:60}
html.civ-compact #top>*{pointer-events:auto}
html.civ-compact #top::before,html.civ-compact #top::after{display:none!important}
html.civ-compact #top .identity{display:none!important}
html.civ-compact #player{background:var(--cc-bg)!important;border:1px solid var(--cc-bd)!important;border-radius:12px!important;padding:4px 10px!important;
 min-width:0!important;height:auto!important;box-shadow:0 2px 8px rgba(0,0,0,.35)!important;display:flex!important;align-items:center}
html.civ-compact #player span{display:none!important}
html.civ-compact #player strong{font-size:13px!important;letter-spacing:.04em;color:var(--cc-tx)!important;white-space:nowrap;max-width:46vw;overflow:hidden;text-overflow:ellipsis}
html.civ-compact #top .stats{display:flex!important;gap:5px!important;margin:0 0 0 auto!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html.civ-compact #top .stat{display:flex!important;align-items:center;gap:5px;height:28px!important;min-width:0!important;padding:0 10px 0 3px!important;margin:0!important;
 border-radius:15px!important;background:var(--cc-bg)!important;border:1px solid var(--cc-bd)!important;box-shadow:0 2px 8px rgba(0,0,0,.35)!important}
html.civ-compact #top .stat::before,html.civ-compact #top .stat::after{display:none!important}
html.civ-compact #top .stat small{display:none!important}
html.civ-compact #top .stat b{font-size:13px!important;color:var(--cc-tx)!important;font-variant-numeric:tabular-nums}
html.civ-compact #top .stat .symbol{width:22px!important;height:22px!important;min-width:22px;border-radius:50%!important;display:grid;place-items:center;font-size:12px!important;margin:0!important;line-height:1}
html.civ-compact #account{height:28px!important;min-height:0!important;padding:0 10px!important;border-radius:15px!important;font-size:11px!important;
 background:var(--cc-bg)!important;border:1px solid var(--cc-bd)!important;color:var(--cc-tx)!important;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:none!important}
/* small status chips under the player badge: HQ level, builders, trophies, shield */
html.civ-compact .base-status{position:fixed!important;left:8px;top:42px;right:auto!important;bottom:auto!important;transform:none!important;display:flex!important;flex-wrap:wrap;gap:4px;
 max-width:min(70vw,520px);padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;z-index:55}
html.civ-compact .base-status span{background:var(--cc-bg)!important;border:1px solid var(--cc-bd)!important;border-radius:10px!important;padding:2px 8px!important;font-size:10.5px!important;color:var(--cc-mut)!important;white-space:nowrap}
html.civ-compact .base-status b{color:var(--cc-tx)!important;font-weight:700}
/* ---------- remove large decorative text ---------- */
html.civ-compact .hud-title,html.civ-compact .corner-meta{display:none!important}
html.civ-compact .vignette{opacity:.45}
/* ---------- right edge: small round tool buttons (icon only, tooltips kept) ---------- */
html.civ-compact .camera-tools{position:fixed!important;right:8px;top:44px;left:auto!important;bottom:auto!important;transform:none!important;display:flex!important;flex-direction:column;gap:6px;
 padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;z-index:55;width:auto!important}
html.civ-compact .camera-tools>button,html.civ-compact #civAudioTools>button{width:36px!important;height:36px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;
 border-radius:50%!important;background:var(--cc-bg)!important;border:1px solid var(--cc-bd)!important;box-shadow:0 2px 8px rgba(0,0,0,.35)!important;
 font-size:0!important;color:var(--cc-tx)!important;display:grid!important;place-items:center;position:relative;overflow:visible}
html.civ-compact .camera-tools>button::before,html.civ-compact #civAudioTools>button::before{font-size:16px;line-height:1;color:var(--cc-tx)}
html.civ-compact #cameraHome::before{content:'⌖'}
html.civ-compact #collectAllBtn::before{content:'⛁';color:var(--cc-acc)!important}
html.civ-compact #skinShopBtn::before{content:'🛒';font-size:15px!important}
html.civ-compact #rewardsBtn::before{content:'🎁';font-size:15px!important}
html.civ-compact #battleHistoryBtn::before{content:'⚔'}
html.civ-compact #graphicsQuality::before{content:'◐'}
html.civ-compact #audioSettings::before{content:'♪'}
html.civ-compact #helpBtn::before{content:'?';font-weight:800}
html.civ-compact #civAudioTools{position:relative;display:block!important;margin:0!important;padding:0!important;background:none!important;border:0!important}
html.civ-compact #civAudioPanel{position:absolute!important;right:44px;top:0;width:250px!important;max-width:70vw;font-size:12px}
/* ---------- bottom: big ATTACK (left) + compact menu buttons (right) ---------- */
html.civ-compact nav.dock{position:fixed!important;right:8px;bottom:8px;left:auto!important;top:auto!important;transform:none!important;width:auto!important;max-width:calc(100vw - 120px);
 display:flex!important;flex-wrap:wrap;justify-content:flex-end;gap:6px!important;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;height:auto!important;min-height:0!important;z-index:58}
html.civ-compact nav.dock::before,html.civ-compact nav.dock::after,html.civ-compact .dock-power{display:none!important}
html.civ-compact .dock-item{width:58px!important;height:58px!important;min-width:0!important;min-height:0!important;padding:4px 2px!important;margin:0!important;flex:0 0 auto!important;
 border-radius:16px!important;background:var(--cc-bg)!important;border:1px solid var(--cc-bd)!important;box-shadow:0 3px 10px rgba(0,0,0,.4)!important;
 display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;position:relative;overflow:visible!important}
html.civ-compact .dock-item::before,html.civ-compact .dock-item::after{display:none!important}
html.civ-compact .dock-key,html.civ-compact .dock-led,html.civ-compact .dock-readout,html.civ-compact .dock-meter{display:none!important}
html.civ-compact .dock-icon{font-size:20px!important;line-height:1!important;margin:0!important;color:var(--cc-tx)!important;width:auto!important;height:auto!important;background:none!important;border:0!important}
html.civ-compact .dock-item b{font-size:9px!important;letter-spacing:.03em;line-height:1!important;color:var(--cc-mut)!important;white-space:nowrap;margin:0!important}
html.civ-compact .dock-item:hover,html.civ-compact .dock-item:focus-visible{border-color:var(--cc-acc)!important}
html.civ-compact .dock-badge:not(:empty){position:absolute!important;top:-4px;right:-4px;min-width:16px;height:16px;border-radius:8px;background:#e04a3a;color:#fff;font-size:10px;display:grid;place-items:center;padding:0 3px}
html.civ-compact .dock-item.attack{position:fixed!important;left:10px;bottom:10px;width:84px!important;height:84px!important;border-radius:50%!important;
 background:radial-gradient(circle at 35% 30%,#ffb347,#d9631e 60%,#8f3510)!important;border:2px solid #ffd27a!important;box-shadow:0 4px 14px rgba(0,0,0,.5)!important}
html.civ-compact .dock-item.attack .dock-icon{font-size:30px!important;color:#fff!important}
html.civ-compact .dock-item.attack b{font-size:12px!important;color:#fff!important;font-weight:800}
/* ---------- small toasts / hints ---------- */
html.civ-compact .civ-unit-move-hint{top:44px!important;bottom:auto!important;font-size:12px!important;padding:5px 12px!important;border-radius:14px!important;max-width:80vw}
html.civ-compact #notifier{font-size:12px!important}
html.civ-compact .placement{bottom:104px!important;font-size:12px!important;padding:6px 10px!important;border-radius:14px!important;gap:6px!important}
/* ---------- panels: smaller pop-ups instead of near-full-screen sheets ---------- */
html.civ-compact .inspector{max-width:min(400px,94vw)!important}
html.civ-compact .drawer .drawer-inner{max-width:min(560px,96vw)!important}
html.civ-compact .shop-text,html.civ-compact .shop-results-hint,html.civ-compact .shop .eyebrow,html.civ-compact .drawer-inner>p{display:none!important}
/* ---------- BUILD: a short bottom strip of small cards, scrolled sideways (game-shop style) ---------- */
html.civ-compact .shop:not(.hidden){position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:8px!important;transform:translateX(-50%)!important;
 width:min(1040px,calc(100vw - 16px))!important;max-width:none!important;height:auto!important;max-height:min(330px,56vh)!important;padding:8px 10px 6px!important;
 border-radius:14px!important;display:flex!important;flex-direction:column;z-index:70;overflow:hidden}
html.civ-compact .shop-head{padding:0!important;margin:0 0 6px!important;min-height:0!important;display:flex!important;align-items:center;gap:8px}
html.civ-compact .shop-hammer,html.civ-compact .shop-head-secondary,html.civ-compact .shop-results{display:none!important}
html.civ-compact .shop-head h2{font-size:15px!important;margin:0!important;line-height:1.2}
html.civ-compact .shop-head button{width:28px!important;height:28px!important;min-height:0!important;padding:0!important;margin-left:auto!important}
html.civ-compact .shop-filters{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;margin:0 0 6px!important;overflow-x:auto;padding:0!important}
html.civ-compact .shop-filters button{height:26px!important;min-height:0!important;padding:0 10px!important;font-size:11px!important;white-space:nowrap;flex:0 0 auto}
html.civ-compact .shop-grid{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:150px!important;grid-template-columns:none!important;grid-template-rows:auto!important;
 gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:0 0 4px!important;margin:0!important;max-height:none!important}
html.civ-compact .shop-card{padding:6px!important;min-height:0!important;height:auto!important;gap:3px!important;display:flex!important;flex-direction:column}
html.civ-compact .shop-card>p{display:none!important}
html.civ-compact .shop-card-top{font-size:9px!important;min-height:0!important}
html.civ-compact .shop-card-art{height:78px!important;min-height:0!important;max-height:78px!important}
html.civ-compact .shop-card h3{font-size:12px!important;margin:2px 0 0!important;line-height:1.15}
html.civ-compact .shop-price-row,html.civ-compact .shop-card-stats{font-size:10px!important;gap:4px!important;margin:0!important;flex-wrap:wrap}
html.civ-compact .shop-build-action{height:26px!important;min-height:0!important;font-size:11px!important;padding:0 6px!important;margin-top:auto!important}
/* ---------- phones ---------- */
@media (max-width:700px){
 html.civ-compact #top .stat{height:26px!important;padding:0 8px 0 2px!important}
 html.civ-compact #top .stat b{font-size:12px!important}
 html.civ-compact #top .stat .symbol{width:20px!important;height:20px!important;min-width:20px}
 html.civ-compact #account{display:none!important}
 html.civ-compact #player strong{font-size:12px!important;max-width:34vw}
 html.civ-compact .base-status{top:40px;max-width:64vw}
 html.civ-compact .base-status span{font-size:9.5px!important;padding:1px 6px!important}
 html.civ-compact .camera-tools{top:40px;gap:5px}
 html.civ-compact .camera-tools>button,html.civ-compact #civAudioTools>button{width:32px!important;height:32px!important}
 html.civ-compact .camera-tools>button::before,html.civ-compact #civAudioTools>button::before{font-size:14px}
 html.civ-compact nav.dock{max-width:calc(100vw - 92px);gap:5px!important}
 html.civ-compact .dock-item{width:46px!important;height:46px!important;border-radius:13px!important}
 html.civ-compact .dock-icon{font-size:17px!important}
 html.civ-compact .dock-item b{font-size:7.5px!important}
 html.civ-compact .dock-item.attack{width:70px!important;height:70px!important}
 html.civ-compact .dock-item.attack .dock-icon{font-size:24px!important}
 html.civ-compact .dock-item.attack b{font-size:10px!important}
 html.civ-compact .placement{bottom:118px!important}
 html.civ-compact .shop-grid{grid-auto-columns:128px!important}
 html.civ-compact .shop-card-art{height:64px!important;max-height:64px!important}
}
/* while a menu/panel is open, the bottom buttons step aside (no overlap) */
html.civ-compact body:has(#shop:not(.hidden)) nav.dock,html.civ-compact body:has(#drawer:not(.hidden)) nav.dock,
html.civ-compact body:has(#researchPanel:not(.hidden)) nav.dock,html.civ-compact body:has(#clanPanel:not(.hidden)) nav.dock,
html.civ-compact body:has(#placement:not(.hidden)) nav.dock{display:none!important}
/* building panel sits left of the right-edge tool column */
html.civ-compact .inspector:not(.hidden){right:52px!important;left:auto!important;top:48px!important;max-height:calc(100vh - 130px)!important;overflow-y:auto}
html.civ-compact .drawer:not(.hidden) .drawer-inner{margin-right:44px}
@media (max-width:700px){
 html.civ-compact .inspector:not(.hidden){right:6px!important;left:6px!important;top:auto!important;bottom:6px!important;max-width:none!important;max-height:52vh!important}
 html.civ-compact body:has(#inspector:not(.hidden)) nav.dock{display:none!important}
 html.civ-compact .drawer:not(.hidden) .drawer-inner{margin-right:0}
}
/* one icon per round tool button (the page's own injected svg icon duplicated ours on phones) */
html.civ-compact .camera-tools .civ-tactic-icon,html.civ-compact #civAudioTools>button .civ-tactic-icon{display:none!important}
html.civ-compact .camera-tools>button::before,html.civ-compact #civAudioTools>button::before{color:#fff!important;font-size:17px!important;text-shadow:0 1px 2px rgba(0,0,0,.6)}
html.civ-compact .camera-tools>button,html.civ-compact #civAudioTools>button{background:rgba(32,40,34,.88)!important;border-color:rgba(255,255,255,.22)!important}
/* ================= V249: tapping a building opens a SMALL bottom bar (game style), not a big panel =================
   [icon] Name · LV n            [i] [COLLECT] [UPGRADE LV 6 / cost] [MOVE] [ROTATE]      — stats only after tapping "i" */
html.civ-compact .inspector:not(.hidden){position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:10px!important;transform:translateX(-50%)!important;
 width:auto!important;max-width:min(860px,calc(100vw - 16px))!important;min-width:0!important;max-height:none!important;height:auto!important;overflow:visible!important;
 display:grid!important;grid-template-columns:44px auto auto;grid-template-rows:auto;align-items:center;column-gap:10px;row-gap:0;padding:6px 8px!important;margin:0!important;
 border-radius:16px!important;background:var(--cc-bg)!important;border:1px solid var(--cc-bd)!important;box-shadow:0 6px 18px rgba(0,0,0,.5)!important;z-index:72}
html.civ-compact .inspector::before,html.civ-compact .inspector::after{display:none!important}
html.civ-compact .inspector .panel-head{position:absolute!important;top:-12px;right:-10px;margin:0!important;padding:0!important;border:0!important;background:none!important;min-height:0!important;width:auto!important}
html.civ-compact #selectionType{display:none!important}
html.civ-compact #closeInspector{width:26px!important;height:26px!important;min-height:0!important;border-radius:50%!important;padding:0!important;font-size:15px!important;line-height:1!important;
 background:#2a312b!important;border:1px solid var(--cc-bd)!important;color:#fff!important;display:grid!important;place-items:center}
html.civ-compact #structureIcon{grid-column:1;grid-row:1;width:44px!important;height:44px!important;min-height:0!important;margin:0!important;padding:2px!important;border-radius:10px!important;overflow:hidden}
html.civ-compact #structureIcon img,html.civ-compact #structureIcon svg{width:100%!important;height:100%!important;object-fit:contain}
html.civ-compact #structureName{grid-column:2;grid-row:1;font-size:13px!important;line-height:1.15!important;margin:0!important;white-space:nowrap;max-width:200px;overflow:hidden;text-overflow:ellipsis}
html.civ-compact #structureName::after{content:'LV ' attr(data-level);display:block;font-size:10.5px;color:var(--cc-acc);letter-spacing:.05em;margin-top:2px;font-family:inherit}
html.civ-compact #structureInfo{display:none!important}
html.civ-compact #structureStats{display:none!important}
html.civ-compact .inspector.civ-info-open #structureStats{display:block!important;position:absolute!important;left:0;right:0;bottom:calc(100% + 8px);max-height:46vh;overflow-y:auto;
 padding:6px 8px!important;margin:0!important;border-radius:12px!important;background:var(--cc-bg)!important;border:1px solid var(--cc-bd)!important;box-shadow:0 6px 18px rgba(0,0,0,.5)}
html.civ-compact .inspector.civ-info-open #structureStats .detail{padding:3px 4px!important;min-height:0!important;font-size:11px!important}
html.civ-compact #structureActions{grid-column:3;grid-row:1;display:flex!important;flex-wrap:nowrap;gap:6px!important;margin:0!important;padding:0!important;overflow-x:auto;max-width:min(600px,70vw)}
html.civ-compact #structureActions button{flex:0 0 auto!important;width:auto!important;min-width:62px;max-width:150px;height:50px!important;min-height:0!important;margin:0!important;padding:4px 10px!important;
 border-radius:12px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;line-height:1.1!important;white-space:nowrap}
html.civ-compact #structureActions button b{font-size:11px!important;font-weight:800;letter-spacing:.03em}
html.civ-compact #structureActions button small{font-size:9px!important;opacity:.85;max-width:140px;overflow:hidden;text-overflow:ellipsis}
html.civ-compact #structureActions .civ-info-btn{min-width:44px!important;width:44px!important;padding:4px!important;background:#2a312b!important;border:1px solid var(--cc-bd)!important;color:#fff!important}
html.civ-compact #structureActions .civ-info-btn b{font-size:15px!important;font-style:italic;font-family:Georgia,serif}
html.civ-compact .inspector.civ-info-open .civ-info-btn{border-color:var(--cc-acc)!important}
/* the bar takes the bottom: main buttons step aside while a building is selected */
html.civ-compact body:has(#inspector:not(.hidden)) nav.dock{display:none!important}
@media (max-width:700px){
 html.civ-compact .inspector:not(.hidden){left:6px!important;right:6px!important;transform:none!important;max-width:none!important;grid-template-columns:40px 1fr;grid-template-rows:auto auto;row-gap:6px;bottom:6px!important;max-height:none!important}
 html.civ-compact #structureIcon{width:40px!important;height:40px!important}
 html.civ-compact #structureActions{grid-column:1 / span 2;grid-row:2;max-width:none}
 html.civ-compact #structureActions button{height:46px!important;max-width:130px}
}
/* ================= V249: smaller Build cards and Army panel ================= */
html.civ-compact .shop:not(.hidden){max-height:min(260px,48vh)!important}
html.civ-compact .shop-grid{grid-auto-columns:124px!important}
html.civ-compact .shop-card-art{height:62px!important;max-height:62px!important}
html.civ-compact .shop-card-top{display:none!important}
html.civ-compact .shop-card h3{font-size:11px!important}
html.civ-compact #drawer .drawer-inner,html.civ-compact #researchPanel .drawer-inner,html.civ-compact #clanPanel .drawer-inner{max-width:min(440px,96vw)!important}
html.civ-compact .drawer-head h2{font-size:16px!important;margin:0!important}
html.civ-compact .drawer-head .eyebrow{display:none!important}
html.civ-compact .drawer-head{padding-bottom:6px!important;margin-bottom:6px!important}
html.civ-compact #drawerSubtitle,html.civ-compact .civ-army-section.support{display:none!important}
html.civ-compact .army-overview{grid-template-columns:repeat(4,1fr)!important;gap:4px!important}
html.civ-compact .army-overview>*{padding:3px 6px!important;font-size:10.5px!important;min-height:0!important}
html.civ-compact .army-grid{grid-template-columns:repeat(3,1fr)!important;gap:6px!important}
html.civ-compact .army-grid>*{padding:5px!important;min-height:0!important;font-size:10px!important}
html.civ-compact .army-grid h3,html.civ-compact .army-grid strong{font-size:11px!important}
html.civ-compact .army-grid img,html.civ-compact .army-grid canvas{max-height:56px!important}
html.civ-compact #structureActions .civ-tactic-icon,html.civ-compact #structureActions svg{display:none!important}
html.civ-compact #structureName{max-width:260px!important;white-space:normal!important;overflow:visible!important}
html.civ-compact .inspector .panel-head{top:-14px!important;right:-12px!important}
html.civ-compact .shop-card .civ-tactic-icon{transform:scale(.8)}
/* ================= V250: Clash-style cards inside Build, Army and Research ================= */
html.civ-compact .shop-grid{grid-auto-columns:108px!important;gap:6px!important}
html.civ-compact .shop-card{padding:4px!important;gap:3px!important;cursor:pointer;border-radius:10px!important}
html.civ-compact .shop-card.locked{cursor:default;filter:saturate(.35) brightness(.8)}
html.civ-compact .shop-card .shop-card-art,html.civ-compact .cc-unit .big,html.civ-compact .cc-research .big{position:relative!important;display:flex!important;align-items:center;justify-content:center;height:64px!important;max-height:64px!important;min-height:0!important;width:100%!important;border-radius:8px;background:radial-gradient(circle at 50% 60%,rgba(120,140,90,.35),rgba(0,0,0,.25))!important;margin:0!important;font-size:30px!important;line-height:1!important;overflow:hidden}
html.civ-compact .cc-badge{position:absolute;font-size:9px!important;font-weight:700;line-height:1!important;letter-spacing:.02em;color:#fff;background:rgba(0,0,0,.62);border-radius:6px;padding:2px 4px;pointer-events:none;white-space:nowrap}
html.civ-compact .cc-owned{top:3px;left:3px}
html.civ-compact .cc-time{bottom:3px;right:3px;color:#e9e3c8}
html.civ-compact .shop-card h3,html.civ-compact .cc-unit strong,html.civ-compact .cc-research strong{font-size:11px!important;line-height:1.15!important;margin:1px 0 0!important;text-align:center!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block!important;letter-spacing:.02em}
html.civ-compact .cc-lv{font-size:9px!important;color:#f3c35a!important;font-weight:700}
html.civ-compact .shop-build-action.cc-cost{height:26px!important;min-height:0!important;padding:0 4px!important;font-size:10.5px!important;display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 6px;line-height:1!important;border-radius:7px!important}
html.civ-compact .cc-c{white-space:nowrap;font-weight:800}
html.civ-compact .cc-credits{color:#ffd76a}html.civ-compact .cc-steel{color:#dfe6ee}html.civ-compact .cc-fuel{color:#ffa45c}
html.civ-compact .shop-build-action.cc-cost .cc-c{color:inherit}
/* Army */
html.civ-compact #drawer .drawer-inner{max-width:min(400px,96vw)!important}
html.civ-compact .civ-army-section.human,html.civ-compact .civ-army-section.vehicles{display:none!important}
html.civ-compact #civUnitSelector,html.civ-compact #vehiclePreviewActions{display:none!important}
html.civ-compact .army-grid{grid-template-columns:repeat(4,1fr)!important;gap:5px!important}
html.civ-compact .army-card.cc-unit{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;padding:4px!important;border-radius:10px!important;min-height:0!important;text-align:center}
html.civ-compact .army-card.cc-unit .price,html.civ-compact .cc-research .price{display:flex!important;flex-wrap:wrap;justify-content:center;gap:1px 5px;font-size:9.5px!important;line-height:1.1!important;margin:0!important;padding:3px 2px!important;border-radius:6px;background:rgba(0,0,0,.35);color:#f2e6c0}
html.civ-compact .army-card.cc-unit:disabled,html.civ-compact .cc-research:disabled{filter:saturate(.35) brightness(.8);opacity:1!important}
html.civ-compact .cc-count{display:flex!important;align-items:center;justify-content:center;gap:5px}
html.civ-compact .cc-count b{font-size:12px}
html.civ-compact .army-overview{grid-template-columns:repeat(8,1fr)!important}
html.civ-compact .civ-parking-summary{font-size:10px!important}
html.civ-compact .training-queue{font-size:10.5px!important}
/* Research */
html.civ-compact #researchPanel>.drawer-inner>p,html.civ-compact #researchBody>p,html.civ-compact #clanDesc{display:none!important}
html.civ-compact #researchBody h3{font-size:11px!important;margin:8px 0 5px!important;letter-spacing:.08em}
html.civ-compact .r7-grid.cc-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:5px!important}
html.civ-compact .r7-card.cc-research{display:flex!important;flex-direction:column!important;gap:3px!important;padding:4px!important;min-height:0!important;border-radius:10px!important;text-align:center}
html.civ-compact #researchBody .r7-grid:not(.cc-grid){grid-template-columns:repeat(2,1fr)!important;gap:5px!important}
html.civ-compact #researchBody .r7-grid:not(.cc-grid) .r7-card,html.civ-compact #researchBody .r7-commander{padding:5px 7px!important;font-size:10px!important;min-height:0!important}
html.civ-compact .r7-stats{font-size:10px!important}
@media (max-width:700px){
 html.civ-compact .army-grid,html.civ-compact .r7-grid.cc-grid{grid-template-columns:repeat(4,1fr)!important}
 html.civ-compact .army-overview{grid-template-columns:repeat(4,1fr)!important}
 html.civ-compact .cc-unit .big,html.civ-compact .cc-research .big{height:52px!important;max-height:52px!important}
 html.civ-compact .shop-grid{grid-auto-columns:96px!important}
}
html.civ-compact :is(#shop .shop-card-art,.cc-unit .big,.cc-research .big) .civ-art-icon{width:100%!important;height:100%!important;max-width:none!important;object-fit:contain!important;mix-blend-mode:normal!important;filter:drop-shadow(0 3px 3px #0009)!important;padding:2px!important;opacity:1!important}
html.civ-compact :is(#shop .shop-card-art,.cc-unit .big,.cc-research .big) .civ-art-icon{position:absolute!important;inset:0!important;transform:none!important;margin:0!important;animation:none!important}
html.civ-compact .army-overview{display:flex!important;flex-wrap:wrap!important;gap:4px!important}
html.civ-compact .army-overview>.cc-count{flex:1 1 0;min-width:44px;padding:2px 4px!important;height:26px}
html.civ-compact .cc-count .civ-art-icon{width:22px!important;height:22px!important;object-fit:contain;flex:none}
html.civ-compact .civ-parking-summary{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:5px!important;margin:6px 0!important}
html.civ-compact .civ-parking-card{display:flex!important;align-items:center;justify-content:space-between;gap:6px;padding:5px 8px!important;min-height:0!important}
html.civ-compact .civ-parking-card strong{font-size:10.5px!important;margin:0!important}
html.civ-compact .civ-parking-card b{font-size:11px!important}
html.civ-compact .civ-parking-card small{display:none!important}
html.civ-compact #drawer .drawer-inner{height:auto!important;max-height:min(560px,calc(100vh - 140px))!important;bottom:auto!important}
html.civ-compact .training-queue .queued{padding:4px 8px!important}
html.civ-compact .army-overview{flex-wrap:nowrap!important;gap:3px!important}
html.civ-compact .army-overview>.cc-count{min-width:0!important;gap:2px!important;padding:2px 3px!important}
html.civ-compact .cc-count .civ-art-icon{width:20px!important;height:20px!important}
html.civ-compact .cc-count b{font-size:11px!important}
html.civ-compact :is(#researchBody,#armyGrid,#clanBody) .civ-tactic-icon{display:none!important}
html.civ-compact #researchBody [data-r7-doctrine] small,html.civ-compact #researchBody .r7-commander small:last-of-type{display:none!important}
html.civ-compact #researchBody .r7-grid:not(.cc-grid) .r7-card strong{font-size:11.5px!important}
html.civ-compact #researchBody .r7-grid:not(.cc-grid) .r7-card em{font-size:9.5px!important}
html.civ-compact #researchBody .r7-stats{padding:5px 8px!important}
html.civ-compact #researchPanel .drawer-inner{max-height:min(620px,calc(100vh - 120px))!important;height:auto!important}
html.civ-compact #clanBody p{display:none!important}
html.civ-compact #clanBody h3,html.civ-compact #clanBody h4{font-size:12px!important;margin:6px 0 4px!important}
html.civ-compact #clanPanel .drawer-inner{max-height:min(620px,calc(100vh - 120px))!important;height:auto!important}
/* V254 power chip */
.civ-power-chip.hidden{display:none!important}
.civ-power-chip.short{color:#ff7a6a!important;animation:civPowerBlink 1.2s ease-in-out infinite}
.civ-power-chip.short b{color:#ff7a6a!important}
@keyframes civPowerBlink{50%{opacity:.45}}
