/* ==========================================================================
   s|KYLIFE — premium gaming layer
   Loaded after main.css. Retunes the palette to neon purple / electric blue /
   cyan / gold and adds the cinematic hero, glass HUD cards and menu drawer.
   Existing components keep their class names, so every page inherits the look.
   ========================================================================== */

/* 1. Palette ----------------------------------------------------------------- */
:root {
  --ink: #05030d;
  --ink-soft: #070512;
  --panel: #0b0818;
  --panel-2: #120e26;
  --panel-3: #1b1438;

  --line: rgba(163, 148, 255, 0.16);
  --line-strong: rgba(190, 176, 255, 0.3);

  --text: #f3f0ff;
  --text-dim: #b6adcd;
  --text-faint: #8c82a9;

  --accent: #4f7dff;
  --accent-bright: #9db9ff;
  --accent-deep: #1c2a63;
  --accent-soft: #cbd8ff;

  --violet: #a855f7;
  --violet-bright: #d8b4fe;
  --violet-deep: #2b1050;
  --cyan: #2dd4ee;
  --cyan-bright: #a5f3fc;
  --gold: #f7c948;
  --gold-bright: #ffe49a;

  --emerald: #34d399;
  --emerald-deep: #0b4f3d;
  --warning: #f7c948;
  --rose: #fb7185;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 46px 110px -58px #000;
  --header-h: 78px;
  --font-body: "Manrope", "Noto Sans Sinhala", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grad-hot: linear-gradient(115deg, #a855f7, #6d5cff 46%, #2dd4ee);
  --grad-gold: linear-gradient(115deg, #ffe49a, #f7c948 55%, #e9a13b);
  --glow-violet: 0 0 40px -10px rgba(168, 85, 247, 0.65);
  --glow-cyan: 0 0 40px -10px rgba(45, 212, 238, 0.55);
}

/* 2. Background --------------------------------------------------------------- */
body {
  background: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(38% 38% at 18% 12%, rgba(168, 85, 247, 0.3), transparent 62%),
    radial-gradient(34% 34% at 84% 6%, rgba(45, 212, 238, 0.18), transparent 64%),
    radial-gradient(40% 42% at 72% 78%, rgba(79, 125, 255, 0.16), transparent 66%),
    radial-gradient(26% 30% at 6% 82%, rgba(247, 201, 72, 0.08), transparent 70%),
    linear-gradient(180deg, #05030d, #080513 48%, #04020a);
  animation: auroraDrift 34s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(90% 65% at 50% 0%, #000 0%, transparent 82%);
  mask-image: radial-gradient(90% 65% at 50% 0%, #000 0%, transparent 82%);
}

@keyframes auroraDrift {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  50% { transform: translate3d(1.5%, 1.5%, 0) scale(1.05); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.02); }
}

::selection { background: rgba(168, 85, 247, 0.5); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); }

.hero h1, .section-head h2, .page-head h1 {
  text-wrap: balance;
}

/* 3. Header ------------------------------------------------------------------ */
.topline {
  background: rgba(5, 3, 13, 0.9);
  border-bottom: 1px solid rgba(168, 85, 247, 0.16);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topline__dot { background: var(--cyan); box-shadow: 0 0 10px rgba(45, 212, 238, 0.9); }
.topline a:hover { color: var(--gold-bright); }

.site-header {
  background: rgba(6, 4, 15, 0.72);
  border-bottom: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: 0 30px 60px -44px #000;
  backdrop-filter: blur(22px) saturate(1.3);
}
.site-header::after {
  height: 1px;
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.75), rgba(45, 212, 238, 0.7), rgba(247, 201, 72, 0.55), transparent);
}
.site-header.is-scrolled {
  background: rgba(5, 3, 12, 0.92);
  box-shadow: 0 24px 50px -34px #000;
}

.brand__logo {
  border-radius: 16px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 0 1px rgba(45, 212, 238, 0.14), 0 12px 30px -16px rgba(168, 85, 247, 0.95);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.brand:hover .brand__logo {
  transform: rotate(-4deg) scale(1.04);
  box-shadow: 0 0 0 1px rgba(247, 201, 72, 0.3), 0 16px 36px -14px rgba(168, 85, 247, 1);
}
.brand__lockup { display: flex; flex-direction: column; justify-content: center; }
.brand__word { font-size: 1.22rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand__word span { color: var(--gold); }
.brand__sub {
  color: rgba(203, 216, 255, 0.45);
  font-size: 0.5rem;
  letter-spacing: 0.36em;
  margin-top: 5px;
}
@media (max-width: 1360px) {
  .brand__sub { display: none; }
}

.site-header .wrap { max-width: 1320px; }
.header-actions { flex: none; }

@media (min-width: 1361px) {
  .nav__link { padding: 9px 11px; font-size: 0.7rem; letter-spacing: 0.11em; }
}

#deck, #whitelist, #staff-team { scroll-margin-top: calc(var(--header-h) + 26px); }

.nav { gap: 4px; }
.nav__link {
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: rgba(233, 226, 255, 0.78);
}
.nav__link:hover, .nav__link:focus-visible {
  color: #fff;
  background: rgba(168, 85, 247, 0.14);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.28);
  text-shadow: 0 0 18px rgba(216, 180, 254, 0.7);
}
.nav__link.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.22), rgba(168, 85, 247, 0.06));
  box-shadow: inset 0 0 0 1px rgba(190, 176, 255, 0.32), 0 10px 26px -20px rgba(168, 85, 247, 1);
}
.nav__link::after {
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--cyan), transparent);
}
.nav__link.is-active::after { width: calc(100% - 24px); box-shadow: 0 0 14px rgba(247, 201, 72, 0.8); }

