:root {
  --bg: #100c1c;
  --surface: #1c1630;
  --surface-2: #241c3c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f3fb;
  --text-muted: #b6abcc;
  --text-dim: #8a7ea6;
  --pink: #ef4ce0;
  --purple: #9b3ff5;
  --blue: #349edb;
  --green: #3ddc84;
  --red: #f2666b;
  --grad: linear-gradient(135deg, var(--pink), var(--purple));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Fredoka', sans-serif; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--pink); }

img { max-width: 100%; display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 14px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--grad);
  color: #180a24;
  box-shadow: 0 10px 30px -8px rgba(239, 76, 224, 0.55);
}
.btn-primary:hover { opacity: 0.92; color: #180a24; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.btn[disabled] { cursor: default; opacity: 0.55; }
.btn[disabled]:hover { opacity: 0.55; }
.btn[disabled]:active { transform: none; }
.btn svg { transition: transform 0.2s ease; }
.btn:not([disabled]):hover svg { transform: translateX(3px); }
.copy-btn.copied svg { transform: none; }
.ip-box .copy-btn.copied { background: var(--green); box-shadow: 0 10px 24px -10px rgba(61, 220, 132, 0.6); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.eyebrow {
  display: block;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.dot-lg { width: 14px; height: 14px; }
.pulse { animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 64px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(16, 12, 28, 0.85);
  backdrop-filter: blur(10px);
  z-index: 20;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
}
.nav.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(16, 12, 28, 0.96);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.7);
}
.nav-left { display: flex; align-items: center; gap: 14px; }
.nav-brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.nav-brand:hover { color: var(--text); }
.nav-logo { width: 40px; height: 40px; border-radius: 11px; }
.wordmark { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: 0.01em; }
.ext-icon { margin-left: auto; opacity: 0.6; flex-shrink: 0; }
.menu-trigger { position: relative; }
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-bars { display: none; }
.nav-toggle.open .icon-close { display: block; }
.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 230px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.55);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top left;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
}
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.mobile-menu a.active { color: var(--pink); background: rgba(239, 76, 224, 0.1); }
.mobile-menu a.active .menu-icon { color: var(--pink); }
.menu-icon { width: 17px; height: 17px; flex-shrink: 0; color: var(--text-dim); }
.menu-divider { height: 1px; background: var(--border); margin: 6px 6px; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 12px; margin-right: auto; }
.nav-links a {
  position: relative;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-status:hover { background: rgba(255, 255, 255, 0.08); }
.nav-status[data-state="online"] { border-color: rgba(61, 220, 132, 0.4); }
.nav-status[data-state="offline"] { border-color: rgba(242, 102, 107, 0.4); }
.nav-status.copied { border-color: var(--green); color: var(--green); }
.nav-status .dot { width: 8px; height: 8px; }
.btn-icon { padding: 0; width: 40px; height: 40px; }
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon:hover svg { transform: none; }
@media (min-width: 1181px) {
  .menu-trigger { display: none; }
}
@media (max-width: 1320px) {
  .nav-links a { padding: 9px 10px; }
  .nav-links a.active::after { left: 10px; right: 10px; }
}
@media (max-width: 1180px) {
  .nav-links { display: none; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .footer-links { max-width: 100%; }
}
@media (max-width: 600px) {
  .nav-actions .btn-icon { display: none; }
  .nav-status { padding: 0 11px; }
  .nav-status[data-state="unknown"] { display: none; }
}
@media (max-width: 480px) {
  .nav-brand .wordmark { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 64px 80px;
  display: flex;
  align-items: center;
  gap: 64px;
  overflow: hidden;
}
.glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.glow-pink { top: -200px; right: -160px; background: radial-gradient(circle, rgba(239, 76, 224, 0.35), transparent 70%); }
.glow-blue { bottom: -260px; left: -180px; background: radial-gradient(circle, rgba(52, 158, 219, 0.28), transparent 70%); }
.hero-text { position: relative; z-index: 1; max-width: 620px; display: flex; flex-direction: column; gap: 24px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: rgba(52, 158, 219, 0.12);
  border: 1px solid rgba(52, 158, 219, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.hero h1 { font-size: 56px; line-height: 1.08; font-weight: 700; }
.lede { font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.ip-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 12px 12px 20px;
  font-weight: 700;
  font-size: 15px;
}
.hero-art { position: relative; z-index: 1; flex: 1; display: flex; justify-content: center; }
.hero-art img { width: 340px; height: 340px; border-radius: 36px; box-shadow: 0 30px 80px -20px rgba(155, 63, 245, 0.5); }

/* Page hero (sub-pages) */
.page-hero { position: relative; padding: 72px 64px 48px; overflow: hidden; }
.page-hero-inner { position: relative; z-index: 1; max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { font-size: 40px; font-weight: 700; line-height: 1.15; }
.page-hero .lede { max-width: 560px; }

/* Entrance & reveal animations */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 24px) scale(1.08); }
  }
  @keyframes drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(26px, -20px) scale(1.05); }
  }
  @keyframes float-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  .glow-pink { animation: drift-a 15s ease-in-out infinite; }
  .glow-blue { animation: drift-b 19s ease-in-out infinite; }

  .hero .pill, .hero h1, .hero .lede, .hero .hero-actions {
    animation: fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .hero .pill { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.15s; }
  .hero .lede { animation-delay: 0.25s; }
  .hero .hero-actions { animation-delay: 0.35s; }
  .hero-art img {
    animation-name: fade-up, float-bob;
    animation-duration: 0.8s, 4.5s;
    animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1), ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: both, none;
    animation-delay: 0.2s, 1s;
  }

  .page-hero .eyebrow, .page-hero h1, .page-hero .lede {
    animation: fade-up 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .page-hero h1 { animation-delay: 0.08s; }
  .page-hero .lede { animation-delay: 0.16s; }

  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .reveal.in-view { opacity: 1; transform: none; }
  .reveal:nth-child(1) { transition-delay: 0ms; }
  .reveal:nth-child(2) { transition-delay: 60ms; }
  .reveal:nth-child(3) { transition-delay: 120ms; }
  .reveal:nth-child(4) { transition-delay: 180ms; }
  .reveal:nth-child(5) { transition-delay: 240ms; }
  .reveal:nth-child(6) { transition-delay: 300ms; }
  .reveal:nth-child(7) { transition-delay: 360ms; }
  .reveal:nth-child(8) { transition-delay: 420ms; }
}

/* Status */
.status-section { padding: 0 64px 96px; }
.status-card {
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
}
.status-left { display: flex; align-items: center; gap: 20px; }
.status-title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 22px; }
.status-caption { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.status-right { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.stat-label { font-size: 12px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.stat-value { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 20px; }
.stat-blue { color: var(--blue); }
.stat-green { color: var(--green); }
.stat-red { color: var(--red); }

.dot-offline { background: var(--red); }
.dot-loading { background: var(--text-dim); }

/* Sections */
.section { padding: 0 64px 100px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; max-width: 560px; }
.section-head h2 { font-size: 34px; font-weight: 600; }
.section-head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; max-width: none; }
.section-note { font-size: 14px; color: var(--text-dim); margin-top: 4px; }
.link-arrow { font-size: 14px; font-weight: 700; white-space: nowrap; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-compact { gap: 16px; }

.feature-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 600; }
.feature-card p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-pink { background: rgba(239, 76, 224, 0.14); color: var(--pink); }
.icon-blue { background: rgba(52, 158, 219, 0.14); color: var(--blue); }
.icon-purple { background: rgba(155, 63, 245, 0.14); color: var(--purple); }
.icon-green { background: rgba(61, 220, 132, 0.14); color: var(--green); }
.icon-red { background: rgba(242, 102, 107, 0.14); color: var(--red); }
.icon-white { background: rgba(255, 255, 255, 0.08); color: var(--text); }

/* Quick links (home) */
.quicklinks-section { padding-top: 0; }
.quicklink-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.quicklink-card:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.quicklink-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.quicklink-card p { font-size: 13px; color: var(--text-dim); }

/* Changelog */
.patch-list { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.patch-card { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.patch-head { display: flex; align-items: center; justify-content: space-between; }
.patch-head h3 { font-size: 16px; font-weight: 600; }
.patch-date { font-size: 12px; color: var(--text-dim); }
.patch-block { display: flex; flex-direction: column; gap: 8px; }
.patch-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.patch-add { color: var(--green); }
.patch-fix { color: var(--blue); }
.patch-remove { color: var(--red); }
.patch-note { color: var(--text-dim); }
.patch-block p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.patch-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.patch-filters button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font: 700 13px 'Manrope', sans-serif; cursor: pointer; }
.patch-filters button span { font-size: 11.5px; color: var(--text-dim); }
.patch-filters button.is-active { color: var(--text); border-color: rgba(239, 76, 224, 0.6); background: rgba(239, 76, 224, 0.12); }
.patch-filters button:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.patch-live { position: relative; overflow: hidden; }
.patch-live::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent, var(--pink)); opacity: 0.85; }
.patch-head { gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.patch-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.patch-title h3 { flex-basis: 100%; font-size: 18px; line-height: 1.3; }
.patch-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; color: var(--text-muted); background: rgba(255, 255, 255, 0.07); }
.patch-tag.is-new { color: var(--pink); background: rgba(239, 76, 224, 0.14); }
.patch-block ul { list-style: disc; margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.patch-block li::marker { color: var(--text-dim); }
.patch-block b { color: var(--text); }
.patch-block code { font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: rgba(239, 76, 224, 0.12); color: var(--pink); }
.patch-block a, .patch-link { color: var(--pink); font-weight: 700; }
.patch-link { font-size: 13px; align-self: flex-start; }
.patch-more { align-self: center; }
.patch-base { display: flex; flex-direction: column; gap: 20px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--border); }

/* Home */
.home-app a[data-home-go] { cursor: pointer; }

.hm-hero { position: relative; display: flex; align-items: center; min-height: min(88vh, 820px); overflow: hidden; isolation: isolate; }
.hm-slides { position: absolute; inset: 0; z-index: -2; }
.hm-slide { position: absolute; inset: -2%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hm-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes hm-zoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
  .hm-slide.is-active { animation: hm-zoom 9s ease-out both; }
}
.hm-hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(16, 12, 28, 0.92) 0%, rgba(16, 12, 28, 0.62) 42%, rgba(16, 12, 28, 0.1) 75%),
  linear-gradient(0deg, var(--bg) 0%, rgba(16, 12, 28, 0) 32%); }
