/* ZAZA Card Hunt, in the ZAZA World look: navy, gold, electric blue; Titan One + Jersey 10.
   Phase 1: the demo (12 sample cards, live). Phase 2: real graded cards, powered by the vault (coming soon). */
:root {
  --navy-950: #030a2c;
  --navy-900: #06124f;
  --navy-800: #0a1a6b;
  --card: #141e52;
  --card-2: #1a2663;
  --line: #2c3b78;
  --line-2: #3b4c80;
  --gold: #ffd23f;
  --gold-2: #e8b52a;
  --gold-dark: #8a6410;
  --blue: #1d4bff;
  --cyan: #7fd4ff;
  --text: #f1ecd8;
  --muted: #a9b3d6;
  --green: #5fe86f;
  --purple: #c08aff;
  --orange: #ff8a1f;
  --ui: "Jersey 10", ui-monospace, monospace;
  --display: "Titan One", "Arial Black", system-ui, sans-serif;
  --pw: clamp(140px, min(18vw, calc((100svh - 400px) * 0.62)), 240px); /* centre pack width */
  --wrap: min(1080px, calc(100% - 32px));
  --c: var(--gold); /* rarity colour, set per card by .r-* */
  color-scheme: dark;
}
.r-common { --c: var(--green); }
.r-uncommon { --c: var(--cyan); }
.r-rare { --c: var(--gold); }
.r-epic { --c: var(--purple); }

* { box-sizing: border-box; }
html { background: var(--navy-950); scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--ui);
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  font-variant-ligatures: none;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(29, 75, 255, 0.45), transparent 60%),
    radial-gradient(80% 50% at 100% 40%, rgba(127, 212, 255, 0.08), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950) 70%);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; }
a { color: var(--cyan); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }

/* ---------- shared bits (same as the World app) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(3, 10, 44, 0.55);
  color: var(--text);
  font-size: 19px;
  text-align: center;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn:hover { border-color: rgba(255, 210, 63, 0.5); }
.btn.gold {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--navy-900);
  border: 2px solid #3a2a00;
  background: linear-gradient(180deg, #ffe066, var(--gold-2));
  box-shadow: inset 0 0 0 1px #fff3b0, 0 3px 0 var(--gold-dark);
}
.btn.gold:hover { filter: brightness(1.06); }
.btn.gold:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px #fff3b0, 0 1px 0 var(--gold-dark); }
.btn.big { min-height: 54px; font-size: 20px; padding: 12px 26px; }
.btn.gold.big { font-size: 18px; }
.icon-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(20, 30, 82, 0.8);
  color: var(--text);
}
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active { transform: scale(0.94); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn .off { display: none; }
.icon-btn[aria-pressed="false"] .on { display: none; }
.icon-btn[aria-pressed="false"] .off { display: block; }
.chip {
  --c: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 9px;
  border-radius: 99px;
  font-size: 17px;
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  white-space: nowrap;
}
.chip.r-common { --c: var(--green); }
.chip.r-uncommon { --c: var(--cyan); }
.chip.r-rare { --c: var(--gold); }
.chip.r-epic { --c: var(--purple); }
.chip.is-gold { --c: var(--gold); }
.chip.is-cyan { --c: var(--cyan); }
.chip.is-sample { --c: var(--orange); text-transform: uppercase; letter-spacing: 0.08em; }
.badge { display: inline-flex; align-items: center; gap: 7px; width: max-content; padding: 2px 10px; border-radius: 99px; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.badge.live { color: #c9f7cf; border: 1px solid rgba(95, 232, 111, 0.45); background: rgba(95, 232, 111, 0.12); }
.badge.soon { color: var(--gold); border: 1px solid rgba(255, 210, 63, 0.5); background: rgba(255, 210, 63, 0.1); }
.badge.soon.is-live { color: #c9f7cf; border-color: rgba(95, 232, 111, 0.45); background: rgba(95, 232, 111, 0.12); }
.kicker { display: block; font-size: 17px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.kicker small { font-size: 15px; text-transform: none; letter-spacing: 0.02em; }
.gold { color: var(--gold); }
.note { margin: 0; color: var(--muted); font-size: 19px; }
.note b { color: var(--text); font-weight: 400; }
.live-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(95, 232, 111, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(95, 232, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 232, 111, 0); } }
.live-dot.is-off { background: var(--muted); animation: none; }
.meter { display: block; height: 8px; border-radius: 99px; background: rgba(127, 212, 255, 0.14); overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #5fb4ff, var(--cyan)); transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.meter.gold { background: rgba(255, 210, 63, 0.16); }
.meter.gold > span { background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.meter.cards { background: rgba(192, 138, 255, 0.16); }
.meter.cards > span { background: linear-gradient(90deg, #a070f0, #c08aff); }
@keyframes spin { to { rotate: 360deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- top bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: calc(60px + env(safe-area-inset-top, 0px));
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
  background: rgba(3, 10, 44, 0.95);
  border-bottom: 1px solid rgba(255, 210, 63, 0.35);
}
.brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(255, 210, 63, 0.35); }
.brand span { font-family: var(--display); font-size: 19px; letter-spacing: 0.01em; white-space: nowrap; }
.brand b { color: var(--gold); font-weight: 400; }
.page-tag { margin-right: auto; padding: 1px 10px; border: 1px solid rgba(255, 210, 63, 0.45); border-radius: 99px; color: var(--gold); font-size: 18px; white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: 6px; }
.online { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid rgba(95, 232, 111, 0.4); border-radius: 99px; background: rgba(95, 232, 111, 0.12); color: #c9f7cf; font-size: 17px; white-space: nowrap; }
.online i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: live 2s infinite; }
.online b { color: #fff; font-weight: 400; }
.top .play { min-height: 38px; padding: 6px 14px; font-size: 15px; }
.preview-note { margin: 0; padding: 5px 16px; background: #3a2a00; border-bottom: 1px solid var(--gold-dark); color: #ffe9a8; font-size: 17px; text-align: center; }
.live-line { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; padding: 5px 16px; background: rgba(3, 10, 44, 0.55); border-bottom: 1px solid rgba(59, 76, 128, 0.5); color: var(--muted); font-size: 18px; text-align: center; }
.live-line span { transition: opacity 0.3s; }
.live-line span.is-fading { opacity: 0; }
.live-line b { color: #fff; font-weight: 400; }
.live-line em { color: var(--gold); font-style: normal; }
.live-line button { padding: 0 2px; border: 0; background: none; color: var(--cyan); font-size: 18px; }

/* ---------- intro: the two phases ---------- */
.intro { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; gap: 18px; padding: 26px 16px 34px; }
.fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fx-glow { position: absolute; left: 50%; top: 60%; width: min(1200px, 160vw); aspect-ratio: 2 / 1; translate: -50% -50%; background: radial-gradient(closest-side, rgba(29, 75, 255, 0.5), rgba(29, 75, 255, 0.14) 55%, transparent); }
.fx-rays {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 1800px;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 63, 0.1) 0deg 5deg, rgba(255, 210, 63, 0) 5deg 16deg);
  -webkit-mask: radial-gradient(circle, #000 3%, rgba(0, 0, 0, 0.5) 16%, transparent 38%);
  mask: radial-gradient(circle, #000 3%, rgba(0, 0, 0, 0.5) 16%, transparent 38%);
  animation: spin 140s linear infinite;
}
.px { position: absolute; width: 12px; height: 12px; background: var(--gold); clip-path: polygon(40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%, 0 40%, 40% 40%); animation: twinkle 2.8s ease-in-out infinite; }
.px.p1 { left: 10%; top: 22%; }
.px.p2 { left: 20%; top: 78%; width: 9px; height: 9px; background: var(--cyan); animation-delay: 0.6s; }
.px.p3 { right: 12%; top: 18%; width: 15px; height: 15px; animation-delay: 1.2s; }
.px.p4 { right: 22%; top: 82%; width: 9px; height: 9px; background: var(--cyan); animation-delay: 1.8s; }
.px.p5 { left: 4%; top: 55%; width: 10px; height: 10px; animation-delay: 2.2s; }
.px.p6 { right: 5%; top: 50%; background: var(--cyan); animation-delay: 0.3s; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; scale: 0.6; } 50% { opacity: 1; scale: 1; } }
.hero { display: flex; align-items: center; gap: 16px; width: min(760px, 100%); }
.hero-zaza { width: 84px; height: auto; flex: none; image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0, 4, 24, 0.5)); animation: bob 2.4s ease-in-out infinite; }
.headline { margin: 0; font: 400 clamp(2rem, 4.4vw, 3rem) / 1.05 var(--display); color: var(--gold); text-shadow: 0 3px 0 #000a2e, 0 0 26px rgba(255, 210, 63, 0.25); }
.lede { margin: 6px 0 0; color: var(--muted); font-size: 20px; }
.lede b { color: var(--text); font-weight: 400; }
.phases { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 12px; width: var(--wrap); }
.phase {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 4, 24, 0.35);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.phase:hover { transform: translateY(-3px); }
.phase.is-live { border-color: rgba(95, 232, 111, 0.45); box-shadow: inset 0 2px 0 rgba(95, 232, 111, 0.5), 0 10px 28px rgba(0, 4, 24, 0.35), 0 0 40px rgba(95, 232, 111, 0.08); }
.phase.is-soon { border-color: rgba(255, 138, 31, 0.45); box-shadow: inset 0 2px 0 rgba(255, 138, 31, 0.55), 0 10px 28px rgba(0, 4, 24, 0.35), 0 0 40px rgba(255, 138, 31, 0.08); }
.phase-art { display: grid; place-items: center; }
.phase-art .zpack { width: 84px; rotate: -6deg; }
.phase-body { display: grid; gap: 5px; min-width: 0; }
.phase-body b { font: 400 22px / 1.1 var(--display); color: #fff; }
.phase-body > span:not(.badge) { color: var(--muted); font-size: 19px; }
.phase-body em { color: var(--cyan); font-style: normal; font-size: 18px; }
.phase-arrow { display: grid; place-items: center; color: var(--gold); }
.phase-arrow svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(255, 210, 63, 0.5)); }

