/* ===== CUSTOM PROPERTIES ===== */
:root {
  --bg: #09090e;
  --bg-alt: #0a0a10;
  --bg-card: rgba(14, 14, 22, 0.6);
  --bg-card-60: rgba(14, 14, 22, 0.6);
  --bg-elevated: #0c0c14;
  --border: #3a334d;
  --border-light: #1e1a2a;
  --border-hover: #7a6ab6;
  --border-faint: #12121a;
  --text: #b8b0c8;
  --text-bright: #e8e0f0;
  --text-soft: #c8c0d4;
  --text-muted: #c8c0d4;
  --text-dim: #c8c0d4;
  --text-faint: #c8c0d4;
  --text-ghost: #c8c0d4;
  --text-hidden: #c8c0d4;
  --accent: #c084fc;
  --accent-dark: #7c3aed;
  --accent-mid: #8b5cf6;
  --accent-light: #c7b9ff;
  --accent-lighter: #ddd6fe;
  --accent-tint-4: rgba(139, 92, 246, 0.04);
  --accent-tint-6: rgba(139, 92, 246, 0.06);
  --accent-tint-7: rgba(139, 92, 246, 0.07);
  --accent-tint-10: rgba(139, 92, 246, 0.10);
  --accent-tint-12: rgba(139, 92, 246, 0.12);
  --accent-tint-15: rgba(139, 92, 246, 0.15);
  --accent-tint-25: rgba(139, 92, 246, 0.25);
  --accent-tint-35: rgba(139, 92, 246, 0.35);
  --green: #4ade80;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --discord-tint-3: rgba(88, 101, 242, 0.03);
  --discord-tint-6: rgba(88, 101, 242, 0.06);
  --discord-tint-8: rgba(88, 101, 242, 0.08);
  --discord-tint-10: rgba(88, 101, 242, 0.10);
  --discord-tint-15: rgba(88, 101, 242, 0.15);
  --discord-tint-20: rgba(88, 101, 242, 0.20);
  --warn: #f59e0b;
  --red: #f87171;
  --red-dark: #991b1b;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-pill: 20px;
  --sidebar-w: 260px;

  /* Surfaces & overlays */
  --surface-heavy:   rgba(4, 4, 8, 0.97);
  --surface-modal:   rgba(4, 4, 8, 0.92);
  --surface-overlay:  rgba(4, 4, 8, 0.6);
  --surface-sidebar: rgba(9, 9, 14, 0.92);
  --surface-float:   rgba(9, 9, 14, 0.9);
  --surface-label:   rgba(9, 9, 14, 0.8);
  --surface-close:   rgba(9, 9, 14, 0.85);
  --surface-lightbox: rgba(5, 5, 8, 0.95);
  --surface-card-hover: rgba(20, 18, 30, 0.8);
  --surface-discord: rgba(12, 12, 20, 0.6);
  --surface-gradient-from: #1a1025;
  --surface-gradient-to:   #2a1040;
  --surface-name-grad: rgba(9, 9, 14, 0.9);
  --hero-glow-2:     #4a1942;

  /* Status tints */
  --green-tint-bg:   rgba(34, 197, 94, 0.06);
  --green-tint-border: rgba(34, 197, 94, 0.15);
  --red-tint-bg:     rgba(239, 68, 68, 0.06);
  --red-tint-border: rgba(239, 68, 68, 0.15);
  --red-tint-bg-light: rgba(248, 113, 113, 0.05);
  --red-tint-border-light: rgba(248, 113, 113, 0.2);
  --tos-red-bg:      rgb(25, 10, 10, 0.4);
  --tos-red-border:  rgba(153, 27, 27, 0.2);

  /* Button on dark */
  --btn-bright: #fff;
  --tier-btn-bg: #7c3aed;
  --tier-btn-text: #fff;
  --tier-btn-hover: #8b5cf6;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
  --bg: #f5f3f7;
  --bg-alt: #edeaf0;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-60: rgba(255, 255, 255, 0.6);
  --bg-elevated: #ffffff;
  --border: #b6b1bd;
  --border-light: #e8e2f0;
  --border-hover: #8b6cc0;
  --border-faint: #eee8f4;
  --text: #2a2438;
  --text-bright: #1a1525;
  --text-soft: #3a3348;
  --text-muted: #6a6278;
  --text-dim: #7a7288;
  --text-faint: #8a8298;
  --text-ghost: #9a92a8;
  --text-hidden: #aaa2b8;
  --accent: #7c3aed;
  --accent-dark: #6d28d9;
  --accent-mid: #8b5cf6;
  --accent-light: #7d5dff;
  --accent-lighter: #6d28d9;
  --accent-tint-4: rgba(124, 58, 237, 0.04);
  --accent-tint-6: rgba(124, 58, 237, 0.06);
  --accent-tint-7: rgba(124, 58, 237, 0.07);
  --accent-tint-10: rgba(124, 58, 237, 0.10);
  --accent-tint-12: rgba(124, 58, 237, 0.12);
  --accent-tint-15: rgba(124, 58, 237, 0.15);
  --accent-tint-25: rgba(124, 58, 237, 0.25);
  --accent-tint-35: rgba(124, 58, 237, 0.35);
  --green: #16a34a;
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --discord-tint-3: rgba(88, 101, 242, 0.05);
  --discord-tint-6: rgba(88, 101, 242, 0.08);
  --discord-tint-8: rgba(88, 101, 242, 0.10);
  --discord-tint-10: rgba(88, 101, 242, 0.12);
  --discord-tint-15: rgba(88, 101, 242, 0.18);
  --discord-tint-20: rgba(88, 101, 242, 0.22);
  --warn: #d97706;
  --red: #dc2626;
  --red-dark: #991b1b;

  /* Surfaces & overlays (light) */
  --surface-heavy:   rgba(255, 255, 255, 0.97);
  --surface-modal:   rgba(240, 238, 244, 0.95);
  --surface-overlay:  rgba(0, 0, 0, 0.25);
  --surface-sidebar: rgba(245, 243, 247, 0.95);
  --surface-float:   rgba(245, 243, 247, 0.95);
  --surface-label:   rgba(255, 255, 255, 0.9);
  --surface-close:   rgba(245, 243, 247, 0.9);
  --surface-lightbox: rgba(0, 0, 0, 0.85);
  --surface-card-hover: rgba(240, 238, 245, 0.8);
  --surface-discord: rgba(245, 243, 250, 0.8);
  --surface-gradient-from: #e8e2f0;
  --surface-gradient-to:   #ddd6e8;
  --surface-name-grad: rgba(245, 243, 247, 0.9);
  --hero-glow-2:     #e8d5f0;

  /* Status tints (light) */
  --green-tint-bg:   rgba(22, 163, 74, 0.08);
  --green-tint-border: rgba(22, 163, 74, 0.2);
  --red-tint-bg:     rgba(220, 38, 38, 0.06);
  --red-tint-border: rgba(220, 38, 38, 0.18);
  --red-tint-bg-light: rgba(220, 38, 38, 0.05);
  --red-tint-border-light: rgba(220, 38, 38, 0.15);
  --tos-red-bg:      rgba(220, 38, 38, 0.08);
  --tos-red-border:  rgba(220, 38, 38, 0.2);

  /* Button on light */
  --btn-bright: #ffffff;
  --tier-btn-bg: #6d28d9;
  --tier-btn-text: #fff;
  --tier-btn-hover: #7c3aed;
}
[data-theme="light"] .sidebar {
  background: var(--surface-sidebar);
}
[data-theme="light"] #fog-canvas {
  opacity: 0.08;
}
[data-theme="light"] .sidebar-avatar {
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.12);
}
[data-theme="light"] .age-gate {
  background: rgba(255, 255, 255, 0.95);
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--text-ghost) var(--bg);
  overflow-x: clip;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-ghost); border-radius: 3px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  line-height: 1.65;
}
h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== 18+ AGE GATE ===== */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-heavy);
  backdrop-filter: blur(20px);
  padding: 2rem;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.age-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.age-gate-card {
  max-width: 400px;
  width: 100%;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  animation: gate-in 0.4s ease;
}
@keyframes gate-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.age-gate-icon {
  font-size: 2rem;
  color: var(--warn);
  margin-bottom: 1rem;
}
.age-gate-title {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
}
.age-gate-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}
.age-gate-text strong { color: var(--text-soft); }
.age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.age-gate-btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem;
}
.age-gate-footer {
  font-size: 0.68rem;
  color: var(--text-hidden);
  letter-spacing: 0.5px;
}
body.gate-locked { overflow: hidden; }

