/* ==========================================================================
   VERTEX — design system
   One stylesheet for every page. Sections:
   1. Tokens   2. Base   3. Shell (nav, footer, tabbar)   4. Primitives
   5. Hero   6. Ticker   7. Bento   8. Match   9. Directory   10. Trends
   11. Locker & modes   12. Pass   13. CTA & FAQ   14. Overlays
   15. Secondary pages   16. Motion & responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;
  accent-color: var(--violet);
  --bg: #070a12;
  --surface: #0d111d;
  --surface-2: #131929;
  --surface-3: #1b2334;
  --line: rgba(202, 213, 255, .11);
  --line-2: rgba(202, 213, 255, .2);
  --text: #f5f7ff;
  --muted: #b4bdce;
  --dim: #8d9ab0;

  --violet: #9486ff;
  --violet-hi: #c9c3ff;
  --cyan: #67e8f9;
  --pink: #f6a6cd;
  --free: #50e3b3;
  --busy: #ffd166;
  --off: #7f8aa3;
  --danger: #fb7185;

  /* chart series — validated against --surface (dataviz validator, dark) */
  --series-free: #22c5d8;
  --series-busy: #9486ff;

  --grad: linear-gradient(105deg, #e3ddff 0%, #9486ff 46%, #67e8f9 100%);
  --grad-soft: linear-gradient(135deg, rgba(148, 134, 255, .18), rgba(103, 232, 249, .1));

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --nav-h: 72px;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* elevation */
  --sh-sm: 0 2px 8px rgba(0, 0, 0, .24);
  --sh-md: 0 16px 40px -20px rgba(0, 0, 0, .6);
  --sh-lg: 0 28px 70px -24px rgba(0, 0, 0, .72);
  --sh-glow: 0 12px 44px -12px rgba(148, 134, 255, .42);
}

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 16px; background: var(--text); color: var(--bg); border-radius: var(--r-sm); font-weight: 700; box-shadow: var(--sh-md); transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
.noscript-note { position: relative; z-index: 70; padding: 12px 20px; border-bottom: 1px solid rgba(255, 209, 102, .3); background: #2b2412; color: #ffe7a3; text-align: center; font-size: 13.5px; }
/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(65% 42% at 50% 0%, rgba(148, 134, 255, .07), transparent 76%),
    var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
h1, h2, h3, .h2 { text-wrap: balance; }
html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .24); }
body::before { /* ambient aurora behind everything */
  content: "";
  position: fixed;
  inset: -20vh -20vw auto;
  height: 90vh;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(139, 92, 246, .18), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(34, 211, 238, .12), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(139, 92, 246, .45); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[hidden] { display: none !important; }

/* 3. Shell ----------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.scrolled { background: rgba(7, 10, 18, .86); backdrop-filter: blur(20px) saturate(1.25); border-color: var(--line); box-shadow: 0 12px 36px rgba(0, 0, 0, .18); }
.nav .wrap { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 15px var(--f-display); letter-spacing: .16em; }
.brand img { width: 32px; height: auto; border-radius: 9px; box-shadow: 0 0 24px rgba(148, 134, 255, .32); }
.nav-links { display: flex; gap: 2px; margin-left: 12px; }
.nav-links a {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .045); }
.nav-links a.active { color: var(--text); background: rgba(148, 134, 255, .12); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(80, 227, 179, .08);
  border: 1px solid rgba(80, 227, 179, .22);
  color: #a7f3d0;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .2s, background .2s, opacity .2s;
}
.live-pill:hover { border-color: rgba(80, 227, 179, .42); background: rgba(80, 227, 179, .13); }
.live-pill.down { background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .3); color: #fecdd3; }
.live-pill.down .dot { background: var(--danger); box-shadow: none; animation: none; }
.conn-banner {
  position: sticky;
  top: var(--nav-h);
  z-index: 49;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px max(20px, calc((100% - var(--wrap)) / 2));
  background: rgba(76, 15, 24, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(251, 113, 133, .3);
  color: #fecdd3;
  font-size: 13.5px;
}
.conn-banner .cb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex: none; box-shadow: 0 0 10px rgba(251, 113, 133, .8); }
.conn-banner .cb-text { min-width: 0; }
.conn-banner .cb-count { color: #fda4af; font-variant-numeric: tabular-nums; white-space: nowrap; }
.conn-banner .btn { margin-left: auto; border-color: rgba(251, 113, 133, .35); color: #fecdd3; }
.conn-banner .btn:hover { background: rgba(251, 113, 133, .14); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--free); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 2s infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: border-color .2s, color .2s, background .2s;
}
.chip-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .07); }
.chip-btn svg { width: 16px; height: 16px; }
kbd {
  font: 600 11px var(--f-mono);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
}
.level-chip { padding-left: 6px; }
.level-chip b {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--grad);
  color: #0b0716;
  font: 700 12px var(--f-display);
}
.account-slot { display: flex; }
.account-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--text);
  color: #0b0716;
  font-weight: 600;
  font-size: 13.5px;
  transition: transform .2s var(--spring);
}
.account-login:hover { transform: translateY(-1px); }
.account-wrap { position: relative; min-width: 0; }
.account-chip { display: flex; align-items: center; gap: 8px; max-width: 180px; height: 38px; padding: 0 12px 0 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-size: 13.5px; font-weight: 600; }
.account-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip img, .account-fallback { width: 30px; height: 30px; flex: none; border-radius: 9px; object-fit: cover; }
.account-fallback { display: grid; place-items: center; background: var(--grad); color: #0b0716; font-weight: 800; }
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.account-wrap.open .account-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.account-menu a, .account-menu button { display: flex; align-items: center; min-height: 44px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.account-menu a:hover, .account-menu button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.account-menu button[disabled] { opacity: .5; cursor: wait; }

.footer { border-top: 1px solid var(--line); margin-top: 120px; padding: 44px 0 120px; color: var(--dim); font-size: 13.5px; }
.footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 18px 28px; align-items: center; }
.footer .wrap > span { justify-self: end; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; justify-self: end; }
.footer a { min-height: 28px; display: inline-flex; align-items: center; }
.footer a:hover { color: var(--text); }
.footer #footerLogin { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer .footer-top { color: var(--muted); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .02em; }

.tabbar { display: none; }

/* 4. Primitives ------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 650;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .25s var(--spring), box-shadow .25s, background .2s, border-color .2s;
  isolation: isolate;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #0b0716; box-shadow: var(--sh-glow), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(148, 134, 255, .72), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-primary::after { /* sheen sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
  z-index: -1;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.btn-sm { height: 44px; padding: 0 16px; border-radius: 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.section { padding: 104px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 12px var(--f-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-hi);
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.h2 { font: 700 clamp(30px, 4vw, 48px)/1.06 var(--f-display); letter-spacing: -.035em; margin: 0; }
.lede { color: var(--muted); font-size: 16.5px; max-width: 580px; margin: 14px 0 0; }

.card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008) 58%, rgba(148, 134, 255, .018)), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025), var(--sh-md);
  overflow: hidden;
  transition: border-color .25s, box-shadow .3s;
}
.card.spot::before { /* cursor spotlight, driven by --mx/--my from JS */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(155, 107, 255, .16), transparent 45%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.card.spot:hover::before { opacity: 1; }

.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { height: 34px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-size: 13.5px; font-weight: 550; display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button.active { background: rgba(255, 255, 255, .1); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.seg button small { font: 600 11px var(--f-mono); color: var(--dim); }
.seg button.active small { color: var(--violet-hi); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: .2s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(167, 139, 250, .5); }
.chip.active { color: #0b0716; background: var(--grad); border-color: transparent; }
.chip b { font: 600 11px var(--f-mono); opacity: .75; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.available { color: var(--free); background: rgba(52, 211, 153, .12); }
.status.busy { color: var(--busy); background: rgba(251, 191, 36, .12); }
.status.offline { color: var(--off); background: rgba(255, 255, 255, .06); }

.input {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus-within { border-color: rgba(167, 139, 250, .6); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); }
.input svg { width: 18px; height: 18px; color: var(--dim); flex: none; }
.input input, .input select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 14.5px; }
.input select { cursor: pointer; appearance: none; padding-right: 18px; }
.input select option { background: var(--surface-2); }
.input input::placeholder { color: var(--dim); }

.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .04) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }

.avatar { position: relative; flex: none; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #2a2346, #12101f); }
.avatar img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.avatar .initial { position: absolute; inset: 0; display: grid; place-items: center; font: 700 18px var(--f-display); color: var(--violet-hi); }

.fill { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.fill > i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--grad); transition: width .8s var(--ease); }

/* 5. Hero ------------------------------------------------------------------ */
.hero { position: relative; padding: 48px 0 0; min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; overflow-x: clip; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.04fr .96fr; gap: 48px; align-items: center; flex: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero-badge b { padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #0b0716; font-size: 11.5px; font-weight: 750; letter-spacing: .04em; }
.hero-badge.down { border-color: rgba(251, 113, 133, .35); background: rgba(251, 113, 133, .08); color: #fecdd3; }
.hero-badge.down b { background: var(--danger); color: #2a0a10; }
.hero h1 { font: 700 clamp(46px, 6.4vw, 88px)/.98 var(--f-display); letter-spacing: -.055em; margin: 0; text-shadow: 0 12px 50px rgba(0, 0, 0, .28); }
.hero h1 .grad-text { display: inline-block; padding-right: .08em; }
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: var(--muted); max-width: 540px; margin: 26px 0 34px; }
.hero-sub b { color: var(--text); font-weight: 650; }
.hero-sub .num-free { color: var(--free); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 0; margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 580px; flex-wrap: wrap; }
.hero-proof div { display: grid; gap: 3px; padding: 0 24px; border-left: 1px solid var(--line); }
.hero-proof div:first-child { padding-left: 0; border-left: 0; }
.hero-proof strong { font: 700 24px var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-proof span { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }

.hero-stage { position: relative; aspect-ratio: 1; max-width: 580px; justify-self: center; width: 100%; perspective: 1000px; isolation: isolate; }
.radar-hud { position: absolute; inset: 3%; border: 1px solid rgba(183, 162, 255, .13); border-radius: 50%; overflow: hidden; opacity: .85; }
.radar-hud::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent calc(50% - .5px), rgba(61, 223, 243, .12) 50%, transparent calc(50% + .5px)), linear-gradient(90deg, transparent calc(50% - .5px), rgba(61, 223, 243, .12) 50%, transparent calc(50% + .5px)), repeating-radial-gradient(circle, transparent 0 23%, rgba(183, 162, 255, .09) 23.2% 23.5%); }
.radar-hud::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: conic-gradient(from 20deg, transparent 0 76%, rgba(61, 223, 243, .02) 82%, rgba(61, 223, 243, .2) 96%, rgba(183, 162, 255, .5) 100%); animation: spin 9s linear infinite; }
.radar-hud i { position: absolute; left: 50%; top: 50%; z-index: 1; width: 7px; height: 7px; margin: -3px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.stage-readout { position: absolute; left: 50%; bottom: 2%; z-index: 4; translate: -50% 0; display: flex; align-items: center; gap: 12px; white-space: nowrap; font: 600 9px var(--f-mono); letter-spacing: .13em; color: var(--dim); }
.stage-readout b { display: inline-flex; align-items: center; gap: 6px; color: var(--free); font-weight: 600; }
.stage-readout i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.hero-art {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: image-set(url("/vertex-art.webp") type("image/webp"), url("/vertex-art.png") type("image/png")) center / 145% no-repeat;
  -webkit-mask: radial-gradient(circle, #000 52%, transparent 71%);
  mask: radial-gradient(circle, #000 52%, transparent 71%);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--ease);
  animation: float 7s ease-in-out infinite;
}
.hero-stage::before { /* glow */
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 134, 255, .42), rgba(103, 232, 249, .18) 45%, transparent 70%);
  filter: blur(46px);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -14px; } }
@keyframes pulse { 50% { opacity: .65; scale: .94; } }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(167, 139, 250, .22); animation: spin 60s linear infinite; }
.orbit.inner { inset: 10%; border-style: solid; border-color: rgba(34, 211, 238, .12); animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { rotate: 360deg; } }
.orbit-item {
  position: absolute;
  width: 64px;
  height: 64px;
  margin: -32px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  animation: spin 60s linear infinite reverse; /* counter-rotate so faces stay upright */
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: scale .25s var(--spring);
}
.orbit-item:hover { scale: 1.15; }
.orbit-item::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--free); border: 2px solid var(--surface); }
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: rgba(19, 19, 31, .78);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  font-size: 13px;
  color: var(--text);
  text-align: left;
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}
.float-card .avatar { width: 38px; height: 38px; border-radius: 11px; }
.float-card small { display: block; color: var(--dim); font-size: 11.5px; }
.float-card b { font-weight: 650; }
.float-card.a { left: -4%; top: 16%; }
.float-card.b { right: -6%; bottom: 18%; animation-delay: -3s; }
.float-card .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); font-size: 18px; }

