/* =========================================
   Eiei Network — Grok dark + Oraxen layout
   Landing: hero · profile · servers · shop · wiki
   ========================================= */

:root {
  --bg: #070708;
  --bg-elevated: rgba(18, 18, 20, 0.92);
  --bg-elevated-solid: #141416;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  /* High-contrast text (with solid fallbacks if CSS vars fail) */
  --text: #faf8f5;
  --text-muted: #c4bfb6;
  --text-dim: #9a958c;
  --accent: #f0a35e;
  --accent-soft: rgba(240, 163, 94, 0.2);
  --accent-glow: rgba(240, 163, 94, 0.4);
  --live: #4ae09a;
  --live-soft: rgba(74, 224, 154, 0.22);
  --danger: #ff7b7b;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
  --max: 1120px;

  /* TikTok Theme Variables */
  --tiktok-bg: #000000;
  --tiktok-accent: #00f2fe; /* Light Blue */
  --tiktok-accent-alt: #fe0979; /* Pink */
  --tiktok-accent-soft: rgba(0, 242, 254, 0.15);
  --tiktok-accent-alt-soft: rgba(254, 9, 121, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font, "Inter"), system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text, #faf8f5);
  background: var(--bg, #070708);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--text, #faf8f5);
}

/* Boot: warmer first paint before transitions.js marks ready */
body.is-booting {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(240, 163, 94, 0.12), transparent 55%),
    var(--bg);
}

body.tiktok-theme.is-booting {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--tiktok-accent-soft), transparent 55%),
    var(--tiktok-bg);
}

body.tiktok-theme {
    background: var(--tiktok-bg);
}

/* Shared polish: selection + focus */
::selection {
  background: rgba(240, 163, 94, 0.35);
  color: #fff;
}

body.tiktok-theme ::selection {
  background: var(--tiktok-accent-alt-soft);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body.tiktok-theme a:focus-visible,
body.tiktok-theme button:focus-visible {
  outline-color: var(--tiktok-accent);
}

@supports (height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

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

a {
  color: inherit;
}

/* ---------- Background ---------- */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

body.tiktok-theme .bg-layer {
    background: var(--tiktok-bg);
}

#bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.22) saturate(0.7) contrast(1.05);
  transform: scale(1.04);
}

body.tiktok-theme #bg-video {
    filter: brightness(0.15) saturate(1) contrast(1.1); /* Adjusted video filter for tiktok theme */
}


.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(240, 163, 94, 0.1), transparent 55%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(0, 0, 0, 0.9), transparent 55%),
    linear-gradient(180deg, rgba(7, 7, 8, 0.45) 0%, rgba(7, 7, 8, 0.88) 100%);
}

body.tiktok-theme .bg-vignette {
  background:
    radial-gradient(ellipse 80% 50% at 30% 0%, var(--tiktok-accent-soft), transparent 55%),
    radial-gradient(ellipse 80% 50% at 70% 0%, var(--tiktok-accent-alt-soft), transparent 55%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(0, 0, 0, 0.95), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.9) 100%);
}


.bg-noise {
  position: absolute;
  inset: 0;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.bg-orbs {
  position: absolute;
  inset: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  animation: float 18s var(--ease) infinite alternate;
}

.orb-a {
  width: 360px;
  height: 360px;
  top: -10%;
  left: 8%;
  background: rgba(240, 163, 94, 0.2);
}
body.tiktok-theme .orb-a {
    background: var(--tiktok-accent-soft);
}

.orb-b {
  width: 300px;
  height: 300px;
  bottom: 10%;
  right: 0;
  background: rgba(120, 140, 255, 0.1);
  animation-delay: -6s;
}
body.tiktok-theme .orb-b {
    background: var(--tiktok-accent-alt-soft);
}

.orb-c {
  width: 220px;
  height: 220px;
  top: 45%;
  left: 50%;
  background: rgba(61, 214, 140, 0.07);
  animation-delay: -11s;
}

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(20px, -28px, 0) scale(1.06); }
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(7, 7, 8, 0.88);
  border-bottom-color: var(--border);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