/* ===== AMBIENT FOG CANVAS ===== */
#fog-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--surface-sidebar);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  padding: 2rem 1.2rem;
  overflow-y: auto;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.8rem;
  border: 2px solid var(--accent-tint-25);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.08);
}
.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar-name {
  font-size: 1.8rem;
  letter-spacing: 4px;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.sidebar-tagline {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* Sidebar navigation */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: auto;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.sidebar-nav a i {
  width: 18px;
  text-align: center;
  font-size: 0.85rem;
}
.sidebar-nav a:hover {
  color: var(--text);
  background: var(--accent-tint-6);
}
.sidebar-nav a.active {
  color: var(--accent-light);
  background: var(--accent-tint-10);
}

/* Sidebar socials */
.sidebar-socials {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.2rem 0 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.sidebar-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--text-ghost);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s;
  background: var(--accent-tint-4);
  border: 1px solid transparent;
}
.sidebar-socials a:hover {
  color: var(--text-bright);
  background: var(--accent-tint-10);
  border-color: var(--accent-tint-25);
  transform: translateY(-2px);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--accent-tint-4);
  color: var(--text-ghost);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
}
.theme-toggle:hover {
  color: var(--text-bright);
  background: var(--accent-tint-10);
  border-color: var(--accent-tint-25);
  transform: translateY(-2px);
}
.theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }
[data-theme="light"] .theme-toggle .fa-sun { display: inline; }

/* Sidebar footer */
.sidebar-footer {
  text-align: center;
  font-size: 0.62rem;
  color: var(--text-hidden);
  letter-spacing: 1px;
  padding-top: 0.5rem;
}

/* Sidebar toggle (works on desktop & mobile) */
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--surface-float);
  backdrop-filter: blur(12px);
  color: var(--text-soft);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s;
}
.sidebar-toggle:hover {
  background: var(--accent-tint-10);
  border-color: var(--accent-tint-25);
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--surface-overlay);
  opacity: 0;
  transition: opacity 0.35s;
}
.sidebar-overlay.active {
  opacity: 1;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-w);
  position: relative;
  z-index: 1;
  min-height: 100vh;
  transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop collapsed sidebar */
@media (min-width: 901px) {
  .sidebar-collapsed .sidebar {
    transform: translateX(-100%);
  }
  .sidebar-collapsed .main-content {
    margin-left: 0;
  }
}

/* ===== SECTIONS ===== */
section {
  position: relative;
  z-index: 1;
  padding: 5rem 3rem;
}
section + section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.section-title {
  text-align: center;
  font-size: 3rem;
  letter-spacing: 5px;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
}
.section-subtitle {
  text-align: center;
  font-family: 'Caveat', cursive;
  color: var(--text-dim);
  margin-bottom: 3rem;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
}

/* ===== HERO (minimal) ===== */
.hero-minimal {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  padding-top: 6rem;
}
.hero-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(200px);
  opacity: 0.06;
  pointer-events: none;
}
.hero-bg-glow--1 { background: var(--accent-mid); top: -15%; left: -10%; }
.hero-bg-glow--2 { background: var(--hero-glow-2); bottom: -15%; right: -10%; }

.hero-inner {
  max-width: 600px;
  padding: 2rem;
}
.hero-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  width: 200px;
  height: 260px;
}
.hero-holder {
  position: absolute;
  width: 440px;
  height: auto;
  left: 50%;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}
