#hudShop{display:grid;place-items:center;align-content:center;gap:1px;padding:2px 4px;background:#234738;color:#f6e2ae;border:1px solid #ac8d52;border-radius:6px;font-size:12px;line-height:1}
#hudShop img{width:20px;height:20px;object-fit:contain;border-radius:4px}
#game #hud #clock::before{content:'';display:inline-block;width:24px;height:27px;margin-right:5px;vertical-align:middle;background:url('./assets/hud-clock-v3.png') center/contain no-repeat}
#game #hud #energyMeter>i{position:relative;height:16px;width:64px;padding:0;border:0;background:url('./assets/hud-energy-v3.png') center/100% 100% no-repeat;overflow:hidden}
#game #hud #energyMeter>i>b{position:absolute;top:35%;left:29%;height:29%;transform:scaleX(.62);transform-origin:left;width:var(--energy-fill,0%);max-width:none;border-radius:2px}
#game #hud #activeOrders .orders-art{height:22px;width:19px;object-fit:contain;vertical-align:middle;border-radius:3px}
#lithium-scene:not([hidden]) .mine-actions .mine-icon.lift{background-image:url('./assets/mine-lift-glyph-v2.png');border-radius:4px;image-rendering:auto}
.shop-switch,.gold-boosts,.gold-looks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.shop-switch{margin-bottom:12px}.shop-switch button{width:100%;margin:0}
.gold-looks,.gold-boosts{grid-template-columns:repeat(3,minmax(0,1fr))}
.gold-looks .card,.gold-boosts .card{min-width:0;margin:0;text-align:center;padding:10px}
.gold-looks img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;border:1px solid #b19159}
.gold-looks button,.gold-boosts button{white-space:normal;width:100%;margin:0}
.jewel-discount{color:#315743;background:#e7ebca;padding:2px 9px;border-radius:8px;justify-self:center}
.match-game .match-board{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;width:min(100%,380px);margin:8px auto;background:#1a332a;border:2px solid #b4955d;padding:5px;border-radius:8px}
#panel .match-board button{width:100%;min-width:0;min-height:0;aspect-ratio:1;margin:0;padding:2px;background:#143829;border:1px solid #8f774b;border-radius:5px;touch-action:manipulation}
#panel .match-board button[aria-pressed=true]{border-color:#ffe39b;outline:2px solid #e8bf61;filter:brightness(1.23)}
.match-board img{display:block;width:100%;height:100%;object-fit:contain;border-radius:3px;pointer-events:none}
.match-game p{margin:6px 0}
body.handset-landscape #game #hud #clock::before{width:13px;height:17px;margin-right:2px}
body.handset-landscape #game #hud #energyMeter>i{width:34px;height:12px}
body.handset-landscape #game #hud #hudControls #hudShop{width:27px;min-width:27px;font-size:8px;height:33px}
body.handset-landscape #hudShop img{width:15px;height:15px}
body.handset-landscape #game #hud #activeOrders .orders-art{width:13px;height:17px}
body.handset-landscape .match-game .match-board{width:min(100%,224px)}
@media(max-width:640px){.gold-looks,.gold-boosts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.classic-city-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.classic-city-preview figure{margin:0;min-width:0;text-align:center}
.classic-city-preview a{display:block}
.classic-city-preview img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:5px}
.classic-city-preview figcaption{font-size:.85em;padding-top:4px}

#panel .gold-balance { display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 14px; }
#panel .gold-categories { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin:10px 0 14px; }
#panel .gold-categories button { min-width:0; min-height:40px; width:100%; margin:0; padding-inline:4px; white-space:normal; }
#panel .gold-categories button:disabled { opacity:1; color:#fff1c6; background:#2f5141; border-color:#b89b62; }
#panel .gold-look-group + .gold-look-group { margin-top:16px; }
#panel .gold-look-group h2 { margin:8px 0; }
