/* ============================================================
   Phygitals — style replica
   Dark theme tokens translated from the original Tailwind setup
   ============================================================ */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'nekst';
  src: url(../assets/fonts/nekst.woff2) format('woff2');
  font-display: swap;
  font-weight: 900;
}
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/press-start-latin.woff2) format('woff2');
}

:root {
  --bg: #1a1a1a;            /* hsl(0 0% 10%) page background */
  --app: #171717;           /* neutral-900 app surface */
  --card: #1f1f1f;          /* hsl(0 0% 12%) */
  --card2: #262626;         /* neutral-800 */
  --border: rgba(255,255,255,.1);
  --border-soft: rgba(255,255,255,.05);
  --txt: #fafafa;
  --txt-60: rgba(255,255,255,.6);
  --txt-45: rgba(255,255,255,.45);
  --txt-25: rgba(255,255,255,.25);
  --neutral-400: #a3a3a3;
  --neutral-600: #525252;
  --emerald: #10b981;
  --emerald-light: #34d399;
  --font-nekst: 'nekst', sans-serif;
  --shadow-card: 0 4px 20px rgba(0,0,0,.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
html.disable-transitions * { transition: none !important; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--txt);
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
svg { display: block; flex-shrink: 0; }

/* ============================================================
   APP SHELL — desktop-app window framing
   ============================================================ */
.app-shell { height: 100dvh; padding: 0; }
.shell-wrap { height: 100%; width: 100%; overflow: hidden; }
.nav-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--app);
  border-radius: 0;
  border: none;
}
@media (min-width: 640px) {
  .app-shell { padding: 8px; }
  .nav-shell { border-radius: 12px; border: 1px solid var(--border-soft); }
}

/* ============================================================
   PROMO BANNER
   ============================================================ */
.nav-promo-banner {
  height: 40px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(90deg, rgba(16,185,129,.12), rgba(16,185,129,.03) 55%, rgba(16,185,129,.10));
  position: relative;
  overflow: hidden;
}
.promo-banner-btn {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 16px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
  color: rgba(255,255,255,.85);
  transition: background-color .2s ease;
}
.promo-banner-btn:hover { background: rgba(255,255,255,.04); }
.promo-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(16,185,129,.9);
  animation: promo-pulse 2s ease-in-out infinite;
}
@keyframes promo-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.promo-arrow { width: 14px; height: 14px; color: var(--emerald-light); }
.promo-banner-btn:hover .promo-arrow { transform: translateX(2px); }
.promo-arrow { transition: transform .2s ease; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  flex-shrink: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.header.scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(23,23,23,.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-inner {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
@media (min-width: 640px) { .header-inner { padding: 0 24px; } }
.header-mobile { display: block; }
.header-desktop { display: none; }
@media (min-width: 1024px) {
  .header-mobile { display: none; }
  .header-desktop { display: block; }
}

.header-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.header-right { display: flex; align-items: center; gap: 6px; }

.logo-wordmark { height: 20px; width: auto; opacity: .9; transition: transform .15s ease, opacity .15s ease; }
.logo-wordmark:hover { transform: scale(1.05); opacity: 1; }
.logo-wordmark.lg { height: 22px; }
.logo-text {
  display: inline-block;
  font-family: var(--font-nekst);
  font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 20px;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,.8) 55%, rgba(255,255,255,.3));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.logo-text.lg { font-size: 20px; line-height: 22px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  color: #a3a3a3;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.icon-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
.icon-btn:active { transform: scale(.96); }
.icon-btn svg { width: 20px; height: 20px; }

/* nav links */
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  color: #e5e5e5;
  transition: color .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-link svg { width: 16px; height: 16px; }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-more[data-open="true"] .nav-link .chev { transform: rotate(180deg); }

.new-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px; font-weight: 700; line-height: 1.4;
  background: linear-gradient(to right, var(--emerald), #22c55e);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* more dropdown */
.nav-more { position: relative; }
.more-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 208px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #1f1f1f;
  box-shadow: 0 12px 32px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.nav-more[data-open="true"] .more-menu { opacity: 1; transform: none; pointer-events: auto; }
.more-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500; color: #d4d4d4;
  transition: background-color .15s ease, color .15s ease;
}
.more-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.more-item svg { width: 16px; height: 16px; color: #a3a3a3; }

/* right-side actions */
.how-it-works-btn {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  color: #d4d4d4;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.how-it-works-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.how-it-works-btn:active { transform: scale(.96); }
.how-it-works-btn svg { width: 16px; height: 16px; }
.hiw-label { display: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
@media (min-width: 1280px) { .hiw-label { display: inline; } }
.v-divider { width: 1px; height: 24px; background: rgba(255,255,255,.1); }

.login-btn {
  display: flex; align-items: center;
  height: 40px; padding: 0 16px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  color: #d4d4d4;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.login-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.login-btn:active { transform: scale(.96); }

.signup-btn {
  display: flex; align-items: center;
  height: 40px; padding: 0 20px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.88));
  color: #171717;
  transition: opacity .3s ease, transform .15s ease;
}
.signup-btn:hover { opacity: .9; }
.signup-btn:active { transform: scale(.96); }

/* mobile drawer */
.mobile-drawer { display: none; }
.mobile-drawer.open { display: block; }
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .25s ease;
}
.mobile-drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 81;
  width: 280px;
  background: #1c1c1c;
  border-right: 1px solid var(--border-soft);
  padding: 16px;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
}
.mobile-drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-link {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px;
  border-radius: 10px;
  font-size: 15px; font-weight: 500; color: #e5e5e5;
  transition: background-color .15s ease;
}
.drawer-link:hover { background: rgba(255,255,255,.06); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--app);
  scroll-behavior: smooth;
}
.main::-webkit-scrollbar { width: 10px; }
.main::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; border: 2px solid var(--app); }
.main::-webkit-scrollbar-track { background: transparent; }

.hero-section { padding: 16px 0 8px; }
.container { margin: 0 auto; width: 100%; max-width: 1600px; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.section-block { margin-top: 40px; }
@media (min-width: 640px) { .section-block { margin-top: 56px; } }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px; gap: 12px;
}
@media (min-width: 640px) { .section-head { margin-bottom: 20px; } }
.section-head.center { justify-content: center; text-align: center; }
.section-title {
  font-family: var(--font-nekst);
  font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,.8) 55%, rgba(255,255,255,.3));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (min-width: 640px) { .section-title { font-size: 30px; } }
