/* ───────── tokens (mutated by Tweaks via inline style on :root) ───────── */
:root {
  /* palette: applied dynamically; defaults inlined as fallback */
  --bg: oklch(98.5% 0.012 220);
  --bg-2: oklch(96.5% 0.022 215);
  --ink: oklch(22% 0.03 250);
  --ink-soft: oklch(42% 0.025 250);
  --ink-mute: oklch(58% 0.02 250);
  --surface: #ffffff;
  --surface-2: oklch(98% 0.008 220);
  --line: oklch(92% 0.013 230);
  --line-soft: oklch(94.5% 0.01 230);

  /* accents — overridden by palette */
  --acc: oklch(64% 0.165 230);
  /* sky */
  --acc-2: oklch(72% 0.15 165);
  /* mint */
  --acc-warm: oklch(78% 0.135 75);
  /* sun  */
  --acc-coral: oklch(70% 0.18 25);
  /* coral */

  --acc-ink: #ffffff;
  --r: 18px;
  --r-sm: 12px;
  --r-lg: 28px;

  --shadow-sm: 0 1px 0 oklch(100% 0 0 / .8) inset, 0 1px 2px oklch(20% 0.05 240 / .04);
  --shadow: 0 1px 0 oklch(100% 0 0 / .8) inset, 0 6px 24px -10px oklch(40% 0.08 240 / .14), 0 2px 6px -2px oklch(40% 0.05 240 / .06);
  --shadow-lg: 0 1px 0 oklch(100% 0 0 / .9) inset, 0 24px 60px -28px oklch(40% 0.08 240 / .22), 0 8px 20px -8px oklch(40% 0.05 240 / .08);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  /* pinned so the shared chrome renders identically on bespoke AND
     Tabler pages (Tabler otherwise forces line-height 1.4285 on body,
     making the navbar/announcement boxes taller on those pages) */
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

/* page background: layered gradient + subtle pixel noise */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -10%, color-mix(in oklch, var(--acc) 16%, transparent) 0%, transparent 60%),
    radial-gradient(760px 520px at 92% 6%, color-mix(in oklch, var(--acc-2) 15%, transparent) 0%, transparent 55%),
    radial-gradient(1100px 700px at 50% 100%, color-mix(in oklch, var(--acc) 9%, transparent) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  transition: background .4s ease;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in oklch, var(--acc) 22%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--acc) 22%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .22;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 75%);
  opacity: .9;
}

/* layout shell */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 28px 80px;
}

/* ───────── top bar ───────── */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 12px 10px 20px;
  background: oklch(99% 0.005 220 / .82);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 6px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name small {
  font: 500 10px/1 var(--font-mono);
  color: var(--ink-mute);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.tnav {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
}

.tnav a {
  position: relative;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .15s, background .15s;
}

.tnav a:hover {
  color: var(--ink);
  background: oklch(96% 0.012 230);
}

.tnav a.is-active {
  color: var(--ink);
  background: color-mix(in oklch, var(--acc) 14%, white);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--acc) 25%, transparent);
}

.nav-badge {
  font: 600 10px/1 var(--font-mono);
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--acc-coral);
  color: white;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-btn,
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.cart-btn:hover {
  background: white;
  color: var(--ink);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--acc-coral);
  color: white;
  font: 700 10px/18px var(--font-body);
  text-align: center;
  border-radius: 999px;
  border: 2px solid var(--bg);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, oklch(70% 0.13 60), oklch(60% 0.18 30));
  display: grid;
  place-items: center;
  image-rendering: pixelated;
  position: relative;
  overflow: hidden;
}

.user-avatar svg {
  width: 100%;
  height: 100%;
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

.user-meta small {
  font: 600 9px/1 var(--font-mono);
  color: var(--acc);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.user-meta span {
  font-weight: 700;
  font-size: 13px;
}

.credit-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: color-mix(in oklch, var(--acc) 10%, white);
  border: 1px solid color-mix(in oklch, var(--acc) 22%, var(--line));
  border-radius: 999px;
  font-family: var(--font-mono);
}

.credit-chip .cc-coin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc-warm), var(--acc));
  color: white;
  display: grid;
  place-items: center;
  font: 700 11px/1 var(--font-body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}

.credit-chip b {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
}

@media (max-width: 980px) {
  .credit-chip {
    display: none;
  }
}

/* ───────── announcement / sub-header strip ───────── */
.subhead {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 18px;
  background: linear-gradient(90deg, color-mix(in oklch, var(--acc) 8%, white) 0%, color-mix(in oklch, var(--acc-2) 8%, white) 100%);
  border: 1px solid color-mix(in oklch, var(--acc) 18%, var(--line-soft));
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.subhead .tag {
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--acc);
  color: white;
}

.subhead a {
  margin-left: auto;
  color: var(--acc);
  font-weight: 700;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid color-mix(in oklch, var(--acc) 20%, var(--line));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.subhead a:hover {
  background: var(--acc);
  color: white;
}

/* ───────── hero ───────── */
.hero {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: stretch;
}

.hero-main {
  position: relative;
  padding: 28px 40px 32px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(800px 400px at 80% 110%, color-mix(in oklch, var(--acc-2) 22%, transparent) 0%, transparent 60%),
    radial-gradient(500px 300px at -10% -20%, color-mix(in oklch, var(--acc) 18%, transparent) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in oklch, var(--acc) 30%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--acc) 30%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 70% 100%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 100%, #000 0%, transparent 60%);
  opacity: .35;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  font: 600 12px/1 var(--font-mono);
  letter-spacing: .04em;
  background: color-mix(in oklch, var(--acc-2) 14%, white);
  color: oklch(35% 0.08 165);
  border: 1px solid color-mix(in oklch, var(--acc-2) 30%, var(--line));
  border-radius: 999px;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc-2);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--acc-2) 22%, transparent);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 4px color-mix(in oklch, var(--acc-2) 22%, transparent);
  }

  50% {
    box-shadow: 0 0 0 7px color-mix(in oklch, var(--acc-2) 8%, transparent);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 10px 0 14px;
  color: var(--ink);
  text-wrap: balance;
  position: relative;
  z-index: 1;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--acc) 10%, var(--acc-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero p.lede {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 26px;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s;
  font-family: var(--font-body);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 24px -10px color-mix(in oklch, var(--ink) 50%, transparent), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.btn-primary:hover {
  background: color-mix(in oklch, var(--ink) 88%, var(--acc) 12%);
}

.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-acc {
  background: var(--acc);
  color: white;
  box-shadow: 0 10px 24px -10px color-mix(in oklch, var(--acc) 60%, transparent), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.btn-acc:hover {
  background: color-mix(in oklch, var(--acc) 88%, black 12%);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}

/* hero metrics row */
.hero-metrics {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric .num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
}

.metric .num .unit {
  font: 600 12px/1 var(--font-mono);
  color: var(--ink-mute);
}

.metric .lbl {
  font: 600 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
}

.metric .num .live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(65% 0.18 145);
  box-shadow: 0 0 0 3px oklch(75% 0.16 145 / .25);
  margin-right: 4px;
  animation: pulse-g 2s infinite;
}

@keyframes pulse-g {

  0%,
  100% {
    box-shadow: 0 0 0 3px oklch(75% 0.16 145 / .25);
  }

  50% {
    box-shadow: 0 0 0 6px oklch(75% 0.16 145 / .08);
  }
}

/* hero-aside: server preview card */
.hero-aside {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.preview-art {
  position: relative;
  height: 220px;
  background:
    radial-gradient(700px 400px at 50% 120%, oklch(78% 0.13 165) 0%, transparent 60%),
    linear-gradient(180deg, oklch(86% 0.09 215) 0%, oklch(78% 0.13 215) 70%, oklch(72% 0.14 195) 100%);
  overflow: hidden;
}

.preview-art .sun {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: oklch(92% 0.11 90);
  box-shadow:
    0 0 0 6px oklch(92% 0.11 90 / .35),
    0 0 40px oklch(92% 0.16 90);
  image-rendering: pixelated;
}

.preview-art .cloud {
  position: absolute;
  background: oklch(99% 0.005 220);
  border-radius: 999px;
  opacity: .92;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .06));
}

.preview-art .terrain {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(180deg, oklch(72% 0.16 145) 0%, oklch(60% 0.15 145) 30%, oklch(50% 0.08 60) 30%, oklch(38% 0.06 50) 100%);
}

.preview-art .terrain::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background-image:
    linear-gradient(rgba(0, 0, 0, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .08) 1px, transparent 1px);
  background-size: 18px 18px;
}

