.economy-dialog{width:min(92vw,32rem);max-height:85vh;overflow:auto;border:1px solid rgba(57,255,20,.24);border-radius:18px;background:#141916;color:#fff;padding:24px;box-shadow:0 18px 65px #0009}
.economy-dialog::backdrop{background:rgba(0,0,0,.7)}
.economy-dialog h2{margin:0 0 12px;font-size:1.35rem}.economy-dialog p{line-height:1.5}
.economy-packs{display:grid;gap:10px;margin:18px 0}.economy-pack{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid #ffffff33;border-radius:12px}
.economy-pack div{display:grid;gap:4px}.economy-pack small{color:#c5d2c8}.economy-dialog button{cursor:pointer;border:1px solid var(--accent,#39ff14);border-radius:9px;padding:10px 14px;background:var(--accent,#39ff14);color:var(--accent-ink,#061400);font-weight:600}
.economy-dialog button:disabled{opacity:.55;cursor:wait}.economy-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.economy-actions [data-economy-close],#player-wallet-dialog .economy-actions button:first-child{border-color:var(--accent-2,#ff3ea5);background:rgba(255,62,165,.1);color:#ff82c3}
.economy-status{min-height:1.5em;color:#ff9acb}
.chapter-gate-button{display:block;width:100%;margin:10px 0;padding:12px;border:1px solid var(--accent,#39ff14);border-radius:10px;background:rgba(57,255,20,.1);color:var(--accent,#39ff14);cursor:pointer}.chapter-gate-button[hidden]{display:none}
.player-wallet-button{flex:none;max-width:9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--accent,#39ff14);border-radius:999px;background:rgba(57,255,20,.1);color:var(--accent,#39ff14);padding:7px 10px;cursor:pointer;font-size:.8rem}.player-wallet-button[hidden]{display:none}.economy-actions a{align-self:center;color:var(--accent-2,#ff3ea5)}
.player-wallet-button:focus-visible,.chapter-gate-button:focus-visible,.economy-dialog button:focus-visible{outline:2px solid var(--accent,#39ff14);outline-offset:3px}
.economy-dialog .economy-actions .economy-continue-action{border-color:var(--accent,#39ff14);background:var(--accent,#39ff14);color:var(--accent-ink,#061400);font-weight:700}

/* The checkout is deliberately compact on mobile; only its contents scroll. */
#economy-dialog .economy-header{position:relative;padding-right:34px}
#economy-dialog .economy-close-top{position:absolute;right:0;top:-4px;border:0;background:transparent;color:#aaa;font-size:28px;line-height:1;padding:0 4px}
#economy-dialog .economy-description{color:#c6c9c6;margin:0 0 14px}
#economy-dialog .economy-status:empty{display:none}
#economy-dialog.economy-store[open]{box-sizing:border-box;display:flex;flex-direction:column;width:min(94vw,560px);max-height:min(92dvh,850px);padding:0;overflow:hidden;border:1px solid #3a4840;border-radius:25px;background:#141916;color:#f7faf7;box-shadow:0 24px 80px #000b;font-family:inherit}
#economy-dialog.economy-store .economy-header{flex:none;text-align:center;padding:24px 54px 10px}
#economy-dialog.economy-store .economy-header h2{font-size:clamp(1.35rem,4vw,1.7rem);line-height:1.2;letter-spacing:-.025em;margin:0 0 8px}
#economy-dialog.economy-store .economy-close-top{right:20px;top:19px;color:#a5aea7}
#economy-dialog.economy-store .economy-description{margin:0;color:#aab4ad;font-size:.9rem}
#economy-dialog.economy-store .economy-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 22px 10px;scrollbar-color:#526b5a transparent}
#economy-dialog.economy-store .economy-content>strong{display:block;color:#d3e2d6;margin:0 0 5px;font-size:.9rem}
#economy-dialog.economy-store .economy-balance{margin:8px 0 0;color:#aebbb1;font-size:.83rem;text-align:center}
#economy-dialog.economy-store .economy-packs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0;padding:0;margin:18px 0 0;min-width:0}
#economy-dialog.economy-store .economy-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#economy-dialog.economy-store .economy-pack{position:relative;box-sizing:border-box;display:flex;align-items:flex-start;flex-direction:column;justify-content:space-between;gap:12px;min-width:0;min-height:118px;padding:17px;border:1px solid #35413a;border-radius:16px;background:#0d120f;cursor:pointer;transition:border-color .16s,background-color .16s,box-shadow .16s}
#economy-dialog.economy-store .economy-pack-featured{grid-column:1/-1;min-height:136px;flex-direction:row;align-items:center;background:linear-gradient(115deg,#28583c 0%,#438e55 56%,#73ad5a 100%);border-color:#6aaa78}
#economy-dialog.economy-store .economy-pack[data-selected="true"]{border-color:#b6ef78;box-shadow:0 0 0 2px #8fd65a,0 0 22px #74bd4838}
#economy-dialog.economy-store .economy-pack:focus-within{outline:2px solid #e4ffd0;outline-offset:3px}
#economy-dialog.economy-store .economy-pack input{position:absolute;width:1px;height:1px;opacity:0}
#economy-dialog.economy-store .economy-pack-info{display:grid;gap:5px;min-width:0}
#economy-dialog.economy-store .economy-pack-name{font-size:.85rem;font-weight:600;color:#aab9ad;overflow-wrap:anywhere}
#economy-dialog.economy-store .economy-pack-amount{font-size:1.24rem;font-weight:800;line-height:1.2;overflow-wrap:anywhere}
#economy-dialog.economy-store .economy-pack-amount::before{content:'✦';display:inline-grid;place-items:center;width:25px;height:25px;margin-right:8px;border-radius:8px;background:#aee46d;color:#18351e;font-size:15px;vertical-align:1px}
#economy-dialog.economy-store .economy-pack-bonus{color:#a8e374;font-size:.82rem;line-height:1.35;overflow-wrap:anywhere}
#economy-dialog.economy-store .economy-pack-featured .economy-pack-name,#economy-dialog.economy-store .economy-pack-featured .economy-pack-bonus{color:#e1f5d6}
#economy-dialog.economy-store .economy-pack-price{color:#b5c0b7;font-size:.95rem;font-weight:700;white-space:nowrap}
#economy-dialog.economy-store .economy-pack-featured .economy-pack-price{flex:none;color:#fff;background:#1d5136;border-radius:999px;padding:9px 13px}
#economy-dialog.economy-store .economy-checkout-note{margin-top:20px;padding-top:16px;border-top:1px solid #344037;color:#99a69c;font-size:.8rem}
#economy-dialog.economy-store .economy-checkout-note h3{color:#d2ddd4;font-size:.85rem;margin:0 0 6px}
#economy-dialog.economy-store .economy-checkout-note p{margin:0;white-space:pre-line;line-height:1.5}
#economy-dialog.economy-store .economy-status{margin:8px 0 0;color:#c2dfb0;font-size:.84rem}
#economy-dialog.economy-store .economy-actions{flex:none;display:flex;margin:0;padding:16px 22px 22px;background:#141916}
#economy-dialog.economy-store .economy-actions [data-economy-close]{display:none}
#economy-dialog.economy-store .economy-purchase-button,#economy-dialog.economy-store.economy-purchased .economy-actions [data-economy-close]{display:block;width:100%;border:0;border-radius:13px;padding:15px;background:linear-gradient(105deg,#459450,#9bd96d);color:#112619;font-size:1rem;font-weight:800}
#economy-dialog.economy-store.economy-purchased .economy-actions .economy-continue-action{background:var(--accent,#39ff14);color:var(--accent-ink,#061400)}
#economy-dialog.economy-store .economy-purchase-button:disabled{opacity:.5;cursor:not-allowed}
#economy-dialog.economy-store button:focus-visible{outline:2px solid #d7ffb9;outline-offset:3px}
@media(max-width:380px){#economy-dialog.economy-store .economy-scroll{padding-inline:15px}#economy-dialog.economy-store .economy-actions{padding-inline:15px}#economy-dialog.economy-store .economy-pack{padding:13px;gap:8px}#economy-dialog.economy-store .economy-pack-amount{font-size:1.05rem}#economy-dialog.economy-store .economy-pack-featured .economy-pack-price{padding:7px 9px}}
@media(prefers-reduced-motion:reduce){#economy-dialog.economy-store .economy-pack{transition:none}}