.section-eyebrow {
  margin-bottom: 6px;
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .3em; color: var(--txt-45);
}
.section-sub { margin: 6px auto 0; max-width: 448px; font-size: 14px; color: var(--neutral-400); }
.section-side {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; color: var(--txt-45);
  transition: color .2s ease;
  white-space: nowrap;
}
.section-side:hover { color: rgba(255,255,255,.7); }
.section-side svg { width: 13px; height: 13px; }

/* ============================================================
   HERO
   ============================================================ */
.hero-mobile { display: block; }
.hero-desktop { display: none; }
@media (min-width: 768px) {
  .hero-mobile { display: none; }
  .hero-desktop { display: block; }
}

/* --- mobile hero --- */
.hero-mobile-card {
  display: block; overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(to bottom, #171717, #0a0a0a 55%, #0a0a0a);
  box-shadow: var(--shadow-card);
}
.hm-img-area { position: relative; height: 220px; overflow: hidden; }
.hm-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,255,255,.03), transparent);
}
.hm-pack {
  position: absolute; left: 50%; top: 50%;
  height: 95%; width: auto;
  transform: translateX(var(--x)) translateY(-50%) rotate(var(--rot)) scale(var(--s));
  z-index: var(--z); opacity: var(--o);
  transition: transform .6s cubic-bezier(.25,.1,.25,1), opacity .6s cubic-bezier(.25,.1,.25,1);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.5));
}
.hm-body { padding: 8px 20px 20px; text-align: center; }
.hm-title {
  font-family: var(--font-nekst);
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  color: #fff; line-height: 1.15;
}
.hm-title span { color: rgba(255,255,255,.4); }
.hm-text {
  margin: 6px auto 0; max-width: 260px;
  font-size: 13px; line-height: 1.4; color: var(--txt-60);
}

/* --- desktop hero --- */
.hero-card {
  position: relative;
  display: flex;
  height: 400px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  cursor: pointer;
}
@media (min-width: 1024px) { .hero-card { height: 480px; } }