.hm-hero-content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 96px 64px 140px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hm-hero h1 { font-size: 68px; line-height: 1.02; font-weight: 700; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45); }
.hm-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-hero-content > p { max-width: 520px; font-size: 18px; line-height: 1.6; color: #e4ddf2; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.hm-live { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: rgba(16, 12, 28, 0.6); border: 1px solid var(--border-strong); backdrop-filter: blur(8px); font-size: 13px; font-weight: 700; }
.hm-live[data-state="online"] { border-color: rgba(61, 220, 132, 0.45); color: var(--green); }
.hm-live .dot { width: 8px; height: 8px; }
.hm-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hm-ip { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 18px; padding: 10px 10px 10px 20px; border-radius: 16px; border: 1px solid var(--border-strong); background: rgba(28, 22, 48, 0.85); backdrop-filter: blur(8px); color: var(--text); font-family: 'Manrope', sans-serif; text-align: left; cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease; }
.hm-ip:hover { border-color: rgba(239, 76, 224, 0.6); transform: translateY(-2px); }
.hm-ip-label { grid-column: 1; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.hm-ip-value { grid-column: 1; font-family: 'Fredoka', sans-serif; font-size: 22px; font-weight: 600; }
.hm-ip-btn { grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 12px; background: var(--grad); color: #180a24; font-weight: 800; font-size: 14px; box-shadow: 0 10px 30px -8px rgba(239, 76, 224, 0.55); }
.hm-ip-btn svg { width: 16px; height: 16px; }
.hm-ip.is-copied .hm-ip-btn { background: var(--green); }
.hm-join-link { background: rgba(16, 12, 28, 0.55); backdrop-filter: blur(8px); }
.hm-join-link svg { width: 16px; height: 16px; }
.btn.hm-join-link:hover svg { transform: translateY(2px); }
.hm-slide-nav { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(1112px, calc(100% - 40px)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hm-dot { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; color: var(--text-muted); font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.hm-dot.is-active { color: var(--text); }
.hm-dot-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.hm-dot-bar span { display: block; height: 100%; width: 0; background: var(--grad); }
.hm-dot.is-active .hm-dot-bar span { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes hm-progress { from { width: 0; } to { width: 100%; } }
  .hm-dot.is-active .hm-dot-bar span { animation: hm-progress 6.5s linear both; }
}

.hm-section { max-width: 1240px; margin: 0 auto; padding: 88px 64px 0; }
.hm-section:last-child { padding-bottom: 104px; }
.hm-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 640px; }
.hm-head .eyebrow { margin-bottom: 0; }
.hm-head h2 { font-size: 38px; font-weight: 700; line-height: 1.1; }
.hm-head p { font-size: 16px; color: var(--text-muted); }
.hm-head-row { flex-direction: row; align-items: flex-end; justify-content: space-between; max-width: none; gap: 20px; }
.hm-head-row > div:first-child { display: flex; flex-direction: column; gap: 10px; }

.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.hm-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.hm-step-n { position: absolute; top: -18px; right: 10px; font-family: 'Fredoka', sans-serif; font-size: 120px; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, 0.04); pointer-events: none; }
.hm-step-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(239, 76, 224, 0.14); color: var(--pink); margin-bottom: 6px; }
.hm-step-icon svg { width: 24px; height: 24px; }
.hm-step-icon.is-play { background: var(--grad); color: #180a24; }
.hm-step-icon.is-play svg { width: 20px; height: 20px; }
.hm-step h3 { font-size: 20px; font-weight: 600; }
.hm-step p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
.hm-step p b { color: var(--text); }
.hm-step code { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 0.9em; font-weight: 700; color: var(--pink); background: rgba(239, 76, 224, 0.1); padding: 1px 6px; border-radius: 6px; }
.hm-fields { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.hm-field { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--text); font-family: 'Manrope', sans-serif; font-size: 14px; text-align: left; }
.hm-field span { width: 70px; font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.hm-field b { flex: 1; font-variant-numeric: tabular-nums; }
.hm-field svg { width: 15px; height: 15px; color: var(--text-dim); }
.hm-field.is-copy { cursor: pointer; transition: border-color 0.15s ease; }
.hm-field.is-copy:hover { border-color: rgba(239, 76, 224, 0.5); }
.hm-field.is-copy:hover svg { color: var(--pink); }
.hm-field.is-copied { border-color: var(--green); }
.hm-field.is-copied svg { color: var(--green); }
.hm-console { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 22px; border-radius: 18px; background: rgba(52, 158, 219, 0.08); border: 1px solid rgba(52, 158, 219, 0.3); }
.hm-console > span { display: flex; color: var(--blue); }
.hm-console > span svg { width: 26px; height: 26px; }
.hm-console p { flex: 1; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.hm-console p b { color: var(--text); }

.hm-arrows { display: flex; gap: 8px; }
.hm-arrow { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.hm-arrow:hover { border-color: rgba(239, 76, 224, 0.6); }
.hm-arrow svg { width: 20px; height: 20px; }
.hm-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.hm-track::-webkit-scrollbar { display: none; }
.hm-track { grid-auto-columns: calc((100% - 32px) / 3); }
.hm-card { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); color: var(--text); overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease; }
.hm-card:hover { color: var(--text); border-color: rgba(239, 76, 224, 0.55); transform: translateY(-4px); }
.hm-card-media { display: flex; align-items: center; justify-content: center; height: 210px; flex-shrink: 0; background: radial-gradient(circle at 50% 55%, rgba(239, 76, 224, 0.22), rgba(255, 255, 255, 0.02) 70%); overflow: hidden; }
.hm-card-media.is-shot { background-size: cover; background-position: center; transition: transform 0.5s ease; }
.hm-card:hover .hm-card-media.is-shot { transform: scale(1.05); }
.hm-card-media.is-item img { width: 112px; height: 112px; image-rendering: pixelated; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.5)); transition: transform 0.3s ease; }
.hm-card:hover .hm-card-media.is-item img { transform: rotate(-8deg) scale(1.08); }
.hm-card-media.is-leagues { display: grid; grid-template-columns: repeat(3, 56px); gap: 10px 18px; align-content: center; justify-content: center; }
.hm-card-media.is-leagues img { width: 56px; height: 56px; image-rendering: pixelated; }
.hm-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.hm-tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--pink); }
.hm-card-body b { font-family: 'Fredoka', sans-serif; font-size: 22px; font-weight: 600; }
.hm-card-body small { font-size: 14px; line-height: 1.55; color: var(--text-muted); flex: 1; }
.hm-card-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--blue); }
.hm-card-cta svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.hm-card:hover .hm-card-cta svg { transform: translateX(3px); }

.hm-today-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; }
.hm-next { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 380px; padding: 30px; border-radius: 24px; background-color: var(--surface-2); background-size: cover; background-position: center; border: 1px solid var(--border-strong); overflow: hidden; box-shadow: inset 0 3px 0 var(--c); }
.hm-next-label { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(16, 12, 28, 0.7); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c); }
.hm-next-label svg { width: 15px; height: 15px; }
.hm-next h3 { font-size: 46px; font-weight: 700; line-height: 1; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
.hm-next h3 small { font-size: 20px; font-weight: 600; color: var(--text-muted); }
.hm-next p { max-width: 440px; font-size: 15px; line-height: 1.55; color: #e4ddf2; }
.hm-timer { display: flex; gap: 10px; margin-top: 6px; }
.hm-timer span { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 12px 10px; border-radius: 14px; background: rgba(16, 12, 28, 0.72); border: 1px solid var(--border-strong); backdrop-filter: blur(6px); }
.hm-timer b { font-family: 'Fredoka', sans-serif; font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hm-timer small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.hm-day { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.hm-outpost { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(242, 102, 107, 0.08); border: 1px solid rgba(242, 102, 107, 0.3); }
.hm-outpost.is-open { background: rgba(61, 220, 132, 0.08); border-color: rgba(61, 220, 132, 0.35); }
.hm-outpost div { display: flex; flex-direction: column; }
.hm-outpost b { font-size: 15px; }
.hm-outpost small { font-size: 12.5px; color: var(--text-dim); }
.hm-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hm-timeline li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 3px 0 0 var(--c); font-size: 14px; }
.hm-timeline li.is-done { opacity: 0.45; }
.hm-timeline li.is-next { background: rgba(239, 76, 224, 0.1); box-shadow: inset 3px 0 0 var(--c), 0 0 0 1px rgba(239, 76, 224, 0.45); }
.hm-tl-time { min-width: 46px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hm-tl-name { flex: 1; font-weight: 700; color: var(--c); }
.hm-tl-tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #180a24; background: var(--grad); padding: 3px 8px; border-radius: 999px; }
.hm-tl-tag.is-done { color: var(--text-dim); background: none; padding: 0; }
.hm-day-foot { font-size: 12.5px; color: var(--text-dim); }
.hm-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--pink); white-space: nowrap; }
.hm-more svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.hm-more:hover { color: var(--text); }
.hm-more:hover svg { transform: translateX(3px); }

.hm-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hm-news-card { display: flex; flex-direction: column; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); color: var(--text); overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease; }
.hm-news-card:hover { color: var(--text); border-color: rgba(239, 76, 224, 0.55); transform: translateY(-4px); }
.hm-news-art { display: flex; align-items: center; justify-content: center; height: 180px; background: radial-gradient(circle at 50% 60%, rgba(239, 76, 224, 0.22), rgba(255, 255, 255, 0.02) 70%); }
.hm-news-art img { max-height: 150px; max-width: 70%; image-rendering: pixelated; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5)); }
.hm-news-art.is-shot { background-size: cover; background-position: center; }
.hm-news-art.is-coins { background: radial-gradient(circle at 50% 60%, rgba(255, 200, 61, 0.22), rgba(255, 255, 255, 0.02) 70%); }
.hm-coins { width: 150px; height: 120px; overflow: visible; filter: drop-shadow(0 10px 18px rgba(233, 154, 31, 0.35)); }
.hm-news-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.hm-news-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-news-meta small { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.hm-news-body b { font-family: 'Fredoka', sans-serif; font-size: 21px; font-weight: 600; line-height: 1.2; }
.hm-news-body > small { font-size: 14px; line-height: 1.55; color: var(--text-muted); }

@media (max-width: 1100px) {
  .hm-track { grid-auto-columns: calc((100% - 16px) / 2); }
  .hm-steps { grid-template-columns: 1fr; }
  .hm-today-grid { grid-template-columns: 1fr; }
  .hm-news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .hm-hero { min-height: auto; }
  .hm-hero-content { padding: 64px 20px 120px; align-items: stretch; }
  .hm-live { align-self: flex-start; }
  .hm-hero h1 { font-size: 40px; }
  .hm-hero-content > p { font-size: 15.5px; }
  .hm-hero-shade { background: linear-gradient(180deg, rgba(16, 12, 28, 0.55) 0%, rgba(16, 12, 28, 0.82) 60%, var(--bg) 100%); }
  .hm-hero-actions { flex-direction: column; align-items: stretch; }
  .hm-ip-value { font-size: 18px; }
  .hm-ip-btn { padding: 12px 14px; }
  .hm-join-link { justify-content: center; }
  .hm-slide-nav { gap: 8px; bottom: 22px; }
  .hm-dot-label { display: none; }
  .hm-section { padding: 56px 20px 0; }
  .hm-section:last-child { padding-bottom: 64px; }
  .hm-head { margin-bottom: 22px; }
  .hm-head h2 { font-size: 28px; }
  .hm-head-row { flex-direction: column; align-items: flex-start; }
  .hm-arrows { display: none; }
  .hm-step { padding: 22px; }
  .hm-console { flex-direction: column; align-items: flex-start; }
  .hm-track { grid-auto-columns: 82%; margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; }
  .hm-card-media { height: 170px; }
  .hm-next { min-height: 320px; padding: 22px; }
  .hm-next h3 { font-size: 34px; }
  .hm-timer span { min-width: 0; flex: 1; }
  .hm-timer b { font-size: 26px; }
  .hm-day { padding: 18px; }
  .hm-news-grid { grid-template-columns: 1fr; }
}

/* Shop */
.shop-app a[data-shop] { cursor: pointer; }
.sh-lock, .sh-lock body { overflow: hidden; }

.sh-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.sh-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.sh-tabs::-webkit-scrollbar { display: none; }
.sh-tab {
  position: relative;
  flex-shrink: 0;
  padding: 16px 14px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  transition: color 0.15s ease;
}
.sh-tab:hover { color: var(--text); }
.sh-tab.is-active { color: var(--text); }
.sh-tab.is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }
.sh-howto-link { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.sh-howto-link svg { width: 18px; height: 18px; }
.sh-howto-link:hover { color: var(--pink); }

.sh-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  margin: 32px max(64px, calc((100% - 1112px) / 2)) 0;
  padding: 56px 56px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(120deg, #2a1647 0%, #1c1630 55%, #13233a 100%);
}
.sh-hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.sh-hero-text .eyebrow { margin-bottom: 0; }
.sh-hero h1 { font-size: 48px; font-weight: 700; line-height: 1.08; }
.sh-hero p { font-size: 16px; line-height: 1.6; color: var(--text-muted); max-width: 460px; }
.sh-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.sh-hero-actions .btn svg { width: 18px; height: 18px; }
.sh-hero-art { position: relative; z-index: 1; height: 280px; }
.sh-hero-rank { position: absolute; width: 210px; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }
.sh-hero-rank.r0 { left: 0; top: 60px; transform: rotate(-12deg); }
.sh-hero-rank.r1 { left: 30%; top: 0; transform: rotate(4deg); z-index: 1; }
.sh-hero-rank.r2 { right: 0; top: 80px; transform: rotate(14deg); z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes sh-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
  .sh-hero-rank { animation: sh-float 5s ease-in-out infinite; }
  .sh-hero-rank.r1 { animation-delay: -1.6s; }
  .sh-hero-rank.r2 { animation-delay: -3.2s; }
}

.sh-wrap { max-width: 1240px; margin: 0 auto; padding: 48px 64px 96px; }
.sh-h { font-size: 24px; font-weight: 600; margin: 0 0 20px; }
.sh-h:not(:first-child) { margin-top: 56px; }

.sh-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.sh-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.sh-cat:hover { color: var(--text); border-color: rgba(239, 76, 224, 0.55); transform: translateY(-3px); }
.sh-cat-media { display: flex; align-items: center; justify-content: center; height: 130px; border-radius: 14px; background: radial-gradient(circle at 50% 60%, rgba(239, 76, 224, 0.18), rgba(255, 255, 255, 0.02) 70%); }
.sh-cat-media img { max-width: 70%; max-height: 110px; object-fit: contain; }
.sh-cat-media.is-cape img { max-height: 120px; }
.sh-cat-text { display: flex; flex-direction: column; gap: 4px; }
.sh-cat-text b { font-family: 'Fredoka', sans-serif; font-size: 20px; font-weight: 600; }
.sh-cat-text small { font-size: 13px; color: var(--text-muted); }
.sh-cat-go { position: absolute; right: 20px; bottom: 22px; width: 20px; height: 20px; color: var(--text-dim); transition: color 0.15s ease, transform 0.15s ease; }
.sh-cat-go svg { width: 100%; height: 100%; }
.sh-cat:hover .sh-cat-go { color: var(--pink); transform: translateX(3px); }

.sh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sh-grid.is-dense { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.sh-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.sh-card:hover { border-color: color-mix(in srgb, var(--tier) 60%, transparent); transform: translateY(-3px); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--tier) 70%, transparent); }
.sh-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sh-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--tier) 22%, transparent), transparent 70%), rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}
.sh-card-media img { max-width: 72%; max-height: 118px; object-fit: contain; transition: transform 0.25s ease; }
.sh-card-media.is-cape img { max-height: 132px; }
.sh-card:hover .sh-card-media img { transform: scale(1.06); }
.sh-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px 0; }
.sh-card-body b { font-size: 15.5px; font-weight: 800; }
.sh-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 16px; margin-top: auto; }
.sh-card-cta { font-size: 12px; font-weight: 800; color: #180a24; background: var(--grad); padding: 7px 14px; border-radius: 10px; }

.sh-chip { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); padding: 3px 8px; border-radius: 999px; }
.sh-price { display: inline-flex; align-items: center; gap: 6px; color: #ffd76a; font-variant-numeric: tabular-nums; }
.sh-price svg { width: 16px; height: 16px; }
.sh-price b { font-family: 'Fredoka', sans-serif; font-size: 18px; font-weight: 600; color: var(--text); }
.sh-price small { font-size: 12px; font-weight: 700; color: var(--text-dim); }
.sh-price.is-big svg { width: 22px; height: 22px; }
.sh-price.is-big b { font-size: 30px; }
.sh-price.is-big small { font-size: 14px; }

.sh-card-media img.is-pixel, .sh-cat-media img.is-pixel { width: 72px; image-rendering: pixelated; }
.sh-modal-media img.is-pixel { width: 120px; image-rendering: pixelated; }
.sh-pack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 110px; }
.sh-pack img { width: 100%; height: auto; image-rendering: pixelated; }

