/* 7packs shared styles: base, layout, components and effects used by every page.
   Page-specific layout lives in each page's own stylesheet (home.css, pack.css…). */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--text-body)/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--action); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
::selection { background: var(--action); color: var(--on-action); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-md); background: var(--action); color: var(--on-action); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- layout & type ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-deep { background: var(--bg-deep); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-8); margin-bottom: var(--space-10); }
.section-head > div { display: grid; gap: var(--space-3); max-width: 640px; }
.eyebrow { font-size: var(--text-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--action); }
.h-display { font-family: var(--font-display); font-weight: 800; font-size: var(--text-display); line-height: 1.02; letter-spacing: -0.025em; }
.h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--text-h2); line-height: 1.12; letter-spacing: -0.015em; }
.h3 { font-size: var(--text-h3); font-weight: 600; line-height: 1.3; }
.lead { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); line-height: 1.6; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.num { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--action); }
.text-link svg { transition: transform 0.25s var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn {
  --btn-h: var(--control-md);
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none; overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-sm { --btn-h: var(--control-sm); padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { --btn-h: var(--control-lg); padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--action); color: var(--on-action); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 24px -10px rgba(130, 221, 90, 0.6); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-130%) skewX(-18deg);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 14px 32px -10px rgba(130, 221, 90, 0.75); }
.btn-primary:hover::after { transform: translateX(330%) skewX(-18deg); transition: transform 0.8s var(--ease-out); }
.btn-primary:active { background: var(--action-pressed); color: var(--glow); }
/* Idle shimmer for the one main call to action of a section. */
.btn-shimmer::after { animation: btn-shimmer 4.5s var(--ease-out) infinite 1.2s; }
@keyframes btn-shimmer { 0%, 72% { transform: translateX(-130%) skewX(-18deg); } 100% { transform: translateX(330%) skewX(-18deg); } }

.btn-secondary { background: transparent; border-color: var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--action); color: var(--action); transform: translateY(-2px); }
.btn-dark { background: var(--bg-deep); color: var(--text); border-color: var(--line); }
.btn-dark:hover { background: var(--surface); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); padding-inline: 12px; }
.btn-ghost:hover { color: var(--action); }
.btn-icon { width: var(--btn-h); padding: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgba(20, 22, 30, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: rgba(52, 58, 77, 0.7); background: rgba(20, 22, 30, 0.92); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-8); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  color: var(--text-muted); font-size: 15px; font-weight: 600; border-radius: 10px;
  transition: color 0.2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--action); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }

.points-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 14px;
  border-radius: var(--radius-pill); background: var(--bg-deep); border: 1px solid var(--line);
  color: var(--text); font-weight: 600; font-size: 14px;
}
.points-pill .num { font-size: 14px; }
.points-pill .add {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--action); color: var(--on-action); transition: transform 0.3s var(--ease-spring);
}
.points-pill:hover .add { transform: rotate(90deg) scale(1.08); }
.points-pill .add svg { width: 16px; height: 16px; }
.coin { width: 18px; height: 18px; flex: none; }
.avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-weight: 600; font-size: 14px; transition: border-color 0.2s;
}
.avatar:hover { border-color: var(--action); }
.menu-toggle { display: none; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgba(8, 9, 13, 0.6); opacity: 0; transition: opacity 0.3s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
  display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-5);
  background: var(--bg-deep); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform 0.4s var(--ease-out);
}
.drawer.is-open { visibility: visible; }
.drawer.is-open::before { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; }
.drawer nav { display: grid; gap: 4px; }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 14px; border-radius: var(--radius-md); color: var(--text); font-weight: 600; font-size: 17px; }
.drawer nav a:hover, .drawer nav a[aria-current="page"] { background: var(--surface); }
.drawer-foot { margin-top: auto; display: grid; gap: var(--space-3); }