.hero-bg-layer { position: absolute; inset: 0; }
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.25);
  filter: blur(20px) saturate(2);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-bg-img.active { opacity: 1; }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.6), rgba(0,0,0,.3) 55%, rgba(0,0,0,.1));
}
.hero-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
}
.hero-copy {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
}
@media (min-width: 1024px) {
  .hero-content { flex-direction: row; }
  .hero-copy { justify-content: center; padding: 40px; }
}
.hero-eyebrow {
  margin-bottom: 4px;
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .12em; color: var(--txt-25);
}
@media (min-width: 1024px) { .hero-eyebrow { font-size: 13px; margin-bottom: 8px; } }
.hero-title {
  font-family: var(--font-nekst);
  font-size: 24px; font-weight: 700; letter-spacing: -.02em;
  color: #fff; line-height: 1.1;
}
@media (min-width: 640px) { .hero-title { font-size: 30px; } }
@media (min-width: 1024px) { .hero-title { font-size: 48px; } }
.hero-title .dim { color: rgba(255,255,255,.4); }
.hero-text {
  margin-top: 12px;
  max-width: 320px;
  font-size: 13px; line-height: 1.65; color: var(--txt-60);
}
@media (min-width: 640px) { .hero-text { font-size: 14px; } }
@media (min-width: 1024px) { .hero-text { max-width: 384px; font-size: 16px; } }
.chip-90 {
  background: rgba(255,255,255,.3); color: #fff;
  border-radius: 6px; padding: 4px 8px;
  font-family: var(--font-nekst);
  white-space: nowrap;
}
.hero-cta-row { margin-top: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
@media (min-width: 1024px) { .hero-cta-row { margin-top: 28px; } }
.btn-open-packs {
  display: inline-flex; align-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #0a0a0a;
  padding: 10px 24px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: background-color .3s ease, transform .15s ease;
}
.btn-open-packs.lg { padding: 12px 32px; font-size: 16px; }
.hero-card:hover .btn-open-packs { background: #fff; }
.btn-open-packs:active { transform: scale(.97); }
.hero-sub-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.75);
  transition: color .2s ease;
}
.hero-sub-link:hover { color: #fff; }
.hero-sub-link svg { width: 14px; height: 14px; }

/* hero pack stack */
.hero-packs {
  position: relative;
  flex: 1;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px; padding-bottom: 0;
  min-height: 0;
}
@media (min-width: 1024px) { .hero-packs { padding: 24px; padding-bottom: 0; } }
.hero-pack-stack {
  position: relative;
  height: 90%; width: 70%;
  max-height: 400px;
}
.hero-pack-slot {
  position: absolute; left: 50%; top: 50%;
  height: 100%; width: auto;
  transform-origin: center;
  transition: transform .8s cubic-bezier(.25,.1,.25,1), opacity .8s cubic-bezier(.25,.1,.25,1);
  will-change: transform;
}
.hero-pack-slot img {
  height: 100%; width: auto;
  object-fit: contain;
  aspect-ratio: 3/4;
  padding: 2.5%;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)) drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
/* slot poses */
.hero-pack-slot[data-pos="0"] { transform: translateX(-72%) translateY(-35%) rotate(-8deg) scale(.82); z-index: 1; opacity: .6; }
.hero-pack-slot[data-pos="1"] { transform: translateX(-50%) translateY(-35%) rotate(0deg) scale(1); z-index: 3; opacity: 1; }
.hero-pack-slot[data-pos="2"] { transform: translateX(-28%) translateY(-35%) rotate(8deg) scale(.82); z-index: 1; opacity: .6; }
.hero-pack-slot[data-pos="3"] { transform: translateX(-50%) translateY(-35%) rotate(0deg) scale(.7); z-index: 0; opacity: 0; }

/* ============================================================
   PACKS GRID
   ============================================================ */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 640px) { .packs-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 768px) { .packs-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }

.pack-card {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-card);
  transition: border-color .3s ease, transform .3s ease;
}
.pack-card:hover { border-color: rgba(255,255,255,.22); transform: translateY(-2px); }
.pack-card-img {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(to bottom, #242424, #1a1a1a);
}
.pack-card-img img {
  height: 88%; width: auto;
  object-fit: contain;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.pack-card:hover .pack-card-img img { transform: scale(1.04); }
.pack-card-body { padding: 12px; background: rgba(255,255,255,.05); }
.pack-card-body h3 {
  margin-bottom: 8px;
  text-align: center;
  font-size: 13px; font-weight: 600; color: #fff;
}
.pack-card-btn {
  display: flex; align-items: center; justify-content: center;
  height: 36px; width: 100%;
  border-radius: 12px;
  font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,.1);
  color: #e5e5e5;
  transition: background-color .2s ease, color .2s ease;
}
.pack-card:hover .pack-card-btn { background: rgba(255,255,255,.18); color: #fff; }

/* ============================================================
   RECENT PULLS
   ============================================================ */
.pulls-viewport { position: relative; }
.pulls-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-smooth: true;
  padding: 0 16px 24px;
  margin: 0 -16px;
}
.pulls-row::-webkit-scrollbar { display: none; }
.pulls-row { scrollbar-width: none; }

.pull-card {
  width: 200px; flex-shrink: 0;
  animation: pull-card-in .5s cubic-bezier(.16,1,.3,1) both;
}
@media (min-width: 640px) { .pull-card { width: 240px; } }
@keyframes pull-card-in {
  0% { opacity: 0; transform: translate(-80px) scale(.85); }
  100% { opacity: 1; transform: translate(0) scale(1); }
}
.pull-inner {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #404040;
  background: var(--card2);
  box-shadow: var(--shadow-card);
  transition: border-color .3s ease;
}
.pull-inner:hover { border-color: #6b6b6b; }
.pull-img { position: relative; display: block; aspect-ratio: 1/1; overflow: hidden; }
.pull-img-bg {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom right, #292929, #171717);
}
.pull-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
}
.pill {
  position: absolute; right: 8px; top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.9);
  font-size: 12px; font-weight: 500; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  overflow: hidden;
}
.pill::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(to right, rgba(115,115,115,.2), rgba(163,163,163,.2));
  pointer-events: none;
}
.pill span { position: relative; }
.pull-hover {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.4), transparent);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.pull-inner:hover .pull-hover { opacity: 1; }
.pull-title {
  padding: 16px 16px 0;
  font-size: 14px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .3s ease;
}
.pull-inner:hover .pull-title { color: #d4d4d4; }
.pull-pack-row {
  display: flex; align-items: center; gap: 12px;
  margin: 12px 16px 16px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(to right, rgba(255,255,255,.05), rgba(255,255,255,.07));
  transition: border-color .3s ease, box-shadow .3s ease;
}
.pull-pack-row:hover { border-color: rgba(255,255,255,.2); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.pull-pack-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  background: #1f1f1f;
  display: flex; align-items: center; justify-content: center;
}
.pull-pack-icon img { width: 100%; height: 100%; object-fit: cover; }
.pull-pack-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.pull-pack-meta strong { font-weight: 500; color: #e5e5e5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pull-pack-meta small { font-size: 11px; color: var(--txt-45); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .how-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.how-card {
  position: relative;
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(to bottom right, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: var(--shadow-card);
  padding: 24px;
}
@media (min-width: 640px) { .how-card { padding: 28px; } }
.how-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(255,255,255,.03), transparent);
}
.how-glow.yellow { background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(250,204,21,.04), transparent); }
.how-head { position: relative; z-index: 10; display: flex; align-items: center; gap: 10px; }
.how-num {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  font-size: 11px; font-weight: 700; color: var(--txt-60);
}
.how-head h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.how-text {
  position: relative; z-index: 10;
  margin-top: 10px;
  font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.5);
}
.how-visual {
  position: relative; z-index: 10;
  margin-top: 24px;
  display: flex; align-items: center; justify-content: center;
  height: 200px;
}
@media (min-width: 640px) { .how-visual { height: 240px; } }
.how-pack {
  position: absolute;
  height: 80%; width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,.3));
}
.how-pack.back {
  transform: translateX(-55%) rotate(-7deg);
  opacity: .4;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.5));
  transition: opacity .5s ease;
}
.how-card:hover .how-pack.back { opacity: .5; }
.how-pack.front { z-index: 3; transition: transform .5s ease; }
.how-card:hover .how-pack.front { transform: scale(1.03); }
.how-slab { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 12px 32px rgba(0,0,0,.5)); }
.how-ships { height: auto; width: 100%; max-width: 320px; object-fit: contain; filter: drop-shadow(0 12px 32px rgba(0,0,0,.5)); }
.how-chip-row { position: relative; z-index: 10; margin-top: auto; }
.how-chip {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.03);
  text-align: left;
  transition: background-color .2s ease;
}
a.how-chip:hover, button.how-chip:hover { background: rgba(255,255,255,.06); }
.how-chip span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.how-chip strong { font-size: 13px; font-weight: 600; color: var(--txt-60); }
.how-chip small { font-size: 11px; color: var(--txt-45); }
.how-chip svg { width: 16px; height: 16px; margin-left: auto; color: var(--txt-45); flex-shrink: 0; }
.how-q {
  margin-left: auto; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5);
}
.chip-globe { width: 28px; height: auto; opacity: .6; flex-shrink: 0; }