.preview-art .terrain::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .06) 1px, transparent 1px);
  background-size: 18px 18px;
}

.preview-art .tree {
  position: absolute;
  bottom: 50px;
  width: 36px;
  height: 50px;
  image-rendering: pixelated;
}

.preview-art .tree .crown {
  width: 36px;
  height: 36px;
  background: oklch(58% 0.16 145);
  box-shadow:
    0 -8px 0 -8px oklch(58% 0.16 145),
    0 0 0 4px oklch(52% 0.16 145) inset;
}

.preview-art .tree .trunk {
  width: 10px;
  height: 18px;
  margin: -4px auto 0;
  background: oklch(42% 0.07 50);
}

.preview-meta {
  position: absolute;
  left: 20px;
  bottom: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-meta .badge {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 12px/1 var(--font-mono);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-meta .badge .liveDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(65% 0.2 145);
  box-shadow: 0 0 0 3px oklch(72% 0.18 145 / .35);
}

.preview-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 12px 12px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.ip-row .ip-l {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ip-row .ip-l small {
  font: 600 10px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
}

.ip-row .ip-l b {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -.01em;
}

.copy-btn {
  border: 0;
  cursor: pointer;
  padding: 10px 16px;
  background: var(--acc);
  color: white;
  font: 700 13px/1 var(--font-body);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background .15s;
}

.copy-btn:hover {
  background: color-mix(in oklch, var(--acc) 88%, black);
}

.copy-btn.copied {
  background: oklch(60% 0.16 145);
}

.players-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.avatars {
  display: flex;
  margin-left: 4px;
}

.avatars>div {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid var(--surface);
  margin-left: -8px;
  background: linear-gradient(135deg, oklch(65% 0.12 var(--h, 30)), oklch(55% 0.16 var(--h, 30)));
  display: grid;
  place-items: center;
  font: 700 11px/1 var(--font-mono);
  color: white;
  image-rendering: pixelated;
}

.players-row .more {
  font-size: 13px;
  color: var(--ink-soft);
}

.players-row .more b {
  color: var(--ink);
}

.version-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
}

.version-row .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.version-row .pill {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-soft);
}

/* ───────── bento row ───────── */
.bento {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before,
.hero-aside::before,
.sb-card::before,
.nh-stage::before,
.disc-wide::before,
.mode::before,
.product::before,
.feat-item::before,
.footer::before,
.breadcrumb::before,
.alert::before,
.pagination::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 0% 0%, color-mix(in oklch, var(--acc) 15%, transparent) 0%, transparent 70%);
  border-radius: inherit;
}

.card::after,
.hero-aside::after,
.sb-card::after,
.nh-stage::after,
.disc-wide::after,
.mode::after,
.product::after,
.feat-item::after,
.footer::after,
.breadcrumb::after,
.alert::after,
.pagination::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 100% 100%, color-mix(in oklch, var(--acc-2) 15%, transparent) 0%, transparent 70%);
  border-radius: inherit;
}

.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-h h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-h h3 .ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in oklch, var(--acc) 12%, white);
  color: var(--acc);
  display: grid;
  place-items: center;
}

.card-h .link {
  font: 600 12px/1 var(--font-body);
  color: var(--ink-mute);
  text-decoration: none;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.card-h .link:hover {
  color: var(--acc);
}

/* leaderboard */
.lb-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--surface-2);
  border-radius: 10px;
  margin-bottom: 12px;
}

.lb-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 7px 10px;
  font: 600 11.5px/1 var(--font-body);
  color: var(--ink-mute);
  border-radius: 8px;
}

.lb-tabs button.is-on {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lb-row {
  display: grid;
  grid-template-columns: 28px 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  transition: background .12s;
}

.lb-row:hover {
  background: var(--surface-2);
}

.lb-rank {
  font: 700 13px/1 var(--font-mono);
  color: var(--ink-mute);
  text-align: center;
}

.lb-row.top1 .lb-rank,
.lb-row.top2 .lb-rank,
.lb-row.top3 .lb-rank {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 11px;
  margin: 0 auto;
}

.lb-row.top1 .lb-rank {
  background: linear-gradient(135deg, oklch(80% 0.16 90), oklch(68% 0.18 60));
}

.lb-row.top2 .lb-rank {
  background: linear-gradient(135deg, oklch(80% 0.02 240), oklch(65% 0.02 240));
}

.lb-row.top3 .lb-rank {
  background: linear-gradient(135deg, oklch(72% 0.13 50), oklch(58% 0.15 40));
}

.lb-av {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, oklch(65% 0.12 var(--h, 30)), oklch(48% 0.16 var(--h, 30)));
  image-rendering: pixelated;
}

.lb-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lb-name b {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.lb-name span {
  font: 500 11px/1 var(--font-mono);
  color: var(--ink-mute);
}

.lb-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.lb-score small {
  font-size: 10px;
  color: var(--ink-mute);
}

/* featured package */
.feat-pkg {
  position: relative;
  background:
    radial-gradient(400px 240px at 100% 0%, color-mix(in oklch, var(--acc-warm) 18%, transparent) 0%, transparent 70%),
    var(--surface);
}

.feat-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font: 700 10px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--acc-warm);
  color: oklch(25% 0.05 60);
}