.hero-floor { /* synthwave perspective grid */
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  perspective: 380px;
  overflow: hidden;
  -webkit-mask: linear-gradient(to top, #000 10%, transparent);
  mask: linear-gradient(to top, #000 10%, transparent);
  z-index: 0;
  pointer-events: none;
}
.hero-floor::before {
  content: "";
  position: absolute;
  inset: 0 -50% -100%;
  background-image:
    linear-gradient(rgba(139, 92, 246, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .25) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotateX(62deg);
  transform-origin: top;
  animation: floor 3s linear infinite;
}
@keyframes floor { to { background-position: 0 64px; } }
.scroll-cue { position: relative; z-index: 2; margin: 40px auto 28px; display: grid; justify-items: center; gap: 8px; color: var(--dim); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue i { width: 22px; height: 34px; border: 2px solid var(--line-2); border-radius: 12px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--violet-hi); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); } }

/* 6. Ticker ---------------------------------------------------------------- */
.ticker { position: relative; border-block: 1px solid var(--line); background: rgba(13, 13, 24, .7); overflow: hidden; height: 52px; display: flex; align-items: center; }
.ticker-label {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 max(20px, calc((100vw - var(--wrap)) / 2));
  background: linear-gradient(90deg, var(--surface) 80%, transparent);
  font: 700 11.5px var(--f-mono);
  letter-spacing: .14em;
  color: var(--free);
  white-space: nowrap;
}
.ticker-track { display: flex; gap: 0; white-space: nowrap; animation: marquee 50s linear infinite; padding-left: 20px; }
.ticker-group { display: flex; flex: none; gap: 40px; padding-right: 40px; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.ticker-toggle { position: sticky; right: 10px; z-index: 3; flex: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 11px; background: rgba(16, 17, 28, .9); color: var(--muted); font: 700 13px var(--f-mono); box-shadow: -18px 0 24px var(--surface); }
.ticker-toggle:hover { color: var(--text); border-color: var(--line-2); }
@keyframes marquee { to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.tick-bot { min-height: 44px; padding: 11px 0; color: var(--text); font-weight: 600; }
.tick-bot:hover { color: var(--violet-hi); }
.tick em { font-style: normal; font-size: 11.5px; color: var(--dim); font-family: var(--f-mono); }
.tick .t-ico { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; }
.tick .t-free { background: rgba(52, 211, 153, .14); color: var(--free); }
.tick .t-busy { background: rgba(251, 191, 36, .14); color: var(--busy); }
.tick .t-up { background: rgba(167, 139, 250, .16); color: var(--violet-hi); }

/* 7. Bento ----------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { padding: 26px; display: flex; flex-direction: column; gap: 6px; min-height: 180px; text-align: left; }
.tile-label { font-size: 12.5px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; display: flex; align-items: center; gap: 8px; }
.tile-value { font: 700 clamp(34px, 4vw, 52px)/1 var(--f-display); letter-spacing: -.03em; margin-top: auto; font-variant-numeric: tabular-nums; }
.tile-foot { color: var(--muted); font-size: 13.5px; }
.tile-foot b { color: var(--text); }
.t-gauge { grid-column: span 5; grid-row: span 2; align-items: center; justify-content: center; text-align: center; }
.t-gauge .gauge { position: relative; width: min(260px, 70%); aspect-ratio: 1; margin: 14px auto 18px; }
.gauge svg { width: 100%; height: 100%; rotate: -90deg; }
.gauge circle { fill: none; stroke-width: 14; }
.gauge .track { stroke: rgba(255, 255, 255, .06); }
.gauge .val { stroke: url(#gaugeGrad); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); filter: drop-shadow(0 0 10px rgba(34, 211, 238, .5)); }
.gauge-center { position: absolute; inset: 0; display: grid; place-content: center; }
.gauge-center strong { font: 800 clamp(44px, 5vw, 64px)/1 var(--f-display); letter-spacing: -.04em; }
.gauge-center span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.t-busy, .t-total, .t-friends { grid-column: span 7; }
.t-busy { grid-column: span 4; }
.t-total { grid-column: span 3; }
.t-friends { grid-column: span 4; }
.t-star { grid-column: span 3; cursor: pointer; }
.t-cluster { grid-column: span 5; }
.t-mode { grid-column: span 7; }
.t-star .avatar { width: 54px; height: 54px; margin-top: 8px; }
.t-star strong { font: 700 18px var(--f-display); margin-top: auto; }
.t-star:hover strong { color: var(--violet-hi); }
.cluster-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: auto; }
.cluster-facts div { display: grid; gap: 2px; }
.cluster-facts b { font: 700 20px var(--f-display); }
.cluster-facts span { font-size: 12px; color: var(--dim); }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 46px; margin-top: auto; }
.mini-bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--series-free); min-height: 3px; opacity: .85; }

/* 8. Match ----------------------------------------------------------------- */
.match-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.match { padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.match::after { /* subtle grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask: radial-gradient(ellipse at 70% 30%, #000, transparent 70%);
  mask: radial-gradient(ellipse at 70% 30%, #000, transparent 70%);
  pointer-events: none;
}
.match > * { position: relative; z-index: 1; }
.match-label { font-size: 13px; color: var(--dim); font-weight: 600; margin-bottom: 10px; }
.slot {
  position: relative;
  height: 140px;
  border-radius: 22px;
  background: #06060c;
  border: 1px solid var(--line-2);
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(139, 92, 246, .15);
}
.slot::before, .slot::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; z-index: 2; pointer-events: none; }
.slot::before { top: 0; background: linear-gradient(#06060c, transparent); }
.slot::after { bottom: 0; background: linear-gradient(transparent, #06060c); }
.slot-reel { position: absolute; inset: 0; display: flex; flex-direction: column; }
.slot-row { flex: none; height: 140px; display: flex; align-items: center; gap: 18px; padding: 0 26px; }
.slot-row .avatar { width: 84px; height: 84px; border-radius: 20px; }
.slot-row strong { font: 700 clamp(20px, 2.6vw, 30px) var(--f-display); letter-spacing: -.02em; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-row small { color: var(--muted); font-size: 13.5px; }
.slot-row > div:last-child { min-width: 0; }
.slot.spinning .slot-reel { filter: blur(1.5px); }
.slot.won { border-color: rgba(52, 211, 153, .55); box-shadow: inset 0 0 60px rgba(52, 211, 153, .18), 0 0 0 4px rgba(52, 211, 153, .12); }
.slot-empty { height: 100%; display: grid; place-items: center; color: var(--dim); text-align: center; padding: 20px; }
.match-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.match-actions .btn-primary { flex: 1; min-width: 200px; height: 58px; font-size: 16px; }
.match-hint { font-size: 13px; color: var(--dim); }

.daily { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.daily-head { display: flex; justify-content: space-between; align-items: center; }
.daily-tag { font: 700 11px var(--f-mono); letter-spacing: .14em; padding: 5px 10px; border-radius: 999px; background: rgba(244, 114, 182, .14); color: var(--pink); }
.daily-timer { font: 600 12.5px var(--f-mono); color: var(--dim); }
.daily-hero { display: flex; gap: 18px; align-items: center; }
.daily-hero .avatar { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 0 0 1px var(--line-2), 0 20px 50px -10px rgba(244, 114, 182, .45); }
.daily-hero h3 { font: 700 24px/1.1 var(--f-display); margin: 0 0 8px; word-break: break-word; }
.daily-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.daily-meta div { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.daily-meta b { display: block; font: 700 17px var(--f-display); }
.daily-meta span { font-size: 12px; color: var(--dim); }
.daily .btn { margin-top: auto; }

/* 9. Directory ------------------------------------------------------------- */
.toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto auto; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .input select { min-width: 140px; }
.dir-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 6px 0 18px; color: var(--dim); font-size: 13.5px; flex-wrap: wrap; }
.dir-meta b { color: var(--text); }
.notify-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); font-size: 13.5px; }
.switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .1); transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.notify-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.notify-toggle input:checked + .switch { background: var(--violet); }
.notify-toggle input:checked + .switch::after { transform: translateX(16px); }
.notify-toggle input:focus-visible + .switch { outline: 2px solid var(--cyan); outline-offset: 2px; }

.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.bot {
  position: relative;
  padding: 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: transform .3s var(--spring), border-color .25s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  content-visibility: auto;
  contain-intrinsic-size: 232px 250px;
}
.bot:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, .35); box-shadow: 0 24px 50px -20px rgba(139, 92, 246, .55); }
.bot-top { display: flex; gap: 12px; align-items: center; }
.bot-top .avatar { width: 58px; height: 58px; border-radius: 16px; }
.bot-name { font-weight: 700; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.bot-top > div { min-width: 0; flex: 1; display: grid; gap: 5px; justify-items: start; padding-right: 30px; }
.bot-top > div .bot-name { max-width: 100%; }
.bot-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bot-stats div { padding: 9px 11px; border-radius: 12px; background: rgba(255, 255, 255, .035); }
.bot-stats b { display: block; font: 700 15px var(--f-display); font-variant-numeric: tabular-nums; }
.bot-stats span { font-size: 11.5px; color: var(--dim); }
.bot-lobby { display: grid; gap: 7px; font-size: 12.5px; color: var(--muted); }
.bot-lobby > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
.bot-lobby .mode { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seats { display: flex; gap: 4px; }
.seats i { flex: 1; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.seats i.on { background: var(--grad); }
.bot.is-busy .seats i.on { background: var(--busy); }
.heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--dim);
  background: rgba(255, 255, 255, .04);
  transition: color .2s, transform .3s var(--spring), background .2s;
  z-index: 2;
}
.heart svg { width: 17px; height: 17px; }
.heart:hover { color: var(--pink); transform: scale(1.1); }
.heart.on { color: var(--pink); background: rgba(244, 114, 182, .14); }
.heart.on svg { fill: currentColor; }
.heart.pop { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.4); } }
.bot-actions { display: flex; gap: 8px; }
.bot-actions .btn { flex: 1; height: 38px; font-size: 13px; border-radius: 11px; padding: 0 10px; }
.copy-btn.copied { background: rgba(52, 211, 153, .16); border-color: rgba(52, 211, 153, .4); color: var(--free); }
.load-more { display: flex; justify-content: center; margin-top: 28px; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty strong { display: block; font: 700 20px var(--f-display); color: var(--text); margin-bottom: 6px; }

/* 10. Trends --------------------------------------------------------------- */
.trend-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.chart-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.chart-card h3 { font: 700 18px var(--f-display); margin: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.chart-sub { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; }
.chart { position: relative; height: 260px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: rgba(255, 255, 255, .06); }
.chart .axis text { fill: var(--dim); font: 500 11px var(--f-body); }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: .16; }
.chart .cross { stroke: rgba(255, 255, 255, .25); stroke-dasharray: 3 3; }
.chart .dotm { stroke: var(--surface); stroke-width: 2; }
.chart .bar { transition: opacity .2s; }
.chart .bar-hit { fill: transparent; cursor: default; }
.chart .label { fill: var(--text); font: 600 11.5px var(--f-body); }
.tooltip {
  position: absolute;
  pointer-events: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(19, 19, 31, .96);
  border: 1px solid var(--line-2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  font-size: 12.5px;
  white-space: nowrap;
  z-index: 5;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity .12s;
}
.tooltip b { display: block; margin-bottom: 4px; color: var(--text); }
.tooltip div { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.tooltip div i { width: 10px; height: 3px; border-radius: 2px; }
.tooltip div span { margin-left: auto; padding-left: 12px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.insight { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .25); font-size: 14px; }
.insight .ico { font-size: 22px; }
.insight b { color: var(--text); }
.chart-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--dim); font-size: 14px; }
details.table-view { font-size: 13px; color: var(--muted); }
details.table-view summary { cursor: pointer; color: var(--dim); }
details.table-view table { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
details.table-view caption { text-align: left; color: var(--dim); padding: 4px 8px 8px; }
details.table-view th, details.table-view td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
details.table-view .tv-scroll { max-height: 220px; overflow: auto; }

/* 11. Locker & modes ------------------------------------------------------- */
.locker-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.locker-lead { padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; }
.locker-lead .bg { position: absolute; inset: 0; display: grid; place-items: center; }
.locker-lead .bg img { width: 82%; max-width: 360px; filter: drop-shadow(0 30px 60px rgba(139, 92, 246, .5)); transition: transform .6s var(--ease); }
.locker-lead:hover .bg img { transform: scale(1.04) translateY(-6px); }
.locker-lead::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, var(--bg)); }
.locker-lead > div:not(.bg) { position: relative; z-index: 2; }
.rank-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--grad); color: #0b0716; font: 700 11.5px var(--f-mono); letter-spacing: .08em; }
.locker-lead h3 { font: 800 clamp(26px, 3vw, 38px)/1.05 var(--f-display); margin: 12px 0 6px; }
.locker-lead p { margin: 0; color: var(--muted); }
.locker-list { padding: 10px; display: grid; gap: 4px; align-content: start; }
.locker-row { display: grid; grid-template-columns: 28px 52px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 16px; transition: background .2s; }
.locker-row:hover { background: rgba(255, 255, 255, .04); }
.locker-row .rk { font: 700 13px var(--f-mono); color: var(--dim); }
.locker-row .avatar { width: 52px; height: 52px; border-radius: 14px; }
.locker-row .nm { font-weight: 650; }
.locker-row .fill { margin-top: 7px; }
.locker-row .ct { font: 700 16px var(--f-display); font-variant-numeric: tabular-nums; text-align: right; }
.locker-row .ct small { display: block; font: 500 11px var(--f-body); color: var(--dim); }