/* ---------- blocks ---------- */
.block { width: var(--wrap); margin: 30px auto 0; scroll-margin-top: 110px; }
.block-head { display: grid; justify-items: start; gap: 8px; max-width: 820px; margin-bottom: 18px; }
.block-head h2 { margin: 0; font: 400 clamp(1.7rem, 3.4vw, 2.3rem) / 1.1 var(--display); color: var(--gold); text-shadow: 0 3px 0 #000a2e; }

/* a carousel stage (demo packs, real packs / real cards) */
.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 12px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(60% 70% at 50% 40%, rgba(29, 75, 255, 0.35), transparent 70%),
    radial-gradient(rgba(127, 212, 255, 0.07) 1.2px, transparent 1.7px) 0 0 / 16px 16px,
    linear-gradient(180deg, #0c1760, #081048);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 4, 24, 0.4);
  overflow: hidden;
}
.stage::before { content: ""; position: absolute; left: 50%; top: 42%; z-index: -1; width: 1600px; aspect-ratio: 1; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, rgba(255, 210, 63, 0.07) 0deg 5deg, rgba(255, 210, 63, 0) 5deg 16deg); -webkit-mask: radial-gradient(circle, #000 3%, transparent 34%); mask: radial-gradient(circle, #000 3%, transparent 34%); animation: spin 160s linear infinite; }
.carousel-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; width: 100%; }
.arrow { width: 44px; height: 44px; border-radius: 50%; }
.carousel { --spot: var(--gold); position: relative; height: calc(var(--pw) / 0.62 + 50px); outline: none; touch-action: pan-y; }
/* the spotlight the middle item stands on */
.carousel::before,
.carousel::after { content: ""; position: absolute; left: 50%; pointer-events: none; transition: background 0.4s, border-color 0.4s; }
.carousel::after { top: 50%; width: calc(var(--pw) * 2.1); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--spot) 36%, transparent), transparent); z-index: 0; }
.carousel::before {
  top: calc(50% + var(--pw) / 0.62 / 2 + 4px);
  width: calc(var(--pw) * 1.75);
  height: calc(var(--pw) * 0.3);
  translate: -50% -50%;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--spot) 35%, transparent);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--spot) 38%, transparent), rgba(29, 75, 255, 0.2) 65%, transparent);
  z-index: 0;
}
.slot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--pw);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translate(-50%, -50%) translateX(var(--tx, 0px)) scale(var(--sc, 1));
  transition: transform 0.55s cubic-bezier(0.25, 1.2, 0.4, 1), opacity 0.35s, filter 0.35s;
  -webkit-tap-highlight-color: transparent;
}
.slot[data-a="1"] { filter: brightness(0.7) saturate(0.85); }
.slot[data-a="2"] { filter: brightness(0.5) saturate(0.7); }
.slot.is-far { opacity: 0; pointer-events: none; }
.slot-in { position: relative; width: 100%; transition: transform 0.2s ease-out; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.bob { position: relative; animation: bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.7s); }
.slot.is-center .bob { animation-duration: 2.6s; }
.slot .zpack { width: 100%; }
.slot.is-center .zpack { filter: drop-shadow(0 18px 22px rgba(0, 4, 24, 0.6)) drop-shadow(0 0 26px color-mix(in srgb, var(--spot) 45%, transparent)); }
.slot-tag { position: absolute; left: 50%; top: -14px; z-index: 6; translate: -50% 0; background: rgba(3, 10, 44, 0.9) !important; }

