/* ═══════════════════════════════════════════════════════════
   DruziCore Website — Ocean-Wave Style
   Palette extracted from server avatar & banner:
   Teal → Navy → Mint → Gold rays → Coral/rust accents
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Ocean palette ───────────────────────────────── */
  --teal-500:  #4ecdc4;
  --teal-400:  #6eddd6;
  --teal-600:  #3aafa9;
  --teal-700:  #2b8a8a;
  --teal-800:  #1a6b6b;

  --navy-900:  #0a1018;
  --navy-800:  #0b1520;
  --navy-700:  #0f1e2e;
  --navy-600:  #14293d;
  --navy-500:  #1a3c50;
  --navy-400:  #213e55;
  --navy-300:  #2a5270;

  --mint-100:  #e0f5f0;
  --mint-200:  #c0e8df;
  --mint-300:  #a0d8cf;

  --gold-500:  #d4a843;
  --gold-400:  #e8c54a;
  --gold-300:  #f0d86e;

  --coral-600: #6b4040;
  --coral-500: #7a4f50;
  --coral-400: #9b6565;

  --green-500: #22c55e;
  --red-500:   #ef4444;
  --red-400:   #f87171;
  --white:     #ffffff;

  /* ── Semantic tokens ─────────────────────────────── */
  --bg:           var(--navy-700);
  --bg-deep:      var(--navy-800);
  --bg-card:      rgba(20, 41, 61, 0.7);
  --bg-card-solid:var(--navy-600);
  --bg-card-hover:var(--navy-500);
  --text:         var(--mint-100);
  --text-muted:   rgba(160, 216, 207, 0.55);
  --accent:       var(--teal-500);
  --accent-hover: var(--teal-400);
  --border:       rgba(78, 205, 196, 0.12);
  --glow:         rgba(78, 205, 196, 0.15);

  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --transition: 0.25s ease;

  --font-main:    "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font-main);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;          /* progressive: won't create scroll-context */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  max-width: 100%;
}
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;          /* progressive: clip + visible keeps sticky */
  width: 100%;
  max-width: 100%;
  position: relative;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }
input, select { font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ── Film Grain Overlay ────────────────────────────────────── */
.grain {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 16, 24, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-width: 100%;
}
.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  overflow: hidden;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.2rem;
  color: var(--white);
}
.nav__logo-img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(78, 205, 196, 0.3);
  flex-shrink: 0;
}
.nav__links { display: flex; gap: 28px; }
.nav__link {
  color: var(--mint-300); font-weight: 500; font-size: 0.88rem;
  transition: color var(--transition); position: relative;
}
.nav__link::after {
  content: ""; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--teal-500); border-radius: 1px;
  transform: scaleX(0); transition: transform var(--transition);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__auth { display: flex; align-items: center; gap: 12px; }
.nav__user { display: flex; align-items: center; gap: 8px; }
.nav__avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--teal-700); }
.nav__username { font-weight: 500; font-size: 0.9rem; color: var(--mint-200); }

/* ── Burger button (hidden on desktop) ─────────────────── */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 6px;
  background: transparent;
  border: 1px solid rgba(78,205,196,0.2);
  border-radius: 8px;
  cursor: pointer;
  z-index: 110;
  flex-shrink: 0;
}
.nav__burger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--teal-400);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ────────────────────────────────────────── */
.mob-menu {
  position: fixed; inset: 0;
  z-index: 99;
  pointer-events: none;
  visibility: hidden;
}
.mob-menu.open {
  pointer-events: auto;
  visibility: visible;
}
.mob-menu__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mob-menu.open .mob-menu__backdrop { opacity: 1; }
.mob-menu__panel {
  position: absolute;
  top: 64px; right: 0;
  width: min(320px, 85vw);
  height: calc(100% - 64px);
  background: rgba(10,16,24,0.96);
  backdrop-filter: blur(24px);
  border-left: 1px solid var(--border);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 24px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mob-menu.open .mob-menu__panel { transform: translateX(0); }
.mob-menu__links {
  display: flex; flex-direction: column; gap: 4px;
}
.mob-menu__link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  color: var(--mint-300);
  font-weight: 600; font-size: 1rem;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}
.mob-menu__link:hover,
.mob-menu__link:active {
  background: rgba(78,205,196,0.08);
  color: var(--white);
}
.mob-menu__auth {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.mob-menu__auth .btn { width: 100%; justify-content: center; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: none; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  color: var(--navy-900);
  box-shadow: 0 4px 20px rgba(78, 205, 196, 0.25);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  box-shadow: 0 6px 30px rgba(78, 205, 196, 0.4);
  transform: translateY(-2px); color: var(--navy-900);
}
.btn--discord { background: #5865F2; color: var(--white); }
.btn--discord:hover { background: #4752c4; color: var(--white); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  border: 2px solid rgba(78, 205, 196, 0.4);
  color: var(--teal-400);
}
.btn--outline:hover {
  background: rgba(78, 205, 196, 0.1);
  border-color: var(--teal-500);
  color: var(--white);
}
.btn--sm { padding: 6px 14px; font-size: 0.8rem; }
.btn--lg { padding: 14px 30px; font-size: 0.95rem; letter-spacing: 0.02em; }
.btn--danger { background: var(--red-500); color: var(--white); }
.btn--danger:hover { background: var(--red-400); }
.btn--success { background: var(--green-500); color: var(--white); }

/* ═══════════════════════════════════════════════════════════
   HERO — Avatar + Banner style
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px 90px;
  width: 100%;
  background: linear-gradient(180deg,
    #3aafa9 0%,
    #2b8a8a 20%,
    #1a6b6b 35%,
    #1a3c50 55%,
    #14293d 75%,
    #0f1e2e 100%
  );
}

/* ── Banner background overlay ─────────────────── */
.hero__banner {
  position: absolute; inset: 0; z-index: 0;
  background: url('/img/banner.jpg') center top / cover no-repeat;
  opacity: 0.18;
  filter: blur(2px) saturate(1.2);
  pointer-events: none;
}

/* ── Layered Waves (banner style) ───────────────────────── */
.hero__waves {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero__wave {
  position: absolute; bottom: 0;
  left: -2px; width: calc(100% + 4px); height: 60%;
}
.hero__wave--1 { z-index: 1; opacity: 0.6; animation: waveDrift 12s ease-in-out infinite; }
.hero__wave--2 { z-index: 2; opacity: 0.7; animation: waveDrift 10s ease-in-out infinite reverse; }
.hero__wave--3 { z-index: 3; opacity: 0.8; animation: waveDrift 14s ease-in-out infinite; }
.hero__wave--4 { z-index: 4; opacity: 0.9; animation: waveDrift 11s ease-in-out infinite reverse; }
.hero__wave--5 { z-index: 5; height: 30%; opacity: 0.5; animation: waveDrift 16s ease-in-out infinite; }

@keyframes waveDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Glow Circle (moon from avatar) ────────────────────── */
.hero__glow {
  position: absolute;
  top: 8%; left: 50%; transform: translateX(-50%);
  width: clamp(300px, 45vw, 600px);
  height: clamp(300px, 45vw, 600px);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(208, 238, 232, 0.30) 0%,
    rgba(160, 216, 207, 0.12) 35%,
    rgba(78, 205, 196, 0.04) 60%,
    transparent 100%
  );
  z-index: 2;
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.75; transform: translateX(-50%) scale(1.08); }
}

/* ── Golden Rays ───────────────────────────────────────── */
.hero__rays {
  position: absolute;
  top: 6%; left: 50%; transform: translateX(-50%);
  width: clamp(340px, 48vw, 640px);
  height: clamp(340px, 48vw, 640px);
  z-index: 2;
}
.hero__rays span {
  position: absolute;
  top: 0; left: 50%;
  width: 3px; height: 38px;
  background: var(--gold-400);
  border-radius: 2px;
  transform-origin: bottom center;
  opacity: 0.7;
  animation: rayFlicker 3s ease-in-out infinite;
}
.hero__rays span:nth-child(1)  { transform: translateX(-50%) rotate(-50deg) translateY(-130px); animation-delay: 0.0s; }
.hero__rays span:nth-child(2)  { transform: translateX(-50%) rotate(-38deg) translateY(-136px); animation-delay: 0.3s; }
.hero__rays span:nth-child(3)  { transform: translateX(-50%) rotate(-26deg) translateY(-140px); animation-delay: 0.1s; }
.hero__rays span:nth-child(4)  { transform: translateX(-50%) rotate(-14deg) translateY(-144px); animation-delay: 0.5s; }
.hero__rays span:nth-child(5)  { transform: translateX(-50%) rotate(-2deg) translateY(-148px); animation-delay: 0.2s; }
.hero__rays span:nth-child(6)  { transform: translateX(-50%) rotate(10deg) translateY(-148px); animation-delay: 0.4s; }
.hero__rays span:nth-child(7)  { transform: translateX(-50%) rotate(22deg) translateY(-144px); animation-delay: 0.6s; }
.hero__rays span:nth-child(8)  { transform: translateX(-50%) rotate(34deg) translateY(-140px); animation-delay: 0.15s; }
.hero__rays span:nth-child(9)  { transform: translateX(-50%) rotate(46deg) translateY(-136px); animation-delay: 0.45s; }
.hero__rays span:nth-child(10) { transform: translateX(-50%) rotate(58deg) translateY(-130px); animation-delay: 0.35s; }

@keyframes rayFlicker {
  0%, 100% { opacity: 0.5; height: 34px; }
  50% { opacity: 0.85; height: 44px; }
}

/* ── Silhouettes (3 friends) ───────────────────────────── */
.hero__silhouettes {
  position: absolute;
  bottom: 14%; left: 50%; transform: translateX(-50%);
  width: clamp(340px, 45vw, 580px);
  z-index: 0;
  opacity: 0.45;
  filter: blur(2.5px) drop-shadow(0 0 60px rgba(10, 16, 24, 0.7));
}
.hero__sil-img {
  width: 100%; height: auto;
  pointer-events: none;
  user-select: none;
}

/* ── Hero Content ──────────────────────────────────────── */
.hero__content { position: relative; z-index: 10; margin-bottom: 20px; }

/* ── Hero Avatar ───────────────────────────────── */
.hero__avatar-wrap {
  position: relative;
  width: clamp(100px, 14vw, 150px);
  height: clamp(100px, 14vw, 150px);
  margin: 16px auto 20px;
}
.hero__avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(78, 205, 196, 0.4);
  box-shadow:
    0 0 30px rgba(78, 205, 196, 0.25),
    0 0 60px rgba(78, 205, 196, 0.1);
  animation: avatarFloat 6s ease-in-out infinite;
}
.hero__avatar-ring {
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold-400);
  border-right-color: var(--teal-400);
  animation: ringRotate 8s linear infinite, avatarFloat 6s ease-in-out infinite;
}
.hero__avatar-wrap::before {
  content: '';
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: rgba(78, 205, 196, 0.3);
  border-left-color: rgba(212, 175, 55, 0.2);
  animation: ringRotateReverse 12s linear infinite, avatarFloat 6s ease-in-out infinite;
}
.hero__avatar-wrap::after {
  content: '';
  position: absolute; inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(78, 205, 196, 0.15);
  animation: ringRotate 20s linear infinite, avatarFloat 6s ease-in-out infinite;
}
@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes ringRotate {
  to { transform: rotate(360deg); }
}
@keyframes ringRotateReverse {
  to { transform: rotate(-360deg); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900; line-height: 1.05;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(10, 16, 24, 0.5);
}
.hero__brand {
  background: linear-gradient(135deg, var(--mint-100), var(--teal-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__core {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  font-size: 1.1rem; color: var(--mint-200);
  max-width: 520px; margin: 0 auto 28px;
  text-shadow: 0 2px 10px rgba(10, 16, 24, 0.5);
  opacity: 0.85;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Hero Stats ────────────────────────────────────────── */
.hero__stats {
  position: relative; z-index: 10;
  display: flex; gap: 20px; margin-top: 48px;
  flex-wrap: wrap; justify-content: center;
}

.stat-card {
  position: relative;
  background: rgba(15, 30, 46, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 30px; min-width: 150px;
  text-align: center;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: rgba(78, 205, 196, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(78, 205, 196, 0.1);
}
.stat-card__value {
  display: block; font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 700; color: var(--white);
}
.stat-card__label {
  font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; letter-spacing: 0.03em;
}
.stat-card__dot {
  position: absolute; top: 10px; right: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.stat-card__dot--green { background: var(--green-500); }
.stat-card__dot--teal  { background: var(--teal-500); }
.stat-card__dot--mint  { background: var(--mint-300); }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

/* ── Wave Section Separators (layered) ──────────────────── */
.wave-sep {
  position: relative;
  z-index: 10;
  margin-top: 0;
  margin-bottom: -3px;
  height: 70px;
  overflow: hidden;
  width: 100%;
}
.wave-sep__layer {
  position: absolute;
  left: -1px; right: -1px; bottom: 0;
  width: calc(100% + 2px);
  height: auto;
  display: block;
}
.wave-sep__layer--1 { opacity: 0.5; }
.wave-sep__layer--2 { opacity: 0.7; }
.wave-sep__layer--3 { opacity: 1; }
.wave-sep--alt .wave-sep__layer--1 { transform: scaleX(-1); }
.wave-sep--flip .wave-sep__layer--2 { transform: scaleX(-1); }
.wave-sep--footer { margin-top: 0; height: 40px; }

/* legacy compat */
.wave-divider { position: relative; z-index: 10; margin-top: -2px; overflow: hidden; }
.wave-divider svg { display: block; width: 100%; height: auto; }
.wave-divider--flip { transform: scaleX(-1); }
.wave-divider--footer { margin-top: 0; }
.wave-divider--hero { margin-top: -30px; }

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.section {
  padding: 36px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}
/* Every section after another section overlaps upward to close sub-pixel gaps */
.section + .section {
  margin-top: -3px;
  position: relative;
  z-index: 1;
}
.section--deep { background: var(--bg-deep); padding-top: 16px; }

/* subtle gradient orb behind each section for depth */
.section::before {
  content: '';
  position: absolute;
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.04) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.section--deep::before {
  background: radial-gradient(circle, rgba(78, 205, 196, 0.03) 0%, transparent 70%);
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 700;
  text-align: center; margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--white);
  position: relative;
}

/* gradient underline for section titles */
.section__title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-500), transparent);
  opacity: 0.7;
}
.section__icon { flex-shrink: 0; }
.section__sub {
  text-align: center; color: var(--text-muted); margin-bottom: 32px; margin-top: 12px; font-size: 0.95rem;
}

/* ── Stats Grid ────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px;
}
.stats-box {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color var(--transition);
}
.stats-box:hover { border-color: rgba(78, 205, 196, 0.25); }
.stats-box__header {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; margin-bottom: 16px; font-size: 0.95rem; color: var(--mint-200);
}
.stats-box__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-500);
  animation: pulse 2s ease-in-out infinite;
}
.stats-box__dot--teal { background: var(--teal-500); }

.events-list { display: flex; flex-direction: column; gap: 6px; }
.event-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: rgba(26, 60, 80, 0.3);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--teal-700);
  transition: background var(--transition);
}
.event-row:hover { background: rgba(26, 60, 80, 0.5); }
.event-row__type { font-weight: 500; font-size: 0.88rem; }
.event-row__count {
  font-family: var(--font-display); font-weight: 700; color: var(--teal-400);
}

.guild-info { display: flex; flex-direction: column; gap: 0; }
.guild-info__row {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px solid rgba(78, 205, 196, 0.06);
  font-size: 0.9rem;
}
.guild-info__row:last-child { border-bottom: 0; }
.guild-info__row strong { color: var(--teal-400); }

/* ══════════════════════════════════════════════════════════
   GAME HUB v3 — "Arena" design
   ══════════════════════════════════════════════════════════ */

/* ── Header row ───────────────────────────────────────── */
.gh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.gh-header__left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.gh-header__icon-wrap {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(78,205,196,0.12) 0%, rgba(78,205,196,0.04) 100%);
  border: 1px solid rgba(78,205,196,0.15);
  flex-shrink: 0;
}
.gh-header__icon-wrap svg {
  width: 24px; height: 24px; color: var(--teal-400);
}
.gh-header__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gh-beta-badge {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-400);
  border: 1.5px solid var(--teal-400);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1;
  vertical-align: middle;
  opacity: 0.85;
}
.gh-header__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Slot bar ─────────────────────────────────────────── */
.gh-slots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gh-slots__bar {
  width: 100px;
  height: 6px;
  background: rgba(26,60,80,0.6);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(78,205,196,0.08);
}
.gh-slots__fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-400));
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}
.gh-slots__text {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.gh-slots__num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal-400);
  font-size: 0.92rem;
}