.modes { margin-top: 16px; padding: 26px; }
.mode-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 28px; margin-top: 20px; }
.mode-row { display: grid; gap: 7px; font-size: 14px; }
.mode-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.mode-row span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode-row b { font-variant-numeric: tabular-nums; }
.mode-row .fill > i { background: var(--series-free); }

/* 12. Pass ----------------------------------------------------------------- */
.pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pass-card { padding: 30px; background: radial-gradient(120% 120% at 0% 0%, rgba(139, 92, 246, .28), transparent 50%), radial-gradient(120% 120% at 100% 100%, rgba(34, 211, 238, .16), transparent 50%), var(--surface); }
.pass-top { display: flex; align-items: center; gap: 20px; }
.lvl-ring { position: relative; width: 104px; height: 104px; flex: none; }
.lvl-ring svg { width: 100%; height: 100%; rotate: -90deg; }
.lvl-ring circle { fill: none; stroke-width: 8; }
.lvl-ring .track { stroke: rgba(255, 255, 255, .08); }
.lvl-ring .val { stroke: url(#lvlGrad); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.lvl-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.lvl-ring b { font: 800 34px/1 var(--f-display); }
.lvl-ring small { font-size: 10.5px; color: var(--dim); letter-spacing: .14em; text-transform: uppercase; }
.pass-rank { font: 800 28px/1.1 var(--f-display); margin: 0 0 6px; }
.pass-xp { color: var(--muted); font-size: 14px; }
.pass-xp b { color: var(--text); }
.pass-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.pass-stats div { padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.pass-stats b { display: block; font: 700 22px var(--f-display); }
.pass-stats span { font-size: 12px; color: var(--dim); }
.streak-fire { display: inline-block; animation: flicker 1.6s ease-in-out infinite; }
@keyframes flicker { 50% { transform: scale(1.12) rotate(-4deg); } }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.week div { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--dim); }
.week i { width: 100%; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .05); display: grid; place-items: center; font-style: normal; font-size: 14px; }
.week .on i { background: var(--grad); color: #0b0716; box-shadow: 0 6px 20px -6px rgba(139, 92, 246, .7); }
.week .today { color: var(--text); font-weight: 700; }

.quests { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.quests-head { display: flex; justify-content: space-between; align-items: center; }
.quests-head h3 { font: 700 18px var(--f-display); margin: 0; }
.quest { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.quest .q-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: rgba(255, 255, 255, .05); }
.quest strong { font-size: 14.5px; font-weight: 650; display: block; margin-bottom: 7px; }
.quest .xp { font: 700 12.5px var(--f-mono); color: var(--violet-hi); white-space: nowrap; }
.quest.done { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .06); }
.quest.done .q-ico { background: rgba(52, 211, 153, .16); }
.quest.done .xp { color: var(--free); }
.quest.done .fill > i { background: var(--free); }

.badges { margin-top: 16px; padding: 26px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.badge { padding: 18px 14px; border-radius: 18px; text-align: center; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); display: grid; gap: 6px; justify-items: center; transition: transform .3s var(--spring); }
.badge:hover { transform: translateY(-3px); }
.badge .b-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 26px; background: rgba(255, 255, 255, .04); filter: grayscale(1); opacity: .45; }
.badge strong { font-size: 13.5px; }
.badge small { font-size: 11.5px; color: var(--dim); line-height: 1.35; }
.badge.got { border-color: rgba(167, 139, 250, .35); background: linear-gradient(180deg, rgba(139, 92, 246, .12), rgba(255, 255, 255, .02)); }
.badge.got .b-ico { filter: none; opacity: 1; background: var(--grad-soft); box-shadow: 0 10px 30px -10px rgba(139, 92, 246, .8); }
.pass-note { color: var(--dim); font-size: 12.5px; margin-top: 14px; }

/* 13. CTA & FAQ ------------------------------------------------------------ */
.cta { position: relative; padding: clamp(36px, 6vw, 70px); text-align: center; border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(70% 120% at 50% 0%, rgba(139, 92, 246, .35), transparent 70%), var(--surface); border: 1px solid var(--line-2); }
.cta::before { content: ""; position: absolute; inset: 0; background: image-set(url("/vertex-art.webp") type("image/webp"), url("/vertex-art.png") type("image/png")) center / cover; opacity: .12; -webkit-mask: radial-gradient(circle at 50% 40%, #000, transparent 70%); mask: radial-gradient(circle at 50% 40%, #000, transparent 70%); }
.cta > * { position: relative; }
.cta .h2 { max-width: 760px; margin-inline: auto; }
.cta .lede { margin-inline: auto; }
.cta .hero-ctas { justify-content: center; margin-top: 30px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; text-align: left; }
.perk { padding: 18px; border-radius: 18px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.perk b { display: block; color: var(--text); margin: 8px 0 4px; font-size: 15px; }
.perk span { font-size: 22px; }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); transition: border-color .2s, background .2s; }
.faq details[open] { border-color: rgba(167, 139, 250, .3); background: rgba(139, 92, 246, .05); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 650; font-size: 15.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--f-body); color: var(--violet-hi); transition: rotate .3s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* 14. Overlays ------------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.scrim { position: absolute; inset: 0; background: rgba(3, 3, 8, .6); backdrop-filter: blur(6px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line-2);
  overflow-y: auto;
  animation: slideIn .4s var(--ease);
  overscroll-behavior: contain;
}
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer-close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 12px; background: rgba(0, 0, 0, .4); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 18px; }
.d-hero { position: relative; height: 300px; display: grid; place-items: end center; overflow: hidden; background: radial-gradient(circle at 50% 70%, rgba(139, 92, 246, .45), transparent 60%), linear-gradient(180deg, #17122c, var(--surface)); }
.d-hero img { height: 280px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.d-body { padding: 4px 26px 32px; display: grid; gap: 20px; }
.d-title { display: grid; gap: 8px; }
.d-title h3 { font: 800 28px/1.1 var(--f-display); margin: 0; word-break: break-word; }
.d-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; }
.d-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.d-stats div { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.d-stats b { display: block; font: 700 20px var(--f-display); font-variant-numeric: tabular-nums; }
.d-stats span { font-size: 12px; color: var(--dim); }
.d-sec h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin: 0 0 10px; }
.d-loadout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.d-loadout div { padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); text-align: center; font-size: 12.5px; }
.d-loadout .avatar { width: 100%; aspect-ratio: 1; height: auto; margin-bottom: 8px; }
.d-loadout small { display: block; color: var(--dim); font-size: 11px; }
.d-party { display: grid; gap: 8px; }
.d-party div { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); font-size: 14px; }
.d-party .avatar { width: 38px; height: 38px; border-radius: 11px; }
.d-party em { margin-left: auto; font-style: normal; font: 700 10.5px var(--f-mono); letter-spacing: .1em; color: var(--busy); }

.palette { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding-top: 12vh; }
.palette-panel { position: relative; width: min(620px, 100% - 32px); border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 40px 100px rgba(0, 0, 0, .7); overflow: hidden; animation: popIn .25s var(--spring); }
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(-8px); } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 62px; border-bottom: 1px solid var(--line); }
.palette-input svg { width: 20px; height: 20px; color: var(--dim); }
.palette-input input { flex: 1; border: 0; outline: 0; background: none; font-size: 17px; }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette-group { padding: 10px 12px 6px; font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.p-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: left; font-size: 14.5px; }
.p-item .avatar { width: 34px; height: 34px; border-radius: 10px; }
.p-item .p-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); font-size: 16px; }
.p-item small { margin-left: auto; color: var(--dim); font-size: 12px; }
.p-item.sel { background: rgba(139, 92, 246, .16); }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }

.back-top { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(22, 24, 39, .9); color: var(--muted); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); backdrop-filter: blur(12px); transition: color .2s, border-color .2s, transform .2s var(--ease), opacity .2s; }
.back-top:hover { color: var(--text); border-color: rgba(183, 162, 255, .45); transform: translateY(-2px); }
.back-top svg { width: 20px; height: 20px; }
.toasts { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 380px; padding: 14px 16px; border-radius: 16px; background: rgba(19, 19, 31, .96); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); backdrop-filter: blur(12px); animation: toastIn .45s var(--spring); font-size: 14px; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
.toast .t-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--grad-soft); flex: none; }
.toast small { display: block; color: var(--muted); font-size: 12.5px; }
.toast.badge-toast { border-color: rgba(167, 139, 250, .5); box-shadow: 0 20px 60px -10px rgba(139, 92, 246, .6); }
.toast.xp-toast { min-width: 0; padding: 8px 14px; font: 700 13px var(--f-mono); color: var(--violet-hi); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 110; }

/* Skin studio — teaser on the page */
.studio-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 52px); overflow: hidden; }
.stt-copy { position: relative; display: grid; align-content: center; }
.stt-copy .hero-ctas { margin-top: 26px; }
.stt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.stt-stats div { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.stt-stats b { display: block; font: 700 21px var(--f-display); font-variant-numeric: tabular-nums; }
.stt-stats span { font-size: 12px; color: var(--dim); }
.stt-wall { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); }
.stt-wall .skeleton { aspect-ratio: 1; border-radius: 18px; }
.stt-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, var(--rc1, #8b5cf6), var(--rc2, #3b1d7a) 78%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 30px -14px rgba(0, 0, 0, .8);
  opacity: 0;
  animation: up .6s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform .3s var(--spring), box-shadow .3s;
}
.stt-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s var(--ease); }
.stt-tile span { position: absolute; inset: auto 0 0; padding: 18px 8px 7px; font-size: 11px; font-weight: 650; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75)); opacity: 0; transition: opacity .2s; }
.stt-tile:hover { transform: translateY(-4px) scale(1.04); z-index: 1; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 20px 40px -12px rgba(0, 0, 0, .9); }
.stt-tile:hover img { transform: scale(1.08); }
.stt-tile:hover span, .stt-tile:focus-visible span { opacity: 1; }