/* Body / torso — behind avatar */
.hero-holder--bg {
  top: 50%;
  transform: translate(-50%, -68%);
  z-index: 0;
}
/* Hands / claws — in front of avatar */
.hero-holder--fg {
  top: 50%;
  transform: translate(-50%, -70%);
  z-index: 2;
}
.hero-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-tint-15);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.12);
  z-index: 1;
  margin-top: 70px;
}
.hero-welcome {
  font-size: 3.2rem;
  letter-spacing: 6px;
  color: var(--text-bright);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-bio {
  max-width: 460px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-socials {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.hero-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  color: var(--text-ghost);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.25s;
  background: var(--accent-tint-4);
  border: 1px solid var(--accent-tint-25);
}
.hero-socials a i { font-size: 1rem; }
.hero-socials a:hover {
  color: var(--text-bright);
  background: var(--accent-tint-10);
  border-color: var(--accent-tint-25);
  transform: translateY(-2px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn--primary {
  background: var(--tier-btn-bg);
  color: var(--tier-btn-text);
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left 0.5s ease;
}
.btn--primary:hover::after {
  left: 120%;
}
.btn--primary:hover {
  background: var(--tier-btn-hover);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}
.btn--ghost:hover {
  border-color: var(--text-ghost);
  color: var(--text);
}
.btn--discord {
  width: 100%;
  justify-content: center;
  background: var(--discord);
  color: var(--btn-bright);
}
.btn--discord:hover {
  background: var(--discord-hover);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
}

/* ===== GALLERY ===== */
#gallery {
  background: var(--bg);
  overflow: hidden;
}
.gallery-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.gallery-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: gallery-slide 40s linear infinite;
  /* Promote to its own compositing layer so the browser can translate it
     without repainting 38 images per frame — biggest single perf win here */
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.gallery-track:hover { animation-play-state: paused; }
/* Pause when offscreen (JS adds this) or when reduced-motion is on */
.gallery-track.is-paused { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .gallery-track { animation: none; }
}
@keyframes gallery-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.gallery-slide-item {
  flex-shrink: 0;
  height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
  filter: brightness(0.88) saturate(0.9);
}
.gallery-slide-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.1);
  filter: brightness(1) saturate(1);
}
.gallery-slide-item img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--surface-lightbox);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  animation: lb-in 0.2s ease;
}
@keyframes lb-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== CHARACTERS ===== */
#characters { background: var(--bg-alt); }

/* ── Character filter bar ─────────────────────────────── */
.char-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  max-width: 1000px;
  margin: 0 auto 1rem;
}
.char-filter-divider {
  width: 1px;
  height: 1.4rem;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 0.2rem;
}
.char-filter-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
}
.char-filter-btn:hover {
  border-color: var(--accent-tint-25);
  color: var(--text-bright);
  background: var(--accent-tint-6);
}
.char-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.35);
}
.char-filter-count {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-left: 0.15rem;
}
.char-filter-btn.active .char-filter-count {
  opacity: 0.85;
}
.char-card--hidden {
  display: none;
}

/* ── Character search ─────────────────────────────────── */
.char-search-wrap {
  position: relative;
  max-width: 400px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
}
.char-search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-faint);
  font-size: 0.8rem;
  pointer-events: none;
  transition: color 0.2s;
}
.char-search-wrap:focus-within .char-search-icon {
  color: var(--accent-light);
}
.char-search {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-bright);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.char-search::placeholder { color: var(--text-faint); }
.char-search:focus {
  border-color: var(--accent-tint-35);
  box-shadow: 0 0 0 3px var(--accent-tint-10);
}
.char-search::-webkit-search-cancel-button {
  cursor: pointer;
  opacity: 0.5;
  filter: invert(50%) sepia(20%) saturate(500%) hue-rotate(240deg);
}
.char-result-count {
  text-align: center;
  font-size: 0.7rem;
  color: var(--accent-light);
  letter-spacing: 1px;
  margin: -0.2rem 0 1rem;
  font-weight: 600;
}

.char-clear-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: -0.4rem auto 1rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.char-clear-btn:hover {
  border-color: var(--accent-tint-25);
  color: var(--text-bright);
  background: var(--accent-tint-6);
}

.char-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  max-width: 1200px;
  margin: 0 auto;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.char-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.25s, box-shadow 0.3s;
}
.char-card:hover {
  border-color: var(--accent-tint-25);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.08);
}
.char-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: filter 0.3s;
  filter: brightness(0.85) saturate(0.9);
}
.char-card:hover img {
  filter: brightness(1) saturate(1);
}
.char-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-gradient-from), var(--surface-gradient-to));
  color: var(--accent-tint-25);
  font-size: 3rem;
}
.char-card:hover .char-placeholder {
  color: var(--accent);
}
.char-card-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 0.6rem 0.6rem;
  background: linear-gradient(transparent, var(--surface-name-grad));
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--text-bright);
  letter-spacing: 2px;
  text-align: center;
}

/* ===== CHARACTER MODAL ===== */
.char-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
}
.char-modal.active {
  display: flex;
}
.char-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--surface-modal);
  backdrop-filter: blur(8px);
  animation: char-fade-in 0.25s ease;
}
@keyframes char-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.char-modal-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 0%, var(--accent-tint-10), transparent 55%),
    radial-gradient(circle at 100% 100%, var(--accent-tint-7), transparent 55%),
    var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--accent-tint-10);
  animation: char-slide-in 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--text-ghost) transparent;
}
/* Accent top-line — signals "this is a premium card" without adding weight */
.char-modal-content::before {
  content: '';
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
  z-index: 5;
  pointer-events: none;
}
.char-modal-content::-webkit-scrollbar { width: 4px; }
.char-modal-content::-webkit-scrollbar-track { background: transparent; }
.char-modal-content::-webkit-scrollbar-thumb { background: var(--text-ghost); border-radius: 2px; }
@keyframes char-slide-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.char-modal-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 10;
  width: 40px;
  height: 40px;
  margin: 0.8rem 0.8rem 0 0;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--surface-close);
  backdrop-filter: blur(6px);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.char-modal-close:hover {
  background: var(--accent-tint-10);
  color: var(--text-bright);
  border-color: var(--accent-tint-25);
}
.char-modal-body {
  padding: 2rem 2.2rem 2.5rem;
}