.feat-body {
  display: flex;
  gap: 18px;
  align-items: stretch;
  margin-top: 4px;
}

.feat-art {
  width: 110px;
  height: 130px;
  border-radius: 14px;
  background:
    radial-gradient(80px 80px at 50% 40%, oklch(95% 0.1 90) 0%, transparent 70%),
    linear-gradient(180deg, oklch(90% 0.07 215) 0%, oklch(82% 0.11 215) 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.feat-art .crown-pixel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 40px;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .15));
  image-rendering: pixelated;
}

.feat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feat-info h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 6px 0 6px;
}

.feat-info p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.feat-perks {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
}

.feat-perks li {
  list-style: none;
  font-size: 12.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feat-perks li svg {
  color: var(--acc-2);
  flex-shrink: 0;
}

.feat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.feat-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.feat-price b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.feat-price s {
  color: var(--ink-mute);
  font-size: 14px;
}

.feat-price .save {
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .05em;
  padding: 4px 7px;
  border-radius: 6px;
  background: color-mix(in oklch, var(--acc-2) 14%, white);
  color: oklch(35% 0.1 165);
}

/* news */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .12s;
}

.news-row:hover {
  background: var(--surface-2);
}

.news-row .date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}

.news-row .date b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.news-row .date span {
  font: 600 9px/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.news-row .nw-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.news-row .nw-cat {
  display: inline-flex;
  align-self: flex-start;
  font: 700 9px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 5px;
}

.news-row .nw-cat.update {
  background: color-mix(in oklch, var(--acc) 12%, white);
  color: oklch(35% 0.12 230);
}

.news-row .nw-cat.event {
  background: color-mix(in oklch, var(--acc-coral) 12%, white);
  color: oklch(40% 0.15 25);
}

.news-row .nw-cat.fix {
  background: color-mix(in oklch, var(--acc-2) 12%, white);
  color: oklch(35% 0.1 165);
}

.news-row .nw-body b {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

.news-row .nw-body span {
  font-size: 12.5px;
  color: var(--ink-mute);
}

/* discord widget */
.disc {
  background: linear-gradient(180deg, color-mix(in oklch, oklch(55% 0.2 280) 8%, white) 0%, var(--surface) 100%);
}

.disc .ch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.disc .ch+.ch {
  margin-top: 8px;
}

.disc .ch-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 12px/1 var(--font-mono);
  color: var(--ink-soft);
}

.disc .ch-h::before {
  content: "#";
  color: var(--ink-mute);
  font-weight: 700;
}

.disc .ch-msg {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.disc .ch-msg .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, oklch(70% 0.16 var(--h, 50)), oklch(55% 0.18 var(--h, 50)));
}

.disc .ch-msg .tx {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.disc .ch-msg .tx b {
  color: var(--ink);
  font-weight: 700;
  margin-right: 6px;
}

.disc-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px 10px 14px;
  background: oklch(55% 0.22 280);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  justify-content: space-between;
}

.disc-cta:hover {
  background: oklch(50% 0.22 280);
}

/* status mini */
.status .mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.status .mini {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.status .mini small {
  font: 600 9px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 5px;
}

.status .mini small::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(70% 0.16 145);
}

.status .mini b {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  display: block;
  margin-top: 4px;
}

.tps-chart {
  margin-top: 14px;
  height: 56px;
  position: relative;
}

.tps-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tps-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tps-meta b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.tps-meta b small {
  font-size: 11px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

.tps-meta .delta {
  font: 700 11px/1 var(--font-mono);
  padding: 4px 7px;
  border-radius: 6px;
  background: color-mix(in oklch, oklch(65% 0.16 145) 14%, white);
  color: oklch(35% 0.12 145);
}

/* ───────── modes section ───────── */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 44px 0 18px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -.022em;
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}

.section-head .eyebrow {
  font: 600 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--acc);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}

.modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mode {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .15s, box-shadow .2s, border-color .15s;
}

.mode:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklch, var(--acc) 30%, var(--line));
}

.mode-art {
  height: 110px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.mode-art.m1 {
  background:
    radial-gradient(300px 200px at 50% 100%, oklch(72% 0.16 145) 0%, transparent 60%),
    linear-gradient(180deg, oklch(86% 0.09 215) 0%, oklch(78% 0.13 215) 100%);
}

.mode-art.m2 {
  background:
    radial-gradient(220px 140px at 70% 100%, oklch(68% 0.14 50) 0%, transparent 60%),
    linear-gradient(180deg, oklch(60% 0.12 30) 0%, oklch(40% 0.14 25) 100%);
}

.mode-art.m3 {
  background:
    radial-gradient(220px 140px at 30% 100%, oklch(75% 0.12 210) 0%, transparent 60%),
    linear-gradient(180deg, oklch(90% 0.05 210) 0%, oklch(75% 0.1 215) 100%);
}

.mode-art.m4 {
  background:
    radial-gradient(220px 140px at 50% 100%, oklch(70% 0.18 305) 0%, transparent 60%),
    linear-gradient(180deg, oklch(50% 0.15 290) 0%, oklch(30% 0.12 290) 100%);
}

.mode-art .px-row {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background-image:
    linear-gradient(rgba(0, 0, 0, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .1) 1px, transparent 1px);
  background-size: 16px 16px;
}

.mode-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.mode h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.01em;
}

.mode p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}

.mode-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.mode-foot .players {
  font: 600 12px/1 var(--font-mono);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-foot .players::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(70% 0.16 145);
  box-shadow: 0 0 0 3px oklch(70% 0.16 145 / .25);
}

.mode-foot .arr {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}

.mode:hover .mode-foot .arr {
  background: var(--acc);
  color: white;
  border-color: var(--acc);
}

/* ───────── footer ───────── */
.footer {
  margin-top: 56px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px 36px;
  position: relative;
  overflow: hidden;
}

.footer h5 {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink) !important;
  margin: 0 0 14px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer ul a {
  color: var(--ink-soft) !important;
  text-decoration: none;
  font-size: 13.5px;
}

.footer ul a:hover {
  color: var(--acc) !important;
}

.footer .f-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
}