/* ── Toolbar (create row) ─────────────────────────────── */
.gh-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 24px;
  background: rgba(20,41,61,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(78,205,196,0.08);
  border-radius: 12px;
  flex-wrap: wrap;
}
.gh-toolbar__input {
  flex: 1;
  min-width: 140px;
  padding: 8px 14px;
  background: rgba(15,30,46,0.6);
  border: 1px solid rgba(78,205,196,0.08);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
}
.gh-toolbar__input::placeholder { color: var(--text-muted); }
.gh-toolbar__input:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 2px rgba(78,205,196,0.08);
}
.gh-toolbar__sep {
  width: 1px;
  height: 24px;
  background: rgba(78,205,196,0.1);
  flex-shrink: 0;
}
.gh-toolbar__select {
  padding: 8px 28px 8px 10px;
  background: rgba(15,30,46,0.6);
  border: 1px solid rgba(78,205,196,0.08);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%236eddd6' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  transition: all var(--transition);
}
.gh-toolbar__select:focus {
  border-color: var(--teal-500);
}
.gh-toolbar__select--sm {
  min-width: 60px;
  padding-left: 12px;
}
.gh-toolbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--teal-500);
  color: var(--navy-900);
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.gh-toolbar__btn:hover {
  background: var(--teal-400);
  box-shadow: 0 2px 16px rgba(78,205,196,0.3);
  transform: translateY(-1px);
}
.gh-toolbar__btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}
.gh-toolbar__input:disabled,
.gh-toolbar__select:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.gh-toolbar__btn:active { transform: translateY(0); }

/* ── Maintenance banner ───────────────────────────────── */
.gh-maintenance {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(240,160,48,0.08);
  border: 1px solid rgba(240,160,48,0.25);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 18px;
  color: #f0c060;
  font-size: .92rem;
  line-height: 1.45;
}

/* ── Tabs (underline style) ───────────────────────────── */
.gh-tabs {
  position: relative;
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(78,205,196,0.06);
}
.gh-tabs__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}
.gh-tabs__btn:hover { color: var(--mint-200); }
.gh-tabs__btn--active {
  color: var(--teal-400);
}
.gh-tabs__btn--active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-400));
  border-radius: 1px;
}
.gh-tabs__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 0.65rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: rgba(78,205,196,0.1);
  color: var(--teal-500);
}
.gh-tabs__count--live {
  background: rgba(243,156,18,0.12);
  color: #f0b429;
}

/* ── Room list (vertical stack) ───────────────────────── */
.gh-rooms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Room card (horizontal) ───────────────────────────── */
.room-card {
  position: relative;
  display: grid;
  grid-template-columns: 4px 1fr auto;
  background: rgba(20,41,61,0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(78,205,196,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
}
.room-card:hover {
  background: rgba(20,41,61,0.65);
  border-color: rgba(78,205,196,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  transform: translateX(3px);
}

/* Left accent stripe */
.room-card__stripe {
  width: 4px;
  border-radius: 4px 0 0 4px;
}
.room-card__stripe--waiting {
  background: linear-gradient(180deg, var(--teal-400), var(--teal-600));
}
.room-card__stripe--playing {
  background: linear-gradient(180deg, #f0b429, #d4943a);
  animation: stripe-glow 2s infinite;
}
.room-card__stripe--finished {
  background: rgba(127,140,141,0.3);
}
@keyframes stripe-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Middle content */
.room-card__body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-width: 0;
  flex-wrap: wrap;
}
.room-card__info {
  flex: 1;
  min-width: 0;
}
.room-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.room-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.room-card__badge {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.room-card__badge--waiting {
  background: rgba(78,205,196,0.1);
  color: var(--teal-400);
}
.room-card__badge--playing {
  background: rgba(243,156,18,0.1);
  color: #f0b429;
}
.room-card__badge--finished {
  background: rgba(127,140,141,0.1);
  color: var(--text-muted);
}
.room-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.room-card__meta-game {
  font-weight: 600;
  color: var(--mint-300);
}
.room-card__meta-players {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.room-card__meta-players svg {
  width: 13px; height: 13px; color: var(--teal-500); opacity: 0.7;
}
.room-card__fill {
  width: 48px; height: 4px;
  background: rgba(26,60,80,0.5);
  border-radius: 2px;
  overflow: hidden;
}
.room-card__fill-inner {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-400));
  transition: width 0.4s;
}
.room-card__fill-inner--full {
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
}

/* Avatar stack */
.room-card__avatars {
  display: flex;
  flex-shrink: 0;
}
.room-card__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(20,41,61,0.8);
  margin-left: -8px;
  object-fit: cover;
  background: rgba(26,60,80,0.5);
}
.room-card__avatar:first-child { margin-left: 0; }
.room-card__avatar--bot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  line-height: 1;
  color: var(--white);
}
.room-card__avatar--overflow {
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--teal-400);
  background: rgba(78,205,196,0.1);
  border-color: rgba(78,205,196,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Right actions */
.room-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px 14px 0;
  flex-shrink: 0;
}
.room-card--hidden { display: none !important; }

/* ── Empty state ──────────────────────────────────────── */
.gh-empty {
  text-align: center;
  padding: 56px 20px;
}
.gh-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(78,205,196,0.04);
  border: 1px dashed rgba(78,205,196,0.12);
  margin-bottom: 14px;
}
.gh-empty__icon svg {
  width: 30px; height: 30px;
  color: rgba(78,205,196,0.2);
}
.gh-empty__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--mint-200);
  margin-bottom: 4px;
}
.gh-empty__sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Legacy .input (keep for other pages) ─────────────── */
.input {
  padding: 10px 16px;
  background: rgba(26, 60, 80, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.9rem;
  outline: none; transition: all var(--transition);
}
.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: var(--teal-500); background: rgba(26, 60, 80, 0.5); }
.input--select { appearance: none; min-width: 130px; }

/* ═══════════════════════════════════════════════════════════
   MONOPOLY — Druzi Estates (Premium Square Board)
   ═══════════════════════════════════════════════════════════ */

/* ── Main Layout — fits viewport ───────────────────────────── */
.mono-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  height: calc(100vh - 80px);
  max-height: 920px;
  overflow: hidden;
}
@media (max-width: 960px) {
  .mono-wrapper {
    grid-template-columns: 1fr;
    height: auto; max-height: none;
  }
}

/* ── Square Board Container ──────────────────────────────── */
.mono-board {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Board Grid ──────────────────────────────────────────── */
.mb-grid {
  display: grid;
  grid-template-columns: 2.4fr repeat(9, 1fr) 2.4fr;
  grid-template-rows: 2.4fr repeat(9, 1fr) 2.4fr;
  gap: 1px;
  aspect-ratio: 1;
  width: min(100%, calc(100vh - 100px));
  max-width: 940px;
  background: rgba(10, 14, 22, 0.98);
  border: 2px solid rgba(40, 50, 65, 0.6);
  border-radius: 4px;
  padding: 0;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition: max-width 0.4s ease;
  position: relative;
}

/* ── Large board for 6-10 players ──────────────────────── */
.mb-grid--large {
  max-width: 1080px;
  gap: 1px;
}

/* ── Cell ─────────────────────────────────────────────────── */
.mb-cell {
  position: relative;
  display: flex;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 0;
  border-radius: 0;
  background: rgba(16, 22, 32, 0.98);
  border: none;
  border-right: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* flex direction per side — color bar always faces center */
.mb-cell--top,
.mb-cell--bottom { flex-direction: column; }
.mb-cell--left   { flex-direction: row; }
.mb-cell--right  { flex-direction: row; }

.mb-cell:hover {
  background: rgba(22, 30, 44, 0.98);
  z-index: 4;
  box-shadow: inset 0 0 12px rgba(78, 205, 196, 0.06);
}
.mb-cell--active {
  box-shadow: inset 0 0 16px rgba(78, 205, 196, 0.12);
  z-index: 3;
  animation: cellPulse 2.5s ease-in-out infinite;
}
.mb-cell--owned {
  background: color-mix(in srgb, var(--owner-color, transparent) 12%, rgba(16, 22, 32, 0.98));
  border-color: var(--owner-color, rgba(78,205,196,0.1));
  box-shadow: inset 0 0 8px color-mix(in srgb, var(--owner-color, transparent) 10%, transparent);
}
.mb-cell--mortgaged {
  opacity: 0.25;
  filter: grayscale(0.8) brightness(0.6);
}

/* ── Cell body (icon + tokens) ────────────────────────────── */
.mb-cell__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
  padding: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* ── Color bar — absolutely positioned, does NOT push icon ── */
.mb-cell__color-bar {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* top cells: bar at bottom edge */
.mb-cell--top .mb-cell__color-bar {
  bottom: 0; left: 0; right: 0;
  height: 10px; width: 100%;
}
/* bottom cells: bar at top edge */
.mb-cell--bottom .mb-cell__color-bar {
  top: 0; left: 0; right: 0;
  height: 10px; width: 100%;
}
/* left cells: bar at right edge */
.mb-cell--left .mb-cell__color-bar {
  top: 0; bottom: 0; right: 0;
  width: 8px; height: 100%;
}
/* right cells: bar at left edge */
.mb-cell--right .mb-cell__color-bar {
  top: 0; bottom: 0; left: 0;
  width: 8px; height: 100%;
}

.mb-cell__bar-price {
  font-size: 0.38rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0;
}

/* vertical price text on side bars */
.mb-cell--left .mb-cell__bar-price,
.mb-cell--right .mb-cell__bar-price {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.34rem;
}

/* hide bar on corners */
.mb-cell--corner .mb-cell__color-bar { display: none; }

/* ── Corner cells (bigger via grid sizing) ───────────────── */
.mb-cell--corner {
  background: rgba(14, 18, 28, 0.98);
  flex-direction: column !important;
  justify-content: center;
  align-items: center;
}
.mb-cell--corner .mb-cell__body {
  gap: 3px;
}
.mb-cell--corner .mb-cell__icon {
  width: clamp(20px, 3vw, 32px);
  height: clamp(20px, 3vw, 32px);
}
.mb-cell--corner .mb-cell__name {
  font-size: clamp(0.38rem, 0.7vw, 0.55rem);
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.mb-cell--start {
  background: rgba(14, 18, 28, 0.98);
}
.mb-cell--start .mb-cell__icon { color: rgba(78, 205, 196, 0.9); }

.mb-cell--jail {
  background: rgba(14, 18, 28, 0.98);
}
.mb-cell--jail .mb-cell__icon { color: rgba(249, 115, 22, 0.9); }

.mb-cell--free {
  background: rgba(14, 18, 28, 0.98);
}
.mb-cell--free .mb-cell__icon { color: rgba(34, 197, 94, 0.9); }

.mb-cell--go-to-jail {
  background: rgba(14, 18, 28, 0.98);
}
.mb-cell--go-to-jail .mb-cell__icon { color: rgba(239, 68, 68, 0.9); }

.mb-cell--casino {
  background: rgba(14, 18, 28, 0.98);
}
.mb-cell--casino .mb-cell__icon { color: rgba(234, 179, 8, 0.9); }

/* ── SVG icon (replaces emoji) ───────────────────────────── */
.mb-cell__icon {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mb-cell__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Cell name ───────────────────────────────────────────── */
.mb-cell__name {
  font-size: clamp(0.3rem, 0.5vw, 0.4rem);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ── Price (for non-colored cells like chance/tax) ───────── */
.mb-cell__price {
  font-size: clamp(0.38rem, 0.6vw, 0.48rem);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

/* ── Stars (upgrade dots) ────────────────────────────────── */
.mb-cell__stars {
  display: flex; gap: 2px;
  margin-top: 1px;
}
.mb-cell__star-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 3px rgba(232,197,74,0.5);
}

/* ── Floating Token Overlay ──────────────────────────────── */
.mb-token-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}
.mb-tok-float {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 21;
  pointer-events: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
  will-change: left, top;
}
.mb-tok-float--moving {
  z-index: 30;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7));
}
.mb-tok-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.7);
  font-size: 0.45rem;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
}
.mb-tok-inner--avatar {
  background: transparent;
  border-width: 2.5px;
}
.mb-tok-inner--bot {
  border-width: 2px;
}
.mb-tok-inner__img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.mb-tok-inner svg { width: 14px; height: 14px; }

/* ── Old in-cell tokens (kept for compatibility) ─────────── */
.mb-cell__tokens {
  display: none;
}

/* ── Owner indicator dot ─────────────────────────────────── */
.mb-cell__owner-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 5px; height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
}

/* ── Casino Bet UI ────────────────────────────────────────── */
.mono-casino-bet {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 8px;
  margin-top: 4px;
}
.mono-casino-bet__label {
  font-size: 0.85rem;
  color: #ffc107;
  white-space: nowrap;
}
.mono-casino-bet__input {
  width: 80px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}

/* ── Center (Header + Log + Chat) ─────────────────────────── */
.mb-center {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  background: rgba(10, 14, 22, 0.95);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.mb-center::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%,
    rgba(30, 38, 50, 0.08), transparent 70%);
  pointer-events: none;
}