/* Character profile layout (loaded content) */
.char-profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.char-profile-pic {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--accent-tint-35);
  box-shadow:
    0 4px 20px rgba(139, 92, 246, 0.18),
    0 0 0 4px var(--accent-tint-10),
    inset 0 0 20px rgba(0, 0, 0, 0.25);
  animation: char-pic-glow 3.5s ease-in-out infinite;
}
@keyframes char-pic-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(139, 92, 246, 0.18), 0 0 0 4px var(--accent-tint-10), inset 0 0 20px rgba(0, 0, 0, 0.25); }
  50%      { box-shadow: 0 6px 28px rgba(139, 92, 246, 0.35), 0 0 0 6px var(--accent-tint-15), inset 0 0 20px rgba(0, 0, 0, 0.25); }
}
.char-profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.char-profile-intro {
  min-width: 0;
}
.char-profile-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 4px;
  color: var(--text-bright);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.char-profile-title {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 0.7rem;
  text-transform: none;
  letter-spacing: 0;
}
.char-profile-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.char-tag {
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  background: var(--accent-tint-6);
  border: 1px solid var(--accent-tint-12);
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
/* Clickable tags inside the char modal — styled as buttons, hover-affordance */
button.char-tag--clickable {
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
button.char-tag--clickable:hover {
  background: var(--accent-tint-15);
  border-color: var(--accent-tint-35);
  transform: translateY(-1px);
}
button.char-tag--clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Stats grid */
.char-profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.char-stat {
  padding: 0.8rem 1rem;
  background:
    linear-gradient(135deg, var(--accent-tint-6), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.char-stat:hover {
  border-color: var(--accent-tint-35);
  transform: translateY(-2px);
}
.char-stat--wide {
  grid-column: 1 / -1;
}
.char-stat-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.62rem;
  color: var(--accent-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.char-stat-label i {
  color: var(--accent);
  font-size: 0.75rem;
  width: 14px;
  text-align: center;
  opacity: 0.9;
}
.char-stat-value {
  display: block;
  font-size: 0.88rem;
  color: var(--text-soft);
  font-weight: 500;
  line-height: 1.5;
}

/* Size compare button */
.size-compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-tint-25);
  background: var(--accent-tint-6);
  color: var(--accent-light);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.25s;
}
.size-compare-btn:hover {
  background: var(--accent-tint-15);
  border-color: var(--accent-tint-35);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

/* Full size comparison modal */
.full-size-modal-wrap {
  position: relative;
  z-index: 1;
  width: 95%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
}
.full-size-modal-content {
  width: 100%;
  max-height: 90vh;
  overflow-x: auto;
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  animation: char-slide-in 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--text-ghost) transparent;
}
.full-size-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 12;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--surface-close);
  backdrop-filter: blur(6px);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: none;
}
#full-size-modal.active .full-size-close {
  display: flex;
  align-items: center;
  justify-content: center;
}
.full-size-close:hover {
  background: var(--accent-tint-10);
  color: var(--text-bright);
  border-color: var(--accent-tint-25);
}
.full-size-modal-content::-webkit-scrollbar { width: 4px; height: 4px; }
.full-size-modal-content::-webkit-scrollbar-track { background: transparent; }
.full-size-modal-content::-webkit-scrollbar-thumb { background: var(--text-ghost); border-radius: 2px; }
.full-size-modal-body {
  padding: 1.5rem;
}
.full-size-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 4px;
  color: var(--text-bright);
  text-align: center;
  margin-bottom: 1.5rem;
}
.full-size-chart-area {
  padding: 1.5rem 1rem 0 2.5rem;
  min-width: max-content;
}
.full-size-chart-area .size-chart-figures {
  gap: 1.5rem;
}
.full-size-chart-area .size-chart-names {
  gap: 1.5rem;
}
.full-size-chart-area .size-figure-anon .size-person-img {
  opacity: 0.5;
}

/* Size comparison chart */
.size-chart {
  margin-bottom: 2rem;
}
.size-chart h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: var(--accent-light);
  margin-bottom: 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}
