/* Routed portrait screens share the wallet while their content slides in. */
#pageSurface { position:relative; min-width:0; min-height:58dvh; }
.deposit-bundles.iap-single-product { grid-template-columns:1fr; }
.deposit-bundles.iap-single-product strong { font-size:22px; overflow-wrap:anywhere; }
.history-preview { position:fixed; inset:0; z-index:100; pointer-events:none; background:var(--surface,#04051c); overflow:hidden; will-change:transform; }
[data-shop][data-ios-navigation] body { overflow-x:clip; }
[data-shop][data-ios-navigation] #app > header { position:sticky; top:var(--safe-top,0px); z-index:102; background:var(--surface,#04051c); }
[data-shop][data-ios-navigation] .welcome-spotlight #app > header { background:linear-gradient(#000a,#000a),var(--surface,#04051c); }
body.history-swiping { overscroll-behavior:none; }
body.history-swiping > #app { position:relative; z-index:101; background:var(--surface,#04051c); box-shadow:-8px 0 28px #0005; }
#pageSurface > section[hidden], #withdrawalBanner[hidden] { display:none!important; }
#pageSurface > section:focus { outline:none; }
[data-shop] main { overflow-x:clip; }
[data-shop] .topline { display:flex; align-items:center; justify-content:flex-end; margin:6px 0 18px; }
[data-shop] .settings-entry { display:flex; align-items:center; gap:6px; min-height:40px; padding:7px 4px 7px 12px; border:0; background:transparent; color:#aeb8d1; font-family:inherit; font-weight:500; font-size:11px; line-height:1.4; cursor:pointer; }
.settings-entry svg { width:19px; height:19px; }
body:not([data-page="cases"]) .topline { display:none!important; }
.screen-heading { display:flex; align-items:center; gap:13px; padding:12px 0 24px; }
.screen-heading p { margin:0 0 5px; color:#8391b5; font-size:9px; letter-spacing:1.6px; }
[data-shop] .screen-heading h1 { margin:0; color:#f4f6ff; font-size:27px; line-height:1.2; }
.screen-back { display:grid; place-items:center; width:40px; height:44px; border:1px solid #ffffff14; border-radius:10px; color:#f3f6ff; background:#ffffff06; font-size:30px; line-height:1; cursor:pointer; }
.screen-back-label, [data-shop] #back { display:inline-flex; align-items:center; min-height:44px; margin:0 0 10px; padding:4px 10px 4px 0; color:#b6c7e9; font-size:12px; cursor:pointer; }
#settingsView { padding:4px 0 28px; }
.settings-panel { margin:0 0 17px; overflow:hidden; border:1px solid #ffffff0e; border-radius:14px; background:#12132d; }
.settings-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:20px 16px; }
.settings-row strong, .settings-link strong { color:#f1f3ff; font-size:13px; font-weight:600; }
.settings-row p, .settings-link small { display:block; margin:6px 0 0; color:#8893b2; font-size:11px; line-height:1.5; font-weight:400; }
.settings-link { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; min-height:76px; padding:18px 16px; border:0; border-top:1px solid #ffffff0b; color:#b4c1df; background:transparent; text-align:left; cursor:pointer; font:inherit; }
.settings-link > span:last-child { font-size:24px; }
.settings-link:hover, .screen-back:hover { background:#ffffff08; }
#settingsView #soundToggle { flex:none; min-height:40px; padding:9px 12px; border:1px solid #7488b549; border-radius:20px; background:#222c48; color:#cbd7ed; font-size:11px; cursor:pointer; }
#settingsView #soundToggle[aria-pressed="true"] { background:#22443e; border-color:#6be2b941; color:#acedd7; }
.settings-label { margin:0; padding:18px 16px 10px; color:#919bbc; font-size:9px; letter-spacing:1.3px; }
.settings-reset { width:100%; min-height:50px; padding:14px 16px; border-top:1px solid #ffffff0b; color:#b5bdd3; text-align:left; font-size:12px; }
[data-shop] main > footer { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:12px; padding-top:24px; margin-top:25px; border-top:1px solid #ffffff0a; }
[data-shop] main > footer > .nav { min-height:40px; color:#8994b1; background:none; border:0; font-size:11px; cursor:pointer; }
.settings-entry:focus-visible, .screen-back:focus-visible, .settings-link:focus-visible, .screen-back-label:focus-visible { outline:2px solid #a4beff; outline-offset:2px; }
@media(prefers-reduced-motion:reduce) { #pageSurface { transform:none!important; } }

/* Subpages use a persistent top-left Back action in place of the shop logo. */
header > #pageBack[hidden] { display:none!important; }
body[data-page]:not([data-page="cases"]) header > .brand { display:none!important; }
[data-shop] header > #pageBack:not([hidden]) {
 display:flex;align-items:center;justify-content:flex-start;gap:3px;flex:none;
 min-width:60px;min-height:44px;padding:4px 8px 4px 0;margin:0 auto 0 0;
 border:0;border-radius:7px;background:transparent;color:#f1f5ff;
 font-family:inherit;font-size:12px;font-weight:600;cursor:pointer;touch-action:manipulation;
}
#pageBack svg { width:21px;height:21px;flex:none; }
[data-shop] header > #pageBack:hover { background:#ffffff08; }
[data-shop] header > #pageBack:active { transform:translateX(-2px); }
[data-shop] header > #pageBack:focus-visible { outline:2px solid #a4beff;outline-offset:2px; }

/* Prize.gg identity, shared by all shop themes. */
[data-shop] header > .brand { display:flex; align-items:center; gap:7px; font-style:normal; }
[data-shop] .brand .prize-brand-icon { width:24px; height:24px; flex:none; object-fit:contain; }
[data-shop] .brand .prize-wordmark { color:#f6f8ff; font-size:14px; font-weight:750; letter-spacing:-.4px; line-height:1; }
[data-shop] .brand .prize-domain { color:#a6dfed; font-size:inherit; font-weight:600; }
@media(max-width:360px){[data-shop] header > .brand{gap:4px}[data-shop] .brand .prize-brand-icon{width:20px;height:20px}[data-shop] .brand .prize-wordmark{font-size:12px}}

button.withdrawal-record { width:100%; color:inherit; background:none; border:0; text-align:left; cursor:pointer; font:inherit; }
.withdrawal-record > span { display:flex; flex-direction:column; gap:4px; min-width:0; overflow-wrap:anywhere; }
.withdrawal-record > span:last-child { text-align:right; }