/* bottom tab bar (phones) */
.tabbar { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .hide-mobile { display: none; }
  .brand img { height: 28px; }
}
@media (max-width: 760px) {
  body.has-tabbar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: repeat(4, 1fr);
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(20, 22, 30, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    color: var(--text-muted); font-size: 11px; font-weight: 600;
  }
  .tabbar a svg { width: 22px; height: 22px; transition: transform 0.3s var(--ease-spring); }
  .tabbar a[aria-current="page"] { color: var(--action); }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--action); }
  .tabbar a:active svg { transform: scale(0.88); }
}

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-block: var(--space-14) var(--space-8); color: var(--text-muted); font-size: var(--text-small); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--space-10) var(--space-8); }
.footer-brand { display: grid; gap: var(--space-4); align-content: start; max-width: 300px; }
.footer-brand img { height: 32px; width: auto; }
.footer-col h2 { margin-bottom: var(--space-4); color: var(--text); font-size: var(--text-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--action); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.footer-bottom .notes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- badges, chips, seals ---------- */
.seal-18 { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 7px; border-radius: 6px; border: 1.5px solid currentColor; color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.badge-action { background: var(--action); color: var(--on-action); }
.badge-ink { background: var(--ink); color: var(--action); }
.badge-line { border: 1px solid var(--line); color: var(--text-muted); }
.badge-glass { background: rgba(20, 22, 30, 0.72); color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.08); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--action)); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--action); animation: fx-pulse 1.8s infinite; flex: none; }
.rarity { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--c); }
.rarity::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.r-common { --c: var(--rarity-common); }
.r-rare { --c: var(--rarity-rare); }
.r-ultra { --c: var(--rarity-ultra); }
.r-special { --c: var(--rarity-special); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: transparent;
  color: var(--text-muted); font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.chip:hover { color: var(--text); border-color: #4a5168; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg-deep); }
.chip:active { transform: scale(0.96); }
.scroll-x { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { flex: none; }
@media (max-width: 760px) {
  .chips.scroll-mobile { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chips.scroll-mobile::-webkit-scrollbar { display: none; }
  .chips.scroll-mobile > * { flex: none; }
}

/* ---------- pack card ---------- */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-5); }
.pack {
  --glow: var(--action);
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-5);
  border-radius: var(--radius-lg); background: var(--bg-card); color: var(--text);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), background-color 0.3s, box-shadow 0.4s var(--ease-out);
}
.pack:hover { transform: translateY(-6px); background: var(--bg-card-hover); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px color-mix(in srgb, var(--glow) 35%, transparent); }
.pack-badges { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.pack-stage { position: relative; height: 250px; }
.pack-light {
  position: absolute; left: 50%; top: 4%; width: 90%; height: 60%; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--glow) 60%, transparent), transparent 66%);
  filter: blur(14px); opacity: 0.25; transition: opacity 0.45s;
}
.pack:hover .pack-light { opacity: 1; }
.pack-card {
  position: absolute; left: 50%; bottom: 26%; width: 40%; border-radius: 6px; opacity: 0;
  transform: translateX(-50%) translateY(16%) scale(0.85);
  transition: transform 0.6s var(--ease-out), opacity 0.35s;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}
.pack:hover .pack-card { opacity: 1; }
.pack:hover .pack-card.c1 { transform: translateX(-104%) translateY(-30%) rotate(-15deg); }
.pack:hover .pack-card.c2 { transform: translateX(-50%) translateY(-48%) rotate(0deg); transition-delay: 0.04s; }
.pack:hover .pack-card.c3 { transform: translateX(4%) translateY(-30%) rotate(15deg); transition-delay: 0.08s; }
.pack-body, .pack-strip {
  position: absolute; left: 50%; bottom: 0; height: 96%; width: auto;
  transform: translateX(-50%);
  transition: transform 0.55s var(--ease-out);
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.55));
}
.pack-body { clip-path: inset(9.6% 0 0 0); }
.pack-strip { clip-path: inset(0 0 90.4% 0); transform-origin: 88% 8%; }
.pack:hover .pack-strip { transform: translateX(-50%) translate(16px, -24px) rotate(13deg); }
.pack:hover .pack-body { transform: translateX(-50%) translateY(8px); }
.pack-meta { display: grid; gap: 4px; }
.pack-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.pack-name { font-size: 17px; font-weight: 600; }
.pack-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.price { display: inline-flex; align-items: baseline; gap: 5px; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.price small { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--text-muted); }
.pack-cta {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--action) 14%, transparent); color: var(--action); font-size: 13px; font-weight: 600;
  transition: background-color 0.25s, color 0.25s;
}
.pack-cta svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.pack:hover .pack-cta { background: var(--action); color: var(--on-action); }
.pack:hover .pack-cta svg { transform: translateX(3px); }
/* Rare tiers get a slowly turning border. */
.pack.is-rare::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--fx-angle, 0deg), transparent 0 55%, var(--glow) 70%, var(--glow) 74%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: fx-angle 4s linear infinite;
}
@property --fx-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes fx-angle { to { --fx-angle: 360deg; } }