/* Skin studio — overlay shell */
.studio { position: fixed; inset: 0; z-index: 85; }
.studio-panel {
  position: absolute;
  inset: 24px;
  max-width: 1440px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .75);
  overflow: hidden;
  animation: popIn .3s var(--spring);
}
.st-head { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(139, 92, 246, .1), transparent 60%); }
.st-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-logo { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: var(--grad-soft); border: 1px solid rgba(167, 139, 250, .3); }
.st-title h2 { font: 700 19px/1.1 var(--f-display); margin: 0; }
.st-title p { margin: 2px 0 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-panes { display: none; }
.st-close { position: static; margin-left: auto; flex: none; }

.st-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 280px minmax(320px, 400px) minmax(0, 1fr); }
.st-col { min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.st-col + .st-col { border-left: 1px solid var(--line); }
.st-stage { background: rgba(255, 255, 255, .015); }
.st-col .input { height: 44px; flex: none; }
.st-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.st-ph h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); font-weight: 650; }
.st-ph small { font: 600 12px var(--f-mono); color: var(--violet-hi); }
.st-stage .st-ph { margin-top: 6px; }
.st-empty { margin: 0; padding: 18px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--dim); font-size: 13px; text-align: center; }
.st-empty.wide { grid-column: 1 / -1; padding: 40px 18px; }