/* Header: title + dice in a row */
.mb-center__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 12px 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mb-center__title {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  font-weight: 800;
  color: rgba(255,255,255,0.2);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.mb-center__dice {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* ── Board Game Log ──────────────────────────────────────── */
.mb-center__log {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 0;
  position: relative;
  z-index: 1;
}
.mb-center__log::-webkit-scrollbar { width: 2px; }
.mb-center__log::-webkit-scrollbar-track { background: transparent; }
.mb-center__log::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 1px; }
.mb-log__entry {
  font-size: 0.6rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.35);
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.mb-log__entry--new {
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  animation: logFadeIn .4s ease;
}

@keyframes logFadeIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

.mb-center__team-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(78, 205, 196, 0.6);
  background: rgba(78, 205, 196, 0.04);
  padding: 3px 8px;
  border-top: 1px solid rgba(78, 205, 196, 0.06);
  flex-shrink: 0;
}
.mb-center__team-badge svg { width: 11px; height: 11px; }

/* ── In-Board Chat ───────────────────────────────────────── */
.mb-center__chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 120px;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.mb-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 0;
}
.mb-chat__messages::-webkit-scrollbar { width: 2px; }
.mb-chat__messages::-webkit-scrollbar-track { background: transparent; }
.mb-chat__messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,.06); border-radius: 1px; }
.mb-chat__msg {
  font-size: 0.58rem;
  line-height: 1.3;
  animation: chatFadeIn .3s ease;
}
.mb-chat__msg-name {
  font-weight: 600;
  margin-right: 3px;
}
.mb-chat__msg-text {
  color: rgba(255,255,255,0.5);
  word-break: break-word;
}
.mb-chat__msg-time {
  color: rgba(255,255,255,.18);
  font-size: 0.5rem;
  margin-left: 3px;
}
.mb-chat__form {
  display: flex;
  gap: 3px;
  padding: 3px 6px 4px;
  border-top: 1px solid rgba(255,255,255,.04);
  flex-shrink: 0;
}
.mb-chat__input {
  flex: 1;
  background: rgba(14,20,30,.6);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  padding: 3px 6px;
  color: var(--text-primary, #fff);
  font-size: 0.58rem;
  outline: none;
  transition: border-color .2s;
}
.mb-chat__input::placeholder { color: rgba(255,255,255,.18); }
.mb-chat__input:focus { border-color: rgba(78,205,196,.3); }
.mb-chat__send {
  background: rgba(78,205,196,.08);
  border: 1px solid rgba(78,205,196,.12);
  border-radius: 4px;
  padding: 3px 6px;
  color: rgba(78,205,196,.5);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
}
.mb-chat__send svg { width: 10px; height: 10px; }
.mb-chat__send:hover { background: rgba(78,205,196,.15); color: rgba(78,205,196,.8); }

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Dice (Face-dot style) ────────────────────────────────── */
.mb-dice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mb-dice__face {
  width: 44px; height: 44px;
  background: linear-gradient(145deg, rgba(240, 245, 250, 0.95), rgba(220, 230, 240, 0.9));
  border: 1.5px solid rgba(78, 205, 196, 0.25);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 5px;
  gap: 1px;
  box-shadow:
    0 3px 10px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 0 12px rgba(78,205,196,0.08);
}
.mb-dice__face--roll {
  animation: diceRollIn .6s cubic-bezier(.34,1.56,.64,1);
}
.mb-dice__dot {
  border-radius: 50%;
  transition: background 0.2s;
}
.mb-dice__dot--active {
  background: radial-gradient(circle, #1a2a3a 60%, #0d1b2a 100%);
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}
.mb-dice__d {
  width: 44px; height: 44px;
  background: linear-gradient(145deg, rgba(240, 245, 250, 0.95), rgba(220, 230, 240, 0.9));
  border: 1.5px solid rgba(78, 205, 196, 0.25);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800;
  color: #1a2a3a;
  box-shadow:
    0 3px 10px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.mb-dice__sum {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 800;
  color: var(--gold-400);
  text-shadow: 0 0 8px rgba(232, 197, 74, 0.3);
}
.mb-dice__double {
  font-size: 0.65rem; font-weight: 800;
  color: var(--teal-400);
  background: rgba(78, 205, 196, 0.15);
  border: 1px solid rgba(78, 205, 196, 0.25);
  padding: 3px 12px;
  border-radius: 12px;
  animation: diceDouble 0.8s ease-in-out infinite;
}
.mb-dice--double .mb-dice__face {
  border-color: var(--teal-400);
  box-shadow:
    0 0 16px rgba(78, 205, 196, 0.25),
    0 3px 10px rgba(0,0,0,0.35);
}
.mb-dice-placeholder {
  display: flex; gap: 10px;
  opacity: 0.3;
}
.mb-dice-placeholder .mb-dice__d {
  opacity: 0.5;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.mono-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}
.mono-sidebar::-webkit-scrollbar { width: 4px; }
.mono-sidebar::-webkit-scrollbar-track { background: transparent; }
.mono-sidebar::-webkit-scrollbar-thumb {
  background: rgba(78, 205, 196, 0.15);
  border-radius: 2px;
}

/* ── Player Cards ────────────────────────────────────────── */
.mono-players {
  display: flex; flex-direction: column; gap: 8px;
}
.mp-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--pb);
  border: 1px solid rgba(78, 205, 196, 0.08);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.mp-card--active {
  border-color: var(--pc);
  box-shadow: 0 0 20px color-mix(in srgb, var(--pc) 20%, transparent);
}
.mp-card--active::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 6%, transparent), transparent);
  pointer-events: none;
}
.mp-card--bankrupt {
  opacity: 0.3;
  filter: grayscale(0.8);
}
.mp-card__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s;
  overflow: hidden;
  position: relative;
}
.mp-card__avatar--img {
  background: transparent !important;
  border: 2.5px solid;
}
.mp-card__avatar-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.mp-card--active .mp-card__avatar { transform: scale(1.08); }
.mp-card__avatar svg { width: 20px; height: 20px; }
.mp-card__info { min-width: 0; flex: 1; }
.mp-card__name {
  font-weight: 700; font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 4px;
}
.mp-card__name-icon {
  width: 14px; height: 14px;
  color: var(--teal-400);
  flex-shrink: 0;
}
.mp-card__name-icon svg { width: 100%; height: 100%; }
.mp-card__money {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 800;
  color: var(--gold-400);
  text-shadow: 0 0 6px rgba(232, 197, 74, 0.2);
}
.mp-card__stats {
  display: flex; gap: 8px; align-items: center;
  margin-top: 2px;
}
.mp-card__stat {
  display: flex; align-items: center; gap: 2px;
  font-size: 0.7rem; color: var(--text-muted);
}
.mp-card__stat-icon {
  width: 12px; height: 12px;
  color: var(--text-muted);
}
.mp-card__stat-icon svg { width: 100%; height: 100%; }
.mp-jail-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.65rem; font-weight: 700;
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 3px;
}
.mp-jail-badge__icon { width: 10px; height: 10px; }
.mp-jail-badge__icon svg { width: 100%; height: 100%; }

/* ── Turn Timer ──────────────────────────────────────────── */
.mono-turn-timer { min-height: 28px; }
.mono-timer {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: rgba(10, 16, 24, 0.6);
  border: 1px solid rgba(78, 205, 196, 0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.mono-timer__icon {
  width: 16px; height: 16px;
  color: var(--mint-300);
  flex-shrink: 0;
}
.mono-timer__icon svg { width: 100%; height: 100%; }
.mono-timer__label {
  font-size: 0.95rem; font-weight: 700;
  font-family: var(--font-display);
  color: var(--mint-300); white-space: nowrap;
  min-width: 48px;
}
.mono-timer--low .mono-timer__label { color: #ef4444; }
.mono-timer--low .mono-timer__icon { color: #ef4444; }
.mono-timer--low {
  border-color: rgba(239, 68, 68, 0.2);
  animation: timerPulse 1s ease-in-out infinite;
}
.mono-timer__bar {
  flex: 1; height: 6px; border-radius: 3px;
  background: rgba(78, 205, 196, 0.08);
  overflow: hidden;
}
.mono-timer__fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-400));
  transition: width 0.25s linear;
}
.mono-timer--low .mono-timer__fill {
  background: linear-gradient(90deg, #ef4444, #f97316);
}

/* ── HUD ─────────────────────────────────────────────────── */
.mono-hud {
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(10, 16, 24, 0.6);
  border: 1px solid rgba(78, 205, 196, 0.1);
  border-radius: var(--radius);
  padding: 14px 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.mono-hud__turn {
  font-size: 0.8rem; color: var(--text-muted);
  font-weight: 500;
}
.mono-hud__current {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.88rem; font-weight: 600; color: var(--text);
}
.mono-hud__dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
.mono-hud__dice-info {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.78rem; color: var(--text-muted); font-weight: 500;
}
.mono-hud__dice-icon {
  width: 14px; height: 14px; color: var(--mint-300);
}
.mono-hud__dice-icon svg { width: 100%; height: 100%; }
.mono-hud__jail {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 700;
  color: #f97316;
}
.mono-hud__jail-icon { width: 14px; height: 14px; }
.mono-hud__jail-icon svg { width: 100%; height: 100%; }
.mono-hud__extra {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 700;
  color: var(--teal-400);
  animation: diceDouble 1s ease-in-out infinite;
}
.mono-hud__extra-icon { width: 14px; height: 14px; }
.mono-hud__extra-icon svg { width: 100%; height: 100%; }
.mono-finished {
  text-align: center; padding: 28px;
  background: rgba(10, 16, 24, 0.6);
  border-radius: var(--radius);
  border: 1px solid rgba(78, 205, 196, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.mono-finished__icon {
  width: 48px; height: 48px;
  color: var(--gold-400);
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 12px rgba(232, 197, 74, 0.3));
}
.mono-finished__icon svg { width: 100%; height: 100%; }
.mono-finished span {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--text);
}

/* ── Info box ─────────────────────────────────────────────── */
.mono-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  backdrop-filter: blur(6px);
}

/* ── Actions ─────────────────────────────────────────────── */
.mono-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.mono-action-btn {
  flex: 1; min-width: 130px;
  font-size: 0.88rem; padding: 12px 18px;
  display: inline-flex; align-items: center; gap: 6px;
  justify-content: center;
}
.mono-action-btn__icon {
  width: 18px; height: 18px; flex-shrink: 0;
}
.mono-action-btn__icon svg { width: 100%; height: 100%; }
.mono-wait {
  text-align: center; font-size: 0.82rem;
  color: var(--text-muted); padding: 14px;
  background: rgba(10, 16, 24, 0.5); border-radius: var(--radius);
  border: 1px solid rgba(78, 205, 196, 0.08);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  backdrop-filter: blur(8px);
}
.mono-wait__icon { width: 16px; height: 16px; color: var(--text-muted); }
.mono-wait__icon svg { width: 100%; height: 100%; }

/* ── My Properties Panel ─────────────────────────────────── */
.mono-my-props {
  margin-top: 10px;
  background: rgba(10, 16, 24, 0.6);
  border: 1px solid rgba(78, 205, 196, 0.1);
  border-radius: var(--radius);
  padding: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.mono-my-props__title {
  font-size: 0.78rem; font-weight: 700;
  color: var(--teal-400); margin-bottom: 8px;
  display: flex; align-items: center; gap: 4px;
}
.mono-my-props__title-icon { width: 14px; height: 14px; }
.mono-my-props__title-icon svg { width: 100%; height: 100%; }
.mono-my-props__grid {
  display: flex; flex-direction: column; gap: 5px;
}
.mono-prop-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(26, 60, 80, 0.25);
  border-left: 3px solid var(--cc, var(--border));
  transition: all 0.2s;
}
.mono-prop-chip:hover {
  background: rgba(26, 60, 80, 0.4);
}
.mono-prop-chip--mortgaged {
  opacity: 0.45;
  filter: grayscale(0.5);
}
.mono-prop-chip__name {
  font-size: 0.72rem; font-weight: 600;
  color: var(--text);
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mono-prop-chip__stars {
  display: flex; gap: 0;
}
.mono-prop-chip__star {
  width: 10px; height: 10px;
  color: var(--gold-400);
}
.mono-prop-chip__star svg { width: 100%; height: 100%; }
.mono-prop-chip__actions {
  display: flex; gap: 4px;
}

/* ── Auction Panel ───────────────────────────────────────── */
.mono-auction {
  background: rgba(10, 16, 24, 0.7);
  border: 1px solid rgba(232, 197, 74, 0.3);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 30px rgba(232, 197, 74, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.3);
  animation: auctionSlideIn 0.4s cubic-bezier(.4,0,.2,1);
}
.mono-auction__title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 800;
  color: var(--gold-400);
  margin-bottom: 8px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.mono-auction__title-icon { width: 20px; height: 20px; }
.mono-auction__title-icon svg { width: 100%; height: 100%; }
.mono-auction__bid {
  font-size: 0.9rem; color: var(--text);
  margin-bottom: 4px;
}
.mono-auction__bidder {
  font-size: 0.78rem; color: var(--mint-300);
  margin-bottom: 10px;
}
.mono-auction__controls {
  display: flex; gap: 8px; align-items: center;
  justify-content: center; flex-wrap: wrap;
}
.mono-auction__input {
  width: 90px; padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(14, 25, 38, 0.6);
  color: var(--text);
  font-size: 0.9rem; font-weight: 700;
  text-align: center;
  transition: border-color 0.2s;
}
.mono-auction__input:focus {
  outline: none;
  border-color: var(--gold-400);
  box-shadow: 0 0 8px rgba(232, 197, 74, 0.15);
}

/* ── Property Modal ──────────────────────────────────────── */
.mono-modal {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  animation: modalFadeIn 0.25s ease-out;
}
.mono-modal__backdrop {
  position: absolute; inset: 0;
}
.mono-modal__content {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 41, 61, 0.95), rgba(14, 25, 38, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 380px; width: 90%;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(78, 205, 196, 0.05);
  animation: modalSlideUp 0.35s cubic-bezier(.4,0,.2,1);
}
.prop-modal__header {
  padding: 24px 20px 18px; text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.prop-modal__header::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.prop-modal__icon { width: 28px; height: 28px; margin: 0 auto 8px; opacity: 0.9; }
.prop-modal__icon svg { width: 100%; height: 100%; }
.prop-modal__emoji {
  font-size: 2rem;
  margin: 0 auto 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.prop-modal__name {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800;
}
.prop-modal__price {
  font-size: 0.85rem; opacity: 0.85; margin-top: 4px;
}
.prop-modal__level {
  display: flex; gap: 2px; justify-content: center; margin-top: 6px;
}
.prop-modal__level-star {
  width: 14px; height: 14px;
  color: var(--gold-400);
  filter: drop-shadow(0 0 3px rgba(232,197,74,0.4));
}
.prop-modal__level-star svg { width: 100%; height: 100%; }
.prop-modal__mortgaged {
  font-size: 0.75rem; margin-top: 6px;
  background: rgba(0,0,0,0.3);
  padding: 3px 12px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 4px;
}
.prop-modal__body { padding: 18px 20px; }
.prop-modal__owner {
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 12px;
}
.prop-modal__rents {
  display: flex; flex-direction: column; gap: 3px;
}
.prop-modal__rent-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; padding: 5px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.prop-modal__rent-row--active {
  background: rgba(78, 205, 196, 0.08);
  border: 1px solid rgba(78, 205, 196, 0.12);
  color: var(--mint-300);
  font-weight: 700;
}
.prop-modal__rent-stars {
  display: flex; gap: 1px;
}
.prop-modal__rent-star {
  width: 12px; height: 12px;
  color: var(--gold-400);
}
.prop-modal__rent-star svg { width: 100%; height: 100%; }
.prop-modal__upgrade-cost {
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: 10px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.prop-modal__footer {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.prop-modal__footer .btn {
  width: 100%;
}
.prop-modal__hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 0;
}
.prop-modal__close {
  display: block; width: 100%;
  padding: 14px; text-align: center;
  border: none; background: transparent;
  border-top: 1px solid var(--border);
  color: var(--teal-400); font-weight: 600;
  font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s;
}
.prop-modal__close:hover {
  background: rgba(78, 205, 196, 0.06);
  color: var(--teal-500);
}

/* ── Trade Modal ─────────────────────────────────────────── */
.trade-modal__header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(78, 205, 196, 0.15);
}
.trade-modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-400);
}
.trade-modal__body {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  align-items: flex-start;
}
.trade-modal__column {
  flex: 1;
  min-width: 0;
}
.trade-modal__col-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.trade-modal__divider {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: var(--teal-400);
  padding-top: 30px;
}
.trade-modal__props {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
}
.trade-modal__prop-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  border-left: 3px solid var(--cc);
  background: rgba(78, 205, 196, 0.04);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.trade-modal__prop-item:hover {
  background: rgba(78, 205, 196, 0.1);
}
.trade-modal__prop-item input[type="checkbox"] {
  accent-color: var(--teal-400);
}
.trade-modal__empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 8px;
}
.trade-modal__money-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.9rem;
}
.trade-modal__money-input {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(78, 205, 196, 0.2);
  background: rgba(10, 16, 24, 0.6);
  color: var(--text-primary);
  font-size: 0.9rem;
}
.trade-modal__footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(78, 205, 196, 0.15);
}