/* No hover on touch screens: packs peek open on their own, one after another. */
@media (hover: none) {
  .pack .pack-light { animation: fx-peek-glow 6s var(--ease-out) infinite var(--delay, 0s); }
  .pack .pack-strip { animation: fx-peek-strip 6s var(--ease-out) infinite var(--delay, 0s); }
  .pack .pack-body { animation: fx-peek-body 6s var(--ease-out) infinite var(--delay, 0s); }
  .pack .pack-card.c1 { animation: fx-peek-c1 6s var(--ease-out) infinite var(--delay, 0s); }
  .pack .pack-card.c2 { animation: fx-peek-c2 6s var(--ease-out) infinite var(--delay, 0s); }
  .pack .pack-card.c3 { animation: fx-peek-c3 6s var(--ease-out) infinite var(--delay, 0s); }
}
@keyframes fx-peek-strip { 0%, 50%, 100% { transform: translateX(-50%); } 60%, 88% { transform: translateX(-50%) translate(14px, -22px) rotate(13deg); } }
@keyframes fx-peek-body { 0%, 50%, 100% { transform: translateX(-50%); } 60%, 88% { transform: translateX(-50%) translateY(7px); } }
@keyframes fx-peek-glow { 0%, 50%, 100% { opacity: 0.25; } 60%, 88% { opacity: 1; } }
@keyframes fx-peek-c1 { 0%, 50%, 100% { opacity: 0; transform: translateX(-50%) scale(0.9); } 60%, 88% { opacity: 1; transform: translateX(-104%) translateY(-30%) rotate(-15deg); } }
@keyframes fx-peek-c2 { 0%, 50%, 100% { opacity: 0; transform: translateX(-50%) scale(0.9); } 62%, 88% { opacity: 1; transform: translateX(-50%) translateY(-48%); } }
@keyframes fx-peek-c3 { 0%, 50%, 100% { opacity: 0; transform: translateX(-50%) scale(0.9); } 64%, 88% { opacity: 1; transform: translateX(4%) translateY(-30%) rotate(15deg); } }

/* ---------- trading card tile (possible cards, collection) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-5); }
.tcg { display: grid; gap: var(--space-2); color: var(--text); }
.tcg-art {
  position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 5 / 7;
  background: var(--bg-deep);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.tcg-art img { width: 100%; height: 100%; object-fit: cover; }
.tcg-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.35), transparent 45%);
  opacity: 0; transition: opacity 0.3s;
}
.tcg:hover .tcg-art, .tcg:focus-visible .tcg-art { --lift: -6px; box-shadow: 0 22px 40px -10px rgba(0, 0, 0, 0.65); }
.tcg:hover .tcg-art::after { opacity: 1; }
.tcg-art.is-tilting { transition: transform 0.12s linear, box-shadow 0.45s var(--ease-out); }
.tcg-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-muted); }
.tcg-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* holographic sheen for rare cards and the hero */
.holo { position: relative; overflow: hidden; }
.holo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: color-dodge;
  background: linear-gradient(115deg, transparent 22%, rgba(130, 221, 90, 0.45) 36%, rgba(110, 195, 255, 0.4) 48%, rgba(255, 122, 217, 0.35) 60%, transparent 76%);
  background-size: 240% 100%; animation: fx-foil 5s linear infinite; opacity: 0.75;
}