.size-chart-area {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem 0 2.5rem;
  overflow: hidden;
}
.size-chart-gridlines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.size-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  opacity: 0.5;
}
.size-grid-line-zero {
  height: 2px;
  opacity: 0.8;
  background: var(--border-light);
}
.size-grid-label {
  position: absolute;
  left: 6px;
  top: -14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--text-ghost);
}
.size-chart-figures-wrap {
  position: relative;
}
.size-chart-figures {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.size-chart-names {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--border-light);
}
.size-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  flex-shrink: 0;
  transition: transform 0.25s;
}
/* Clickable figures in the full-size chart — lift + glow on hover */
.size-figure--clickable { cursor: pointer; }
.size-figure--clickable:hover {
  transform: translateY(-4px) scale(1.05);
}
.size-figure--clickable:hover .size-height-label {
  color: var(--accent-light);
}
.size-figure--clickable:hover .size-person-img {
  filter: drop-shadow(0 0 12px var(--accent));
}
.size-height-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
  white-space: nowrap;
}
.size-figure-body {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 30px;
}
.size-name-label {
  width: 60px;
  flex-shrink: 0;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.size-person-img {
  height: 100%;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.size-figure-char .size-person-img {
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

/* Profile text sections */
.char-profile-section {
  margin-bottom: 1.8rem;
}
.char-profile-section h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 4px;
  color: var(--accent-light);
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.char-profile-section h3 i {
  color: var(--accent);
  font-size: 0.95rem;
  opacity: 0.9;
}
.char-profile-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.char-profile-section p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Character gallery */
.char-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
}
.char-gallery-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s;
}
.char-gallery-thumb:hover {
  border-color: var(--accent-tint-35);
  transform: scale(1.03);
}

/* ===== COMMISSIONS ===== */

/* Commission type tabs */
.comm-type-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.comm-type-tab {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.comm-type-tab:hover {
  border-color: var(--accent-tint-25);
  color: var(--text-soft);
}
.comm-type-tab.active {
  background: var(--accent-tint-15);
  border-color: var(--accent-mid);
  color: var(--accent-light);
}
.comm-type-tab i { font-size: 0.7rem; }

/* Type-specific notes */
.calc-type-notes-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.8rem 1rem;
  margin-top: 0.5rem;
  background: var(--accent-tint-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.calc-type-notes-inner i {
  color: var(--accent);
  margin-right: 0.3rem;
}

/* Price breakdown (Ref Sheet & TF Sequence) */
.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 1rem;
  margin-top: 0.5rem;
  background: var(--accent-tint-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
}
.calc-breakdown-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 0;
  color: var(--text-muted);
}
.calc-breakdown-line span:last-child {
  font-weight: 600;
  color: var(--accent-light);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.comm-status {
  text-align: center;
  margin-bottom: 2.5rem;
}
.comm-status .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.badge--open {
  background: var(--green-tint-bg);
  color: var(--green);
  border: 1px solid var(--green-tint-border);
}
.badge--open .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.badge--closed {
  background: var(--red-tint-bg);
  color: var(--red);
  border: 1px solid var(--red-tint-border);
}
.badge--closed .dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.comm-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.comm-character {
  flex: 0 0 440px;
  position: sticky;
  top: 2rem;
}

/* Wide layout for 16:9 commission types (refsheet, TF sequence) */
.comm-layout--wide {
  flex-direction: column;
  max-width: 1000px;
}
.comm-layout--wide .comm-character {
  flex: none;
  width: 100%;
  position: static;
}
.comm-layout--wide .comm-character-frame {
  aspect-ratio: 16 / 9;
  background: var(--bg-elevated);
}
.comm-layout--wide .comm-character-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comm-layout--wide .comm-panel {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.comm-character-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
}
.comm-character-frame img {
  width: 100%;
  display: block;
  transition: opacity 0.3s ease;
}
.comm-character-frame img.switching {
  opacity: 0;
}

/* Corner accents */
.comm-character-frame .corner-accent {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--accent-tint-25);
  border-style: solid;
  border-width: 0;
}
.corner-accent--tl { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.corner-accent--tr { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.corner-accent--bl { bottom: 8px; left: 8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corner-accent--br { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.style-label-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--surface-label);
  backdrop-filter: blur(6px);
  color: var(--accent-light);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Comm panel */
.comm-panel {
  flex: 1;
  min-width: 0;
  align-self: flex-start;
}
.comm-panel-title {
  font-size: 1.65rem;
  color: var(--text-bright);
  letter-spacing: 3px;
  margin-bottom: 0.25rem;
}
.comm-panel-desc {
  font-family: 'Caveat', cursive;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Style tabs */
.style-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.style-tab {
  flex: 1;
  padding: 0.75rem 0.5rem;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.73rem;
  font-family: inherit;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.25s;
  border: none;
  border-right: 1px solid var(--border);
  text-align: center;
}
.style-tab:last-child { border-right: none; }
.style-tab:hover {
  color: var(--accent-light);
  background: var(--accent-tint-4);
}
.style-tab.active {
  color: var(--text-bright);
  background: var(--accent-tint-10);
  box-shadow: inset 0 -2px 0 var(--accent-dark);
}

/* Price tiers */
.price-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.3rem;
  animation: fade-up 0.3s ease;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.tier-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  padding: 0.9rem 0.9rem 1rem;
  background: var(--bg-card-60);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
  cursor: pointer;
  text-align: center;
}
.tier-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-card-hover);
}
.tier-card.selected {
  border-color: var(--accent-tint-35);
  background: var(--accent-tint-7);
}
.tier-card.selected .tier-name { color: var(--text-bright); }
.tier-card.selected .tier-price { color: var(--accent-lighter); }
.tier-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: center;
  order: 2;
}
.tier-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 2px;
}
.tier-desc {
  font-size: 0.72rem;
  color: var(--text-faint);
  line-height: 1.35;
}
.tier-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.85rem;
  color: var(--accent);
  letter-spacing: 1px;
  order: 1;
}

.addons-title {
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.comm-order-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
}
.comm-cta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.comm-cta-row .btn {
  flex: 1 1 200px;
  justify-content: center;
  padding: 1rem;
  width: auto;
}
.comm-copy-btn.copied {
  background: var(--accent-tint-25);
  color: var(--text-bright);
  border-color: var(--accent-tint-25);
}

/* Calculator */
.calc-row { margin-bottom: 1rem; }
.calc-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.calc-label-note {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 0.65rem;
  color: var(--text-faint);
}
.calc-label small {
  color: var(--text-dim);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.calc-dual-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.calc-triple-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem 1.2rem;
}
.calc-triple-counters .calc-mini-counter { min-width: 0; }
.calc-mini-counter { min-width: 0; }
.calc-inline-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-left: 0.8rem;
  font-style: italic;
}
.calc-counter {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}
.calc-counter-btn {
  width: 38px;
  height: 36px;
  background: transparent;
  color: var(--accent-light);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.calc-counter-btn:hover { background: var(--accent-tint-10); }
.calc-counter-val {
  width: 46px;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--text-bright);
  letter-spacing: 1px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.25rem 0;
}
.calc-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
  align-items: start;
}
.calc-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 0.45rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  min-height: 100%;
}
.calc-toggle:hover { border-color: var(--border-hover); }
.calc-toggle:has(input:checked) {
  border-color: var(--accent-tint-25);
  background: var(--accent-tint-4);
}
.calc-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 2px solid var(--border-hover);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}
.calc-toggle input[type="checkbox"]:checked {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.calc-toggle input[type="checkbox"]:checked::after {
  content: '\2713';
  position: absolute;
  top: -1px;
  left: 1px;
  font-size: 0.65rem;
  color: var(--text-bright);
  font-weight: 700;
}
.calc-toggle-label {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
}
.calc-toggle-label small {
  color: var(--text-dim);
  font-weight: 400;
}
.calc-toggle-hint {
  display: block;
  font-size: 0.68rem;
  color: var(--text-faint);
  font-weight: 400;
  margin-top: 1px;
  line-height: 1.2;
}
.calc-slider-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-left: 2rem;
  margin-top: 0.3rem;
}
.calc-slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.calc-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.calc-slider-row input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}
.calc-slider-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: var(--accent);
  min-width: 30px;
  text-align: right;
}
.calc-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: var(--accent-tint-4);
  border: 1px solid var(--accent-tint-12);
  border-radius: var(--radius-md);
  margin-top: 1.2rem;
}
.calc-total-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}
.calc-total-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--accent);
  letter-spacing: 2px;
  transition: transform 0.2s;
}
.calc-total-price.calc-pop { animation: calc-bounce 0.25s ease; }
@keyframes calc-bounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.calc-note {
  font-size: 0.65rem;
  color: var(--border-hover);
  margin-top: 0.5rem;
  text-align: right;
  font-style: italic;
}
.payment-methods { margin-bottom: 2rem; }
.payment-list {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.payment-chip {
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  background: var(--accent-tint-6);
  border: 1px solid var(--accent-tint-12);
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== VISUAL PRICE SHEET ===== */
.price-sheet {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 1.4rem;
  background:
    radial-gradient(circle at top left, var(--accent-tint-7), transparent 55%),
    radial-gradient(circle at bottom right, var(--accent-tint-6), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  position: relative;
}
.psheet-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 4px;
  color: var(--accent-light);
  text-align: center;
  margin-bottom: 1.4rem;
  text-transform: uppercase;
  text-shadow: 0 2px 18px var(--accent-tint-35);
  position: relative;
  padding-bottom: 0.8rem;
}
.psheet-title i { margin-right: 0.6rem; color: var(--accent); }
.psheet-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.psheet-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1rem;
  align-items: stretch;
}

.psheet-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.psheet-col {
  position: relative;
  background: #12111a;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 2 / 5;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.psheet-col:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--accent-tint-25);
}
.psheet-col-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-color: #1a1025;
  transition: transform 0.6s ease;
}
.psheet-col:hover .psheet-col-img { transform: scale(1.05); }