.status-chip {
  border-color: rgba(45, 212, 238, 0.3);
  background: rgba(45, 212, 238, 0.06);
  letter-spacing: 0.1em;
}
.status-chip strong { color: var(--cyan-bright); }

.header-login { padding: 9px 16px; gap: 8px; }
.site-header .header-actions .header-login { border-radius: 999px; }
.header-login .icon { flex: none; width: 15px; height: 15px; display: block; }
.header-register { padding: 9px 18px; }

/* 4. Buttons ----------------------------------------------------------------- */
.btn {
  border-radius: 999px;
  letter-spacing: 0.14em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary {
  --btn-bg: var(--grad-hot);
  --btn-border: rgba(216, 180, 254, 0.55);
  --btn-fg: #100520;
  font-weight: 700;
  box-shadow: 0 22px 46px -24px rgba(168, 85, 247, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}
.btn--primary:hover::after { transform: translateX(130%); }
.btn--primary:hover {
  color: #100520;
  box-shadow: 0 28px 60px -24px rgba(168, 85, 247, 1), 0 0 0 1px rgba(247, 201, 72, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn--gold {
  --btn-bg: var(--grad-gold);
  --btn-border: rgba(255, 228, 154, 0.7);
  --btn-fg: #241802;
  font-weight: 700;
  box-shadow: 0 20px 44px -26px rgba(247, 201, 72, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn--gold:hover { color: #241802; box-shadow: 0 26px 56px -24px rgba(247, 201, 72, 1); }

.btn--ghost {
  --btn-border: rgba(168, 85, 247, 0.32);
  --btn-fg: #eee6ff;
  background: rgba(168, 85, 247, 0.06);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: rgba(45, 212, 238, 0.65);
  background: rgba(45, 212, 238, 0.12);
  box-shadow: 0 16px 38px -24px rgba(45, 212, 238, 0.95);
}

.btn--emerald {
  --btn-border: rgba(52, 211, 153, 0.34);
  --btn-fg: #b6f7e2;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.14), rgba(52, 211, 153, 0.03));
}
.btn--emerald:hover { border-color: var(--emerald); background: rgba(52, 211, 153, 0.2); }

.btn--quiet { border-radius: 999px; }
.btn--sm { border-radius: 999px; }

.icon-btn { border-radius: 12px; }
.icon-btn:hover { border-color: rgba(45, 212, 238, 0.55); background: rgba(45, 212, 238, 0.1); }

.link-arrow { color: var(--gold-bright); letter-spacing: 0.12em; }
.link-arrow:hover { color: #fff; }

/* 5. Cinematic hero ---------------------------------------------------------- */
.hero {
  min-height: min(94vh, 880px);
  align-items: center;
  border-bottom: 1px solid rgba(168, 85, 247, 0.24);
  background: #05030d;
}
.hero__bg {
  filter: saturate(1.1) contrast(1.04) brightness(0.82);
  transform: scale(1.06);
  animation: heroDrift 28s ease-in-out infinite alternate;
}
.hero__scrim {
  background:
    linear-gradient(180deg, rgba(4, 2, 10, 0.62) 0%, rgba(5, 3, 13, 0.58) 42%, rgba(4, 2, 10, 0.97) 97%),
    radial-gradient(58% 64% at 14% 26%, rgba(124, 58, 237, 0.42), transparent 62%),
    radial-gradient(46% 52% at 88% 4%, rgba(45, 212, 238, 0.2), transparent 66%),
    linear-gradient(90deg, rgba(4, 2, 10, 0.86) 0%, rgba(4, 2, 10, 0.2) 58%, rgba(4, 2, 10, 0.62) 100%);
}
.hero__lines {
  opacity: 0.5;
  background-image:
    linear-gradient(90deg, rgba(216, 180, 254, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(45, 212, 238, 0.06) 1px, transparent 1px);
  background-size: 110px 110px, 110px 110px;
  -webkit-mask-image: radial-gradient(80% 90% at 40% 40%, #000 10%, transparent 80%);
  mask-image: radial-gradient(80% 90% at 40% 40%, #000 10%, transparent 80%);
}
@keyframes heroDrift {
  0% { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.11) translate3d(-1.2%, -1.4%, 0); }
}

.hero__inner {
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.78fr);
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(64px, 9vh, 104px) 24px clamp(44px, 5vh, 68px);
  align-items: center;
}

.hero__brandline { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.hero__logo {
  width: 74px; height: 74px; flex: none; object-fit: contain;
  border-radius: 22px; padding: 6px;
  background: linear-gradient(150deg, rgba(168, 85, 247, 0.28), rgba(45, 212, 238, 0.1));
  border: 1px solid rgba(216, 180, 254, 0.42);
  box-shadow: 0 0 40px -8px rgba(168, 85, 247, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.hero__wordmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  background: linear-gradient(100deg, #ffffff 0%, #e7d9ff 26%, #a78bfa 48%, #67e8f9 72%, #ffe49a 96%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 26px rgba(168, 85, 247, 0.5));
}
.hero__tagline {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(203, 216, 255, 0.62);
}

.hero__kicker {
  border-color: rgba(45, 212, 238, 0.35);
  background: linear-gradient(90deg, rgba(45, 212, 238, 0.16), rgba(168, 85, 247, 0.08));
  color: var(--cyan-bright);
  letter-spacing: 0.2em;
}
.hero__kicker .dot { background: var(--emerald); box-shadow: 0 0 12px rgba(52, 211, 153, 0.95); animation: pulse 2.4s infinite; }

.hero h1 {
  font-size: clamp(2.5rem, 4.5vw, 4.15rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
}
.hero h1 em {
  background: linear-gradient(100deg, #c4b5fd, #8b5cf6 40%, #22d3ee 86%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  color: #c6bde0;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.68;
  max-width: 56ch;
  margin-bottom: 26px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__actions { gap: 14px; }
.hero__actions .btn--primary {
  padding: 17px 34px;
  min-height: 60px;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
}
.hero__actions .btn--primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  border-radius: inherit;
  background: var(--grad-hot);
  filter: blur(16px);
  opacity: 0.75;
  transition: opacity 0.3s ease;
}
.hero__actions .btn--primary:hover::before { opacity: 1; }
.hero__actions .btn--ghost {
  padding: 16px 28px;
  min-height: 56px;
  font-size: 0.8rem;
  border-color: rgba(216, 180, 254, 0.4);
}

.hero__meta { margin-top: 26px; gap: 10px 26px; color: #a99fc4; font-size: 0.76rem; }
.hero__meta .icon { color: var(--gold); }

.hero__live {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.4fr;
  gap: 1px;
  margin-top: 24px;
  max-width: 640px;
  border: 1px solid rgba(168, 85, 247, 0.26);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(168, 85, 247, 0.14);
  backdrop-filter: blur(14px);
}
.hero__live > div {
  padding: 13px 18px;
  background: rgba(8, 5, 20, 0.82);
}
.hero__live span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__live strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.hero__live strong small { white-space: nowrap; }
.hero__live strong .mono { font-size: 0.78rem; color: var(--gold-bright); letter-spacing: 0; }
.hero__live > div:nth-child(3) span { white-space: nowrap; }

.hero__aside { position: relative; }
.hero__aside::before {
  content: "";
  position: absolute;
  inset: -14% -10% -18%;
  z-index: -1;
  background: radial-gradient(60% 60% at 60% 40%, rgba(168, 85, 247, 0.34), transparent 70%);
  filter: blur(10px);
}

.hero__scroll { color: rgba(216, 180, 254, 0.5); }

/* Status HUD card */
.status-card {
  border: 1px solid rgba(190, 176, 255, 0.32);
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(168, 85, 247, 0.22), transparent 58%),
    radial-gradient(90% 70% at 0% 100%, rgba(45, 212, 238, 0.1), transparent 60%),
    linear-gradient(165deg, rgba(24, 17, 46, 0.95), rgba(7, 5, 17, 0.97));
  box-shadow: 0 50px 90px -50px #000, inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.status-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 201, 72, 0.7), rgba(45, 212, 238, 0.7), transparent);
}
.status-card__label { color: rgba(203, 216, 255, 0.6); }
.status-card__players strong {
  font-size: 3.1rem;
  background: linear-gradient(120deg, #fff, #d8b4fe 55%, #67e8f9);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.status-card__players strong.count--offline {
  background: none;
  -webkit-text-fill-color: #6f6488;
  color: #6f6488;
  font-size: 1.5rem;
  transform: translateY(-2px);
}
.status-rows code { color: var(--gold-bright); }
.status-bar { background: rgba(168, 85, 247, 0.16); height: 6px; }
.status-bar span { background: linear-gradient(90deg, #a855f7, #4f7dff 55%, #22d3ee); box-shadow: 0 0 16px rgba(45, 212, 238, 0.65); }
.status-name {
  border-color: rgba(168, 85, 247, 0.32);
  background: rgba(168, 85, 247, 0.1);
  color: #e3d9ff;
}
.status-name:hover { border-color: rgba(247, 201, 72, 0.6); background: rgba(247, 201, 72, 0.12); }

.live-pill[data-mode="live"] { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.45); background: rgba(6, 78, 59, 0.35); }
.live-pill[data-mode="live"] .dot { background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.live-pill[data-mode="offline"] { color: #fecdd3; border-color: rgba(251, 113, 133, 0.42); }
.live-pill[data-mode="demo"] { color: var(--gold-bright); border-color: rgba(247, 201, 72, 0.42); background: rgba(72, 52, 6, 0.35); }
.live-pill[data-mode="demo"] .dot { background: var(--gold); }

/* 6. Section chrome ---------------------------------------------------------- */
.section--band {
  background: linear-gradient(180deg, rgba(24, 17, 46, 0.6), rgba(7, 5, 17, 0.25));
  border-block: 1px solid rgba(168, 85, 247, 0.16);
}
.eyebrow { color: var(--gold); letter-spacing: 0.26em; }
.eyebrow::before { background: linear-gradient(90deg, var(--gold), transparent); }
.section-head h2 { font-size: clamp(1.85rem, 3vw, 2.7rem); letter-spacing: -0.035em; }
.section-head--split { align-items: center; }

.page-head {
  position: relative;
  padding: clamp(52px, 7vw, 92px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid rgba(168, 85, 247, 0.22);
  background:
    radial-gradient(60% 140% at 12% 0%, rgba(124, 58, 237, 0.34), transparent 66%),
    radial-gradient(40% 120% at 88% 0%, rgba(45, 212, 238, 0.14), transparent 68%);
}
.page-head::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 201, 72, 0.5), rgba(45, 212, 238, 0.5), transparent);
}
.page-head h1 { font-weight: 800; letter-spacing: -0.04em; }
.page-head .lede { color: #b9afd2; }

/* 7. HUD cards --------------------------------------------------------------- */
.gcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(168, 85, 247, 0.2);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(168, 85, 247, 0.12), transparent 58%),
    linear-gradient(165deg, rgba(21, 15, 41, 0.88), rgba(7, 5, 17, 0.94));
  box-shadow: 0 30px 70px -56px #000, inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.gcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 254, 0.55), transparent);
  opacity: 0.7;
}
.gcard::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  right: -80px; top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.gcard:hover {
  transform: translateY(-6px);
  border-color: rgba(216, 180, 254, 0.48);
  box-shadow: 0 40px 80px -50px #000, 0 24px 60px -46px rgba(168, 85, 247, 0.9);
}
.gcard:hover::after { opacity: 1; }
.gcard[data-tone="cyan"] { border-color: rgba(45, 212, 238, 0.22); }
.gcard[data-tone="cyan"]:hover { border-color: rgba(45, 212, 238, 0.6); box-shadow: 0 40px 80px -50px #000, 0 24px 60px -46px rgba(45, 212, 238, 0.75); }
.gcard[data-tone="gold"] { border-color: rgba(247, 201, 72, 0.26); }
.gcard[data-tone="gold"]:hover { border-color: rgba(247, 201, 72, 0.65); box-shadow: 0 40px 80px -50px #000, 0 24px 60px -46px rgba(247, 201, 72, 0.65); }

.gcard__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.gcard__eyebrow {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.gcard__eyebrow--gold { color: var(--gold); }
.gcard h3 { margin: 0; font-size: 1.22rem; letter-spacing: -0.02em; }
.gcard p { margin: 0; color: var(--text-dim); font-size: 0.89rem; line-height: 1.65; }
.gcard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gcard__stat {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.gcard__stat small { font-size: 0.78rem; font-weight: 400; color: var(--text-faint); letter-spacing: 0.04em; }
.gcard--wide { grid-column: span 6; }
.gcard--half { grid-column: span 3; }
.gcard--full { grid-column: span 12; }
.gcard--tall { grid-column: span 4; grid-row: span 2; }

.deck { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.deck--tight { gap: 14px; }

.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.84rem; color: var(--text-dim);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.05);
  border: 1px solid rgba(168, 85, 247, 0.12);
}
.mini-list li strong { color: #fff; font-weight: 600; }
.mini-list .icon { color: var(--gold); flex: none; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-display); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.1);
  color: #e5dbff;
}
.pill--gold { border-color: rgba(247, 201, 72, 0.4); background: rgba(247, 201, 72, 0.1); color: var(--gold-bright); }
.pill--cyan { border-color: rgba(45, 212, 238, 0.4); background: rgba(45, 212, 238, 0.1); color: var(--cyan-bright); }
.pill--emerald { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); color: #a7f3d0; }

/* Panels / cards / stats retint */
.panel, .card, .dl-row, .stat, .empty, .table-wrap {
  border-color: rgba(168, 85, 247, 0.18);
  background: linear-gradient(170deg, rgba(22, 16, 43, 0.82), rgba(7, 5, 17, 0.9));
}
.panel { border-radius: var(--radius-xl); }
.card:hover, .stat:hover { border-color: rgba(216, 180, 254, 0.42); }
.card:hover { box-shadow: 0 30px 60px -40px #000, 0 20px 50px -40px rgba(168, 85, 247, 0.8); }

.stat::before { background: linear-gradient(90deg, rgba(247, 201, 72, 0.75), transparent 78%); }
.stat[data-tone="emerald"] { border-color: rgba(52, 211, 153, 0.22); background: linear-gradient(170deg, rgba(52, 211, 153, 0.06), rgba(8, 6, 18, 0.9)); }
.stat[data-tone="violet"] { border-color: rgba(168, 85, 247, 0.24); background: linear-gradient(170deg, rgba(168, 85, 247, 0.08), rgba(8, 6, 18, 0.9)); }
.stat[data-tone="cyan"] { border-color: rgba(45, 212, 238, 0.22); background: linear-gradient(170deg, rgba(45, 212, 238, 0.06), rgba(8, 6, 18, 0.9)); }
.stat__label { color: var(--text-faint); }
.stat__value { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; }

.icon-tile {
  --tile: 168, 85, 247;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 26px -22px rgba(168, 85, 247, 0.9);
}
.icon-tile--emerald { --tile: 52, 211, 153; }
.icon-tile--cyan { --tile: 45, 212, 238; }
.icon-tile--violet { --tile: 192, 132, 252; }
.icon-tile--gold { --tile: 247, 201, 72; }

.badge { border-radius: 999px; }
.badge--success { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.4); background: rgba(6, 78, 59, 0.3); }
.badge--warning { color: var(--gold-bright); border-color: rgba(247, 201, 72, 0.4); background: rgba(72, 52, 6, 0.3); }
.badge--info { color: #c7d8ff; border-color: rgba(79, 125, 255, 0.45); background: rgba(28, 42, 99, 0.35); }

.chip { border-color: rgba(168, 85, 247, 0.34); background: rgba(168, 85, 247, 0.1); color: #e5dbff; }
.chip--emerald { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.chip--warning { color: var(--gold-bright); border-color: rgba(247, 201, 72, 0.35); background: rgba(247, 201, 72, 0.08); }

.bento__item {
  border-color: rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, rgba(22, 16, 43, 0.85), rgba(7, 5, 17, 0.92));
}
.bento__item:hover { border-color: rgba(216, 180, 254, 0.45); box-shadow: 0 34px 70px -44px rgba(168, 85, 247, 0.8); }
.bento__num { color: rgba(216, 180, 254, 0.1); }

.steps { gap: 18px; }
.step {
  padding: 24px;
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(22, 16, 43, 0.6), rgba(7, 5, 17, 0.75));
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.step + .step { border-left: 1px solid rgba(168, 85, 247, 0.18); }
.step:hover { transform: translateY(-4px); border-color: rgba(216, 180, 254, 0.4); }
.step::before { color: var(--gold); }

.feed__item:hover { background: linear-gradient(90deg, rgba(168, 85, 247, 0.1), transparent 72%); }
.feed__date strong { color: var(--gold-bright); }
.feature-story { border-color: rgba(168, 85, 247, 0.3); border-radius: var(--radius-xl); }
.feature-story:hover { border-color: rgba(247, 201, 72, 0.55); box-shadow: 0 40px 80px -42px #000, 0 0 40px -18px rgba(168, 85, 247, 0.8); }

.crew-card { border-color: rgba(168, 85, 247, 0.18); border-radius: var(--radius-lg); }
.crew-card__media { background: radial-gradient(120% 100% at 30% 0%, rgba(168, 85, 247, 0.32), transparent 60%), #140f2a; }
.crew-card--staff .crew-card__rank { border-color: rgba(168, 85, 247, 0.45); background: rgba(168, 85, 247, 0.14); color: #e9ddff; }
.crew-card--staff[data-tone="owner"] .crew-card__rank { color: var(--gold-bright); border-color: rgba(247, 201, 72, 0.5); background: rgba(247, 201, 72, 0.12); }
.crew-card--staff:hover { border-color: rgba(216, 180, 254, 0.55); box-shadow: 0 28px 60px -34px rgba(168, 85, 247, 0.9); }
.crew-card__wa { border-radius: 999px; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); color: #a7f3d0; }
.crew-card__wa .icon { color: var(--emerald); }
.crew-card__wa:hover { border-color: var(--emerald); background: rgba(52, 211, 153, 0.16); box-shadow: 0 16px 34px -22px rgba(52, 211, 153, 0.9); }

.callout {
  border-color: rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 160% at 100% 0%, rgba(168, 85, 247, 0.28), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgba(45, 212, 238, 0.12), transparent 62%),
    linear-gradient(120deg, rgba(26, 19, 50, 0.94), rgba(7, 5, 17, 0.95));
}
.callout::after { content: none; }

.voice-panel {
  border-color: rgba(168, 85, 247, 0.28);
  border-radius: var(--radius-xl);
  background: radial-gradient(80% 120% at 100% 0%, rgba(168, 85, 247, 0.22), transparent 60%), rgba(14, 10, 30, 0.9);
}
.voice-panel__address { border-color: rgba(247, 201, 72, 0.35); color: var(--gold-bright); }

.social-bar { border-color: rgba(168, 85, 247, 0.22); border-radius: var(--radius-lg); background: rgba(11, 8, 24, 0.7); }
.social-link:hover { background: rgba(168, 85, 247, 0.14); }
.social-link .icon { color: var(--violet-bright); }
.social-link:hover .icon { color: var(--gold-bright); }

.dl-row { border-radius: var(--radius-lg); }
.dl-row__icon { border-radius: 16px; background: linear-gradient(150deg, rgba(168, 85, 247, 0.24), rgba(45, 212, 238, 0.05)); color: #e9ddff; }

.form .input, .form .select, .form .textarea { border-radius: 12px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2); }
.checkbox input { accent-color: var(--violet); }

.table th { color: var(--text-faint); }
.table tbody tr:hover { background: rgba(168, 85, 247, 0.07); }
.table td { border-bottom-color: rgba(168, 85, 247, 0.1); }

.notice { border-radius: var(--radius); border-color: rgba(168, 85, 247, 0.3); background: rgba(168, 85, 247, 0.08); }
.notice--warning { border-color: rgba(247, 201, 72, 0.35); background: rgba(247, 201, 72, 0.06); }
.notice--warning .icon { color: var(--gold); }

.flash--warning { border-color: rgba(247, 201, 72, 0.4); background: rgba(58, 42, 6, 0.75); }
.flash--warning .icon { color: var(--gold); }
.flash--info .icon { color: var(--cyan); }

dialog { border-color: rgba(216, 180, 254, 0.32); background: linear-gradient(170deg, #1a1332, #080513); }

/* 8. Footer ------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid rgba(168, 85, 247, 0.22);
  background: linear-gradient(180deg, rgba(14, 10, 30, 0.5), #04020a);
}
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), rgba(45, 212, 238, 0.5), rgba(247, 201, 72, 0.45), transparent);
}
.site-footer__word {
  color: rgba(168, 85, 247, 0.07);
  text-shadow: 0 0 80px rgba(168, 85, 247, 0.35);
}
.footer-grid h4 { color: var(--gold); letter-spacing: 0.22em; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-bottom .dot { color: var(--gold); }

/* 9. Motion ------------------------------------------------------------------ */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Content is never hidden by animation: motion is additive only. */
.reveal { opacity: 1; }

main { animation: pageIn 0.5s ease both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.gcard, .panel, .card, .stat, .btn, .icon-btn, .nav__link { -webkit-tap-highlight-color: transparent; }

/* Header shrink on scroll (class set by app.js) */
.site-header { transition: background 0.3s ease, box-shadow 0.3s ease; }

/* Mobile menu ---------------------------------------------------------------- */
.nav-backdrop { display: none; }
@media (max-width: 1360px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 12px;
    right: 12px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 14px;
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
    border: 1px solid rgba(190, 176, 255, 0.32);
    border-radius: 20px;
    background: linear-gradient(170deg, rgba(18, 13, 36, 0.98), rgba(6, 4, 14, 0.99));
    box-shadow: 0 40px 80px -30px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.99);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 15px 16px; font-size: 0.82rem; border-radius: 12px; }
  .nav__link::after { left: 8px; top: 50%; bottom: auto; width: 3px; height: 0; transform: translateY(-50%);
    background: linear-gradient(180deg, transparent, var(--gold), transparent); }
  .nav__link.is-active::after { width: 3px; height: 60%; }
  .nav-toggle { display: inline-flex; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 70;
    background: rgba(3, 2, 8, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
  }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* 10. Page-specific: VIP ----------------------------------------------------- */
.vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.vip-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(247, 201, 72, 0.26);
  background:
    radial-gradient(100% 80% at 100% 0%, rgba(247, 201, 72, 0.14), transparent 60%),
    linear-gradient(165deg, rgba(26, 20, 40, 0.92), rgba(7, 5, 17, 0.95));
  box-shadow: 0 30px 70px -56px #000;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.vip-card:hover { transform: translateY(-6px); border-color: rgba(255, 228, 154, 0.6); box-shadow: 0 40px 80px -50px #000, 0 20px 60px -46px rgba(247, 201, 72, 0.8); }
.vip-card__price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--gold-bright); }
.vip-card__price small { font-size: 0.72rem; letter-spacing: 0.14em; color: var(--text-faint); text-transform: uppercase; }
.vip-card h3 { margin: 0; font-size: 1.3rem; }
.vip-card p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }
.vip-card__ribbon {
  position: absolute; top: 18px; right: -34px;
  padding: 5px 42px;
  transform: rotate(38deg);
  font-family: var(--font-display); font-size: 0.58rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #241802;
  background: var(--grad-gold);
}

/* 11. Page-specific: Events -------------------------------------------------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.event-card__when {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-bright);
}
.event-card__body { display: grid; gap: 10px; }
.event-card h3 { font-size: 1.24rem; line-height: 1.25; }
.event-card h3 a { color: #fff; }
.event-card h3 a:hover { color: var(--gold-bright); }

/* 12. Page-specific: Rules --------------------------------------------------- */
.rules-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr); gap: 24px; align-items: start; }
.rule-list { display: grid; gap: 14px; counter-reset: rules; }
.rule-card {
  position: relative;
  counter-increment: rules;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: linear-gradient(165deg, rgba(22, 16, 43, 0.8), rgba(7, 5, 17, 0.9));
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.rule-card:hover { border-color: rgba(216, 180, 254, 0.45); transform: translateX(4px); }
.rule-card::before {
  content: "0" counter(rules);
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--gold-bright);
  border: 1px solid rgba(247, 201, 72, 0.35);
  background: linear-gradient(150deg, rgba(247, 201, 72, 0.16), rgba(247, 201, 72, 0.03));
}
.rule-card h3 { margin: 2px 0 6px; font-size: 1.1rem; }
.rule-card p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* 13. Page-specific: homepage community banner ------------------------------- */
.community-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 26px;
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(88, 101, 242, 0.4);
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(88, 101, 242, 0.4), transparent 62%),
    radial-gradient(60% 120% at 0% 100%, rgba(168, 85, 247, 0.24), transparent 60%),
    linear-gradient(120deg, rgba(20, 16, 44, 0.96), rgba(6, 4, 16, 0.96));
}
.community-banner h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.community-banner p { margin: 0; color: var(--text-dim); max-width: 56ch; }
.community-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

@media (max-width: 992px) {
  .topline { display: none; }
}

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 44px;
    gap: 30px;
  }
  .hero__kicker { border-radius: 14px; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero__sub { -webkit-line-clamp: 4; }
  .hero__logo { width: 56px; height: 56px; border-radius: 16px; }
  .hero__wordmark { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero__tagline { font-size: 0.52rem; letter-spacing: 0.24em; }
  .hero__actions .btn--primary, .hero__actions .btn--ghost { padding: 14px 22px; min-height: 52px; font-size: 0.74rem; }
  .deck { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gcard--wide, .gcard--tall { grid-column: span 6; grid-row: auto; }
  .gcard--half { grid-column: span 3; }
  .rules-layout { grid-template-columns: 1fr; }
  .community-banner { grid-template-columns: 1fr; }
  .community-banner__actions { justify-content: flex-start; }
  .hero__brandline { gap: 14px; }
  .hero__logo { width: 60px; height: 60px; border-radius: 18px; }
}

@media (max-width: 640px) {
  .deck { grid-template-columns: 1fr; }
  .gcard--wide, .gcard--half, .gcard--full, .gcard--tall { grid-column: span 1; }
  .hero__live { grid-template-columns: 1fr 1fr; }
  .hero__live > div:nth-child(3) { grid-column: 1 / -1; }
  .hero__live > div { padding: 12px 14px; }
  .hero__live strong span, .hero__live strong small { display: inline; }
  .hero__live strong small { font-size: 0.82rem; }
  .gcard { padding: 22px; }
  .rule-card { grid-template-columns: 44px minmax(0, 1fr); padding: 20px; gap: 14px; }
  .rule-card::before { width: 44px; height: 44px; border-radius: 13px; font-size: 0.92rem; }
  .header-register { display: none; }
  .header-actions .status-chip { display: none; }
  .site-header__inner { gap: 10px; }
  .hero__kicker { font-size: 0.62rem; letter-spacing: 0.08em; line-height: 1.5; }
  .hero__wordmark { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, .hero__bg { animation: none; }
  main { animation: none; }

}