.sh-cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sh-cat-head h1 { font-size: 38px; font-weight: 700; margin-bottom: 6px; }
.sh-cat-head p { font-size: 15px; color: var(--text-muted); }
.sh-filter { display: flex; align-items: center; gap: 10px; width: 300px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dim); }
.sh-filter:focus-within { border-color: var(--pink); }
.sh-filter svg { width: 16px; height: 16px; flex-shrink: 0; }
.sh-filter input { flex: 1; min-width: 0; padding: 11px 0; border: 0; outline: none; background: transparent; color: var(--text); font-family: 'Manrope', sans-serif; font-size: 14px; }
.sh-subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 24px; }
.sh-subtab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--text-muted); font-weight: 700; font-size: 14px; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.sh-subtab small { font-size: 11px; font-weight: 800; color: var(--text-dim); background: rgba(255, 255, 255, 0.06); padding: 2px 7px; border-radius: 999px; }
.sh-subtab:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.sh-subtab.is-active { color: var(--text); background: rgba(239, 76, 224, 0.14); border-color: rgba(239, 76, 224, 0.5); }
.sh-subtab.is-active small { color: var(--pink); }
.sh-h-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 56px; }
.sh-h-row .sh-h { margin: 0 0 20px; }
.sh-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--pink); }
.sh-more svg { width: 16px; height: 16px; }
.sh-card-media.is-render img { max-width: 86%; max-height: 132px; image-rendering: pixelated; }
.sh-cat-media.is-render img { max-width: 80%; max-height: 120px; image-rendering: pixelated; }
.sh-modal-media.is-render img { image-rendering: pixelated; }
.sh-coins { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 18px rgba(233, 154, 31, 0.35)); }
.sh-cat-media.is-coins { padding: 10px 18px 6px; background: radial-gradient(circle at 50% 60%, rgba(255, 200, 61, 0.2), rgba(255, 255, 255, 0.02) 70%); }

.sh-band {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
  padding: 18px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 200, 61, 0.35);
  background: linear-gradient(110deg, rgba(255, 200, 61, 0.14), rgba(239, 76, 224, 0.08) 60%, var(--surface));
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.sh-band:hover { color: var(--text); border-color: rgba(255, 200, 61, 0.7); transform: translateY(-2px); }
.sh-band-art { width: 96px; height: 70px; flex-shrink: 0; }
.sh-band-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sh-band-text b { font-family: 'Fredoka', sans-serif; font-size: 21px; font-weight: 600; }
.sh-band-text small { font-size: 13.5px; color: var(--text-muted); }
.sh-band .btn svg { width: 16px; height: 16px; }

.sh-packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.sh-pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 200, 61, 0.08), var(--surface) 55%);
  border: 1px solid var(--border);
  text-align: center;
}
.sh-pack-card.is-best { border-color: rgba(239, 76, 224, 0.7); box-shadow: 0 24px 60px -30px rgba(239, 76, 224, 0.6); }
.sh-pack-card .sh-rank-badge { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.sh-pack-art { width: 130px; height: 96px; }
.sh-pack-amount { display: inline-flex; align-items: center; gap: 6px; color: #ffd76a; font-variant-numeric: tabular-nums; }
.sh-pack-amount svg { width: 20px; height: 20px; }
.sh-pack-amount b { font-family: 'Fredoka', sans-serif; font-size: 28px; font-weight: 600; color: var(--text); }
.sh-pack-amount small { font-size: 13px; font-weight: 700; color: var(--text-dim); }
.sh-pack-price { display: flex; align-items: baseline; gap: 10px; }
.sh-pack-price span { font-family: 'Fredoka', sans-serif; font-size: 34px; font-weight: 700; line-height: 1; }
.sh-pack-price s { font-size: 16px; font-weight: 700; color: var(--text-dim); }
.sh-pack-save { font-size: 12px; font-weight: 800; color: var(--green); background: rgba(61, 220, 132, 0.12); border: 1px solid rgba(61, 220, 132, 0.3); padding: 4px 10px; border-radius: 999px; }
.sh-pack-save.is-base { color: var(--text-muted); background: rgba(255, 255, 255, 0.05); border-color: var(--border); }
.sh-pack-card .btn { margin-top: auto; }

.sh-creator {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding: 26px 30px;
  border-radius: 22px;
  border: 1px solid rgba(52, 158, 219, 0.35);
  background: linear-gradient(110deg, rgba(52, 158, 219, 0.14), rgba(155, 63, 245, 0.08) 60%, var(--surface));
}
.sh-creator-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; background: rgba(52, 158, 219, 0.18); color: var(--blue); }
.sh-creator-icon svg { width: 28px; height: 28px; }
.sh-creator h2 { font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.sh-creator p { font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
.sh-creator p b { color: var(--text); }
.sh-steps.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sh-howto-cta { margin-top: 22px; }
.sh-howto-cta svg { width: 18px; height: 18px; }
.sh-fact p a { color: var(--pink); font-weight: 700; }
.sh-empty { padding: 40px 0; text-align: center; color: var(--text-dim); }

.sh-ranks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.sh-rank {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 12%, var(--surface)), var(--surface) 45%);
  border: 1px solid color-mix(in srgb, var(--tier) 35%, var(--border));
}
.sh-rank.is-top { border-color: rgba(239, 76, 224, 0.7); box-shadow: 0 24px 60px -30px rgba(239, 76, 224, 0.6); }
.sh-rank-badge { position: absolute; top: -13px; left: 28px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #180a24; background: var(--grad); padding: 5px 12px; border-radius: 999px; }
.sh-rank-media { display: flex; justify-content: center; }
.sh-rank-media img { width: 170px; height: auto; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.5)); }
.sh-rank h2 { font-size: 28px; font-weight: 700; text-align: center; }
.sh-rank-price { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.sh-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sh-perks li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; }
.sh-perks li small { display: block; font-size: 12.5px; margin-top: 2px; }
.sh-check { display: inline-flex; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; color: var(--green); }
.sh-check svg { width: 100%; height: 100%; }
.sh-perks.is-compact li { font-size: 13.5px; }

