/* WaxRoom room: the espresso room, amber as light, each pack lit in its own colour.
   One display face: a system condensed stack (no font is fetched from anyone at runtime). */
:root {
  color-scheme: dark;
  --bg: #120E0A; --panel: #1B1510; --card: #211A12; --edge: #34281B; --edge2: #4a3a28;
  --text: #F4EEE4; --dim: #A5988A; --amber: #F0A83C; --copper: #C96F2E; --teal: #3CE3C0;
  --cream: #F5E6B8; --danger: #E35C4C;
  --c: var(--amber); --c2: var(--copper); --glow: #FFD27A;
  --display: "Bahnschrift SemiCondensed", "Bahnschrift", "Roboto Condensed", "Arial Narrow", "Helvetica Neue Condensed", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r: 14px;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg) radial-gradient(120% 60% at 50% -10%, #2a1a0b 0%, transparent 60%) no-repeat; color: var(--text); font: 16px/1.5 var(--body); min-height: 100vh; min-height: 100dvh; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
/* The hidden attribute always hides: a component's own display (the hero slides are grid) must not override it. */
[hidden] { display: none !important; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
.dim { color: var(--dim); }
.teal { color: var(--teal); }
.cream { color: var(--cream); }
.center { text-align: center; }
.right { text-align: right; }
.fine { color: var(--dim); font-size: 13px; line-height: 1.45; margin: 8px 0; }
/* Small links inside running text keep their line but get a finger-sized hit area. */
.fine a, .kicker a { display: inline-block; padding: 13px 8px; margin: -13px -8px; }
.fine.danger { color: var(--danger); }
b, .price, .loud, .tile-price, .tile-top b { font-variant-numeric: tabular-nums; }

/* ---- Frame ------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); background: rgba(18, 14, 10, .86); backdrop-filter: blur(10px); border-bottom: 1px solid #2a2016; }
.top-in { max-width: 1200px; margin: 0 auto; padding: 6px max(16px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: .4px; text-transform: uppercase; }
.logo-mark { fill: var(--amber); }
.account { display: flex; align-items: center; gap: 8px; }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: #241a10; border: 1px solid var(--edge2); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.pill-btn.balance { color: var(--teal); border-color: #2c5a50; font-variant-numeric: tabular-nums; }
.pill-btn.ghosty { background: transparent; }
.link { background: none; border: 0; color: var(--dim); font-size: 14px; cursor: pointer; padding: 6px 4px; min-height: 44px; min-width: 44px; }
main { max-width: 1200px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); min-height: 60vh; overflow-x: clip; }
main.arrive > * { animation: rise .32s var(--ease) both; }
.foot { max-width: 1200px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); border-top: 1px solid #2a2016; color: var(--dim); font-size: 13px; text-align: center; }
.foot a { color: var(--dim); display: inline-block; min-height: 44px; min-width: 44px; padding: 12px 4px; text-align: center; }
.foot p { margin: 8px 0; }
/* The links wrap as whole words with even gaps: no separator dot left hanging at a line end. */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 10px; }
.section-title { font: 700 22px/1.15 var(--display); letter-spacing: .2px; margin: 28px 0 12px; }
.section-title.small { font-size: 16px; margin: 14px 0 8px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
.eyebrow { margin: 28px 0 -16px; color: var(--amber); font: 700 13px/1 var(--display); letter-spacing: 1.6px; text-transform: uppercase; }
.kicker { margin: 0 0 4px; color: var(--dim); font-size: 13px; letter-spacing: .4px; }
.kicker a { color: var(--dim); }
.pack-name { font: 800 34px/1.02 var(--display); text-transform: uppercase; letter-spacing: .3px; margin: 0 0 6px; }
.blurb { color: #E6DCCF; margin: 0 0 10px; }
.empty { text-align: center; padding: 80px 16px; }
.empty .cta { margin-top: 12px; }

/* ---- Light: every pack stands in its own theme colour ------------------------------------ */
.light { position: absolute; inset: 6% -18% 10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 46%, transparent), color-mix(in srgb, var(--c) 12%, transparent) 60%, transparent 100%); filter: blur(6px); pointer-events: none; }
.floor { position: absolute; left: 12%; right: 12%; bottom: 2%; height: 16%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 40%, transparent), transparent); filter: blur(4px); pointer-events: none; }
/* Feather the render's dark corners into the room: never a photo in a box. */
.pack-img { position: relative; height: auto; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
.stage-img, .vt-pack { view-transition-name: pack-art; }

/* ---- Hero -------------------------------------------------------------------------------- */
.hero { position: relative; margin: 8px 0 4px; }
.hero-slide { position: relative; display: grid; grid-template-columns: 1fr; gap: 6px; align-items: center; padding: 8px 0 4px; }
.hero-stage { position: relative; display: grid; place-items: center; height: 300px; }
.hero-art { width: 168px; filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
.hero-copy { text-align: center; }
.hero-copy .blurb { max-width: 44ch; margin: 0 auto 10px; }
.hero-top { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0 14px; }
.hero-fact { display: grid; text-align: left; font-size: 13px; line-height: 1.3; }
.loud { font: 800 30px/1.05 var(--display); color: var(--c); }
.hero-controls { display: flex; gap: 4px; align-items: center; justify-content: center; margin-top: 8px; }
.hero-dots { display: flex; gap: 0; justify-content: center; }
.hero-pause { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.hero-pause::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid var(--edge2); }
.hero-pause span { width: 8px; height: 10px; border-left: 3px solid var(--amber); border-right: 3px solid var(--amber); box-sizing: border-box; }
.hero-pause[data-state="paused"] span { width: 0; height: 0; border: 0; border-left: 9px solid var(--amber); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.hero-pause:focus-visible, .hero-dots button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.hero-dots button { flex: 0 1 44px; min-width: 28px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--edge2); transition: width .2s var(--ease); }
.hero-dots button[aria-selected="true"]::before { background: var(--amber); width: 18px; border-radius: 4px; }

/* ---- CTA --------------------------------------------------------------------------------- */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--amber); color: #1a1006; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(240,168,60,.65); transition: transform .15s var(--ease), box-shadow .2s; }
/* Hover only where there is a pointer that hovers: on a phone a tapped control would stay "hovered". */
@media (hover: hover) { .cta:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(240,168,60,.8); } }
.cta:active { transform: scale(.98); }
.cta:disabled { background: #3a2e22; color: var(--dim); box-shadow: none; cursor: not-allowed; transform: none; }
.cta.big { width: 100%; min-height: 54px; font-size: 17px; }
.cta.small { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.ghost { display: block; width: 100%; min-height: 48px; text-align: center; background: transparent; border: 1px solid var(--edge2); color: var(--text); border-radius: 999px; padding: 12px 18px; margin-top: 10px; font-weight: 700; cursor: pointer; text-decoration: none; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--edge2); font-size: 12px; font-weight: 700; color: var(--dim); white-space: nowrap; }
.pill.amber { color: #1a1006; background: var(--amber); border-color: var(--amber); font-size: 15px; }
.pill.teal { color: var(--teal); border-color: #2c5a50; }
.badge { display: inline-block; font: 800 12px/1 var(--display); letter-spacing: 1.2px; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: #2a2016; color: var(--dim); }
.badge.top { background: var(--cream); color: #2a1a06; }

/* ---- Chips ------------------------------------------------------------------------------- */
.chips { display: flex; gap: 8px; margin: 20px 0 0; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button, .chip { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--edge2); background: transparent; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.chips button[aria-pressed="true"], .chip.on { background: #2a1d0f; border-color: var(--c); color: var(--text); box-shadow: inset 0 0 0 1px var(--c); }
main[data-filter="sports"] [data-cat="pokemon"], main[data-filter="pokemon"] [data-cat="sports"] { display: none; }

/* ---- Tiles ------------------------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: grid; grid-template-rows: auto auto 1fr; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--card)) 0%, var(--card) 55%); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--edge)); border-radius: var(--r); padding: 10px 10px 12px; text-decoration: none; overflow: hidden; transition: transform .25s var(--ease), border-color .25s; min-width: 0; }
@media (hover: hover) { .tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 55%, var(--edge)); } }
.tile-stage { position: relative; display: grid; place-items: center; height: 168px; }
.tile-art { width: 92px; filter: drop-shadow(0 14px 16px rgba(0,0,0,.6)); transition: transform .3s var(--ease); }
@media (hover: hover) { .tile:hover .tile-art { transform: translateY(-3px) scale(1.02); } }
.fan { position: relative; display: flex; justify-content: center; height: 64px; margin-top: -26px; }
.fan-card { width: 40px; height: 56px; border-radius: 4px; object-fit: cover; box-shadow: 0 6px 14px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.08); background: #2a2016; }
.fan .fan-card:nth-child(1) { transform: rotate(-9deg) translate(10px, 5px); z-index: 1; }
.fan .fan-card:nth-child(2) { transform: translateY(-3px); z-index: 2; }
.fan .fan-card:nth-child(3) { transform: rotate(9deg) translate(-10px, 5px); z-index: 1; }
.fan-lg .fan-card { width: 56px; height: 78px; }
.fan-lg { height: 88px; margin: 0; }
.tile-body { display: grid; gap: 2px; text-align: center; }
.tile-name { font: 800 16px/1.1 var(--display); text-transform: uppercase; letter-spacing: .3px; overflow-wrap: anywhere; }
.tile-top { font-size: 12.5px; color: var(--dim); }
.tile-top b { color: var(--c); }
.tile-price { font: 800 19px/1.1 var(--display); margin-top: 4px; }
.tile.is-sold .tile-art, .tile.is-sold .fan { opacity: .45; filter: grayscale(.6); }
.tile.is-locked { background: #17120d; border-style: dashed; border-color: var(--edge2); }
.lock-stage { height: 120px; }
.lock { fill: var(--dim); }
.tile-reason { font-size: 12px; color: var(--dim); }
.card-blank { display: grid; place-items: center; aspect-ratio: 5 / 7; background: repeating-linear-gradient(135deg, #2a2016 0 6px, #241b12 6px 12px); color: var(--dim); font-size: 12px; text-align: center; border-radius: 6px; }
/* A fan card is too small for words: the stripes say it. */
.fan-card.card-blank span { display: none; }

/* ---- Pulls ------------------------------------------------------------------------------- */
.pull-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.pull-row > * { scroll-snap-align: start; }
.pull { flex: none; display: flex; align-items: center; gap: 10px; width: min(250px, 78vw); background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; padding: 8px 10px; text-decoration: none; font-size: 13px; line-height: 1.3; }
.pull-card { width: 44px; height: 62px; border-radius: 4px; object-fit: cover; flex: none; }

/* ---- How it works ------------------------------------------------------------------------ */
.how { margin-top: 36px; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r); padding: 4px 18px 18px; }
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 32px 1fr; column-gap: 10px; }
.steps li span:last-child { grid-column: 2; color: var(--dim); font-size: 14px; }
.step-n { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--amber); color: var(--amber); font-weight: 800; }

/* ---- Pack page --------------------------------------------------------------------------- */
.pack-cols { display: grid; grid-template-columns: 1fr; gap: 8px; }
.stage { position: relative; display: grid; place-items: center; height: 420px; margin: 0 -16px; overflow: hidden; }
.stage .light { inset: 2% 4% 6%; }
.stage-img { width: 220px; filter: drop-shadow(0 30px 36px rgba(0,0,0,.6)); }
.details .pack-name { font-size: 38px; }
.levels { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.price { font: 800 40px/1 var(--display); }
.showcase { display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: end; gap: 6px; margin: 22px 0 12px; }
.showcase figure { margin: 0; display: grid; justify-items: center; text-align: center; gap: 6px; }
.showcase figcaption { display: grid; gap: 1px; font-size: 12.5px; line-height: 1.3; }
.sc-card { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; }
.sc-card .card-img { width: 100%; height: auto; border-radius: 7px; box-shadow: 0 14px 28px rgba(0,0,0,.6); }
.sc-side .sc-card { width: 88px; }
.sc-side.left .sc-card { transform: rotate(-6deg) translateX(8px); }
.sc-side.right .sc-card { transform: rotate(6deg) translateX(-8px); }
.sc-top { position: relative; z-index: 1; }
.sc-top .sc-card { width: 138px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 0 46px -6px var(--c); }
.sc-light { position: absolute; inset: -10% -20% 30%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 40%, transparent), transparent); z-index: -1; }
.showcase .loud { font-size: 30px; }
.showcase.rise figure { animation: rise .34s var(--ease) both; }
.showcase.rise figure:nth-child(2) { animation-delay: 40ms; }
.showcase.rise figure:nth-child(3) { animation-delay: 80ms; }
.vscale { margin: 18px 0 8px; max-width: 460px; }
.vscale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
.vscale-ends span { display: grid; }
.vscale-ends b { color: var(--text); font-size: 14px; }
.vscale-ends .hi { text-align: right; }
.vscale-ends .hi b { color: var(--c); }
.vscale svg { width: 100%; height: auto; overflow: visible; }
.vs-track { fill: #2a2016; }
.vs-fill { fill: color-mix(in srgb, var(--c) 55%, #2a2016); }
.vs-dot { fill: var(--amber); stroke: var(--bg); stroke-width: 3; }
.vs-label { fill: var(--text); font: 700 12px var(--body); }
.buy { margin-top: 16px; }
.buy.sticky { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.odds-preview { display: grid; gap: 2px; width: 100%; text-align: left; background: none; border: 0; padding: 12px 2px 4px; cursor: pointer; font-size: 13px; color: var(--dim); }
.odds-preview svg { width: 100%; height: 10px; border-radius: 5px; margin-bottom: 6px; }
.odds-preview b { color: var(--text); }
.op-door { color: var(--amber); font-weight: 700; margin-top: 4px; }
.seg { fill: var(--c); }
.seg.top { fill: var(--cream); }
.buyback { color: var(--dim); font-size: 13px; margin: 8px 0; }
.see-all { display: inline-flex; align-items: center; min-height: 44px; color: var(--amber); font-weight: 700; text-decoration: none; }
.more { margin-top: 30px; }
.rail-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.rail-scroll > * { scroll-snap-align: start; }

/* ---- Cards page -------------------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pc { display: grid; gap: 3px; text-align: left; background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; padding: 8px; cursor: zoom-in; font-size: 12.5px; line-height: 1.3; min-width: 0; }
.pc .card-img { width: 100%; height: auto; border-radius: 6px; }
.pc-name { font-weight: 700; font-size: 13.5px; overflow-wrap: anywhere; }
.pc-row { display: flex; justify-content: space-between; margin-top: 2px; }

/* ---- Sheets ------------------------------------------------------------------------------ */
dialog#sheet { width: min(560px, 100vw); max-width: 100vw; max-height: 92vh; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 1px solid var(--edge2); border-bottom: 0; border-radius: 20px 20px 0 0; background: var(--panel); color: var(--text); overflow-y: auto; overscroll-behavior: contain; }
dialog#sheet[open] { animation: sheet-in .3s var(--ease); }
dialog#sheet::backdrop { background: rgba(8, 5, 3, .66); backdrop-filter: blur(2px); }
.sheet { padding: 6px max(18px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); }
.sheet-head { position: sticky; top: 0; z-index: 2; box-shadow: 0 10px 12px -12px rgba(0, 0, 0, .7); display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 2px 8px; padding: 14px 0 10px; background: var(--panel); }
.sheet-head h2 { margin: 0; font: 800 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .3px; }
.sheet-head p { grid-column: 1; margin: 0; font-size: 13px; }
.x { grid-row: 1 / span 2; grid-column: 2; width: 44px; height: 44px; margin: -4px -6px 0 0; border-radius: 50%; border: 1px solid var(--edge2); background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.mini { margin: 16px 0 6px; font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
.sheet .notice { scroll-margin: 84px 0 16px; }
.notice { background: #2a1d0f; border: 1px solid var(--amber); color: var(--amber); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.floor-line { font-weight: 700; margin: 4px 0 10px; }
.chances-table { display: grid; gap: 10px; background: var(--card); border: 1px solid var(--edge); border-radius: 12px; padding: 12px; }
.ct-row { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; font-size: 13.5px; }
.ct-range { font-weight: 800; font-variant-numeric: tabular-nums; }
.ct-count { text-align: right; font-variant-numeric: tabular-nums; }
.ct-pct { grid-column: 1 / -1; color: var(--dim); font-size: 12px; }
.ct-bar { grid-column: 1 / -1; width: 100%; height: 4px; }
.ct-track { fill: #2a2016; }
.ct-fill { fill: var(--c); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 6px; }
.facts div { background: var(--card); border: 1px solid var(--edge); border-radius: 12px; padding: 10px 12px; }
.facts dt { color: var(--dim); font-size: 12px; }
.facts dd { margin: 0; font: 800 20px/1.2 var(--display); }
.explain { border-top: 1px solid var(--edge); padding: 10px 0; font-size: 14px; }
.explain summary { cursor: pointer; font-weight: 700; padding: 12px 0; margin: -10px 0 -2px; }
.explain p { color: var(--dim); margin: 8px 0 0; }
.confirm-pack { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.mini-stage { position: relative; display: grid; place-items: center; width: 92px; height: 124px; }
.mini-stage .pack-img { width: 62px; }
.cp-text { display: grid; gap: 3px; font-size: 13px; line-height: 1.35; }
.cp-text b { font-size: 15px; }
.legal { color: var(--dim); font-size: 12px; text-align: center; margin: 14px 0 0; }
.sheet .cta { width: 100%; margin-top: 14px; }
/* The Google button is an iframe in a light document: under the page's dark color-scheme Chrome paints it on an
   opaque white box. Its container takes the light scheme, so the frame stays transparent. */
.gsi { min-height: 46px; display: flex; justify-content: center; margin: 12px 0; color-scheme: light; }
.signin .lead { font: 700 20px/1.25 var(--display); margin: 2px 0 8px; }
.email { border-top: 1px solid var(--edge); margin-top: 12px; padding-top: 10px; }
.email summary { cursor: pointer; font-weight: 700; padding: 12px 0; margin: -10px 0 -2px; }
.email form, [data-gate-form] { display: grid; gap: 12px; margin-top: 12px; }
label { display: grid; gap: 4px; font-size: 14px; }
/* 16 px in every field: iOS zooms the page into anything smaller on focus. */
input[type="email"], input[type="password"], select { width: 100%; min-height: 48px; padding: 12px; border-radius: 10px; border: 1px solid var(--edge2); background: var(--card); color: var(--text); font: 16px/1.25 var(--body); }
label.check { grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--edge); border-radius: 12px; padding: 12px; }
label.check input { width: 20px; height: 20px; accent-color: var(--amber); }
.credit-list { display: grid; gap: 10px; }
.credit-opt { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--edge); border-radius: 12px; padding: 12px; font-size: 13px; }
.credit-opt > span:first-child { display: grid; }
.credit-opt b { font-size: 15px; }
.credit-opt .cta.small { min-width: 88px; }
.credit-opt.best { border-color: #2c5a50; }
.sealed-stage { position: relative; display: grid; place-items: center; height: 280px; }
.sealed-stage .pack-img { width: 130px; animation: settle .5s var(--ease) both; }
.cd-art { display: grid; place-items: center; margin: 6px 0 10px; }
.cd-art .card-img { width: 220px; height: auto; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.cd-value { text-align: center; margin: 4px 0; }
.sales { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.sales li { display: flex; gap: 10px; align-items: baseline; background: var(--card); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.sales a { margin-left: auto; color: var(--amber); display: inline-flex; align-items: center; justify-content: flex-end; min-height: 44px; min-width: 44px; margin-block: -12px; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 520px); background: #2a1d0f; border: 1px solid var(--amber); color: var(--text); padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }

/* ---- Skeletons: the known shape, never a blank loader ------------------------------------ */
.skel span, .skeleton-list span, .sk-card { display: block; background: linear-gradient(90deg, #1d1610, #2a2016, #1d1610); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 12px; }
.sk-pack { width: 160px; height: 280px; margin: 20px auto; border-radius: 20px; }
.sk-tile { height: 300px; }
.sk-line { height: 18px; margin: 10px 0; }
.sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; }
.sk-block { height: 200px; margin: 16px 0; }
.sk-btn { height: 54px; border-radius: 999px; }
.skeleton-list { display: grid; gap: 10px; } .skeleton-list span { height: 56px; }
.sk-card { aspect-ratio: 5 / 7; }

/* ---- Motion: molten, then still ---------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes settle { from { transform: translateY(-14px) scale(1.04); filter: brightness(1.5); } to { transform: none; filter: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
::view-transition-group(pack-art) { animation-duration: .3s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---- Desktop: a real grid, the pack page in two columns ---------------------------------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail-scroll { grid-auto-columns: 30%; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero-slide { grid-template-columns: 1fr 1.1fr; padding: 24px 0; }
  .hero-stage { height: 420px; }
  .hero-art { width: 210px; }
  .hero-copy { text-align: left; }
  .hero-copy .blurb { margin: 0 0 10px; }
  .hero-top { justify-content: flex-start; }
  .hero .pack-name { font-size: 54px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pack-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .stage { position: sticky; top: 60px; height: 640px; margin: 0; }
  .stage-img { width: 280px; }
  .details { padding-top: 36px; }
  .details .pack-name { font-size: 52px; }
  .rail-scroll { grid-auto-columns: calc(25% - 9px); }
  dialog#sheet { margin: auto; border-radius: 20px; border-bottom: 1px solid var(--edge2); max-height: 88vh; }
}
@media (min-width: 1140px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* Desktop: themed rails sit side by side, each as wide as its packs, so a one-pack family never
   leaves a full-width empty row. */
@media (min-width: 900px) {
  .themed { display: flex; flex-wrap: wrap; column-gap: 28px; align-items: flex-start; }
  .themed .eyebrow { flex-basis: 100%; }
  .themed .rail .grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 200px; }
}

/* ---- Phase B: navigation ------------------------------------------------------------------ */
.top-nav { display: none; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(18, 14, 10, .94); backdrop-filter: blur(10px); border-top: 1px solid #2a2016; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); }
.bn { position: relative; display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 52px; padding: 6px 0; color: var(--dim); text-decoration: none; font-size: 12px; font-weight: 700; }
.bn[aria-current="page"], .tn[aria-current="page"] { color: var(--amber); }
.nav-badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--amber); color: #1a1006; font: 800 12px/18px var(--body); text-align: center; }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.buy.sticky { bottom: calc(61px + env(safe-area-inset-bottom)); }
#toast { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* ---- Phones: the first screen shows the pack and its price, and the buy never scrolls away ---- */
/* The buy bar is the pack page's own buy button again, fixed above the bottom nav. It shows only
   while the buy block (button, odds preview, buyback line) is off screen, so no chance ever sits
   above it; app.js hides it whenever that block is in view. Phones and tablets only. */
.buybar { position: fixed; left: 0; right: 0; bottom: calc(61px + env(safe-area-inset-bottom)); z-index: 25; padding: 14px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); background: linear-gradient(rgba(18, 14, 10, 0), rgba(18, 14, 10, .94) 34%); animation: bar-in .22s var(--ease) both; }
.buybar .cta { width: 100%; max-width: 560px; margin: 0 auto; display: flex; }
@keyframes bar-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 899px) {
  /* While the bar shows, the page ends above it, so the footer links stay reachable. */
  body:has(.buybar:not([hidden])) { padding-bottom: calc(142px + env(safe-area-inset-bottom)); }
  /* The stage scales with the screen's height: the name and the price make the first screen. */
  .stage { --art: clamp(160px, 21vh, 220px); height: calc(var(--art) * 1.7917 + 28px); }
  .stage-img { width: var(--art); }
  .details .pack-name { font-size: clamp(30px, 9vw, 38px); }
  .hero-stage { height: clamp(250px, 34vh, 300px); }
  .hero-art { width: clamp(140px, 20vh, 168px); }
  /* Shelves below the first screen are laid out, and fetch their lazy art, only as they come near:
     a phone on a slow line spends its first bytes on what it shows. */
  .shelf, .themed .rail, .how { content-visibility: auto; contain-intrinsic-size: auto 760px; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .buybar { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  body:has(.buybar:not([hidden])) { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  .buybar { display: none; }
}
#toast.at-top { bottom: auto; top: calc(68px + env(safe-area-inset-top)); }
.foot a[data-classic] { color: var(--text); }

@media (min-width: 768px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  .buy.sticky { bottom: 0; }
  #toast { bottom: 20px; }
  .top-nav { display: flex; gap: 2px; margin: 0 auto 0 28px; }
  .tn { position: relative; display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 14px; border-radius: 999px; color: var(--dim); text-decoration: none; font-weight: 700; font-size: 15px; }
  .tn:hover { color: var(--text); }
  .tn[aria-current="page"] { background: #241a10; }
  .tn .nav-badge { position: static; }
}

/* ---- The homepage additions: a one-line tagline, guides and the FAQ --------------------------- */
/* The homepage says what WaxRoom is before it shows a pack. */
.intro { text-align: center; margin: 14px auto 0; max-width: 40ch; }
.tagline { margin: 0; font: 800 clamp(24px, 7vw, 30px)/1.08 var(--display); text-transform: uppercase; letter-spacing: .2px; }
.intro-sub { margin: 6px 0 0; color: #E6DCCF; font-size: 15px; line-height: 1.4; }
.home-more { margin-top: 36px; }
.home-more .how { margin-top: 0; }
.guides, .faq { margin-top: 28px; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.guide-list a { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; color: var(--text); font-weight: 700; text-decoration: none; }
.guide-list a::after { content: "\203A"; margin-left: auto; padding-left: 12px; color: var(--amber); font-size: 20px; line-height: 1; }
.faq .explain p { max-width: 68ch; }
.foot-makers { font-size: 13px; }
.foot-makers a { min-height: 0; min-width: 0; padding: 13px 0; margin: -13px 0; }

/* ---- Desktop: use the width, show what is clickable, keep lines readable ---------------------- */
.tile:focus-visible, .pc:focus-visible, .sc-card:focus-visible, .pull:focus-visible, .guide-list a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
@media (hover: hover) {
  .chips button:hover, .chip:hover { border-color: color-mix(in srgb, var(--c) 70%, var(--edge2)); color: var(--text); }
  .pill-btn:hover { border-color: var(--amber); }
  .ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .03); }
  .ghost.danger:hover { border-color: var(--danger); }
  .link:hover, .foot a:hover, .kicker a:hover, .fine a:hover { color: var(--text); }
  .see-all:hover, .odds-preview:hover .op-door { text-decoration: underline; text-underline-offset: 3px; }
  .odds-preview:hover b { color: var(--amber); }
  .pc { transition: transform .2s var(--ease), border-color .2s; }
  .pc:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--amber) 45%, var(--edge)); }
  .sc-card .card-img { transition: transform .25s var(--ease); }
  .sc-card:hover .card-img { transform: translateY(-4px); }
  .pull:hover, .guide-list a:hover, .credit-opt:hover { border-color: var(--edge2); }
  .hero-stage:hover .hero-art { transform: translateY(-4px) scale(1.02); }
  .hero-art { transition: transform .35s var(--ease); }
  .hero-dots button:hover::before { background: var(--dim); }
  .tn:hover { background: rgba(255, 255, 255, .04); }
}
@media (min-width: 900px) {
  .intro { text-align: left; margin: 26px 0 0; max-width: 62ch; }
  .tagline { font-size: 44px; }
  .intro-sub { font-size: 17px; }
  /* Lights stay inside their box on desktop: a clipped glow shows a hard edge. */
  .hero .light { inset: 6% 0 10%; }
  .stage .light { inset: 2% 0 6%; }
  .cards-page { padding-bottom: 84px; }
  .guides { position: sticky; top: 84px; }
  .faq .explain { font-size: 16px; }
  /* The shop's lower half: how it works across the top, guides and the FAQ side by side. */
  .home-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); column-gap: 40px; align-items: start; }
  .home-more .how { grid-column: 1 / -1; }
  .hero-copy .blurb { max-width: 52ch; }
  /* The every-card page: the buy is a button, not a 1200 px bar. */
  .cards-page .buy.sticky { display: flex; justify-content: flex-end; pointer-events: none; background: none; }
  .cards-page .buy.sticky .cta { width: auto; min-width: 320px; pointer-events: auto; }
  .cards-page > .dim { max-width: 70ch; }
}
@media (min-width: 1400px) {
  .top-in, main, .foot { max-width: 1320px; }
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero-stage { height: 460px; }
  .hero-art { width: 230px; }
  .stage { height: 680px; }
  .stage-img { width: 300px; }
}
