/* ==========================================================================
   RoCandy — styles
   Palette: CS2 "Latte Rush" — pink body, latte foam, espresso metal, holo mint
   Type:    Fredoka (display) + Nunito (UI)
   Rules:   no hairline borders, tonal surfaces, big radii, soft shadows
   ========================================================================== */

:root {
  /* Latte Rush palette */
  --pink-100: #FFE6EE;
  --pink-200: #FBC9D6;
  --pink-300: #F7A8BC;
  --pink-400: #F28AA6;
  --pink-500: #E96C91;
  --rose-600: #CC4F78;

  --cream-50: #FFFAF4;
  --cream-100: #FFF2E4;
  --latte-200: #F3DFC6;
  --latte-300: #E5C7A4;
  --caramel: #C89A62;

  --mocha: #4A2F2A;
  --mocha-800: #3A231F;
  --espresso: #2A1A17;

  --mint-200: #C4F3E8;
  --mint-300: #9FE8D6;
  --mint-400: #6ED9C0;
  --mint-600: #2FA88E;

  --butter-200: #FFEBAA;
  --butter-300: #FFDD7A;
  --lilac-200: #E2D7FB;
  --lilac-300: #CDBBF7;

  /* Semantic */
  --ink: var(--mocha);
  --ink-soft: rgba(74, 47, 42, .72);
  --ink-faint: rgba(74, 47, 42, .5);
  --bg: var(--espresso);
  --surface: #FFFDFB;

  --r-xl: 48px;
  --r-lg: 28px;
  --r-md: 22px;
  --r-pill: 999px;

  --shadow-soft: 0 22px 50px -24px rgba(120, 50, 70, .28);
  --shadow-lift: 0 34px 64px -26px rgba(120, 50, 70, .42);

  --font-display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;

  --nav-h: 88px;
  --container: 1240px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }   /* the hidden attribute always wins, even over display rules */
body {
  margin: 0;
  min-height: 100svh;
  display: flex; flex-direction: column;
  font: 600 1rem/1.55 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
#page { flex: 1; display: flex; flex-direction: column; }
main { flex: 1; padding-top: var(--nav-h); }
#page.is-leaving { opacity: 0; transition: opacity .14s ease; }
#page.is-entering { animation: pageIn .28s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
s { opacity: .45; font-weight: 700; font-size: .8em; margin-left: .25rem; }

.skip {
  position: absolute; left: -999px; top: 10px; z-index: 100;
  padding: .75rem 1rem; border-radius: var(--r-pill);
  background: var(--mocha); color: var(--cream-50); font-weight: 800; text-decoration: none;
}
.skip:focus { left: 10px; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding: 5.5rem 0; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.05;
}
h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
.eyebrow {
  display: inline-block;
  font: 800 .78rem/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink-500);
  margin-bottom: .8rem;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.section-foot { margin-top: 2.5rem; text-align: center; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--ink-faint); font-weight: 700; }

/* ---------- Buttons (candy press) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 800 1rem/1 var(--font-body);
  padding: 1rem 1.5rem;
  border: 0; border-radius: var(--r-pill);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  color: var(--cream-50); background: var(--mocha);
  box-shadow: 0 5px 0 var(--espresso);
  transform: translateY(0);
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--espresso); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--espresso); }
.btn:focus-visible { outline: 3px solid var(--mint-400); outline-offset: 3px; }

.btn-glass {
  background: rgba(255, 250, 244, .55); color: var(--mocha);
  box-shadow: 0 5px 0 rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { box-shadow: 0 7px 0 rgba(255, 255, 255, .55); background: rgba(255, 250, 244, .7); }
.btn-glass:active { box-shadow: 0 2px 0 rgba(255, 255, 255, .55); }

.btn-pink { background: var(--pink-300); color: var(--mocha); box-shadow: 0 5px 0 var(--pink-500); }
.btn-pink:hover { box-shadow: 0 7px 0 var(--pink-500); }
.btn-pink:active { box-shadow: 0 2px 0 var(--pink-500); }

.btn-tonal { background: var(--pink-100); color: var(--mocha); box-shadow: 0 5px 0 var(--pink-200); }
.btn-tonal:hover { box-shadow: 0 7px 0 var(--pink-200); }
.btn-tonal:active { box-shadow: 0 2px 0 var(--pink-200); }

.btn-lg { padding: 1.15rem 1.85rem; font-size: 1.05rem; }
.btn-sm { padding: .72rem 1.1rem; font-size: .9rem; box-shadow: 0 4px 0 var(--espresso); }
.btn-xs { padding: .62rem .95rem; font-size: .85rem; box-shadow: 0 3px 0 var(--espresso); }
.btn-xs svg { width: 16px; height: 16px; }
.btn-pink.btn-xs { box-shadow: 0 3px 0 var(--pink-500); }
.btn-pink.btn-sm { box-shadow: 0 4px 0 var(--pink-500); }
.btn-pink.btn-sm:hover { box-shadow: 0 6px 0 var(--pink-500); }
.btn-pink.btn-sm:active { box-shadow: 0 2px 0 var(--pink-500); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40;
  padding: .4rem 0;
  background: rgba(50, 30, 27, .92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7);
  container-type: inline-size;
  transition: padding .35s var(--ease-out), background .35s, box-shadow .35s;
}
/* The bar's content always lays out at full width. The centred look is produced
   by sliding the two clusters inward with transforms and clipping the pill layer,
   so the spread animation never triggers layout and stays on the compositor. */
.nav-inner {
  --spread: max(0px, calc((100cqw - 2.5rem - var(--container)) / 2));
  --pad-l: 0px; --pad-r: 0px;
  position: relative;
  width: calc(100% - 2.5rem); margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .6rem 0;
  color: var(--cream-100);
}
.nav-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: var(--r-pill);
  background: rgba(58, 35, 31, .97);   /* near solid, so page content never shows through the bar */
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 30px -18px rgba(0, 0, 0, .7);
  clip-path: inset(0 var(--spread) round 999px);
  opacity: 0;
  transition: clip-path .5s ease, opacity .35s;
}
.nav .brand, .nav .nav-links {
  transform: translateX(calc(var(--spread) + var(--pad-l)));
  transition: transform .5s ease;
}
.nav .nav-actions {
  transform: translateX(calc(-1 * (var(--spread) + var(--pad-r))));
  transition: transform .5s ease;
}
/* Once the page is scrolled a little, the bar tucks into a floating pill. */
.nav.is-scrolled { padding: 1rem 0; background: rgba(50, 30, 27, 0); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.nav.is-scrolled .nav-inner { --pad-l: 1rem; --pad-r: .7rem; }
.nav.is-scrolled .nav-inner::before { opacity: 1; }
/* Inner pages: the bar spreads from the centre out to the edges. */
.nav.is-wide .nav-inner { --spread: 0px; }
.nav.no-anim, .nav.no-anim .nav-inner, .nav.no-anim .nav-inner::before, .nav.no-anim .brand, .nav.no-anim .nav-links, .nav.no-anim .nav-actions { transition: none !important; }

/* Page changes: keep the old page on screen and morph the bar's clusters into place
   (browsers with cross-document view transitions; others use the JS fallback). */
@view-transition { navigation: auto; }
.nav { view-transition-name: nav-bar; }
.nav .brand { view-transition-name: nav-brand; }
.nav .nav-links { view-transition-name: nav-links; }
.nav .nav-actions { view-transition-name: nav-actions; }
::view-transition-group(nav-brand), ::view-transition-group(nav-links), ::view-transition-group(nav-actions) { animation-duration: .5s; animation-timing-function: ease; }
::view-transition-old(nav-brand), ::view-transition-new(nav-brand), ::view-transition-old(nav-links), ::view-transition-new(nav-links), ::view-transition-old(nav-actions), ::view-transition-new(nav-actions) { animation-duration: .5s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 1.5rem/1 var(--font-display); letter-spacing: -.02em; color: var(--cream-50); }
.brand-sub { font: 800 .58rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; opacity: .6; margin-top: .22rem; color: var(--cream-100); }

.nav-links { display: flex; gap: .2rem; margin: 0 auto 0 .75rem; }
.nav-links a {
  position: relative; white-space: nowrap;
  font: 800 .92rem/1 var(--font-body); text-decoration: none;
  padding: .72rem 1rem; border-radius: var(--r-pill);
  color: rgba(255, 242, 228, .72); transition: color .25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.is-active { color: var(--pink-300); }
.nav-links a.is-active::before {          /* the marker on the top edge of the bar */
  content: ""; position: absolute; left: .9rem; right: .9rem; top: -11.5px; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--pink-300); box-shadow: 0 2px 10px rgba(247, 168, 188, .55);
}

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 42px; height: 42px; border: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .08); color: var(--cream-50);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, transform .2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; height: 42px;
  padding: 0 1rem 0 .85rem; border: 0; border-radius: 14px;   /* softly rounded, not a full pill */
  background: rgba(255, 255, 255, .08); color: var(--cream-50);
  font: 800 .9rem var(--font-body); cursor: pointer; transition: background .2s;
}
.chip svg { width: 18px; height: 18px; }
.chip:hover { background: rgba(255, 255, 255, .14); }
/* Language selector: flag + code + chevron, with a small menu */
.lang { position: relative; }
.chip-lang { gap: .4rem; padding: 0 .75rem 0 .5rem; }
.flag { width: 20px; height: 20px; border-radius: 50%; flex: none; }
.chip-lang .chev { width: 14px; height: 14px; transition: transform .2s var(--ease-out); opacity: .8; }
.lang.is-open .chip-lang .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 176px; z-index: 5;
  padding: .4rem; border-radius: 14px;
  background: rgba(50, 30, 27, .98); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s ease, transform .22s var(--ease-out);
}
.lang.is-open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu button {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .6rem .7rem; border: 0; border-radius: 10px; background: transparent; color: var(--cream-100);
  font: 800 .88rem var(--font-body); cursor: pointer; text-align: left; transition: background .15s;
}
.lang-menu button:hover { background: rgba(255, 255, 255, .08); }
.lang-menu button[aria-checked="true"] { color: var(--pink-200); }
.lang-menu button[aria-checked="true"]::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--pink-300); }