.sh-howto { margin-top: 64px; padding: 36px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.sh-howto .sh-h { margin-top: 0; }
.sh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sh-steps li { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.sh-steps b { font-size: 16px; }
.sh-steps p { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.sh-step-n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 6px; border-radius: 10px; background: var(--grad); color: #180a24; font-weight: 800; }
.sh-code { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 0.9em; font-weight: 700; color: var(--pink); background: rgba(239, 76, 224, 0.1); border: 1px solid rgba(239, 76, 224, 0.25); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.sh-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.sh-fact { display: flex; gap: 14px; }
.sh-fact svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--blue); }
.sh-fact b { font-size: 14px; }
.sh-fact p { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin-top: 2px; }

.sh-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity 0.18s ease, visibility 0.18s; }
.sh-modal.is-open { visibility: visible; opacity: 1; }
.sh-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 5, 16, 0.72); backdrop-filter: blur(4px); }
.sh-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  width: min(820px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.18s ease;
}
.sh-modal.is-open .sh-modal-panel { transform: none; }
.sh-modal-close { position: absolute; top: 14px; right: 14px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.05); color: var(--text); cursor: pointer; }
.sh-modal-close svg { width: 18px; height: 18px; }
.sh-modal-media { display: flex; align-items: center; justify-content: center; padding: 32px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--tier) 25%, transparent), rgba(255, 255, 255, 0.02) 70%); border-right: 1px solid var(--border); }
.sh-modal-media img { max-width: 100%; max-height: 240px; object-fit: contain; }
.sh-modal-media .sh-pack { width: 170px; }
.sh-modal-body { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.sh-modal-cat { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink); }
.sh-modal-body h2 { font-size: 30px; font-weight: 700; margin-top: -8px; }
.sh-modal-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sh-buy { margin-top: 6px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.sh-buy p { font-size: 13.5px; color: var(--text-muted); }
.sh-buy .btn svg { width: 16px; height: 16px; }

@media (max-width: 1100px) {
  .sh-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-steps.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-ranks { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 960px) {
  .sh-subnav { padding: 0 20px; }
  .sh-howto-link span { display: none; }
  .sh-hero { grid-template-columns: 1fr; margin: 20px 20px 0; padding: 32px 24px; gap: 8px; text-align: center; }
  .sh-hero-text { align-items: center; }
  .sh-hero h1 { font-size: 32px; }
  .sh-hero p { font-size: 14.5px; }
  .sh-hero-actions { justify-content: center; }
  .sh-hero-art { order: -1; height: 150px; }
  .sh-hero-rank { width: 120px; }
  .sh-hero-rank.r0 { left: 8%; top: 30px; }
  .sh-hero-rank.r1 { left: calc(50% - 60px); top: 0; }
  .sh-hero-rank.r2 { right: 8%; top: 36px; }
  .sh-wrap { padding: 32px 20px 56px; }
  .sh-h { font-size: 20px; }
  .sh-h:not(:first-child) { margin-top: 40px; }
  .sh-h-row { margin-top: 40px; }
  .sh-subtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -4px -20px 20px; padding: 0 20px; }
  .sh-subtab { flex-shrink: 0; }
  .sh-cats { gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-band { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .sh-band-art { width: 70px; height: 52px; }
  .sh-band-text b { font-size: 18px; }
  .sh-band .btn { width: 100%; }
  .sh-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sh-pack-card { padding: 22px 12px 14px; }
  .sh-pack-card .btn { padding: 11px 8px; font-size: 13px; white-space: normal; line-height: 1.25; }
  .sh-pack-art { width: 96px; height: 70px; }
  .sh-pack-amount b { font-size: 22px; }
  .sh-pack-price span { font-size: 26px; }
  .sh-creator { flex-direction: column; align-items: flex-start; padding: 20px; gap: 14px; }
  .sh-steps.is-4 { grid-template-columns: 1fr; }
  .sh-howto-cta { width: 100%; }
  .sh-cat { padding: 14px; }
  .sh-cat-media { height: 96px; }
  .sh-cat-media img { max-height: 80px; }
  .sh-cat-text b { font-size: 17px; }
  .sh-cat-go { display: none; }
  .sh-grid, .sh-grid.is-dense { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sh-card-media { height: 118px; }
  .sh-card-media img { max-height: 92px; }
  .sh-card-body { padding: 12px 12px 0; }
  .sh-card-foot { padding: 12px; flex-direction: column; align-items: stretch; }
  .sh-card-cta { text-align: center; }
  .sh-cat-head h1 { font-size: 28px; }
  .sh-filter { width: 100%; }
  .sh-rank { padding: 22px; }
  .sh-howto { padding: 22px; margin-top: 44px; }
  .sh-steps, .sh-facts { grid-template-columns: 1fr; }
  .sh-modal { padding: 0; align-items: flex-end; }
  .sh-modal-panel { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 90vh; }
  .sh-modal-media { border-right: 0; border-bottom: 1px solid var(--border); padding: 24px; }
  .sh-modal-media img { max-height: 150px; }
  .sh-modal-body { padding: 22px; }
  .sh-modal-body h2 { font-size: 24px; }
}

/* Wiki */
.wiki-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.wiki-card h3 { font-size: 18px; font-weight: 600; }
.wiki-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.cmd-list { display: flex; flex-direction: column; gap: 10px; }
.cmd-row { display: flex; align-items: baseline; gap: 10px; }
.cmd-code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cmd-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.mc-0 { color: #6b6380; } .mc-1 { color: #6f7dff; } .mc-2 { color: #3fbf5f; } .mc-3 { color: #2fb8b8; }
.mc-4 { color: #e0565a; } .mc-5 { color: #c05cf0; } .mc-6 { color: #ffb13b; } .mc-7 { color: var(--text-muted); }
.mc-8 { color: var(--text-dim); } .mc-9 { color: #7f95ff; } .mc-a { color: var(--green); } .mc-b { color: #5fe3f0; }
.mc-c { color: var(--red); } .mc-d { color: var(--pink); } .mc-e { color: #ffe066; } .mc-f { color: var(--text); }
.mc-bold { font-weight: 800; }

.wiki-app a[data-go] { cursor: pointer; }
.wiki-app h1, .wiki-app h2, .wiki-app h3 { text-wrap: balance; }

.wk-img {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.wk-img img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.2s ease; }
.wk-img img.pixel { image-rendering: pixelated; }
.wk-img.is-loaded img { opacity: 1; }
.wk-fb { display: none; font-family: 'Fredoka', sans-serif; font-weight: 700; line-height: 1; color: var(--pink); }
.wk-img.is-missing img { display: none; }
.wk-img.is-missing .wk-fb { display: block; }
.wk-img.is-missing { border-radius: 8px; background: rgba(239, 76, 224, 0.1); }
.wk-img-lg .wk-fb, .wk-img-md .wk-fb { font-size: 17px; }
.wk-img-sm { width: 22px; height: 22px; }
.wk-img-sm .wk-fb { font-size: 11px; }
.wk-img-md { width: 32px; height: 32px; }
.wk-img-lg { width: 40px; height: 40px; }
.wk-img-xl { width: 64px; height: 64px; }
.wk-img-xl .wk-fb { font-size: 26px; }
.wk-img-league { width: 32px; height: 32px; }

.wk-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 64px 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.wk-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.wk-hero h1 { font-size: 46px; font-weight: 700; line-height: 1.1; }
.wk-hero .eyebrow { margin-bottom: 0; }

.wk-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wk-search svg { width: 16px; height: 16px; flex-shrink: 0; }
.wk-search:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(239, 76, 224, 0.14); }
.wk-search input {
  flex: 1;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
}
.wk-search input::placeholder { color: var(--text-dim); }
.wk-search.is-big { width: 100%; max-width: 620px; padding: 0 20px; border-radius: 16px; margin-top: 8px; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.8); }
.wk-search.is-big svg { width: 20px; height: 20px; }
.wk-search.is-big input { padding: 18px 0; font-size: 16px; }

.wk-wrap { max-width: 1100px; margin: 0 auto; padding: 56px 64px 96px; }
.wk-h { font-size: 22px; font-weight: 600; margin: 0 0 18px; }
.wk-h:not(:first-child) { margin-top: 56px; }

.wk-popular, .wk-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wk-results { grid-template-columns: 1fr; }
.wk-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wk-row:hover { color: var(--text); border-color: var(--tier); background: var(--surface-2); }
.wk-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wk-row-text b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-row-text small { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-row-go { width: 18px; height: 18px; color: var(--text-dim); flex-shrink: 0; transition: transform 0.15s ease, color 0.15s ease; }
.wk-row-go svg { width: 100%; height: 100%; }
.wk-row:hover .wk-row-go { color: var(--tier); transform: translateX(3px); }

.wk-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wk-cat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.wk-cat:hover { color: var(--text); border-color: rgba(239, 76, 224, 0.5); background: var(--surface-2); transform: translateY(-2px); }
.wk-cat b { font-family: 'Fredoka', sans-serif; font-size: 19px; font-weight: 600; margin-top: 8px; }
.wk-cat small { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); flex: 1; }
.wk-cat-n { font-size: 12px; font-weight: 700; color: var(--pink); margin-top: 6px; }
.wk-cat-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.wk-cat-slot.is-xl { width: 88px; height: 88px; border-radius: 20px; }

.wk-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding: 32px 36px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(239, 76, 224, 0.12), rgba(52, 158, 219, 0.1));
  border: 1px solid var(--border-strong);
}
.wk-help h2 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.wk-help p { font-size: 14px; color: var(--text-muted); }
.wk-help .btn svg { width: 18px; height: 18px; }

.wk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.wk-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; font-weight: 600; min-width: 0; }
.wk-crumbs a { color: var(--text-muted); }
.wk-crumbs a:hover { color: var(--pink); }
.wk-crumbs > span:last-child { color: var(--text); }
.wk-crumb-sep { display: inline-flex; width: 14px; height: 14px; color: var(--text-dim); }
.wk-crumb-sep svg { width: 100%; height: 100%; }

.wk-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding: 40px 64px 96px; max-width: 1360px; margin: 0 auto; }
.wk-layout.is-article { grid-template-columns: minmax(0, 1fr) 290px; }
.wk-layout > * { min-width: 0; }
.wk-card-slot .wk-img.is-missing, .wk-cat-slot .wk-img.is-missing, .wk-article-slot .wk-img.is-missing { background: transparent; }
.wk-side, .wk-related { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 12px; }
.wk-side-title { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); padding: 0 12px; }
.wk-side-list, .wk-related-list { display: flex; flex-direction: column; gap: 2px; }
.wk-related-list { max-height: calc(100vh - 160px); overflow-y: auto; scrollbar-width: thin; }
.wk-side-link, .wk-related-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}
.wk-side-link > span:not(.wk-img), .wk-related-link > span:not(.wk-img) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-side-link small { font-size: 12px; color: var(--text-dim); }
.wk-side-link:hover, .wk-related-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.wk-side-link.is-active, .wk-related-link.is-active { color: var(--text); background: rgba(239, 76, 224, 0.12); box-shadow: inset 3px 0 0 var(--pink); }
.wk-related-link { font-size: 13px; }

.wk-cat-head { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.wk-cat-head h1 { font-size: 36px; font-weight: 700; margin-bottom: 6px; }
.wk-cat-head p { font-size: 15px; line-height: 1.6; color: var(--text-muted); max-width: 620px; }
.wk-meta { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--pink); }