body.tiktok-theme .site-nav.is-scrolled {
    background: rgba(0, 0, 0, 0.88);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

body.tiktok-theme .brand-dot {
    background: var(--tiktok-accent);
    box-shadow: 0 0 12px var(--tiktok-accent-soft);
}

.brand-name {
  font-size: 0.95rem;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-cta {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(240, 163, 94, 0.28);
}
body.tiktok-theme .nav-cta {
    background: var(--tiktok-accent-alt-soft) !important;
    color: var(--tiktok-accent-alt) !important;
    border-color: rgba(254, 9, 121, 0.28) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Layout sections ---------- */

main {
  position: relative;
  z-index: 1;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 20px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent, #f0a35e);
}

/* Play section: make label even clearer */
.section-play .eyebrow {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text, #faf8f5);
}

.section-lead {
  margin: 0;
  color: var(--text-muted, #c4bfb6);
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 400;
}

.play-title {
  font-size: clamp(1.9rem, 4.5vw, 2.65rem);
  letter-spacing: -0.04em;
}

.play-lead {
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dim, #9a958c);
  font-size: 0.98rem;
}

.section-note {
  margin: 20px 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
}

.card-glass {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
}

body.tiktok-theme .card-glass {
  background: rgba(18, 18, 20, 0.65); /* Made significantly more transparent */
  border-color: rgba(255, 255, 255, 0.08);
}

@supports not ((backdrop-filter: blur(1px))) {
  .card-glass {
    background: var(--bg-elevated-solid);
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(240, 163, 94, 0.95), rgba(220, 130, 60, 0.9));
  color: #1a1208;
  border-color: rgba(255, 220, 180, 0.25);
  box-shadow: 0 8px 28px rgba(240, 163, 94, 0.2);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn-copy,
.btn-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

.btn-copy {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-copy.is-copied {
  background: var(--live-soft);
  color: var(--live);
  border-color: rgba(61, 214, 140, 0.3);
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 48px;
  padding-bottom: 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

/* Single-column hero (homepage after TikTok card moved to i.eiei.love) */
.hero-grid-single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-grid-single .hero-actions,
.hero-grid-single .hero-tags {
  justify-content: center;
}

/* Standalone TikTok / link-in-bio page (i.eiei.love → tiktok.html) */
.link-page {
  min-height: calc(100vh - var(--nav-h, 64px));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h, 64px) + 24px) 20px 48px;
}

.link-page .hero-profile {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text, #faf8f5);
}

.hero-accent {
  color: var(--accent, #f0a35e);
}

.hero-lead {
  margin: 0 0 24px;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-actions.center {
  justify-content: center;
}

.ip-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 420px;
}

.ip-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ip-value,
.ip-mini {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--text);
}

.ip-value {
  flex: 1;
  min-width: 0;
}

.hero-profile {
  padding: 22px;
  text-align: center;
  animation: cardIn 0.7s var(--ease) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-profile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hero-profile-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

a.hero-profile-tag-link {
  text-decoration: none;
  color: var(--text-muted, #c4bfb6);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

a.hero-profile-tag-link:hover {
  color: var(--accent, #f0a35e);
  border-color: rgba(240, 163, 94, 0.45);
  background: var(--accent-soft, rgba(240, 163, 94, 0.2));
}

body.tiktok-theme a.hero-profile-tag-link:hover {
  color: var(--tiktok-accent);
  border-color: var(--tiktok-accent-soft);
  background: rgba(0, 242, 254, 0.1);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--live-soft);
  border: 1px solid rgba(61, 214, 140, 0.28);
  color: var(--live);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.live-pill.is-offline {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text-dim);
}

.live-pill.is-offline .live-dot {
  background: var(--text-dim);
  box-shadow: none;
  animation: none;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 10px rgba(61, 214, 140, 0.7);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.avatar-wrap.compact .profile-pic {
  width: 88px;
  height: 88px;
}

.avatar-ring {
  position: relative;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    var(--accent),
    rgba(255, 255, 255, 0.35),
    rgba(120, 140, 255, 0.55),
    var(--accent)
  );
  box-shadow: 0 0 40px var(--accent-soft);
}

body.tiktok-theme .avatar-ring {
    background: conic-gradient(
        from 210deg,
        var(--tiktok-accent),
        var(--tiktok-accent-alt),
        var(--tiktok-accent)
    );
    box-shadow: 0 0 40px var(--tiktok-accent-soft);
}

.avatar-ring::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--bg);
  z-index: 0;
}

body.tiktok-theme .avatar-ring::after {
    background: transparent; /* allow video to show through inner ring hole */
}

.profile-pic {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1c;
}

.username {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text, #faf8f5);
}

.bio {
  margin: 0 auto 14px;
  max-width: 28ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted, #c4bfb6);
  white-space: pre-wrap;
  word-break: break-word;
}

.bio.is-error {
  color: var(--danger);
}

/* Skeleton loading styles live in css/skeleton.css */

.profile-stats {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  margin: 0 0 16px;
  padding: 12px 8px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.profile-stats.is-hidden {
  display: none;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.stat-number {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  margin: 4px 0;
  background: var(--border);
}

/* ---------- Chips / social on hero card ---------- */

.hero-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* Revert to inline flex for eiei.love home page */
body:not(.tiktok-theme) .hero-social {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.chip-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted, #c4bfb6);
  transition: all 0.2s var(--ease);
}

body.tiktok-theme .chip-link {
    background: rgba(255, 255, 255, 0.05); /* slightly clearer than surface */
    backdrop-filter: blur(8px);
}

/* Smaller inline chips for home page */
body:not(.tiktok-theme) .chip-link {
  display: inline-flex;
  gap: 7px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.chip-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body:not(.tiktok-theme) .chip-link:hover {
  color: var(--text, #faf8f5);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
  box-shadow: none;
}

.chip-ico {
  flex-shrink: 0;
  display: block;
  width: 20px;
  height: 20px;
}

body:not(.tiktok-theme) .chip-ico {
  width: 16px;
  height: 16px;
}

/* Theme specific colors for Tiktok Link page */
body.tiktok-theme .chip-tiktok {
  background: rgba(255, 255, 255, 0.05);
}
body.tiktok-theme .chip-tiktok:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

body.tiktok-theme .chip-ig {
  background: rgba(214, 36, 159, 0.1);
  border-color: rgba(214, 36, 159, 0.2);
}
body.tiktok-theme .chip-ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  border-color: transparent;
}

body.tiktok-theme .chip-discord {
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.2);
  color: #c5caff;
}
body.tiktok-theme .chip-discord:hover {
  background: #5865F2;
  color: #fff;
  border-color: transparent;
}

body.tiktok-theme .chip-donate {
  background: rgba(0, 175, 240, 0.1); /* Blue theme */
  border-color: rgba(0, 175, 240, 0.2);
  color: #00AFF0;
}
body.tiktok-theme .chip-donate:hover {
  background: #00AFF0;
  color: #fff;
  border-color: transparent;
}

/* Original colors for eiei.love home page */
body:not(.tiktok-theme) .chip-link.accent,
body:not(.tiktok-theme) .chip-donate {
  background: var(--accent-soft);
  border-color: rgba(240, 163, 94, 0.3);
  color: var(--accent, #f0a35e);
}
body:not(.tiktok-theme) .chip-tiktok:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
}
body:not(.tiktok-theme) .chip-ig:hover {
  color: #fff;
  border-color: rgba(214, 36, 159, 0.45);
  background: linear-gradient(135deg, rgba(253, 89, 73, 0.35), rgba(214, 36, 159, 0.4), rgba(40, 90, 235, 0.35));
}
body:not(.tiktok-theme) .chip-discord:hover {
  color: #c5caff;
  border-color: rgba(88, 101, 242, 0.45);
  background: rgba(88, 101, 242, 0.2);
}
body:not(.tiktok-theme) .chip-donate:hover {
  color: #ffd7ad;
  border-color: rgba(240, 163, 94, 0.5);
  background: rgba(240, 163, 94, 0.22);
}


/* ---------- Single server join bar ---------- */

/* ---------- Play panel (premium join card) ---------- */

.section-play {
  padding-top: 56px;
  padding-bottom: 72px;
}

.play-panel {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 28px 24px;
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(240, 163, 94, 0.1) 0%, transparent 42%),
    rgba(16, 16, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(240, 163, 94, 0.06) inset,
    0 28px 80px rgba(0, 0, 0, 0.5);
}

.play-panel-top {
  margin-bottom: 18px;
}

.play-panel-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.play-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim, #9a958c);
}

.play-ip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 20px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(240, 163, 94, 0.28);
  box-shadow: 0 0 40px rgba(240, 163, 94, 0.08);
  margin-bottom: 16px;
}

.play-ip {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffd7ad;
  text-shadow: 0 0 32px rgba(240, 163, 94, 0.35);
  background: none;
  border: none;
  padding: 0;
  line-height: 1.2;
  word-break: break-all;
}

.btn-copy-lux {
  flex-shrink: 0;
  min-width: 108px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.play-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.play-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted, #c4bfb6);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.play-steps {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.play-steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.play-step-n {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent, #f0a35e);
}

.play-steps strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text, #faf8f5);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.play-steps p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-dim, #9a958c);
}

.play-steps code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: #ffd7ad;
  background: rgba(240, 163, 94, 0.1);
  padding: 1px 6px;
  border-radius: 6px;
}

.play-steps a {
  color: var(--accent, #f0a35e);
  font-weight: 600;
  text-decoration: none;
}

.play-steps a:hover {
  text-decoration: underline;
}

.server-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.server-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text-dim);
}

.server-status.is-online .server-status-dot {
  background: var(--live);
  box-shadow: 0 0 10px rgba(74, 224, 154, 0.75);
  animation: pulse 1.8s ease-in-out infinite;
}

.server-status.is-offline .server-status-dot {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(255, 123, 123, 0.45);
}

.server-status.is-loading .server-status-dot {
  background: var(--accent);
  animation: pulse 1s ease-in-out infinite;
}

.server-status-text {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text, #faf8f5);
}

.server-status.is-online .server-status-text {
  color: var(--live);
}

.server-status.is-offline .server-status-text {
  color: var(--danger);
}

.server-status-players {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted, #c4bfb6);
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.server-status-players strong {
  color: var(--text, #faf8f5);
  font-weight: 700;
}

@media (max-width: 640px) {
  .play-panel {
    padding: 22px 18px 18px;
  }

  .play-ip-row {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .play-ip {
    text-align: center;
  }

  .btn-copy-lux {
    width: 100%;
  }

  .play-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .play-panel-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.modes-grid {
  margin-top: 4px;
}

/* ---------- Hub teaser (shop link-out) ---------- */

.section-compact {
  padding-top: 24px;
  padding-bottom: 24px;
}

.hub-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 26px;
}

.hub-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.hub-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 42ch;
}

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

/* ---------- Home wiki mega links ---------- */

.home-wiki-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.home-wiki-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 26px 24px;
  min-height: 200px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(155deg, rgba(240, 163, 94, 0.12), transparent 50%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.home-wiki-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 163, 94, 0.4);
  box-shadow: 0 20px 56px rgba(240, 163, 94, 0.12);
}

.home-wiki-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

.home-wiki-card h3 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-wiki-card p {
  margin: 0 0 16px;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.home-wiki-go {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.home-wiki-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (max-width: 640px) {
  .home-wiki-grid {
    grid-template-columns: 1fr;
  }

  .home-wiki-card {
    min-height: 0;
  }
}

/* ---------- Hero tags ---------- */

.hero-tags {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.feature-cmds code,
.cmd-row code,
.hero-lead code,
.section-lead code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--accent);
}

/* ---------- Feature rows (not card spam) ---------- */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 20px 22px;
  align-items: start;
}

.feature-row-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.35rem;
}

.feature-row-body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-row-body p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.feature-cmds {
  margin: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--text-dim) !important;
  font-size: 0.82rem !important;
}

/* ---------- Command table ---------- */

.cmd-table {
  overflow: hidden;
  padding: 6px 0;
}

.cmd-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) 1.2fr;
  gap: 12px 18px;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.cmd-row:first-child {
  border-top: none;
}

.cmd-row code {
  justify-self: start;
}

.cmd-row span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .feature-row {
    grid-template-columns: 1fr;
  }

  .cmd-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- Feature cards (servers / shop) ---------- */

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

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4);
}