.footer .f-brand p,
.footer .f-brand p *,
.footer .f-brand .ck-content,
.footer .f-brand .ck-content *,
.footer .f-brand .footer-about,
.footer .f-brand .footer-about * {
  color: var(--ink-soft) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.footer-about {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.footer-about p {
  margin: 0;
}

.footer .socials {
  display: flex;
  gap: 8px;
}

.footer .socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer .socials a:hover {
  background: var(--acc);
  color: white;
  border-color: var(--acc);
}

.copyright {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 12px;
}

.copyright .legal {
  display: flex;
  gap: 18px;
}

.copyright .legal a {
  color: var(--ink-mute);
  text-decoration: none;
}

.copyright .legal a:hover {
  color: var(--acc);
}

.article-content.ck-content span[style*="background-color"] {
    background-color: transparent !important;
}

/* ───────── responsive collapses ───────── */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .bento .lb {
    grid-column: span 12 !important;
  }
}

@media (max-width: 880px) {
  .modes {
    grid-template-columns: 1fr 1fr;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
  }

  .tnav {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═════════ news carousel ═════════ */
.news-hero {
  margin-top: 22px;
}

.nh-stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.nh-slide {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 280px;
  animation: nh-fade .5s ease;
}

@keyframes nh-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.nh-art {
  position: relative;
  overflow: hidden;
}

.art-n1 .nh-art {
  background: linear-gradient(180deg, oklch(86% 0.09 215) 0%, oklch(76% 0.13 200) 100%);
}

.art-n2 .nh-art {
  background: linear-gradient(180deg, oklch(82% 0.12 60) 0%, oklch(64% 0.17 35) 100%);
}

.art-n3 .nh-art {
  background: linear-gradient(180deg, oklch(88% 0.07 280) 0%, oklch(72% 0.15 295) 100%);
}

.art-n4 .nh-art {
  background: linear-gradient(180deg, oklch(86% 0.1 150) 0%, oklch(70% 0.15 160) 100%);
}

.nh-sun {
  position: absolute;
  top: 28px;
  right: 34px;
  width: 52px;
  height: 52px;
  background: oklch(94% 0.11 90);
  image-rendering: pixelated;
  box-shadow: 0 0 0 6px oklch(94% 0.11 90 / .3), 0 0 44px oklch(92% 0.16 90);
}

.nh-cloud {
  position: absolute;
  background: oklch(99% 0.004 220);
  border-radius: 999px;
  opacity: .92;
}

.nh-terrain {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: linear-gradient(180deg, oklch(72% 0.16 145) 0%, oklch(60% 0.15 145) 28%, oklch(50% 0.08 60) 28%, oklch(40% 0.06 50) 100%);
}

.nh-terrain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .08) 1px, transparent 1px);
  background-size: 18px 18px;
}

.nh-tree {
  position: absolute;
  bottom: 56px;
  width: 38px;
  height: 38px;
  background: oklch(56% 0.16 145);
  box-shadow: 0 6px 0 oklch(42% 0.07 50);
  image-rendering: pixelated;
}

.nh-tree.small {
  width: 26px;
  height: 26px;
  bottom: 60px;
}

.nh-arttag {
  position: absolute;
  top: 18px;
  left: 18px;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.nh-body {
  padding: 36px 44px 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nh-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.nh-date {
  font: 600 11px/1 var(--font-mono);
  color: var(--ink-mute);
  letter-spacing: .04em;
}

.nh-body h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -.022em;
  font-weight: 700;
  line-height: 1.06;
  margin: 0 0 12px;
  color: var(--ink);
  text-wrap: balance;
}

.nh-body p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 52ch;
}

.nh-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nh-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: background .15s, transform .15s;
}

.nh-nav:hover {
  background: var(--acc);
  color: white;
  border-color: var(--acc);
}

.nh-nav:active {
  transform: translateY(-50%) scale(.94);
}

.nh-nav.prev {
  left: 16px;
}

.nh-nav.next {
  right: 16px;
}

.nh-dots {
  position: absolute;
  bottom: 16px;
  right: 24px;
  display: flex;
  gap: 7px;
  z-index: 3;
}

.nh-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  padding: 0;
  background: color-mix(in oklch, var(--ink) 22%, transparent);
  transition: width .2s, background .2s;
}

.nh-dots button.on {
  width: 22px;
  background: var(--acc);
}

/* ── ticker ── */
.ticker {
  margin-top: 12px;
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  background: var(--ink);
  color: white;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .12em;
  flex-shrink: 0;
}

.tk-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(70% 0.2 25);
  box-shadow: 0 0 0 3px oklch(70% 0.2 25 / .3);
  animation: pulse-g 1.6s infinite;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker-row {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  padding: 12px 0;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}

.ticker:hover .ticker-row {
  animation-play-state: paused;
}

.tk-item {
  display: inline-flex;
  align-items: center;
  font: 500 13px/1 var(--font-body);
  color: var(--ink-soft);
  padding: 0 4px;
}

.tk-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acc);
  margin: 0 22px;
  opacity: .6;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-row {
    animation: none;
  }
}

/* ═════════ featured (2 products) ═════════ */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .15s, transform .15s, box-shadow .2s;
}

.feat-item:hover {
  border-color: color-mix(in oklch, var(--acc) 30%, var(--line));
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feat-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font: 700 9px/1 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--acc-warm);
  color: oklch(28% 0.06 60);
}

.feat-art {
  height: 96px;
  border-radius: 14px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120px 80px at 50% 120%, oklch(70% 0.16 var(--h, 140)) 0%, transparent 65%),
    linear-gradient(180deg, color-mix(in oklch, oklch(70% 0.14 var(--h, 140)) 30%, white) 0%, oklch(72% 0.14 var(--h, 140)) 100%);
}

.feat-art::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36%;
  background-image: linear-gradient(rgba(0, 0, 0, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .1) 1px, transparent 1px);
  background-size: 14px 14px;
}

.feat-art-ic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  color: oklch(40% 0.1 var(--h, 140));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .3);
}

.feat-cat {
  font: 600 10px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 5px;
}

.feat-item h4 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 10px;
}

.feat-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feat-perks li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.feat-perks li svg {
  color: var(--acc-2);
  flex-shrink: 0;
}

.feat-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feat-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.feat-price b {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.feat-price s {
  color: var(--ink-mute);
  font-size: 13px;
}

.feat-price .save {
  font: 700 9px/1 var(--font-mono);
  padding: 4px 6px;
  border-radius: 5px;
  background: color-mix(in oklch, var(--acc-2) 14%, white);
  color: oklch(35% 0.1 165);
}

.btn.sm {
  padding: 9px 13px;
  font-size: 13px;
  border-radius: 11px;
}

.card-sub {
  font: 600 11px/1 var(--font-mono);
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-sub .live-dot,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(65% 0.18 145);
  box-shadow: 0 0 0 3px oklch(70% 0.16 145 / .25);
  animation: pulse-g 2s infinite;
}

.lb-score.credit {
  color: var(--acc);
}

/* ═════════ recent purchases ═════════ */
.buys-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.buy-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 8px;
  border-radius: 12px;
  transition: background .12s;
}

.buy-row:hover {
  background: var(--surface-2);
}