.wk-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wk-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.wk-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tier); opacity: 0.7; }
.wk-card:hover { color: var(--text); border-color: var(--tier); background: var(--surface-2); transform: translateY(-2px); }
.wk-card-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.wk-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.wk-card-text b { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.wk-card-text small { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.wk-card-go { align-self: center; display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--text-dim); white-space: nowrap; transition: color 0.15s ease; }
.wk-card-go svg { width: 14px; height: 14px; }
.wk-card:hover .wk-card-go { color: var(--tier); }

.wk-planning { max-width: 920px; margin-bottom: 32px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: 0 24px 60px -30px rgba(155, 63, 245, 0.6); }
.wk-planning img { display: block; width: 100%; height: auto; }

.wk-article { min-width: 0; padding: 36px 40px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.wk-article-head { display: flex; align-items: center; gap: 22px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.wk-article-head h1 { font-size: 32px; font-weight: 700; line-height: 1.15; margin-top: 8px; }
.wk-article-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tier) 22%, transparent), rgba(255, 255, 255, 0.03) 70%);
  border: 1px solid color-mix(in srgb, var(--tier) 40%, transparent);
}
.wk-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink); }
.wk-tag:hover { color: var(--text); }
.wk-article-body { font-size: 15px; line-height: 1.75; color: var(--text-muted); }
.wk-line { margin: 0; }
.wk-gap { height: 14px; }
.wk-sub { font-size: 17px; font-weight: 600; color: var(--text); margin: 6px 0 6px; }
.wk-cmd {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.86em;
  font-weight: 700;
  color: var(--pink);
  background: rgba(239, 76, 224, 0.1);
  border: 1px solid rgba(239, 76, 224, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.wk-callout { margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: rgba(52, 158, 219, 0.08); border: 1px solid rgba(52, 158, 219, 0.25); }

.wk-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wk-step { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.wk-step-n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: var(--grad); color: #180a24; font-weight: 800; }
.wk-step-t { flex: 1; color: var(--text); font-weight: 600; }
.wk-step-c { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.wk-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; }
.wk-table th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); padding: 0 14px 10px; border-bottom: 1px solid var(--border); }
.wk-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.wk-table tr:last-child td { border-bottom: 0; }
.wk-num { font-variant-numeric: tabular-nums; }
.wk-num b { color: var(--green); }
.wk-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 24px; margin-right: 10px; border-radius: 7px; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }
.wk-rank.rank-1 { background: linear-gradient(135deg, #ffd76a, #e8a63a); color: #3a2400; }
.wk-rank.rank-2 { background: linear-gradient(135deg, #dbe1ea, #a7b0bf); color: #20242c; }
.wk-rank.rank-3 { background: linear-gradient(135deg, #e3a878, #b5713f); color: #2c1500; }

.wk-cmdlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wk-cmdlist li { padding: 11px 0; border-bottom: 1px solid var(--border); }
.wk-cmdlist li:last-child { border-bottom: 0; }
.wk-cmdlist .wk-cmd { margin-right: 6px; }

.wk-calc { display: grid; grid-template-columns: auto 160px 1fr; align-items: center; gap: 14px 18px; margin: 22px 0 26px; padding: 18px 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.wk-calc label { font-weight: 700; color: var(--text); }
.wk-calc input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}
.wk-calc input:focus { border-color: var(--pink); }
.wk-calc-out { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.wk-calc-league { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.wk-calc-bar { flex: 1; min-width: 100px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.wk-calc-bar span { display: block; height: 100%; border-radius: 999px; transition: width 0.3s ease; }
.wk-calc-hint { font-size: 13px; color: var(--text-muted); width: 100%; }
.wk-calc-hint b { color: var(--text); }

.wk-leagues { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.wk-family { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border); box-shadow: inset 0 3px 0 color-mix(in srgb, var(--tier) 70%, transparent); }
.wk-family h3 { font-size: 15px; font-weight: 600; margin: 2px 4px 10px; }
.wk-league { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 10px; transition: background 0.2s ease, box-shadow 0.2s ease; }
.wk-league.is-current { background: color-mix(in srgb, var(--tier) 16%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tier) 60%, transparent); }
.wk-league-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.wk-league-name b { font-size: 14px; }
.wk-league-name small { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.wk-league-gain { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; font-weight: 800; line-height: 1.35; font-variant-numeric: tabular-nums; }
.wk-article .up { color: var(--green); }
.wk-article .down { color: var(--red); }
.wk-legend { font-size: 13px; color: var(--text-dim); margin: 14px 0 18px; }

.wk-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.wk-pager-link { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); transition: border-color 0.15s ease, background 0.15s ease; }
.wk-pager-link:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.03); }
.wk-pager-link.is-next { text-align: right; align-items: flex-end; }
.wk-pager-link small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-dim); }
.wk-pager-link small svg { width: 13px; height: 13px; }
.wk-pager-link b { font-size: 14px; }

.wk-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 0; color: var(--text-dim); font-size: 15px; text-align: center; }
.wk-empty svg { width: 32px; height: 32px; }

@media (max-width: 1180px) {
  .wk-layout.is-article { grid-template-columns: 1fr; }
  .wk-related { position: static; }
  .wk-related-list { max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .wk-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .wk-hero { padding: 48px 20px 40px; }
  .wk-hero h1 { font-size: 30px; }
  .wk-search.is-big input { padding: 15px 0; font-size: 15px; }
  .wk-wrap { padding: 32px 20px 56px; }
  .wk-popular, .wk-cats, .wk-cards { grid-template-columns: 1fr; }
  .wk-h:not(:first-child) { margin-top: 40px; }
  .wk-help { padding: 24px; margin-top: 40px; }
  .wk-bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 20px; }
  .wk-search { width: 100%; }
  .wk-layout { grid-template-columns: 1fr; gap: 24px; padding: 20px 20px 56px; }
  .wk-side { position: static; }
  .wk-side-title { display: none; }
  .wk-side-list { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
  .wk-side-list::-webkit-scrollbar { display: none; }
  .wk-side-link { flex-shrink: 0; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px 7px 10px; }
  .wk-side-link small { display: none; }
  .wk-side-link.is-active { box-shadow: none; border-color: rgba(239, 76, 224, 0.5); }
  .wk-cat-head { gap: 16px; margin-bottom: 22px; }
  .wk-cat-slot.is-xl { width: 64px; height: 64px; border-radius: 16px; }
  .wk-cat-slot.is-xl .wk-img-xl { width: 44px; height: 44px; }
  .wk-cat-head h1 { font-size: 26px; }
  .wk-article { padding: 22px 18px; border-radius: 18px; }
  .wk-article-head { gap: 16px; padding-bottom: 20px; margin-bottom: 20px; }
  .wk-article-slot { width: 68px; height: 68px; border-radius: 16px; }
  .wk-article-slot .wk-img-xl { width: 46px; height: 46px; }
  .wk-article-head h1 { font-size: 23px; }
  .wk-card-go { display: none; }
  .wk-calc { grid-template-columns: 1fr; }
  .wk-step { flex-wrap: wrap; }
  .wk-step-c { width: 100%; justify-content: flex-start; padding-left: 48px; }
  .wk-table { font-size: 13px; }
  .wk-table th { font-size: 10px; letter-spacing: 0.04em; }
  .wk-table th, .wk-table td { padding-left: 6px; padding-right: 6px; }
  .wk-rank { min-width: 28px; margin-right: 6px; }
  .wk-pager { grid-template-columns: 1fr; }
}

.wx-item { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; }
.wx-item-name { color: var(--text); font-weight: 600; }
.wx-item-name b { color: var(--pink); font-weight: 800; }
.wk-callout .wx-item { margin-right: 6px; }
.wx-table td { vertical-align: middle; }
.wx-right { text-align: right; }
.wx-chance { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.wx-bar { width: 90px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.wx-bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.wx-chance b { min-width: 58px; font-variant-numeric: tabular-nums; color: var(--text); }
.wx-kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.wx-kit { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); box-shadow: inset 0 3px 0 var(--c); }
.wx-kit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.wx-kit-head h3 { font-size: 18px; font-weight: 600; color: var(--c); }
.wx-kit-head span { font-size: 12px; font-weight: 700; color: var(--text-dim); white-space: nowrap; }
.wx-kit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wx-kit li { font-size: 13.5px; }
.wx-ench { display: block; margin-left: 42px; margin-top: -4px; font-size: 12px; color: #c9a7ff; }
.wx-kit .wx-item { flex-wrap: wrap; }
.wx-scroll { overflow-x: auto; }
.wx-gear th:first-child { text-align: left; color: var(--text-muted); }
.wx-gear thead th { text-align: center; font-size: 13px; letter-spacing: 0.04em; }
.wx-gear td { text-align: center; vertical-align: top; }
.wx-cell { display: inline-flex; align-items: center; gap: 6px; }
.wx-cell b { font-family: 'Fredoka', sans-serif; font-size: 18px; }
.wx-cell small, .wx-gear small { font-size: 11px; color: var(--text-dim); }
.wx-eff { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--green); }
.wx-total { font-family: 'Fredoka', sans-serif; font-size: 20px; color: var(--pink); }
.wx-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.wx-level { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.wx-level span { font-size: 12px; font-weight: 700; color: var(--text-dim); }
.wx-level b { font-family: 'Fredoka', sans-serif; font-size: 17px; color: var(--text); }
.wx-level small { font-size: 11px; color: var(--text-dim); }
.wx-quests td:first-child { width: 52px; }
.wx-rws { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wx-pts { font-size: 12.5px; font-weight: 800; color: var(--green); }
.wx-rw { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; color: var(--text); }
@media (max-width: 960px) {
  .wx-bar { width: 50px; }
  .wx-kits { grid-template-columns: 1fr; }
  .wx-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wx-gear { min-width: 560px; }
}
.hm-numbers { max-width: 1240px; margin: 0 auto; padding: 64px 64px 0; }
.hm-numbers-inner { display: flex; flex-direction: column; gap: 18px; padding: 28px 32px; border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(120deg, rgba(239, 76, 224, 0.12), var(--surface) 45%, rgba(52, 158, 219, 0.1)); }
.hm-numbers-inner .eyebrow { margin-bottom: 0; }
.hm-numbers-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 18px; margin: 0; }
.hm-numbers-list div { display: flex; flex-direction: column-reverse; gap: 4px; }
.hm-numbers-list dd { margin: 0; font-family: 'Fredoka', sans-serif; font-size: 36px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-numbers-list dt { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.hm-feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.hm-feed-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); font-size: 14.5px; color: var(--text-muted); }
.hm-feed-row b { color: var(--text); }
.hm-feed-row time { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
.hm-feed-fac { font-size: 12.5px; color: var(--text-dim); }
.hm-feed-tag { justify-self: start; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: var(--text-muted); background: rgba(255, 255, 255, 0.07); }
.hm-feed-tag.is-koth { color: #ffb13b; background: rgba(255, 177, 59, 0.14); }
.hm-feed-tag.is-outpost { color: #5fe3f0; background: rgba(95, 227, 240, 0.12); }
.hm-feed-tag.is-largage { color: #3ddc84; background: rgba(61, 220, 132, 0.13); }
.hm-feed-tag.is-nexus, .hm-feed-tag.is-pog { color: #ef4ce0; background: rgba(239, 76, 224, 0.13); }
.hm-feed-tag.is-league { color: #7f95ff; background: rgba(127, 149, 255, 0.14); }
.hm-feed-tag.is-voteparty { color: #ffe066; background: rgba(255, 224, 102, 0.12); }
@media (max-width: 960px) {
  .hm-numbers { padding: 48px 20px 0; }
  .hm-numbers-inner { padding: 22px 20px; }
  .hm-numbers-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-numbers-list dd { font-size: 28px; }
  .hm-feed-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px; }
  .hm-feed-tag { grid-column: 1 / -1; }
}
/* Team */
.discord-live { display: none; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(88, 101, 242, 0.12); color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.discord-live.is-ready { display: inline-flex; }
.discord-live:hover { color: var(--text); border-color: rgba(88, 101, 242, 0.5); }
.discord-live b { color: var(--text); font-variant-numeric: tabular-nums; }
.discord-live .dot { width: 7px; height: 7px; }

.team-app a[data-tm-player] { cursor: pointer; }
.tm-hero { position: relative; overflow: hidden; padding: 80px 64px 64px; text-align: center; border-bottom: 1px solid var(--border); }
.tm-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tm-hero-inner .eyebrow { margin-bottom: 0; }
.tm-hero h1 { font-size: 46px; font-weight: 700; line-height: 1.1; }
.tm-hero p { font-size: 16px; color: var(--text-muted); max-width: 540px; }
.tm-hero .btn { margin-top: 6px; }

.tm-wrap { max-width: 1120px; margin: 0 auto; padding: 48px 64px 96px; }
.tm-group { margin-bottom: 44px; }
.tm-group-head { display: flex; align-items: center; gap: 10px; }
.tm-group-head h2 { font-size: 24px; font-weight: 600; }
.tm-group-head span { font-size: 12px; font-weight: 800; color: var(--pink); background: rgba(239, 76, 224, 0.12); padding: 3px 9px; border-radius: 999px; }
.tm-group > p { margin: 6px 0 18px; font-size: 14.5px; color: var(--text-muted); }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.tm-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-align: center; transition: border-color 0.15s ease, transform 0.15s ease; }
.tm-card:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-3px); }
.tm-card b { font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-card small { font-size: 12px; color: var(--text-dim); min-height: 1em; }
.tm-head-wrap { position: relative; }
.tm-online { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid var(--surface); }
.tm-badge { font-size: 12px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); padding: 3px 10px; border-radius: 999px; }
.tm-empty { padding: 36px 20px; margin-bottom: 40px; border-radius: 20px; border: 1px dashed var(--border-strong); text-align: center; color: var(--text-dim); font-size: 14.5px; }

.tm-apply { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px; padding: 32px; border-radius: 26px; background: linear-gradient(120deg, #2a1647, var(--surface) 60%); border: 1px solid var(--border-strong); }
.tm-apply-intro { display: flex; flex-direction: column; gap: 12px; }
.tm-apply-intro .eyebrow { margin-bottom: 0; }
.tm-apply-intro h2 { font-size: 32px; font-weight: 700; }
.tm-apply-intro p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.tm-apply-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tm-apply-list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--text); }
.tm-apply-list li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.tm-form { display: flex; flex-direction: column; gap: 14px; }
.tm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tm-field { display: flex; flex-direction: column; gap: 6px; }
.tm-field span { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.tm-field small { font-weight: 600; color: var(--text-dim); }
.tm-field input, .tm-field select, .tm-field textarea { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font-family: 'Manrope', sans-serif; font-size: 14px; outline: none; transition: border-color 0.15s ease; }
.tm-field textarea { resize: vertical; line-height: 1.5; }
.tm-field input:focus, .tm-field select:focus, .tm-field textarea:focus { border-color: var(--pink); }
.tm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tm-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.tm-check input { margin-top: 3px; accent-color: #ef4ce0; width: 16px; height: 16px; }
.tm-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tm-status { font-size: 13.5px; }
.tm-status.is-info { color: var(--blue); }
.tm-status.is-success { color: var(--green); }
.tm-status.is-error { color: var(--red); }
.tm-status a { color: var(--pink); font-weight: 700; }

.tm-apply-intro .tm-crit-title { margin-top: 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.tm-apply-intro .tm-warn { font-size: 13px; color: var(--red); }
.tm-progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.tm-progress span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width 0.3s ease; }
.tm-step-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tm-step-meta span { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.tm-step-meta b { font-family: 'Fredoka', sans-serif; font-size: 20px; font-weight: 600; }
.tm-step { display: flex; flex-direction: column; gap: 16px; }
.tm-step[hidden] { display: none; }
.tm-step-intro { font-size: 14px; color: var(--text-muted); margin-top: -4px; }
.tm-help { font-size: 12.5px; font-weight: 500; color: var(--text-dim); margin-top: -2px; }
.tm-radios { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tm-radios legend { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; padding: 0; }
.tm-radio { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); font-size: 14px; color: var(--text); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.tm-radio:hover { border-color: rgba(239, 76, 224, 0.45); }
.tm-field .tm-radio input { width: 16px; height: 16px; padding: 0; margin: 2px 0 0; flex-shrink: 0; accent-color: #ef4ce0; }
.tm-radio span { flex: 1; text-align: left; }
.tm-radio:has(input:checked) { border-color: rgba(239, 76, 224, 0.7); background: rgba(239, 76, 224, 0.08); }
.tm-actions [hidden] { display: none; }
@media (max-width: 960px) {
  .tm-hero { padding: 48px 20px 40px; }
  .tm-hero h1 { font-size: 30px; }
  .tm-wrap { padding: 32px 20px 56px; }
  .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tm-apply { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .tm-apply-intro h2 { font-size: 26px; }
  .tm-row { grid-template-columns: 1fr; }
  .tm-actions .btn { width: 100%; }
}

/* Vote page */
.vt-hero { position: relative; overflow: hidden; padding: 88px 64px 72px; text-align: center; border-bottom: 1px solid var(--border); }
.vt-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.vt-hero-inner .eyebrow { margin-bottom: 0; }
.vt-hero h1 { font-size: 52px; font-weight: 700; line-height: 1.05; }
.vt-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vt-hero p { max-width: 520px; font-size: 16.5px; line-height: 1.6; color: var(--text-muted); }
.vt-cta { margin-top: 10px; padding: 18px 32px; font-size: 17px; border-radius: 16px; }
.vt-cta svg { width: 20px; height: 20px; }
.vt-cta svg:last-child { width: 16px; height: 16px; opacity: 0.7; }
.vt-wait { display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(52, 158, 219, 0.1); border: 1px solid rgba(52, 158, 219, 0.3); color: var(--blue); font-size: 13px; font-weight: 700; }
.vt-wait.is-on { display: inline-flex; }
.vt-wait svg { width: 16px; height: 16px; }

.vt-wrap { max-width: 1120px; margin: 0 auto; padding: 56px 64px 96px; }
.vt-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vt-steps li { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.vt-step-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(239, 76, 224, 0.14); color: var(--pink); margin-bottom: 4px; }
.vt-step-icon svg { width: 22px; height: 22px; }
.vt-step-icon.is-gift { background: rgba(255, 200, 61, 0.15); color: #ffc83d; }
.vt-step-n { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.vt-steps h3 { font-size: 19px; font-weight: 600; }
.vt-steps p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.vt-steps p b { color: var(--text); }
.vt-steps code { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 0.9em; font-weight: 700; color: var(--pink); background: rgba(239, 76, 224, 0.1); padding: 1px 6px; border-radius: 6px; }
.vt-rewards { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.vt-rewards span { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 14px; font-weight: 700; }
.vt-rewards img { width: 28px; height: 28px; image-rendering: pixelated; }
.vt-rewards b { color: var(--green); }

.vt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
.vt-card { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.vt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.vt-card-head h2 { font-size: 21px; font-weight: 600; }
.vt-card-head > span { font-family: 'Fredoka', sans-serif; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vt-bar { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.vt-bar span { display: block; height: 100%; min-width: 0; border-radius: 999px; background: var(--grad); box-shadow: 0 0 20px rgba(239, 76, 224, 0.6); transition: width 0.6s ease; }
.vt-party-text { margin-top: 12px; font-size: 14.5px; color: var(--text-muted); }
.vt-party-text b { color: var(--text); }
.vt-party-sub { margin-top: 20px; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.vt-party-rewards { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vt-party-rewards li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); font-size: 14px; }
.vt-party-rewards img { width: 30px; height: 30px; image-rendering: pixelated; }
.vt-party-rewards b { font-family: 'Fredoka', sans-serif; font-size: 18px; color: #ffd76a; }
.vt-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
.vt-tab { padding: 7px 12px; border: 0; border-radius: 9px; background: none; color: var(--text-muted); font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; }
.vt-tab.is-active { background: rgba(239, 76, 224, 0.16); color: var(--text); }
.vt-top .st-list { padding: 0; }
.vt-note { margin-top: 20px; font-size: 13px; color: var(--text-dim); text-align: center; }

@media (max-width: 960px) {
  .vt-hero { padding: 52px 20px 44px; }
  .vt-hero h1 { font-size: 34px; }
  .vt-hero p { font-size: 15px; }
  .vt-cta { width: 100%; }
  .vt-wrap { padding: 32px 20px 56px; }
  .vt-steps { grid-template-columns: 1fr; }
  .vt-grid { grid-template-columns: 1fr; }
  .vt-card { padding: 18px; }
}

/* Stats */
.stats-app a[data-st] { cursor: pointer; }
.st-loading { padding: 120px 20px; text-align: center; color: var(--text-dim); }
.st-head { width: 36px; height: 36px; image-rendering: pixelated; border-radius: 6px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); background: #0b0815; }
.st-head.is-xl { width: 72px; height: 72px; border-radius: 10px; }
.st-head.is-xxl { width: 112px; height: 112px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 50px -20px rgba(239, 76, 224, 0.6); }
.st-league { width: 22px; height: 22px; image-rendering: pixelated; flex-shrink: 0; }
.st-league.is-big { width: 44px; height: 44px; }

.st-hero { position: relative; overflow: hidden; padding: 80px 64px 64px; text-align: center; border-bottom: 1px solid var(--border); }
.st-hero-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.st-hero-inner .eyebrow { margin-bottom: 0; }
.st-hero h1 { font-size: 46px; font-weight: 700; line-height: 1.1; }
.st-hero p { font-size: 15px; color: var(--text-muted); }

.st-search { position: relative; width: 100%; max-width: 560px; margin-top: 6px; z-index: 5; }
.st-search-box { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-dim); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.8); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.st-search-box:focus-within { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(239, 76, 224, 0.14); }
.st-search-box svg { width: 18px; height: 18px; flex-shrink: 0; }
.st-search-box input { flex: 1; min-width: 0; padding: 16px 0; border: 0; outline: none; background: transparent; color: var(--text); font-family: 'Manrope', sans-serif; font-size: 15px; }
.st-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; flex-direction: column; padding: 6px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-2); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7); text-align: left; }
.st-suggest.is-open { display: flex; }
.st-suggest-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-weight: 700; font-size: 14px; }
.st-suggest-row:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.st-suggest-row .st-head { width: 28px; height: 28px; }
.st-suggest-row span:not(.dot) { flex: 1; }
.st-suggest-row svg { width: 16px; height: 16px; color: var(--text-dim); }
.st-suggest-empty { padding: 12px; font-size: 13px; color: var(--text-dim); }

.st-wrap { max-width: 1080px; margin: 0 auto; padding: 48px 64px 96px; }

.st-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 16px; max-width: 640px; margin: 0 auto 48px; }
.st-pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px 0; color: var(--text); text-align: center; }
.st-pod:hover { color: var(--text); }
.st-pod b { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-pod > span:not(.st-pod-step) { font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.st-pod-step { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 10px; border-radius: 14px 14px 4px 4px; font-family: 'Fredoka', sans-serif; font-size: 30px; font-weight: 700; color: #180a24; }
.st-pod.p1 .st-pod-step { height: 110px; background: linear-gradient(180deg, #ffd76a, #e8a63a); }
.st-pod.p2 .st-pod-step { height: 80px; background: linear-gradient(180deg, #dbe1ea, #a7b0bf); }
.st-pod.p3 .st-pod-step { height: 60px; background: linear-gradient(180deg, #e3a878, #b5713f); }
.st-pod:hover .st-head { transform: translateY(-4px); }
.st-pod .st-head { transition: transform 0.2s ease; }

.st-board { border-radius: 22px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.st-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.st-tabs::-webkit-scrollbar { display: none; }
.st-tab { flex-shrink: 0; padding: 9px 16px; border-radius: 10px; color: var(--text-muted); font-weight: 700; font-size: 14px; }
.st-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.st-tab.is-active { color: var(--text); background: rgba(239, 76, 224, 0.14); }
.st-list { list-style: none; margin: 0; padding: 8px; }
.st-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; color: var(--text); }
a.st-row:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.st-rank { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; font-weight: 800; background: rgba(255, 255, 255, 0.06); color: var(--text-dim); }
.st-rank.r1 { background: linear-gradient(135deg, #ffd76a, #e8a63a); color: #3a2400; }
.st-rank.r2 { background: linear-gradient(135deg, #dbe1ea, #a7b0bf); color: #20242c; }
.st-rank.r3 { background: linear-gradient(135deg, #e3a878, #b5713f); color: #2c1500; }
.st-fac-icon { width: 36px; display: flex; justify-content: center; }
.st-row-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-row-name b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row-name small { font-size: 12px; color: var(--text-dim); }
.st-row-val { font-family: 'Fredoka', sans-serif; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-row-val small { font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--text-dim); }
.st-empty { padding: 28px; text-align: center; color: var(--text-dim); font-size: 14px; }

.st-online { margin-top: 40px; }
.st-online h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.st-online h2 span { font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 800; color: var(--green); background: rgba(61, 220, 132, 0.12); padding: 3px 9px; border-radius: 999px; }
.st-online-list { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 13px; }
.st-chip:hover { color: var(--text); border-color: var(--border-strong); }
.st-chip .st-head { width: 26px; height: 26px; border-radius: 999px; }

.st-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-size: 14px; font-weight: 700; color: var(--text-muted); }
.st-back svg { width: 16px; height: 16px; }
.st-back:hover { color: var(--pink); }
.st-profile { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 320px); align-items: center; gap: 24px; padding: 28px; margin-bottom: 20px; border-radius: 24px; background: linear-gradient(120deg, #2a1647, var(--surface) 60%); border: 1px solid var(--border-strong); }
.st-profile .st-search { margin: 0; justify-self: end; }
.st-profile .st-search-box input { padding: 12px 0; font-size: 14px; }
.st-profile-text h1 { font-size: 36px; font-weight: 700; line-height: 1.1; word-break: break-word; }
.st-profile-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.st-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); }
.st-status.is-on { color: var(--green); border-color: rgba(61, 220, 132, 0.35); }
.st-fac { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); }

.st-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.st-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.st-tile-label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.st-tile-val { font-family: 'Fredoka', sans-serif; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-tile-rank { font-size: 12.5px; font-weight: 700; color: var(--pink); }
.st-tile-rank.is-none { color: var(--text-dim); font-weight: 600; }

.st-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.st-card { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.st-card h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.st-jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.st-jobs li { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14px; }
.st-job-name { color: var(--text-muted); font-weight: 600; }
.st-jobs b { font-variant-numeric: tabular-nums; font-size: 13px; }
.st-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.st-bar span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.st-faction { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.st-faction b { display: block; font-size: 18px; }
.st-faction span { font-size: 13px; font-weight: 700; }
.st-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.st-facts div { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); }
.st-facts dt { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.st-facts dd { margin: 4px 0 0; font-family: 'Fredoka', sans-serif; font-size: 18px; font-weight: 600; }
.st-muted { font-size: 14px; color: var(--text-dim); }
.st-notfound { padding: 40px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.st-notfound h1 { font-size: 30px; }
.st-notfound p { color: var(--text-muted); }

@media (max-width: 960px) {
  .st-hero { padding: 44px 20px 36px; }
  .st-hero h1 { font-size: 30px; }
  .st-wrap { padding: 28px 20px 56px; }
  .st-podium { gap: 8px; margin-bottom: 32px; }
  .st-head.is-xl { width: 56px; height: 56px; }
  .st-pod b { font-size: 13px; }
  .st-pod.p1 .st-pod-step { height: 84px; }
  .st-pod.p2 .st-pod-step { height: 62px; }
  .st-pod.p3 .st-pod-step { height: 46px; }
  .st-row { padding: 8px; gap: 10px; }
  .st-row-val { font-size: 16px; }
  .st-profile { grid-template-columns: auto minmax(0, 1fr); padding: 20px; gap: 16px; }
  .st-profile .st-search { grid-column: 1 / -1; justify-self: stretch; max-width: none; }
  .st-head.is-xxl { width: 80px; height: 80px; }
  .st-profile-text h1 { font-size: 26px; }
  .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .st-tile { padding: 14px; }
  .st-tile-val { font-size: 22px; }
  .st-cols { grid-template-columns: 1fr; }
  .st-facts { grid-template-columns: 1fr 1fr 1fr; }
}

.st-activity { margin-bottom: 36px; padding: 22px 24px; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); }
.st-activity-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.st-activity-head h2 { font-size: 22px; font-weight: 600; }
.st-activity-head p { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.st-range { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.st-range button { border: 0; background: transparent; color: var(--text-muted); font: 700 13px 'Manrope', sans-serif; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.st-range button.is-active { background: var(--surface-2); color: var(--text); }
.st-range button:focus-visible { outline: 2px solid var(--pink); outline-offset: 1px; }
.st-activity-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 18px 0 14px; }
.st-activity-kpis div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.st-activity-kpis span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); }
.st-activity-kpis b { display: flex; align-items: center; gap: 8px; font-family: 'Fredoka', sans-serif; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-activity-kpis small { font-size: 12px; color: var(--text-muted); }
.st-activity-chart { height: 210px; }
.st-activity-chart svg { display: block; overflow: visible; }
.st-activity-empty { padding: 40px 0; text-align: center; color: var(--text-dim); font-size: 14px; }
.st-grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.st-axis { fill: var(--text-dim); font: 600 11px 'Manrope', sans-serif; }
.st-area { fill: rgba(239, 76, 224, 0.16); }
.st-line { fill: none; stroke: var(--pink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.st-peak { fill: none; stroke: #8b5cf6; stroke-width: 1.6; stroke-dasharray: 5 5; }
.st-dot { fill: var(--pink); stroke: var(--surface); stroke-width: 3; }
.st-hit { fill: transparent; }
.st-hit:hover { fill: rgba(255, 255, 255, 0.05); }
.st-activity-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12.5px; color: var(--text-muted); }
.st-activity-legend span::before { content: ''; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; background: var(--pink); }
.st-activity-legend .is-peak::before { background: #8b5cf6; }
@media (max-width: 600px) {
  .st-activity { padding: 18px 16px; }
  .st-activity-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-activity-kpis b { font-size: 22px; }
  .st-activity-chart { height: 180px; }
}
.st-cmp-btn { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(239, 76, 224, 0.45); color: var(--pink); font-size: 12.5px; font-weight: 800; cursor: pointer; }
.st-cmp-btn:hover { background: rgba(239, 76, 224, 0.12); color: var(--pink); }
.st-cmp { padding: 26px; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 18px; }
.st-cmp h1 { font-size: 30px; font-weight: 700; }
.st-cmp-search { max-width: 460px; }
.st-cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.st-cmp-player { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text); cursor: pointer; min-width: 0; }
.st-cmp-player b { font-size: 18px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-cmp-player small { color: var(--text-dim); font-size: 12.5px; }
.st-cmp-player.is-a b { color: var(--pink); }
.st-cmp-player.is-b b { color: var(--blue); }
.st-cmp-score { display: flex; align-items: center; gap: 12px; font-family: 'Fredoka', sans-serif; }
.st-cmp-score b { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-cmp-score b:first-child { color: var(--pink); }
.st-cmp-score b:last-child { color: var(--blue); }
.st-cmp-score span { font-size: 14px; font-weight: 700; color: var(--text-dim); padding: 4px 10px; border-radius: 999px; background: var(--bg); }
.st-cmp-verdict { text-align: center; color: var(--text-muted); font-size: 14.5px; }
.st-cmp-verdict b { color: var(--text); }
.st-cmp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.st-cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 14px; padding: 11px 4px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.st-cmp-val { font-size: 15px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.st-cmp-val.is-a { text-align: right; }
.st-cmp-val.is-win { color: var(--text); }
.st-cmp-val.is-a.is-win::after { content: ' ●'; color: var(--pink); font-size: 10px; vertical-align: 2px; }
.st-cmp-val.is-b.is-win::before { content: '● '; color: var(--blue); font-size: 10px; vertical-align: 2px; }
.st-cmp-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.st-cmp-label { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); text-align: center; }
.st-cmp-bar { display: flex; width: 100%; height: 6px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.st-cmp-bar .is-a { background: var(--pink); }
.st-cmp-bar .is-b { background: var(--blue); }
.st-cmp-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .st-cmp { padding: 18px 14px; }
  .st-cmp-score b { font-size: 30px; }
  .st-cmp-player b { font-size: 15px; }
  .st-cmp-row { gap: 8px; }
  .st-cmp-val { font-size: 13.5px; }
}
.st-sections { display: inline-flex; gap: 4px; padding: 4px; margin-top: 4px; border-radius: 14px; border: 1px solid var(--border); background: rgba(16, 12, 28, 0.6); }
.st-section-tab { padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.st-section-tab:hover { color: var(--text); }
.st-section-tab.is-active { color: var(--text); background: var(--surface-2); }
.st-hero.is-compact { padding: 56px 64px 44px; }
.st-hero.is-compact h1 { font-size: 40px; }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 10px; }
.st-legend-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: 700 12.5px 'Manrope', sans-serif; cursor: pointer; }
.st-legend-chip::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.st-legend-chip.is-off { color: var(--text-dim); opacity: 0.55; }
.st-legend-chip.is-off::before { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.st-activity-chart.is-tall { height: 280px; }
.st-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
.st-two > *, .st-wrap > .st-card { min-width: 0; }
.st-table-wrap { overflow-x: auto; margin: 0 -6px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-table th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); padding: 8px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.st-table td { padding: 10px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); white-space: nowrap; vertical-align: middle; }
.st-table td small { display: block; font-size: 12px; color: var(--text-dim); }
.st-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.st-table .st-rank { width: 26px; height: 26px; font-size: 12px; }
.st-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.st-feed-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 14px; color: var(--text-muted); }
.st-feed-row:last-child { border-bottom: 0; }
.st-feed-row b { color: var(--text); }
.st-feed-row time { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.st-feed-tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: var(--text-muted); background: rgba(255, 255, 255, 0.07); }
.st-feed-tag.is-koth { color: #ffb13b; background: rgba(255, 177, 59, 0.14); }
.st-feed-tag.is-outpost { color: #5fe3f0; background: rgba(95, 227, 240, 0.12); }
.st-feed-tag.is-largage { color: #3ddc84; background: rgba(61, 220, 132, 0.13); }
.st-feed-tag.is-nexus { color: #ef4ce0; background: rgba(239, 76, 224, 0.13); }
.st-trend { font-size: 12.5px; font-weight: 800; color: var(--text-dim); white-space: nowrap; }
.st-trend.is-up { color: var(--green); }
.st-trend.is-down { color: var(--red); }
.st-spark { display: block; width: 100px; height: 28px; overflow: visible; }
.st-spark polyline { fill: none; stroke: var(--text-dim); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.st-spark.is-up polyline { stroke: var(--green); }
.st-spark.is-down polyline { stroke: var(--red); }
.st-spark.is-empty { display: inline-block; }
.st-wrap > .st-card + .st-card, .st-wrap > .st-activity + .st-two { margin-top: 14px; }
.st-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.st-card-head h2 { margin-bottom: 4px; }
.st-range-wrap { flex-wrap: wrap; }
.st-card > .st-muted { margin: -8px 0 12px; }
.st-bourse { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.st-stock { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); min-width: 0; }
.st-stock-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-stock-top b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-stock-price { font-family: 'Fredoka', sans-serif; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-stock-price small { font-family: 'Manrope', sans-serif; font-size: 11.5px; font-weight: 600; color: var(--text-dim); margin-left: 6px; }
.st-stock .st-spark { width: 100%; height: 30px; }
.st-stock-sub { font-size: 12px; color: var(--text-dim); }
@media (max-width: 960px) {
  .st-two { grid-template-columns: 1fr; }
  .st-hero.is-compact { padding: 40px 20px 32px; }
  .st-hero.is-compact h1 { font-size: 30px; }
}
@media (max-width: 600px) {
  .st-bourse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-stock-price { font-size: 18px; }
  .st-feed-row { grid-template-columns: auto minmax(0, 1fr); }
  .st-feed-row time { grid-column: 2; }
}
/* Règlement */
.draft-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(242, 102, 107, 0.1);
  border: 1px solid rgba(242, 102, 107, 0.35);
  color: var(--red);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 64px 32px;
}
.rule-group { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.rule-group h3 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.rule-list { display: flex; flex-direction: column; gap: 10px; }
.rule-item { display: flex; gap: 12px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.rule-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 28px; height: 28px; border-radius: 8px; }
.footer-copy { font-size: 12px; color: var(--text-dim); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-weight: 600; font-size: 14px; }
.footer-links a:hover { color: var(--text); }

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 960px) {
  .nav { padding: 16px 20px; }

  .hero { flex-direction: column; padding: 44px 20px 36px; text-align: center; }
  .hero-text { align-items: center; max-width: 100%; }
  .pill { align-self: center; }
  .hero h1 { font-size: 32px; }
  .lede { font-size: 14px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .ip-box { width: 100%; justify-content: space-between; }
  .hero-actions .btn-ghost { width: 100%; }
  .hero-art { order: -1; }
  .hero-art img { width: 170px; height: 170px; }

  .status-section { padding: 0 20px 36px; }
  .status-card { padding: 20px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .status-right { width: 100%; justify-content: space-between; gap: 20px; }

  .section { padding: 0 20px 40px; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 24px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 8px; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }

  .page-hero { padding: 40px 20px 28px; }
  .page-hero h1 { font-size: 28px; }

  .quicklink-card { padding: 18px 20px; }

  .draft-banner { margin: 0 20px 24px; }

  .footer { flex-direction: column; text-align: center; padding: 32px 20px; }
  .footer-brand { align-items: center; }
  .footer-links { justify-content: center; row-gap: 10px; }
}

/* 404 */
.nf { position: relative; overflow: hidden; min-height: calc(100vh - 260px); display: flex; align-items: center; justify-content: center; padding: 72px 20px; text-align: center; }
.nf-inner { position: relative; z-index: 1; max-width: 620px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nf-mob { width: 96px; height: 96px; image-rendering: pixelated; animation: nf-bob 2.4s ease-in-out infinite; }
.nf-code { font-family: 'Fredoka', sans-serif; font-size: 120px; font-weight: 700; line-height: 0.9; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: 34px; font-weight: 700; line-height: 1.15; }
.nf p { font-size: 16px; color: var(--text-muted); }
.nf-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
@keyframes nf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 600px) {
  .nf-code { font-size: 88px; }
  .nf h1 { font-size: 26px; }
  .nf-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .nf-mob { animation: none; } }

/* Founders */
.founder-app { max-width: 1240px; margin: 0 auto; padding: 40px 32px 96px; min-height: 70vh; }
.fd-gate { max-width: 520px; margin: 60px auto; padding: 40px 32px; text-align: center; border-radius: 26px; border: 1px solid var(--border-strong); background: linear-gradient(160deg, #2a1647, var(--surface) 70%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fd-gate h1 { font-size: 32px; font-weight: 700; }
.fd-gate p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.fd-gate .eyebrow { margin-bottom: 0; }
.fd-error { color: var(--red) !important; font-weight: 600; }
.fd-discord { background: #5865f2; box-shadow: 0 10px 30px rgba(88, 101, 242, 0.35); }
.fd-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: var(--pink); animation: fd-spin 0.8s linear infinite; }
@keyframes fd-spin { to { transform: rotate(360deg); } }
.fd-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.fd-hero .eyebrow { margin-bottom: 6px; }
.fd-hero h1 { font-size: 40px; font-weight: 700; line-height: 1.1; }
.fd-hero p { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.fd-user { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.fd-user img { width: 36px; height: 36px; border-radius: 50%; }
.fd-user span { font-weight: 700; font-size: 14px; padding-right: 4px; }
.fd-user .btn { padding: 8px 14px; font-size: 13px; }
.fd-tabs { position: sticky; top: 72px; z-index: 5; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px; margin-bottom: 28px; border-radius: 16px; border: 1px solid var(--border); background: rgba(16, 12, 28, 0.88); backdrop-filter: blur(10px); }
.fd-tabs::-webkit-scrollbar { display: none; }
.fd-tabs a { flex-shrink: 0; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--text-muted); }
.fd-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.fd-section { margin-bottom: 44px; scroll-margin-top: 140px; }
.fd-section-head { margin-bottom: 16px; }
.fd-section-head h2 { font-size: 26px; font-weight: 600; }
.fd-section-head p { color: var(--text-dim); font-size: 14px; margin-top: 4px; }
.fd-section code, .fd-empty code { font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: rgba(239, 76, 224, 0.12); color: var(--pink); }
.fd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.fd-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.fd-kpi > span { font-size: 12.5px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.fd-kpi > b { font-family: 'Fredoka', sans-serif; font-size: 28px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fd-kpi > small { font-size: 12.5px; color: var(--text-muted); }
.fd-kpi.is-pink { border-color: rgba(239, 76, 224, 0.35); background: linear-gradient(150deg, rgba(239, 76, 224, 0.16), var(--surface) 70%); }
.fd-kpi.is-warn > b { color: var(--orange, #ffb13b); }
.fd-trend { font-weight: 700; }
.fd-trend.is-up { color: var(--green); }
.fd-trend.is-down { color: var(--red); }
.fd-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.fd-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.fd-card { padding: 18px 20px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); min-width: 0; margin-bottom: 14px; }
.fd-grid-2 > .fd-card, .fd-grid-3 > .fd-card { margin-bottom: 0; }
.fd-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; color: var(--text); }
.fd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.fd-card-head h3 { margin-bottom: 0; }
.fd-switch { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.fd-switch button { border: 0; background: transparent; color: var(--text-muted); font: 700 13px 'Manrope', sans-serif; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.fd-switch button.is-active { background: var(--surface-2); color: var(--text); }
.fd-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; font-size: 12.5px; color: var(--text-muted); }
.fd-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.fd-chart { width: 100%; position: relative; }
.fd-chart svg { display: block; overflow: visible; }
.fd-grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.fd-axis { fill: var(--text-dim); font: 600 11px 'Manrope', sans-serif; }
.fd-hit { fill: transparent; }
.fd-hit:hover { fill: rgba(255, 255, 255, 0.04); }
.fd-hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fd-hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 5px; }
.fd-hbar-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-hbar-top b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fd-hbar-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.fd-hbar-track span { display: block; height: 100%; border-radius: 999px; }
.fd-hbars small { display: block; margin-top: 4px; font-size: 12px; color: var(--text-dim); }
.fd-rings { display: flex; justify-content: space-around; gap: 10px; flex-wrap: wrap; }
.fd-ring { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 120px; }
.fd-ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 11; }
.fd-ring-fg { fill: none; stroke: var(--pink); stroke-width: 11; stroke-linecap: round; }
.fd-ring text { fill: var(--text); font: 600 22px 'Fredoka', sans-serif; }
.fd-ring b { font-size: 14px; }
.fd-ring small { font-size: 12px; color: var(--text-dim); max-width: 150px; }
.fd-note { margin-top: 14px; font-size: 12.5px; color: var(--text-dim); text-align: center; }
.fd-empty { color: var(--text-dim); font-size: 14px; padding: 8px 0; }
.fd-dim { color: var(--text-dim); }
.fd-table-wrap { overflow-x: auto; margin: 0 -6px; }
.fd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fd-table th { text-align: left; font-size: 11.5px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.fd-table td { padding: 10px 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; white-space: nowrap; }
.fd-table td small { display: block; color: var(--text-dim); font-size: 12px; white-space: normal; }
.fd-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.fd-table tbody tr:hover td { background-color: rgba(255, 255, 255, 0.02); }
.fd-cohorts td.num { border-radius: 6px; }
.fd-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text-muted); background: rgba(255, 255, 255, 0.06); }
.fd-online { font-size: 11.5px; font-weight: 800; color: var(--green); margin-left: 4px; }
.fd-more { display: none; }
.fd-card.is-open .fd-more { display: table-row; }
.fd-more-btn { display: block; margin: 14px auto 0; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: transparent; color: var(--text-muted); font: 700 13px 'Manrope', sans-serif; cursor: pointer; }
.fd-more-btn:hover { color: var(--text); border-color: var(--pink); }
.fd-del { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-dim); cursor: pointer; }
.fd-del:hover { color: var(--red); border-color: rgba(242, 102, 107, 0.5); }
.fd-heat-wrap { overflow-x: auto; }
.fd-heat { display: grid; grid-template-columns: 40px repeat(24, minmax(16px, 1fr)); gap: 3px; min-width: 560px; }
.fd-heat-h { font-size: 10.5px; color: var(--text-dim); text-align: left; }
.fd-heat-d { font-size: 12px; font-weight: 700; color: var(--text-muted); align-self: center; }
.fd-heat-c { aspect-ratio: 1; border-radius: 4px; }
@media (max-width: 1000px) {
  .fd-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .founder-app { padding: 24px 16px 64px; }
  .fd-hero h1 { font-size: 30px; }
  .fd-grid-2 { grid-template-columns: 1fr; }
  .fd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fd-kpi { padding: 14px; }
  .fd-kpi > b { font-size: 22px; }
  .fd-tabs { top: 64px; }
}

.cd-status { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--text-muted); background: rgba(255, 255, 255, 0.07); white-space: nowrap; }
.cd-status.is-acceptee { color: var(--green); background: rgba(61, 220, 132, 0.14); }
.cd-status.is-refusee { color: var(--red); background: rgba(242, 102, 107, 0.14); }
.cd-modal-panel { position: relative; display: flex; flex-direction: column; width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 24px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8); transform: translateY(10px) scale(0.98); transition: transform 0.18s ease; }
.sh-modal.is-open .cd-modal-panel { transform: none; }
.cd-modal-body { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.cd-modal-body h2 { font-size: 26px; font-weight: 700; }
.cd-decision { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cd-decision small { color: var(--text-dim); font-size: 12.5px; }
.cd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-note { display: flex; flex-direction: column; gap: 6px; }
.cd-note span { font-size: 12.5px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.cd-note textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font-family: 'Manrope', sans-serif; font-size: 14px; resize: vertical; }
.cd-note textarea:focus { outline: none; border-color: var(--pink); }
.cd-modal-body [data-cd-save-note] { align-self: flex-start; }
.cd-sections { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--border); padding-top: 16px; }
.cd-row { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.cd-row:last-child { border-bottom: 0; }
.cd-row span { display: block; font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.cd-row p { font-size: 14px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.cd-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
@media (max-width: 600px) {
  .cd-modal-body { padding: 20px; }
  .cd-actions { flex-direction: column; }
  .cd-actions .btn { width: 100%; }
}