/* ============================================================
   COMMUNITY MARQUEE
   ============================================================ */
.community-marquee { position: relative; overflow: hidden; padding: 16px 0; margin: -16px 0; }
.community-marquee::before,
.community-marquee::after {
  content: '';
  position: absolute; top: 0; bottom: 0; z-index: 10;
  width: 48px; pointer-events: none;
}
.community-marquee::before { left: 0; background: linear-gradient(to right, var(--app), transparent); }
.community-marquee::after { right: 0; background: linear-gradient(to left, var(--app), transparent); }
.marquee-track {
  display: flex; gap: 12px;
  width: max-content;
  will-change: transform;
  animation: sp-scroll-x 90s linear infinite;
}
.community-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes sp-scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.tweet {
  display: flex; flex-direction: column;
  width: 280px; flex-shrink: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-card);
  transition: border-color .3s ease;
}
@media (min-width: 640px) { .tweet { width: 320px; } }
.tweet:hover { border-color: rgba(255,255,255,.2); }
.tweet-img {
  position: relative;
  height: 200px; width: 100%;
  overflow: hidden;
  background: rgba(255,255,255,.05);
}
@media (min-width: 640px) { .tweet-img { height: 220px; } }
.tweet-img img { width: 100%; height: 100%; object-fit: cover; }
.tweet-x {
  position: absolute; right: 10px; top: 10px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.tweet-x svg { width: 13px; height: 13px; color: #fff; }
.tweet-body { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.tweet-text {
  flex: 1;
  font-size: 13px; line-height: 1.65; color: #d4d4d4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tweet-author {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 10px;
}
.tweet-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
}
.tweet-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tweet-author .meta { min-width: 0; }
.tweet-author .name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tweet-author .handle { font-size: 11px; color: var(--neutral-400); }
.tweet-likes {
  margin-left: auto; flex-shrink: 0;
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--neutral-400);
}
.tweet-likes svg { width: 13px; height: 13px; color: #f43f5e; fill: #f43f5e; }

/* ============================================================
   LEADERBOARD
   ============================================================ */
.lb-card {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #262626;
  background: var(--app);
}
.lb-list { display: block; }
@media (min-width: 640px) { .lb-list { display: none; } }
.lb-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  transition: background-color .2s ease;
  animation: slideInFromLeft .3s ease both;
}
.lb-row:hover { background: rgba(64,64,64,.5); }
.lb-row:nth-child(even) { background: rgba(38,38,38,.3); }
.lb-row:nth-child(even):hover { background: rgba(64,64,64,.5); }
@keyframes slideInFromLeft {
  0% { opacity: 0; transform: translateX(-24px); }
  100% { opacity: 1; transform: none; }
}
.lb-row-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-rank { width: 24px; font-size: 12px; font-weight: 500; color: var(--neutral-400); flex-shrink: 0; }
.lb-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.lb-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lb-name { font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pts { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; }

.lb-table { display: none; width: 100%; border-collapse: collapse; }
@media (min-width: 640px) { .lb-table { display: table; } }
.lb-table thead th {
  padding: 12px 16px;
  font-size: 12px; font-weight: 500; text-align: left;
  color: var(--neutral-400);
  border-bottom: 1px solid #262626;
}
.lb-table tbody tr {
  animation: slideInFromLeft .3s ease both;
  transition: background-color .2s ease;
}
.lb-table tbody tr:nth-child(even) { background: rgba(38,38,38,.3); }
.lb-table tbody tr:hover { background: rgba(64,64,64,.5); }
.lb-table tbody td { padding: 12px 16px; border-bottom: 1px solid #262626; }
.lb-table tbody tr:last-child td { border-bottom: none; }
.th-rank, .td-rank { width: 80px; text-align: center !important; }
.th-center { text-align: center; }
.th-right { text-align: right; }
.th-pulls { display: none; }
@media (min-width: 768px) { .th-pulls, .td-pulls { display: table-cell; } }
.td-rank { font-size: 14px; font-weight: 500; color: var(--neutral-400); font-variant-numeric: tabular-nums; }
.td-name { display: flex; align-items: center; gap: 12px; }
.td-name span { font-size: 14px; font-weight: 500; color: #fff; }
.td-num { text-align: center; font-size: 14px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.td-points { text-align: right; font-size: 18px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }

/* ============================================================
   CTA
   ============================================================ */
.cta-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: var(--shadow-card);
}
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 40% at 50% 90%, rgba(255,255,255,.05), transparent);
}
.cta-body { position: relative; z-index: 10; padding: 40px 24px 0; text-align: center; }
@media (min-width: 640px) { .cta-body { padding-top: 56px; } }
.cta-title {
  font-family: var(--font-nekst);
  font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,.9) 55%, rgba(255,255,255,.4));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (min-width: 640px) { .cta-title { font-size: 30px; } }
.cta-text { margin: 8px auto 0; max-width: 448px; font-size: 15px; color: rgba(255,255,255,.5); }
.cta-body .mt-6 { margin-top: 24px; }
.btn-rip {
  display: inline-flex; align-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #0a0a0a;
  padding: 12px 32px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: background-color .3s ease, transform .15s ease;
}
.cta-card:hover .btn-rip { background: #fff; }
.btn-rip:active { transform: scale(.97); }
.cta-fan {
  position: relative;
  margin-top: 32px;
  display: flex; align-items: flex-end; justify-content: center;
  height: 180px;
}
@media (min-width: 640px) { .cta-fan { height: 220px; } }
.cta-fan img {
  position: absolute; bottom: 0;
  height: var(--h, 120px);
  width: auto;
  left: var(--l);
  transform: translateX(-50%) rotate(var(--r));
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.5));
  transition: transform .5s ease;
}
@media (min-width: 640px) { .cta-fan img { height: calc(var(--h, 160px) + 40px); } }
.cta-card:hover .cta-fan img { transform: translateX(-50%) rotate(var(--r)) translateY(-4px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  flex-shrink: 0;
  border-top: 1px solid #262626;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.02));
  overflow: hidden;
}
.footer-circuit {
  position: absolute; inset: 0;
  opacity: .02;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 28px 28px;
}
.footer-inner { position: relative; margin: 0 auto; max-width: 2000px; padding: 24px 16px 0; }
@media (min-width: 640px) { .footer-inner { padding: 48px 24px 0; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
}
.footer-brand { grid-column: span 5; text-align: center; }
@media (min-width: 1024px) { .footer-brand { text-align: left; } }
.footer-logo { height: 32px; width: auto; margin: 0 auto; }
@media (min-width: 1024px) { .footer-logo { margin: 0; } }
.footer-logo-text {
  display: inline-block;
  font-family: var(--font-nekst);
  font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 32px;
  background: linear-gradient(to bottom, #fff, rgba(255,255,255,.8) 55%, rgba(255,255,255,.3));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  opacity: .9;
  transition: opacity .15s ease;
}
.footer-logo-text:hover { opacity: 1; }
.footer-desc {
  margin: 16px auto 0; max-width: 448px;
  font-size: 14px; line-height: 1.65; color: var(--neutral-400);
  text-align: center;
}
@media (min-width: 1024px) { .footer-desc { margin: 16px 0 0; text-align: left; } }
.footer-about {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.7);
  transition: color .2s ease;
}
.footer-about:hover { color: #fff; text-decoration: underline; }

.footer-col h3 { font-size: 14px; font-weight: 600; color: #fff; text-align: center; }
@media (min-width: 1024px) { .footer-col h3 { text-align: left; } }
.footer-col ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
@media (min-width: 1024px) { .footer-col ul { align-items: flex-start; } }
.footer-col li a {
  position: relative;
  display: inline-block;
  font-size: 14px; color: var(--neutral-400);
  transition: color .2s ease;
}
.footer-col li a::after {
  content: '';
  position: absolute; left: 0; bottom: -1px;
  height: 1px; width: 0;
  background: currentColor;
  transition: width .3s ease;
}
.footer-col li a:hover { color: #fff; }
.footer-col li a:hover::after { width: 100%; }
.footer-col.social-col p {
  margin: 16px auto 0; max-width: 240px;
  font-size: 14px; color: var(--neutral-400);
  text-align: center;
}
@media (min-width: 1024px) { .footer-col.social-col p { margin: 16px 0 0; text-align: left; } }
.social-row { margin-top: 16px; display: flex; justify-content: center; gap: 8px; }
@media (min-width: 1024px) { .social-row { justify-content: flex-start; } }
.social-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--card2);
  color: var(--neutral-400);
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.social-btn:hover { background: #404040; color: #fff; transform: translateY(-1px); }
.social-btn svg { width: 18px; height: 18px; }

.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(38,38,38,.5); }
@media (min-width: 640px) { .footer-bottom { margin-top: 56px; } }
.footer-copyline {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 640px) { .footer-copyline { padding: 32px 16px; } }
.copy-line { width: 48px; height: 1px; background: rgba(38,38,38,.5); margin: 0 16px; }
.footer-copyline p {
  text-align: center;
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .12em; color: #525252;
  white-space: nowrap;
}

/* ============================================================
   BUYBACK MODAL
   ============================================================ */
.modal-root {
  position: fixed; inset: 0;
  z-index: 59;
  pointer-events: none;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.85);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s ease;
}
.modal-card {
  position: absolute; left: 50%; top: 50%;
  z-index: 60;
  width: calc(100% - 32px);
  max-width: 512px;
  transform: translate(-50%, -50%) translateY(200vh);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--app);
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}
.modal-root.open { pointer-events: auto; }
.modal-root.open .modal-backdrop { opacity: 1; }
.modal-root.open .modal-card { opacity: 1; transform: translate(-50%, -50%); }
.modal-close {
  position: absolute; right: 16px; top: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--neutral-400);
  transition: background-color .2s ease, color .2s ease;
}
.modal-close:hover { background: rgba(255,255,255,.08); color: #fff; }
.modal-close svg { width: 16px; height: 16px; }
.modal-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.modal-text { margin-top: 8px; font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.5); }
.modal-steps { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.modal-step {
  display: flex; flex-direction: column; align-items: center;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.03);
  padding: 16px;
}
.modal-step img { height: 64px; width: auto; object-fit: contain; }
.modal-step-icon {
  height: 64px;
  display: flex; align-items: center; justify-content: center;
  color: var(--emerald-light);
}
.modal-step-icon svg { width: 26px; height: 26px; }
.modal-step p { margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--txt-60); }
.modal-fmv {
  margin-top: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,.03);
  padding: 16px;
}
.fmv-row { display: flex; align-items: center; justify-content: space-between; }
.fmv-row + .fmv-row { margin-top: 8px; }
.fmv-row span:first-child { font-size: 13px; color: rgba(255,255,255,.5); }
.fmv-val { font-size: 13px; font-weight: 600; color: #fff; }
.fmv-buyback { font-size: 13px; font-weight: 600; color: var(--emerald-light); }
.fmv-note { margin-top: 16px; font-size: 12px; line-height: 1.65; color: var(--txt-45); }
.modal-got-it {
  margin-top: 24px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  color: #0a0a0a;
  font-size: 13px; font-weight: 600;
  transition: background-color .2s ease, opacity .2s ease;
}
.modal-got-it:hover { background: rgba(255,255,255,.9); }

/* ============================================================
   MISC / RESPONSIVE FIXES
   ============================================================ */
@media (max-width: 639px) {
  .section-head { flex-wrap: wrap; }
  .hero-cta-row .hero-sub-link { display: none; }
  .section-head.center .section-side { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