.buy-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.buy-meta b {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.buy-meta span {
  font-size: 12px;
  color: var(--ink-mute);
}

.buy-meta em {
  font-style: normal;
  color: var(--ink-soft);
  font-weight: 600;
}

.buy-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.buy-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: var(--acc);
  background: color-mix(in oklch, var(--acc) 9%, white);
  padding: 3px 8px;
  border-radius: 6px;
}

.buy-ago {
  font: 500 10px/1 var(--font-mono);
  color: var(--ink-mute);
}

/* ═════════ discord wide ═════════ */
.disc-wide {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(120deg, color-mix(in oklch, oklch(55% 0.2 280) 9%, var(--surface)) 0%, var(--surface) 55%);
}

.disc-left {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.disc-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  flex-shrink: 0;
  background: oklch(55% 0.22 280);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -10px oklch(55% 0.22 280 / .6), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.disc-head {
  display: flex;
  flex-direction: column;
}

.disc-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 11px/1 var(--font-mono);
  color: oklch(50% 0.18 280);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.disc-online .d-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(65% 0.18 145);
  box-shadow: 0 0 0 3px oklch(70% 0.16 145 / .3);
}

.disc-head h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}

.disc-head p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 40ch;
}

.btn-disc {
  align-self: flex-start;
  background: oklch(55% 0.22 280);
  color: white;
  box-shadow: 0 10px 24px -12px oklch(55% 0.22 280 / .7);
}

.btn-disc:hover {
  background: oklch(50% 0.22 280);
}

.disc-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.disc-msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.dm-av {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, oklch(70% 0.16 var(--h, 50)), oklch(54% 0.18 var(--h, 50)));
}

.dm-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.dm-top b {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.dm-ch {
  font: 600 11px/1 var(--font-mono);
  color: var(--acc);
}

.dm-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

@media (max-width: 1100px) {
  .nh-slide {
    grid-template-columns: 1fr;
  }

  .nh-art {
    min-height: 180px;
  }

  .nh-nav {
    top: 92px;
    transform: none;
  }

  .nh-nav:active {
    transform: scale(.94);
  }

  .disc-wide {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 880px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }

  .bento>.card {
    grid-column: span 12 !important;
  }
}

/* ═════════ store page ═════════ */
.store-banner {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: stretch;
}

.store-banner .sb-text {
  position: relative;
  overflow: hidden;
  padding: 40px 44px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(600px 360px at 90% 120%, color-mix(in oklch, var(--acc-2) 20%, transparent) 0%, transparent 60%),
    radial-gradient(500px 320px at -5% -20%, color-mix(in oklch, var(--acc) 18%, transparent) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
}

.store-banner .sb-text::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in oklch, var(--acc) 28%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--acc) 28%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 80% 100%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 100%, #000 0%, transparent 60%);
  opacity: .3;
}

.sb-crumb {
  position: relative;
  z-index: 1;
  font: 600 12px/1 var(--font-mono);
  color: var(--ink-mute);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
}

.sb-crumb a {
  color: var(--acc);
  text-decoration: none;
}

.sb-crumb span {
  color: var(--line);
}

.sb-text h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 0 0 14px;
  line-height: 1;
}

.sb-text p {
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 0 22px;
}

.sb-text p b {
  color: var(--ink);
}

.sb-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sb-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 12px/1 var(--font-body);
  color: var(--ink-soft);
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.sb-pill .d {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(65% 0.18 145);
  box-shadow: 0 0 0 3px oklch(70% 0.16 145 / .25);
}

.sb-card {
  padding: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, color-mix(in oklch, var(--acc) 12%, var(--surface)) 0%, var(--surface) 60%);
  border: 1px solid color-mix(in oklch, var(--acc) 18%, var(--line-soft));
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sb-balance {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sb-balance small {
  font: 600 11px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
}

.sb-amount {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-amount .coin {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc-warm), var(--acc));
  color: white;
  display: grid;
  place-items: center;
  font: 700 17px/1 var(--font-body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}

.sb-note {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
}

.store-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 22px;
  align-items: start;
}

.store-cats {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.sc-title {
  font: 600 10px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
  padding: 6px 10px 10px;
}

.sc-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 11px;
  font: 600 13.5px/1 var(--font-body);
  color: var(--ink-soft);
  text-align: left;
  transition: background .12s, color .12s;
  text-decoration: none;
}

.sc-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.sc-btn.on {
  background: color-mix(in oklch, var(--acc) 16%, var(--surface));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--acc) 24%, transparent);
}

.sc-ic {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--ink-mute);
  flex-shrink: 0;
}

.sc-btn.on .sc-ic {
  background: var(--acc);
  color: white;
}

.sc-count {
  margin-left: auto;
  font: 600 11px/1 var(--font-mono);
  color: var(--ink-mute);
  background: var(--surface-2);
  padding: 4px 7px;
  border-radius: 6px;
}

.sc-btn.on .sc-count {
  background: var(--surface);
  color: var(--acc);
}

.sc-help {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
}

.sc-help b {
  font-size: 13px;
  display: block;
  margin-bottom: 5px;
}

.sc-help p {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin: 0 0 10px;
}

.sc-help a {
  font: 700 12.5px/1 var(--font-body);
  color: var(--acc);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.store-grid-wrap {
  min-width: 0;
}

.sg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sg-head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
}

.sg-head span {
  font: 600 12px/1 var(--font-mono);
  color: var(--ink-mute);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .2s, border-color .15s;
  overflow: hidden;
}

.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklch, var(--acc) 28%, var(--line));
}

.prod-flag {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  font: 700 9px/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
}

.prod-flag.hot {
  background: var(--acc-coral);
  color: white;
}

.prod-flag.best {
  background: var(--acc-warm);
  color: oklch(28% 0.06 60);
}

.prod-art {
  height: 104px;
  border-radius: 14px;
  margin-bottom: 13px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(120px 80px at 50% 120%, oklch(70% 0.16 var(--h, 140)) 0%, transparent 65%), linear-gradient(180deg, color-mix(in oklch, oklch(72% 0.14 var(--h, 140)) 28%, white) 0%, oklch(72% 0.15 var(--h, 140)) 100%);
}

.prod-art::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 34%;
  background-image: linear-gradient(rgba(0, 0, 0, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .1) 1px, transparent 1px);
  background-size: 14px 14px;
}

.prod-ic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .92);
  color: oklch(40% 0.11 var(--h, 140));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .3);
}

.big-coin {
  font: 800 22px/1 var(--font-body);
}

.prod-cat {
  font: 600 10px/1 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 5px;
}

.prod-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0 0 11px;
}

.prod-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prod-perks li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.prod-perks li svg {
  color: var(--acc-2);
  flex-shrink: 0;
}