.nav-burger { display: none; }
.nav-burger .ico-close { display: none; }
.nav.is-open .nav-burger .ico-open { display: none; }
.nav.is-open .nav-burger .ico-close { display: block; }

/* ---------- Home hero ---------- */
.hero { padding: 1.25rem 0 1.5rem; color: var(--cream-100); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem; align-items: center;
  min-height: calc(100svh - var(--nav-h) - 18rem);
}
.hero-copy { max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 800 .95rem/1 var(--font-body); color: var(--cream-50);
  margin-bottom: 1.5rem;
}
.hero-badge svg { width: 22px; height: 22px; color: var(--pink-300); }
.hero-title {
  font: 700 clamp(2.4rem, 4.2vw, 3.8rem)/1.04 'Space Grotesk', var(--font-body);
  letter-spacing: -.035em; color: var(--cream-50);
}
.hero-title em {
  font-style: normal; white-space: nowrap;
  background: linear-gradient(90deg, var(--pink-200) 0%, var(--pink-400) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin-top: 1.5rem; font-size: 1.12rem; line-height: 1.6; color: rgba(255, 242, 228, .66); max-width: 48ch; }
.hero-lead b { color: var(--cream-50); font-weight: 800; }

.hero-actions { margin-top: 1.9rem; max-width: 440px; }
.btn-hero {
  position: relative; width: 100%;
  padding: .8rem 1.4rem; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 10px; color: var(--mocha);
  border-bottom: 2px solid #E2648C;
  background:
    linear-gradient(112deg, transparent 40%, rgba(204, 79, 118, .13) 40%, rgba(204, 79, 118, .13) 60%, transparent 60%),
    linear-gradient(180deg, #FFDFE8 0%, #FBC2D2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 6px 14px -8px rgba(0, 0, 0, .6);
  transition: transform .15s var(--ease-out), border-bottom-width .15s var(--ease-out), filter .2s;
}
.btn-hero:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 8px 16px -8px rgba(0, 0, 0, .6); }
.btn-hero:active { transform: translateY(2px); border-bottom-width: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75); }
.btn-hero > span { position: relative; z-index: 1; }
/* Shimmer: a light streak that sweeps across the face every few seconds. */
.btn-hero .shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.btn-hero .shine::before {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -40%; width: 34%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 45%, rgba(255, 255, 255, .8) 50%, rgba(255, 255, 255, .55) 55%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: shimmer 3.8s ease-in-out infinite;
}
.btn-hero .bolt {
  position: absolute; width: 22px; height: 22px; fill: var(--butter-300); pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(255, 221, 122, .55));
}
.bolt-tl { left: -9px; top: -12px; }
.bolt-tr { right: -9px; top: -12px; transform: scaleX(-1); }
.bolt-bl { left: -9px; bottom: -12px; transform: scaleY(-1); }
.bolt-br { right: -9px; bottom: -12px; transform: scale(-1); }