/* ---------- live pulls marquee ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: var(--space-3); width: max-content; animation: fx-marquee var(--marquee-speed, 48s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.pull {
  display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: var(--radius-md);
  background: var(--bg-card); border: 1px solid transparent; flex: none; transition: border-color 0.25s;
}
.pull:hover { border-color: var(--line); }
.pull img { width: 36px; height: 50px; border-radius: 4px; object-fit: cover; }
.pull-text { display: grid; gap: 2px; }
.pull-text strong { font-size: 13px; font-weight: 600; white-space: nowrap; }
.pull-text span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* ---------- odds bars ---------- */
.odds { display: grid; gap: var(--space-3); }
.odds-row { display: grid; gap: 6px; }
.odds-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.odds-top > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.odds-top .muted { font-size: 13px; font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: var(--radius-pill); background: var(--surface-raised); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--c, var(--action)); transform-origin: left; }
[data-reveal] .bar span, .bar.animate span { transform: scaleX(0); transition: transform 1.1s var(--ease-out) calc(var(--i, 0) * 90ms + 0.15s); }
.is-in .bar span, .bar.animate.is-in span { transform: scaleX(1); }

/* ---------- quantity stepper ---------- */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; transition: background-color 0.2s, color 0.2s; }
.stepper button:hover:not(:disabled) { background: var(--surface); color: var(--action); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output { min-width: 92px; text-align: center; font-weight: 600; font-size: 15px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field label, .field .label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--text-muted); }
.input, .select {
  width: 100%; height: var(--control-md); padding: 0 16px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--bg-deep); color: var(--text); font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #6f7588; }
.input:hover, .select:hover { border-color: #4a5168; }
.input:focus, .select:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(130, 221, 90, 0.18); }
.input[aria-invalid="true"] { border-color: #ff8a7a; }
.field-error { font-size: 13px; color: #ff8a7a; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a7adbd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; border: 1.5px solid var(--line); background: var(--bg-deep); display: grid; place-items: center; transition: background-color 0.2s, border-color 0.2s; }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--on-action); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.2s var(--ease-spring); }
.check input:checked { background: var(--action); border-color: var(--action); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.code-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-inputs input { height: 56px; text-align: center; padding: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- auth / modal ---------- */
.modal { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--bg-card); color: var(--text); overflow: auto; }
.modal::backdrop { background: rgba(8, 9, 13, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.4s var(--ease-out); }
.modal[open]::backdrop { animation: fade-in 0.3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-body { position: relative; display: grid; gap: var(--space-5); padding: var(--space-8) var(--space-8) var(--space-6); }
.modal-close { position: absolute; top: 16px; right: 16px; }
.auth-step { display: grid; gap: var(--space-5); }
.auth-step[hidden] { display: none; }
.auth-step.is-active { animation: step-in 0.45s var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.auth-head { display: grid; gap: 8px; padding-right: 40px; }
.auth-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.15; }
.auth-head p { color: var(--text-muted); font-size: 15px; }
.auth-head img { width: 44px; height: 44px; margin-bottom: 4px; }
.provider { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: var(--control-md); border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--bg-deep); font-weight: 600; font-size: 15px; transition: border-color 0.2s, transform 0.2s var(--ease-out); }
.provider:hover { border-color: #5a6280; transform: translateY(-1px); }
.provider svg { width: 20px; height: 20px; }
.auth-legal { font-size: 12.5px; color: var(--text-muted); text-align: center; }
.auth-legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) {
  .modal { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; border-bottom: 0; }
  .modal[open] { animation: sheet-in 0.45s var(--ease-out); }
  .modal-body { padding: var(--space-6) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom)); }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
}

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-deep); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; }
.tab .count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-raised); font-size: 12px; display: inline-grid; place-items: center; }

