#market-button{flex:none;background:#315f80;border:1px solid #6096b6;border-radius:7px;color:#f4f0e7;font-weight:800;padding:7px 13px;letter-spacing:1px}
#market{box-sizing:border-box;width:min(720px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;border:2px solid #536171;border-radius:18px;padding:26px;background:#20242c;color:#eef0e7;font-family:system-ui,sans-serif;box-shadow:0 18px 80px #0009}
#market::backdrop{background:#080c14d9}.market-heading{display:flex;justify-content:space-between;gap:15px;align-items:center}.market-heading small{color:#edbb6d;font-size:11px;letter-spacing:2px}.market-heading h2{font-size:clamp(21px,4vw,30px);margin:5px 0;color:#f5f0df}.market-heading button{font-size:30px;line-height:1;background:#3e4450;color:white;border:2px solid #11151b;border-radius:10px;width:45px;height:45px;padding:0}
#market p{color:#c5ccd0}.market-intro{font-size:14px}.market-note{font-size:13px;line-height:1.5;padding:12px 15px;border:1px solid #665537;border-radius:9px;background:#332e23;color:#edcf93}
#market h3{font-size:14px;letter-spacing:2px;margin:22px 0 10px}#market h3 span{font-size:10px;color:#a5b6c4;float:right}.gem-offer{display:flex;align-items:center;gap:16px;padding:16px;margin:10px 0;border:2px solid #11151b;border-radius:13px}.gem-offer.blue{background:#284f75}.gem-offer.purple{background:#593d76}.gem-offer.gold{background:#75591f}.gem-symbol{font-size:45px;color:#79d0ed;text-shadow:2px 3px #11151b}.gem-offer h4{margin:0;font-size:16px}.gem-offer p{margin:4px 0;font-weight:800;font-size:23px;color:white!important}.gem-offer button{margin-left:auto;min-width:118px;padding:12px 8px;background:#687582;border:2px solid #11151b;border-radius:10px;color:#e4e8e9;font-size:20px;font-weight:900;cursor:not-allowed;opacity:.85}.gem-offer small{display:block;font-size:9px;letter-spacing:1px;margin-top:5px}.market-footnote{font-size:12px;line-height:1.5}#return-market{width:100%;padding:13px;background:#566a46;border:1px solid #94b866;border-radius:9px;color:white;font-weight:800}
@media(max-width:550px){header{padding:10px 12px}header span{display:none}header strong{font-size:12px}#market{padding:16px}.gem-offer{padding:12px;gap:10px}.gem-offer h4{font-size:12px}.gem-offer button{min-width:95px}.gem-symbol{font-size:30px}}
#wallet-panel,.redeem-panel{margin:16px 0;padding:12px;border:1px solid #536171;border-radius:10px}#wallet-actions{display:flex;flex-wrap:wrap;gap:8px}#wallet-actions button,#recover-wallet,#redeem-gems{border-radius:6px;color:#eef0e7;background:#31536b;border-color:#6096b6;font-weight:700;font-size:11px;padding:9px}#wallet-help,.redeem-panel p{font-size:12px;line-height:1.5}#market-status{min-height:22px;font-size:13px;color:#edbb6d!important}#checkout-link{display:block;background:#3194c2;color:white;padding:13px;text-align:center;border-radius:8px;font-weight:800;text-decoration:none}#checkout-link[hidden],#recover-panel[hidden]{display:none}#recover-panel{padding:12px;border:1px solid #6096b6;border-radius:8px}#recovery-code{box-sizing:border-box;display:block;width:100%;padding:12px;margin:10px 0;background:#121923;border:1px solid #536171;color:white}#market button:disabled{cursor:not-allowed;opacity:.5}.gem-offer button:not(:disabled){background:#2e9ec9;cursor:pointer}#market{scrollbar-gutter:stable}.gem-offer p{font-size:19px}