.prod-foot {
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prod-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.prod-price b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.prod-price s {
  color: var(--ink-mute);
  font-size: 12.5px;
}

.btn.btn-acc.ok {
  background: oklch(60% 0.16 145);
}

@media (max-width: 1100px) {
  .store-banner {
    grid-template-columns: 1fr;
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .store-layout {
    grid-template-columns: 1fr;
  }

  .store-cats {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .store-cats .sc-title,
  .store-cats .sc-help {
    display: none;
  }

  .sc-btn {
    width: auto;
  }

  .sc-count {
    display: none;
  }
}

@media (max-width: 560px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════════
   LeaderOS integration overrides (real data adaptation)
   ════════════════════════════════════════════════════════════════ */

/* Real avatar images replacing gradient placeholder divs.
   Gradient stays visible as a placeholder while lazyload swaps src. */
img.lb-av,
img.dm-av,
img.buy-av,
img.user-avatar-img,
.avatars img {
  object-fit: cover;
  display: block;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.buy-av {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  image-rendering: auto;
  background: linear-gradient(135deg, oklch(70% 0.13 var(--h, 30)), oklch(50% 0.17 var(--h, 30)));
}

/* tags that sit on top of always-light art gradients keep dark text in any mode */
.nh-arttag,
.mode-tag,
.preview-meta .badge {
  color: #19212e;
}

/* FontAwesome icons inside nav links */
.tnav a i {
  font-size: 14px;
  opacity: .85;
}

.tnav a .nav-link-icon {
  display: inline-flex;
}

/* product art using a real product image */
.prod-art.has-img,
.feat-art.has-img,
.nh-art.has-img {
  background: var(--surface-2);
}

.prod-art .prod-img,
.feat-art .feat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nh-art .nh-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prod-art .prod-img.lazyload,
.feat-art .feat-img.lazyload,
.nh-art .nh-img.lazyload {
  opacity: 0;
  transition: opacity .4s;
}

.prod-art .prod-img.loaded,
.feat-art .feat-img.loaded,
.nh-art .nh-img.loaded {
  opacity: 1;
}

/* category card (store index / subcategories) reuses .product shell */
.product.cat-card {
  text-decoration: none;
  color: inherit;
}

.product.cat-card .prod-art {
  height: 130px;
  margin-bottom: 14px;
}

.product.cat-card .prod-name {
  margin-bottom: 0;
}

/* stock / discount badges on product art */
.prod-stock {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  font: 700 9px/1 var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
}

.prod-stock.in {
  background: color-mix(in oklch, var(--acc-2) 16%, white);
  color: oklch(38% 0.1 165);
}

.prod-stock.out {
  background: var(--acc-coral);
  color: white;
}

.prod-discount {
  position: absolute;
  bottom: 13px;
  left: 13px;
  z-index: 2;
  font: 800 12px/1 var(--font-body);
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--acc-coral);
  color: white;
}

/* disabled / out-of-stock buy button */
.btn.is-disabled,
.btn:disabled {
  opacity: .5;
  pointer-events: none;
}

.btn-out {
  background: var(--acc-coral);
  color: white;
}

/* user dropdown menu (vanilla, replaces Bootstrap dropdown) */
.user-wrap {
  position: relative;
}

.user-chip {
  cursor: pointer;
}

.user-dd {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 230px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.user-wrap.open .user-dd {
  display: flex;
  animation: nh-fade .18s ease;
}

.user-dd a,
.user-dd button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  font: 600 13.5px/1 var(--font-body);
  color: var(--ink-soft);
  text-align: left;
  text-decoration: none;
  transition: background .12s, color .12s;
}

.user-dd a:hover,
.user-dd button:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.user-dd a i,
.user-dd button i {
  font-size: 17px;
  width: 20px;
  text-align: center;
}

.user-dd .dd-sep {
  height: 1px;
  background: var(--line-soft);
  margin: 6px 4px;
}

.user-dd .dd-balance b {
  color: var(--acc);
  margin-left: auto;
  font-family: var(--font-mono);
}

.user-dd .dd-danger,
.user-dd .dd-danger:hover {
  color: var(--acc-coral);
}

/* login / register buttons in topbar */
.top-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  place-items: center;
  color: var(--ink-soft);
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: grid;
  }

  .topbar {
    grid-template-columns: auto auto 1fr auto;
  }

  .tnav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
  }

  .tnav:not(.open) {
    display: none;
  }

  .tnav.open {
    display: flex;
  }

  .tnav a {
    justify-content: flex-start;
  }
}

/* breadcrumb empty-state alert reused from design tone */
.fresh-alert {
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  font-size: 14px;
}

/* language / currency / theme switch row in footer */
.f-switches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.f-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font: 600 12.5px/1 var(--font-body);
  cursor: pointer;
  text-decoration: none;
}

.f-switch:hover {
  color: var(--ink);
  border-color: color-mix(in oklch, var(--acc) 30%, var(--line));
}

.f-switch i {
  font-size: 15px;
}

.f-dd {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 160px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.f-switch-wrap.open .f-dd {
  display: flex;
}

.f-dd a {
  padding: 8px 10px;
  border-radius: 8px;
  font: 600 12.5px/1 var(--font-body);
  color: var(--ink-soft);
  text-decoration: none;
}

.f-dd a:hover,
.f-dd a.active {
  background: var(--surface-2);
  color: var(--ink);
}

/* ───────── dark mode tokens ───────── */
body[data-bs-theme="dark"] {
  --bg: oklch(20% 0.02 250);
  --bg-2: oklch(16% 0.02 255);
  --ink: oklch(96% 0.01 250);
  --ink-soft: oklch(82% 0.015 250);
  --ink-mute: oklch(64% 0.02 250);
  --surface: oklch(25% 0.02 255);
  --surface-2: oklch(29% 0.02 255);
  --line: oklch(34% 0.02 255);
  --line-soft: oklch(31% 0.02 255);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 6px 24px -10px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -28px rgba(0, 0, 0, .6);
}

body[data-bs-theme="dark"] .topbar {
  background: color-mix(in oklch, var(--surface) 82%, transparent);
}

body[data-bs-theme="dark"] .tnav a:hover {
  background: var(--surface-2);
}

body[data-bs-theme="dark"] .tnav a.is-active {
  background: color-mix(in oklch, var(--acc) 22%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--acc) 40%, transparent);
}

body[data-bs-theme="dark"] .user-chip,
body[data-bs-theme="dark"] .btn-secondary,
body[data-bs-theme="dark"] .lb-tabs button.is-on {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}

body[data-bs-theme="dark"] .nh-nav {
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  color: var(--ink);
  border-color: var(--line);
}

body[data-bs-theme="dark"] .subhead {
  background: linear-gradient(90deg, color-mix(in oklch, var(--acc) 12%, var(--bg)) 0%, color-mix(in oklch, var(--acc-2) 12%, var(--bg)) 100%);
}

body[data-bs-theme="dark"] .subhead a,
body[data-bs-theme="dark"] .subhead a:hover {
  background: var(--surface-2);
}