/* bot picker */
.st-bseg { display: flex; flex-wrap: nowrap; }
.st-bseg button { flex: 1; justify-content: center; padding: 0 8px; }
.st-bulk { display: flex; gap: 14px; font-size: 12.5px; }
.st-bulk button { color: var(--violet-hi); font-weight: 600; }
.st-bulk button:hover { text-decoration: underline; text-underline-offset: 3px; }
.st-botlist { display: grid; gap: 6px; }
.st-bot { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 14px; border: 1px solid transparent; text-align: left; transition: background .2s, border-color .2s; }
.st-bot:hover { background: rgba(255, 255, 255, .04); }
.st-bot.on { background: rgba(139, 92, 246, .12); border-color: rgba(167, 139, 250, .4); }
.st-check { width: 20px; height: 20px; flex: none; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.st-bot.on .st-check { background: var(--grad); border-color: transparent; }
.st-bot.on .st-check::after { content: "✓"; font-size: 12px; font-weight: 800; color: #0b0716; }
.st-bot .avatar { width: 40px; height: 40px; border-radius: 11px; }
.st-bn { min-width: 0; display: grid; gap: 2px; }
.st-bn b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-bn small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); white-space: nowrap; overflow: hidden; }
.st-bn .status { padding: 2px 7px; font-size: 10.5px; }

/* preview */
.st-preview {
  --rc1: #8b5cf6;
  --rc2: #22d3ee;
  position: relative;
  flex: none;
  height: 340px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  place-items: end center;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(60% 55% at 50% 62%, color-mix(in srgb, var(--rc1) 55%, transparent), transparent 70%),
    radial-gradient(90% 70% at 50% 110%, color-mix(in srgb, var(--rc2) 45%, transparent), transparent 70%),
    linear-gradient(180deg, #17122c, var(--surface-2));
  transition: background .4s;
}
.st-preview::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(7, 7, 13, .85)); pointer-events: none; }
.st-preview.empty { place-items: center; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 12px, transparent 12px 24px), var(--surface-2); border-style: dashed; }
.st-preview.empty::after { display: none; }
.st-big { position: relative; z-index: 0; height: 320px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .65)); animation: rise .5s var(--ease); }
.st-tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px; font: 700 10.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.st-before { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; max-width: 55%; border-radius: 14px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-2); backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; }
.st-before .avatar { width: 32px; height: 32px; border-radius: 10px; filter: grayscale(.5); }
.st-before span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-before small { display: block; font-size: 10px; color: var(--dim); font-weight: 500; }
.st-cap { position: absolute; inset: auto 0 0; z-index: 2; padding: 16px 18px; display: grid; gap: 3px; }
.st-cap h3 { margin: 0; font: 800 22px/1.1 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-cap small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-rar { justify-self: start; padding: 3px 9px; border-radius: 999px; font: 700 10.5px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, var(--rc1), var(--rc2)); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.st-placeholder { display: grid; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; max-width: 280px; }
.st-placeholder span { font-size: 40px; animation: floaty 4s ease-in-out infinite; }
.st-placeholder p { margin: 0; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(-6deg); } }

