/* Currency presentation only; existing economy and projected board stay unchanged. */
body.playing .gold-resource,body.playing #hud-shop-gold{cursor:pointer;touch-action:manipulation;pointer-events:auto;border:2px solid #ffe396;background:linear-gradient(145deg,#554326,#111c30 70%);box-shadow:inset 0 1px #fff9d6,0 0 8px #ffc95144;color:#fff4bf;text-shadow:0 2px 1px #17121c}
body.playing .gold-resource strong{color:#fff5c3;font-variant-numeric:tabular-nums}
body.playing #hud-shop-gold{gap:7px;min-width:78px;height:39px;padding:2px 9px;font-size:26px;isolation:isolate}
body.playing .gold-resource .hud-coin,body.playing #hud-shop-gold .hud-coin,#gold-popover .hud-coin{display:inline-block;position:relative;box-sizing:border-box;width:27px;height:27px;border:2px solid #ad681c;border-radius:50%;background:radial-gradient(circle at 30% 23%,#fffde1 0 10%,#ffe580 26%,#ffcb38 65%,#c98419);box-shadow:inset 0 0 0 2px #fff0a0,0 0 7px #ffcf6277;vertical-align:middle;flex-shrink:0}
body.playing .gold-resource .hud-coin:after,body.playing #hud-shop-gold .hud-coin:after,#gold-popover .hud-coin:after{content:'₽';position:absolute;inset:0;display:grid;place-items:center;font:900 19px/1 Arial,sans-serif;color:#fff4bc;text-shadow:1px 1px #946019,-1px -1px #ab701e}
.gold-balance{display:flex;align-items:center;gap:7px;font-variant-numeric:tabular-nums}
.gold-rise{position:absolute;left:50%;bottom:100%;pointer-events:none;opacity:0;color:#fff2aa;font-size:18px;white-space:nowrap;text-shadow:0 2px #382619}
.pika-react .gold-rise,.pika-react .side-gold-rise{animation:gold-rise 1.15s ease-out}
.gold-resource:focus-visible,#hud-shop-gold:focus-visible{outline:2px solid #fff5be;outline-offset:3px}
/* Map-side guide: individually spaced coins, not another currency bar or modal. */
#gold-interest-side{position:fixed;z-index:9;width:84px;display:flex;flex-direction:column;align-items:center;padding:4px 24px 5px 0;box-sizing:border-box;pointer-events:none;filter:drop-shadow(0 2px 2px #0009)}
#gold-interest-side[hidden]{display:none}
.interest-caption{color:#fff1b8;font-size:12px;font-weight:bold;line-height:18px;text-shadow:0 1px 3px #000,1px 0 #000;white-space:nowrap}
.interest-coins{display:flex;flex-direction:column;gap:5px;align-items:center}
.interest-coin{display:grid;place-items:center;box-sizing:border-box;width:33px;height:33px;border:2px solid #b37a20;border-radius:50%;font:900 24px/1 Arial,sans-serif;font-style:normal;color:#fff4c4;text-shadow:1px 2px #936015,-1px -1px #a76d18;background:radial-gradient(circle at 28% 22%,#fffcd4,#ffe274 32%,#edb330 68%,#aa6616);box-shadow:inset 0 0 0 2px #fff0a5,inset 0 -3px 2px #955b22,0 0 9px #ffd75277}
.interest-badge{position:absolute;top:26px;right:0;min-width:29px;padding:2px 3px;text-align:center;border:1px solid #a2cc9b;border-radius:10px;background:#172c29;color:#d0ffd0;font:bold 16px/1.1 Arial,sans-serif;box-shadow:0 1px 3px #0008}
.interest-max .interest-coin:first-child{box-shadow:inset 0 0 0 2px #fff6c0,0 0 13px #ffd34aaa}
.interest-max .interest-coin:first-child:after{content:'✦';position:absolute;margin-left:35px;margin-top:-28px;font-size:14px;color:#fff6ce;text-shadow:0 0 6px #fff08a}
.pika-portrait{position:relative;display:block;width:39px;height:44px;margin-top:6px;overflow:hidden;flex:none}
.pika-portrait img{position:absolute;width:86px;height:86px;max-width:none;left:-27px;top:-21px;image-rendering:pixelated;pointer-events:none}
.pika-react .pika-portrait{animation:pika-hop .6s ease-out}
.side-gold-rise{position:absolute;left:42%;top:32%;opacity:0;color:#fffac6;text-shadow:0 2px #543100;font-weight:bold;font-size:19px}
#gold-popover{position:fixed;z-index:160;width:min(340px,calc(100vw - 16px));max-height:calc(100dvh - 16px);display:flex;flex-direction:column;background:linear-gradient(150deg,#283650,#111c30);border:2px solid #d2b365;border-radius:12px;color:#eaf0ff;box-shadow:0 8px 30px #000a,inset 0 1px #fff2bb44;font-size:13px;line-height:1.4;overflow:hidden;text-shadow:none;pointer-events:auto}
#gold-popover.hidden{display:none}
#gold-popover header{display:flex;align-items:center;justify-content:space-between;padding-left:14px;border-bottom:1px solid #e2c97744;flex-shrink:0;color:#ffe89c}
#gold-popover header button{width:44px;height:44px;min-height:44px;border:0;background:transparent;color:white;font-size:25px;cursor:pointer}
.income-body{padding:10px 14px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
.income-current{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}
.income-current strong{font-size:22px;color:#fff0b0}
.income-row{display:grid;grid-template-columns:minmax(0,1fr) 45px 45px;gap:5px;padding:4px 0;font-variant-numeric:tabular-nums}
.income-row b{text-align:right;color:#fff0b5}.income-head{margin-top:9px;border-bottom:1px solid #ffffff25;font-size:11px}.income-head b{color:#aac9ec}
.income-total{margin-top:6px;border-top:1px solid #e2c97777;padding-top:9px;font-weight:bold}.income-total b{font-size:18px;color:#ffe280}
#gold-popover small{font-size:11px;color:#b9c9df}#gold-popover p{margin:7px 0;font-size:12px}
@keyframes pika-hop{0%,100%{transform:translateY(0)}35%{transform:translateY(-7px) rotate(-6deg)}65%{transform:translateY(-2px) rotate(4deg)}}
@keyframes gold-rise{0%{opacity:0;transform:translate(-50%,8px)}15%,65%{opacity:1}100%{opacity:0;transform:translate(-50%,-26px)}}
@media(max-height:540px),(max-width:1000px){body.playing #hud-shop-gold{height:29px;min-width:65px;padding:0 6px;gap:4px;font-size:21px}body.playing .gold-resource .hud-coin,body.playing #hud-shop-gold .hud-coin{width:22px;height:22px}body.playing .gold-resource .hud-coin:after,body.playing #hud-shop-gold .hud-coin:after{font-size:16px}#gold-interest-side{width:66px;padding-right:20px}.interest-caption{font-size:10px;line-height:14px}.interest-coins{gap:4px}.interest-coin{width:26px;height:26px;font-size:19px}.interest-badge{top:20px;font-size:13px;min-width:23px;padding:2px}.pika-portrait{width:30px;height:34px;margin-top:4px}.pika-portrait img{width:66px;height:66px;left:-20px;top:-16px}.interest-max .interest-coin:first-child:after{margin-left:28px;margin-top:-24px;font-size:11px}#gold-popover{width:min(320px,calc(100vw - 16px))}.income-row{padding:3px 0}}
@media(prefers-reduced-motion:reduce){.pika-react .gold-rise,.pika-react .side-gold-rise,.pika-react .pika-portrait{animation:none}.pika-react .side-gold-rise{opacity:1}}
body.reduce-fx .pika-react .pika-portrait,body.reduce-fx .pika-react .side-gold-rise{animation:none}