/* nav dropdowns (desktop hover / mobile inline) */
.nav-item-dd {
  position: relative;
  display: inline-flex;
}

.nav-sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 200px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.nav-item-dd:hover .nav-sub {
  display: flex;
}

.nav-sub a {
  padding: 9px 12px;
  border-radius: 10px;
  font: 600 13px/1 var(--font-body);
  color: var(--ink-soft);
  background: transparent;
  box-shadow: none;
}

.nav-sub a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

@media (max-width: 880px) {
  .nav-item-dd {
    display: block;
  }

  .nav-sub {
    position: static;
    display: flex;
    box-shadow: none;
    border: 0;
    padding: 2px 0 2px 14px;
    border-radius: 0;
    min-width: 0;
  }
}

/* news carousel category chip (standalone, outside .news-row scope) */
.nh-meta .nw-cat {
  display: inline-flex;
  align-self: flex-start;
  font: 700 9px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 5px;
  background: color-mix(in oklch, var(--acc) 12%, white);
  color: oklch(35% 0.12 230);
}

/* dark-mode fixes for tokens that invert (ink-based button & chips) */
body[data-bs-theme="dark"] .btn-primary {
  color: var(--bg);
}

body[data-bs-theme="dark"] .btn-primary:hover {
  background: color-mix(in oklch, var(--ink) 86%, var(--acc) 14%);
  color: var(--bg);
}

body[data-bs-theme="dark"] .credit-chip {
  background: var(--surface-2);
  border-color: var(--line);
}

body[data-bs-theme="dark"] .credit-chip b {
  color: var(--ink);
}

body[data-bs-theme="dark"] .ticker-label {
  color: var(--bg);
}

/* recent registered users — heads (2 rows × 5), centred, with a custom name tooltip */
.recent-users {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 4px 0 2px;
}

.ru-title {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
  margin-bottom: 4px;
}

.ru-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.ru-head {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 64px;
  aspect-ratio: 1;
  border-radius: 13px;
  border: 2px solid var(--surface);
  background: var(--surface-2);
  box-shadow: 0 4px 10px -4px oklch(40% 0.08 240 / .4);
  transition: transform .15s;
}

.ru-head .ru-img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
  display: block;
}

.ru-head:hover {
  transform: translateY(-4px);
  z-index: 5;
}

/* ───────── SweetAlert2 / IP Modal ───────── */
.swal2-popup {
  background: var(--surface) !important;
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--line-soft) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 36px 24px !important;
}

.swal2-title {
  color: var(--ink) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
}

.swal2-content {
  color: var(--ink-soft) !important;
  font-size: 15px !important;
}

.swal2-confirm {
  background: var(--acc) !important;
  border-radius: 14px !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 24px -10px color-mix(in oklch, var(--acc) 60%, transparent) !important;
}

/* leaderos breadcrumb & components */
.breadcrumb {
  position: relative;
  overflow: hidden;
  background: var(--surface) !important;
  border: 1px solid var(--line-soft) !important;
  box-shadow: var(--shadow) !important;
  padding: 14px 20px !important;
  border-radius: var(--r) !important;
}

.alert {
  position: relative;
  overflow: hidden;
  border-radius: var(--r) !important;
  border: 1px solid var(--line-soft) !important;
  box-shadow: var(--shadow) !important;
}

.pagination {
  position: relative;
  overflow: hidden;
  gap: 4px;
}

.page-link {
  background: var(--surface) !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 10px !important;
  color: var(--ink-soft) !important;
}

.page-item.active .page-link {
  background: var(--acc) !important;
  color: white !important;
  border-color: var(--acc) !important;
}

/* custom name tooltip on hover */
.ru-head::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 11px);
  transform: translateX(-50%) translateY(5px);
  background: var(--ink);
  color: var(--surface);
  font: 700 11.5px/1 var(--font-body);
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 9px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 20;
}

.ru-head::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: 9px;
  height: 9px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%) translateY(5px) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 20;
}

.ru-head[data-name=""]::after,
.ru-head[data-name=""]::before {
  display: none;
}

.ru-head:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ru-head:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0) rotate(45deg);
}

/* ════════════════════════════════════════════════════════════════
   SHARED SKIN FOR TABLER PAGES  (body.t-skin)
   Every non-bespoke page (layouts/main, auth, error) now loads THIS
   same file. The chrome (topbar / footer / subhead / ticker) already
   comes from the shared partials above; the rules below make the
   Tabler / Bootstrap widgets inside the page content match Fresh.
   ════════════════════════════════════════════════════════════════ */

/* map Tabler design tokens onto Fresh ones (covers components we don't
   restyle explicitly: list-groups, switches, tooltips, steps, etc.) */
body.t-skin {
  --tblr-body-color: var(--ink);
  --tblr-body-color-secondary: var(--ink-soft);
  --tblr-secondary: var(--ink-soft);
  --tblr-muted: var(--ink-mute);
  --tblr-body-bg: transparent;
  --tblr-bg-surface: var(--surface);
  --tblr-bg-surface-secondary: var(--surface-2);
  --tblr-bg-surface-tertiary: var(--surface-2);
  --tblr-border-color: var(--line);
  --tblr-border-color-translucent: var(--line-soft);
  --tblr-border-radius: var(--r-sm);
  --tblr-card-bg: var(--surface);
  --tblr-card-cap-bg: transparent;
  --tblr-primary: var(--acc);
  --tblr-link-color: var(--acc);
  --tblr-link-hover-color: var(--acc);
  --tblr-font-sans-serif: var(--font-body);
  font-family: var(--font-body);
  color: var(--ink);
}

/* ---- fit Tabler's page structure inside the Fresh shell ---- */
body.t-skin .page-wrapper {
  padding: 0;
  margin: 0;
  min-height: 0;
  background: transparent;
}