/* slots + tools */
.st-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-slot { position: relative; }
.st-slot-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 14px; text-align: left; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.st-slot-btn:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.st-slot.active .st-slot-btn { border-color: rgba(167, 139, 250, .7); box-shadow: 0 0 0 3px rgba(139, 92, 246, .15); }
.st-slot-img { position: relative; width: 42px; height: 42px; flex: none; border-radius: 11px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .05); }
.st-slot.set .st-slot-img { background: radial-gradient(circle at 50% 30%, var(--rc1), var(--rc2) 80%); }
.st-slot-img i { font-style: normal; font-size: 18px; opacity: .6; }
.st-slot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.st-slot-img img.dim { opacity: .45; filter: grayscale(.6); }
.st-slot-txt { min-width: 0; display: grid; }
.st-slot-txt small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 650; }
.st-slot-txt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.st-slot.set .st-slot-txt b { color: var(--text); }
.st-slot-x { position: absolute; top: -6px; right: -6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-3); border: 1px solid var(--line-2); opacity: 0; transition: opacity .15s, background .15s; }
.st-slot-x::after, .st-look-x::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.st-slot:hover .st-slot-x, .st-slot-x:focus-visible { opacity: 1; }
.st-slot-x:hover { background: var(--danger); color: #0b0716; }
.st-tools { display: flex; gap: 8px; }
.st-tools .btn { flex: 1; padding: 0 10px; }

/* saved looks */
.st-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.st-looks .st-empty { grid-column: 1 / -1; }
.st-look { position: relative; }
.st-look-btn { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 8px 6px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 12px; transition: border-color .2s, transform .25s var(--spring); }
.st-look-btn:hover { transform: translateY(-2px); border-color: var(--line-2); }
.st-look-btn.on { border-color: rgba(167, 139, 250, .7); background: rgba(139, 92, 246, .1); }
.st-look-btn img, .st-look-btn i { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; object-position: top; background: radial-gradient(circle at 50% 30%, var(--rc1, #2a2346), var(--rc2, #12101f) 80%); display: grid; place-items: center; font-style: normal; font-size: 22px; }
.st-look-btn span { max-width: 100%; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-look-btn small { font: 600 10.5px var(--f-mono); color: var(--dim); }
.st-look-x { position: absolute; top: -6px; right: -6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-3); border: 1px solid var(--line-2); opacity: 0; transition: opacity .15s, background .15s; }
.st-look:hover .st-look-x, .st-look-x:focus-visible { opacity: 1; }
.st-look-x:hover { background: var(--danger); color: #0b0716; }

/* catalog */
.st-types { flex: none; align-self: flex-start; }
.st-filters { display: grid; grid-template-columns: minmax(0, 1fr) 180px 150px; gap: 8px; flex: none; }
.st-meta { font-size: 13px; color: var(--dim); min-height: 18px; }
.st-meta b { color: var(--text); font-variant-numeric: tabular-nums; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; align-content: start; }
.st-skel { aspect-ratio: .78; border-radius: 16px; }
.st-item {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 6px 6px 9px;
  border-radius: 16px;
  text-align: left;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  transition: transform .25s var(--spring), border-color .2s, box-shadow .2s;
}
.st-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rc1, #8b5cf6) 60%, transparent); box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--rc1, #8b5cf6) 80%, transparent); }
.st-item.on { border-color: var(--violet-hi); box-shadow: 0 0 0 2px rgba(167, 139, 250, .55); }
.st-item-img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin-bottom: 6px; background: radial-gradient(circle at 50% 30%, var(--rc1, #2a2346), var(--rc2, #12101f) 80%); }
.st-item-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s var(--ease); }
.st-item:hover .st-item-img img { transform: scale(1.07); }
.st-item b { font-size: 12.5px; font-weight: 650; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-item small { font-size: 11px; color: var(--dim); padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-new { position: absolute; top: 11px; left: 11px; padding: 2px 6px; border-radius: 6px; font: 700 9.5px var(--f-mono); font-style: normal; letter-spacing: .08em; color: #0b0716; background: var(--busy); }
.st-pick { position: absolute; top: 11px; right: 11px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #0b0716; background: var(--grad); transform: scale(0); transition: transform .3s var(--spring); }
.st-item.on .st-pick { transform: scale(1); }
.st-cat .load-more { margin: 4px 0 8px; }

/* footer */
.st-foot { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(19, 19, 31, .92); backdrop-filter: blur(12px); }
.st-who { display: flex; align-items: center; padding-left: 10px; }
.st-who:empty { display: none; }
.st-who .avatar, .st-more { width: 38px; height: 38px; border-radius: 12px; margin-left: -10px; border: 2px solid var(--surface-2); }
.st-more { display: grid; place-items: center; background: var(--surface-3); font: 700 12px var(--f-mono); color: var(--violet-hi); }
.st-sum { min-width: 0; display: grid; gap: 1px; font-size: 14px; color: var(--muted); }
.st-sum b { color: var(--text); }
.st-sum small { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-sum small:empty { display: none; }
#stApply { margin-left: auto; flex: none; min-width: 200px; }

/* 15. Secondary pages ------------------------------------------------------ */
.page-simple .nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 10, 18, .86); backdrop-filter: blur(18px) saturate(1.2); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; position: relative; }
.auth-bg { position: fixed; inset: 0; background: image-set(url("/vertex-art.webp") type("image/webp"), url("/vertex-art.png") type("image/png")) center / cover; opacity: .35; filter: blur(2px); }
.auth-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(7, 7, 13, .3), var(--bg) 75%); }
.auth-card { position: relative; width: min(460px, 100%); padding: clamp(26px, 5vw, 38px); border-radius: var(--r-xl); background: linear-gradient(145deg, rgba(255, 255, 255, .045), transparent 55%), rgba(13, 17, 29, .9); border: 1px solid var(--line-2); backdrop-filter: blur(20px); box-shadow: var(--sh-lg); display: grid; gap: 18px; }
.auth-card .brand { justify-content: center; }
.auth-card h1 { font: 800 28px/1.1 var(--f-display); text-align: center; margin: 6px 0 0; }
.auth-card > p { text-align: center; color: var(--muted); margin: 0; }
.auth-perks { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.auth-perks li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .035); font-size: 14px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--violet); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.check a { color: var(--violet-hi); text-decoration: underline; text-underline-offset: 3px; }
.btn-discord { background: #5865f2; color: #fff; height: 54px; box-shadow: 0 14px 40px -10px rgba(88, 101, 242, .8); }
.btn-discord:hover { transform: translateY(-2px); background: #4f5be0; }
.auth.locked .btn-discord { opacity: .45; pointer-events: none; filter: grayscale(.4); }
.notice { padding: 12px 14px; border-radius: 12px; background: rgba(251, 113, 133, .1); border: 1px solid rgba(251, 113, 133, .3); color: #fecdd3; font-size: 13.5px; }
.auth-back { position: fixed; top: 20px; left: 20px; z-index: 2; }
@media (max-width: 720px) { .auth-back { position: absolute; } .auth { padding-top: 84px; } }

.legal { width: min(760px, calc(100% - 40px)); margin: 48px auto 0; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 45%), var(--surface); box-shadow: var(--sh-md); }
.legal h1 { font: 700 clamp(34px, 5vw, 50px)/1.05 var(--f-display); letter-spacing: -.035em; margin: 0 0 12px; }
.legal .meta { color: var(--dim); font-size: 14px; line-height: 1.7; margin-bottom: 34px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal h2 { font: 700 20px var(--f-display); letter-spacing: -.015em; margin: 36px 0 10px; scroll-margin-top: 100px; }
.legal p, .legal li { color: var(--muted); line-height: 1.75; }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal li > ul { margin-top: 8px; }
.legal b { color: var(--text); }
.legal a { color: var(--violet-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font: 12.5px var(--f-mono); padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--text); overflow-wrap: anywhere; }

.exec-hero { padding: 72px 0 34px; }
.exec-hero h1 { font: 700 clamp(40px, 6vw, 72px)/1 var(--f-display); letter-spacing: -.05em; margin: 0; }
.exec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.exec-card { padding: 28px; display: grid; gap: 14px; align-content: start; }
.exec-card .state { font: 800 30px var(--f-display); display: flex; align-items: center; gap: 12px; }
.exec-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.exec-facts li { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.exec-facts b { display: block; font: 700 20px var(--f-display); }
.exec-facts span { font-size: 12px; color: var(--dim); }
.steps { counter-reset: step; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 14.5px; }
.steps li::before { content: counter(step); width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--grad-soft); color: var(--violet-hi); font: 700 13px var(--f-mono); }
.exec-bots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.exec-bot { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); text-align: left; transition: border-color .2s, background .2s, transform .25s var(--spring); }
.exec-bot:hover { border-color: rgba(167, 139, 250, .4); transform: translateY(-2px); }
.exec-bot .avatar { width: 40px; height: 40px; border-radius: 12px; }
.exec-bot b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exec-bot small { color: var(--dim); font-size: 12px; }
.exec-bot > div { min-width: 0; }
.exec-bot.copied { border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .08); }
.exec-bot.copied small { color: var(--free); }

.nf { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 32px 20px; isolation: isolate; }
.nf::before { content: ""; position: absolute; z-index: -1; width: min(70vw, 620px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 70px rgba(148, 134, 255, .025), 0 0 0 140px rgba(148, 134, 255, .015); }
.nf-code { font: 700 clamp(110px, 24vw, 240px)/.9 var(--f-display); letter-spacing: -.075em; filter: drop-shadow(0 18px 50px rgba(148, 134, 255, .22)); }
.nf h1 { font: 700 clamp(24px, 4vw, 34px) var(--f-display); letter-spacing: -.025em; margin: 14px 0 8px; }
.nf p { color: var(--muted); margin: 0 0 28px; }
.nf .hero-ctas { justify-content: center; }

/* 16. Motion & responsive -------------------------------------------------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; }
.stagger > * { animation: up .6s var(--ease) forwards; }
.js .stagger > * { opacity: 0; transform: translateY(18px); }
@keyframes up { to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  :root { --nav-h: 112px; }
  .nav-links { position: absolute; top: 72px; left: 50%; translate: -50% 0; display: flex; width: 100vw; height: 40px; margin: 0; padding: 0 max(20px, calc((100vw - var(--wrap)) / 2)); overflow-x: auto; overscroll-behavior-x: none; scrollbar-width: none; background: rgba(7, 10, 18, .9); border-block: 1px solid var(--line); backdrop-filter: blur(18px); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: none; display: inline-flex; align-items: center; padding-inline: 13px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-proof { justify-content: center; }
  .hero-proof { margin-inline: auto; }
  .hero-stage { max-width: 420px; grid-row: auto; margin-top: 12px; }
  .t-gauge { grid-column: span 12; grid-row: auto; }
  .t-busy, .t-total, .t-friends, .t-star, .t-cluster, .t-mode { grid-column: span 6; }
  .match-grid, .trend-grid, .locker-grid, .pass-grid, .exec-grid { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .input:first-child { grid-column: 1 / -1; }
  .studio-teaser { grid-template-columns: 1fr; }
  .stt-wall { transform: none; grid-template-columns: repeat(6, 1fr); }
  .st-body { grid-template-columns: 250px minmax(300px, 360px) minmax(0, 1fr); }
  .st-filters { grid-template-columns: 1fr 1fr; }
  .st-filters .input:first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .st-panes { display: inline-flex; margin-left: auto; flex-wrap: nowrap; }
  .st-close { margin-left: 0; }
  .st-title p { display: none; }
  .st-body { display: block; position: relative; }
  .st-col { height: 100%; }
  .st-col + .st-col { border-left: 0; }
  .st-body[data-pane="bots"] .st-col:not(.st-bots),
  .st-body[data-pane="look"] .st-col:not(.st-stage),
  .st-body[data-pane="cat"] .st-col:not(.st-cat) { display: none; }
  .st-col { animation: fade .2s; }
  .st-slots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  .page-simple { --nav-h: 104px; }
  body { font-size: 14.5px; }
  .wrap { width: calc(100% - 28px); }
  .nav-links { display: none; }
  .page-simple .nav-links { display: flex; top: 60px; }
  .page-simple .nav-links a { min-height: 44px; }
  .nav-right .chip-btn.find span, .nav-right .chip-btn kbd, .live-pill .lp-text, .level-chip span { display: none; }
  .nav .wrap { gap: 10px; min-width: 0; }
  .nav-right { gap: 6px; min-width: 0; }
  .nav-right .chip-btn, .nav-right .live-pill, .nav-right .account-login, .nav-right .account-chip { height: 44px; min-height: 44px; }
  .nav-right .chip-btn { min-width: 40px; padding: 0 10px; justify-content: center; }
  .nav-right .chip-btn.find { width: 44px; padding: 0; }
  #langBtn { display: inline-flex; width: 44px; padding: 0; }
  .level-chip { padding: 0 6px; }
  .account-chip { width: 44px; max-width: 44px; padding: 0 4px; justify-content: center; }
  .account-chip > span { display: none; }
  .account-login { padding: 0 12px; }
  .live-pill { min-width: 44px; padding: 0 8px; }
  .hero { min-height: auto; padding-top: 30px; }
  .hero-stage { max-width: 300px; margin-top: 20px; }
  .stage-readout { bottom: -2%; }
  .float-card { display: none; }
  .orbit-item { width: 48px; height: 48px; margin: -24px; border-radius: 14px; }
  .hero-proof { width: 100%; }
  .hero-proof div { padding-inline: 16px; }
  .hero-proof strong { font-size: 21px; }
  .hero-proof span { font-size: 9px; }
  .seg button, .chip { min-width: 44px; min-height: 44px; }
  .heart { width: 44px; height: 44px; top: 8px; right: 8px; }
  .drawer-close { width: 44px; height: 44px; }
  .back-top { right: 14px; bottom: 88px; }
  .section { padding-top: 80px; }
  .bento { gap: 10px; }
  .tile { padding: 20px; min-height: 150px; }
  .t-busy, .t-total, .t-friends, .t-star, .t-cluster, .t-mode { grid-column: span 12; }
  .t-busy, .t-total { grid-column: span 6; }
  .match, .daily, .chart-card, .pass-card, .quests, .badges, .modes { padding: 20px; }
  .slot, .slot-row { height: 112px; }
  .slot-row { padding-inline: 16px; gap: 12px; }
  .slot-row .avatar { width: 66px; height: 66px; }
  .bot-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bot { padding: 12px; gap: 10px; }
  .bot-top { flex-direction: column; align-items: flex-start; }
  .bot-top .avatar { width: 100%; height: auto; aspect-ratio: 1.3; }
  .bot-stats div { padding: 7px 9px; }
  .bot-actions .btn { height: 44px; }
  .perks { grid-template-columns: 1fr; }
  .pass-stats { grid-template-columns: repeat(3, 1fr); }
  .daily-meta { grid-template-columns: repeat(3, 1fr); }
  .locker-lead { min-height: 340px; }
  .toolbar { grid-template-columns: 1fr; }
  .toasts { left: 14px; right: 14px; bottom: 84px; justify-items: stretch; }
  .toast { max-width: none; }
  .footer { padding-bottom: 110px; }
  .footer .wrap { grid-template-columns: 1fr; gap: 14px; }
  .footer .wrap > span, .footer nav { justify-self: start; }
  .footer nav { gap: 4px 18px; }
  .footer a { min-height: 40px; }
  .footer #footerLogin { max-width: 100%; }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 60;
    height: 64px;
    border-radius: 22px;
    background: rgba(19, 19, 31, .88);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  }
  .tabbar a { display: grid; place-items: center; align-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--dim); }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a.active { color: var(--text); }
  .tabbar a.active svg { color: var(--violet-hi); }
  .tabbar a.match-tab span:first-child { width: 46px; height: 46px; margin-top: -26px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #0b0716; box-shadow: 0 10px 30px -6px rgba(139, 92, 246, .9); }
  .exec-card { padding: 22px; }
  .exec-facts { grid-template-columns: 1fr 1fr; }
  .legal { width: calc(100% - 24px); margin-top: 24px; padding: 24px 20px; border-radius: var(--r-lg); }
  .d-body { padding-inline: 20px; }
  .d-stats div { padding: 10px; }
  .palette { padding-top: 6vh; }
  .palette-panel { width: calc(100% - 20px); border-radius: 18px; }
  .palette-list { max-height: 60vh; }
  .stt-stats { grid-template-columns: repeat(2, 1fr); }
  .stt-wall { grid-template-columns: repeat(4, 1fr); }
  .studio-panel { inset: 0; border-radius: 0; border: 0; }
  .st-head { padding: 10px 12px; gap: 8px; padding-top: max(10px, env(safe-area-inset-top)); }
  .st-title { gap: 8px; }
  .st-logo { width: 36px; height: 36px; font-size: 17px; }
  .st-title h2 { font-size: 16px; }
  .st-panes button { min-height: 44px; padding: 0 8px; font-size: 12.5px; }
  .st-col { padding: 14px; }
  .st-preview { height: 300px; }
  .st-big { height: 280px; }
  .st-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .st-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-tools .btn { padding-inline: 6px; font-size: 12px; }
  .st-bulk button { min-height: 44px; }
  .st-foot { flex-wrap: wrap; gap: 10px 14px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
  .st-sum { flex: 1 1 0; }
  .st-types { display: flex; flex-wrap: nowrap; align-self: stretch; overflow-x: auto; scrollbar-width: none; }
  .st-types button { flex: 1 0 auto; min-height: 44px; justify-content: center; padding: 0 9px; font-size: 13px; }
  #stApply { flex: 1 1 100%; min-width: 0; height: 50px; }
  .st-slot-x, .st-look-x { opacity: 1; }
}
@media (max-width: 440px) {
  .nav .wrap { gap: 8px; }
  .nav .brand { font-size: 0; gap: 0; }
  .nav-right { gap: 4px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 48px); }
  .hero-badge { max-width: 100%; }
  .hero-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-ctas .btn { width: 100%; }
  .hero-proof div { padding-inline: 11px; }
  .bot-grid { grid-template-columns: 1fr; }
  .bot-top { flex-direction: row; align-items: center; }
  .bot-top .avatar { width: 64px; height: 64px; aspect-ratio: auto; }
  .d-actions { grid-template-columns: 1fr auto; }
  .d-actions .copy-btn { grid-column: 1; grid-row: 1; }
  .d-actions [data-style] { grid-column: 1 / -1; grid-row: 2; }
  .d-actions .heart-big { grid-column: 2; grid-row: 1; }
  .exec-bots { grid-template-columns: 1fr; }
  .st-head { gap: 6px; }
  .st-title > div { display: none; }
  .st-panes button { min-width: 0; padding-inline: 7px; font-size: 11.5px; }
  .st-panes small { display: none; }
  .st-foot .st-who { display: none; }
  .stt-wall { grid-template-columns: repeat(3, 1fr); }
  .stt-wall > :nth-child(n+10) { display: none; }
}
@media (max-width: 360px) {
  .level-chip { display: none; }
  .hero-proof span { font-size: 8.5px; }
  .legal { padding: 20px 16px; }
  .st-col { padding: 12px; }
  .st-preview { height: 260px; }
  .st-big { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .ticker-group[aria-hidden="true"], .ticker-toggle { display: none; }
}