/* ── Trade Offers Panel ──────────────────────────────────── */
.trade-offer {
  background: rgba(78, 205, 196, 0.06);
  border: 1px solid rgba(78, 205, 196, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
}
.trade-offer__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--teal-400);
}
.trade-offer__details {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.trade-offer__actions {
  display: flex;
  gap: 8px;
}

/* ── Player card trade hint ──────────────────────────────── */
.mp-card--tradeable {
  cursor: pointer;
  position: relative;
}
.mp-card--tradeable:hover {
  border-color: var(--teal-400);
  box-shadow: 0 0 12px rgba(78, 205, 196, 0.2);
}
.mp-card__trade-hint {
  font-size: 0.72rem;
  color: var(--teal-400);
  opacity: 0;
  transition: opacity 0.2s;
  margin-top: 2px;
}
.mp-card--tradeable:hover .mp-card__trade-hint {
  opacity: 1;
}
.mp-card__stat--loan {
  color: #f59e0b;
}

/* ── Loan Modal ──────────────────────────────────────────── */
.loan-modal__header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(78, 205, 196, 0.15);
}
.loan-modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-400);
}
.loan-modal__body {
  padding: 16px 20px;
}
.loan-modal__info {
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.loan-modal__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.loan-modal__section {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(78, 205, 196, 0.04);
  border: 1px solid rgba(78, 205, 196, 0.1);
}
.loan-modal__subtitle {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.loan-modal__input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.loan-modal__input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(78, 205, 196, 0.2);
  background: rgba(10, 16, 24, 0.6);
  color: var(--text-primary);
  font-size: 0.95rem;
}
.loan-modal__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}
.loan-modal__footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(78, 205, 196, 0.15);
  display: flex;
  justify-content: flex-end;
}

/* ── Active Events Display ───────────────────────────────── */
.mono-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.mono-event-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(78, 205, 196, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 8px;
  padding: 8px 12px;
}
.mono-event-badge__icon {
  width: 18px;
  height: 18px;
  color: #f59e0b;
  flex-shrink: 0;
}
.mono-event-badge__icon svg { width: 100%; height: 100%; }
.mono-event-badge__content {
  flex: 1;
  min-width: 0;
}
.mono-event-badge__name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #f59e0b;
}
.mono-event-badge__desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 1px;
}
.mono-event-badge__timer {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Game log ────────────────────────────────────────────── */
.mono-log {
  background: rgba(10, 16, 24, 0.6);
  border: 1px solid rgba(78, 205, 196, 0.1);
  border-radius: var(--radius);
  padding: 14px;
  flex: 1;
  max-height: 200px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.mono-log h3 {
  font-size: 0.8rem; font-weight: 700;
  color: var(--teal-400); margin-bottom: 6px;
}

/* Xs button for property chips */
.btn--xs {
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 6px;
}
.btn--warning {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  border: none;
}
.btn--warning:hover {
  background: linear-gradient(135deg, #fb923c, #f97316);
}

/* ── Monopoly Animations ─────────────────────────────────── */
@keyframes cellPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(78, 205, 196, 0.2); }
  50% { box-shadow: 0 0 25px rgba(78, 205, 196, 0.4); }
}
@keyframes tokenBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  25% { transform: scale(1.15) translateY(-3px); }
  50% { transform: scale(0.95) translateY(1px); }
  75% { transform: scale(1.05) translateY(-1px); }
}
@keyframes tokenLand {
  0% { transform: scale(0.3) translateY(-15px); opacity: 0; }
  50% { transform: scale(1.2) translateY(0); opacity: 1; }
  70% { transform: scale(0.9); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes centerGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes diceShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-6deg) scale(1.05); }
  50% { transform: rotate(6deg) scale(1.05); }
  75% { transform: rotate(-3deg); }
}
@keyframes diceRollIn {
  0% { transform: scale(0.5) rotate(-180deg); opacity: 0; }
  50% { transform: scale(1.15) rotate(10deg); opacity: 1; }
  70% { transform: scale(0.95) rotate(-5deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes diceDouble {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes timerPulse {
  0%, 100% { border-color: rgba(239, 68, 68, 0.15); }
  50% { border-color: rgba(239, 68, 68, 0.4); }
}
@keyframes auctionSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes diceBounce {
  0% { transform: scale(0.3) rotate(-15deg); opacity: 0; }
  50% { transform: scale(1.15) rotate(5deg); opacity: 1; }
  70% { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.mb-dice__d--bounce { animation: diceBounce .5s cubic-bezier(.34,1.56,.64,1); }
.mb-dice--roll-anim .mb-dice__sum { animation: diceBounce .5s cubic-bezier(.34,1.56,.64,1) .2s both; }

/* ── Team Cards ──────────────────────────────────────────── */
.mp-team {
  background: rgba(14,25,38,.4);
  border: 1px solid rgba(78,205,196,.1);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-bottom: 4px;
  transition: all .3s;
}
.mp-team--eliminated { opacity: .4; filter: grayscale(.6); }
.mp-team__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(78,205,196,.08);
}
.mp-team__name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-300);
}
.mp-team__name svg { width: 14px; height: 14px; }
.mp-team__money {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold-400);
}
.mp-team__stats {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.7rem;
}
.mp-team .mp-card { padding: 6px 8px; margin-top: 2px; }

/* ── HUD Team info ───────────────────────────────────────── */
.mono-hud__team {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--teal-300);
  padding-top: 2px;
}
.mono-hud__team svg { width: 14px; height: 14px; }

/* ── Legacy game-log shared ──────────────────────────────── */
.game-log { max-height: 200px; overflow-y: auto; }
.game-log__entry {
  font-size: 0.78rem; padding: 4px 0;
  border-bottom: 1px solid rgba(78, 205, 196, 0.06);
  color: var(--mint-300);
}

/* ═══════════════════════════════════════════════════════════
   ALIAS — Word Guessing Game (polished v3)
   ═══════════════════════════════════════════════════════════ */

/* GLOBAL: constrain ALL SVGs inside alias to prevent expansion */
.alias-layout svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

.alias-layout {
  display: grid;
  grid-template-columns: 210px 1fr 270px;
  gap: 12px;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
  overflow: hidden;
  animation: alias-fade-in 0.5s ease-out;
}
@keyframes alias-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .alias-layout {
    grid-template-columns: 1fr;
    height: auto; max-height: none; overflow: visible;
  }
}

.alias-left {
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; min-height: 0;
}
.alias-right {
  display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
}