/* Gradient over the image, fades into solid dark at the bottom so text reads clean */
.psheet-col-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(10, 8, 16, 0.15) 40%,
    rgba(10, 8, 16, 0.7) 58%,
    rgba(10, 8, 16, 0.92) 72%,
    rgba(10, 8, 16, 0.98) 100%
  );
  pointer-events: none;
}

/* Corner accents — reuse the same look the commission frame uses */
.psheet-col .corner-accent {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--accent-tint-35);
  border-style: solid;
  border-width: 0;
  z-index: 2;
  transition: border-color 0.3s;
}
.psheet-col:hover .corner-accent { border-color: var(--accent); }
.psheet-col .corner-accent--tl { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.psheet-col .corner-accent--tr { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.psheet-col .corner-accent--bl { bottom: 8px; left: 8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.psheet-col .corner-accent--br { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* Text block anchored to the bottom, sits over the gradient */
.psheet-col-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.8rem 0.9rem 1rem;
  z-index: 1;
}
.psheet-col-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.65rem;
  letter-spacing: 4px;
  text-align: center;
  color: #fff;
  padding-bottom: 0.55rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-tint-35);
  position: relative;
}
.psheet-col-label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-tint-35), transparent);
}
.psheet-col-tiers {
  display: flex;
  flex-direction: column;
}
.psheet-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s;
}
.psheet-tier:last-child { border-bottom: none; }
.psheet-col:hover .psheet-tier {
  border-bottom-color: var(--accent-tint-35);
}
.psheet-tier-name {
  font-size: 0.72rem;
  color: #e5dff0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.psheet-tier-name i {
  color: var(--accent-light);
  font-size: 0.7rem;
  opacity: 0.85;
}
.psheet-tier-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 0 12px var(--accent-tint-35);
}

/* Side panel (add-ons + payment) — auto-fit grid handles desktop column,
   tablet two-up, and phone stack without breakpoint juggling */
.psheet-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.8rem;
}
.psheet-side-card {
  background:
    linear-gradient(135deg, var(--accent-tint-6), transparent 50%),
    var(--bg-card-60);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}
.psheet-side-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.psheet-side-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 3px;
  color: var(--text);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  text-align: center;
}
.psheet-addon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px dashed rgba(122, 106, 182, 0.15);
}
.psheet-addon-row:last-child { border-bottom: none; }
.psheet-addon-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.psheet-addon-label i {
  color: var(--accent);
  font-size: 0.75rem;
  width: 14px;
  text-align: center;
  opacity: 0.85;
}
.psheet-addon-val {
  color: var(--accent-light);
  font-weight: 600;
  white-space: nowrap;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  font-size: 0.95rem;
}
.psheet-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.psheet-pay-chip {
  font-size: 0.75rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-tint-12);
  border: 1px solid var(--accent-tint-25);
  color: var(--accent-light);
  transition: background 0.25s, transform 0.25s;
  letter-spacing: 0.5px;
}
.psheet-pay-chip:hover {
  background: var(--accent-tint-25);
  transform: translateY(-2px);
}

/* Mini boxes (Will never / Struggle with) */
.psheet-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.1rem;
}
/* Long-text cards span both rows; short-text cards stack in the 3rd column */
.psheet-mini-card--wide {
  grid-row: span 2;
}
.psheet-mini-card {
  background: var(--bg-card-60);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  position: relative;
  overflow: hidden;
}
.psheet-mini-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.psheet-mini-card--red {
  border-color: var(--tos-red-border);
  background: var(--tos-red-bg);
}
.psheet-mini-card--red::before {
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.psheet-mini-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  text-align: center;
}
.psheet-mini-card--red .psheet-mini-title {
  color: var(--red);
  border-bottom-color: var(--tos-red-border);
}
.psheet-mini-card ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 0.9rem;
}
.psheet-mini-card--wide ul {
  grid-template-columns: 1fr;
}
.psheet-mini-card ul li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.25rem 0 0.25rem 1.1rem;
  position: relative;
}
.psheet-mini-card ul li::before {
  content: '\f111';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.35rem;
  top: 0.55rem;
  opacity: 0.7;
}
.psheet-mini-card--red ul li::before { color: var(--red); }

/* Tablet — 2×2 style columns, side panel drops below as a row */
@media (max-width: 1100px) {
  .psheet-grid { grid-template-columns: 1fr; }
  .psheet-cols { grid-template-columns: repeat(2, 1fr); }
  .psheet-col { aspect-ratio: 3 / 5; }
  .psheet-mini { grid-template-columns: repeat(2, 1fr); }
  .psheet-mini-card--wide { grid-row: auto; }
}

/* Phone — everything stacks single-column, cards squarer to cut scroll cost */
@media (max-width: 640px) {
  .price-sheet { padding: 1rem 0.8rem; }
  .psheet-title { font-size: 1.35rem; letter-spacing: 3px; }
  .psheet-cols { grid-template-columns: 1fr; gap: 0.9rem; }
  .psheet-col { aspect-ratio: 1 / 1; }
  .psheet-col-content { padding: 0.7rem 0.8rem 0.85rem; }
  .psheet-col-label { font-size: 1.4rem; padding-bottom: 0.4rem; margin-bottom: 0.4rem; }
  .psheet-tier { padding: 0.35rem 0.15rem; }
  .psheet-tier-name { font-size: 0.7rem; letter-spacing: 1.2px; }
  .psheet-tier-price { font-size: 1.3rem; }
  .psheet-mini { grid-template-columns: 1fr; }
  .psheet-mini-card ul { grid-template-columns: 1fr; }

  .psheet-side-card { padding: 0.8rem 0.9rem; }
  .psheet-side-title { margin-bottom: 0.55rem; padding-bottom: 0.4rem; font-size: 1rem; }
  .psheet-pay { gap: 0.35rem; }
  .psheet-pay-chip { padding: 0.25rem 0.7rem; font-size: 0.7rem; }
}

