/* RIP IT — neutral canvas (black, white, grays). The packs are the only color on the page. */
:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --line-c: #e4e4e0;
  --line-2: #d2d2cd;
  --ink: #111111;
  --ink-2: #3d3d3a;
  --muted: #74746f;
  --faint: #a3a39d;
  --line: 1px solid var(--line-c);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px -14px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .05), 0 24px 50px -28px rgba(0, 0, 0, .4);
  --r: 10px;
  --r-lg: 14px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: var(--font); /* one family: the same condensed Archivo as the pack labels */
  --font-display: var(--display);
  --body: var(--font);
  /* rarity (only used on pulled cards) */
  --common: #8c8c86;
  --uncommon: #2f9357;
  --rare: #2f68d8;
  --epic: #9b3fb5;
  --legendary: #d9770f;
  --grail: #c9a000;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 15.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); font-size: .86em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-stretch: 80%; letter-spacing: -.015em; line-height: 1; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.break { word-break: break-all; }

/* ---------- demo notice */
.demo-banner { background: var(--ink); color: #fff; text-align: center; padding: 6px 12px; font-size: 12.5px; }
.demo-banner span { opacity: .85; }
.tag-demo { display: inline-block; background: #ececea; color: var(--ink-2); border-radius: 4px; font: 600 10.5px var(--font); padding: 1px 6px; vertical-align: middle; letter-spacing: .02em; }

/* ---------- header */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(244, 244, 242, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { font: 800 23px var(--display); font-stretch: 80%; letter-spacing: -.01em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo i { display: inline-block; width: 16px; height: 21px; background: var(--ink); border-radius: 2px;
  clip-path: polygon(0 10%, 12.5% 0, 25% 10%, 37.5% 0, 50% 10%, 62.5% 0, 75% 10%, 87.5% 0, 100% 10%, 100% 90%, 87.5% 100%, 75% 90%, 62.5% 100%, 50% 90%, 37.5% 100%, 25% 90%, 12.5% 100%, 0 90%); }
nav.main { display: flex; gap: 4px; flex: 1; }
nav.main a { white-space: nowrap; text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 7px 11px; border-radius: 8px; color: var(--muted); }
nav.main a:hover { color: var(--ink); }
nav.main a.on { color: var(--ink); background: #e9e9e6; }
nav.main a.more { display: none; }
.btn.menu-btn { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--surface); padding: 9px 16px; font: 600 14px var(--font);
  cursor: pointer; border-radius: 9px; text-decoration: none; color: var(--ink); transition: background .12s, border-color .12s, transform .12s; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn.primary, .btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover, .btn.dark:hover { background: #2a2a28; }
.btn.gold { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.big { font-size: 15.5px; padding: 12px 22px; border-radius: 10px; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; border-color: transparent; }
.wallet-btn { white-space: nowrap; }

/* ---------- home */
.intro { padding: 40px 0 8px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.intro h1 { font-size: clamp(30px, 4vw, 44px); max-width: 640px; }
.intro p { margin: 10px 0 0; color: var(--muted); font-size: 16.5px; max-width: 560px; }
.intro .how { display: flex; gap: 18px; font-size: 14px; color: var(--ink-2); }
.intro .how span b { font-weight: 700; margin-right: 6px; color: var(--ink); }

.holder-row { margin-top: 26px; display: grid; grid-template-columns: 210px 1fr auto; gap: 34px; align-items: center; padding: 22px 34px 22px 26px; background: var(--surface); border: var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); text-decoration: none; }
.holder-row .pack-shell { margin: -6px 0; }
.holder-row h2 { font-size: 28px; }
.holder-row p { margin: 8px 0 0; color: var(--muted); max-width: 520px; }
.holder-row .facts { display: flex; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.holder-row .facts div { font-size: 13px; color: var(--muted); }
.holder-row .facts b { display: block; font-size: 20px; color: var(--ink); font-weight: 700; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 16px; gap: 12px; flex-wrap: wrap; }
.section-title h2 { font-size: 22px; letter-spacing: -.01em; }
.section-title .sub { color: var(--muted); font-size: 14px; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.pack-card { text-decoration: none; display: flex; flex-direction: column; background: var(--surface); border: var(--line); border-radius: var(--r-lg); padding: 26px 18px 18px; transition: box-shadow .2s, border-color .2s; }
.pack-card:hover { box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.pack-card .stage-mini { display: block; padding: 0 30px 10px; }
.pack-card .meta { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pack-card .meta strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.pack-card .meta span { font-size: 14px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.pack-card .line { color: var(--muted); font-size: 13.5px; margin-top: 3px; flex: 1; }
.pack-card .actions { display: flex; gap: 8px; margin-top: 14px; }
.pack-card .actions .btn { flex: 1; padding: 9px 10px; }
.pack-card .actions .btn:first-child:not(:last-child) { flex: 0 0 auto; }

.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-row div { background: var(--surface); border: var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.steps-row b { display: block; font-size: 16px; margin-bottom: 4px; }
.steps-row span { color: var(--muted); font-size: 14px; }
.numbers { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: 13.5px; }
.numbers b { color: var(--ink); font-weight: 700; margin-right: 5px; }

/* ================================================================
   THE PACK — a sealed foil packet, drawn in CSS.
   Silhouette: SVG mask with crimped ends and a slight pinch where
   the seals meet the puffed-up body. Depth: horizontal pillow
   shading, darker seal shoulders, fold creases fanning from the
   seals, a specular highlight that follows the cursor, a 3D rest
   pose and a soft floor shadow.
   ================================================================ */
.pack-shell { position: relative; perspective: 1100px; padding-bottom: 7%; }
.pack-shell::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 0; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .32), rgba(0, 0, 0, .12) 60%, transparent);
  filter: blur(3px); z-index: -1; }
.pack {
  --bg1: #3a6ff0; --bg2: #13307e; --label: #0b1d4d; --label-fg: #fff; --crimp: #1b3b8f; --ring: #fff;
  position: relative; container-type: inline-size; aspect-ratio: 100 / 152; overflow: hidden; text-align: left; isolation: isolate;
  background: linear-gradient(165deg, var(--bg1) 0%, var(--bg2) 100%); color: var(--label-fg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 152' preserveAspectRatio='none'%3E%3Cpath d='M0,2.2 L1.25,0 L2.50,2.2 L3.75,0 L5.00,2.2 L6.25,0 L7.50,2.2 L8.75,0 L10.00,2.2 L11.25,0 L12.50,2.2 L13.75,0 L15.00,2.2 L16.25,0 L17.50,2.2 L18.75,0 L20.00,2.2 L21.25,0 L22.50,2.2 L23.75,0 L25.00,2.2 L26.25,0 L27.50,2.2 L28.75,0 L30.00,2.2 L31.25,0 L32.50,2.2 L33.75,0 L35.00,2.2 L36.25,0 L37.50,2.2 L38.75,0 L40.00,2.2 L41.25,0 L42.50,2.2 L43.75,0 L45.00,2.2 L46.25,0 L47.50,2.2 L48.75,0 L50.00,2.2 L51.25,0 L52.50,2.2 L53.75,0 L55.00,2.2 L56.25,0 L57.50,2.2 L58.75,0 L60.00,2.2 L61.25,0 L62.50,2.2 L63.75,0 L65.00,2.2 L66.25,0 L67.50,2.2 L68.75,0 L70.00,2.2 L71.25,0 L72.50,2.2 L73.75,0 L75.00,2.2 L76.25,0 L77.50,2.2 L78.75,0 L80.00,2.2 L81.25,0 L82.50,2.2 L83.75,0 L85.00,2.2 L86.25,0 L87.50,2.2 L88.75,0 L90.00,2.2 L91.25,0 L92.50,2.2 L93.75,0 L95.00,2.2 L96.25,0 L97.50,2.2 L98.75,0 L100.00,2.2 L100,9 C100,11.5 97.6,12.5 97.6,15.5 L97.6,136.5 C97.6,139.5 100,140.5 100,143 L100,149.8 L98.75,152 L97.50,149.8 L96.25,152 L95.00,149.8 L93.75,152 L92.50,149.8 L91.25,152 L90.00,149.8 L88.75,152 L87.50,149.8 L86.25,152 L85.00,149.8 L83.75,152 L82.50,149.8 L81.25,152 L80.00,149.8 L78.75,152 L77.50,149.8 L76.25,152 L75.00,149.8 L73.75,152 L72.50,149.8 L71.25,152 L70.00,149.8 L68.75,152 L67.50,149.8 L66.25,152 L65.00,149.8 L63.75,152 L62.50,149.8 L61.25,152 L60.00,149.8 L58.75,152 L57.50,149.8 L56.25,152 L55.00,149.8 L53.75,152 L52.50,149.8 L51.25,152 L50.00,149.8 L48.75,152 L47.50,149.8 L46.25,152 L45.00,149.8 L43.75,152 L42.50,149.8 L41.25,152 L40.00,149.8 L38.75,152 L37.50,149.8 L36.25,152 L35.00,149.8 L33.75,152 L32.50,149.8 L31.25,152 L30.00,149.8 L28.75,152 L27.50,149.8 L26.25,152 L25.00,149.8 L23.75,152 L22.50,149.8 L21.25,152 L20.00,149.8 L18.75,152 L17.50,149.8 L16.25,152 L15.00,149.8 L13.75,152 L12.50,149.8 L11.25,152 L10.00,149.8 L8.75,152 L7.50,149.8 L6.25,152 L5.00,149.8 L3.75,152 L2.50,149.8 L1.25,152 L0.00,149.8 L0,143 C0,140.5 2.4,139.5 2.4,136.5 L2.4,15.5 C2.4,12.5 0,11.5 0,9 Z' fill='%23000'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 152' preserveAspectRatio='none'%3E%3Cpath d='M0,2.2 L1.25,0 L2.50,2.2 L3.75,0 L5.00,2.2 L6.25,0 L7.50,2.2 L8.75,0 L10.00,2.2 L11.25,0 L12.50,2.2 L13.75,0 L15.00,2.2 L16.25,0 L17.50,2.2 L18.75,0 L20.00,2.2 L21.25,0 L22.50,2.2 L23.75,0 L25.00,2.2 L26.25,0 L27.50,2.2 L28.75,0 L30.00,2.2 L31.25,0 L32.50,2.2 L33.75,0 L35.00,2.2 L36.25,0 L37.50,2.2 L38.75,0 L40.00,2.2 L41.25,0 L42.50,2.2 L43.75,0 L45.00,2.2 L46.25,0 L47.50,2.2 L48.75,0 L50.00,2.2 L51.25,0 L52.50,2.2 L53.75,0 L55.00,2.2 L56.25,0 L57.50,2.2 L58.75,0 L60.00,2.2 L61.25,0 L62.50,2.2 L63.75,0 L65.00,2.2 L66.25,0 L67.50,2.2 L68.75,0 L70.00,2.2 L71.25,0 L72.50,2.2 L73.75,0 L75.00,2.2 L76.25,0 L77.50,2.2 L78.75,0 L80.00,2.2 L81.25,0 L82.50,2.2 L83.75,0 L85.00,2.2 L86.25,0 L87.50,2.2 L88.75,0 L90.00,2.2 L91.25,0 L92.50,2.2 L93.75,0 L95.00,2.2 L96.25,0 L97.50,2.2 L98.75,0 L100.00,2.2 L100,9 C100,11.5 97.6,12.5 97.6,15.5 L97.6,136.5 C97.6,139.5 100,140.5 100,143 L100,149.8 L98.75,152 L97.50,149.8 L96.25,152 L95.00,149.8 L93.75,152 L92.50,149.8 L91.25,152 L90.00,149.8 L88.75,152 L87.50,149.8 L86.25,152 L85.00,149.8 L83.75,152 L82.50,149.8 L81.25,152 L80.00,149.8 L78.75,152 L77.50,149.8 L76.25,152 L75.00,149.8 L73.75,152 L72.50,149.8 L71.25,152 L70.00,149.8 L68.75,152 L67.50,149.8 L66.25,152 L65.00,149.8 L63.75,152 L62.50,149.8 L61.25,152 L60.00,149.8 L58.75,152 L57.50,149.8 L56.25,152 L55.00,149.8 L53.75,152 L52.50,149.8 L51.25,152 L50.00,149.8 L48.75,152 L47.50,149.8 L46.25,152 L45.00,149.8 L43.75,152 L42.50,149.8 L41.25,152 L40.00,149.8 L38.75,152 L37.50,149.8 L36.25,152 L35.00,149.8 L33.75,152 L32.50,149.8 L31.25,152 L30.00,149.8 L28.75,152 L27.50,149.8 L26.25,152 L25.00,149.8 L23.75,152 L22.50,149.8 L21.25,152 L20.00,149.8 L18.75,152 L17.50,149.8 L16.25,152 L15.00,149.8 L13.75,152 L12.50,149.8 L11.25,152 L10.00,149.8 L8.75,152 L7.50,149.8 L6.25,152 L5.00,149.8 L3.75,152 L2.50,149.8 L1.25,152 L0.00,149.8 L0,143 C0,140.5 2.4,139.5 2.4,136.5 L2.4,15.5 C2.4,12.5 0,11.5 0,9 Z' fill='%23000'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 3deg)); transform-origin: 50% 55%;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.pack-shell.tilting .pack { transition: transform .08s linear; }
.pack-shell:not(.tilt) .pack { --ry: 0deg; --rx: 0deg; }

/* crimped seals */
.pack .crimp { position: absolute; left: 0; right: 0; height: 6.2%; z-index: 6;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 .7cqw, rgba(0, 0, 0, .3) .7cqw 1.6cqw), var(--crimp); }
.pack .crimp.top { top: 0; box-shadow: 0 1cqw 1.4cqw -.4cqw rgba(0, 0, 0, .55); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 .7cqw, rgba(0, 0, 0, .3) .7cqw 1.6cqw), linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(0, 0, 0, .15)); }
.pack .crimp.bottom { bottom: 0; box-shadow: 0 -1cqw 1.4cqw -.4cqw rgba(0, 0, 0, .55); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 .7cqw, rgba(0, 0, 0, .32) .7cqw 1.6cqw), linear-gradient(0deg, rgba(255, 255, 255, .1), rgba(0, 0, 0, .25)); }

/* logo front */
.pack .face { position: absolute; left: 0; right: 0; top: 6%; bottom: 6%; overflow: hidden; z-index: 1; }
.pack .wall { position: absolute; left: -22%; right: -22%; top: -10%; bottom: 14%; display: grid; align-content: center; gap: 4.4cqw; transform: rotate(-14deg); opacity: .6;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 72%, transparent 100%); }
.pack .wall .row { display: flex; gap: 4.4cqw; justify-content: center; }
.pack .wall .row.odd { transform: translateX(8.8cqw); }
.pack .wall .tok { width: 13cqw; height: 13cqw; flex: none; border: 0; font-size: 2.6cqw; box-shadow: 0 0 0 .6cqw color-mix(in srgb, var(--ring) 75%, transparent), 0 1cqw 2cqw rgba(0, 0, 0, .3); }
.pack .dim { position: absolute; inset: 0; background: radial-gradient(ellipse 58% 36% at 50% 41%, color-mix(in srgb, var(--bg2) 90%, transparent) 0%, color-mix(in srgb, var(--bg2) 50%, transparent) 55%, transparent 82%); }
.pack .coins { position: absolute; left: 0; right: 0; top: 40%; height: 42cqw; transform: translateY(-50%); z-index: 2; }
.pack .coins .h { position: absolute; top: 50%; left: 50%; }
.pack .coins .tok { border: .9cqw solid var(--ring); box-shadow: 0 2.2cqw 3cqw -1cqw rgba(0, 0, 0, .7); font-size: 5cqw; }
.pack .coins .h1 { transform: translate(-50%, -50%); z-index: 3; }
.pack .coins .h1 .tok { width: 38cqw; height: 38cqw; font-size: 8cqw; }
.pack .coins .h2 { transform: translate(calc(-50% - 25cqw), -44%) rotate(-12deg); z-index: 2; }
.pack .coins .h3 { transform: translate(calc(-50% + 25cqw), -44%) rotate(12deg); z-index: 2; }
.pack .coins .h2 .tok, .pack .coins .h3 .tok { width: 25cqw; height: 25cqw; }

/* brand + name */
.pack .brand { position: absolute; top: calc(6.2% + 3.4cqw); left: 7cqw; right: 7cqw; z-index: 5; display: flex; justify-content: space-between;
  font: 800 max(7px, 3.6cqw)/1 var(--font); letter-spacing: -.02em; color: var(--label-fg); text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.pack .brand span + span { font-weight: 600; opacity: .7; letter-spacing: .04em; text-transform: uppercase; font-size: max(6px, 2.8cqw); }
.pack .label { position: absolute; left: 0; right: 0; bottom: 6%; height: 24.5%; z-index: 5; padding: 0 7cqw 5.5cqw; background: linear-gradient(180deg, transparent, var(--label) 30%); color: var(--label-fg);
  display: flex; flex-direction: column; justify-content: flex-end; }
.pack .title { font: 800 min(44px, 15cqw)/.9 var(--font); font-stretch: 75%; text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pack .title.long { font-size: min(34px, 11.6cqw); }
.pack .sub { font: 600 max(7px, 3.2cqw) var(--font); opacity: .75; margin-top: 1.6cqw; letter-spacing: .02em; }

/* depth: fold creases, pillow shading, specular highlight */
.pack .creases { position: absolute; inset: 0; z-index: 7; pointer-events: none; mix-blend-mode: soft-light; opacity: .7;
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, .9) 0 .3cqw, transparent .3cqw 4.2cqw) top / 100% 14% no-repeat,
    repeating-linear-gradient(80deg, rgba(0, 0, 0, .8) 0 .3cqw, transparent .3cqw 5.4cqw) top / 100% 14% no-repeat,
    repeating-linear-gradient(80deg, rgba(255, 255, 255, .85) 0 .3cqw, transparent .3cqw 4.2cqw) bottom / 100% 13% no-repeat,
    repeating-linear-gradient(100deg, rgba(0, 0, 0, .8) 0 .3cqw, transparent .3cqw 5.4cqw) bottom / 100% 13% no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 5%, transparent 13%, transparent 87%, #000 95%); mask-image: linear-gradient(180deg, #000 6%, transparent 14%, transparent 87%, #000 94%); }
.pack .shade { position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 60% at 42% 48%, transparent 55%, rgba(0, 0, 0, .28) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .2) 4%, transparent 11%, transparent 80%, rgba(0, 0, 0, .22) 92%, rgba(0, 0, 0, .62) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .45) 6%, rgba(0, 0, 0, 0) 14%, transparent 85%, rgba(0, 0, 0, .45) 94%); }
.pack .spec { position: absolute; inset: 0; z-index: 9; pointer-events: none; mix-blend-mode: screen;
  background:
    linear-gradient(90deg, transparent 12%, rgba(255, 255, 255, .16) 20%, rgba(255, 255, 255, .06) 27%, transparent 34%) calc(var(--mx, 30%) - 30%) 0 / 100% 100% no-repeat,
    radial-gradient(ellipse 36% 26% at var(--mx, 30%) var(--my, 30%), rgba(255, 255, 255, .22), transparent 70%),
    linear-gradient(90deg, transparent 88%, rgba(255, 255, 255, .08) 94%, transparent 98%); }

/* pack colors (the only color in the UI) */
.t-ticker   { --bg1: #127a57; --bg2: #06271b; --label: #051c14; --crimp: #0c4f39; }
.t-bluechip { --bg1: #3a6ff0; --bg2: #13307e; --label: #0b1d4d; --crimp: #1f45a8; }
.t-degen    { --bg1: #e0407f; --bg2: #4b1f93; --label: #1d0d36; --crimp: #7a2a8f; }
.t-classic  { --bg1: #f39a2d; --bg2: #b23f0b; --label: #2a1406; --crimp: #b7560f; }
.t-newpairs { --bg1: #19c37d; --bg2: #064a33; --label: #03241a; --crimp: #0d7a52; }
.t-mystery  { --bg1: #7b4df2; --bg2: #1c0f4a; --label: #0f0826; --crimp: #4b2fb0; background: radial-gradient(90% 70% at 50% 42%, #8a5cff 0%, #3a1f9a 55%, #120833 100%); }
.t-packrip  { --bg1: #2b2b2b; --bg2: #000; --label: #000; --crimp: #d8d8d8; background: radial-gradient(90% 70% at 50% 40%, #2e2e2e 0%, #0d0d0d 65%, #000 100%); }
.t-packrip .crimp { background-color: #cfcfcf; }
/* retired themes (old demo databases) */
.t-terminal { --bg1: #5a45c8; --bg2: #0d0a1f; --label: #0a0818; --crimp: #2c2268; }
.t-solana   { --bg1: #8b4ff5; --bg2: #117a5b; --label: #0d0e14; --crimp: #4a2b8c; }
.t-creator  { --bg1: #ef6a3a; --bg2: #9b1f0c; --label: #1f0a04; --crimp: #a8341a; }
/* mystery face: question marks instead of logos */
.tok.q { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff; font: 800 min(22px, 7cqw)/1 var(--font-display, var(--font)); }
.pack .coins .tok.q { background: #fff; color: #3a1f9a; border: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); font-size: 13cqw; }
.pack .wall .tok.q { font-size: 7cqw; font-weight: 800; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 .5cqw rgba(255, 255, 255, .22); }
.pack .coins .h1 .tok.q { font-size: 24cqw; }
.pack .coins .h2 .tok.q, .pack .coins .h3 .tok.q { font-size: 14cqw; }
.t-holder   { --bg1: #3b3b3b; --bg2: #0b0b0b; --label: #070707; --crimp: #9a9a9a; --ring: #e9e9e9; background: radial-gradient(90% 70% at 50% 42%, #3d3d3d 0%, #151515 60%, #060606 100%); }
.t-holder .crimp { background-color: #b8b8b8; }

/* ---------- pulls rail (cards) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: x mandatory; }
.pulled { scroll-snap-align: start; text-decoration: none; display: block; }
.pulled .slab { position: relative; aspect-ratio: 5 / 7; border-radius: 10px; padding: 6px; background: var(--surface); border: var(--line); }
.pulled .slab .in { height: 100%; border-radius: 6px; border: 2px solid var(--c, var(--common)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 8px; }
.pulled .slab .tok { width: 54px; height: 54px; }
.pulled .slab .sym { font: 700 16px var(--font); }
.pulled .slab .top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); }
.pulled .cap { margin-top: 6px; display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.pulled .cap b { font-weight: 700; }
.cCOMMON { --c: var(--common); } .cUNCOMMON { --c: var(--uncommon); } .cRARE { --c: var(--rare); } .cEPIC { --c: var(--epic); } .cLEGENDARY { --c: var(--legendary); } .cGRAIL { --c: var(--grail); }

/* ---------- feed */
.feed { display: grid; gap: 8px; }
.pull { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: var(--line); border-radius: var(--r); padding: 10px 14px; text-decoration: none; }
.pull:hover { border-color: var(--line-2); }
.pull .what { font-size: 15px; }
.pull .what b { font-weight: 700; }
.pull .sub { font-size: 12.5px; color: var(--muted); }
.pull .val { text-align: right; font-weight: 700; }
.big-pulls { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.grail-pull { background: var(--surface); border: var(--line); border-radius: var(--r-lg); padding: 18px; position: relative; }
.grail-pull .rar { position: absolute; top: 14px; right: 14px; }
.grail-pull .amt { font-size: 28px; font-weight: 800; margin: 8px 0 2px; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 24px; text-align: center; color: var(--muted); }

/* ---------- token badge + rarity */
.tok { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); display: grid; place-items: center; font: 700 11px var(--font); overflow: hidden; background: #fff; flex: none; }
.tok.has-img { position: relative; }
.tok img { width: 100%; height: 100%; object-fit: cover; }
.tok.has-img img { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; background: #fff; }
.tok.has-img img.in { opacity: 1; }
.tok.lg { width: 110px; height: 110px; font-size: 26px; }
.rar { display: inline-block; font: 700 10.5px var(--font); letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; background: var(--c, #ddd); color: #fff; text-transform: uppercase; }
.rar.COMMON { --c: var(--common); } .rar.UNCOMMON { --c: var(--uncommon); } .rar.RARE { --c: var(--rare); } .rar.EPIC { --c: var(--epic); } .rar.LEGENDARY { --c: var(--legendary); } .rar.GRAIL { --c: var(--grail); }

/* ---------- pack detail */
.detail { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 56px; padding: 34px 0 40px; align-items: start; }
.detail .showcase { position: sticky; top: 90px; padding: 20px 26px 6px; }
.detail h1 { font-size: clamp(32px, 4.4vw, 46px); }
.detail > div > p:not(.small) { color: var(--muted); font-size: 16px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.size-btn { border: 1px solid var(--line-2); background: var(--surface); padding: 9px 15px; min-width: 88px; cursor: pointer; text-align: left; border-radius: 10px; }
.size-btn:hover { border-color: var(--ink-2); }
.size-btn b { display: block; font-size: 20px; font-weight: 700; }
.size-btn span { font-size: 12.5px; color: var(--muted); }
.size-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-btn.on span { color: #bdbdb8; }
.size-btn[disabled] { opacity: .4; cursor: not-allowed; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: var(--line); border-radius: var(--r); overflow: hidden; }
.stats > div { padding: 12px 15px; border-right: var(--line); border-bottom: var(--line); margin: 0 -1px -1px 0; }
.stats b { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.stats strong { font-size: 20px; font-weight: 700; white-space: nowrap; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--surface); padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 13px; font-weight: 600; cursor: pointer; border-radius: 6px; }
.seg button.on { background: var(--ink); color: #fff; }
.notice { border: var(--line); background: var(--surface); border-radius: var(--r); padding: 11px 15px; margin: 14px 0; font-size: 14px; color: var(--ink-2); }
.notice.bad { border-color: #e7b9b3; background: #fdf3f2; }
.notice.good { border-color: #b9dcc6; background: #f2faf5; }
details.adv { margin-top: 16px; border: var(--line); background: var(--surface); padding: 10px 14px; border-radius: var(--r); }
details.adv summary { cursor: pointer; font-weight: 600; }
input, select, textarea { font: 14px var(--mono); border: 1px solid var(--line-2); padding: 9px 11px; background: #fff; border-radius: 8px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(0, 0, 0, .15); border-color: var(--ink-2); }
label.f { display: block; margin: 10px 0; font-size: 13px; font-weight: 600; }
label.f input, label.f select, label.f textarea { margin-top: 4px; font-weight: 400; }
.credit-box { border: 1px solid var(--ink); background: var(--surface); padding: 16px 18px; margin: 14px 0; border-radius: var(--r-lg); }
.credit-box h3 { font-size: 22px; margin: 2px 0 4px; }
.credit-box .small.mono { font: 600 12px var(--font); color: var(--muted); }

/* ---------- tables */
table.t { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: var(--line); border-radius: var(--r); overflow: hidden; font-size: 14px; }
table.t th, table.t td { border-bottom: var(--line); padding: 9px 12px; text-align: left; vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t th { font-size: 12.5px; font-weight: 600; color: var(--muted); background: #fafaf8; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }
.asset-cell { display: flex; align-items: center; gap: 10px; }
.asset-cell .tok { width: 30px; height: 30px; font-size: 9px; }
.bar { height: 6px; background: #ececea; border-radius: 99px; min-width: 60px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
pre.json { background: #161616; color: #e9e9e9; padding: 14px; overflow: auto; max-height: 420px; font: 12px/1.5 var(--mono); border-radius: var(--r); }
.hash { font: 12px var(--mono); word-break: break-all; background: #fff; border: var(--line); border-radius: 6px; padding: 3px 7px; display: inline-block; }

/* ---------- opening stage */
.stage { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 30px 16px 60px; }
.stage-inner { width: min(460px, 100%); text-align: center; }
.stage .pack-shell { width: min(280px, 72vw); margin: 0 auto; }
.stage-status { font-size: 13.5px; color: var(--muted); margin-top: 18px; min-height: 20px; }
.commit-box { text-align: left; background: var(--surface); border: var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin-top: 22px; }
.commit-box .row { margin: 6px 0; font-size: 13px; }
.pack .strip { position: absolute; top: 6.2%; left: 0; right: 0; height: 6%; background: #fff; color: var(--ink); z-index: 11; transform-origin: left center;
  font: 700 max(7px, 3cqw)/1 var(--font); letter-spacing: .12em; display: flex; align-items: center; padding-left: 6cqw; border-bottom: 1px dashed rgba(0, 0, 0, .4); box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .25); }
.pack.shake { animation: shake .55s ease-in-out 2; }
@keyframes shake { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-3deg) translateX(-4px); } 40% { transform: rotate(3deg) translateX(4px); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(2deg); } }
.pack.wobble { animation: wobble 3s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotateY(-14deg) rotateX(3deg); } 50% { transform: rotateY(10deg) rotateX(-2deg) translateY(-6px); } }
.pack.tearing .strip { animation: tear .5s ease-in forwards; }
@keyframes tear { 0% { transform: none; } 30% { transform: rotate(-4deg) translateY(-6px); } 100% { transform: rotate(-24deg) translate(40%, -180px); opacity: 0; } }
.pack.opened { animation: drop .45s ease-in forwards; }
@keyframes drop { to { transform: translateY(70%) scale(.9); opacity: 0; } }

.card-reveal { width: min(320px, 80vw); aspect-ratio: 5 / 7; margin: 0 auto; perspective: 1000px; }
.card-reveal .inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.card-reveal.flip .inner { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #fff; padding: 16px; }
.card-face.back { background: #151515; color: #fff; border: 5px solid #fff; }
.card-face.back::after { content: 'rip it'; font: 800 34px var(--font); letter-spacing: -.03em; opacity: .9; }
.card-face.front { transform: rotateY(180deg); border: 5px solid var(--c, var(--ink)); }
.card-face.front .you { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.card-face.front .sym { font-size: 34px; font-weight: 800; line-height: 1; }
.card-face.front .val { font-size: 28px; font-weight: 700; opacity: 0; transform: scale(.8); transition: all .3s; }
.card-face.front .val.on { opacity: 1; transform: none; }
.card-face.front .rar { font-size: 13px; padding: 4px 10px; opacity: 0; transform: scale(1.6); transition: all .25s cubic-bezier(.2,1.6,.4,1); }
.card-face.front .rar.on { opacity: 1; transform: none; }
.card-face.front .odds { font-size: 12px; color: var(--muted); }
.card-reveal.cCOMMON { --c: var(--common); } .card-reveal.cUNCOMMON { --c: var(--uncommon); } .card-reveal.cRARE { --c: var(--rare); }
.card-reveal.cEPIC { --c: var(--epic); } .card-reveal.cLEGENDARY { --c: var(--legendary); } .card-reveal.cGRAIL { --c: var(--grail); }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.flash { position: fixed; inset: 0; pointer-events: none; z-index: 50; background: #fff; animation: flash .7s ease-out forwards; }
@keyframes flash { from { opacity: .8; } to { opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 51; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 13px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.skip { position: fixed; bottom: 18px; right: 18px; }

/* ---------- misc pages */
.page { padding: 38px 0 60px; }
.page h1 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 14px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.box { background: var(--surface); border: var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.box h3 { font-size: 18px; margin-bottom: 8px; }
.steps { counter-reset: s; display: grid; gap: 10px; }
.steps > div { counter-increment: s; background: var(--surface); border: var(--line); border-radius: var(--r); padding: 14px 18px 14px 58px; position: relative; }
.steps > div::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: var(--line); }
.check .ok { color: var(--uncommon); font-weight: 700; } .check .no { color: #c0392b; font-weight: 700; }
.timeline { font: 12px var(--mono); }
.timeline div { padding: 4px 0 4px 12px; border-left: 2px solid var(--line-2); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; font-size: 14px; max-width: 90vw; }
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: min(420px, 100%); padding: 22px; }
.modal h3 { font-size: 20px; margin-bottom: 10px; }
.wallet-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; margin: 6px 0; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; cursor: pointer; font-weight: 600; }
a.wallet-opt { text-decoration: none; color: var(--ink); }
.wallet-opt:hover { border-color: var(--ink-2); }
.wallet-opt img { width: 26px; height: 26px; }
footer.foot { border-top: var(--line); padding: 26px 0 44px; margin-top: 56px; font-size: 13px; color: var(--muted); }
footer.foot .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
footer.foot .links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
footer.foot .links a:hover { text-decoration: underline; }

/* ---------- holders page */
.holders-top { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: center; padding: 34px 0 10px; }
.holders-top h1 { font-size: clamp(32px, 4.4vw, 46px); }
.holders-top p { color: var(--muted); font-size: 16.5px; max-width: 540px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tier { background: var(--surface); border: var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.tier .n { font-size: 34px; font-weight: 800; line-height: 1; }
.tier .n small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.tier h3 { font-size: 16px; margin: 10px 0 4px; }
.tier p { margin: 0; color: var(--muted); font-size: 14px; }
.odds-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); background: var(--surface); border: var(--line); border-radius: var(--r); overflow: hidden; }
.odds-strip > div { padding: 12px 15px; border-right: var(--line); border-bottom: var(--line); margin: 0 -1px -1px 0; }
.odds-strip b { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.odds-strip strong { font-size: 20px; font-weight: 700; }

@media (max-width: 1020px) {
  nav.main { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); border-bottom: var(--line); flex-direction: column; padding: 8px 16px; box-shadow: var(--shadow-lg); }
  nav.main.open { display: flex; }
  nav.main a.more { display: block; }
  .btn.menu-btn { display: inline-flex; margin-left: auto; padding: 7px 11px; }
  header.top .wrap { gap: 10px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .wallet-btn { padding: 7px 11px; font-size: 13px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
  .holder-row { grid-template-columns: 120px 1fr; gap: 18px; padding: 16px; }
  .holder-row .go { grid-column: 1 / -1; }
  .holder-row h2 { font-size: 21px; }
  .holder-row .facts { gap: 14px; }
  .holder-row .facts b { font-size: 16px; }
  .detail, .cols { grid-template-columns: 1fr; }
  .detail { gap: 18px; }
  .detail .showcase { position: static; max-width: 280px; margin: 0 auto; padding: 10px 20px 0; }
  .holders-top { grid-template-columns: 1fr; }
  .holders-top .pack-shell { max-width: 200px; margin: 0 auto; }
  .tiers, .steps-row { grid-template-columns: 1fr; }
  .pull { grid-template-columns: 36px 1fr; }
  .pull .val { grid-column: 2; text-align: left; }
  .intro .how { display: none; }
}
@media (max-width: 520px) {
  .packs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pack-card { padding: 16px 10px 12px; }
  .pack-card .stage-mini { padding: 0 8px 6px; }
  .pack-card .meta { flex-direction: column; gap: 0; }
  .pack-card .meta strong { font-size: 15px; }
  .pack-card .line { font-size: 12.5px; }
  .pack-card .actions .btn:first-child:not(:last-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ---------- what's inside */
.pool-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.pool-jump .btn { padding: 6px 11px; font-size: 13px; }
.pool-block { border-top: var(--line); padding: 30px 0 10px; margin-top: 24px; scroll-margin-top: 80px; }
.pool-head { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; }
.pool-head h2 { font-size: 26px; }
ul.checks { margin: 6px 0 10px; padding-left: 20px; }
ul.checks li { margin: 3px 0; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 16px; }
.asset-chip { display: flex; gap: 10px; align-items: center; background: var(--surface); border: var(--line); border-radius: var(--r); padding: 8px 10px; text-decoration: none; }
.asset-chip:hover { border-color: var(--line-2); }
@media (max-width: 860px) { .pool-head { grid-template-columns: 100px 1fr; gap: 14px; } .pool-head h2 { font-size: 22px; } }

/* ---------- multi-card bits */
.slot-block { border-top: var(--line); padding-top: 24px; margin-top: 28px; }
.slot-block h2 { font-size: 22px; margin-bottom: 6px; }
.slot-assets { display: flex; flex-wrap: wrap; gap: 6px; }
.small-chip { padding: 4px 9px 4px 4px; gap: 6px; border-radius: 999px; }
.small-chip .tok { width: 24px; height: 24px; font-size: 8px; }
.small-chip > span:last-child { display: flex; flex-direction: column; line-height: 1.1; font-size: 12px; }
.proof-cards { display: grid; gap: 8px; }
.proof-card { border: var(--line); border-radius: var(--r); padding: 9px 11px; background: var(--surface); }
.mini-logos { display: inline-flex; vertical-align: middle; }
.mini-logos .tok { width: 18px; height: 18px; font-size: 6px; margin-left: -4px; border: 1.5px solid #fff; }

/* ---------- multi-card reveal */
.stage-inner.wide { width: min(1100px, 100%); }
.deal { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; max-width: calc(var(--n) * 220px); margin: 0 auto; }
.card-reveal.mini { width: 100%; aspect-ratio: 5 / 7.2; opacity: 0; transform: translateY(40px) rotate(-4deg); transition: opacity .3s, transform .35s cubic-bezier(.2,.9,.3,1.2); transition-delay: var(--d, 0ms); }
.card-reveal.mini.dealt { opacity: 1; transform: none; }
.card-reveal.mini .card-face { padding: 10px 8px; gap: 5px; }
.card-reveal.mini .card-face.back::after { font-size: min(24px, 3vw); }
.card-reveal.mini .card-face.front { border-width: 4px; }
.card-reveal.mini .tok.lg { width: 56%; height: auto; aspect-ratio: 1; font-size: min(20px, 3vw); }
.card-reveal.mini .sym { font-size: min(22px, 3vw); }
.card-reveal.mini .val { font-size: min(20px, 2.8vw); }
.card-reveal.mini .rar { font-size: 10px; padding: 2px 7px; }
.card-reveal.mini .you { font-size: 9.5px; }
.card-reveal.mini .odds { font-size: 10px; }
.card-reveal.suspense .inner { animation: suspense .7s ease-in-out; }
@keyframes suspense { 0%,100% { transform: none; } 25% { transform: translateY(-10px) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } 75% { transform: translateY(-12px) rotate(-1deg); } }
.hit-tag { position: absolute; top: 6px; right: 6px; background: var(--ink); color: #fff; font: 700 9.5px var(--font); padding: 2px 6px; border-radius: 4px; letter-spacing: .08em; }
.deliv { font-size: 10.5px; font-weight: 600; margin-top: 4px; text-align: center; color: var(--uncommon); }
.deliv a { color: inherit; }
.pack-total { margin-top: 24px; }
.pack-total .big { font-size: 44px; font-weight: 800; line-height: 1; margin: 4px 0; letter-spacing: -.02em; }
@media (max-width: 700px) {
  .deal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .deal.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 320px; }
  .deal.n1 { grid-template-columns: minmax(0, 1fr); max-width: 220px; }
  .card-reveal.mini { aspect-ratio: 5 / 8; }
  .card-reveal.mini .card-face { padding: 8px 4px; gap: 3px; border-radius: 9px; }
  .card-reveal.mini .sym { font-size: 15px; } .card-reveal.mini .val { font-size: 14px; } .card-reveal.mini .tok.lg { font-size: 11px; width: 52%; }
  .card-reveal.mini .odds, .card-reveal.mini .you { display: none; }
  .card-reveal.mini .rar { font-size: 8.5px; padding: 2px 5px; }
  .deliv { font-size: 9px; line-height: 1.2; word-break: break-all; }
  .pack-total .big { font-size: 36px; }
  .card-reveal.mini .card-face.back::after { font-size: 15px; }
}

.asset-grid.compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 10px; }
.asset-grid.compact .asset-chip { padding: 7px 9px; }
.asset-grid.compact .tok { width: 32px; height: 32px; font-size: 9px; }
.asset-grid.compact .small { font-size: 11.5px; }
.asset-grid.compact .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }

/* whole-pack value distribution */
.dist { display: grid; gap: 8px; }
.drow { display: grid; grid-template-columns: 230px 1fr 64px; gap: 14px; align-items: center; font-size: 14px; }
.drow .dl small { display: block; color: var(--muted); font-size: 12.5px; }
.drow .db { height: 10px; background: #efefec; border-radius: 99px; overflow: hidden; }
.drow .db i { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.drow .dp { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .drow { grid-template-columns: 1fr 52px; } .drow .db { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- leaderboard */
.board { list-style: none; margin: 0; padding: 0; background: var(--surface); border: var(--line); border-radius: var(--r-lg); overflow: hidden; counter-reset: none; }
.board li + li { border-top: var(--line); }
.board a { display: grid; grid-template-columns: 28px 36px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 16px; text-decoration: none; }
.board a:hover { background: #fafaf8; }
.board .rank { font: 800 15px var(--display); color: var(--faint); text-align: center; }
.board li:first-child .rank { color: var(--ink); }
.board .tok { width: 36px; height: 36px; }
.board .who { display: flex; flex-direction: column; min-width: 0; }
.board .who b { font-weight: 700; }
.board .who .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .amt { font: 800 18px var(--display); font-stretch: 80%; letter-spacing: 0; text-align: right; min-width: 72px; }
@media (max-width: 560px) { .board a { grid-template-columns: 22px 32px 1fr auto; padding: 10px 12px; } .board .when { display: none; } }

/* mystery: categories instead of a coin list */
.mystery-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.mystery-cat { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; min-width: 120px; }
.mystery-cat b { font-weight: 700; }

/* ---------- contract address bar + X link */
.ca-bar { display: flex; justify-content: center; padding: 7px 16px; background: var(--ink); }
.ca { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 999px; padding: 4px 6px 4px 12px; cursor: pointer; font: 500 12.5px var(--mono); }
.ca:hover { background: rgba(255, 255, 255, .12); }
.ca .ca-k { font: 800 11px var(--display); letter-spacing: .08em; opacity: .65; }
.ca .ca-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca .ca-copy { font: 700 11px var(--font); background: #fff; color: var(--ink); border-radius: 999px; padding: 3px 9px; }
.ca.soon { cursor: default; }
.ca.soon .ca-v { font-family: var(--font); opacity: .8; padding-right: 6px; }
.xlink { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.xlink b { font-size: 16px; line-height: 1; }
.xlink.soon { opacity: .6; }
@media (max-width: 720px) { .xlink span { display: none; } }

/* ---------- big numbers near the top */
.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.home-stats > div { background: var(--surface); border: var(--line); border-radius: var(--r-lg); padding: 18px 20px; position: relative; overflow: hidden; }
.home-stats > div::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 0, 0, .05), transparent 70%); }
.home-stats b { display: block; color: var(--ink); font: 800 clamp(26px, 3.4vw, 38px)/1 var(--display); letter-spacing: -.03em; }
.home-stats span { display: block; margin-top: 7px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .home-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- live pulls ticker */
.ticker { margin-top: 12px; overflow: hidden; border: var(--line); border-radius: 999px; background: var(--surface); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; gap: 26px; width: max-content; padding: 8px 18px; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13.5px; white-space: nowrap; }
.ticker .tok { width: 22px; height: 22px; font-size: 7px; }
.ticker span { font-weight: 700; }
.ticker i { font-style: normal; color: var(--faint); font-size: 12px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- packs float gently; colored glow under each one */
.pack-card .stage-mini { position: relative; }
.pack-card .stage-mini::before { content: ''; position: absolute; left: 18%; right: 18%; bottom: 6%; height: 26%; border-radius: 50%; filter: blur(22px); opacity: .32; background: var(--glow, #888); transition: opacity .3s; }
.pack-card:hover .stage-mini::before { opacity: .55; }
.pack-card .pack-shell { animation: float 5.5s ease-in-out infinite; }
.pack-card:nth-child(2n) .pack-shell { animation-delay: -1.4s; }
.pack-card:nth-child(3n) .pack-shell { animation-delay: -2.9s; }
.pack-card:nth-child(4n) .pack-shell { animation-delay: -4.1s; }
.holder-row .pack-shell { animation: float 6.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-7px) rotate(.6deg); } }
.pack-card:hover .pack-shell { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .pack-card .pack-shell, .holder-row .pack-shell, .ticker-track { animation: none; } }

/* ---------- a little more depth on the page */
.intro h1 { background: linear-gradient(90deg, var(--ink) 0%, #4a4a46 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
body { background: radial-gradient(1200px 500px at 50% -120px, #ffffff 0%, var(--bg) 70%) no-repeat, var(--bg); }

/* ---------- home hero: light, packs fanned like a hand of cards */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(0, 0, 0, .09) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 75% at 74% 45%, #000, transparent 72%); mask-image: radial-gradient(ellipse 55% 75% at 74% 45%, #000, transparent 72%); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; padding-top: 44px; padding-bottom: 20px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2);
  background: var(--surface); border: var(--line); border-radius: 999px; padding: 5px 12px 5px 10px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 80px); line-height: .92; font-stretch: 75%; letter-spacing: -.02em; text-transform: uppercase; margin-top: 18px; }
.hero p { color: var(--ink-2); font-size: 18px; max-width: 480px; margin: 18px 0 0; }
.hero p b { color: var(--ink); font-weight: 700; }
.hero-cta { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #19c37d; box-shadow: 0 0 0 0 rgba(25, 195, 125, .6); animation: ping 1.8s ease-out infinite; display: inline-block; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(25, 195, 125, .55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(25, 195, 125, 0); } }

.hero-fan { position: relative; height: 400px; }
.hero-fan > a { position: absolute; top: 50%; left: 50%; width: 190px; display: block; text-decoration: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.hero-fan > a::before { content: ''; position: absolute; left: 12%; right: 12%; bottom: 2%; height: 26%; border-radius: 50%; background: var(--glow); filter: blur(30px); opacity: .35; }
.hero-fan .pack-shell { animation: float 6s ease-in-out infinite; }
.hero-fan .fan-0 { transform: translate(-126%, -44%) rotate(-12deg); z-index: 1; }
.hero-fan .fan-1 { width: 220px; transform: translate(-50%, -54%); z-index: 3; }
.hero-fan .fan-2 { transform: translate(26%, -44%) rotate(12deg); z-index: 2; }
.hero-fan .fan-0 .pack-shell { animation-delay: -2s; }
.hero-fan .fan-2 .pack-shell { animation-delay: -4s; }
.hero-fan:hover .fan-0 { transform: translate(-138%, -44%) rotate(-16deg); }
.hero-fan:hover .fan-2 { transform: translate(38%, -44%) rotate(16deg); }
.hero-fan > a:hover { z-index: 4; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: 8px; }
.hero-stats > div { padding: 18px 20px 0 0; border-top: var(--line); }
.hero-stats > div + div { padding-left: 20px; border-left: var(--line); }
.hero-stats b { display: block; font: 800 clamp(30px, 3.8vw, 46px)/1 var(--display); font-stretch: 80%; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hero-stats span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.hero + .wrap > .ticker:first-child { margin-top: 20px; }

/* foil glint that sweeps across packs now and then */
.hero-fan .pack::after, .pack-card .pack::after { content: ''; position: absolute; inset: -20%; z-index: 10; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .28) 48%, rgba(255, 255, 255, .05) 54%, transparent 60%);
  transform: translateX(-120%); animation: glint 7s ease-in-out infinite; }
.pack-card:nth-child(2n) .pack::after, .hero-fan .fan-1 .pack::after { animation-delay: 2.3s; }
.pack-card:nth-child(3n) .pack::after, .hero-fan .fan-2 .pack::after { animation-delay: 4.6s; }
@keyframes glint { 0%, 70% { transform: translateX(-120%); } 88%, 100% { transform: translateX(120%); } }

/* pack cards: quieter frame, small status chip */
.pack-card { position: relative; background: transparent; border-color: transparent; }
.pack-card:hover { background: var(--surface); border-color: var(--line-c); }
.pack-card .chip { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600;
  background: var(--surface); border: var(--line); border-radius: 999px; padding: 3px 9px; color: var(--ink-2); }
.pack-card .meta span { background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 12.5px; }

/* empty states that invite instead of apologise */
.empty.first { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.empty.first b { color: var(--ink); }
.board.ghost li { display: grid; grid-template-columns: 28px 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; opacity: .55; }
.board.ghost li:first-child { opacity: 1; }
.board.ghost .tok.blank { width: 36px; height: 36px; border-radius: 50%; border: 1.5px dashed var(--line-2); display: block; }
.board.ghost .amt { color: var(--faint); font-weight: 700; }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-fan { height: 300px; order: -1; }
  .hero-fan > a { width: 140px; }
  .hero-fan .fan-1 { width: 160px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .hero-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .hero-fan .pack-shell, .live-dot, .hero-fan .pack::after, .pack-card .pack::after { animation: none; } }

/* headline foil: the second line shimmers like the packs */
.hero h1 .foil { background: linear-gradient(100deg, #111 0%, #111 28%, #127a57 38%, #3a6ff0 46%, #b8327a 54%, #e07a16 62%, #111 72%, #111 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 9s ease-in-out infinite; }
@keyframes foil { 0%, 15% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }
/* soft colour bloom behind the fan */
.hero-fan::before { content: ''; position: absolute; left: 50%; top: 50%; width: 460px; height: 380px; translate: -50% -50%; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, #19c37d, #3a6ff0, #e0407f, #f39a2d, #19c37d); filter: blur(70px); opacity: .22; animation: bloom 24s linear infinite; }
@keyframes bloom { to { rotate: 360deg; } }
/* what's inside: a slow strip of real logos under the stats */
.inside { margin: 4px auto 0; max-width: 1160px; overflow: hidden; padding: 14px 0 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.inside-track { display: flex; gap: 22px; width: max-content; animation: ticker 80s linear infinite; }
.inside span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.inside b { font-weight: 600; }
.inside .tok { width: 24px; height: 24px; font-size: 7px; }
.inside:hover .inside-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .hero h1 .foil, .hero-fan::before, .inside-track { animation: none; } }

/* bundle cards: one big win split across several new coins */
.bundle-logos { display: flex; justify-content: center; margin: 6px 0 2px; }
.bundle-logos .tok { width: 34px; height: 34px; margin: 0 -6px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.bundle-syms { font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.3; padding: 0 6px; text-align: center; }
.bundle-parts { margin-top: 6px; display: grid; gap: 3px; }
.bundle-parts .tok { width: 18px; height: 18px; font-size: 6px; vertical-align: middle; }

/* fairness details: tucked away, one click to inspect */
.commit-box details.fair { border: var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); }
.commit-box details.fair summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); list-style: none; }
.commit-box details.fair summary::-webkit-details-marker { display: none; }
.commit-box details.fair summary::before { content: '▸ '; }
.commit-box details.fair[open] summary::before { content: '▾ '; }
.commit-box details.fair[open] summary { margin-bottom: 6px; }
.commit-box details.fair p { margin: 0 0 8px; }

/* usernames */
.uname-row { display: flex; gap: 8px; margin-top: 6px; }
.uname-row input { flex: 1; min-width: 0; }
.uname { color: var(--ink); }
/* share on X after a pull */
.result-actions .x-share b { font-size: 15px; margin-right: 2px; }
/* receipt: fairness codes tucked away */
details.fair-proof { margin-top: 22px; border: var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 12px 16px; }
details.fair-proof > summary { cursor: pointer; font-weight: 700; list-style: none; }
details.fair-proof > summary::-webkit-details-marker { display: none; }
details.fair-proof > summary::before { content: '▸ '; }
details.fair-proof[open] > summary::before { content: '▾ '; }
details.fair-proof .cols { margin-top: 10px; }

/* ---------- phones */
.box, .cols > *, .detail > * { min-width: 0; }
.box code, .hash, .mono.break { overflow-wrap: anywhere; word-break: break-word; }
pre { max-width: 100%; overflow-x: auto; }
@media (max-width: 860px) {
  .detail .showcase { width: 100%; max-width: 220px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 14px; }
  h1 { font-size: 30px; }
  .sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .size-btn { min-width: 0; padding: 8px 10px; }
  .size-btn b { font-size: 18px; }
  .holder-row { grid-template-columns: 1fr; text-align: left; }
  .holder-row > div:first-child { max-width: 150px; margin: 0 auto; }
  .holder-row .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-in { padding-top: 22px; gap: 10px; }
  .hero-fan { height: 250px; }
  .hero-fan > a { width: 122px; }
  .hero-fan .fan-1 { width: 140px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 16px; }
  .hero-cta .btn { flex: 1; }
  .hero-stats b { font-size: 30px; }
  .result-actions { flex-wrap: wrap; }
  .result-actions .btn { flex: 1 1 auto; }
  .modal { width: calc(100vw - 24px); max-width: 420px; }
  .uname-row { flex-direction: column; }
  .commit-box { padding: 12px; }
}
.logo { white-space: nowrap; }
@media (max-width: 520px) {
  .logo { font-size: 20px; }
  .wallet-btn { max-width: 40vw; }
  .stage .pack-shell { width: min(200px, 56vw); }
  .stage { padding-top: 14px; }
}
.holder-pool { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; padding: 6px 12px; border: var(--line); border-radius: 999px; background: var(--bg); font-size: 13.5px; }
.holder-pool b { font-weight: 700; }