/* ── Teams ─────────────────────────────────────────────────── */
.alias-team {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.alias-team::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(78,205,196,0.06), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.alias-team--active::before { opacity: 1; }
.alias-team--active {
  border-color: var(--mint-400);
  box-shadow: 0 0 16px rgba(78, 205, 196, 0.12), inset 0 1px 0 rgba(78,205,196,0.08);
}
.alias-team__header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.alias-team__name { font-weight: 700; color: var(--mint-200); font-size: 0.85rem; }
.alias-team__score {
  font-size: 1.1rem; font-weight: 800; color: var(--gold-400);
  text-shadow: 0 0 8px rgba(232, 197, 74, 0.3);
  transition: transform 0.3s ease, text-shadow 0.3s;
}
.alias-team--active .alias-team__score {
  transform: scale(1.08);
}
.alias-team__players { display: flex; flex-direction: column; gap: 2px; }
.alias-team__player {
  font-size: 0.78rem; color: var(--text-muted); padding: 3px 6px;
  border-radius: 4px; display: flex; align-items: center; gap: 4px;
  line-height: 1.3; transition: all 0.25s ease;
}
.alias-team__player--explainer {
  color: var(--mint-300); font-weight: 600;
  background: rgba(78, 205, 196, 0.1);
  animation: alias-explainer-glow 2s ease-in-out infinite;
}
@keyframes alias-explainer-glow {
  0%, 100% { background: rgba(78,205,196,0.08); }
  50% { background: rgba(78,205,196,0.15); }
}
.alias-team__player svg { width: 12px; height: 12px; }

/* ── Center Area ───────────────────────────────────────────── */
.alias-center {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

/* Subtle ambient background glow in center */
.alias-center::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(78,205,196,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.alias-center > * { position: relative; z-index: 1; }

.alias-round__info {
  font-size: 0.85rem; color: var(--text-muted); text-align: center;
  line-height: 1.4;
  letter-spacing: 0.3px;
}
.alias-round__explainer {
  font-size: 0.92rem; color: var(--mint-300); text-align: center; margin-top: 0;
}

/* ── Word Card ─────────────────────────────────────────────── */
.alias-card__word-wrap {
  background: linear-gradient(135deg, var(--bg-card), rgba(78, 205, 196, 0.08));
  border: 2px solid var(--mint-400);
  border-radius: 14px;
  padding: 24px 40px;
  text-align: center;
  box-shadow: 0 0 32px rgba(78, 205, 196, 0.1), 0 4px 24px rgba(0,0,0,0.2);
  min-width: 240px; max-width: 380px;
  animation: alias-card-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.alias-card__word-wrap::after {
  content: "";
  position: absolute; top: 0; left: -50%; width: 200%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(78,205,196,0.04), transparent);
  animation: alias-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes alias-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes alias-card-appear {
  from { opacity: 0; transform: scale(0.88) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.alias-card__label {
  font-size: 0.72rem; color: var(--text-muted); margin-bottom: 6px;
  letter-spacing: 1px; text-transform: uppercase; opacity: 0.7;
}
.alias-card__word {
  font-size: 1.8rem; font-weight: 800; color: var(--mint-200);
  text-shadow: 0 0 24px rgba(78, 205, 196, 0.25);
  letter-spacing: 0.5px;
}

.alias-card__waiting, .alias-card__guess {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 32px;
  text-align: center;
  min-width: 220px; max-width: 360px;
  transition: all 0.3s ease;
  animation: alias-card-appear 0.4s ease-out;
}
.alias-card__waiting:hover, .alias-card__guess:hover {
  border-color: rgba(78,205,196,0.2);
  box-shadow: 0 0 12px rgba(78,205,196,0.05);
}
.alias-card__icon {
  margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
}
.alias-card__icon svg { width: 32px; height: 32px; color: var(--mint-400); opacity: 0.45; }
.alias-card__hint { font-size: 0.85rem; color: var(--text-muted); }
.alias-card__sub-hint {
  font-size: 0.75rem; color: var(--mint-400); margin-top: 3px; opacity: 0.6;
}

/* ── Last guessed flash (shown to ALL) ─────────────────────── */
.alias-guessed-flash {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 10px;
  padding: 8px 20px;
  text-align: center;
  animation: alias-flash-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.alias-guessed-flash__label {
  font-size: 0.7rem; color: #22c55e; text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 2px;
}
.alias-guessed-flash__word {
  font-size: 1.15rem; font-weight: 700; color: #4ade80;
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.25);
}
@keyframes alias-flash-pop {
  0% { opacity: 0; transform: scale(0.7) translateY(8px); }
  60% { transform: scale(1.05) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Timer ─────────────────────────────────────────────────── */
.alias-timer {
  width: 100%; max-width: 300px; text-align: center;
}
.alias-timer__time {
  font-size: 1.2rem; font-weight: 700; color: var(--mint-300);
  margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: color 0.3s;
}
.alias-timer__time svg { width: 15px; height: 15px; }
.alias-timer--low .alias-timer__time { color: #ef4444; animation: alias-pulse 0.5s infinite; }
.alias-timer__bar {
  width: 100%; height: 6px; border-radius: 3px;
  background: rgba(78, 205, 196, 0.08);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}
.alias-timer__fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--mint-400), var(--mint-300));
  transition: width 0.25s linear;
  box-shadow: 0 0 8px rgba(78,205,196,0.2);
}
.alias-timer--low .alias-timer__fill {
  background: linear-gradient(90deg, #ef4444, #f97316);
  box-shadow: 0 0 8px rgba(239,68,68,0.3);
}
@keyframes alias-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Actions ───────────────────────────────────────────────── */
.alias-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.alias-btn {
  min-width: 140px; font-size: 0.88rem; padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
}
.alias-btn:hover { transform: translateY(-1px); }
.alias-btn:active { transform: translateY(0); }
.alias-btn svg { width: 14px; height: 14px; }

/* ── Round Stats ───────────────────────────────────────────── */
.alias-rstats {
  display: flex; gap: 16px; justify-content: center;
  font-size: 0.82rem; color: var(--text-muted);
}
.alias-rstats__item { display: flex; align-items: center; gap: 4px; }
.alias-rstats__item svg { width: 13px; height: 13px; }
.alias-rstats__item--good { color: #22c55e; font-weight: 600; }
.alias-rstats__item--skip { color: var(--text-muted); }

/* ── Chat Panel ────────────────────────────────────────────── */
.alias-chat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column;
  flex: 1; min-height: 0;
  overflow: hidden;
  transition: border-color 0.3s;
}
.alias-chat:focus-within {
  border-color: rgba(78,205,196,0.25);
}
.alias-chat__header {
  padding: 8px 12px;
  font-size: 0.8rem; font-weight: 700;
  color: var(--mint-300);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  background: rgba(78,205,196,0.03);
}
.alias-chat__header svg { width: 14px; height: 14px; }
.alias-chat__messages {
  flex: 1; overflow-y: auto;
  padding: 6px 10px;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 0.78rem;
  min-height: 0;
}
.alias-chat__form {
  display: flex; gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: rgba(0,0,0,0.1);
}
.alias-chat__input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.alias-chat__input:focus {
  border-color: var(--mint-400);
  box-shadow: 0 0 0 2px rgba(78,205,196,0.1);
}
.alias-chat__send {
  background: var(--mint-400); color: #0f1e2e;
  border: none; border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700; cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center;
}
.alias-chat__send svg { width: 14px; height: 14px; }
.alias-chat__send:hover { opacity: 0.85; transform: scale(1.03); }
.alias-chat__send:active { transform: scale(0.97); }

/* System messages in chat */
.mb-chat__msg--system .mb-chat__msg-text {
  color: #22c55e; font-weight: 600;
}

/* ── Guessed Words Panel ───────────────────────────────────── */
.alias-guessed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  animation: alias-fade-in 0.3s ease-out;
}
.alias-guessed__title {
  font-size: 0.75rem; font-weight: 700; color: var(--mint-300);
  margin-bottom: 5px;
  display: flex; align-items: center; gap: 4px;
}
.alias-guessed__title svg { width: 12px; height: 12px; }
.alias-guessed__list { display: flex; flex-wrap: wrap; gap: 4px; }
.alias-guessed__word {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.72rem; font-weight: 600;
  animation: alias-word-pop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes alias-word-pop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.alias-guessed__empty { font-size: 0.72rem; color: var(--text-muted); }

/* ── Finished ──────────────────────────────────────────────── */
.alias-finished {
  text-align: center; padding: 16px 0;
  animation: alias-card-appear 0.5s ease-out;
}
.alias-finished__trophy {
  margin-bottom: 8px;
  animation: alias-trophy-bounce 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.alias-finished__trophy svg { width: 44px; height: 44px; color: var(--gold-400); }
@keyframes alias-trophy-bounce {
  0% { transform: scale(0) rotate(-15deg); }
  60% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
.alias-finished__text {
  font-size: 1.1rem; color: var(--gold-400); font-weight: 700; margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(232,197,74,0.2);
}
.alias-finished__scores { font-size: 0.88rem; color: var(--text-muted); }

/* ── Team Selection Phase ──────────────────────────────────── */
.alias-ts {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
  padding: 24px 0;
  animation: alias-fade-in 0.5s ease-out;
}
.alias-ts__title {
  font-size: 1.15rem; font-weight: 700; color: var(--mint-200);
  display: flex; align-items: center; gap: 8px;
}
.alias-ts__title svg { width: 20px; height: 20px; }
.alias-ts__subtitle {
  font-size: 0.82rem; color: var(--text-muted); margin-top: -10px;
}
.alias-ts__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; width: 100%; max-width: 520px;
}
.alias-ts__team {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.alias-ts__team::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(78,205,196,0.06), transparent 70%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.alias-ts__team--mine::before { opacity: 1; }
.alias-ts__team--mine {
  border-color: var(--mint-400);
  box-shadow: 0 0 16px rgba(78, 205, 196, 0.1);
}
.alias-ts__team-header {
  display: flex; justify-content: space-between; align-items: center;
}
.alias-ts__team-name {
  font-weight: 700; font-size: 0.92rem; color: var(--mint-200);
}
.alias-ts__team-count {
  background: rgba(78, 205, 196, 0.12);
  color: var(--mint-300);
  font-size: 0.72rem; font-weight: 700;
  padding: 2px 10px; border-radius: 10px;
}
.alias-ts__players {
  display: flex; flex-direction: column; gap: 4px;
  min-height: 36px;
}
.alias-ts__player {
  font-size: 0.82rem; color: var(--text-muted);
  padding: 4px 8px; border-radius: 6px;
  transition: all 0.2s;
}
.alias-ts__player--me {
  color: var(--mint-300); font-weight: 600;
  background: rgba(78, 205, 196, 0.1);
}
.alias-ts__empty {
  font-size: 0.78rem; color: var(--text-muted); opacity: 0.4;
  font-style: italic;
}
.alias-ts__join-btn {
  align-self: center; font-size: 0.82rem; padding: 6px 20px;
  border-radius: 8px;
  transition: all 0.25s;
}
.alias-ts__join-btn:hover { transform: translateY(-1px); }
.alias-ts__confirm {
  margin-top: 6px; min-width: 220px;
  transition: all 0.25s;
}
.alias-ts__confirm:hover:not(:disabled) { transform: translateY(-1px); }
.alias-ts__confirm:disabled {
  opacity: 0.35; cursor: not-allowed;
}
.alias-ts__wait {
  font-size: 0.85rem; color: var(--text-muted); text-align: center;
  animation: alias-pulse 2s ease-in-out infinite;
}

/* ── Team Select: Randomize button ─────────────────────────── */
.alias-ts__rand-btn {
  transition: all 0.25s;
}
.alias-ts__rand-btn:hover { transform: translateY(-1px); }
.alias-ts__rand-btn svg { width: 14px; height: 14px; }

/* ── Team Select: Move player button ───────────────────────── */
.alias-ts__move-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 1px 4px;
  border-radius: 4px; margin-left: auto;
  transition: all 0.2s; display: inline-flex; align-items: center;
}
.alias-ts__move-btn svg { width: 12px; height: 12px; }
.alias-ts__move-btn:hover { color: var(--mint-300); background: rgba(78,205,196,0.1); }

/* Player row in team-select needs flex for the move button */
.alias-ts__player {
  display: flex; align-items: center; gap: 4px;
}

/* ── Team Select: Settings Panel ───────────────────────────── */
.alias-ts__settings {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%; max-width: 520px;
  animation: alias-fade-in 0.3s ease-out;
}
.alias-ts__settings--readonly { text-align: center; }
.alias-ts__settings-title {
  font-size: 0.82rem; font-weight: 700; color: var(--mint-300);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 5px;
}
.alias-ts__settings-title svg { width: 14px; height: 14px; }
.alias-ts__settings--readonly .alias-ts__settings-title {
  justify-content: center;
}
.alias-ts__settings-info {
  font-size: 0.82rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 2px;
  justify-content: center;
}
.alias-ts__settings-info svg { width: 13px; height: 13px; }
.alias-ts__settings-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.alias-ts__setting {
  display: flex; flex-direction: column; gap: 3px;
}
.alias-ts__setting-label {
  font-size: 0.72rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.alias-ts__setting-label svg { width: 12px; height: 12px; }
.alias-ts__select {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  color: var(--text);
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.alias-ts__select:focus { border-color: var(--mint-400); }
.alias-ts__select option {
  background: var(--bg-card);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════
   PULSE — Server Metrics (v5 open layout)
   ═══════════════════════════════════════════════════════════ */
.section--pulse { padding-top: 24px; padding-bottom: 0; }
.section--pulse .container { margin-bottom: 0; }

/* ── Heartbeat Header ── */
.pulse-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 6px;
}
.pulse-header__line {
  flex: 1;
  max-width: 140px;
  color: var(--teal-500);
  opacity: 0.35;
  line-height: 0;
}
.pulse-header__line svg { width: 100%; height: 28px; }
.pulse-header__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* ── Row layout ── */
.pulse-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  gap: 0;
}

/* ── Each stat item ── */
.pulse-stat {
  --pa: 78,205,196;
  position: relative;
  text-align: center;
  padding: 22px 16px;
  transition: transform 0.3s;
}

/* Vertical divider between items (not on first in each row) */
.pulse-stat + .pulse-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(78,205,196,0.18), transparent);
}
/* Hide divider on first item of second row */
.pulse-stat:nth-child(5)::before { display: none; }

.pulse-stat:hover {
  transform: translateY(-3px);
}

/* ── Icon — small colored circle ── */
.pulse-stat__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(var(--pa), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: rgb(var(--pa));
  transition: transform 0.3s, background 0.3s;
}
.pulse-stat:hover .pulse-stat__icon {
  background: rgba(var(--pa), 0.18);
  transform: scale(1.12);
}
.pulse-stat__icon svg {
  width: 17px;
  height: 17px;
}

/* ── Number ── */
.pulse-stat__num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  color: rgb(var(--pa));
  line-height: 1.1;
  margin-top: 2px;
  white-space: nowrap;
}
.pulse-stat__num--sm { font-size: 1.1rem; }

/* ── Label ── */
.pulse-stat__lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════
   ABOUT — Sticky Viewport with Scene Swapping (v3 redesign)
   ═══════════════════════════════════════════════════════════ */
.section--about {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(78,205,196,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(167,139,250,0.03) 0%, transparent 70%);
  position: relative;
  overflow: visible !important;
  overflow-x: clip !important;
  padding: 0 !important;
  max-width: 100%;
}
.section--about::before { display: none; }

/* Particles */
.about-particles {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity 0.5s;
}
.about-particles.ap-visible { opacity: 1; }

/* ── Scroll room ──────────────────────────────────── */
.about-scroll {
  position: relative;
  height: 320vh;
}

/* ── Sticky viewport ──────────────────────────────── */
.about-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}
.about-sticky > .container { width: 100%; }

/* ── Two-Column Grid ──────────────────────────────── */
.about-columns {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
}

/* ── Sidebar ──────────────────────────────────────── */
.about-sidebar { text-align: left; }
.about-sidebar .story-intro__eyebrow {
  text-align: left;
}
.about-sidebar .story-intro__eyebrow::before,
.about-sidebar .story-intro__eyebrow::after { display: none; }
.about-sidebar .story-intro__heading {
  text-align: left;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.about-sidebar .story-intro__text {
  margin: 0 0 24px;
  font-size: 0.92rem; line-height: 1.7;
  text-align: left;
}

/* ── Scene Step Indicators ────────────────────────── */
.about-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.about-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 8px 14px 8px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s;
  opacity: 0.4;
}
.about-step:hover { opacity: 0.7; background: rgba(78,205,196,0.04); }
.about-step--active {
  opacity: 1 !important;
  background: rgba(78,205,196,0.06);
}
.about-step__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(78,205,196,0.2);
  border: 2px solid rgba(78,205,196,0.15);
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.about-step--active .about-step__dot {
  background: var(--teal-500);
  border-color: var(--teal-500);
  box-shadow: 0 0 12px rgba(78,205,196,0.5), 0 0 24px rgba(78,205,196,0.2);
}
.about-step__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.about-step--active .about-step__label {
  color: var(--teal-400);
}

/* ── Scene Viewport ───────────────────────────────── */
.about-viewport {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}
.about-viewport__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.3), rgba(20,30,50,0.2));
  border: 1px solid rgba(78,205,196,0.06);
  border-radius: 24px;
  pointer-events: none;
  z-index: 0;
}

/* ── Individual Scene ─────────────────────────────── */
.about-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
  z-index: 1;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(.165,.84,.44,1),
              transform 0.8s cubic-bezier(.165,.84,.44,1),
              filter 0.7s cubic-bezier(.165,.84,.44,1);
}
.about-scene--active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
}
.about-scene--exit {
  opacity: 0;
  transform: translateY(-18px) scale(0.97);
  filter: blur(8px);
  pointer-events: none;
}

/* ── Origin Story Block ───────────────────────────── */
.story-block { position: relative; max-width: 100%; overflow: hidden; }
.story-block__content {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 28px; border-radius: 16px;
  box-sizing: border-box; max-width: 100%;
  background: linear-gradient(135deg, rgba(15,23,42,0.55), rgba(20,30,50,0.45));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(78,205,196,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative; overflow: hidden; text-align: left;
}
.story-block__content::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--teal-500), #a78bfa, transparent);
  border-radius: 3px;
}
.story-block__icon {
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 12px; background: rgba(78,205,196,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-500); margin-top: 2px;
}
.story-block__icon svg { width: 22px; height: 22px; }
.story-block__title {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  color: var(--white); margin-bottom: 6px;
}
.story-block__text {
  font-size: 0.9rem; line-height: 1.7;
  color: var(--text-muted);
}

/* ── Origin Oldies (featured veteran members) ─────── */
.origin-oldies {
  margin-top: 16px;
}
.origin-oldies__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 10px;
}
.origin-oldies__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.oldie-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15,23,42,0.45), rgba(20,30,50,0.35));
  border: 1px solid rgba(78,205,196,0.06);
  transition: border-color 0.3s, transform 0.3s;
}
.oldie-card:hover {
  border-color: rgba(78,205,196,0.14);
  transform: translateY(-2px);
}
.oldie-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(78,205,196,0.15), rgba(167,139,250,0.1));
  border: 2px solid rgba(78,205,196,0.15);
  flex-shrink: 0;
  overflow: hidden;
}
.oldie-card__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.oldie-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.oldie-card__name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oldie-card__meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oldie-card--placeholder .oldie-card__avatar {
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ── Milestones (Scene 1) ─────────────────────────── */
.about-milestones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.milestone {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15,23,42,0.5), rgba(20,30,50,0.4));
  border: 1px solid rgba(78,205,196,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}
.milestone:hover {
  border-color: rgba(78,205,196,0.18);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.milestone__badge {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(78,205,196,0.15), rgba(167,139,250,0.1));
  border: 1px solid rgba(78,205,196,0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 800;
  color: var(--teal-400);
}
.milestone__date {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-400); margin-bottom: 4px;
}
.milestone__title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 2px;
}
.milestone__text {
  font-size: 0.84rem; line-height: 1.55;
  color: var(--text-muted);
}

/* ── Value card stagger (Scene 2) ─────────────────── */
.sv-stagger {
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  filter: blur(2px);
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1),
              transform 0.35s cubic-bezier(.4,0,.2,1),
              filter 0.35s cubic-bezier(.4,0,.2,1);
}
.about-scene--active .sv-stagger {
  opacity: 1; transform: translateY(0) scale(1); filter: blur(0);
}
.about-scene--active .sv-stagger[data-sv="0"] { transition-delay: 0s;    }
.about-scene--active .sv-stagger[data-sv="1"] { transition-delay: 0.05s; }
.about-scene--active .sv-stagger[data-sv="2"] { transition-delay: 0.10s; }
.about-scene--active .sv-stagger[data-sv="3"] { transition-delay: 0.15s; }
.about-scene--active .sv-stagger[data-sv="4"] { transition-delay: 0.20s; }
.about-scene--active .sv-stagger[data-sv="5"] { transition-delay: 0.25s; }

