/* Shared NewCoin tile: centered icon and balance; reward sits outside the grid flow. */
.np-2048-coin-box{position:relative;display:grid;grid-template-columns:minmax(0,1fr);place-content:center;justify-items:center;gap:5px;min-width:76px;min-height:54px;padding:8px 7px;border:1px solid #d5e8e7;border-radius:13px;background:linear-gradient(150deg,#f8fdfa,#eef8f5);color:#1b4257;box-shadow:0 4px 12px #28486b04;text-align:center}
.np-2048-coin-box img{display:block;width:22px;height:22px}
.np-2048-coin-box strong{max-width:100%;min-width:0;font-size:16px;line-height:1.1;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;font-weight:750}
.np-2048-coin-box small{position:absolute;inset:3px 4px auto auto;padding:1px 3px;border-radius:999px;background:#d8f0e8;color:#315751;font-size:9px;font-weight:750;line-height:1.1;white-space:nowrap;pointer-events:none}
.np-2048-coin-box.coin-bump img{animation:np-coin2048-bump .36s ease-out both}
@keyframes np-coin2048-bump{25%{transform:scale(1.3)}100%{transform:scale(1)}}
.np-2048-coin-fly{position:fixed;z-index:20;pointer-events:none;display:flex;align-items:center;gap:3px;background:#f6ffeaf5;border:1px solid #e3d08d;color:#1c4644;padding:3px 7px 3px 4px;border-radius:999px;font-size:12px;font-variant-numeric:tabular-nums;box-shadow:0 4px 14px #20443327;white-space:nowrap;}
.np-2048-coin-fly img{width:20px;height:20px}
.np-2048-end-coins{display:flex;align-items:center;justify-content:center;gap:6px;min-height:34px;color:#255650;font-size:13px;font-weight:750;flex-wrap:wrap;}
.np-2048-end-coins img{width:20px;height:20px}
.np-2048-end-coins small{font-weight:500;font-size:11px;color:#576d7e}
.np-2048-end-coins[hidden],.np-2048-coin-box [hidden]{display:none!important}
@media(max-width:760px),(pointer:coarse) and (max-height:500px){
 .game-nav-page-2048 .score-row{grid-template-columns:minmax(67px,1fr) minmax(105px,1.58fr) minmax(52px,.68fr)}
 .game-nav-page-2048 .np-2048-coin-box{gap:4px;min-width:0;min-height:48px;padding:6px 4px}
 .game-nav-page-2048 .np-2048-coin-box img{width:18px;height:18px}
 .game-nav-page-2048 .np-2048-coin-box strong{font-size:clamp(13px,3.85vw,16px)}
}
@media(max-width:360px){.game-nav-page-2048 .score-row{gap:5px}.game-nav-page-2048 .score-box.np-record-box{padding-inline:5px}.game-nav-page-2048 .np-record-comparison{gap:4px}}
@media(max-width:340px){.game-nav-page-2048 .np-2048-coin-box small{inset:2px 1px auto auto;padding-inline:2px;font-size:8.5px}}
@media(prefers-reduced-motion:reduce){.np-2048-coin-box.coin-bump img{animation:none}.np-2048-coin-fly{display:none}}
#end-dialog [data-guest-save]{width:100%;min-height:44px}
#end-dialog [data-guest-save][hidden]{display:none!important}
#end-dialog .dialog-actions:has([data-guest-save]:not([hidden])){flex-direction:column;align-items:stretch}