/* a demo card the viewer has won (drawn by the World's cards.js) */
.democard { position: relative; width: 100%; aspect-ratio: 252 / 352; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 16px 34px rgba(0, 4, 24, 0.55); }
.democard img { width: 100%; height: 100%; }
.slot.is-center .democard { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 70%, #fff), 0 20px 44px rgba(0, 4, 24, 0.6), 0 0 70px color-mix(in srgb, var(--c) 40%, transparent); }
.democard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%) 130% 0 / 260% 100% no-repeat; mix-blend-mode: soft-light; animation: sheen 4.5s ease-in-out infinite; }
.won-tag { position: absolute; left: 50%; bottom: -13px; z-index: 6; translate: -50% 0; background: rgba(3, 10, 44, 0.92) !important; }

/* a real graded card (the Collector Crypt slab photo): kept clean, nothing on top */
.slab { position: relative; width: 100%; aspect-ratio: 0.6; overflow: hidden; border-radius: 10px; background: #070b1c; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 16px 34px rgba(0, 4, 24, 0.55); transition: box-shadow 0.35s, transform 0.25s; }
.slab img { width: 100%; height: 100%; object-fit: contain; }
.slab::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.28) 50%, transparent 60%) 130% 0 / 260% 100% no-repeat; mix-blend-mode: soft-light; opacity: 0; transition: opacity 0.3s; }
.slot.is-center .slab { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 70%, #fff), 0 20px 44px rgba(0, 4, 24, 0.6), 0 0 70px color-mix(in srgb, var(--c) 40%, transparent); }
.slot.is-center .slab::after, .find-media:hover .slab::after { opacity: 1; animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 0%, 55% { background-position: 130% 0; } 90%, 100% { background-position: -30% 0; } }

/* nothing to show yet: the World's empty card slot */
.ghost { display: grid; place-items: center; align-content: center; gap: 12px; width: 100%; aspect-ratio: 0.62; border: 2px solid var(--line-2); border-radius: 14px; background: repeating-linear-gradient(45deg, #0d1535 0 6px, #111b42 6px 12px); color: var(--muted); text-align: center; }
.ghost-ring { display: grid; place-items: center; width: 44%; aspect-ratio: 1; border: 3px dashed #3b4c80; border-radius: 50%; color: #3b4c80; font: 400 calc(var(--pw) * 0.2) var(--display); }
.ghost-ring.is-charge { border-color: rgba(255, 210, 63, 0.5); color: var(--gold); }
.ghost b { font-weight: 400; font-size: 19px; color: var(--muted); }

.caption { display: grid; justify-items: center; gap: 6px; width: 100%; min-height: 70px; text-align: center; }
.title { max-width: 100%; margin: 0; overflow: hidden; font: 400 clamp(1.6rem, 3vw, 2.2rem) / 1.12 var(--display); color: #fff; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 3px 0 #000a2e; }
.title.is-long { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
.title.is-xlong { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; color: var(--muted); font-size: 19px; }
.meta b { color: var(--text); font-weight: 400; }
.meta .value { font: 400 1.35rem var(--display); color: var(--gold); line-height: 1; }
.meta a { color: var(--cyan); text-decoration: none; }
.dots { display: flex; justify-content: center; gap: 6px; min-height: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(169, 179, 214, 0.3); transition: width 0.25s, background 0.25s; }
.dots i.is-on { width: 22px; background: var(--gold); box-shadow: 0 0 8px rgba(255, 210, 63, 0.6); }
.dots i.is-won { background: rgba(192, 138, 255, 0.7); }
.dots i.is-won.is-on { background: var(--gold); }
.progress { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 14px; width: min(360px, 100%); margin-top: 4px; }
.progress b { justify-self: end; font: 400 24px var(--display); color: #fff; }
.progress b small { font-size: 16px; color: var(--muted); }
.progress .meter { grid-column: 1 / -1; height: 10px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.cta { min-width: min(340px, 100%); margin-top: 4px; }
.cta-links { margin: 2px 0 0; color: var(--muted); font-size: 18px; }

.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(3, 10, 44, 0.6); }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 16px; border: 0; border-radius: 99px; background: none; color: var(--muted); font-size: 20px; white-space: nowrap; }
.seg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.seg svg .fill { fill: currentColor; stroke: none; }
.seg b { min-width: 26px; padding: 0 7px; border-radius: 99px; background: rgba(169, 179, 214, 0.16); color: var(--text); font-weight: 400; font-size: 17px; line-height: 22px; text-align: center; }
.seg button.is-on { color: var(--navy-900); background: linear-gradient(180deg, #ffe066, var(--gold-2)); box-shadow: inset 0 0 0 1px #fff3b0, 0 2px 0 var(--gold-dark); }
.seg button.is-on b { background: rgba(6, 18, 79, 0.85); color: var(--gold); }

/* ---------- real cards: the machine, what's inside, the loop ---------- */
.real-intro { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 16px; align-items: stretch; }
.machine {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 138, 31, 0.4);
  border-radius: 22px;
  background: #0c0c10;
  box-shadow: 0 16px 40px rgba(0, 4, 24, 0.45), 0 0 50px rgba(255, 138, 31, 0.1);
}
.machine video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #111; }
.machine figcaption { padding: 12px 16px 14px; color: var(--muted); font-size: 18px; background: linear-gradient(180deg, #16161c, #0c0c10); }
.machine figcaption b { color: #fff; font-weight: 400; }
.machine figcaption a { color: var(--orange); text-decoration: none; }
.inside {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: radial-gradient(70% 60% at 70% 20%, rgba(255, 138, 31, 0.16), transparent 70%), linear-gradient(180deg, var(--card-2), var(--card));
}
.inside h3 { margin: 0; font: 400 22px var(--display); color: #fff; }
.ticks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; color: var(--muted); font-size: 19px; }
.ticks b { color: var(--text); font-weight: 400; }
.ticks i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 138, 31, 0.14); font-style: normal; font-size: 17px; }
.odds { display: grid; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(59, 76, 128, 0.55); }
.odds-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.odds-head small { color: var(--muted); font-size: 16px; }
.odds-bar { display: flex; gap: 3px; height: 12px; }
.odds-bar i { min-width: 8px; border-radius: 99px; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); }
.odds-rows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.odds-rows div { display: grid; justify-items: start; gap: 3px; padding: 7px 9px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--c) 8%, transparent); }
.odds-rows b { font: 400 18px / 1 var(--display); color: var(--c); }
.odds-rows span { color: var(--muted); font-size: 16px; }
.odds-rows em { color: var(--text); font-style: normal; font-size: 17px; }
.pack-fan { position: relative; height: 200px; margin: 0 0 6px; }
.pack-fan .zpack { position: absolute; left: 50%; bottom: 0; width: 118px; transform-origin: 50% 100%; }
.pack-fan .zpack:nth-child(1) { translate: -150% 0; rotate: -14deg; }
.pack-fan .zpack:nth-child(2) { translate: -50% -14px; z-index: 2; width: 128px; }
.pack-fan .zpack:nth-child(3) { translate: 50% 0; rotate: 14deg; }

.flow-title { margin: 26px 0 12px; font: 400 22px var(--display); color: #fff; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.flow li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 12px;
  row-gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
}
.flow-n { position: absolute; right: 12px; top: 10px; color: var(--line-2); font: 400 22px var(--display); }
.flow-i { grid-row: 1 / 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 210, 63, 0.12); border: 1px solid rgba(255, 210, 63, 0.3); font-size: 22px; }
.flow b { font: 400 18px / 1.15 var(--display); color: #fff; padding-right: 22px; }
.flow li > span:last-child { color: var(--muted); font-size: 18px; }

/* powered by the Collector Crypt ecosystem */
.eco {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(91, 234, 255, 0.35);
  border-radius: 22px;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(255, 124, 1, 0.14), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(4, 131, 255, 0.2), transparent 60%),
    linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: inset 0 2px 0 rgba(91, 234, 255, 0.4), 0 12px 32px rgba(0, 4, 24, 0.35);
}
.eco-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-bottom: 16px; }
.eco-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  rotate: -8deg;
  box-shadow: 0 5px 0 #000a2e, 0 0 34px rgba(91, 234, 255, 0.7), 0 0 70px rgba(255, 124, 1, 0.4);
  animation: ecoPop 2.4s ease-in-out infinite;
}
.eco-mark::before,
.eco-mark::after { content: ""; position: absolute; border-radius: 50%; }
.eco-mark::before { inset: 0; background: conic-gradient(#ff7c01, #ffd23f, #5beaff, #0483ff, #e35200, #ff7c01); animation: spin 4s linear infinite; }
.eco-mark::after { inset: 7px; border: 3px solid #06124f; background: radial-gradient(circle at 35% 28%, #fff, #eef6ff 55%, #bcd6f2); box-shadow: inset 0 -5px 0 rgba(6, 18, 79, 0.12); }
.eco-mark img { position: relative; z-index: 1; width: auto; height: 64px; filter: drop-shadow(0 3px 0 rgba(6, 18, 79, 0.3)) drop-shadow(0 0 10px rgba(91, 234, 255, 0.6)); }
.eco-mark .spark { position: absolute; z-index: 2; width: 14px; height: 14px; background: #ffd23f; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 1.8s ease-in-out infinite; }
.eco-mark .spark.a { left: -4px; top: 6px; }
.eco-mark .spark.b { right: -6px; bottom: 10px; width: 10px; height: 10px; background: #5beaff; animation-delay: 0.9s; }
@keyframes ecoPop { 0%, 100% { scale: 1; } 50% { scale: 1.06; } }
.eco-head h3 { margin: 2px 0 6px; font: 400 23px var(--display); color: #fff; }
.eco-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.eco-grid article { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(3, 10, 44, 0.45); }
.eco-grid i { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(91, 234, 255, 0.3); border-radius: 12px; background: rgba(91, 234, 255, 0.1); font-style: normal; font-size: 19px; }
.eco-grid i img { width: auto; height: 28px; }
.eco-grid b { font: 400 17px / 1.15 var(--display); color: #fff; }
.eco-grid span { color: var(--muted); font-size: 18px; }
.eco-grid .is-cards { border-color: rgba(255, 124, 1, 0.5); background: radial-gradient(80% 100% at 0% 0%, rgba(255, 124, 1, 0.12), transparent 70%), rgba(3, 10, 44, 0.45); }
.eco-grid .is-cards { grid-template-columns: 52px minmax(0, 1fr); }
.eco-grid .is-cards i { width: 52px; height: 52px; border: 2px solid #06124f; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff, #eef6ff 55%, #bcd6f2); box-shadow: 0 0 0 3px #ff7c01, 0 0 18px rgba(91, 234, 255, 0.6), 0 0 30px rgba(255, 124, 1, 0.35); }
.eco-grid .is-cards i img { height: 32px; }

.soon-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 210, 63, 0.4);
  border-radius: 22px;
  background: radial-gradient(60% 90% at 20% 50%, rgba(255, 138, 31, 0.18), transparent 70%), linear-gradient(180deg, var(--card-2), var(--card));
}
.soon-card h3 { margin: 8px 0 6px; font: 400 22px var(--display); color: #fff; }
.soon-card .note { margin-bottom: 14px; }
.soon-packs { display: flex; }
.soon-packs .zpack { width: 96px; }
.soon-packs .zpack + .zpack { margin-left: -46px; }
.soon-packs .zpack:nth-child(1) { rotate: -10deg; }
.soon-packs .zpack:nth-child(2) { z-index: 2; translate: 0 -8px; }
.soon-packs .zpack:nth-child(3) { rotate: 10deg; }

#realStage { margin-top: 16px; }

/* ---------- numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.stat { display: grid; align-content: start; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--card-2), var(--card)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); color: var(--text); text-decoration: none; }
.stat b { font: 400 30px / 1 var(--display); color: #fff; }
.stat b.gold { color: var(--gold); }
.stat b small { font-family: var(--display); font-size: 18px; color: var(--muted); }
.stat-sub { color: var(--muted); font-size: 17px; }
a.stat:hover { border-color: rgba(255, 210, 63, 0.5); }

/* ---------- hall of finds ---------- */
.hall { margin-top: 26px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.section-head h3 { margin: 0; font: 400 22px var(--display); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.find { --c: var(--gold); display: grid; grid-template-rows: auto 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--card-2), var(--card)); box-shadow: inset 0 2px 0 color-mix(in srgb, var(--c) 60%, transparent), 0 8px 24px rgba(0, 0, 0, 0.25); transition: border-color 0.2s, transform 0.2s; }
.find.r-common { --c: var(--green); }
.find.r-uncommon { --c: var(--cyan); }
.find.r-rare { --c: var(--gold); }
.find.r-epic { --c: var(--purple); }
.find:hover { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); transform: translateY(-3px); }
.find-media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 18px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  background: radial-gradient(58% 54% at 50% 46%, color-mix(in srgb, var(--c) 46%, transparent), transparent 74%), radial-gradient(rgba(127, 212, 255, 0.1) 1.2px, transparent 1.7px) 0 0 / 14px 14px, rgba(3, 10, 44, 0.65);
  cursor: pointer;
}
.find-media .slab { width: 64%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, rgba(255, 255, 255, 0.2)), 0 14px 26px rgba(0, 4, 24, 0.6); }
.find-media:hover .slab { transform: translateY(-4px) scale(1.03); }
.find-media .zpack { width: 58%; }
.find-play { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid #3a2a00; border-radius: 50%; background: linear-gradient(180deg, #ffe066, var(--gold-2)); box-shadow: inset 0 0 0 1px #fff3b0, 0 2px 0 var(--gold-dark); }
.find-play svg { width: 12px; height: 12px; margin-left: 2px; fill: var(--navy-900); }
.find-body { display: grid; align-content: start; gap: 5px; padding: 12px 4px 4px; }
.find-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.find-chips .chip { font-size: 16px; }
.find-name { margin: 2px 0 0; font: 400 18px / 1.15 var(--display); color: #fff; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.find-set { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.find-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.find-value { font: 400 24px / 1 var(--display); color: var(--gold); }
.find-by { overflow: hidden; color: var(--text); font-size: 18px; white-space: nowrap; text-overflow: ellipsis; }
.find-meta { margin: 0; color: var(--muted); font-size: 17px; }
.find-meta a { color: var(--cyan); text-decoration: none; }
.find.is-empty { border-style: dashed; background: rgba(20, 30, 82, 0.4); box-shadow: none; }
.find.is-empty:hover { transform: none; border-color: var(--line); }
.find.is-empty .find-media { cursor: default; background: repeating-linear-gradient(45deg, #0d1535 0 6px, #111b42 6px 12px); }
.empty-slot { display: grid; place-items: center; width: 64%; aspect-ratio: 0.6; }
.empty-slot span { display: grid; place-items: center; width: 60%; aspect-ratio: 1; border: 3px dashed #3b4c80; border-radius: 50%; color: #3b4c80; font: 400 36px var(--display); }

/* ---------- demo vs real ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cmp { padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--card-2), var(--card)); }
.cmp.is-demo { box-shadow: inset 0 2px 0 rgba(95, 232, 111, 0.5); }
.cmp.is-real { box-shadow: inset 0 2px 0 rgba(255, 138, 31, 0.55); }
.cmp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cmp-head b { font: 400 20px var(--display); color: #fff; }
.cmp dl { display: grid; margin: 0; }
.cmp dl div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(59, 76, 128, 0.55); }
.cmp dt { color: var(--muted); font-size: 18px; }
.cmp dd { margin: 0; font-size: 19px; }
.foot { width: var(--wrap); margin: 30px auto 0; padding: 0 0 36px; color: var(--muted); font-size: 17px; text-align: center; opacity: 0.85; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 108px; left: 50%; z-index: 60; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); translate: -50% 0; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255, 210, 63, 0.45); border-radius: 14px; background: linear-gradient(180deg, var(--card-2), var(--card)); box-shadow: 0 12px 30px rgba(0, 4, 24, 0.5); color: var(--text); font-size: 19px; pointer-events: auto; animation: toastIn 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
.toast.is-out { opacity: 0; translate: 0 -10px; transition: opacity 0.3s, translate 0.3s; }
.toast-i { font-size: 20px; }
.toast button { margin-left: auto; min-height: 34px; padding: 4px 12px; border: 2px solid #3a2a00; border-radius: 10px; background: linear-gradient(180deg, #ffe066, var(--gold-2)); color: var(--navy-900); font: 400 14px var(--display); }
@keyframes toastIn { from { opacity: 0; translate: 0 -14px; } }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .phases { grid-template-columns: 1fr; }
  .phase-arrow { rotate: 90deg; }
  .real-intro { grid-template-columns: 1fr; }
  .eco-grid { grid-template-columns: 1fr 1fr; }
  .eco-head { grid-template-columns: auto minmax(0, 1fr); }
  .eco-head .btn { grid-column: 1 / -1; justify-self: start; }
  .flow { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --pw: clamp(140px, 42vw, 180px); }
  .brand span { font-size: 17px; }
  .brand img { width: 32px; height: 32px; }
  .page-tag, .online { display: none !important; }
  .brand { margin-right: auto; }
  .intro { padding-top: 18px; gap: 14px; }
  .hero { align-items: flex-start; }
  .hero-zaza { width: 60px; }
  .lede { font-size: 18px; }
  .phase { grid-template-columns: 70px minmax(0, 1fr); padding: 14px; gap: 12px; }
  .phase-art .zpack { width: 64px; }
  .phase-body b { font-size: 19px; }
  .stage { padding: 14px 4px 18px; border-radius: 20px; }
  .carousel-row { gap: 2px; }
  .arrow { width: 36px; height: 36px; }
  .cta-row { width: 100%; padding: 0 8px; }
  .cta-row .btn { width: 100%; }
  .cta { width: calc(100% - 16px); }
  .flow { grid-template-columns: 1fr; }
  .eco { padding: 16px; }
  .eco-grid { grid-template-columns: 1fr; }
  .eco-mark { width: 84px; height: 84px; }
  .eco-mark::after { inset: 5px; }
  .eco-mark img { height: 48px; }
  .soon-card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px 16px; }
  .soon-card .badge { margin: 0 auto; }
  .stat { padding: 12px; }
  .stat b { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .find { padding: 8px; }
  .find-media .slab { width: 72%; }
  .find-name { font-size: 16px; }
  .find-value { font-size: 20px; }
  .find-by { font-size: 17px; }
  .cmp dl div { grid-template-columns: 80px 1fr; }
  .odds-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pack-fan { height: 168px; }
  .pack-fan .zpack { width: 94px; }
  .pack-fan .zpack:nth-child(2) { width: 104px; }
  .find.is-empty:nth-child(n+3) { display: none; }
  .toasts { top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-rays, .stage::before, .px, .bob, .eco-mark, .eco-mark::before, .eco-mark .spark, .hero-zaza, .slab::after, .democard::after, .live-dot, .online i { animation: none !important; }
}

/* the holo follows the pointer on the middle pack */
@media (hover: hover) {
  .slot.is-center:hover .zpack-holo,
  .slot.is-center:hover .zpack-sheen { animation: none; transition: background-position 0.15s; }
}