/* ── CTA inner (Scene 3) ─────────────────────────── */
.about-cta-inner {
  text-align: center;
  position: relative;
  padding: 20px 0;
}
.about-cta-inner .cta-counter {
  margin-bottom: 12px;
  opacity: 0; transform: translateY(20px) scale(0.85); filter: blur(5px);
  transition: opacity 0.6s 0.15s cubic-bezier(.4,0,.2,1), transform 0.6s 0.15s cubic-bezier(.4,0,.2,1), filter 0.6s 0.15s cubic-bezier(.4,0,.2,1);
}
.about-cta-inner .story-cta__quote {
  opacity: 0; transform: translateY(14px); filter: blur(4px);
  transition: opacity 0.5s 0.35s cubic-bezier(.4,0,.2,1), transform 0.5s 0.35s cubic-bezier(.4,0,.2,1), filter 0.5s 0.35s cubic-bezier(.4,0,.2,1);
}
.about-cta-inner .cta-btn-wrap {
  position: relative; display: inline-block;
  opacity: 0; transform: translateY(14px); filter: blur(4px);
  transition: opacity 0.5s 0.55s cubic-bezier(.4,0,.2,1), transform 0.5s 0.55s cubic-bezier(.4,0,.2,1), filter 0.5s 0.55s cubic-bezier(.4,0,.2,1);
}
.about-scene--active .about-cta-inner .cta-counter,
.about-scene--active .about-cta-inner .story-cta__quote,
.about-scene--active .about-cta-inner .cta-btn-wrap {
  opacity: 1; transform: translateY(0) scale(1); filter: blur(0);
}
/* Rings */
.about-cta-inner .cta-ring { opacity: 0; }
.about-scene--active .cta-ring--1 {
  border-color: rgba(78,205,196,0.15);
  animation: ctaRingExpand 2.5s 0.2s cubic-bezier(.25,.46,.45,.94) forwards, ctaRingPulse 4s 2.7s ease-in-out infinite;
}
.about-scene--active .cta-ring--2 {
  border-color: rgba(167,139,250,0.12);
  animation: ctaRingExpand 2.5s 0.5s cubic-bezier(.25,.46,.45,.94) forwards, ctaRingPulse 4s 3s ease-in-out infinite;
}
.about-scene--active .cta-ring--3 {
  border-color: rgba(78,205,196,0.08);
  animation: ctaRingExpand 2.5s 0.8s cubic-bezier(.25,.46,.45,.94) forwards, ctaRingPulse 4s 3.3s ease-in-out infinite;
}
/* Sparkles */
.about-cta-inner .cta-sparkle { opacity: 0; }
.about-scene--active .cta-sparkle {
  animation: ctaSparkle 3s calc(var(--i) * 0.35s + 0.5s) ease-in-out infinite;
}