.link-card {
  text-decoration: none;
  color: inherit;
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  line-height: 1;
}

.feature-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(240, 163, 94, 0.25);
  padding: 4px 8px;
  border-radius: 999px;
}

.feature-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-desc {
  margin: 0 0 14px;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-meta {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-meta li {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.feature-meta li.online {
  color: var(--live);
  background: var(--live-soft);
  border-color: rgba(61, 214, 140, 0.25);
}

.feature-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.ip-mini {
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Wiki ---------- */

.wiki-list {
  overflow: hidden;
  padding: 6px;
}

.wiki-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  transition: background 0.2s var(--ease);
}

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

.wiki-row + .wiki-row {
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.wiki-row:last-child {
  border-radius: 0 0 16px 16px;
}

.wiki-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.wiki-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wiki-body strong {
  font-size: 0.98rem;
}

.wiki-body span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.wiki-arrow {
  color: var(--text-dim);
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.wiki-row:hover .wiki-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* ---------- CTA ---------- */

.cta-section {
  padding-bottom: 40px;
}

.cta-panel {
  padding: 48px 28px;
  text-align: center;
}

.cta-panel .section-title {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-panel .section-lead {
  max-width: 42ch;
  margin: 0 auto 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 20px 40px;
  background: rgba(7, 7, 8, 0.65);
}

body.tiktok-theme .site-footer {
  background: rgba(0, 0, 0, 0.65);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.95);
  border: 1px solid rgba(61, 214, 140, 0.35);
  color: var(--live);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */

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

  .hero-profile {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }

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

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

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    background: rgba(7, 7, 8, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
  }

  body.tiktok-theme .nav-links {
     background: rgba(0, 0, 0, 0.96);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .section {
    padding: 52px 16px;
  }

  .ip-bar {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