/* ===== SUBSCRIPTIONS ===== */
#subscriptions { background: var(--bg-alt); }

.sub-tiers {
  display: flex;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--text-ghost) transparent;
}
.sub-tiers::-webkit-scrollbar { height: 4px; }
.sub-tiers::-webkit-scrollbar-track { background: transparent; }
.sub-tiers::-webkit-scrollbar-thumb { background: var(--text-ghost); border-radius: 3px; }
.sub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 170px;
  flex: 1 1 0;
}
.sub-card:hover {
  border-color: var(--accent-tint-35);
  transform: translateY(-4px);
}
.sub-card--sold {
  opacity: 0.55;
  pointer-events: none;
}
.sub-card--sold:hover {
  transform: none;
  border-color: var(--border);
}
.sub-card-img {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-gradient-from), var(--surface-gradient-to));
  flex-shrink: 0;
}
.sub-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sub-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--text-bright);
  text-transform: uppercase;
  line-height: 1.2;
  padding: 0.8rem 1rem 0;
  white-space: nowrap;
  text-align: center;
}
.sub-card-price {
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: 1px;
  line-height: 1;
  padding: 0 1rem;
}
.sub-card-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0;
}
.sub-card-bloons {
  font-size: 0.8rem;
  color: var(--warn);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
}
.sub-card-bloons i {
  font-size: 0.7rem;
}
.sub-card-role,
.sub-card-desc {
  font-size: 0.8rem;
  color: var(--discord);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
  white-space: nowrap;
}
.sub-card-role i,
.sub-card-desc i {
  font-size: 0.75rem;
}
.sub-card-desc-list {
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 0.3rem 1rem 0 1.8rem;
  margin: 0;
  list-style: disc;
  text-align: left;
}
.sub-card-desc-list li {
  margin-bottom: 0.25rem;
  white-space: normal;
}

.sub-card-spacer {
  flex: 1;
}

.sub-card-btn {
  margin-top: auto;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  margin: 0.5rem 1rem 1rem;
}
.sub-card-sold {
  margin-top: auto;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--red);
  margin-left: 1rem;
  margin-right: 1rem;
  margin-bottom: 1rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--red-tint-border-light);
  border-radius: var(--radius);
  background: var(--red-tint-bg-light);
}
.sub-note {
  text-align: center;
  font-family: 'Caveat', cursive;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-top: 2rem;
}

.sub-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 2.5rem auto 0;
}
.sub-info-card {
  padding: 1.3rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s;
}
.sub-info-card:hover { border-color: var(--border-hover); }
.sub-info-icon {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.sub-info-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.sub-info-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.sub-info-text strong { color: var(--accent-light); }


.sub-info-text code {
  background: var(--accent-tint-10);
  color: var(--accent-light);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: monospace;
}
.sub-info-list {
  list-style: none;
  padding: 0;
}
.sub-info-list li {
  padding: 0.25rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1rem;
  line-height: 1.6;
}
.sub-info-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9rem;
}
.sub-info-list li strong { color: var(--accent-light); }
.sub-info-list li soft{ color: var(--text-dim); font-style: italic; }

/* ===== DISCORD SERVER ===== */
#discord { background: var(--bg); }

.discord-card {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--discord-tint-10);
  background: var(--surface-discord);
  transition: border-color 0.3s;
}
.discord-card:hover { border-color: var(--discord-tint-20); }
.discord-card-bg {
  height: 4px;
  background: linear-gradient(90deg, var(--discord), var(--accent-mid));
}
.discord-card-content { padding: 1.8rem; }
.discord-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.discord-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--discord-tint-8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.discord-icon i {
  font-size: 1.4rem;
  color: var(--discord);
}
.discord-server-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--text-bright);
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.discord-server-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.discord-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.discord-perk {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  background: var(--discord-tint-3);
  border: 1px solid var(--discord-tint-6);
  transition: border-color 0.25s;
}
.discord-perk:hover { border-color: var(--discord-tint-15); }
.discord-perk i {
  color: var(--discord);
  font-size: 0.8rem;
  opacity: 0.6;
  width: 16px;
  text-align: center;
}
.discord-perk span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== CONTACT ===== */
#contact { background: var(--bg); }

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}
.contact-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color 0.3s, transform 0.25s, background 0.3s;
  flex: 1 1 220px;
  max-width: 280px;
}
.contact-link-card:hover {
  transform: translateY(-3px);
  background: var(--surface-card-hover);
}
.contact-link-card i {
  font-size: 2rem;
  flex-shrink: 0;
}
.contact-link-card.discord i { color: var(--discord); }
.contact-link-card.discord:hover { border-color: var(--discord); }
.contact-link-card.twitter i { color: var(--text-bright); }
.contact-link-card.twitter:hover { border-color: var(--text-bright); }
.contact-link-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.contact-link-name {
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.contact-link-handle {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: 'Caveat', cursive;
  letter-spacing: 0.5px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.comm-layout.reveal.visible {
  transform: none; /* remove transform so position:sticky works inside */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .comm-layout { flex-direction: column; }
  .comm-panel {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }
  .comm-character {
    flex: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: static;
  }
  .comm-layout--wide .comm-character {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  /* Sidebar becomes off-canvas drawer */
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.5);
  }
  .sidebar-overlay.active {
    display: block;
  }
  .main-content {
    margin-left: 0;
  }
  section {
    padding: 4rem 1.5rem;
  }
  .section-title { font-size: 2.5rem; }
  .hero-welcome { font-size: 2.5rem; letter-spacing: 4px; }
  .gallery-slide-item { height: 220px; }
  .char-modal-content {
    width: 95%;
    max-height: 90vh;
  }
  .char-modal-body {
    padding: 1.5rem;
  }
  .char-profile-header {
    flex-direction: column;
    text-align: center;
  }
  .char-profile-tags {
    justify-content: center;
  }
  .char-profile-stats {
    grid-template-columns: 1fr;
  }
  .characters-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent-tint-25);
  background: var(--surface-float);
  backdrop-filter: blur(8px);
  color: var(--accent-light);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--accent-tint-15);
  border-color: var(--accent-tint-35);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