/* ── CTA shared visual styles ─────────────────────── */
.cta-counter__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--teal-400), #a78bfa, var(--teal-500));
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: storyGrad 6s ease infinite;
  filter: drop-shadow(0 0 30px rgba(78,205,196,0.3));
}
.cta-counter__plus { font-weight: 800; font-size: 0.7em; }
.cta-counter__label {
  display: block; font-size: 1rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.06em; margin-top: 6px;
}
.cta-rings {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 340px; height: 340px; pointer-events: none;
}
.cta-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid transparent; opacity: 0;
}
@keyframes ctaRingExpand {
  0%   { transform: scale(0.3); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}
@keyframes ctaRingPulse {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%     { transform: scale(1.08); opacity: 0.3; }
}
.cta-btn-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200%; height: 300%;
  background: radial-gradient(ellipse, rgba(78,205,196,0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaGlowPulse 3s ease-in-out infinite;
}
@keyframes ctaGlowPulse {
  0%,100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%     { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
.story-cta__btn {
  position: relative; z-index: 1;
  display: inline-flex; gap: 8px;
  font-size: 1.05rem; padding: 14px 32px;
  box-shadow: 0 0 30px rgba(78,205,196,0.2), 0 0 60px rgba(78,205,196,0.08);
  transition: box-shadow 0.4s, transform 0.3s;
}
.story-cta__btn:hover {
  box-shadow: 0 0 40px rgba(78,205,196,0.35), 0 0 80px rgba(78,205,196,0.15);
  transform: translateY(-2px);
}
.cta-sparkles { position: absolute; inset: -40px; pointer-events: none; }
.cta-sparkle {
  position: absolute; width: 4px; height: 4px;
  border-radius: 50%; background: var(--teal-400); opacity: 0;
}
.cta-sparkle:nth-child(1) { top:10%; left:5%; }
.cta-sparkle:nth-child(2) { top:5%;  left:40%; background:#a78bfa; }
.cta-sparkle:nth-child(3) { top:15%; left:85%; }
.cta-sparkle:nth-child(4) { top:50%; left:95%; background:#a78bfa; }
.cta-sparkle:nth-child(5) { top:85%; left:80%; }
.cta-sparkle:nth-child(6) { top:90%; left:30%; background:#a78bfa; }
.cta-sparkle:nth-child(7) { top:60%; left:2%; }
.cta-sparkle:nth-child(8) { top:30%; left:92%; background:#a78bfa; }
@keyframes ctaSparkle {
  0%,100% { opacity:0; transform: scale(0) translateY(0); }
  20%     { opacity:1; transform: scale(1); }
  50%     { opacity:0.8; transform: scale(1.5) translateY(-8px); }
  80%     { opacity:0; transform: scale(0.5) translateY(-16px); }
}

/* ── Intro / Eyebrow ──────────────────────────────── */
.story-intro__eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-500); margin-bottom: 14px;
  position: relative;
}
.story-intro__eyebrow::before,
.story-intro__eyebrow::after {
  content: ''; position: absolute; top: 50%;
  width: 36px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-500));
}
.story-intro__eyebrow::before { right: calc(100% + 12px); }
.story-intro__eyebrow::after  { left: calc(100% + 12px); transform: scaleX(-1); }

.story-intro__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 800; line-height: 1.12;
  color: var(--white); margin-bottom: 20px;
}
.story-intro__accent {
  background: linear-gradient(135deg, var(--teal-400), #a78bfa, var(--teal-500));
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: storyGrad 6s ease infinite;
}
@keyframes storyGrad {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.story-intro__text {
  font-size: 1rem; line-height: 1.75;
  color: var(--text-muted); max-width: 640px;
}

/* ── Values Grid ──────────────────────────────────── */
.story-values__heading {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  font-weight: 800; color: var(--white);
  text-align: left; margin-bottom: 16px;
}
.story-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.story-value {
  position: relative; padding: 16px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15,23,42,0.5), rgba(20,30,50,0.4));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(78,205,196,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  overflow: hidden; text-align: left;
}
.story-value::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  border-radius: 3px 3px 0 0; opacity: 0;
  transition: opacity 0.4s;
}
.story-value:hover::before { opacity: 1; }
.story-value:hover {
  transform: translateY(-3px);
  border-color: rgba(78,205,196,0.15);
  box-shadow: 0 10px 32px rgba(0,0,0,0.2);
}
.story-value:nth-child(1)::before { background: linear-gradient(90deg, #4ecdc4, transparent); }
.story-value:nth-child(2)::before { background: linear-gradient(90deg, #a78bfa, transparent); }
.story-value:nth-child(3)::before { background: linear-gradient(90deg, #e8c54a, transparent); }
.story-value:nth-child(4)::before { background: linear-gradient(90deg, #34d399, transparent); }
.story-value:nth-child(5)::before { background: linear-gradient(90deg, #f472b6, transparent); }
.story-value:nth-child(6)::before { background: linear-gradient(90deg, #22d3ee, transparent); }
.story-value__icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; transition: transform 0.4s;
}
.story-value:hover .story-value__icon { transform: scale(1.1) rotate(-3deg); }
.story-value__icon svg { width: 18px; height: 18px; }
.story-value__icon--teal   { background: rgba(78,205,196,0.12);  color: #4ecdc4; }
.story-value__icon--purple { background: rgba(167,139,250,0.12); color: #a78bfa; }
.story-value__icon--gold   { background: rgba(232,197,74,0.12);  color: #e8c54a; }
.story-value__icon--green  { background: rgba(52,211,153,0.12);  color: #34d399; }
.story-value__icon--pink   { background: rgba(244,114,182,0.12); color: #f472b6; }
.story-value__icon--cyan   { background: rgba(34,211,238,0.12);  color: #22d3ee; }
.story-value__title {
  font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 700;
  color: var(--white); margin-bottom: 3px;
}
.story-value__text {
  font-size: 0.78rem; line-height: 1.55;
  color: var(--text-muted);
}

/* ── CTA Quote ────────────────────────────────────── */
.story-cta__quote {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600; font-style: italic;
  color: rgba(160,216,207,0.65);
  max-width: 480px; margin: 0 auto 16px;
  line-height: 1.6; position: relative;
}
.story-cta__quote::before {
  content: ''; display: block;
  width: 50px; height: 3px;
  margin: 0 auto 12px; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal-500), #a78bfa);
}

/* ═══════════════════════════════════════════════════════════
   STAFF TEAM — Modern Cards with Merged Roles & Quotes
   ═══════════════════════════════════════════════════════════ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  justify-items: center;
}
.staff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 30, 46, 0.65), rgba(11, 21, 32, 0.85));
  border: 1px solid rgba(78, 205, 196, 0.08);
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  width: 100%;
  overflow: hidden;
}
.staff-card__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.08) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity .35s;
  opacity: 0;
}
.staff-card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 205, 196, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(78, 205, 196, 0.06);
}
.staff-card:hover .staff-card__glow {
  opacity: 1;
}
.staff-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(78, 205, 196, 0.15);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--navy-500);
  transition: border-color .35s, box-shadow .35s;
  position: relative;
  z-index: 1;
}
.staff-card:hover .staff-card__avatar {
  border-color: rgba(78, 205, 196, 0.45);
  box-shadow: 0 0 16px rgba(78, 205, 196, 0.15);
}
.staff-card__name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  line-height: 1.3;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.staff-card__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.staff-member__role {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.staff-member__role--admin {
  background: rgba(232, 197, 74, 0.15);
  color: var(--gold-400);
  border: 1px solid rgba(232, 197, 74, 0.25);
}
.staff-member__role--mod {
  background: rgba(78, 205, 196, 0.12);
  color: var(--teal-400);
  border: 1px solid rgba(78, 205, 196, 0.2);
}
.staff-member__role--helper {
  background: rgba(243, 156, 18, 0.12);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.2);
}
.staff-member__role--host {
  background: rgba(155, 89, 182, 0.12);
  color: #b97fd0;
  border: 1px solid rgba(155, 89, 182, 0.2);
}
.staff-member__role--priest {
  background: rgba(85, 172, 238, 0.12);
  color: #55acee;
  border: 1px solid rgba(85, 172, 238, 0.2);
}
.staff-member__quote {
  font-size: 0.78rem;
  color: rgba(200, 215, 230, 0.6);
  font-style: italic;
  line-height: 1.45;
  max-width: 170px;
  margin-top: 2px;
  position: relative;
  z-index: 1;
  word-break: break-word;
}
/* Legacy compatibility */
.staff-member__info { display: none; }

/* ═══════════════════════════════════════════════════════════
   TOP COMMUNITY TABS (Members + Families)
   ═══════════════════════════════════════════════════════════ */
.top-tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
  border-bottom: 1px solid rgba(78, 205, 196, 0.1);
}
.top-tabs::-webkit-scrollbar { display: none; }
.top-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 28px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.top-tab:hover {
  color: var(--mint-200);
  background: rgba(78, 205, 196, 0.03);
}
.top-tab--active {
  color: var(--gold-400);
  border-bottom-color: var(--gold-400);
}
.top-tab svg { flex-shrink: 0; }

.top-panel {
  display: none;
}
.top-panel--active {
  display: block;
  animation: topPanelIn 0.4s ease;
}
@keyframes topPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   PODIUM — Top 5 Members (open layout)
   ═══════════════════════════════════════════════════════════ */
.podium {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 24px 32px;
  padding: 20px 0 10px;
}
/* Row break after top 3 */
.podium::after {
  content: "";
  flex-basis: 100%;
  height: 0;
  order: 4;
}

.podium-card {
  position: relative;
  background: transparent;
  border: none;
  text-align: center;
  transition: transform 0.3s ease;
  padding: 16px 10px 8px;
  flex: 0 0 160px;
  max-width: 180px;
}
.podium-card:hover {
  transform: translateY(-5px);
}
/* Remove all old ::before top stripes */
.podium-card::before { display: none; }

/* ── Place order: 2-1-3, then 4-5 on second row ── */
.podium-card--1 { order: 2; flex: 0 0 190px; max-width: 210px; }
.podium-card--2 { order: 1; }
.podium-card--3 { order: 3; }
.podium-card--4 { order: 5; flex: 0 0 160px; max-width: 180px; }
.podium-card--5 { order: 6; flex: 0 0 160px; max-width: 180px; }

/* ── Rank badge ── */
.podium-card__rank {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  margin: 0 auto 6px;
  color: var(--navy-900);
  position: relative;
  z-index: 2;
}
.podium-card--1 .podium-card__rank {
  width: 38px; height: 38px; font-size: 1.05rem;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 0 18px rgba(232, 197, 74, 0.35);
}
.podium-card--2 .podium-card__rank {
  background: linear-gradient(135deg, #d4d4d4, #a0a0a0);
}
.podium-card--3 .podium-card__rank {
  background: linear-gradient(135deg, #cd9b61, #b8722d);
}
.podium-card--4 .podium-card__rank,
.podium-card--5 .podium-card__rank {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(78, 205, 196, 0.15));
  color: var(--white);
}

/* ── Avatar with glow ring ── */
.podium-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: block;
  object-fit: cover;
  background: var(--navy-600);
  border: 2px solid rgba(78, 205, 196, 0.15);
  position: relative;
}
.podium-card--1 .podium-card__avatar {
  width: 92px; height: 92px;
  border: 3px solid rgba(232, 197, 74, 0.5);
  box-shadow: 0 0 30px rgba(232, 197, 74, 0.2), 0 0 60px rgba(232, 197, 74, 0.08);
}
.podium-card--2 .podium-card__avatar {
  border-color: rgba(192, 192, 192, 0.4);
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.12);
}
.podium-card--3 .podium-card__avatar {
  border-color: rgba(205, 127, 50, 0.4);
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.12);
}
.podium-card--4 .podium-card__avatar,
.podium-card--5 .podium-card__avatar {
  width: 64px; height: 64px;
  border-color: rgba(78, 205, 196, 0.25);
  box-shadow: 0 0 16px rgba(78, 205, 196, 0.1);
}

/* ── Name ── */
.podium-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podium-card--1 .podium-card__name { font-size: 1.05rem; }

/* ── Level ── */
.podium-card__level {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.podium-card--1 .podium-card__level { color: var(--gold-400); font-size: 0.85rem; }
.podium-card--2 .podium-card__level { color: #c0c0c0; }
.podium-card--3 .podium-card__level { color: #cd9b61; }
.podium-card--4 .podium-card__level,
.podium-card--5 .podium-card__level { color: var(--teal-400); font-size: 0.78rem; }
.podium-card--4 .podium-card__name,
.podium-card--5 .podium-card__name { font-size: 0.9rem; }

/* ── Stats row ── */
.podium-card__stats {
  display: flex;
  gap: 14px;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.podium-card__stat-val {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--mint-200);
}

/* ═══════════════════════════════════════════════════════════
   FAMILIES (clean row layout)
   ═══════════════════════════════════════════════════════════ */
.families-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.family-card {
  position: relative;
  background: rgba(15, 30, 46, 0.4);
  border: 1px solid rgba(78, 205, 196, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
  overflow: hidden;
}
.family-card::before { display: none; }
.family-card:hover {
  background: rgba(78, 205, 196, 0.04);
  border-color: rgba(78, 205, 196, 0.15);
  transform: translateX(4px);
}

.family-card__rank {
  position: relative;
  top: auto; right: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
  background: rgba(78, 205, 196, 0.1);
  color: var(--teal-400);
  border: 1px solid rgba(78, 205, 196, 0.15);
}
.family-card:nth-child(1) .family-card__rank {
  background: rgba(232, 197, 74, 0.12);
  color: var(--gold-400);
  border-color: rgba(232, 197, 74, 0.25);
}
.family-card:nth-child(2) .family-card__rank {
  background: rgba(192, 192, 192, 0.1);
  color: #c0c0c0;
  border-color: rgba(192, 192, 192, 0.2);
}
.family-card:nth-child(3) .family-card__rank {
  background: rgba(205, 127, 50, 0.1);
  color: #cd7f32;
  border-color: rgba(205, 127, 50, 0.2);
}

.family-card__body {
  flex: 1;
  min-width: 0;
}
.family-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 2px;
}
.family-card__motto {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.family-card__partners {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.family-card__partner {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--mint-200);
}
.family-card__partner img {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--teal-700);
}
.family-card__heart {
  color: var(--coral-400);
  display: flex;
  align-items: center;
}
.family-card__heart svg { width: 14px; height: 14px; }

.family-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.family-card__meta strong {
  color: var(--teal-400);
  font-family: var(--font-display);
  font-size: 0.82rem;
}
/* Legacy compat — hide old footer */
.family-card__footer { display: none; }

/* ── Inline Currency Icon ──────────────────────────────── */
.currency-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  object-fit: contain;
}
.currency-icon--lg {
  width: 1.3em;
  height: 1.3em;
  vertical-align: -0.2em;
}

/* ═══════════════════════════════════════════════════════════
   ECONOMY & RECORDS — Open Layout
   ═══════════════════════════════════════════════════════════ */
.records-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: stretch;
}
.records-block {
  display: flex;
  flex-direction: column;
}
.records-block:first-child {
  gap: 0;
}
.records-block:first-child .records-list {
  flex: 1;
}
.records-block:last-child {
  gap: 20px;
}
.records-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--mint-200);
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(78, 205, 196, 0.15);
}
.records-block__title--teal {
  color: var(--white);
}
.records-block__title--teal .achievement-card__emoji {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: none;
  color: var(--teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.records-block__title--teal .achievement-card__emoji svg {
  width: 18px;
  height: 18px;
}
.records-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.records-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  transition: all .2s ease;
}
.records-row:hover {
  background: rgba(232, 197, 74, 0.06);
}
.records-row:first-child  { border-left-color: #e8c54a; background: rgba(232, 197, 74, 0.05); }
.records-row:nth-child(2) { border-left-color: #c0c0c0; background: rgba(192, 192, 192, 0.04); }
.records-row:nth-child(3) { border-left-color: #cd7f32; background: rgba(205, 127, 50, 0.04); }
.records-row__rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  min-width: 28px;
  text-align: center;
}
.records-row:first-child .records-row__rank { color: #e8c54a; }
.records-row:nth-child(2) .records-row__rank { color: #c0c0c0; }
.records-row:nth-child(3) .records-row__rank { color: #cd7f32; }
.records-row__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--navy-500);
  border: 2px solid rgba(255,255,255,0.08);
}
.records-row:first-child .records-row__avatar { border-color: rgba(232, 197, 74, 0.3); }
.records-row__name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.records-row__value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-400);
  font-size: 0.88rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 12px;
}

/* ═══════════════════════════════════════════════════════════
   ACHIEVEMENTS — Open Layout
   ═══════════════════════════════════════════════════════════ */
.achievements-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.achievement-card {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  transition: none;
  overflow: visible;
}
.achievement-card::before { display: none; }
.achievement-card:hover {
  border-color: transparent;
  transform: none;
  box-shadow: none;
}
.achievement-card:hover::before { display: none; }
.achievement-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(78, 205, 196, 0.12);
}
.achievement-card__emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(78, 205, 196, 0.1);
  color: var(--teal-400);
  flex-shrink: 0;
}
.achievement-card__emoji svg {
  width: 18px;
  height: 18px;
}
.achievement-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}
.achievement-card__desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.achievement-list { display: flex; flex-direction: column; gap: 3px; }
.achievement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: transparent;
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(78, 205, 196, 0.15);
  transition: background var(--transition);
}
.achievement-row:hover { background: rgba(78, 205, 196, 0.06); }
.achievement-row__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.achievement-row__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--navy-500);
  border: 2px solid rgba(255,255,255,0.08);
}
.achievement-row__name {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--mint-200);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.achievement-row__value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-400);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   BIRTHDAYS (inline rows)
   ═══════════════════════════════════════════════════════════ */
.birthdays-strip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 480px;
  margin: 0 auto;
}
.birthday-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 30, 46, 0.4);
  border: 1px solid rgba(243, 156, 18, 0.08);
  border-radius: 10px;
  padding: 10px 16px;
  transition: all 0.25s ease;
}
.birthday-card:hover {
  background: rgba(243, 156, 18, 0.04);
  border-color: rgba(243, 156, 18, 0.2);
  transform: translateX(4px);
}
.birthday-card__cake {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(243, 156, 18, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(243, 156, 18, 0.8);
}
.birthday-card__cake svg {
  width: 16px;
  height: 16px;
}
.birthday-card__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: block;
  border: 2px solid rgba(243, 156, 18, 0.25);
  object-fit: cover;
  background: var(--navy-500);
  flex-shrink: 0;
}
.birthday-card__name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.birthday-card__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-900);
  padding: 0 0 28px; position: relative;
}
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; padding-top: 20px;
}
.footer__left { display: flex; flex-direction: column; gap: 4px; }
.footer__brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; color: var(--teal-400);
}
.footer__copy { color: var(--text-muted); font-size: 0.8rem; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { color: var(--mint-300); font-size: 0.85rem; font-weight: 500; }
.footer__links a:hover { color: var(--white); }

/* ── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; left: auto;
  background: var(--bg-card-solid);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 20px;
  font-size: 0.88rem; z-index: 200;
  animation: slideIn 0.3s ease; max-width: min(360px, calc(100vw - 48px));
  color: var(--mint-200);
}
.toast--success { border-color: var(--green-500); }
.toast--error { border-color: var(--red-500); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-500); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal-800); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__auth { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { padding: 0 12px; gap: 10px; height: 56px; }
  .toast { left: 14px; right: 14px; max-width: none; }
  .nav__username { display: none; }
  .mob-menu__panel { top: 56px; height: calc(100% - 56px); }
  .container { padding: 0 14px; }
  .hero { min-height: auto; padding: 80px 16px 120px; overflow: hidden; }
  .hero__waves { z-index: 1; pointer-events: none; overflow: hidden; }
  .hero__stats { position: relative; z-index: 12; }
  .hero__content { position: relative; z-index: 12; }
  .hero__title { font-size: 2.5rem; }
  .hero__sub { font-size: 0.95rem; margin-bottom: 20px; }
  .hero__silhouettes { width: 280px; bottom: 18%; }
  .hero__glow { width: 260px; height: 260px; top: 12%; }
  .hero__rays { width: 280px; height: 280px; top: 10%; }
  .hero__avatar-wrap { width: 90px; height: 90px; }
  .hero__stats { gap: 10px; margin-top: 32px; width: 100%; box-sizing: border-box; }
  .stat-card { min-width: 0; flex: 1; padding: 14px 10px; }
  .stat-card__value { font-size: 1.5rem; }
  .stat-card__label { font-size: 0.72rem; }
  .hero__actions { flex-direction: column; align-items: center; gap: 10px; }
  .hero__actions .btn--lg { padding: 12px 24px; font-size: 0.88rem; width: 100%; max-width: 100%; justify-content: center; box-sizing: border-box; }
  /* Game Hub v3 responsive */
  .gh-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .gh-slots__bar { width: 100%; }
  .gh-slots { width: 100%; }
  .gh-toolbar { flex-direction: column; gap: 8px; }
  .gh-toolbar__input { min-width: 0; width: 100%; }
  .gh-toolbar__sep { display: none; }
  .gh-toolbar__select { width: 100%; }
  .gh-toolbar__btn { width: 100%; justify-content: center; }
  .gh-tabs { overflow-x: auto; gap: 0; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
  .gh-tabs::-webkit-scrollbar { display: none; }
  .gh-tabs__btn { flex-shrink: 0; padding: 10px 14px; font-size: 0.78rem; }
  .room-card { grid-template-columns: 4px 1fr; }
  .room-card__actions { grid-column: 1 / -1; padding: 10px 16px 14px; border-top: 1px solid rgba(78,205,196,0.05); }
  .room-card__body { flex-direction: column; align-items: flex-start; }
  .room-card__avatars { margin-top: 6px; }
  .room-card__actions { flex-wrap: wrap; gap: 6px; }
  .room-card__actions .btn { font-size: 0.75rem; padding: 6px 10px; white-space: nowrap; }
  .mono-wrapper { grid-template-columns: 1fr; }
  .mb-grid { max-width: 100%; font-size: 0.82em; }
  .section { padding: 28px 0; }
  .section--pulse { padding-top: 16px; }
  .section--pulse .container { display: flex; flex-direction: column; align-items: center; }
  .section__title { font-size: 1.4rem; gap: 8px; }
  .section__title .section__icon { width: 22px; height: 22px; }
  .section__sub { font-size: 0.85rem; margin-bottom: 24px; }
  .pulse-row { grid-template-columns: repeat(4, 1fr); width: 100%; }
  .pulse-stat { padding: 16px 10px; }
  .pulse-stat__num { font-size: 1.4rem; }
  .pulse-stat__icon { width: 34px; height: 34px; }
  .pulse-stat__icon svg { width: 15px; height: 15px; }
  .pulse-header__line { max-width: 100px; }
  .pulse-header__title { font-size: 1.3rem; }
  .podium { gap: 8px; }
  .podium-card { flex: 0 0 130px; max-width: 150px; padding: 14px 8px 8px; }
  .podium-card--1 { flex: 0 0 160px; max-width: 180px; }
  .podium-card--4, .podium-card--5 { flex: 0 0 120px; max-width: 140px; }
  .podium-card__avatar { width: 60px; height: 60px; }
  .podium-card--1 .podium-card__avatar { width: 76px; height: 76px; }
  .podium-card--4 .podium-card__avatar,
  .podium-card--5 .podium-card__avatar { width: 48px; height: 48px; }
  .podium-card__rank { width: 28px; height: 28px; font-size: 0.85rem; }
  .podium-card--1 .podium-card__rank { width: 32px; height: 32px; font-size: 0.95rem; }
  .top-tabs { gap: 0; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; margin-left: 0; margin-right: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
  .top-tabs::-webkit-scrollbar { display: none; }
  .top-tab { padding: 10px 12px 12px; font-size: 0.76rem; flex-shrink: 0; }
  .family-card { padding: 14px 16px; gap: 12px; }
  .family-card__name { font-size: 0.95rem; }
  .family-card__partner img { width: 20px; height: 20px; }
  .ft-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ft-card__inner { padding: 24px 20px 22px; }
  /* About section mobile — single column, no sticky scenes */
  .section--about { padding: 40px 0 !important; overflow: hidden !important; }
  .about-scroll { height: auto; }
  .about-sticky { position: relative; height: auto; overflow: visible; }
  .about-columns { grid-template-columns: 1fr; gap: 28px; }
  .about-sidebar { text-align: center; }
  .about-viewport { overflow-wrap: break-word; word-break: break-word; }
  .story-block__content { overflow-wrap: break-word; word-break: break-word; }
  .story-block__text { overflow-wrap: break-word; word-break: break-word; }
  .oldie-card__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .oldie-card__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.7rem; }
  .origin-oldies__grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .oldie-card { padding: 10px 10px; gap: 8px; }
  .oldie-card__avatar { width: 32px; height: 32px; }
  .about-sidebar .story-intro__eyebrow,
  .about-sidebar .story-intro__heading,
  .about-sidebar .story-intro__text { text-align: center; }
  .about-sidebar .story-intro__text { max-width: 100%; }
  .about-steps { display: none; }
  .about-viewport__bg { display: none; }
  .about-viewport { min-height: unset; overflow: visible; }
  .about-scene {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
    margin-bottom: 28px;
  }
  .about-scene:last-child { margin-bottom: 0; }
  .about-scene--exit {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .sv-stagger {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition-delay: 0s !important;
  }
  .about-cta-inner .cta-counter,
  .about-cta-inner .story-cta__quote,
  .about-cta-inner .cta-btn-wrap {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .about-cta-inner .cta-ring { opacity: 0.5 !important; transform: scale(1); border-color: rgba(78,205,196,0.1) !important; }
  .about-cta-inner .cta-sparkle { animation: ctaSparkle 3s calc(var(--i) * 0.35s) ease-in-out infinite !important; }
  .milestone { padding: 18px 20px; }
  .milestone__badge { width: 34px; height: 34px; font-size: 0.85rem; }
  .milestone__title { font-size: 1rem; }
  .milestone__text { font-size: 0.85rem; }
  .story-values__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .story-value { padding: 14px 12px; overflow: hidden; }
  .story-value__title { font-size: 0.82rem; margin-bottom: 4px; word-break: break-word; }
  .story-value__text { font-size: 0.72rem; line-height: 1.5; }
  .story-block__content { flex-direction: column; padding: 24px 26px 24px 28px; gap: 14px; }
  .story-intro__heading { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .story-intro__text { font-size: 0.95rem; max-width: 100%; }
  .story-block__title { font-size: 1.2rem; }
  .story-block__text { font-size: 0.9rem; }
  .story-block__icon { width: 44px; height: 44px; border-radius: 12px; }
  .story-block__icon svg { width: 22px; height: 22px; }
  .origin-oldies__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .oldie-card { padding: 12px 14px; }
  .oldie-card__avatar { width: 36px; height: 36px; }
  .oldie-card__name { font-size: 0.82rem; }
  .story-values__heading { font-size: 1.4rem; margin-bottom: 16px; }
  .story-value__icon { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 10px; }
  .story-value__icon svg { width: 18px; height: 18px; }
  .story-value__title { font-size: 0.9rem; margin-bottom: 4px; }
  .story-value__text { font-size: 0.78rem; line-height: 1.5; }
  .cta-rings { width: 280px; height: 280px; }
  .cta-counter__number { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .records-layout { grid-template-columns: 1fr; gap: 24px; }
  .achievements-grid { flex-direction: column; }
  .staff-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .staff-card { padding: 20px 10px 16px; }
  .staff-card__avatar { width: 56px; height: 56px; }
  .staff-card__name { font-size: 0.82rem; max-width: 130px; }
  .staff-member__role { font-size: 0.55rem; padding: 2px 7px; }
  .staff-member__quote { font-size: 0.72rem; max-width: 130px; }
  .wave-sep { height: 35px; }
  .wave-sep--footer { height: 30px; }
  .section--deep { padding-top: 10px; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .footer__left { align-items: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 14px; }
  .gh-maintenance { font-size: 0.82rem; padding: 10px 14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 10px; }
  .hero { padding: 70px 12px 100px; overflow: hidden; }
  .hero__title { font-size: 2rem; }
  .hero__sub { font-size: 0.85rem; max-width: 280px; }
  .hero__stats { gap: 8px; margin-top: 24px; width: 100%; }
  .stat-card { padding: 10px 6px; border-radius: 10px; }
  .stat-card__value { font-size: 1.3rem; }
  .stat-card__label { font-size: 0.65rem; }
  .stat-card__dot { width: 6px; height: 6px; top: 7px; right: 7px; }
  .hero__silhouettes { width: 220px; bottom: 20%; }
  .hero__glow { width: 200px; height: 200px; }
  .hero__rays { width: 220px; height: 220px; }
  .hero__avatar-wrap { width: 76px; height: 76px; }
  .pulse-row { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .pulse-stat { padding: 14px 8px; }
  .section--pulse .container { display: flex; flex-direction: column; align-items: center; }
  .pulse-header { width: 100%; }
  .section--pulse .section__sub { text-align: center; width: 100%; }
  .pulse-stat__num { font-size: 1.25rem; }
  .pulse-stat__num--sm { font-size: 0.95rem; }
  .pulse-stat__icon { width: 30px; height: 30px; }
  .pulse-stat__icon svg { width: 14px; height: 14px; }
  .pulse-stat__lbl { font-size: 0.62rem; }
  .pulse-header__line { max-width: 70px; }
  .pulse-header__title { font-size: 1.1rem; }
  .section--pulse .container { margin-bottom: 0; }
  .section--deep { padding-top: 8px; }
  /* Fix dividers for 2-col mobile layout */
  .pulse-stat + .pulse-stat::before { display: block; }
  .pulse-stat:nth-child(odd)::before { display: none; }
  .pulse-stat:nth-child(5)::before { display: none; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .staff-card { padding: 18px 8px 14px; border-radius: 14px; }
  .staff-card__avatar { width: 48px; height: 48px; border-width: 2px; }
  .staff-card__name { font-size: 0.76rem; max-width: 110px; }
  .staff-member__role { font-size: 0.52rem; padding: 2px 6px; }
  .staff-member__quote { font-size: 0.68rem; max-width: 110px; }
  .podium { flex-direction: row; align-items: flex-end; gap: 4px; padding: 10px 0; flex-wrap: wrap; justify-content: center; }
  .podium-card { flex: 1; max-width: 33%; width: auto; padding: 10px 4px 6px; }
  .podium-card--1 { flex: 1.15; max-width: 36%; }
  .podium-card--1, .podium-card--2, .podium-card--3 { order: unset; }
  .podium-card--1 { order: 2; }
  .podium-card--2 { order: 1; }
  .podium-card--3 { order: 3; }
  .podium::after { order: 4; }
  .podium-card--4 { order: 5; flex: 0 0 42%; max-width: 42%; }
  .podium-card--5 { order: 6; flex: 0 0 42%; max-width: 42%; }
  .podium-card__rank { width: 24px; height: 24px; font-size: 0.75rem; margin-bottom: 4px; }
  .podium-card--1 .podium-card__rank { width: 28px; height: 28px; font-size: 0.82rem; }
  .podium-card__avatar { width: 44px; height: 44px; margin-bottom: 6px; }
  .podium-card--1 .podium-card__avatar { width: 56px; height: 56px; }
  .podium-card--4 .podium-card__avatar,
  .podium-card--5 .podium-card__avatar { width: 38px; height: 38px; }
  .podium-card__name { font-size: 0.72rem; }
  .podium-card--1 .podium-card__name { font-size: 0.78rem; }
  .podium-card__level { font-size: 0.62rem; margin-bottom: 4px; }
  .podium-card--1 .podium-card__level { font-size: 0.68rem; }
  .podium-card__stats { gap: 6px; font-size: 0.58rem; }
  .podium-card__stat-val { font-size: 0.68rem; }
  .family-card { flex-direction: row; padding: 12px 14px; gap: 10px; }
  .family-card__motto { display: none; }
  .family-card__partners { display: none; }
  .family-card__meta { font-size: 0.7rem; }
  .top-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; scrollbar-width: none; -ms-overflow-style: none; width: 100%; max-width: 100%; box-sizing: border-box; }
  .top-tabs::-webkit-scrollbar { display: none; }
  .top-tab { padding: 8px 10px 10px; font-size: 0.72rem; gap: 4px; white-space: nowrap; flex-shrink: 0; }
  .top-tab svg { width: 13px; height: 13px; }
  .ft-grid { grid-template-columns: 1fr; gap: 14px; }
  .ft-card__inner { padding: 20px 18px 18px; }
  .ft-card__title { font-size: 1rem; }
  .ft-card__text { font-size: 0.82rem; }
  .story-values__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .story-value { padding: 12px 10px; border-radius: 14px; overflow: hidden; }
  .story-value__title { font-size: 0.78rem; margin-bottom: 3px; word-break: break-word; overflow-wrap: break-word; }
  .story-value__text { font-size: 0.68rem; line-height: 1.4; overflow-wrap: break-word; }
  .story-intro__heading { font-size: 1.5rem; }
  .story-intro__text { font-size: 0.85rem; overflow-wrap: break-word; }
  .story-values__heading { font-size: 1.15rem; margin-bottom: 12px; }
  .story-value__icon { width: 32px; height: 32px; border-radius: 8px; margin-bottom: 8px; }
  .story-value__icon svg { width: 16px; height: 16px; }
  .cta-rings { width: 220px; height: 220px; }
  .cta-counter__number { font-size: 2.2rem; }
  .cta-counter__label { font-size: 0.85rem; }
  .story-cta__quote { font-size: 0.85rem; margin-bottom: 16px; }
  .story-cta__btn { font-size: 0.88rem; padding: 12px 24px; }
  .milestone { padding: 14px 16px; gap: 12px; }
  .milestone__badge { width: 30px; height: 30px; font-size: 0.8rem; border-radius: 8px; }
  .milestone__title { font-size: 0.92rem; }
  .milestone__text { font-size: 0.78rem; overflow-wrap: break-word; }
  .story-block__content { padding: 22px 22px 22px 24px; gap: 12px; box-sizing: border-box; }
  .story-block__title { font-size: 1.05rem; }
  .story-block__text { font-size: 0.82rem; line-height: 1.65; overflow-wrap: break-word; }
  .origin-oldies__grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .oldie-card { padding: 10px 8px; gap: 6px; }
  .oldie-card__avatar { width: 28px; height: 28px; }
  .oldie-card__name { font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .oldie-card__meta { font-size: 0.65rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pulse-grid { gap: 10px; }
  .pulse-card { padding: 20px 12px 18px; border-radius: 12px; }
  .pulse-card__value { font-size: 1.6rem; }
  .pulse-header__line { display: none; }
  .pulse-header__title { font-size: 1.2rem; }
  .section__title { font-size: 1.2rem; }
  .section__sub { font-size: 0.8rem; margin-bottom: 18px; }
  .wave-sep { height: 28px; }
  .wave-sep--footer { height: 22px; }
  .records-block__title { font-size: 0.9rem; }
  .achievement-card { padding: 12px; }
  .achievement-card__title { font-size: 0.85rem; }
  .achievement-card__desc { font-size: 0.75rem; }
  .gh-maintenance { font-size: 0.78rem; padding: 8px 12px; gap: 8px; }
  .gh-empty__title { font-size: 0.95rem; }
  .gh-empty__sub { font-size: 0.78rem; }
}

/* ── Extra small screens (≤360px) ─────────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 8px; }
  .hero { padding: 56px 8px 70px; }
  .hero__title { font-size: 1.7rem; }
  .hero__sub { font-size: 0.8rem; max-width: 240px; }
  .hero__avatar-wrap { width: 64px; height: 64px; }
  .hero__stats { gap: 6px; }
  .stat-card { padding: 8px 4px; border-radius: 8px; }
  .stat-card__value { font-size: 1.1rem; }
  .stat-card__label { font-size: 0.6rem; }
  .section__title { font-size: 1.05rem; }
  .section__sub { font-size: 0.75rem; }
  .pulse-row { grid-template-columns: repeat(2, 1fr); }
  .pulse-stat { padding: 10px 6px; }
  .pulse-stat__num { font-size: 1.1rem; }
  .pulse-stat__lbl { font-size: 0.58rem; }
  .pulse-stat__icon { width: 26px; height: 26px; }
  .pulse-stat__icon svg { width: 12px; height: 12px; }
  .pulse-header__title { font-size: 1rem; }
  .top-tab { padding: 8px 10px 10px; font-size: 0.72rem; gap: 4px; }
  .top-tab svg { width: 12px; height: 12px; }
  .podium-card__name { font-size: 0.65rem; }
  .podium-card__avatar { width: 38px; height: 38px; }
  .podium-card--1 .podium-card__avatar { width: 48px; height: 48px; }
  .story-values__grid { grid-template-columns: 1fr; gap: 8px; }
  .story-value { padding: 12px 10px; }
  .story-block__content { padding: 18px 18px 18px 20px; }
  .milestone { padding: 12px 12px; gap: 10px; }
  .milestone__title { font-size: 0.85rem; }
  .milestone__text { font-size: 0.72rem; }
  .staff-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .staff-member { padding: 10px 4px 8px; }
  .staff-member__avatar { width: 36px; height: 36px; }
  .staff-member__name { font-size: 0.65rem; max-width: 70px; }
  .staff-member__role { font-size: 0.5rem; padding: 2px 5px; }
  .records-block__title { font-size: 0.82rem; }
  .achievement-card { padding: 10px; }
  .achievement-card__title { font-size: 0.78rem; }
  .achievement-card__desc { font-size: 0.68rem; }
  .footer__brand { font-size: 0.9rem; }
  .footer__copy { font-size: 0.65rem; }
  .footer__links { gap: 10px; font-size: 0.75rem; }
  .hero__actions .btn--lg { padding: 10px 16px; font-size: 0.82rem; }
  .gh-maintenance { font-size: 0.72rem; padding: 6px 10px; }
  .wave-sep { height: 22px; }
  .wave-sep--footer { height: 16px; }
}

/* ── Tiny screens (≤300px) ─────────────────────────────── */
@media (max-width: 300px) {
  .container { padding: 0 6px; }
  .nav__inner { padding: 0 8px; gap: 6px; height: 48px; }
  .nav__logo-text { font-size: 1rem; }
  .nav__burger { width: 32px; height: 32px; padding: 5px; }
  .hero { padding: 50px 6px 60px; }
  .hero__title { font-size: 1.4rem; }
  .hero__sub { font-size: 0.72rem; max-width: 200px; }
  .hero__avatar-wrap { width: 56px; height: 56px; }
  .hero__stats { gap: 4px; margin-top: 16px; }
  .stat-card { padding: 6px 3px; border-radius: 6px; }
  .stat-card__value { font-size: 0.95rem; }
  .stat-card__label { font-size: 0.55rem; }
  .section { padding: 20px 0; }
  .section__title { font-size: 0.95rem; gap: 6px; }
  .section__title .section__icon { width: 18px; height: 18px; }
  .section__sub { font-size: 0.68rem; margin-bottom: 14px; }
  .pulse-row { grid-template-columns: repeat(2, 1fr); }
  .pulse-stat { padding: 8px 4px; }
  .pulse-stat__num { font-size: 0.95rem; }
  .pulse-stat__lbl { font-size: 0.52rem; }
  .pulse-stat__icon { width: 22px; height: 22px; }
  .pulse-stat__icon svg { width: 10px; height: 10px; }
  .pulse-header__title { font-size: 0.88rem; }
  .top-tab { padding: 6px 8px 8px; font-size: 0.65rem; gap: 3px; }
  .top-tab svg { width: 10px; height: 10px; }
  .podium-card { padding: 8px 3px 5px; }
  .podium-card__avatar { width: 32px; height: 32px; }
  .podium-card--1 .podium-card__avatar { width: 40px; height: 40px; }
  .podium-card__name { font-size: 0.58rem; }
  .podium-card__rank { width: 20px; height: 20px; font-size: 0.65rem; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .hero__actions .btn--lg { padding: 8px 12px; font-size: 0.75rem; }
  .story-intro__heading { font-size: 1.2rem; }
  .story-intro__text { font-size: 0.78rem; }
  .milestone__badge { width: 24px; height: 24px; font-size: 0.7rem; }
  .cta-rings { width: 160px; height: 160px; }
  .cta-counter__number { font-size: 1.8rem; }
  .cta-counter__label { font-size: 0.72rem; }
  .story-cta__quote { font-size: 0.75rem; }
  .story-cta__btn { font-size: 0.78rem; padding: 10px 18px; }
}

/* ── Scroll Animations ─────────────────────────────────── */
.animate-target {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.animate-target.animate-in {
  opacity: 1;
  transform: translateY(0);
}
.animate-target:nth-child(2) { transition-delay: 0.08s; }
.animate-target:nth-child(3) { transition-delay: 0.16s; }
.animate-target:nth-child(4) { transition-delay: 0.24s; }
.animate-target:nth-child(5) { transition-delay: 0.32s; }
.animate-target:nth-child(6) { transition-delay: 0.40s; }
.animate-target:nth-child(7) { transition-delay: 0.48s; }
.animate-target:nth-child(8) { transition-delay: 0.56s; }

/* ── Section reveal animation ─────────────────────────── */
.section-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero entrance animation ──────────────────────────── */
.hero__content {
  animation: heroFadeIn 1s cubic-bezier(.4,0,.2,1) both;
}
.hero__stats {
  animation: heroFadeIn 1s 0.3s cubic-bezier(.4,0,.2,1) both;
}
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── Smooth hover lifts ───────────────────────────────── */
.pulse-card,
.story-value,
.stat-card {
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), border-color 0.35s, box-shadow 0.35s cubic-bezier(.4,0,.2,1);
}
.pulse-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(78, 205, 196, 0.12);
}
