/* The app's layout and every new page. foil.css is the locked kit, copied unchanged from boards/store. Nothing here restyles a locked part: new surfaces are the same stamped metal, in the dark. */
:root {
  --bg: #0b0d12;
  --panel: #151922;
  --ink: #f2f4f7;
  --soft: #a3acb8;
  --dim: #7c8596;
  --line: #2b323d;
  --pack: #c8383b;
  --money: #3df09a;
  --teal: #2fe6c0;
  --gutter: 14px;
  color-scheme: dark;
}
@property --pack { syntax: '<color>'; inherits: true; initial-value: #c8383b; }
html, body { background: var(--bg); }
body { color: var(--ink); font: 600 15px/1.45 "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
[hidden] { display: none !important; }
button { font-family: inherit; }
.page { max-width: 1040px; margin-inline: auto; padding-block: 18px 56px; display: grid; grid-template-columns: minmax(0, 410px) minmax(0, 1fr); gap: 28px; align-items: start; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); transition: --pack .26s linear; }
.phone { position: sticky; top: 12px; width: 100%; height: 820px; max-height: calc(100vh - 24px); min-height: 640px; border-radius: 28px; overflow: hidden; background: #000; box-shadow: 0 0 0 6px #000, 0 0 0 7px var(--line); user-select: none; -webkit-user-select: none; container-type: size; }
.layer { position: absolute; inset: 0; }

/* ---------- The Packs screen: the locked page's own rules ---------- */
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
#stage:active { cursor: grabbing; }
.hud-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; pointer-events: none; font-family: var(--ui-display, inherit); }
.hud-top > * { pointer-events: auto; }
.hud-low { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 8px; display: grid; gap: 7px; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(6, 8, 14, .5) 40px, rgba(6, 8, 14, .42) 110px, rgba(6, 8, 14, .5)); font-family: var(--ui-text, inherit); color: #fff; }
.hud-low > * { pointer-events: auto; }
/* The set packs' top three cards, fanned on the pedestal across from the taunt (main.ts syncChase). A tap opens What's inside. */
.chase-fan { all: unset; position: absolute; right: 10px; bottom: calc(100% - 20px); width: 132px; height: 112px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chase-fan[hidden] { display: none; }
.chase-fan:focus-visible { outline: 2px solid #ffd34d; outline-offset: 4px; border-radius: 10px; }
.cf-tag { position: absolute; left: 50%; top: -4px; transform: translateX(-50%); z-index: 5; padding: 2px 8px; border-radius: 9px; background: #1b2236; border: 2px solid #ffd34d; color: #ffd34d; font: 800 calc(9.5px * var(--ui-ts, 1))/1.2 var(--ui-text, inherit); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.cf-card { position: absolute; bottom: 16px; width: 50px; aspect-ratio: 900 / 1257; }
.cf-card .rawcard, .cf-card .slab { width: 100%; height: 100%; filter: drop-shadow(0 3px 5px #000b); }
.cf-card .rawcard > .fill, .cf-card .rawcard > img { border-radius: 4px; box-shadow: 0 0 0 1.5px #e9eef8; }
.cf-0 { left: 39px; bottom: 26px; width: 54px; z-index: 3; }
.cf-0 .rawcard > .fill, .cf-0 .rawcard > img { box-shadow: 0 0 0 2px #ffd34d, 0 0 10px rgba(255, 200, 60, .75); }
.cf-1 { left: 2px; transform: rotate(-11deg); z-index: 2; }
.cf-2 { right: 0; transform: rotate(11deg); z-index: 1; }
.cf-p { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); z-index: 4; padding: 1px 5px; border-radius: 7px; background: #fbfaf3; color: #1b2236; border: 2px solid #1b2236; font: 800 calc(10.5px * var(--ui-ts, 1))/1.15 var(--ui-text, inherit); white-space: nowrap; }
.title-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.vs-face { width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--pack) 45%, #10141e) center/cover no-repeat; box-shadow: 0 0 0 1.5px #dfe6f3, 0 0 0 3px #39425a, 0 3px 8px rgba(0, 0, 0, .6); }
.pack-title { line-height: 1.05; pointer-events: none; min-width: 0; }
.pack-title b { display: block; font-family: var(--ui-display, inherit); font-weight: var(--ui-dw, 400); font-style: var(--ui-ds, normal); letter-spacing: var(--ui-dl, .01em); font-size: calc(23px * var(--ui-fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 14px color-mix(in srgb, var(--pack) 45%, transparent); word-spacing: var(--ui-ws, .08em); }
.pack-title span { display: block; font: var(--ui-tw, 600) calc(12.5px * var(--ui-ts, 1))/1.2 var(--ui-text, inherit); color: #dfe4ec; text-shadow: 0 1px 1px rgba(0, 0, 0, .7); }
@keyframes valueIn { from { transform: translateY(70%); opacity: 0; } }
@keyframes faceIn { from { transform: translateX(-130%); opacity: 0; } }
.title-row .ui-chip { flex: none; min-height: 34px; padding-block: 0; padding-inline: 12px; font-size: calc(13px * var(--ui-fs, 1)); }
.taunt { position: absolute; left: 12px; bottom: calc(100% - 26px); width: 34%; min-width: 128px; box-sizing: border-box; padding: 6px 9px; border-radius: 12px; border: 3px solid #1b2236; background: #fbfaf3; color: #1b2236; font: var(--ui-tw, 700) calc(13px * var(--ui-ts, 1))/1.2 var(--ui-text, inherit); box-shadow: 0 3px 0 rgba(0, 0, 0, .55); pointer-events: none; transform-origin: 26px 100%; }
.taunt::after { content: ""; position: absolute; left: 15px; bottom: -11px; width: 14px; height: 11px; background: #fbfaf3; clip-path: polygon(0 0, 100% 0, 18% 100%); filter: drop-shadow(0 3px 0 #1b2236); }
@media (prefers-reduced-motion: no-preference) { .taunt.in { animation: tauntIn .22s cubic-bezier(.2, 1.5, .4, 1); } }
@keyframes tauntIn { from { transform: scale(.6); opacity: 0; } }
.stats { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 7px; align-items: stretch; }
.phone .ui-stat { min-height: 44px; padding: 3px 5px; gap: 2px; }
.phone .ui-stat-label { font-size: calc(10.5px * var(--ui-ts, 1)); }
.phone .ui-stat-value { font-size: calc(17px * var(--ui-fs, 1)); }
.phone .ui-buy { min-height: 52px; font-size: calc(22px * var(--ui-fs, 1)); }
.phone .ui-tabs { padding-top: 5px; padding-bottom: 7px; margin: 0 -14px -8px; width: auto; }
.phone .ui-tab { min-height: 48px; font-size: calc(10.5px * var(--ui-ts, 1)); gap: 3px; }
.phone .ui-tab svg { width: 22px; height: 22px; }
.phone .ui-select { min-height: 38px; font-size: calc(15px * var(--ui-fs, 1)); }
.phone .ui-capsule { min-height: 38px; font-size: calc(16px * var(--ui-fs, 1)); }
.phone .ui-capsule-plus { width: 42px; min-height: 42px; }
.phone.booting :is(.hud-top, .hud-low, .swipe) { visibility: hidden; }
/* The first thing a phone shows, until the store is ready. */
.boot-mark { display: none; place-items: center; background: radial-gradient(70% 46% at 50% 46%, #1b2132, #05060a 92%); }
.phone.booting .boot-mark { display: grid; }
.phone > .ui-tabs { display: none; } /* until the first draw moves it into the Packs controls or a page */
.boot-mark img { width: 112px; height: 112px; display: block; filter: drop-shadow(0 6px 18px #000c); }
@media (prefers-reduced-motion: no-preference) { .boot-mark img { animation: bootPulse 1.5s ease-in-out infinite; } }
@keyframes bootPulse { 50% { opacity: .55; } }
/* The screen opens in order: the place, then the pack, then the menus, with Buy last. */
@media (prefers-reduced-motion: no-preference) {
  .phone.opening .hud-top { animation: hudDrop .44s cubic-bezier(.2, 1.25, .4, 1) .95s both; }
  .phone.opening .hud-low { animation: hudRise .5s cubic-bezier(.2, 1.1, .4, 1) .85s both; }
  .phone.opening .buy-wrap { animation: buyIn .36s cubic-bezier(.2, 1.5, .4, 1) 1.15s both; }
  .buy-wrap.landed { animation: buyBump .32s cubic-bezier(.2, 1.4, .4, 1); }
  .phone.short .ui-capsule-plus { animation: plusAsk 1.5s ease-in-out infinite; }
}
@keyframes hudDrop { from { transform: translateY(-120%); opacity: 0; } }
@keyframes hudRise { from { transform: translateY(105%); opacity: 0; } }
@keyframes buyIn { from { transform: scale(.82); opacity: 0; } }
@keyframes buyBump { 35% { transform: translateY(2px) scale(.985); } }
@keyframes plusAsk { 50% { scale: 1.08; } }
.phone .ui-tab.is-on { transform: translateY(-6px); }
.buy-wrap { display: block; }
.swipe { position: absolute; top: 33%; width: 26px; height: 54px; pointer-events: none; opacity: .92; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); transition: opacity .3s; }
.swipe svg { width: 100%; height: 100%; display: block; }
.swipe.l { left: 3px; }
.swipe.r { right: 3px; transform: scaleX(-1); }
.swiped .swipe { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .swipe svg { animation: nudge 1.3s ease-in-out infinite; } }
@keyframes nudge { 50% { transform: translateX(-6px); } }
#wipe { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.wipe-wait { position: absolute; inset: 0; z-index: 51; display: grid; place-items: center; pointer-events: none; }
.wipe-wait[hidden] { display: none; }
.wipe-wait img { display: block; opacity: .9; }
@media (prefers-reduced-motion: no-preference) { .wipe-wait img { animation: bootPulse 1.5s ease-in-out infinite; } }
.mount { z-index: 40; background: #000; }
/* A full-screen scene covers the page, so the page isn't painted under it. Its gradients cost WebKit most of its frame rate. */
.phone:has(> #mount:not([hidden])) > #pageLayer { visibility: hidden; }

/* ---------- The balance on every page ---------- */
.cap-wrap { position: relative; flex: none; }
.gm-delta { position: absolute; right: 44px; top: calc(100% + 3px); color: var(--money); font: 400 15px/1 var(--ui-display, inherit); font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 1px 2px #000, 0 0 10px #000a; }
.gm-delta.in { animation: deltaIn .3s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes deltaIn { from { transform: translateY(-6px); opacity: 0; } }
.cap-wrap.is-up .ui-capsule-amt { color: var(--money); transition: color .2s; }

/* ---------- The surface behind every page: the hall's own marble floor, in the dark ---------- */
.pg, .scr { background: radial-gradient(130% 44% at 50% -8%, color-mix(in oklab, var(--pack) 30%, transparent), transparent 72%), linear-gradient(rgba(8, 11, 20, .76), rgba(6, 8, 14, .9) 58%, rgba(4, 5, 10, .97)), #07090f url(env/hall_floor.jpg) 50% 0 / cover no-repeat; }
.pg { display: flex; flex-direction: column; }
.pg-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px var(--gutter) 6px; min-height: 58px; }
.pg-scroll { flex: 1 1 auto; min-height: 0; overflow: hidden auto; padding: 2px var(--gutter) 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.pg-scroll::-webkit-scrollbar, .scr-scroll::-webkit-scrollbar, .h-row::-webkit-scrollbar, .sheet::-webkit-scrollbar, .bb-list::-webkit-scrollbar { display: none; }
.pg-scroll.page-in { animation: pageIn .22s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .pg-scroll.page-in { animation: none; } }
.pg .ui-tabs { flex: none; margin: 0; position: relative; z-index: 6; padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px)); }
.pg-float { position: relative; height: 0; flex: none; z-index: 5; }
.pg-title { margin: 0 0 12px; font: var(--ui-dw, 400) calc(31px * var(--ui-fs, 1))/1.1 var(--ui-display, inherit); word-spacing: var(--ui-ws, 0); color: #fff; text-shadow: 0 1px 2px #000a, 0 0 18px color-mix(in oklab, var(--pack) 40%, transparent); }
.pg-title-bar { margin: 0; font-size: calc(23px * var(--ui-fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sec { margin-top: 18px; }
.sec-head { margin: 18px 0 10px; padding-bottom: 8px; font: var(--ui-dw, 400) calc(18px * var(--ui-fs, 1))/1.15 var(--ui-display, inherit); word-spacing: var(--ui-ws, 0); color: #fff; position: relative; }
.sec-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: linear-gradient(90deg, color-mix(in oklab, var(--pack) 72%, #fff), #ffffff30 42%, #ffffff12); }
.sec > .sec-head { margin-top: 0; }
.pg-gap { height: 12px; }
.pg-gap-tall { height: 118px; }
.pg-gap-fab { height: 84px; }
.pg-gap-s { height: 8px; }
.green { color: var(--money) !important; }

/* ---------- The dark plate: the same cut, rim and hairline as a stat button ---------- */
.pl, .tile, .row-card, .hit { --c: 11px; --pl-ch: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); position: relative; isolation: isolate; box-sizing: border-box; margin: 0; border: 0; background: none; color: #fff; text-align: left; appearance: none; -webkit-appearance: none; -webkit-tap-highlight-color: transparent; font: inherit; }
button.pl, button.tile, button.row-card, button.hit, a.pl { cursor: pointer; text-decoration: none; touch-action: manipulation; }
.pl::before, .tile::before, .row-card::before, .hit::before { content: ""; position: absolute; z-index: -2; inset: 0; clip-path: var(--pl-ch); background: linear-gradient(#97a3bb, #454e62 28%, #262c3b 62%, #626d84); }
.pl::after, .tile::after, .row-card::after, .hit::after { content: ""; position: absolute; z-index: -1; inset: 1.5px; clip-path: var(--pl-ch); background: linear-gradient(105deg, #fff0 26%, #ffffff0c 44%, #fff0 58%), repeating-linear-gradient(0deg, #ffffff05 0 1px, #0000 1px 2px), linear-gradient(#2b3346, #1a1f2d 47%, #131722 49%, #1d2332); }
button.pl:active::after, button.tile:active::after, button.row-card:active::after { filter: brightness(1.22); }
:is(.pl, .tile, .row-card, .hit, a.go-row):focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- A tile: card on a dark stage with a soft floor shadow, green value, white name ---------- */
.tile { display: block; width: 100%; padding: 5px 5px 11px; min-width: 0; }
.tile-stage { display: block; position: relative; aspect-ratio: 1 / 1.14; overflow: hidden; --c2: 8px; clip-path: polygon(var(--c2) 0, calc(100% - var(--c2)) 0, 100% var(--c2), 100% 100%, 0 100%, 0 var(--c2)); background: linear-gradient(transparent 76%, #ffffff0e 76.5%, #ffffff05), radial-gradient(70% 58% at 50% 42%, color-mix(in oklab, var(--tier, #8896b0) 22%, #2a3142), #10141d 92%); }
.tile-stage::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 3.5%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, #000c, #0000); }
.tile-card { position: absolute; z-index: 1; left: 0; right: 0; top: 7%; bottom: 9%; display: flex; justify-content: center; }
.tile-val { display: block; padding: 8px 8px 0; color: var(--money); font: var(--ui-dw, 400) calc(17px * var(--ui-fs, 1))/1.1 var(--ui-display, inherit); font-variant-numeric: tabular-nums; word-spacing: var(--ui-ws, 0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-name { display: block; padding: 3px 8px 0; color: #fff; font: 700 13.5px/1.2 var(--ui-text, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-row { display: flex; gap: 10px; overflow: auto hidden; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.h-row > .tile { flex: 0 0 46cqw; scroll-snap-align: start; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rows { display: grid; gap: 8px; }

/* The picture of a card. Raw and slab are the same height everywhere, the way the reveal has it. */
.rawcard { display: block; position: relative; height: 100%; aspect-ratio: 900 / 1257; flex: none; filter: drop-shadow(0 4px 6px #000a); }
.rawcard > img, .rawcard > .fill { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4.5% / 3.2%; }
.sprite { display: block; position: relative; overflow: hidden; width: 100%; height: 100%; background: #252c3b no-repeat; }
.fill { display: block; width: 100%; height: 100%; object-fit: cover; }
.slab { display: block; position: relative; height: 100%; aspect-ratio: var(--a, .6); flex: none; border-radius: 3% / 1.8%; container-type: inline-size; filter: drop-shadow(0 4px 6px #000a); }
.slab-body { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(118deg, #dbe6f838, #6c7a9428 42%, #bcc9df38), #0c101a78; box-shadow: inset 0 0 0 1.5px #e3ecfac0, inset 0 0 0 3px #0006; }
.slab-card, .slab-label { position: absolute; display: block; object-fit: cover; }
.slab-card { border-radius: 2.4% / 1.8%; overflow: hidden; }
.slab-label { border-radius: 1.2%; background: url(cards/psa_label.jpg) center / 100% 100%; }
.slab-lines { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; opacity: .72; pointer-events: none; border-radius: inherit; }
.slab-sheen { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(105deg, #fff0 28%, #ffffff24 45%, #fff0 58%); pointer-events: none; }

/* ---------- Full-screen views above the tabs ---------- */
.stack { z-index: 20; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; }
.scr-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px var(--gutter) 6px; min-height: 58px; }
.scr-bar-right { display: flex; gap: 8px; }
.scr-bar-title { display: grid; grid-template-columns: 1fr auto 1fr; }
.scr-bar-title > b { font: var(--ui-dw, 400) calc(19px * var(--ui-fs, 1))/1.1 var(--ui-display, inherit); word-spacing: var(--ui-ws, 0); text-align: center; white-space: nowrap; }
.scr-bar-title > :last-child { justify-self: end; }
.scr-scroll { flex: 1 1 auto; min-height: 0; overflow: hidden auto; padding: 4px var(--gutter) 14px; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.scr-foot { flex: none; padding: 8px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
.phone .ui-go { min-height: 54px; font-size: calc(21px * var(--ui-fs, 1)); }
.phone .ui-go svg, .phone .ui-chip svg:not(.ui-more) { width: 24px; height: 24px; flex: none; position: relative; filter: drop-shadow(0 1px 1px #0009); }
.gm-ico { width: 42px; min-height: 42px !important; padding: 0; flex: none; }
.gm-ico svg { width: 22px; height: 22px; display: block; position: relative; filter: drop-shadow(0 1px 1px #0009); }
.gm-ico-sm { width: 34px; min-height: 34px !important; --ui-c: 7px !important; }
.gm-ico-sm svg { width: 17px; height: 17px; }
.gm-ico-svg { width: 19px; height: 19px; display: block; position: relative; filter: drop-shadow(0 1px 1px #0009); }
.gm-wide { display: flex; width: 100%; min-height: 54px; font-size: calc(21px * var(--ui-fs, 1)); }
.gm-link { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.gm-txt, .gm-iconbtn { touch-action: manipulation; }
.gm-txt { display: inline-flex; align-items: center; gap: 5px; padding: 14.500px 4px; margin-block: -8.500px; border: 0; background: none; color: #d7deea; font: 700 14px/1.1 var(--ui-text, inherit); cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.gm-txt svg { width: 15px; height: 15px; display: block; }
.gm-txt .ui-caret { width: 10px; height: 10px; filter: none; }
.gm-txt:focus-visible, .gm-iconbtn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.gm-iconbtn { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: none; color: #8e98aa; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gm-iconbtn::before { content: ""; position: absolute; inset: -5px -2px; }
.gm-iconbtn svg { width: 21px; height: 21px; display: block; }
.gm-iconbtn.is-on { color: #fff; }

/* The big card, from the Showroom, the Collection and after a rip. */
.scr-hero { background: radial-gradient(90% 46% at 50% 40%, color-mix(in oklab, var(--tier, #8896b0) 26%, transparent), transparent 74%), linear-gradient(rgba(8, 11, 20, .82), rgba(6, 8, 14, .9) 58%, rgba(3, 4, 8, .98)), #07090f url(env/hall_floor.jpg) 50% 100% / cover no-repeat; }
.hero-stage { flex: 1 1 0; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; perspective: 1000px; touch-action: none; }
.hero-card { --h: min(62cqh, calc(84cqw / .716)); height: var(--h); display: flex; justify-content: center; position: relative; z-index: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out; transform-style: preserve-3d; will-change: transform; }
.hero-floor { position: absolute; left: 50%; bottom: 2%; width: 66%; height: 7%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, #000d, #0000); }
.hero-stage .rawcard, .hero-stage .slab { filter: drop-shadow(0 10px 22px #000b) drop-shadow(0 0 22px color-mix(in oklab, var(--tier, #8896b0) 36%, transparent)); }
.raw-sheen { position: absolute; inset: 0; border-radius: 4.5% / 3.2%; background: linear-gradient(105deg, #fff0 calc(var(--sx, 30%) - 18%), #ffffff2e var(--sx, 30%), #fff0 calc(var(--sx, 30%) + 18%)); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-stage { animation: heroSway 6s ease-in-out infinite; }
  .scr-result.slide-in { animation: slideIn .32s cubic-bezier(.2, 1, .35, 1); }
}
@keyframes heroSway { 50% { transform: translateY(-5px); } }
@keyframes slideIn { from { transform: translateX(22%); opacity: 0; } }
.hero-foot { flex: none; padding: 6px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; }
.big-price { font: var(--ui-dw, 400) calc(46px * var(--ui-fs, 1))/1.08 var(--ui-display, inherit); color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 22px #ffffff55, 0 2px 3px #000a; white-space: nowrap; }
.big-name { margin-top: 2px; font: 700 17px/1.25 var(--ui-text, inherit); color: #f1f4f9; text-align: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The split: Sell in green foil with Vault or Ship beside it, parted by one slanted cut. */
.gm-split { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 14px; }
/* A view with no buttons keeps their space, so the price sits where it does on card detail. */
.gm-split-ghost { height: 62px; visibility: hidden; }
.phone .gm-split .ui-go, .phone .gm-split .ui-chip { min-height: 62px; width: auto; font-size: calc(23px * var(--ui-fs, 1)); gap: 10px; }
.phone .gm-split .ui-go { padding-right: 18px; }
.phone .gm-split .ui-chip { margin-left: -16px; padding-left: 18px; --ui-c: 11px; }
[data-shape=s1] .gm-split .ui-go { --ui-ch: polygon(var(--ui-c) 0, 100% 0, calc(100% - 22px) 100%, var(--ui-c) 100%, 0 calc(100% - var(--ui-c)), 0 var(--ui-c)); }
[data-shape=s1] .gm-split .ui-chip { --ui-ch: polygon(22px 0, calc(100% - var(--ui-c)) 0, 100% var(--ui-c), 100% calc(100% - var(--ui-c)), calc(100% - var(--ui-c)) 100%, 0 100%); }

/* ---------- Bottom sheets ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 30; display: flex; align-items: flex-end; background: #000000ad; }
.sheet-shell { width: 100%; filter: drop-shadow(0 -1.5px 0 #aab6cc) drop-shadow(0 -10px 22px #000c); max-height: 100%; display: flex; }
.sheet { --c: 18px; position: relative; width: 100%; max-height: calc(100cqh - 34px); overflow: hidden auto; scrollbar-width: none; overscroll-behavior: contain; box-sizing: border-box; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, 0 100%, 0 var(--c)); padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; background: linear-gradient(105deg, #fff0 26%, #ffffff08 44%, #fff0 58%), repeating-linear-gradient(0deg, #ffffff04 0 1px, #0000 1px 2px), linear-gradient(#232a3a, #151a25 140px, #0d1018); color: #fff; }
.sheet > * { flex: none; }
.sheet.rise { animation: rise .24s cubic-bezier(.2, 1, .35, 1); }
@keyframes rise { from { transform: translateY(46px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet.rise { animation: none; } }
.sheet-grab { align-self: stretch; height: 40px; margin: -12px 0 -22px; padding-top: 12px; display: flex; justify-content: center; touch-action: none; cursor: grab; }
.sheet-grab::before { content: ""; width: 44px; height: 4px; background: #7d879a; clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, calc(100% - 2px) 100%, 2px 100%, 0 2px); }
.sheet > .gm-ico { position: absolute; top: 12px; right: 12px; z-index: 2; }
.sheet-title { margin: 6px 44px 0 0; font: var(--ui-dw, 400) calc(23px * var(--ui-fs, 1))/1.15 var(--ui-display, inherit); word-spacing: var(--ui-ws, 0); color: #fff; }
.sheet-sub { margin: 0; font: 600 14px/1.35 var(--ui-text, inherit); color: var(--soft); }
.sheet-h { margin: 10px 0 0; padding-bottom: 8px; font: var(--ui-dw, 400) calc(19px * var(--ui-fs, 1))/1.1 var(--ui-display, inherit); word-spacing: var(--ui-ws, 0); border-bottom: 1.5px solid #ffffff22; }
.gm-grade { align-self: flex-start; display: inline-block; padding: 7px 13px; font: 700 14px/1 var(--ui-text, inherit); color: #e8ecf3; background: linear-gradient(#566278, #2c3345); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.gm-grade b { color: var(--money); font-weight: 800; }
.facts { display: grid; gap: 12px; }
.fact { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.fact-i { color: #aab3c4; }
.fact-i svg { width: 19px; height: 19px; display: block; margin-top: 1px; }
.fact b { display: block; font: 800 15px/1.25 var(--ui-text, inherit); }
.fact p { margin: 2px 0 0; color: #c0c7d4; font: 600 14px/1.35 var(--ui-text, inherit); }
.value-big { font: var(--ui-dw, 400) calc(34px * var(--ui-fs, 1))/1.05 var(--ui-display, inherit); font-variant-numeric: tabular-nums; }
.value-move { margin: 0; font: 600 13.5px/1.3 var(--ui-text, inherit); color: var(--soft); }
.value-move .up { color: var(--money); }
.value-move .dn { color: #ff8a70; }
.chart { position: relative; margin-inline: -16px; height: 136px; }
.chart svg { display: block; width: 100%; height: 100%; }
.chart-start { position: absolute; left: 6px; bottom: 2px; color: var(--money); font: 700 12px/1 var(--ui-text, inherit); }
.chart-tag { position: absolute; right: 12px; bottom: 2px; color: var(--dim); font: 700 11.5px/1 var(--ui-text, inherit); }
.bb-list { display: grid; gap: 10px; max-height: 44cqh; overflow: hidden auto; scrollbar-width: none; }
.bb-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.bb-thumb { display: flex; justify-content: center; height: 78px; width: 56px; }
.bb-text { display: grid; min-width: 0; }
.bb-text b { font: 800 15.5px/1.2 var(--ui-text, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-text span { color: var(--soft); font: 600 13px/1.3 var(--ui-text, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-val { color: var(--money); font: var(--ui-dw, 400) calc(15px * var(--ui-fs, 1))/1 var(--ui-display, inherit); font-variant-numeric: tabular-nums; }
.bb-sum { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1.5px solid #ffffff1f; font: 800 15px/1.2 var(--ui-text, inherit); }
.bb-sum b { color: var(--money); font: var(--ui-dw, 400) calc(17px * var(--ui-fs, 1))/1 var(--ui-display, inherit); }
.consent { margin: 0; text-align: center; color: var(--dim); font: 600 12.5px/1.4 var(--ui-text, inherit); }
.consent b { color: #dfe4ec; }
.gm-toggle { display: flex; align-items: center; gap: 10px; color: #c6cdd9; font: 700 14px/1.2 var(--ui-text, inherit); cursor: pointer; }
.gm-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gm-toggle i { flex: none; position: relative; width: 44px; height: 24px; background: linear-gradient(#475267, #333b4e); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); transition: background .16s; }
.gm-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: linear-gradient(#f1f5fb, #8d98ae); clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); transition: transform .16s; }
.gm-toggle input:checked + i { background: linear-gradient(#0f8f5e, #16b877); }
.gm-toggle input:checked + i::after { transform: translateX(20px); }
.gm-toggle input:focus-visible + i { outline: 3px solid #fff; outline-offset: 2px; }
.gm-toggle-wide { padding: 15px 16px; justify-content: space-between; flex-direction: row-reverse; }
.gm-toggle-wide span { flex: 1 1 auto; }

/* ---------- Collection ---------- */
.pill-row { display: flex; gap: 8px; margin: 2px 0 8px; }
.phone .gm-pill { flex: 0 0 auto; min-height: 38px; padding-inline: 18px; font-size: calc(15px * var(--ui-fs, 1)); }
.phone .pill-row-even .gm-pill { flex: 1 1 0; padding-inline: 4px; }
/* The pill not chosen sits back, so the chosen one reads on any pack's colour, silver included. */
.ui-chip.is-off { --ui-rim: linear-gradient(#7c879e, #454e62 50%, #626d84); --ui-face: linear-gradient(105deg, #fff0 30%, #ffffff10 46%, #fff0 60%), repeating-linear-gradient(0deg, #ffffff06 0 1px, #0000 1px 2px), linear-gradient(#3a4358, #252c3c 49%, #1b2130 50%, #2b3346); color: #c5ccd8; }
.tool-row { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 0 6px; border-bottom: 1.5px solid #ffffff1c; }
.tool-left { position: relative; min-width: 0; }
.tool-right { display: flex; align-items: center; gap: 4px; }
.gm-menu { position: absolute; z-index: 8; top: calc(100% + 4px); left: 0; min-width: 210px; display: grid; padding: 4px; filter: drop-shadow(0 8px 16px #000c); background: linear-gradient(#566278, #2a3142); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.gm-menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 0; background: none; color: #fff; font: 700 14px/1.2 var(--ui-text, inherit); text-align: left; cursor: pointer; }
.gm-menu button[aria-pressed="true"] { color: var(--money); }
.gm-menu button + button { border-top: 1px solid #ffffff1f; }
.info-7d { margin: 10px 0 0; color: #c5ccd8; font: 600 13.5px/1.35 var(--ui-text, inherit); }
.foot-7d { margin: 6px 0 0; color: var(--dim); font: 600 12px/1.35 var(--ui-text, inherit); }
.group-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 10px; }
.group-name { display: inline-flex; align-items: center; gap: 8px; font: var(--ui-dw, 400) calc(20px * var(--ui-fs, 1))/1 var(--ui-display, inherit); }
.group-name svg { width: 22px; height: 22px; display: block; }
.group-count { color: var(--soft); font: 700 13px/1 var(--ui-text, inherit); }
.tile-owned { padding-bottom: 10px; }
.tile-owned .tile-name { padding-top: 9px; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-right: 7px; }
.tile-foot .tile-val { padding-top: 3px; min-width: 0; }
.gm-timer { position: absolute; z-index: 3; top: -3px; right: -3px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; font: 700 11.5px/1 var(--ui-text, inherit); font-variant-numeric: tabular-nums; color: #eef1f6; white-space: nowrap; background: linear-gradient(#3f4960, #1b202d); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.gm-timer svg { width: 12px; height: 12px; display: block; }
.sel-mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; color: #fff; background: linear-gradient(#59647c, #252b3a); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.sel-mark svg { width: 15px; height: 15px; display: block; }
.sel-mark.is-on { background: linear-gradient(#5ff2d6, #14a98c); color: #03231c; }
.is-sel::before { background: linear-gradient(#b5fff0, var(--teal) 30%, #118c74 62%, #6ff0d8) !important; }
.row-card { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px 14px 10px 12px; min-height: 92px; }
.row-card > .gm-timer { top: -3px; right: -2px; }
.row-card:has(> .sel-mark) { grid-template-columns: 24px 50px minmax(0, 1fr) auto; }
.row-thumb { display: flex; justify-content: center; height: 70px; width: 50px; }
.row-text { display: grid; gap: 1px; min-width: 0; }
.row-text b { font: 800 14.5px/1.2 var(--ui-text, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-text span { color: var(--soft); font: 600 12.5px/1.3 var(--ui-text, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-text .row-grade { color: #e3e7ee; }
.row-val { color: var(--money); font: var(--ui-dw, 400) calc(16px * var(--ui-fs, 1))/1 var(--ui-display, inherit); font-variant-numeric: tabular-nums; padding-top: 14px; }
.empty-wrap { display: flex; flex-direction: column; height: 100%; min-height: 420px; }
.empty { flex: 1 1 auto; display: grid; justify-items: center; align-content: center; gap: 18px; padding-bottom: 6cqh; }
.empty p { margin: 0; color: #c5ccd8; font: 600 14.5px/1.3 var(--ui-text, inherit); }
.empty-fan { position: relative; width: 190px; height: 170px; }
.empty-fan img { position: absolute; left: 50%; top: 0; width: 112px; height: auto; margin-left: -56px; border-radius: 6px; opacity: .3; filter: brightness(.7); box-shadow: 0 8px 18px #000a; }
.empty-fan img:nth-child(1) { transform: translateX(-34px) rotate(-11deg); }
.empty-fan img:nth-child(2) { transform: translateX(-8px) rotate(-3deg); }
.empty-fan img:nth-child(3) { transform: translateX(22px) rotate(7deg); opacity: .42; }
.empty-note { flex: none; margin: 0 6px; text-align: center; color: var(--soft); font: 600 13.5px/1.4 var(--ui-text, inherit); }
.empty-note b { color: #fff; font-weight: 800; }
.tray { position: absolute; left: 8px; right: 8px; bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; filter: drop-shadow(0 -4px 14px #000c); }
.tray-text { display: grid; gap: 3px; min-width: 0; }
.tray-head b { font: var(--ui-dw, 400) calc(17px * var(--ui-fs, 1))/1.1 var(--ui-display, inherit); }
.tray-count { color: #c5ccd8; font: 700 13.5px/1.2 var(--ui-text, inherit); }
.tray-count b { color: #fff; }
.tray-sum { color: #c5ccd8; font: 700 12.5px/1.25 var(--ui-text, inherit); }
.tray-sum b { color: var(--money); font-weight: 800; white-space: nowrap; }
.tray-side { flex: none; display: grid; justify-items: end; gap: 4px; }
.phone .gm-tray-btn { min-height: 42px; padding-inline: 20px; font-size: calc(17px * var(--ui-fs, 1)); width: auto; flex: none; }
.phone .gm-fab { position: absolute; right: 12px; bottom: 10px; width: 58px; min-height: 58px; padding: 0; --ui-c: 14px; }
.gm-fab svg { width: 27px; height: 27px; display: block; position: relative; filter: drop-shadow(0 1px 1px #0009); }

/* ---------- Ship ---------- */
.stepper { flex: none; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 4px var(--gutter) 10px; color: var(--dim); font: 700 14px/1 var(--ui-text, inherit); }
.step { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.step svg { width: 14px; height: 14px; display: block; color: var(--money); }
.step.is-now { color: #fff; }
.step.is-done { color: #aeb6c4; }
.step-arrow svg { width: 15px; height: 15px; display: block; }
.ship-h { margin: 12px 0 12px; font: var(--ui-dw, 400) calc(20px * var(--ui-fs, 1))/1.15 var(--ui-display, inherit); word-spacing: var(--ui-ws, 0); text-align: center; }
.add-new { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 58px; padding: 12px; font: 700 15px/1 var(--ui-text, inherit); margin-top: 10px; }
.add-new svg { width: 17px; height: 17px; display: block; }
.addr-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; margin-bottom: 8px; font: 600 14px/1.4 var(--ui-text, inherit); color: #e7ebf2; }
.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; background: linear-gradient(#5ff2d6, #14a98c); color: #03231c; clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.tick svg { width: 15px; height: 15px; display: block; }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.opt-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.opt-text b { font: 800 15.5px/1.2 var(--ui-text, inherit); }
.opt-text span { color: var(--soft); font: 600 13px/1.3 var(--ui-text, inherit); }
.opt-right { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--ui-text, inherit); color: #dfe4ec; }
.pay-mark { flex: none; display: grid; place-items: center; width: 42px; height: 42px; background: linear-gradient(#2f3749, #12161f); clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.pay-mark img { width: 34px; height: 34px; display: block; }
.leader { display: flex; align-items: baseline; gap: 6px; padding: 7px 0; color: #c0c7d4; font: 700 14.5px/1.2 var(--ui-text, inherit); }
.leader i { flex: 1 1 auto; border-bottom: 1.5px dotted #ffffff30; transform: translateY(-3px); min-width: 12px; }
.leader b { color: #e8ecf3; font-variant-numeric: tabular-nums; font-weight: 800; }
.leader.is-total { color: #fff; }
.chip-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; }
.ship-sub { margin: 16px 0 4px; font: var(--ui-dw, 400) calc(16px * var(--ui-fs, 1))/1.1 var(--ui-display, inherit); }
.ship-val { margin: 0 0 10px; padding-bottom: 12px; border-bottom: 1.5px solid #ffffff1c; color: #c5ccd8; font: 600 14px/1.4 var(--ui-text, inherit); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding-top: 6px; }
.field { display: block; position: relative; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field input { box-sizing: border-box; display: block; width: 100%; height: 50px; padding: 0 14px; border: 0; color: #fff; font: 700 16px/1 var(--ui-text, inherit); background: linear-gradient(#0a0d14, #161b26); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); outline: 0; user-select: text; -webkit-user-select: text; }
.field::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#7e8aa2, #3d4557); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px, 8px 0, 8.6px 1.5px, 1.5px 8.6px, 1.5px calc(100% - 8.6px), 8.6px calc(100% - 1.5px), calc(100% - 8.6px) calc(100% - 1.5px), calc(100% - 1.5px) calc(100% - 8.6px), calc(100% - 1.5px) 8.6px, calc(100% - 8.6px) 1.5px, 8.6px 1.5px); }
.field:focus-within::after { background: linear-gradient(#fff, #9fb0cc); }
.field input::placeholder { color: #828c9e; font-weight: 600; }
.code-field { margin-top: 2px; }

/* ---------- What's Inside ---------- */
.inside-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.inside-pack { width: 62px; height: auto; flex: none; transform: rotate(-7deg); filter: drop-shadow(0 6px 10px #000b); }
.inside-kicker { margin: 0; color: #dfe4ec; font: 700 14.5px/1.2 var(--ui-text, inherit); }
.inside-head .pg-title { margin: 0; }
.block-h { margin: 10px 0 6px; font: 800 16px/1.2 var(--ui-text, inherit); }
.body-text { margin: 0; color: #c5ccd8; font: 600 14px/1.42 var(--ui-text, inherit); }
.sec-live { display: flex; align-items: center; gap: 10px; }
.live-dot { width: 10px; height: 10px; flex: none; background: var(--money); clip-path: polygon(3px 0, 7px 0, 100% 3px, 100% 7px, 7px 100%, 3px 100%, 0 7px, 0 3px); }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: liveDot 1.6s ease-in-out infinite; } }
@keyframes liveDot { 50% { opacity: .35; } }
.hit { flex: 0 0 74cqw; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 11px; padding: 11px 12px; scroll-snap-align: start; }
.hit-thumb { display: flex; justify-content: center; height: 86px; width: 58px; align-self: center; }
.hit-text { display: grid; gap: 1px; min-width: 0; }
.hit-val { color: var(--money); font: var(--ui-dw, 400) calc(17px * var(--ui-fs, 1))/1.15 var(--ui-display, inherit); font-variant-numeric: tabular-nums; }
.hit-name { font: 800 14px/1.2 var(--ui-text, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit-set { color: var(--soft); font: 600 12.5px/1.25 var(--ui-text, inherit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; color: #dfe4ec; font: 700 12px/1 var(--ui-text, inherit); }
.hit-meta .js-ago { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.hit-meta em { font-style: normal; font-variant-numeric: tabular-nums; }
.hit-meta svg { width: 12px; height: 12px; display: block; }
.hit-style { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: #dfe4ec; }

/* ---------- Pack style ---------- */
.style-head { display: flex; gap: 14px; align-items: center; margin-right: 34px; min-height: 76px; }
.style-pack { width: 50px; height: auto; flex: none; transform: rotate(-7deg); filter: drop-shadow(0 5px 8px #000b); }
.style-head .sheet-title { margin: 0 0 2px; }
.rule-title { display: flex; align-items: center; gap: 12px; margin-top: 2px; color: #fff; font: 800 14.5px/1.2 var(--ui-text, inherit); white-space: nowrap; }
.rule-title::before, .rule-title::after { content: ""; flex: 1 1 auto; height: 1.5px; background: #ffffff24; }
.odds-h { margin: 2px 0 0; font: 800 14.5px/1.2 var(--ui-text, inherit); color: #e7ebf2; }
.odds { display: grid; grid-template-columns: max-content minmax(0, 1fr) 48px; align-items: center; gap: 6px 8px; }
.odds-row { display: contents; }
.odds-range { text-align: right; color: #eef1f6; font: 700 12.5px/1 var(--ui-text, inherit); font-variant-numeric: tabular-nums; white-space: nowrap; }
.odds-bar { display: block; height: 24px; background: #0a0d14; box-shadow: inset 0 0 0 1px #ffffff14; }
.odds-bar i { display: block; height: 100%; background: linear-gradient(105deg, #fff0 30%, #ffffff50 48%, #fff0 66%), linear-gradient(color-mix(in oklab, var(--tier) 62%, #fff), var(--tier) 42%, color-mix(in oklab, var(--tier) 72%, #000)); box-shadow: inset 0 1px #ffffff66; }
.odds-pct { color: #eef1f6; font: 800 13px/1 var(--ui-text, inherit); font-variant-numeric: tabular-nums; text-align: left; }
.odds-second { display: grid; grid-template-columns: 1fr auto 48px; gap: 8px; align-items: center; padding: 8px 0 0; border-top: 1px solid #ffffff1c; color: #c5ccd8; font: 700 12.5px/1.2 var(--ui-text, inherit); }
.odds-second b { color: #eef1f6; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.odds-second em { color: #eef1f6; font-style: normal; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.minmax { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 4px 0; flex-wrap: nowrap; }
.minmax b { font: var(--ui-dw, 400) calc(21px * var(--ui-fs, 1))/1 var(--ui-display, inherit); font-variant-numeric: tabular-nums; white-space: nowrap; }
.minmax-l { color: var(--soft); font: 700 12.5px/1.1 var(--ui-text, inherit); white-space: nowrap; }
.minmax-dots { display: inline-flex; gap: 3px; align-items: center; }
.minmax-dots i { width: 3px; height: 3px; background: #aab3c4; }
.minmax-dots i:first-child { width: 7px; height: 7px; background: #cfd6e2; }
.minmax-dots i:last-child { width: 7px; height: 7px; background: #ffc214; box-shadow: 0 0 6px #ffc214; }

/* ---------- The Cash Out keypad ---------- */
.bal-pill { align-self: center; justify-self: center; padding: 8px 15px; margin-top: 2px; background: linear-gradient(#566278, #2c3345); color: #eef1f6; font: 400 13px/1 var(--ui-text, inherit); font-variant-numeric: tabular-nums; clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px); width: max-content; }
.bal-pill b { font-weight: 800; }
.dep-spring { flex: 1 1 0 !important; min-height: 0; }
.dep-big { text-align: center; color: #5f6878; font: var(--ui-dw, 400) calc(70px * var(--ui-fs, 1))/1.05 var(--ui-display, inherit); font-variant-numeric: tabular-nums; word-spacing: 0; }
.dep-big.is-live { color: #fff; text-shadow: 0 0 30px #ffffff55; }
.dep-big-m { font-size: calc(58px * var(--ui-fs, 1)); }
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.phone .ui-key { min-height: clamp(42px, 6.3cqh, 54px); font-size: calc(24px * var(--ui-fs, 1)); }
.ui-key svg { display: block; position: relative; }

/* ---------- Add Money: Rips' own sheet, no foil ---------- */
.sheet-wrap:has(> .sheet-shell > .sheet-deposit) { background: #000000e0; }
.sheet-shell:has(> .sheet-deposit) { filter: none; }
.sheet-deposit { --pad-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif; --pad-gut: 22px; height: calc(100cqh - max(26px, env(safe-area-inset-top, 0px))); max-height: none; overflow: hidden; gap: 0; clip-path: none; border-radius: 24px 24px 0 0; padding: 45px var(--pad-gut) calc(20px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(#171717, #0b0b0b 34%, #090909); font-family: var(--pad-font); }
.sheet-deposit button { font-family: var(--pad-font); touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.sheet-deposit button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.dep-x { position: absolute; top: 18px; right: 22px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #2d2d2d; color: #fff; }
.dep-x svg { display: block; width: 17px; height: 17px; stroke-width: 2.6; }
.dep-bal { align-self: center; display: flex; align-items: center; gap: 6px; height: 27px; padding: 0 12px 0 5px; border-radius: 99px; background: #1f1f1f; color: #8a8a8a; font: 500 13px/1 var(--pad-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dep-coin { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #5e5e5e; color: #141414; font: 800 11.5px/1 var(--pad-font); font-style: normal; }
.sheet-deposit .dep-big { position: relative; isolation: isolate; color: #4b4b4b; font: 700 clamp(56px, 9.1cqh, 77px)/1.1 var(--pad-font); letter-spacing: -.012em; text-shadow: none; transition: color .15s; }
.sheet-deposit .dep-big::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 300px; height: 300px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, #ffffff2c, #ffffff0c 55%, #fff0); opacity: 0; transition: opacity .2s; pointer-events: none; }
.sheet-deposit .dep-big.is-live { color: #fff; }
.sheet-deposit .dep-big.is-live::before { opacity: 1; }
.dep-method { position: relative; align-self: center; }
.dep-sel { display: flex; align-items: center; gap: 8px; height: 37px; padding: 0 14px; border: 0; border-radius: 99px; background: #252525; color: #fff; font: 500 16px/1 var(--pad-font); white-space: nowrap; transition: opacity .12s; }
.dep-sel[aria-expanded="true"] { opacity: .5; }
.dep-caret { display: block; width: 9px; height: 5.5px; flex: none; color: #dcdcdc; }
.mk { display: block; flex: none; width: 19px; height: 19px; }
.mk svg { display: block; width: 100%; height: 100%; }
.dep-menu { position: absolute; z-index: 8; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: 228px; overflow: hidden; border-radius: 14px; background: #252525; box-shadow: 0 12px 30px #000c; }
.dep-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; padding: 0 16px; border: 0; background: none; color: #ececec; font: 400 16px/1 var(--pad-font); text-align: left; }
.dep-menu button + button { border-top: 1px solid #333; }
.dep-menu button:active { background: #303030; }
.dep-menu .mk { width: 21px; height: 21px; }
.dep-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.dep-chips-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
.dep-chip { height: 35px; padding: 0; border: 0; border-radius: 99px; background: #212121; color: #ececec; font: 600 15px/1 var(--pad-font); font-variant-numeric: tabular-nums; }
.dep-chip:active { background: #333; }
.dep-chip.is-on { background: #fff; color: #0b0b0b; }
.dep-note { padding: 14px 16px; border-radius: 14px; background: #1b1b1b; color: #b4b4b4; font: 400 14px/1.4 var(--pad-font); }
.dep-note p { margin: 0 0 8px; }
.dep-note p:last-child { margin: 0; }
.pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 25px calc(var(--pad-gut) * -1) 20px; }
.pad-key { display: grid; place-items: center; height: clamp(44px, 7.1cqh, 60px); padding: 0; border: 0; border-radius: 14px; background: none; color: #fff; font: 700 32px/1 var(--pad-font); font-variant-numeric: tabular-nums; }
.pad-key:active { background: #ffffff14; }
.pad-key svg { display: block; width: 28px; height: 21px; }
.dep-pay { display: flex; align-items: center; justify-content: center; gap: 10px; flex: none; width: 100%; height: 48px; padding: 0 16px; border: 0; border-radius: 99px; background: #fff; color: #0b0b0b; font: 500 17px/1 var(--pad-font); }
.dep-pay:not(:disabled):active { background: #dcdcdc; }
.dep-pay:disabled { background: #6d6d6d; color: #262626; cursor: default; }
.dep-pay:disabled .mk { filter: grayscale(1) brightness(.5); }
.dep-pay .mk { width: 20px; height: 20px; }
.logo { width: 20px; height: 20px; display: inline-grid; place-items: center; font: 800 12.5px/1 var(--ui-text, sans-serif); flex: none; color: #fff; text-shadow: none; clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); position: relative; }
.logo svg { width: 76%; height: 76%; display: block; }
.logo-paypal { background: #fff; color: #1a3e8f; }
.logo-venmo { background: #2f8fe0; }
.logo-line { background: linear-gradient(#3f4960, #1b202d); color: var(--teal); }

/* ---------- Rewards ---------- */
.strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 13px 15px; margin-bottom: 10px; }
.strip-text { display: grid; gap: 3px; min-width: 0; }
.strip-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 800 15.5px/1.2 var(--ui-text, inherit); }
.strip-sub { color: var(--soft); font: 600 13px/1.3 var(--ui-text, inherit); }
.strip-go { color: #aab3c4; flex: none; }
.strip-go svg { width: 19px; height: 19px; display: block; }
.free { padding: 3px 7px; background: linear-gradient(#5ee8a6, #17b070); color: #03261a; font: 800 10.5px/1 var(--ui-text, inherit); letter-spacing: .04em; clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.refer { padding: 14px; display: grid; gap: 11px; margin-bottom: 10px; }
.refer::after { background: linear-gradient(105deg, #fff0 26%, #ffffff0c 44%, #fff0 58%), linear-gradient(150deg, color-mix(in oklab, var(--pack) 26%, #1a2030), #12161f 70%); }
.refer-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 13px; align-items: center; }
.refer-pack { width: 96px; height: auto; display: block; filter: drop-shadow(0 6px 10px #000a); }
.refer-copy { display: grid; gap: 8px; }
.refer h3 { margin: 0; font: var(--ui-dw, 400) calc(20px * var(--ui-fs, 1))/1.15 var(--ui-display, inherit); word-spacing: var(--ui-ws, 0); }
.refer p { margin: 0; color: #dfe4ec; font: 600 13.5px/1.35 var(--ui-text, inherit); }
.phone .gm-enter { min-height: 40px; font-size: calc(14.5px * var(--ui-fs, 1)); width: 100%; display: flex; }
.phone .gm-glow { min-height: 46px; font-size: calc(17px * var(--ui-fs, 1)); width: 100%; display: flex; --ui-rim: conic-gradient(from var(--ui-gem, 0deg), #d6ffe9, #0fb868 60deg, #8cffc2 120deg, #078a50 180deg, #52f2a3 240deg, #0a9c5b 300deg, #d6ffe9); filter: drop-shadow(0 0 8px #2bff9e); }
.code-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.code-l { color: var(--soft); font: 600 13px/1 var(--ui-text, inherit); white-space: nowrap; }
.code-row b { font: 800 14.5px/1 var(--ui-text, inherit); letter-spacing: .02em; }
.phone .gm-invite { display: inline-flex; width: auto; margin-left: auto; min-height: 42px; padding-inline: 16px; font-size: calc(16px * var(--ui-fs, 1)); gap: 7px; flex: none; --ui-c: 9px; }
.gm-invite svg { width: 18px; height: 18px; position: relative; display: block; filter: drop-shadow(0 1px 1px #0009); }
.tiercard { padding: 14px; display: grid; gap: 9px; }
.tier-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tier-top:has(.tier-badge) { justify-content: flex-start; gap: 12px; }
.tier-top:has(.tier-badge) .tier-x { margin-left: auto; }
.tier-badge { width: 60px; height: 60px; flex: none; display: block; filter: drop-shadow(0 3px 5px #000a); }
.tier-row span:has(img) { display: grid; justify-items: center; gap: 4px; padding: 7px 0 6px; }
.tier-row span img { display: block; width: 36px; height: 36px; filter: drop-shadow(0 1px 2px #0009); }
.tier-row span.is-ahead img { filter: saturate(.5) brightness(.6); }
.tier-row span.is-on:has(img) { background: linear-gradient(#6c7a93, #39425a); color: #fff; }
.tier-name { font: var(--ui-dw, 400) calc(25px * var(--ui-fs, 1))/1 var(--ui-display, inherit); word-spacing: var(--ui-ws, 0); }
.tier-x { color: var(--soft); font: 700 13.5px/1 var(--ui-text, inherit); white-space: nowrap; }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.stages i { height: 5px; background: #0a0d14; box-shadow: inset 0 0 0 1px #ffffff1c; }
.stages i.is-on { background: linear-gradient(#ffffffa0, var(--money) 40%, #118a58); box-shadow: 0 0 6px #2fe08a66; }
.tier-note { margin: 0; color: var(--soft); font: 600 13px/1.35 var(--ui-text, inherit); }
.tier-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.tier-row span { padding: 6px 0; text-align: center; color: #aeb6c4; font: 700 11.5px/1 var(--ui-text, inherit); background: linear-gradient(#3b4356, #222838); clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); white-space: nowrap; overflow: hidden; }
.tier-row span.is-on { color: #fff; background: linear-gradient(color-mix(in oklab, var(--pack) 56%, #fff), var(--pack) 44%, color-mix(in oklab, var(--pack) 72%, #000)); text-shadow: 0 1px 1px #0009; }
.tier-row span.is-invite { color: #7c8596; }
.sec-rec { margin-top: 18px; }
.rec { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 13px; align-items: center; padding: 14px; margin-bottom: 10px; --kind: #39d98a; }
.rec-week { --kind: #5aa2ff; }
.rec-month { --kind: #2fd3c5; }
.rec-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 5px 8px #000a); }
.rec-drop svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 5px 8px #000a); }
.mystery { --c: 9px; --m-ch: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); position: relative; display: block; aspect-ratio: 2 / 3; clip-path: var(--m-ch); background: linear-gradient(#97a3bb, #454e62 28%, #262c3b 62%, #626d84); }
.mystery::before { content: ""; position: absolute; inset: 1.5px; clip-path: var(--m-ch); background: linear-gradient(105deg, #fff0 26%, #ffffff14 44%, #fff0 58%), linear-gradient(#2b3346, #1a1f2d 47%, #131722 49%, #1d2332); }
/* The fine diamonds around the edge only: the middle stays blank, so the question mark has it to itself. */
.rec-art .mystery img { position: absolute; inset: 1.5px; width: calc(100% - 3px); height: calc(100% - 3px); object-fit: cover; opacity: .22; mix-blend-mode: screen; filter: none; -webkit-mask-image: radial-gradient(closest-side, #0000 62%, #000 94%); mask-image: radial-gradient(closest-side, #0000 62%, #000 94%); }
.mystery b { position: absolute; inset: 0; display: grid; place-items: center; color: #ffb23e; font: 400 44px/1 var(--ui-display, inherit); text-shadow: 0 2px 3px #000; }
.rec-text { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.rec-pad { padding-top: 16px; }
.kind { color: var(--kind); font: 800 11.5px/1 var(--ui-text, inherit); letter-spacing: .1em; }
.rec h3 { margin: 0; font: var(--ui-dw, 400) calc(18px * var(--ui-fs, 1))/1.15 var(--ui-display, inherit); word-spacing: var(--ui-ws, 0); }
.rec p { margin: 0; color: var(--soft); font: 600 13px/1.35 var(--ui-text, inherit); }
.corner { position: absolute; top: 8px; right: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; color: #eef1f6; font: 700 11.5px/1 var(--ui-text, inherit); white-space: nowrap; background: linear-gradient(#3f4960, #1b202d); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.corner svg { width: 12px; height: 12px; display: block; }
.phone .ui-claim { min-height: 40px; padding-inline: 16px; font-size: calc(15.5px * var(--ui-fs, 1)); margin-top: 5px; }
.meter-wrap { position: relative; display: flex; align-items: center; gap: 7px; width: 100%; margin-top: 3px; }
.meter { position: relative; flex: 1 1 auto; height: 18px; min-width: 0; overflow: hidden; background: #0a0d14; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
.meter::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#ffffff14, #ffffff06); }
.meter i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(105deg, #fff0 30%, #ffffff55 48%, #fff0 66%), linear-gradient(#5ee8a6, #17b070 50%, #0f8f5e); }
.meter b { position: relative; display: block; text-align: center; font: 800 11px/18px var(--ui-text, inherit); font-variant-numeric: tabular-nums; text-shadow: 0 1px 1px #000a; }
.meter-end { flex: none; width: 24px; display: grid; place-items: center; color: #8e98aa; }
.meter-end:empty { display: none; }
.meter-end svg { width: 21px; height: 21px; display: block; }
.meter-end img { width: 24px; height: auto; display: block; }
.meter-cap { font-size: 12px !important; text-align: center; width: 100%; margin-top: 1px !important; }

/* ---------- Account ---------- */
.acct-head { display: grid; justify-items: center; gap: 4px; padding-top: 8px; margin-bottom: 18px; }
.avatar { position: relative; display: block; width: 104px; height: 104px; padding: 0; border: 0; background: none; cursor: pointer; }
.avatar-face { position: absolute; inset: 0; display: grid; place-items: center; color: #dfe6f3; background: conic-gradient(from 210deg, #e5edf9, #6c778f, #c9d4e7, #4b566f, #e5edf9); border-radius: 50%; }
.avatar-face::before { content: ""; position: absolute; inset: 3px; background: linear-gradient(#2b3346, #12161f); border-radius: 50%; }
.avatar-face svg { position: relative; width: 54px; height: 54px; display: block; }
.avatar-face img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover; border-radius: 50%; }
.avatar-pencil { position: absolute; right: -2px; bottom: 2px; display: grid; place-items: center; width: 32px; height: 32px; color: #fff; background: linear-gradient(#6d7a94, #2a3245); border-radius: 50%; }
.avatar-pencil svg { width: 17px; height: 17px; display: block; }
.acct-name { font: var(--ui-dw, 400) calc(21px * var(--ui-fs, 1))/1.15 var(--ui-display, inherit); margin-top: 6px; text-align: center; overflow-wrap: anywhere; }
.acct-joined { color: var(--soft); font: 600 13.5px/1.2 var(--ui-text, inherit); }
.go-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 70px; padding: 12px 16px; margin-bottom: 10px; color: #fff; }
.go-row b { display: block; font: var(--ui-dw, 400) calc(19px * var(--ui-fs, 1))/1.2 var(--ui-display, inherit); word-spacing: var(--ui-ws, 0); color: #fff; }
.go-row span span { display: block; color: var(--soft); font: 600 13px/1.3 var(--ui-text, inherit); }
.go-arrow { color: #aab3c4; flex: none; }
.go-arrow svg { width: 21px; height: 21px; display: block; }
.stat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* A row after the stat boxes (the Partner program row) keeps the same 10px gap the rows above have (owner 2026-11-18). */
.stat-pair + .go-row { margin-top: 10px; }
.stat-big { display: grid; justify-items: center; gap: 5px; padding: 15px 8px; text-align: center; }
.stat-big b { font: var(--ui-dw, 400) calc(24px * var(--ui-fs, 1))/1.1 var(--ui-display, inherit); font-variant-numeric: tabular-nums; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.stat-big > span:last-child { color: var(--soft); font: 700 13px/1.1 var(--ui-text, inherit); }
.stat-ico { display: grid; place-items: center; width: 42px; height: 42px; background: linear-gradient(#2f3749, #12161f); clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 11px, 100% calc(100% - 11px), calc(100% - 11px) 100%, 11px 100%, 0 calc(100% - 11px), 0 11px); }
.stat-ico svg { width: 24px; height: 24px; display: block; }
.stat-gold { color: #ffc65a; }
.stat-green { color: var(--money); }
.plain { display: grid; margin-top: 8px; }
.plain-row { display: block; width: 100%; padding: 13.500px 2px; border: 0; border-bottom: 1px solid #ffffff1c; background: none; color: #d7deea; text-align: left; font: 600 14.5px/1.2 var(--ui-text, inherit); text-decoration: none; cursor: pointer; }
.plain-row:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.version { margin: 14px 0 0; text-align: center; color: var(--dim); font: 600 12.5px/1.2 var(--ui-text, inherit); }
.ex-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.ex-opts .gm-pill { width: 100%; }

/* ---------- Cash Out ---------- */
.cash-sub { margin-top: -6px; }
.methods-cap { margin: 16px 0 8px; text-align: center; color: var(--soft); font: 700 13px/1 var(--ui-text, inherit); }
.methods-row { display: flex; justify-content: center; gap: 22px; margin-bottom: 14px; color: var(--soft); text-align: center; font: 700 12px/1.2 var(--ui-text, inherit); }
.methods-row .logo { display: grid; width: 40px; height: 40px; margin: 0 auto 5px; font-size: 19px; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px); }
.methods-row .logo svg { width: 62%; height: 62%; }
.leader-plain { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; color: #c0c7d4; font: 600 14px/1.2 var(--ui-text, inherit); }
.leader-plain b { color: #fff; font: var(--ui-dw, 400) calc(16px * var(--ui-fs, 1))/1 var(--ui-display, inherit); font-variant-numeric: tabular-nums; }
.dash { border: 0; border-top: 1.5px dashed #ffffff26; margin: 0; }
.cash-none { color: var(--dim); text-align: center; padding-top: 8px; }
.hist { display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin-bottom: 8px; font: 700 14px/1.2 var(--ui-text, inherit); }
.hist-amt { margin-left: auto; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.hist-amt small { display: block; color: #5aa2ff; font: 800 11.5px/1.2 var(--ui-text, inherit); }
.cash-amt { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 0 var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px)); }
.ways { display: grid; gap: 8px; }
.way { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 13px; min-height: 58px; }
.way .logo { width: 30px; height: 30px; font-size: 15px; }
.way-text { display: grid; gap: 1px; min-width: 0; flex: 1 1 auto; }
.way-text b { font: 800 14.5px/1.2 var(--ui-text, inherit); }
.way-text span { color: var(--soft); font: 600 12.5px/1.25 var(--ui-text, inherit); }
.way-time { color: #dfe4ec; font: 700 12px/1.2 var(--ui-text, inherit); white-space: nowrap; }
.way.is-on::before { background: linear-gradient(#b8ffdc, var(--money) 30%, #0f8f5e 62%, #7af2bb); }
.way.is-soon { opacity: .45; cursor: default; }
.warn { margin: 0; text-align: center; color: #ff9d86; font: 700 13px/1.3 var(--ui-text, inherit); }

/* ---------- Forge scene ---------- */
.forge-root { position: absolute; inset: 0; overflow: hidden; background: #03040a; color: #fff; cursor: pointer; }
.forge-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.phone .forge-back { position: absolute; left: 14px; top: 12px; z-index: 2; }
.forge-foot { position: absolute; left: 12px; right: 12px; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; gap: 8px; text-align: center; pointer-events: none; }
.forge-min { color: #c5ccd8; font: 700 13.5px/1.2 var(--ui-text, inherit); }
.forge-min b { color: var(--money); font: 400 15px/1 var(--ui-display, inherit); font-variant-numeric: tabular-nums; }
.forge-tap { min-height: 26px; color: #e8ecf3; font: 700 20px/1.25 var(--ui-text, inherit); letter-spacing: .05em; opacity: 0; transition: opacity .3s; }
.forge-tap.is-show { opacity: .92; }
@media (prefers-reduced-motion: no-preference) { .forge-tap.is-show { animation: tapPulse 1.7s ease-in-out infinite; } }
@keyframes tapPulse { 50% { opacity: .55; } }
.forge-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }

/* ---------- The toast ---------- */
.toast { position: absolute; z-index: 60; left: 10px; right: 10px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 12px 15px; color: #fff; font: 700 14px/1.3 var(--ui-text, inherit); background: linear-gradient(#3d475d, #171c28); filter: drop-shadow(0 6px 12px #000c); clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px); }

/* ---------- The test panel ---------- */
.picks { min-width: 0; display: grid; gap: 20px; font-family: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif; }
.picks h1 { margin: 0; font: 400 26px/1.1 "Russo One", system-ui, sans-serif; text-wrap: balance; }
.picks .note { margin: 6px 0 0; color: var(--soft); max-width: 68ch; }
.picks .mono { font-variant-numeric: tabular-nums; }
.picks fieldset { margin: 0; padding: 0; border: 0; display: grid; min-width: 0; }
.picks legend { padding: 0 0 7px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.opt { padding: 7px 11px; border-radius: 8px; border: 2px solid #3a424e; font: 800 13.5px/1.2 "Exo 2", system-ui, sans-serif; color: var(--ink); background: transparent; cursor: pointer; }
.opt[aria-pressed="true"] { background: var(--ink); color: #101419; border-color: var(--ink); }
.opt:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.readout div { background: var(--panel); border-radius: 8px; padding: 8px 10px; font-size: 13px; color: var(--soft); min-width: 0; }
.readout b { display: block; color: var(--ink); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.notes { margin: 0; padding-left: 18px; color: var(--soft); display: grid; gap: 4px; }
.warn-li { color: #ff9d86; }

/* A short screen keeps every sheet's button in view. */
@container (max-height: 720px) {
  .style-head { min-height: 0; }
  .sheet-style { gap: 6px; }
  .odds { row-gap: 4px; }
  .odds-bar { height: 18px; }
  .sheet-style .consent { font-size: 11.5px; line-height: 1.3; }
  .phone .sheet-style .ui-buy { min-height: 46px; }
  .phone .sheet-style .gm-pill { min-height: 34px; }
  .dep-big { font-size: calc(58px * var(--ui-fs, 1)); }
}

/* The way to the test panel and back, when the panel is below the app. A test control, not part of the app. */
.test-jump, .back-app { display: none; }
.test-jump { position: fixed; left: 50%; top: 18px; z-index: 80; transform: translateX(-50%); isolation: isolate; padding: 3px 11px 22px; border: 0; background: none; color: #eef1f6; font: 800 9.500px/12px "Exo 2", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.test-jump::before { content: ""; position: absolute; z-index: -1; left: 4px; right: 4px; top: 0; height: 18px; background: linear-gradient(#566278, #2c3345); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px)); }

/* ---------- Beside the phone on a desktop, below it on a phone ---------- */
@media (max-width: 860px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .phone { position: relative; top: 0; justify-self: center; max-width: 410px; max-height: 94vh; }
  .test-jump { display: block; }
  .back-app { display: block; justify-self: start; align-self: start; position: sticky; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 2; background: var(--bg); }
}
/* A real phone: full bleed, with the test controls below the app. */
@media (max-width: 560px) {
  .page { display: block; padding: 0 0 40px; max-width: none; }
  .phone { max-width: none; width: 100%; height: 100vh; height: 100dvh; max-height: none; min-height: 560px; border-radius: 0; box-shadow: none; }
  .hud-top, .pg-top, .scr-bar { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .test-jump { top: env(safe-area-inset-top, 0px); }
  /* The notch and the home bar. The tab bar is the same on every tab, Packs included. */
  .phone .ui-tabs { padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px)); }
  .sheet { max-height: calc(100cqh - 34px - env(safe-area-inset-top, 0px)); }
  .phone .forge-back { top: calc(12px + env(safe-area-inset-top, 0px)); }
  .picks { padding: 22px max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
}

/* ---------- The ID check's photo step (live site): the consent line, the icons in the step rows, and the selfie's face oval ---------- */
.id-shot > svg { width: 26px; height: 26px; flex: none; color: #c5ccd8; }
.id-note { margin-top: 16px; color: #dfe4ee; }
.id-cam { position: relative; width: min(100%, 300px); aspect-ratio: 3 / 4; margin: 14px auto 12px; overflow: hidden; border-radius: 22px; background: #05070b; }
.id-cam video, .id-cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.id-oval { position: absolute; inset: 9% 13% 15%; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 600px #05070b8c; pointer-events: none; }
.id-cam.is-shot .id-oval { border-color: var(--money); }
.id-cam-msg { position: absolute; left: 0; right: 0; bottom: 5%; padding: 0 12px; text-align: center; color: #fff; font: 700 14px/1.3 var(--ui-text, inherit); text-shadow: 0 1px 2px #000; }
label.ui-go, label.ui-chip { cursor: pointer; }

/* The Packs / Set Packs tabs under the top bar (owner's pick P1, 2026-11-17). */
.set-tabs { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); display: flex; gap: 3px; padding: 3px; border-radius: 999px; background: rgba(10, 12, 20, .82); box-shadow: 0 0 0 1.5px #c9d1e2, 0 0 0 3px #39425a, 0 4px 10px rgba(0, 0, 0, .5); z-index: 2; font-family: var(--ui-display, inherit); }
.set-tabs[hidden] { display: none; }
.st-btn { all: unset; cursor: pointer; padding: 6px 15px; border-radius: 999px; color: #dfe4ec; font-size: calc(12.5px * var(--ui-fs, 1)); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transition: background .18s, color .18s; }
.st-btn i { font-style: normal; opacity: .75; margin-left: 2px; }
.st-btn.on { background: var(--pack, #c8383b); color: #0b0d14; text-shadow: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }
.st-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.phone.booting .set-tabs { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) { .phone.opening .set-tabs { animation: hudDrop .44s cubic-bezier(.2, 1.25, .4, 1) 1s both; } }
@supports (top: env(safe-area-inset-top)) { .live .set-tabs { top: calc(60px + env(safe-area-inset-top, 0px)); } }
.ui-stat.is-disabled { cursor: pointer; }
.ui-stat.is-disabled .ui-more { display: none; }