/* ---------- accordion (FAQ) ---------- */
.faq { display: grid; gap: var(--space-3); }
.faq details { border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid transparent; transition: border-color 0.25s, background-color 0.25s; }
.faq details:hover { border-color: var(--line); }
.faq details[open] { background: var(--surface-raised); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 20px 24px; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-deep); transition: transform 0.35s var(--ease-out), background-color 0.25s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--text); }
.faq summary .plus::after { transform: rotate(90deg); transition: transform 0.35s var(--ease-out); }
.faq details[open] summary .plus { background: var(--action); transform: rotate(180deg); }
.faq details[open] summary .plus::before, .faq details[open] summary .plus::after { background: var(--on-action); }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq .answer { padding: 0 24px 22px; color: var(--text-muted); max-width: 760px; }

/* ---------- panels ---------- */
.panel { border-radius: var(--radius-xl); background: var(--bg-card); padding: var(--space-6); }
.panel-deep { border-radius: var(--radius-lg); background: var(--bg); padding: var(--space-5); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); background: var(--ink); color: var(--text); font-size: 14px; }
.notice svg { width: 20px; height: 20px; color: var(--action); flex: none; margin-top: 1px; }
.check-list { display: grid; gap: 12px; font-size: 14px; color: var(--text-muted); }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list svg { width: 18px; height: 18px; flex: none; color: var(--action); margin-top: 2px; }

/* ---------- effects ---------- */
@keyframes fx-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(0.8deg); } }
@keyframes fx-twinkle { 0%, 100% { opacity: 0; transform: scale(0.3); } 50% { opacity: 1; transform: scale(1); } }
@keyframes fx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fx-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(130, 221, 90, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(130, 221, 90, 0); } }
@keyframes fx-foil { from { background-position: 0% 50%; } to { background-position: 240% 50%; } }
@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-sweep { 0%, 65% { transform: translateX(-140%) skewX(-18deg); } 100% { transform: translateX(340%) skewX(-18deg); } }
.fx-float { animation: fx-float 6s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.sparkle { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px 3px rgba(130, 221, 90, 0.75); animation: fx-twinkle 3.2s ease-in-out infinite; pointer-events: none; }

/* Scroll reveal: site.js adds .is-in when the element enters the viewport. */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80;
  max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: var(--radius-md);
  background: var(--text); color: var(--bg-deep); font-weight: 600; font-size: 14px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 140%); opacity: 0; transition: transform 0.45s var(--ease-out), opacity 0.3s;
  pointer-events: none;
}
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }
/* Phones: toasts drop in under the header, so they never cover the bottom bars and buttons. */
@media (max-width: 760px) {
  .toast { top: calc(var(--header-h) + 12px); bottom: auto; left: 16px; right: 16px; max-width: none; text-align: center; transform: translateY(-160%); }
  .toast.is-in { transform: none; }
}

/* ---------- pack grid on phones: two compact columns ---------- */
@media (max-width: 560px) {
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pack { padding: 12px 12px 14px; border-radius: 16px; gap: 10px; }
  .pack-badges { top: 10px; left: 10px; right: 10px; }
  .pack-stage { height: 190px; }
  .pack-name { font-size: 15px; }
  .pack-kicker { font-size: 11px; }
  .price { font-size: 15px; }
  .pack-cta { height: 30px; padding: 0 9px; font-size: 12px; }
}

/* ---------- header on very narrow phones (320–360px) ---------- */
@media (max-width: 360px) {
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm:not(.btn-icon) { padding-inline: 12px; }
}

/* ---------- pack card CTA: icon only on narrow phones, so 5-digit prices fit ---------- */
.pack-cta svg { flex: none; }
@media (max-width: 440px) {
  .pack-cta { width: 30px; padding: 0; justify-content: center; border-radius: 9px; }
  .pack-cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- small shared fixes ---------- */
.btn[hidden] { display: none; }
.text-link svg { width: 16px; height: 16px; flex: none; }
.chip[aria-pressed="true"] .dot { box-shadow: 0 0 0 1.5px var(--bg-deep); }
@media (max-width: 360px) {
  .odds-top { font-size: 13px; }
  .odds-top .muted { font-size: 12px; white-space: nowrap; }
}