@media (max-width: 550px) {
  section { padding: 3rem 1rem; }
  .section-title { font-size: 2rem; }
  .hero-welcome { font-size: 1.8rem; letter-spacing: 2px; }
  .hero-minimal { min-height: 50vh; padding-top: 4rem; }
  .hero-holder { width: 220px; }
  .hero-avatar-wrap { width: 100px; height: 150px; }
  .hero-avatar { width: 80px; height: 80px; margin-top: 50px; }
  .hero-socials { gap: 0.5rem; margin-top: 1rem; }
  .hero-socials a {
    padding: 0.55rem 0.9rem;
    font-size: 0.7rem;
    letter-spacing: 0.6px;
    gap: 0.4rem;
  }
  .hero-socials a i { font-size: 0.85rem; }
  .characters-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  .characters-grid .char-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc(50% - 0.4rem);
  }
  .char-profile-name {
    font-size: 1.6rem;
  }
  .char-profile-pic {
    width: 90px;
    height: 90px;
  }
  .gallery-slide-item { height: 160px; }
  /* Drop the feathered mask on mobile — costly on weaker GPUs */
  .gallery-marquee { mask-image: none; -webkit-mask-image: none; }
  /* Smaller static filter — cheaper to composite */
  .gallery-slide-item { filter: none; }
  /* Style tabs: drop the connected-pill look on phones — break to a clean 2-col grid */
  .style-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    border: none;
    border-radius: 0;
    overflow: visible;
  }
  .style-tab {
    border: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .contact-links { flex-direction: column; align-items: center; }
  .contact-link-card { max-width: 100%; }
  .sub-tiers { flex-wrap: wrap; }
  .sub-card { min-width: 140px; flex: 1 1 calc(50% - 0.5rem); }
  .discord-perks { grid-template-columns: 1fr; }
  .discord-header { flex-direction: column; text-align: center; }

  /* Size comparison — pack tighter on phones so full chart fits more on-screen */
  .size-chart-figures { gap: 1.5rem; }
  .size-chart-names { gap: 1.5rem; }
  .size-figure { width: 44px; }
  .size-name-label { width: 44px; font-size: 0.5rem; letter-spacing: 0.5px; }
  .size-height-label { font-size: 0.7rem; }
  .size-chart-area { padding: 1.2rem 0.8rem 0 2rem; }
  .full-size-chart-area .size-chart-figures { gap: 1rem; }
  .full-size-chart-area .size-chart-names { gap: 1rem; }
}
@media (max-height: 550px) and (max-width: 900px) {
  /* Landscape phone — tight height, more horizontal room */
  section { padding: 1.5rem 1rem; }
  .section-title { font-size: 1.8rem; }

  /* Hero: switch to side-by-side layout to save vertical space */
  .hero-minimal {
    min-height: auto;
    padding: 4rem 1.5rem 1.2rem;
  }
  /* Hide the heavy decorative character cutouts */
  .hero-holder { display: none; }
  .hero-inner {
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 1rem;
    align-items: start;
    text-align: left;
    padding: 0;
    max-width: 540px;
  }
  .hero-avatar-wrap {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: center;
    width: 70px;
    height: 70px;
    margin: 0;
  }
  .hero-avatar { width: 70px; height: 70px; margin-top: 0; }
  .hero-welcome {
    grid-column: 2; grid-row: 1;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.2rem;
  }
  .hero-bio {
    grid-column: 2; grid-row: 2;
    font-size: 0.8rem;
    margin: 0 0 0.5rem;
  }
  .hero-socials {
    grid-column: 2; grid-row: 3;
    justify-content: flex-start;
    margin-top: 0.6rem;
    gap: 0.4rem;
  }
  .hero-socials a { padding: 0.45rem 0.8rem; font-size: 0.7rem; gap: 0.4rem; }
  .hero-socials a i { font-size: 0.85rem; }

  /* Gallery */
  .gallery-slide-item { height: 130px; }

  /* Characters */
  .characters-grid { grid-template-columns: repeat(5, 1fr); gap: 0.6rem; }
  .char-profile-name { font-size: 1.5rem; }
  .char-profile-pic { width: 80px; height: 80px; }

  /* Price guide */
  .pg-cards { grid-template-columns: repeat(2, 1fr); }
  .pg-addons { flex: none; width: 100%; }
  .pg-inner { flex-direction: column; }

  /* Subscriptions */
  .sub-tiers { flex-wrap: wrap; }
  .sub-card { min-width: 140px; flex: 1 1 calc(50% - 1rem); }

  /* Discord */
  .discord-perks { grid-template-columns: 1fr; }
  .discord-header { flex-direction: column; text-align: center; }

  /* Back to top — smaller corner offset on small screens */
  .back-to-top { bottom: 0.75rem; right: 0.75rem; }
}

/* ===== REVIEWS ===== */
#reviews { background: var(--bg); }

.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 0;
}

.review-stars {
  display: flex;
  gap: 0.2rem;
  font-size: 0.85rem;
  color: var(--warn);
}

.review-quote {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.75;
  flex: 1;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent-tint-25);
}
.review-quote::before {
  content: '\201C';
  font-family: 'Caveat', cursive;
  font-size: 2.4rem;
  color: var(--accent);
  opacity: 0.45;
  position: absolute;
  top: -0.25rem;
  left: -0.6rem;
  line-height: 1;
  pointer-events: none;
}

.review-attrib {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.2rem;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-gradient-from), var(--surface-gradient-to));
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 1px;
}
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-handle {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-bright);
  line-height: 1.3;
}
.review-platform {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.1rem;
}
.review-platform--twitter { color: #1d9bf0; }
.review-platform--bluesky { color: #0085ff; }

/* ===== REDUCED MOTION =====
   Honor prefers-reduced-motion: kill ambient animations, pause the marquee,
   collapse transitions, and disable smooth scroll. JS handles the fog canvas. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto !important; }
  .gallery-track { animation: none !important; }
}
.review-platform--discord { color: var(--discord); }