/* Small version for the nav's Sign in. */
.btn-hero-sm { width: auto; padding: .62rem 1rem; font-size: .78rem; letter-spacing: .08em; border-radius: 8px; flex: none; background: linear-gradient(180deg, #FFDFE8 0%, #FBC2D2 100%); }
.btn-hero-sm:active { transform: translateY(2px); }
.btn-hero-sm .shine::before { animation-delay: 1.9s; }
.hero-or {
  display: flex; align-items: center; gap: .9rem; margin: .85rem 0;
  font: 900 .7rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 242, 228, .42);
}
.hero-or::before, .hero-or::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.btn-ghost {
  background: rgba(247, 168, 188, .2); color: var(--pink-100);
  box-shadow: 0 2px 0 rgba(247, 168, 188, .22);
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; padding: .8rem 1rem;
}
.btn-ghost:hover { background: rgba(247, 168, 188, .28); color: var(--cream-50); transform: translateY(-1px); box-shadow: 0 3px 0 rgba(247, 168, 188, .22); }
.btn-ghost:active { transform: translateY(2px); box-shadow: 0 0 0 rgba(247, 168, 188, .22); }

.hero-pay { margin-top: 2.4rem; }
.hero-pay-label { display: block; margin-bottom: .6rem; font-size: .88rem; font-weight: 700; color: rgba(255, 242, 228, .55); }
.pay-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.pay-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  height: 32px; padding: 0 .7rem; border-radius: 9px;
  background: rgba(255, 255, 255, .06); color: var(--cream-50);
  font: 800 .85rem/1 var(--font-body);
}
.pay-chip img { display: block; width: auto; }
.pay-visa img { height: 10px; }
.pay-mc img { height: 14px; }
.pay-apple img { height: 12px; }
.pay-gpay img { height: 11px; }
.pay-crypto { gap: 0; padding: 0 .6rem; }
/* Coin badges: overlapping circles, each ringed in the chip colour so they stay separate. */
.coin-tile {
  --tile: #999;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--tile);
  box-shadow: 0 0 0 2px #372825;
  display: grid; place-items: center;
  position: relative;
}
.coin-tile + .coin-tile { margin-left: -7px; }
.coin-tile img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }   /* the real round logos fill the tile */
.c-btc  { --tile: #F7931A; }
.c-eth  { --tile: #627EEA; }
.c-ltc  { --tile: #BFBBBB; }
.c-usdc { --tile: #2775CA; }
.c-sol  { --tile: #9945FF; }

/* ---------- Recent sales feed ---------- */
.feed { padding: .5rem 0 .5rem; color: var(--cream-100); }
.feed-head { margin-bottom: 1.1rem; align-items: flex-end; }
.feed h2 { font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.1 'Space Grotesk', var(--font-body); letter-spacing: -.02em; color: var(--cream-50); }
.eyebrow-live { display: inline-flex; align-items: center; gap: .45rem; color: var(--mint-400); margin-bottom: .5rem; }
.feed-all {
  display: inline-flex; align-items: center; gap: .3rem; text-decoration: none;
  font: 800 .9rem/1 var(--font-body); color: rgba(255, 242, 228, .62); transition: color .2s;
}
.feed-all svg { width: 16px; height: 16px; }
.feed-all:hover { color: #fff; }

/* The strip runs edge to edge and drifts left on its own; espresso fades cover both ends. */
.feed-viewport { position: relative; overflow: hidden; width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }   /* centred on the page column, fades at its ends */
.feed-viewport::before, .feed-viewport::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none;
  width: clamp(56px, 9vw, 140px);
}
.feed-viewport::before { left: 0; background: linear-gradient(90deg, var(--espresso) 12%, rgba(42, 26, 23, 0)); }
.feed-viewport::after { right: 0; background: linear-gradient(270deg, var(--espresso) 12%, rgba(42, 26, 23, 0)); }
.feed-track {
  display: flex; width: max-content;
  padding: .9rem 0 4.5rem;
  animation: feed-marquee 55s linear infinite;
  will-change: transform;
}
.feed-viewport:hover .feed-track { animation-play-state: paused; }

.sale-card {
  --rarity: var(--pink-300);
  position: relative;
  flex: 0 0 214px; margin-right: .5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  transition: transform .3s var(--ease-out), background .2s, border-radius .2s;
}
.sale-card:hover {
  transform: translateY(-8px) scale(1.04); z-index: 3;
  background: rgba(255, 255, 255, .1);
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
/* Action bar that slides out under the card on hover. */
.sale-cta {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1rem; border-radius: 0 0 16px 16px;
  background: var(--pink-300); color: var(--mocha);
  font: 800 .95rem/1 var(--font-body); text-decoration: none;
  opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: opacity .2s, transform .25s var(--ease-out), background .2s;
}
.sale-cta svg { width: 18px; height: 18px; }
.sale-cta:hover { background: var(--pink-200); }
.sale-card:hover .sale-cta { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sale-art {
  position: relative; height: 150px; display: grid; place-items: center; overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: radial-gradient(60% 55% at 50% 58%, color-mix(in srgb, var(--rarity) 22%, transparent), transparent 70%);
}
.sale-art .gummy { width: 84px; animation-duration: 12s; }
.sale-meta { padding: .2rem 1rem 1rem; }
.sale-cat { display: block; font: 800 .66rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 242, 228, .45); }
.sale-cat i { font-style: normal; margin: 0 .2rem; }
.sale-name { margin-top: .1rem; font: 800 1rem/1.2 var(--font-body); color: var(--rarity); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sale-price { display: block; margin-top: .35rem; font: 700 .9rem/1 var(--font-body); color: rgba(255, 242, 228, .7); }
.sale-price b { color: var(--cream-50); font-weight: 900; }
.rarity-uncommon { --rarity: var(--mint-400); }
.rarity-rare { --rarity: var(--pink-300); }
.rarity-epic { --rarity: var(--lilac-300); }
.rarity-legendary { --rarity: var(--butter-300); }

/* Right half: the Jelly Moby Dick boat. The host needs position and a real height; the component fills it. */
.hero-stage { width: 100%; max-width: 620px; aspect-ratio: 1; justify-self: end; }
.hero-boat { position: relative; min-width: 0; min-height: 320px; max-height: 720px; width: min(700px, 118%); max-width: none; justify-self: end; }
/* Let the boat's soft glow spill past its box instead of being clipped at the edge. */
.hero-boat .jelly-boat { overflow: visible; contain: layout; }
.hero-boat .jelly-boat__glow { inset: -10% -18% -8%; }

/* ---------- Floor shadows (Capcho-style ellipse) ---------- */
.floor-shadow {
  width: 70%; height: 22px; margin: .4rem auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(140, 30, 70, .38), rgba(140, 30, 70, 0) 70%);
  filter: blur(3px);
  animation: shadowPulse 6s ease-in-out infinite;
}
.floor-shadow-lg { width: 62%; height: 40px; margin-top: -.6rem; }
.floor-shadow-dark { background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 70%); }

/* ---------- Stickers ---------- */
.sticker {
  display: inline-block;
  font: 700 .82rem/1 var(--font-display);
  letter-spacing: .03em; text-transform: uppercase;
  padding: .52rem .78rem; border-radius: 11px;
  background: var(--butter-300); color: var(--mocha);
  transform: rotate(-7deg);
  box-shadow: 0 3px 0 rgba(74, 47, 42, .14);
}
.sticker-holo { background: linear-gradient(115deg, var(--mint-300) 0%, var(--lilac-300) 55%, var(--pink-200) 100%); }
.sticker-pink { background: var(--pink-300); }
.sticker-mint { background: var(--mint-300); }
.sticker-hero {
  position: absolute; right: 4%; top: 12%; z-index: 4;
  font-size: 1.1rem; padding: .75rem 1.05rem; border-radius: 14px;
  animation: wiggle 5s ease-in-out infinite;
}
.sticker-sell {
  position: absolute; left: 6%; bottom: 18%; z-index: 4;
  font-size: 1rem; padding: .7rem 1rem; border-radius: 14px;
  transform: rotate(-9deg);
}

/* ---------- Gummy placeholders (until a Spline scene is set) ---------- */
.gummy {
  --c-hi: #FFE9F0; --c-mid: #F7A8BC; --c-deep: #E5749B; --c-shade: rgba(190, 60, 110, .45);
  position: relative; width: 100%; aspect-ratio: 1;
  border-radius: 48% 52% 55% 45% / 50% 44% 56% 50%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .95) 0 5%, rgba(255, 255, 255, 0) 6.5%),
    radial-gradient(circle at 70% 68%, rgba(255, 255, 255, .45) 0 3.5%, rgba(255, 255, 255, 0) 5.5%),
    radial-gradient(ellipse at 38% 32%, var(--c-hi) 0%, var(--c-mid) 40%, var(--c-deep) 80%, var(--c-deep) 100%);
  box-shadow:
    inset -28px -34px 70px var(--c-shade),
    inset 18px 22px 44px rgba(255, 255, 255, .5),
    0 50px 90px -30px rgba(150, 40, 80, .45);
  animation: morph 14s ease-in-out infinite, floaty 6s ease-in-out infinite;
}
.gummy::after {
  content: ""; position: absolute; inset: 20% 24% 28% 32%;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: radial-gradient(ellipse at 40% 40%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 70%);
  filter: blur(6px);
}
.gummy-mint   { --c-hi: #EEFFFA; --c-mid: #9FE8D6; --c-deep: #4CC4AA; --c-shade: rgba(20, 130, 105, .42); }
.gummy-butter { --c-hi: #FFF8DF; --c-mid: #FFDD7A; --c-deep: #F0B63A; --c-shade: rgba(180, 110, 10, .36); }
.gummy-lilac  { --c-hi: #F3EEFF; --c-mid: #CDBBF7; --c-deep: #9D83E6; --c-shade: rgba(90, 60, 170, .42); }
.gummy-latte  { --c-hi: #FFF6EA; --c-mid: #F1DCC2; --c-deep: #C99A62; --c-shade: rgba(140, 90, 40, .4); }
.gummy-float-1 { animation-delay: 0s, 0s; }
.gummy-float-2 { animation-delay: -4s, -2s; animation-duration: 16s, 7s; }
.gummy-float-3 { animation-delay: -9s, -3.5s; animation-duration: 12s, 5.5s; }
.gummy-card { animation: morph 12s ease-in-out infinite; }

/* ---------- Spline slots ---------- */
.spline-slot { position: relative; }
.spline-slot > spline-viewer {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity .6s ease;
}
.spline-slot > spline-viewer.is-ready { opacity: 1; }
.spline-slot > .ph { transition: opacity .5s ease; }
.spline-slot.has-spline > .ph { opacity: 0; pointer-events: none; }
.slot-lg { width: min(440px, 100%); margin: 0 auto; aspect-ratio: 1; }

/* ---------- Live ticker ---------- */
.ticker {
  position: relative; z-index: 3;
  display: flex; align-items: stretch; height: 58px;
  background: var(--mocha); color: var(--cream-100); overflow: hidden;
}
.ticker-label {
  flex: none; display: flex; align-items: center; gap: .55rem;
  padding: 0 1.35rem; background: var(--espresso);
  font: 900 .78rem var(--font-body); letter-spacing: .16em; text-transform: uppercase;
}
.live-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--mint-400);
  animation: pulse 1.8s ease-out infinite;
}
.ticker-track {
  flex: 1; display: flex; align-items: center; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-list {
  display: flex; width: max-content; white-space: nowrap;
  padding-left: 1.5rem;
  animation: marquee 48s linear infinite;
}
.ticker:hover .ticker-list { animation-play-state: paused; }
.ticker-list li { display: inline-flex; align-items: center; gap: .4rem; margin-right: 2.75rem; font-size: .9rem; font-weight: 700; opacity: .9; }
.ticker-list b { font-weight: 900; }
.ticker-list em { font-style: normal; color: var(--pink-200); font-weight: 800; }
.ticker-price { margin-left: .2rem; padding: .3rem .55rem; border-radius: 8px; background: rgba(255, 255, 255, .1); font-weight: 900; font-size: .8rem; }

.av { width: 18px; height: 18px; border-radius: 50%; background: var(--pink-300); display: inline-block; flex: none; }
.av-mint { background: var(--mint-400); }
.av-butter { background: var(--butter-300); }
.av-lilac { background: var(--lilac-300); }
.av-latte { background: var(--latte-300); }

/* ---------- Filters ---------- */
.filters {
  display: flex; gap: .2rem; padding: .32rem;
  background: var(--cream-100); border-radius: var(--r-pill);
}
.filter {
  border: 0; background: transparent; cursor: pointer;
  padding: .62rem 1rem; border-radius: var(--r-pill);
  font: 800 .88rem var(--font-body); color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.filter:hover:not(.is-active) { background: #fff; color: var(--ink); }
.filter.is-active { background: var(--mocha); color: var(--cream-50); }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: .7rem .7rem 1rem;
  box-shadow: var(--shadow-soft);
  perspective: 900px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.card.is-hidden { display: none; }
.card-media {
  position: relative; aspect-ratio: 1; border-radius: var(--r-md);
  background: var(--media, var(--pink-100));
  display: grid; place-items: center; overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .3s var(--ease-out);
}
.card-media .gummy { width: 58%; box-shadow: inset -20px -24px 50px var(--c-shade), inset 14px 16px 34px rgba(255, 255, 255, .5), 0 28px 40px -22px rgba(150, 40, 80, .4); }
.card-media .sticker { position: absolute; top: .9rem; left: .9rem; z-index: 2; }
.like {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  width: 38px; height: 38px; border: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .72); color: var(--mocha);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .2s var(--ease-out), background .2s, color .2s;
}
.like svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linejoin: round; transition: fill .2s; }
.like:hover { transform: scale(1.1); background: #fff; }
.like[aria-pressed="true"] { color: var(--pink-500); }
.like[aria-pressed="true"] svg { fill: var(--pink-500); }
.card-body { padding: .95rem .5rem 0; }
.card-name { font: 600 1.15rem/1.2 var(--font-display); }
.card-meta { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--ink-faint); margin-top: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-row { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; }
.price { font: 700 1.25rem var(--font-display); }

/* ---------- Categories ---------- */
.cats { padding-top: 0; }
.cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cat {
  background: var(--tile, var(--pink-200)); border-radius: var(--r-lg);
  padding: 1.25rem; min-height: 210px;
  display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none;
  transition: transform .35s var(--ease-out);
}
.cat:hover { transform: translateY(-6px) rotate(-1.5deg); }
.cat-blob { width: 64px; box-shadow: inset -12px -14px 26px var(--c-shade), inset 8px 10px 18px rgba(255, 255, 255, .5), 0 16px 26px -14px rgba(120, 30, 70, .45); animation-duration: 12s, 7s; }
.cat:nth-child(2) .cat-blob { animation-delay: -3s, -1s; }
.cat:nth-child(3) .cat-blob { animation-delay: -6s, -2s; }
.cat:nth-child(4) .cat-blob { animation-delay: -9s, -3s; }
.cat:nth-child(5) .cat-blob { animation-delay: -12s, -4s; }
.cat-text { display: flex; flex-direction: column; gap: .2rem; }
.cat h3 { font-size: 1.5rem; font-weight: 700; }
.cat-count { font-size: .84rem; font-weight: 800; opacity: .62; }

/* ---------- Drops ---------- */
.drops { padding-top: 0; }
.drops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.drop {
  background: var(--surface); border-radius: var(--r-lg); padding: 1rem;
  display: grid; grid-template-columns: 124px 1fr; gap: 1.1rem; align-items: center;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.drop:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.drop-media { aspect-ratio: 1; border-radius: 20px; background: var(--media); display: grid; place-items: center; overflow: hidden; }
.drop-media .gummy { width: 62%; box-shadow: inset -14px -16px 30px var(--c-shade), inset 10px 12px 22px rgba(255, 255, 255, .5), 0 18px 30px -16px rgba(120, 30, 70, .45); animation-duration: 12s, 7s; }
.drop h3 { font-size: 1.2rem; }
.drop p { font-size: .84rem; font-weight: 700; color: var(--ink-faint); margin-top: .15rem; }
.drop-time { font: 700 1.9rem/1 var(--font-display); font-variant-numeric: tabular-nums; margin: .6rem 0 .75rem; letter-spacing: .01em; }

/* ---------- How it works (mocha block) ---------- */
.how { padding: 0 1rem; }
.how-inner {
  position: relative; overflow: hidden;
  max-width: var(--container); margin: 0 auto;
  background: var(--mocha); color: var(--cream-100);
  border-radius: var(--r-xl);
  padding: clamp(3rem, 6vw, 5.5rem);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
.how-inner::before {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 168, 188, .18), rgba(247, 168, 188, 0) 70%);
  pointer-events: none;
}
.how .eyebrow { color: var(--pink-300); }
.how h2 { color: var(--cream-50); }
.steps { display: grid; gap: 1.5rem; margin-top: 2.25rem; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; align-items: start; }
.step-num {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--pink-300); color: var(--mocha);
  display: grid; place-items: center;
  font: 700 1.05rem var(--font-display);
  transform: rotate(-6deg);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
}
.steps li:nth-child(2) .step-num { background: var(--mint-300); transform: rotate(5deg); }
.steps li:nth-child(3) .step-num { background: var(--butter-300); transform: rotate(-3deg); }
.steps h3 { color: var(--cream-50); font-size: 1.3rem; font-weight: 700; }
.steps p { color: rgba(255, 242, 228, .72); margin-top: .3rem; max-width: 44ch; }
.how-model { position: relative; }

/* ---------- Sell (pink block) ---------- */
.sell { padding: 1.25rem 1rem 0; }
.sell-inner {
  position: relative; overflow: hidden;
  max-width: var(--container); margin: 0 auto;
  background: linear-gradient(160deg, var(--pink-200) 0%, var(--pink-300) 50%, var(--pink-400) 100%);
  border-radius: var(--r-xl);
  padding: clamp(3rem, 6vw, 5.5rem);
  display: grid; grid-template-columns: 1fr .8fr; gap: 3rem; align-items: center;
}
.sell h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); color: var(--cream-50); text-shadow: 0 14px 40px rgba(160, 40, 80, .2); }
.sell p { font-size: 1.1rem; font-weight: 700; margin-top: 1rem; max-width: 44ch; color: rgba(74, 47, 42, .85); }
.facts { display: flex; gap: 2.25rem; margin: 2rem 0; flex-wrap: wrap; }
.facts b { display: block; font: 700 2.1rem/1 var(--font-display); }
.facts span { display: block; margin-top: .3rem; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.sell-model { position: relative; }

/* ---------- Footer ---------- */
.footer {
  position: relative; overflow: hidden;
  padding: 4.5rem 0 0;
  background: var(--espresso); color: var(--cream-100);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { margin-top: 1rem; max-width: 30ch; color: rgba(255, 242, 228, .7); }
.footer .brand-name, .footer .brand-sub { color: var(--cream-50); }
.socials { display: flex; gap: 1.1rem; margin-top: 1.25rem; align-items: center; }
.socials a { display: block; opacity: .7; transition: opacity .2s, transform .2s var(--ease-out); }
.socials a img { display: block; height: 22px; width: auto; }
.socials a:hover { opacity: 1; transform: translateY(-1px); }
.footer-col h4 { font: 900 .76rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--pink-300); margin-bottom: .9rem; }
.footer-col a { display: block; text-decoration: none; font-weight: 700; opacity: .78; padding: .3rem 0; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: var(--pink-200); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 3rem 0 1.5rem; font-size: .82rem; font-weight: 700; opacity: .6; }
.footer-bottom a { text-decoration: none; }
.footer-word {
  font: 700 clamp(110px, 21vw, 320px)/.78 var(--font-display);
  letter-spacing: -.045em; text-align: center; white-space: nowrap; user-select: none;
  color: rgba(255, 255, 255, .05);
  margin-bottom: -.22em;
}

/* ---------- Lite mode toggle ---------- */
.lite-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .95rem .55rem .6rem; border: 0; border-radius: var(--r-pill);
  background: rgba(42, 26, 23, .86); color: var(--cream-100);
  font: 900 .74rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  cursor: pointer; transition: transform .2s var(--ease-out);
}
.lite-toggle:hover { transform: translateY(-2px); }
.lite-switch { position: relative; width: 36px; height: 20px; border-radius: var(--r-pill); background: var(--mint-400); transition: background .2s; }
.lite-switch::after { content: ""; position: absolute; top: 3px; left: 19px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .2s var(--ease-out); }
html.lite .lite-switch { background: rgba(255, 255, 255, .25); }
html.lite .lite-switch::after { left: 3px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
html.lite .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- Keyframes ---------- */
@keyframes morph {
  0%, 100% { border-radius: 48% 52% 55% 45% / 50% 44% 56% 50%; }
  33%      { border-radius: 55% 45% 48% 52% / 45% 55% 45% 55%; }
  66%      { border-radius: 45% 55% 50% 50% / 55% 45% 58% 42%; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes shadowPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.84); opacity: .7; } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(3deg) translateY(-4px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes routeProgress { 0% { width: 0; opacity: 1; } 55% { width: 68%; } 100% { width: 90%; opacity: 1; } }
@keyframes shimmer { 0% { left: -40%; } 45% { left: 120%; } 100% { left: 120%; } }
@keyframes feed-marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(110, 217, 192, .7); } 70% { box-shadow: 0 0 0 9px rgba(110, 217, 192, 0); } 100% { box-shadow: 0 0 0 0 rgba(110, 217, 192, 0); } }

/* ---------- Hero: the rotating word (Roblox / Limiteds / SAB / MM2) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rotator {
  display: inline-grid; grid-template-areas: "w"; justify-items: start; white-space: nowrap; vertical-align: baseline;
  perspective: 520px; clip-path: inset(-.14em -.25em -.16em -.06em);   /* the words roll in and out like a reel */
  transition: width .6s cubic-bezier(.22, 1, .36, 1);
}
/* each word paints its own gradient: a transformed child of a text-clipped parent would go invisible */
.rotator-word {
  grid-area: w; display: inline-block; transform-origin: 50% 50%; will-change: transform, opacity, filter;
  background: linear-gradient(90deg, var(--pink-200) 0%, var(--pink-400) 38%, #FFF4F8 50%, var(--pink-400) 62%, var(--pink-200) 100%);
  background-size: 300% 100%; background-position: 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rotator-word.is-out { animation: wordOut .6s cubic-bezier(.3, .1, .3, 1) both; pointer-events: none; }
.rotator-word.is-in { animation: wordIn .8s cubic-bezier(.22, 1.3, .36, 1) both, wordShine 1s ease-in-out .25s both; }
@keyframes wordOut {                  /* leaves at once and fades before it is fully out, like a reel turning */
  60% { opacity: 0; }
  to { opacity: 0; transform: translateY(-100%) rotateX(75deg) scale(.9); filter: blur(3px); }
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(100%) rotateX(-75deg) scale(.9); filter: blur(3px); }
  45% { opacity: 1; filter: blur(0); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes wordShine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .rotator { transition: none; }
  .rotator-word.is-out, .rotator-word.is-in { animation: none; }
}

/* ---------- Buy / Trade / Sell cards (under Trending Items) ---------- */
.ways { position: relative; scroll-margin-top: 92px; padding: 2.25rem 0 1.5rem; color: var(--cream-100); animation: fadeUp .5s var(--ease-out) both; animation-delay: .3s; }
.ways .container { position: relative; }
.ways .container::before {            /* corner dot grid, like the reference */
  content: ""; position: absolute; left: -1.5rem; top: -1.75rem; width: 230px; height: 120px; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 242, 228, .18) 1.6px, transparent 2.2px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(135deg, #000 15%, transparent 70%); mask-image: linear-gradient(135deg, #000 15%, transparent 70%);
}
.ways-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.way {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2.1rem 1.6rem 2rem; border-radius: 24px;
  background: rgba(255, 255, 255, .045); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.way h2 { font: 700 1.4rem/1.15 'Space Grotesk', var(--font-body); letter-spacing: -.01em; color: var(--cream-50); }
.way-art { position: relative; width: 100%; height: 230px; margin: 1.3rem 0 1.5rem; display: grid; place-items: center; }
.way p { max-width: 30ch; margin: 0 0 1.5rem; font-weight: 700; line-height: 1.55; color: rgba(255, 242, 228, .58); }
.way p b { color: var(--cream-50); }
.way-link { margin-top: auto; font: 700 1.12rem/1 var(--font-body); color: var(--cream-100); text-decoration: none; transition: color .2s ease; }
.way-link span { display: inline-block; margin-left: .35rem; font-size: 1.3em; line-height: 0; vertical-align: -.06em; transition: transform .25s var(--ease-out); }
.way-link:hover { color: #fff; }
.way-link:hover span { transform: translateX(3px); }
.way-link.is-gold { color: var(--butter-300); }
.way-link.is-gold:hover { color: #FFF1BF; }

/* buy: the fedora and the dragon, laid over each other like the reference */
.way-buy .way-model { position: absolute; min-width: 0; }
.way-buy { perspective: 700px; }
.way-model-hat { right: 2%; top: -8%; width: 60%; height: 68%; z-index: 1; display: block; transition: transform .3s var(--ease-out); will-change: transform; }
.way-model-hat::before {           /* soft backlight behind the hat */
  content: ""; position: absolute; inset: -4% -8%; z-index: 0; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 242, 228, .17), rgba(255, 242, 228, .05) 45%, transparent 70%);
}
.way-model-hat .headphones-viewer { overflow: visible; }
.way-model-hat .headphones-viewer::before { display: none; }   /* the hat keeps its own backlight below */
.way-model-dragon { left: -9%; bottom: -12%; width: 76%; height: 84%; z-index: 2; }
.way-buy .fire-dragon { overflow: visible; contain: layout; }
.way-buy .fire-dragon__glow { inset: -10% -14%; }
.way-tag { position: absolute; z-index: 3; display: grid; gap: .05rem; text-align: left; line-height: 1.1; pointer-events: none; }
.way-tag small { font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.way-tag b { font-size: 1.02rem; color: var(--cream-50); }
.way-tag-hat { left: 4%; top: 6%; }
.way-tag-dragon { right: 2%; bottom: 2%; text-align: right; justify-items: end; }
.tag-pink { color: var(--pink-300); }
.tag-butter { color: var(--butter-300); }

/* sell: the headphones and a payout chip */
.way-model-phones { position: absolute; left: 2%; top: 2%; width: 70%; height: 96%; min-width: 0; }
.way-chip {
  position: absolute; z-index: 2; padding: .5rem .85rem; border-radius: 11px;
  font: 800 .86rem/1 var(--font-body); color: #0D2E1F;
  background: linear-gradient(180deg, #8FF3BF, #4ED18E); box-shadow: 0 10px 20px -10px rgba(78, 209, 142, .7);
}
.way-chip-a { right: 8%; top: 24%; }

/* the static viewer (headphones, fedora): soft backlight so dark models read on the dark cards */
.way-model .headphones-viewer, .swap-model .headphones-viewer { color: var(--cream-100); font-family: var(--font-body); overflow: visible; }
.way-model .headphones-viewer::before, .swap-model .headphones-viewer::before {
  content: ""; position: absolute; inset: -6% -10%; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 48%, rgba(255, 242, 228, .16), rgba(255, 242, 228, .05) 45%, transparent 70%);
}
.way-model .headphones-viewer__canvas, .swap-model .headphones-viewer__canvas { position: relative; z-index: 1; }
.way-model .headphones-viewer__status, .swap-model .headphones-viewer__status { font-size: .6rem; font-weight: 700; color: rgba(255, 242, 228, .5); }

/* trade: the little swap */
.swap-mini { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: .7rem; align-items: center; width: 100%; max-width: 340px; }
.swap-tile { position: relative; isolation: isolate; border-radius: 14px; padding: .45rem .5rem .6rem; background: rgba(255, 255, 255, .05); }
.swap-tile::before {                  /* the listing stacked behind */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(255, 255, 255, .045); transform: translate(-8px, -8px);
}
.swap-model { position: relative; min-width: 0; height: 112px; }
.swap-model .jelly-boat, .swap-model .fire-dragon, .swap-model .meowl { overflow: visible; contain: layout; }
.swap-model .meowl__glow { inset: -18% -22% -16%; }
.swap-model .jelly-boat__glow, .swap-model .fire-dragon__glow { inset: -18% -22% -16%; }
.swap-meta { position: relative; z-index: 2; display: grid; gap: .3rem; margin-top: .4rem; }
.swap-line { display: block; height: 5px; width: 48%; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.swap-line.short { width: 32%; }
.swap-bar {
  position: relative; display: block; height: 4px; margin-top: .2rem; border-radius: 3px;
  background: linear-gradient(90deg, var(--mint-400) 0 12%, #58E38A 12% 24%, var(--butter-300) 24% 52%, #FFB347 52% 70%, #FF5A5A 70% 100%);
}
.swap-bar i { position: absolute; top: -3px; left: var(--at, 50%); width: 2px; height: 10px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1.5px var(--espresso); }
.swap-arrows { display: grid; gap: .5rem; }
.swap-arrows .arrow { width: 100%; height: auto; display: block; }
.arrow-back { color: rgba(255, 242, 228, .26); }
.arrow-go { color: var(--butter-300); filter: drop-shadow(0 0 8px rgba(255, 221, 122, .45)); animation: arrowNudge 2.4s ease-in-out infinite; }
@keyframes arrowNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.swap-bot {
  position: absolute; top: -18px; right: -18px; z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; background: var(--butter-300);
  display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .7), 0 0 0 3px color-mix(in srgb, var(--espresso) 95%, #fff);
}
.swap-bot svg { width: 30px; height: 30px; }
.swap-bot .swap-online { position: absolute; top: 0; right: 0; width: 12px; height: 12px; border-radius: 50%; background: #58E38A; box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--espresso) 95%, #fff); animation: pulse 1.8s ease-out infinite; }

@media (max-width: 1100px) {
  .ways-grid { gap: 1rem; }
  .way { padding: 1.8rem 1.1rem 1.7rem; }
  .way h2 { font-size: 1.25rem; }
}
@media (max-width: 860px) {
  .ways { padding-bottom: 3rem; }
  .ways-grid { grid-template-columns: 1fr; gap: 1rem; }
  .way { padding: 1.8rem 1.25rem 1.7rem; }
  .way-art { height: 210px; max-width: 360px; }
  .swap-mini { max-width: 300px; }
}

/* ---------- Upgrade banner (trash in, swag out) ---------- */
.upgrade { padding: 3rem 0 4rem; color: var(--cream-100); animation: fadeUp .5s var(--ease-out) both; animation-delay: .35s; }
.upgrade-banner {            /* full-bleed strip with the same edge fades as the trending ticker */
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .035) radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .03), transparent 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), inset 0 -1px 0 rgba(255, 255, 255, .03);
}
.upgrade-banner::before, .upgrade-banner::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 4; pointer-events: none;
  width: clamp(64px, 10vw, 180px);
}
.upgrade-banner::before { left: 0; background: linear-gradient(90deg, var(--espresso) 12%, rgba(42, 26, 23, 0)); }
.upgrade-banner::after { right: 0; background: linear-gradient(270deg, var(--espresso) 12%, rgba(42, 26, 23, 0)); }
.upgrade-inner {
  min-height: 300px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto minmax(0, 1.2fr); align-items: center; gap: .5rem;
}
.upgrade-copy { text-align: center; padding: 2.5rem .5rem; }
.upgrade-copy h2 { font: 700 clamp(1.7rem, 2.6vw, 2.35rem)/1.08 'Space Grotesk', var(--font-body); letter-spacing: -.025em; color: var(--cream-50); }
.upgrade-copy p { margin: .9rem 0 1.5rem; font-weight: 700; color: rgba(255, 242, 228, .62); }
.btn-gold {
  display: inline-flex; align-items: center; gap: .45rem; padding: .85rem 1.6rem; border-radius: 11px;
  background: var(--pink-300); color: var(--espresso); font: 800 .95rem/1 var(--font-body); text-decoration: none;
  box-shadow: 0 12px 24px -12px rgba(247, 168, 188, .6); transition: transform .2s var(--ease-out), filter .2s ease;
}
.btn-gold span { font-size: 1.3em; line-height: 0; }
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-gold:active { transform: translateY(1px); }

/* the two chevron sets: one highlight travels across all six, left to right */
.upgrade-arrows { display: flex; gap: .15rem; padding: 0 .25rem; }
.upgrade-arrows:first-of-type { margin-left: 2rem; }
.upgrade-arrows:last-of-type { margin-right: 2rem; }
.up-chev { width: 24px; height: 44px; color: rgba(255, 242, 228, .12); animation: chevPulse 2.6s linear infinite; animation-delay: calc(var(--i, 0) * .28s); }
@keyframes chevPulse {
  0%, 6% { color: rgba(255, 242, 228, .12); filter: drop-shadow(0 0 0 rgba(247, 168, 188, 0)); }
  14% { color: var(--pink-300); filter: drop-shadow(0 0 9px rgba(247, 168, 188, .85)); }
  34%, 100% { color: rgba(255, 242, 228, .12); filter: drop-shadow(0 0 0 rgba(247, 168, 188, 0)); }
}

/* the items: tilted and overlapping, clipped by the banner like the reference */
.upgrade-side { position: relative; height: 300px; min-width: 0; }
.up-item { position: absolute; display: block; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.up-knife { width: 62%; left: 8%; top: -2%; transform: scaleX(-1) rotate(30deg); z-index: 2; }   /* blade up and to the right, like the rifle in the reference */
.up-gun { width: 54%; left: 42%; top: 40%; transform: rotate(14deg); z-index: 1; }
.up-silva { width: 58%; left: 4%; top: 2%; transform: rotate(-6deg); z-index: 2; }
.up-horns { width: 58%; left: 36%; top: 34%; transform: rotate(6deg); z-index: 3; }
.up-glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(22px); pointer-events: none; }
.up-glow-silva { left: 4%; top: 2%; width: 56%; aspect-ratio: 1; background: radial-gradient(circle, rgba(215, 240, 255, .55), rgba(150, 210, 255, .18) 45%, transparent 70%); }
.up-glow-horns { left: 38%; top: 36%; width: 56%; aspect-ratio: 1; background: radial-gradient(circle, rgba(150, 255, 90, .5), rgba(150, 80, 255, .22) 50%, transparent 72%); }
.up-glow { animation: glowBreathe 4s ease-in-out infinite; }
.up-glow-horns { animation-delay: -2s; }
@keyframes glowBreathe { 0%, 100% { opacity: .75; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }

/* twinkling sparkles over the swag items */
.spark {
  position: absolute; left: var(--x); top: var(--y); width: calc(var(--s, 12px) * 1.35); height: calc(var(--s, 12px) * 1.35); z-index: 4; pointer-events: none;
  opacity: 0; transform-origin: 50% 50%; animation: sparkle var(--t, 2s) ease-in-out var(--d, 0s) infinite;
}
.spark path { fill: currentColor; }
.s-white { color: #fff; filter: drop-shadow(0 0 6px rgba(225, 242, 255, .95)); }
.s-green { color: #D4FF8A; filter: drop-shadow(0 0 6px rgba(150, 255, 90, .95)); }
.s-purple { color: #E2C8FF; filter: drop-shadow(0 0 6px rgba(175, 120, 255, .95)); }
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(.15) rotate(0deg); }
  35% { opacity: 1; transform: scale(1) rotate(40deg); }
  65% { opacity: .55; transform: scale(.65) rotate(70deg); }
}
@media (prefers-reduced-motion: reduce) { .spark { animation: none; opacity: .5; transform: none; } }

@media (max-width: 1100px) {
  .upgrade-inner { gap: .5rem; }
  .upgrade-copy h2 { font-size: 1.6rem; }
}
@media (max-width: 860px) {
  .upgrade { padding: 2rem 0 3rem; }
  .upgrade-inner { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 1.25rem 0 1.5rem; }
  .upgrade-banner::before, .upgrade-banner::after { width: 40px; }
  .upgrade-side { height: 200px; width: min(100%, 360px); margin: 0 auto; }
  .up-knife { width: 50%; left: 8%; top: 2%; }
  .up-gun { width: 44%; left: 50%; top: 24%; }
  .up-silva { width: 50%; left: 6%; top: 6%; }
  .up-horns { width: 50%; left: 46%; top: 28%; }
  .up-glow-silva { left: 6%; top: 6%; width: 48%; }
  .up-glow-horns { left: 46%; top: 28%; width: 48%; }
  .upgrade-arrows { justify-content: center; transform: rotate(90deg); padding: .25rem 0; height: 44px; }
  .upgrade-arrows:first-of-type, .upgrade-arrows:last-of-type { margin: 0; }
  .upgrade-copy { padding: 1.25rem 1rem; }
}

/* ---------- FAQ (two columns, fade, show more) ---------- */
.faq { scroll-margin-top: 92px; padding: 0 0 4.5rem; color: var(--cream-100); animation: fadeUp .5s var(--ease-out) both; animation-delay: .4s; }
.faq-head { text-align: center; margin-bottom: 2rem; }
.faq-head h2 { font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.1 'Space Grotesk', var(--font-body); letter-spacing: -.02em; color: var(--cream-50); }
.faq-wrap { position: relative; overflow: hidden; max-height: var(--faq-collapsed, 9999px); transition: max-height .5s var(--ease-out); }
.faq-wrap.is-open { max-height: none; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.faq-item { border-radius: 18px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); transition: background .2s ease; }
.faq-item:hover, .faq-item.is-open { background: rgba(255, 255, 255, .07); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.55rem 1.5rem; border: 0; border-radius: inherit; background: transparent;
  font: 800 1rem/1.3 var(--font-body); color: var(--cream-50); text-align: left; cursor: pointer;
}
.faq-q:focus-visible { outline: 3px solid var(--mint-400); outline-offset: -4px; }
.faq-chev { flex: 0 0 auto; width: 16px; height: 16px; color: var(--cream-100); transition: transform .3s var(--ease-out), color .2s ease; }
.faq-item.is-open .faq-chev { transform: rotate(90deg); color: var(--pink-300); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease-out); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 1.5rem 1.5rem; font-weight: 600; line-height: 1.6; color: rgba(255, 242, 228, .64); }
.faq-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: linear-gradient(180deg, rgba(42, 26, 23, 0), rgba(42, 26, 23, .55) 45%, var(--espresso) 100%);
  transition: opacity .3s ease;
}
.faq-wrap.is-open .faq-fade { opacity: 0; }
.faq-more {
  display: flex; align-items: center; gap: .5rem; margin: 1.4rem auto 0; padding: .8rem 1.4rem; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .06); color: var(--cream-50); font: 800 .9rem/1 var(--font-body); cursor: pointer;
  transition: background .2s ease, transform .2s var(--ease-out);
}
.faq-more:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.faq-more:focus-visible { outline: 3px solid var(--mint-400); outline-offset: 2px; }
.faq-more svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }
.faq-more[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 760px) {
  .faq { padding-bottom: 3.5rem; }
  .faq-grid { grid-template-columns: 1fr; gap: .7rem; }
  .faq-q { padding: 1.25rem 1.2rem; font-size: .95rem; }
  .faq-a p { padding: 0 1.2rem 1.2rem; }
}

/* ---------- Sign-in dialog ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; opacity: 0; transition: opacity .25s ease; }
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(18, 10, 9, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.modal-card {
  position: relative; width: min(480px, 100%); height: min(680px, 92vh);
  display: grid; grid-template-columns: 1fr 0%;   /* the art column opens once a sign-in method is chosen */
  border-radius: 24px; overflow: hidden; background: #241716; color: var(--cream-100);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .05);
  transform: translateY(16px) scale(.98);
  transition: transform .35s var(--ease-out), width .5s var(--ease-out), grid-template-columns .5s var(--ease-out);
}
.modal-card.is-wide { width: min(960px, 100%); grid-template-columns: 1fr 50%; }
.modal.is-open .modal-card { transform: none; }
.modal-close {
  position: absolute; top: .9rem; right: .9rem; z-index: 3;
  width: 38px; height: 38px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--cream-50);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }
.modal-form { display: flex; flex-direction: column; padding: clamp(1.6rem, 4vw, 3rem); min-width: 0; overflow-y: auto; scrollbar-width: thin; }
.modal-form h2 { font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 'Space Grotesk', var(--font-body); letter-spacing: -.02em; color: var(--cream-50); }
.modal-form h2 em { font-style: normal; background: linear-gradient(90deg, var(--pink-200), var(--pink-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.modal-sub { margin-top: .5rem; font-weight: 700; color: rgba(255, 242, 228, .6); }
.field-label { display: block; margin-top: 2.2rem; font: 800 1rem var(--font-body); color: var(--cream-50); }
.field {
  display: flex; align-items: center; gap: .7rem; margin-top: .7rem; height: 54px; padding: 0 1rem;
  border-radius: 14px; background: rgba(255, 255, 255, .06); transition: background .2s, box-shadow .2s;
}
.field svg { width: 20px; height: 20px; color: rgba(255, 242, 228, .5); flex: none; }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--cream-50); font: 700 1rem var(--font-body); outline: none; }
.field input::placeholder { color: rgba(255, 242, 228, .42); }
.field:focus-within { background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 2px rgba(247, 168, 188, .55); }
.field.is-invalid { box-shadow: 0 0 0 2px rgba(233, 108, 145, .8); animation: shake .35s ease; }
.check { position: relative; display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.1rem; font-weight: 700; color: rgba(255, 242, 228, .7); line-height: 1.45; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box { flex: none; width: 22px; height: 22px; margin-top: .1rem; border-radius: 7px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.check .box::after { content: ""; width: 11px; height: 6px; border-left: 2.6px solid var(--espresso); border-bottom: 2.6px solid var(--espresso); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked + .box { background: var(--pink-300); }
.check input:checked + .box::after { opacity: 1; }
.check input:focus-visible + .box { box-shadow: 0 0 0 2px var(--mint-400); }
.check.is-invalid .box { box-shadow: 0 0 0 2px rgba(233, 108, 145, .8); }
.check a { color: var(--cream-50); }
.providers { display: flex; flex-direction: column; flex: 1; gap: .65rem; margin-top: 1.8rem; animation: fadeUp .3s var(--ease-out) both; }
.signin-perks { display: grid; gap: .75rem; margin: 1.3rem 0 0; padding: 1.1rem 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .06); }
.signin-perks li { display: flex; align-items: center; gap: .8rem; }
.signin-perks div { display: grid; gap: .1rem; min-width: 0; }
.signin-perks b { font: 800 .88rem/1.2 var(--font-body); color: var(--cream-50); }
.signin-perks span:not(.perk-ico) { font: 700 .76rem/1.3 var(--font-body); color: rgba(255, 242, 228, .5); }
.perk-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(255, 221, 122, .12); color: var(--butter-300); }
.perk-ico svg { width: 18px; height: 18px; }
.signin-legal { margin: auto 0 0; padding-top: 1.2rem; font: 700 .74rem/1.5 var(--font-body); color: rgba(255, 242, 228, .42); }
.signin-legal a { color: rgba(255, 242, 228, .7); }
.signin-legal a:hover { color: var(--cream-50); }
.provider {
  display: flex; align-items: center; gap: .9rem; width: 100%; padding: .7rem .8rem .7rem .7rem; border: 0; border-radius: 16px;
  background: rgba(255, 255, 255, .06); color: var(--cream-50); font: 800 .98rem/1 var(--font-body); text-align: left; cursor: pointer;
  transition: background .2s ease, transform .2s var(--ease-out);
}
.provider:hover { background: rgba(255, 255, 255, .1); transform: translateY(-1px); }
.provider:focus-visible { outline: 3px solid var(--mint-400); outline-offset: 2px; }
.provider .p-txt { flex: 1; }
.p-chev { width: 18px; height: 18px; color: rgba(255, 242, 228, .45); transition: transform .2s var(--ease-out), color .2s ease; }
.provider:hover .p-chev { transform: translateX(3px); color: var(--cream-50); }
.p-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff; }
.p-ico svg { width: 22px; height: 22px; }
.p-ico img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.p-roblox .p-ico, .p-ico.i-roblox { background: #1b1b1f; }
.p-discord .p-ico, .p-ico.i-discord { background: #5865F2; }
.p-steam .p-ico, .p-ico.i-steam { background: #1b2838; }
.signin-step { display: flex; flex-direction: column; animation: fadeUp .3s var(--ease-out) both; }
.modal-back { align-self: flex-start; display: inline-flex; align-items: center; gap: .25rem; margin-top: 1.4rem; padding: 0; border: 0; background: none; font: 800 .82rem/1 var(--font-body); color: rgba(255, 242, 228, .6); cursor: pointer; transition: color .2s ease; }
.modal-back svg { width: 16px; height: 16px; }
.modal-back:hover { color: var(--cream-50); }
.signin-step .field-label { margin-top: 1.5rem; }
.oauth-note { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.oauth-note p { margin: 0; font-weight: 700; line-height: 1.5; color: rgba(255, 242, 228, .65); }
.oauth-note b { color: var(--cream-50); }

.modal-spacer { flex: 1; min-height: 1.5rem; }
.modal-hint { text-align: center; font-weight: 700; color: rgba(255, 242, 228, .6); margin-bottom: .9rem; }
.modal-hint kbd { font: inherit; color: var(--pink-300); }
.btn-continue { width: 100%; font-size: .95rem; }
.modal-art {
  position: relative; min-width: 0; overflow: hidden; background: #0d0908; display: flex; align-items: flex-end; justify-content: center; padding: 2rem;
}
.modal-art-brand { opacity: 0; transform: translateX(32px); transition: opacity .35s ease, transform .5s var(--ease-out); }
.modal-card.is-wide .modal-art-brand { opacity: 1; transform: none; transition-delay: .18s; }
.modal-art-brand { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.modal-art-brand .brand { text-decoration: none; }
.modal-art-brand p { font: 700 1.25rem/1.1 'Space Grotesk', var(--font-body); color: var(--cream-50); }
.modal-art .spline-viewer, .modal-art > spline-viewer { z-index: 1; }
body.modal-open { overflow: hidden; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (max-width: 760px) {
  .modal { padding: .75rem; }
  .modal-card, .modal-card.is-wide { width: 100%; grid-template-columns: 1fr; height: auto; max-height: 94vh; overflow: auto; transition: transform .35s var(--ease-out); }
  .modal-art { order: -1; min-height: 150px; padding: 1.25rem; }
  .modal-card:not(.is-wide) .modal-art { display: none; }
  .modal-art-brand p { font-size: 1.05rem; }
  .field-label { margin-top: 1.4rem; }
}

/* ---------- Page entrance: sections rise in on load and after a page swap ---------- */
.hero-copy > *, .feed, .footer { animation: fadeUp .5s var(--ease-out) both; }
.hero-copy > :nth-child(1) { animation-delay: .02s; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .2s; }
.hero-copy > :nth-child(5) { animation-delay: .26s; }
.feed { animation-delay: .22s; }
.footer { animation-delay: .3s; }

/* Slim progress bar for the rare page that takes a moment to arrive. */
.route-progress {
  position: fixed; top: 0; left: 0; z-index: 60; height: 3px; width: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--pink-300), var(--pink-500));
  box-shadow: 0 0 12px rgba(247, 168, 188, .8);
}
html.is-navigating .route-progress { animation: routeProgress 1.4s ease-out .12s forwards; }
html.route-done .route-progress { width: 100%; opacity: 0; transition: width .15s ease, opacity .3s ease .15s; }

/* ---------- Lite mode + reduced motion ---------- */
html.lite *, html.lite *::before, html.lite *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .drops-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --nav-h: 76px; }
  .container { width: min(var(--container), 100% - 2rem); }
  .nav { padding: .3rem 0; }
  .nav.is-scrolled { padding: .75rem 0; }
  .nav-inner { gap: .75rem; width: calc(100% - 2rem); padding: .5rem 0; --spread: 0px; }
  .nav.is-scrolled .nav-inner { --pad-l: .8rem; --pad-r: .5rem; }
  .nav .nav-links { transform: none; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% - .25rem); margin: 0;
    flex-direction: column; gap: .2rem; padding: .6rem;
    background: rgba(50, 30, 27, .98); border-radius: var(--r-lg);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: .9rem 1rem; }
  .nav-links a:hover, .nav-links a.is-active { background: rgba(255, 255, 255, .06); }
  .nav-links a.is-active::before { display: none; }   /* in the phone menu the pink text is enough */
  .nav-burger { display: grid; }
  .chip-balance { display: none; }
  .lang-menu { right: auto; left: 0; }
  .how-inner, .sell-inner { grid-template-columns: 1fr; gap: 2rem; }
  .how-model { order: -1; }
  .slot-lg { width: min(320px, 70vw); }
}
@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .btn-lg { padding: 1rem 1.4rem; font-size: 1rem; }
  .section-head { margin-bottom: 1.4rem; }
  .filters { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .card { padding: .5rem .5rem .8rem; border-radius: 22px; }
  .card-media { border-radius: 16px; }
  .card-body { padding: .75rem .35rem 0; }
  .card-name { font-size: 1rem; }
  .price { font-size: 1.1rem; }
  .btn-xs { padding: .55rem .8rem; font-size: .8rem; }
  .like { width: 34px; height: 34px; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .cat { min-height: 170px; padding: 1rem; }
  .cat:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1rem; min-height: 0; }
  .cat:last-child .cat-blob { width: 56px; }
  .cat h3 { font-size: 1.3rem; }
  .drops-grid { grid-template-columns: 1fr; }
  .drop { grid-template-columns: 100px 1fr; }
  .how-inner, .sell-inner { border-radius: 32px; padding: 2rem 1.4rem; }
  .facts { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .sticker-sell { display: none; }
  .lang { display: none; }
  .lite-toggle { right: 12px; bottom: 12px; }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .nav-links { gap: 0; margin-left: .25rem; }
  .nav-links a { padding: .72rem .62rem; font-size: .84rem; }
  .nav-inner { gap: .8rem; }
}

/* translations run longer than English: keep the headline to two lines */
html:not([lang="en"]) .hero-title { font-size: clamp(2.1rem, 3.5vw, 3.15rem); }

/* ---------- Home hero: responsive ---------- */
@media (max-width: 600px) {
  /* small enough that every rotating word keeps "… Items Today" on one line, so the copy never jumps */
  .hero-title { font-size: min(7.8vw, 2.3rem); letter-spacing: -.03em; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; min-height: 0; }
  .hero-stage { justify-self: center; max-width: 440px; }
  .hero-stage:not(.has-spline):not(.hero-boat) { display: none; }
  .hero-boat { order: -1; width: 100%; max-width: none; aspect-ratio: auto; height: 340px; margin-bottom: -70px; }   /* phones: the boat above the copy; the negative margin removes the empty air under the flames */
}
@media (max-width: 640px) {
  .hero { padding-bottom: 3rem; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-pay { margin-top: 2.2rem; }
}

@media (max-width: 640px) {
  .feed { padding-bottom: 2.5rem; }
  .sale-card { flex-basis: 178px; }
  .sale-art { height: 124px; }
  .sale-art .gummy { width: 70px; }
  .feed-viewport::before, .feed-viewport::after { width: 40px; }
}