body.t-skin .page-header {
  margin: 6px 0 2px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.t-skin .page-body {
  margin: 20px 0 0;
  padding: 0;
}

/* comfortable reading line-height for Tabler page content only
   (the chrome above stays at the pinned body line-height) */
body.t-skin .page-wrapper {
  line-height: 1.5;
}

body.t-skin .shell .container,
body.t-skin .shell .container-xl,
body.t-skin .shell .container-fluid,
body.t-skin .shell .container-tight,
body.t-skin .shell .container-narrow {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.t-skin .page-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

body.t-skin .page-pretitle {
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---- cards: keep the Fresh look, but give Tabler's
        card-header / card-body / card-footer room to breathe
        (the global .card rule above adds its own padding & corners) ---- */
body.t-skin .card {
  padding: 0;
  overflow: visible;
}

body.t-skin .card::before,
body.t-skin .card::after {
  display: none;
}

body.t-skin .card-header,
body.t-skin .card-footer {
  background: transparent;
  border-color: var(--line-soft);
  padding: 16px 20px;
}

body.t-skin .card-body {
  padding: 20px;
}

body.t-skin .card-title,
body.t-skin .card-header .card-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
}

/* ---- buttons (Fresh .btn sizing already applies globally) ---- */
body.t-skin .btn {
  justify-content: center;
}

body.t-skin .btn-primary {
  background: var(--acc);
  color: var(--acc-ink);
  border-color: transparent;
  box-shadow: 0 10px 24px -12px color-mix(in oklch, var(--acc) 60%, transparent);
}

body.t-skin .btn-primary:hover {
  background: color-mix(in oklch, var(--acc) 88%, black 12%);
  color: var(--acc-ink);
}

body.t-skin .btn-outline-primary {
  color: var(--acc);
  border-color: color-mix(in oklch, var(--acc) 40%, var(--line));
  background: transparent;
}

body.t-skin .btn-outline-primary:hover {
  background: var(--acc);
  color: var(--acc-ink);
}

body.t-skin .btn-ghost-primary,
body.t-skin .btn-link {
  color: var(--acc);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* ---- forms ---- */
body.t-skin .form-control,
body.t-skin .form-select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  padding: 11px 14px;
  font-family: var(--font-body);
  box-shadow: var(--shadow-sm);
}

body.t-skin .form-control::placeholder {
  color: var(--ink-mute);
}

body.t-skin .form-control:focus,
body.t-skin .form-select:focus {
  border-color: color-mix(in oklch, var(--acc) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--acc) 18%, transparent);
  background: var(--surface);
  color: var(--ink);
}

body.t-skin .form-label {
  font: 600 13px/1.2 var(--font-body);
  color: var(--ink);
  margin-bottom: 7px;
}

body.t-skin .form-hint,
body.t-skin .form-text {
  color: var(--ink-mute);
}

body.t-skin .input-group-text {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: var(--r-sm);
}

body.t-skin .form-check-input {
  background-color: var(--surface-2);
  border-color: var(--line);
}

body.t-skin .form-check-input:checked {
  background-color: var(--acc);
  border-color: var(--acc);
}

/* ---- tables ---- */
body.t-skin .table {
  color: var(--ink);
  --tblr-table-bg: transparent;
  --tblr-table-color: var(--ink);
}

body.t-skin .table thead th {
  font: 600 10px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-color: var(--line);
}

body.t-skin .table td,
body.t-skin .table th {
  border-color: var(--line-soft);
}

body.t-skin .table-hover tbody tr:hover>* {
  background: var(--surface-2);
  color: var(--ink);
}

/* ---- nav-tabs / nav-pills inside page content ---- */
body.t-skin .nav-tabs {
  border-bottom-color: var(--line);
}

body.t-skin .nav-tabs .nav-link {
  color: var(--ink-soft);
  border: 0;
  border-radius: 10px 10px 0 0;
  font-weight: 600;
}

body.t-skin .nav-tabs .nav-link.active {
  color: var(--ink);
  background: transparent;
  border-bottom: 2px solid var(--acc);
}

body.t-skin .nav-pills .nav-link {
  color: var(--ink-soft);
  border-radius: 999px;
  font-weight: 600;
}

body.t-skin .nav-pills .nav-link.active {
  background: var(--acc);
  color: var(--acc-ink);
}

/* ---- dropdowns / modals / badges / list-groups / utilities ---- */
body.t-skin .dropdown-menu {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
}

body.t-skin .dropdown-item {
  border-radius: 9px;
  color: var(--ink-soft);
  font-weight: 600;
}

body.t-skin .dropdown-item:hover {
  background: var(--surface-2);
  color: var(--ink);
}

body.t-skin .modal-content {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

body.t-skin .modal-header,
body.t-skin .modal-footer {
  border-color: var(--line-soft);
}

body.t-skin .badge {
  border-radius: 7px;
  font-weight: 700;
}

body.t-skin .bg-primary {
  background: var(--acc) !important;
  color: var(--acc-ink) !important;
}

body.t-skin .text-primary {
  color: var(--acc) !important;
}

body.t-skin .list-group-item {
  background: var(--surface);
  border-color: var(--line-soft);
  color: var(--ink);
}

body.t-skin .avatar {
  border-radius: 10px;
}

/* ════════════════════════════════════════════════════════════════
   AUTH PAGES — split screen (layouts/auth.php)
   ════════════════════════════════════════════════════════════════ */
.auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth-art {
  position: relative;
  overflow: hidden;
  padding: 48px 56px;
  display: flex;
  color: #fff;
  background:
    radial-gradient(700px 500px at 18% 8%, color-mix(in oklch, var(--acc) 55%, transparent) 0%, transparent 60%),
    radial-gradient(680px 520px at 92% 92%, color-mix(in oklch, var(--acc-2) 45%, transparent) 0%, transparent 55%),
    linear-gradient(150deg, color-mix(in oklch, var(--acc) 32%, var(--ink)) 0%, var(--ink) 100%);
}

.auth-art::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 70%);
}

.auth-art-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 440px;
  margin: auto;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: #fff;
}

.auth-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  flex-shrink: 0;
}

.auth-bname {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.auth-bname small {
  font: 500 10px/1 var(--font-mono);
  letter-spacing: .14em;
  opacity: .7;
  margin-top: 4px;
  text-transform: uppercase;
}

.auth-art-mid h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 0 0 16px;
}

.auth-art-mid h2 em {
  font-style: normal;
  color: color-mix(in oklch, var(--acc-2) 55%, white);
}

.auth-art-mid p {
  font-size: 15px;
  line-height: 1.6;
  opacity: .85;
  margin: 0 0 24px;
  max-width: 42ch;
}

.auth-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-feats li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14.5px;
}

.auth-feats li i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}

.auth-ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
}

.auth-ip-l {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.auth-ip-l small {
  font: 600 10px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
}

.auth-ip-l b {
  font-family: var(--font-mono);
  font-size: 16px;
}

.auth-ip i {
  font-size: 22px;
  opacity: .8;
}

.auth-main {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 40px;
  min-height: 100vh;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-logo-sm {
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}

.auth-logo-sm .auth-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--acc);
  border: 0;
}

.auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}

.auth-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.auth-mode:hover {
  color: var(--ink);
  border-color: color-mix(in oklch, var(--acc) 30%, var(--line));
}

/* the form card injected into .auth-box */
.auth-box .card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}

.auth-box .card::before,
.auth-box .card::after {
  display: none;
}

.auth-box .card-body {
  padding: 32px 30px;
}

.auth-box .card-title,
.auth-box h1,
.auth-box h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

@media (max-width: 920px) {
  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-art {
    display: none;
  }

  .auth-logo-sm {
    display: flex;
    justify-content: center;
  }

  .auth-main {
    padding: 28px 22px;
  }
}