/* ============================================================
   TürkSunucuGame — Crystal Realm CSS
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #061018;
  --bg2:          #091923;
  --surface:      rgba(8, 30, 40, 0.76);
  --surface-bd:   rgba(82, 211, 224, 0.12);
  --surface-bd2:  rgba(112, 221, 235, 0.2);
  --text:         #f5f5f4;
  --text-mu:      #a9bbc3;
  --text-dim:     #718b96;
  --accent:       #19c5d1;
  --accent-bright:#75dff1;
  --accent-soft:  rgba(25, 197, 209, 0.13);
  --accent-line:  rgba(74, 210, 224, 0.38);
  --gold:         #d4a857;
  --red:          #ef4444;
  --blue:         #3b82f6;

  /* rütbe renkleri (eski) */
  --color-oyuncu: #9ca3af;
  --color-vip:    #fbbf24;
  --color-mod:    #1e40af;
  --color-admin:  #ff5500;
  --color-kurucu: #ef4444;
  --color-sunucusahibi: #00d5e2;
  --color-yonetici: #10b981;
  --color-kurucuyardimcisi: #a146e6;

  --radius:       14px;
  --radius-lg:    22px;
  --radius-xl:    28px;
  --shadow:       0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:    0 24px 60px rgba(0,0,0,0.7);
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --font-main:    'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* compat aliases */
  --bg-dark:    var(--bg);
  --bg-card:    var(--surface);
  --bg-card2:   var(--bg2);
  --border:     var(--surface-bd2);
  --text-muted: var(--text-mu);
  --green:      var(--accent);
  --emerald:    var(--accent);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background:
    linear-gradient(135deg, rgba(4, 12, 20, 0.96), rgba(5, 31, 43, 0.92)),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-bd2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-line); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 72px; }

/* ── Glassmorphism Utility ──────────────────────────────────── */
.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-bd);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.04),
    0 1px 2px rgba(0,0,0,0.4),
    0 20px 48px -20px rgba(0,0,0,0.5);
}

/* Background gradient orbs */
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  z-index: -1;
}
body::before {
  width: 700px; height: 700px;
  top: -200px; left: -200px;
  background: rgba(24, 113, 176, 0.25);
}
body::after {
  width: 500px; height: 500px;
  top: 200px; right: -100px;
  background: rgba(15, 197, 188, 0.18);
}


/* ── Auth Modal ──────────────────────────────────────────── */
.auth-overlay {
  position: fixed; inset: 0;
  background: rgba(3, 14, 22, .92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn .3s ease;
  backdrop-filter: blur(12px);
}
.auth-overlay.hidden { display: none; }

.auth-modal {
  background: var(--surface);
  border: 1px solid var(--surface-bd2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%; max-width: 440px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset, var(--shadow-lg);
  animation: slideUp .35s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.auth-modal-header { text-align: center; margin-bottom: 1.5rem; }
.auth-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.05rem;
  cursor: pointer;
}
.auth-close:hover { color: var(--text); }
.auth-logo { margin-bottom: .75rem; }
.auth-logo-img {
  width: 80px; height: 80px;
  object-fit: contain;
  display: block; margin: 0 auto;
  filter: drop-shadow(0 0 16px var(--accent-soft));
  animation: v3float 3s ease-in-out infinite alternate;
}
.auth-title {
  font-size: 1.3rem; font-weight: 700;
  color: var(--text);
  margin-bottom: .3rem;
  letter-spacing: -0.02em;
}
.auth-subtitle { color: var(--text-mu); font-size: .9rem; }

.auth-tabs {
  display: flex; gap: 6px; margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.04);
  border-radius: 100px;
  padding: 4px;
  border: 1px solid var(--surface-bd);
}
.auth-tab {
  flex: 1; padding: .6rem .8rem;
  border: none; border-radius: 100px;
  background: transparent; color: var(--text-mu);
  font-family: var(--font-main); font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: all .25s;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #061008;
}
.auth-tab:hover:not(.active) { color: var(--text); }

.auth-forms-mask { overflow: hidden; width: 100%; position: relative; }
.auth-forms-slider {
  display: flex; width: 200%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-form { width: 50%; flex-shrink: 0; padding: 4px; }

.auth-message {
  padding: .75rem 1rem; border-radius: var(--radius);
  margin-bottom: 1.2rem; font-weight: 600; font-size: .88rem;
  text-align: center; border: 1px solid transparent;
}
.auth-message.success {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
}
.auth-message.error {
  background: rgba(239,68,68,.1);
  color: #f87171;
  border-color: rgba(239,68,68,.3);
}

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-weight: 600; font-size: .85rem;
  margin-bottom: .4rem; color: var(--text-mu);
}
.form-group small { color: var(--text-dim); font-size: .75rem; margin-top: .25rem; display: block; }
.form-group input {
  width: 100%; padding: .75rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--surface-bd2);
  border-radius: var(--radius);
  color: var(--text); font-family: var(--font-main); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: rgba(255,255,255,0.06);
}

.auth-footer-note {
  text-align: center; margin-top: 1.2rem;
  font-size: .8rem; color: var(--text-dim);
}
.server-ip-copy {
  color: var(--accent); cursor: pointer;
  font-family: var(--font-mono); font-size: .85rem;
  transition: opacity .2s;
}
.server-ip-copy:hover { opacity: .8; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem;
  font-family: var(--font-main); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  border: none; text-decoration: none; border-radius: 100px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #061008;
  box-shadow: 0 8px 20px -8px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px var(--accent); }
.btn-primary:active { transform: translateY(0); }

.btn-full { width: 100%; }

.btn-register {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem;
  font-family: var(--font-main); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .2s; border: none; border-radius: 100px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #0a0c08;
}
.btn-register:hover { transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem;
  font-family: var(--font-main); font-weight: 500; font-size: .95rem;
  cursor: pointer; transition: background .2s, border-color .2s;
  border: 1px solid var(--surface-bd2); border-radius: 100px;
  background: transparent; color: var(--text); text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }

.btn-copy {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.2rem; font-size: .85rem; font-weight: 600;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #061008; border: none; border-radius: 100px;
  cursor: pointer; transition: transform .2s; white-space: nowrap;
  font-family: var(--font-main);
}
.btn-copy:hover { transform: translateY(-1px); }
.btn-copy.copied { background: linear-gradient(135deg, #fbbf24, #d97706); }

.btn-nav-login {
  padding: .5rem 1.2rem;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #061008; border: none; border-radius: 100px;
  font-family: var(--font-main); font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 16px -6px var(--accent);
}
.btn-nav-login:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px var(--accent); }

.btn-nav-register {
  padding: .5rem 1.2rem;
  background: linear-gradient(135deg, #ffcc80, #fb923c);
  color: #061008; border: none; border-radius: 100px;
  font-family: var(--font-main); font-weight: 600; font-size: .88rem;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 16px -6px rgba(251,146,60,0.32);
  margin-left: .5rem;
}
.btn-nav-register:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(251,146,60,0.36); }

.btn-logout {
  padding: .4rem .9rem;
  background: rgba(239,68,68,.1); color: #f87171;
  border: 1px solid rgba(239,68,68,.3); border-radius: 100px;
  font-weight: 500; font-size: .8rem; transition: all .2s;
  cursor: pointer;
}
.btn-logout:hover { background: rgba(239,68,68,.2); }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  /* announcement bar is 38px tall — JS adds .has-announcement to body to shift */
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: rgba(4, 20, 29, .9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-bd);
}

.nav-container {
  max-width: 1320px; margin: 0 auto;
  padding: 20px 72px;
  display: flex; align-items: center; gap: 1.5rem;
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 1rem;
  color: var(--text); white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand-logo {
  height: 38px; width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.nav-logo-img { display: none; }
.nav-name { font-size: .95rem; font-weight: 600; letter-spacing: -0.01em; }

/* Pill nav */
.nav-menu {
  display: flex; list-style: none; gap: 3px; margin: 0 auto;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-bd);
  border-radius: 100px;
  padding: 5px;
}
.nav-link {
  display: block; padding: .5rem 1.1rem;
  border-radius: 100px;
  font-weight: 500; font-size: .875rem; color: var(--text-mu);
  transition: all .2s; white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-link.active {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #061008;
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-mu);
  font-family: var(--font-main);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.7;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.nav-dropdown.active > .nav-dropdown-toggle,
.nav-dropdown.open > .nav-dropdown-toggle {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #061008;
}
.nav-dropdown-arrow {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: .55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
  top: -2px;
  transform-origin: center;
  transform: rotate(45deg);
  transition: transform .2s ease, top .2s ease;
}
.nav-dropdown.open .nav-dropdown-arrow {
  top: 2px;
  transform: rotate(225deg);
}
.nav-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 210px;
  padding: 6px;
  background: rgba(5, 27, 38, .97);
  border: 1px solid var(--surface-bd2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-dropdown.open .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
@media (hover: hover) and (min-width: 701px) {
  .nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px;
  }
  .nav-dropdown:hover .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
  .nav-dropdown:hover .nav-dropdown-arrow {
    top: 2px;
    transform: rotate(225deg);
  }
}
.founder-nav-dropdown .nav-submenu {
  padding: 8px;
}
.founder-nav-dropdown .nav-submenu a + a {
  margin-top: 7px;
}
.nav-submenu a {
  display: block;
  padding: .65rem .8rem;
  border-radius: 8px;
  color: var(--text-mu);
  font-size: .85rem;
  white-space: nowrap;
}
.nav-submenu a:hover,
.nav-submenu a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.nav-user {
  display: flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem;
  background: var(--surface);
  border: 1px solid var(--surface-bd2);
  border-radius: 100px;
  font-size: .85rem;
}
.nav-avatar { font-size: 1rem; }
.nav-username { font-weight: 600; color: var(--text); }

.rank-badge {
  display: inline-block; padding: .15rem .55rem;
  border-radius: 100px; font-size: .68rem; font-weight: 700;
  white-space: nowrap;
}

.theme-toggle {
  display: none; /* Crystal Realm is always dark */
}

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Announcement Bar ────────────────────────────────────── */
.announcement-bar {
  position: fixed; top: 70px; left: 0; right: 0; z-index: 850;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
  backdrop-filter: blur(16px);
  color: var(--text);
  padding: .55rem 1.5rem;
  display: flex; align-items: center; gap: .75rem;
  font-weight: 500; font-size: .85rem;
  border-bottom: 1px solid var(--accent-line);
}
.announcement-icon { font-size: 1rem; flex-shrink: 0; }
.announcement-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: var(--text); opacity: .7; flex-shrink: 0;
  transition: opacity .2s;
}
.announcement-close:hover { opacity: 1; }

/* ── Section Common ──────────────────────────────────────── */
.section { padding: 100px 0; }
.page-subpage > .section {
  min-height: calc(100vh - 260px);
  padding-top: 160px;
}
.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05;
  font-weight: 600; letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: .75rem;
}

/* ── Server Information Pages ───────────────────────────── */
.section-info-page {
  background: linear-gradient(145deg, #061018, #082631 58%, #071923);
}
.info-page-header {
  margin-bottom: 2rem;
}
.info-page-header .section-title {
  text-align: left;
}
.info-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.info-page-nav a {
  padding: .6rem 1rem;
  color: var(--text-mu);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--surface-bd);
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  transition: color .2s, background .2s, border-color .2s;
}
.info-page-nav a:hover,
.info-page-nav a.active {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.info-content-panel {
  max-width: 900px;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--surface-bd2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.info-tab-panel[hidden] {
  display: none;
}
.info-content-panel p {
  color: var(--text-mu);
  font-size: 1.05rem;
  line-height: 1.9;
}
.info-content-block + .info-content-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-bd);
}
.info-content-block h2 {
  margin-bottom: .75rem;
  font-size: 1.2rem;
  color: var(--text);
}
.info-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem 1rem;
  list-style: none;
}
.info-feature-list li {
  padding: .75rem .9rem;
  color: var(--text-mu);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--surface-bd);
  border-radius: 8px;
}
.section-subtitle, .section-desc {
  text-align: center; color: var(--text-mu);
  font-size: 1.05rem; margin-bottom: 3rem; line-height: 1.6;
}

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.15em;
  margin-bottom: .75rem;
  display: block;
}

/* Section header row */
.section-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3.5rem; gap: 2rem;
}
.section-header-row .section-title { text-align: left; margin-bottom: 0; }
.section-header-row .section-desc { text-align: left; margin-bottom: 0; max-width: 520px; }

/* ── Home Section ────────────────────────────────────────── */
.section-home { padding: 0; }

.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 72px 80px;
  position: relative; overflow: hidden;
  width: 100%;
}

.hero-particles { display: none; } /* Crystal Realm uses CSS orbs */

.hero-inner {
  max-width: 1320px; width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  position: relative; z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-character {
  position: relative;
  z-index: 0;
  min-width: 0;
  height: min(69vh, 650px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-character::before {
  content: '';
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 205, 226, .17), transparent 68%);
  filter: blur(18px);
}

.hero-character picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-character img {
  position: relative;
  width: min(100%, 580px);
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 28px 34px rgba(0, 8, 18, .48));
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--surface);
  border: 1px solid var(--surface-bd2);
  color: var(--text-mu);
  padding: .45rem 1.1rem; border-radius: 100px;
  font-weight: 500; font-size: .85rem; margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
}
.hero-badge-online {
  border-color: var(--accent-line);
  color: var(--text-mu);
}
.hero-badge-online::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
  display: inline-block;
  flex-shrink: 0;
}
.hero-badge-loading::before {
  content: '';
  width: 7px; height: 7px;
  border: 2px solid var(--surface-bd2);
  border-top-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: server-status-spin .8s linear infinite;
}
@keyframes server-status-spin {
  to { transform: rotate(360deg); }
}
.hero-badge-offline {
  border-color: rgba(239,68,68,.3);
  color: #f87171;
}
.hero-badge-offline::before {
  /* content: '';
  width: 7px; height: 7px;
  background: #ef4444;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0; */
}

.hero-player-list {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: 1.25rem; margin-top: -.5rem;
}
.hero-player {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--surface);
  border: 1px solid var(--surface-bd);
  border-radius: 100px;
  padding: .2rem .7rem .2rem .35rem;
  font-size: .78rem; font-weight: 500; color: var(--text-mu);
  backdrop-filter: blur(8px);
}
.hero-player img {
  width: 16px; height: 16px;
  border-radius: 3px; image-rendering: pixelated;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text); margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic; font-weight: 400;
  display: block;
}
.hero-title strong {
  font-weight: 700; display: block;
}
.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: 1.15rem; font-weight: 500; color: var(--text);
  margin-bottom: .5rem;
}
.hero-desc {
  font-size: 1.05rem; color: var(--text-mu); margin-bottom: 2.5rem; line-height: 1.6; max-width: 520px;
}

.hero-ip-box {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--surface-bd2);
  border-radius: 100px; padding: 5px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(16px);
}
.hero-ip-label {
  font-family: var(--font-mono); font-size: .7rem;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.15em;
  padding: 0 .75rem 0 1rem;
}
.hero-ip {
  font-family: var(--font-mono); color: var(--text);
  font-weight: 500; font-size: .95rem;
  padding: 0 .5rem 0 0;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-hero { padding: .85rem 2rem; font-size: 1rem; }

/* ── Server Info Card ─────────────────────────────────────── */
.sic {
  display: inline-flex;
  align-items: stretch;
  margin-top: 1.75rem;
  background: rgba(10, 12, 16, 0.80);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px var(--accent-soft),
    0 0 28px var(--accent-soft),
    0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
}

.sic-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .66rem;
  padding: 1.1rem 2.475rem 1.375rem;
  min-width: 143px;
}

.sic-edition {
  font-size: 1.155rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: 0.04em;
  text-shadow:
    0 0 8px var(--accent),
    0 0 20px var(--accent),
    0 0 40px var(--accent-soft);
}

.sic-row-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}

.sic-col-divider {
  width: 1px;
  flex-shrink: 0;
  background: linear-gradient(180deg, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
  box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent-soft);
}

.sic-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}

.sic-label {
  font-size: .792rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.sic-value {
  font-size: .902rem;
  color: var(--text-mu);
  font-family: var(--font-mono);
}

/* Floating glass info cards */
.ore-float {
  position: absolute;
  backdrop-filter: blur(8px);
  background: var(--surface);
  border: 1px solid var(--surface-bd2);
  border-radius: 14px;
  padding: .75rem 1rem;
  font-size: .85rem; font-weight: 500;
  white-space: nowrap; color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  animation: v3float 4s ease-in-out infinite alternate;
  pointer-events: none;
}
.ore-diamond  { top: 8%; left: -10%; animation-delay: 0s; }
.ore-gold     { top: 12%; right: -5%; animation-delay: 0.5s; }
.ore-redstone { bottom: 18%; left: -8%; animation-delay: 1s; }
.ore-emerald  { bottom: 12%; right: -5%; animation-delay: 1.5s; }

/* ── Ranks Section ───────────────────────────────────────── */
.ranks-section { padding: 100px 0; }

.ranks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.rank-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-bd);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.rank-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
/* tier orb glow */
.rank-card::after {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, var(--rank-color, #aaa) 0%, transparent 70%);
  opacity: 0.25;
  filter: blur(24px);
  pointer-events: none;
}
.rank-oyuncu { --rank-color: var(--color-oyuncu); }
.rank-vip    { --rank-color: var(--color-vip); }
.rank-mod    { --rank-color: var(--color-mod); }
.rank-admin  { --rank-color: var(--color-admin); }
.rank-kurucu { --rank-color: var(--color-kurucu); }
.rank-sunucusahibi { --rank-color: var(--color-sunucusahibi); }
.rank-yonetici { --rank-color: var(--color-yonetici); }
.rank-kurucuyardimcisi { --rank-color: var(--color-kurucuyardimcisi); }

.rank-card:hover {
  transform: translateY(-6px);
  border-color: var(--rank-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px var(--rank-color);
}

.rank-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--rank-color), color-mix(in oklch, var(--rank-color), #000 40%));
  box-shadow: 0 10px 20px -8px var(--rank-color);
  margin-bottom: 1.1rem; flex-shrink: 0;
  position: relative; z-index: 1;
}
.rank-header { margin-bottom: .6rem; }
.rank-tag-mono {
  font-family: var(--font-mono);
  font-size: .68rem; color: var(--text-dim);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: .3rem; display: block;
}
.rank-name {
  font-weight: 700; font-size: 1.15rem;
  color: var(--text); letter-spacing: -0.02em;
}
.rank-tag { display: none; }

.rank-desc {
  color: var(--text-mu); font-size: .85rem; line-height: 1.6;
  margin-bottom: 1.2rem; flex: 1;
}
.rank-perks { display: flex; flex-direction: column; gap: .45rem; }
.perk {
  display: block;
  font-size: .8rem; color: var(--text-mu);
}

/* ── User Profile Bar ────────────────────────────────────── */
.user-profile-bar {
  background: var(--bg2);
  border-top: 1px solid var(--surface-bd);
  border-bottom: 1px solid var(--surface-bd);
  padding: 1.5rem 0;
}
.user-profile-inner {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.profile-avatar { font-size: 2.5rem; }
.profile-info h3 {
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: .3rem;
}
.profile-info small { color: var(--text-dim); font-size: .78rem; font-family: var(--font-mono); }
.profile-stats {
  margin-left: auto; display: flex; gap: 2rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value { display: block; font-weight: 700; font-size: 1.05rem; color: var(--accent); letter-spacing: -0.02em; }
.stat-label { font-size: .72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); }
.btn-logout-profile {
  padding: .5rem 1.1rem;
  background: rgba(239,68,68,.1); color: #f87171;
  border: 1px solid rgba(239,68,68,.3); border-radius: 100px;
  font-weight: 500; font-size: .85rem; cursor: pointer; transition: all .2s;
  display: inline-block;
}
.btn-logout-profile:hover { background: rgba(239,68,68,.2); }

/* ── Videos Section ──────────────────────────────────────── */
.section-videos {
  background: linear-gradient(145deg, #091923, #082733 58%, #061018);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-bd);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
  padding: .875rem;
}
.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
}
.video-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: none;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  padding: 0;
  display: block;
}
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s, filter .3s;
}
.video-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.42));
}
.video-card:hover .video-poster img,
.series-card:hover .video-poster img {
  transform: scale(1.04);
  filter: brightness(1.08);
}
.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #061008;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  padding-left: 4px;
}
.video-info { padding: 1rem .5rem .4rem; }
.video-title {
  font-weight: 600; font-size: 1rem;
  letter-spacing: -0.02em; margin-bottom: .4rem;
}
.video-desc { color: var(--text-mu); font-size: .85rem; line-height: 1.5; }

/* ── Series Section ─────────────────────────────────────── */
.section-series {
  background: linear-gradient(145deg, #061018, #07212c 55%, #081a29);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.series-directory {
  margin: .75rem 0 1.25rem;
}

.series-directory-title {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .99rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
}

.series-episodes-panel {
  margin-top: 1.5rem;
}

.series-episodes-heading {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.series-season-tabs {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.series-season-tab {
  min-height: 42px;
  padding: .6rem 1.1rem;
  border: 1px solid var(--surface-bd2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  color: var(--text-mu);
  font-family: var(--font-main);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}

.series-season-tab:hover,
.series-season-tab.active {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-bright);
  transform: translateY(-1px);
}

.series-season-panel {
  display: none;
}

.series-season-panel.active {
  display: block;
}

.series-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-bd);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
  padding: .75rem;
}
.series-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
}
.series-info { padding: .875rem .4rem .3rem; }
.series-title {
  font-weight: 600; font-size: .9rem;
  letter-spacing: -0.02em; margin-bottom: .3rem;
}
.series-desc { color: var(--text-mu); font-size: .8rem; line-height: 1.5; }

/* ── Video Modal ─────────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.hidden {
  display: none;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 13, 22, 0.86);
  backdrop-filter: blur(10px);
}
.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: var(--surface);
  border: 1px solid var(--surface-bd2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
}
.video-modal-title {
  padding: 0 .25rem .75rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}
.video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid var(--surface-bd2);
  border-radius: 50%;
  background: rgba(3, 24, 34, 0.78);
  color: var(--text);
  cursor: pointer;
}
.video-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #020c13;
}
.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Rules Section ───────────────────────────────────────── */
.section-rules { }

.rules-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: start;
}
.rules-sticky {
  position: sticky; top: 100px;
}
.rules-warning-card {
  display: flex; gap: .875rem; align-items: flex-start;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-bd2);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-top: 2rem;
}
.rules-warning-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #f87171, #b91c1c);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; font-weight: 700;
}
.rules-warning-text h4 {
  font-size: .95rem; font-weight: 600; margin-bottom: .3rem;
}
.rules-warning-text .mono-chain {
  font-family: var(--font-mono); font-size: .8rem; color: var(--text-mu);
}

.rules-grid { display: flex; flex-direction: column; gap: 0; }
.rule-card {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--surface-bd);
  display: grid; grid-template-columns: 60px 1fr;
  gap: 1.5rem; align-items: baseline;
  background: transparent !important;
  border-left: none !important; border-right: none !important; border-top: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: fadeSlideIn .5s ease both;
  animation-delay: var(--delay);
  transition: background .2s;
}
.rule-card:first-child { border-top: 1px solid var(--surface-bd); }
.rule-card:hover { background: rgba(255,255,255,0.02) !important; }
.rule-icon-num {
  font-family: var(--font-mono);
  font-size: .85rem; color: var(--accent);
  letter-spacing: 0.08em;
}
.rule-icon { display: none; }
.rule-content {}
.rule-title {
  font-weight: 600; font-size: 1.15rem;
  letter-spacing: -0.02em; margin-bottom: .5rem;
  color: var(--text) !important;
}
.rule-desc {
  color: var(--text-mu) !important; font-size: .9rem;
  line-height: 1.6; font-weight: 400 !important;
}

.rules-footer { display: none; }
.rules-warning { display: none; }

/* ── Events Section ──────────────────────────────────────── */
.section-events { }

.events-group-title {
  font-family: var(--font-mono); font-size: .75rem;
  color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.15em; margin-bottom: 1.25rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.event-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-bd);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; gap: 1.1rem; align-items: flex-start;
  position: relative; overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.event-card:hover { transform: translateY(-4px); border-color: var(--surface-bd2); }
.event-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--event-color, var(--accent));
  border-radius: 3px 0 0 3px;
}

.event-date-badge {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--surface-bd2);
  border-radius: var(--radius);
  padding: .6rem .9rem; flex-shrink: 0;
  min-width: 52px;
}
.event-day { font-size: 1.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.event-month { font-family: var(--font-mono); font-size: .65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: .15rem; }

.event-icon { font-size: 1.5rem; flex-shrink: 0; display: none; }
.event-body { flex: 1; }
.event-title { font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; margin-bottom: .35rem; }
.event-time { font-family: var(--font-mono); font-size: .75rem; color: var(--text-dim); }
.event-desc { color: var(--text-mu); font-size: .85rem; line-height: 1.5; margin-top: .5rem; }
.event-countdown-badge { font-size: .78rem; color: var(--accent); font-weight: 600; }
.event-status { display: none; }
.event-card-past { opacity: .55; }

/* ── Polls Section ───────────────────────────────────────── */
.section-polls { }

.poll-widget {
  max-width: 640px; margin: 0 auto;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-bd2);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.poll-question {
  margin-bottom: 2rem;
}
.poll-q-icon { display: none; }
.poll-question h3 {
  font-size: 1.4rem; font-weight: 600;
  letter-spacing: -0.025em; margin-bottom: .6rem;
}
.poll-desc { color: var(--text-mu); font-size: .9rem; line-height: 1.55; }
.poll-deadline {
  margin-top: .75rem;
  font-family: var(--font-mono); font-size: .75rem;
  color: var(--text-dim);
}

.poll-form {}
.poll-option {
  display: flex; align-items: center; gap: .875rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--surface-bd);
  border-radius: var(--radius);
  cursor: pointer; margin-bottom: .75rem;
  transition: border-color .2s, background .2s;
}
.poll-option:hover { background: rgba(255,255,255,0.07); border-color: var(--surface-bd2); }
.poll-option input[type=radio] { accent-color: var(--accent); }
.poll-option-text { font-weight: 500; font-size: .95rem; }

.poll-submit-btn { width: 100%; padding: .9rem; margin-top: .5rem; }

.poll-result-row {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: .75rem;
  margin-bottom: 1rem;
}
.poll-result-label { font-weight: 500; font-size: .9rem; }
.poll-result-bar-wrap {
  width: 120px; height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px; overflow: hidden;
}
.poll-result-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
  border-radius: 3px; transition: width .6s ease;
}
.poll-result-pct { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); min-width: 36px; text-align: right; }
.poll-result-count { font-family: var(--font-mono); font-size: .75rem; color: var(--text-dim); min-width: 46px; text-align: right; }
.poll-total { margin-top: 1.25rem; font-size: .85rem; color: var(--text-mu); }
.poll-voted-msg { margin-top: .5rem; font-size: .85rem; color: var(--accent); }
.poll-msg { margin-top: .75rem; font-size: .85rem; text-align: center; color: var(--text-mu); }

/* ── Movies Section ──────────────────────────────────────── */
.section-movies {
  background: linear-gradient(145deg, #091923, #0a2633 55%, #07131d);
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.movie-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-bd);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: transform .3s, border-color .3s;
}
.movie-card:hover { transform: translateY(-6px); border-color: var(--surface-bd2); }

.movie-video-wrap { position: relative; overflow: hidden; }
.movie-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
  transition: background .25s;
}
.movie-card:hover .movie-play-overlay { background: rgba(0,0,0,0.15); }
.movie-play-btn {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: #0c0d10;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}
.movie-card:hover .movie-play-btn { transform: scale(1.08); }
.movie-info { padding: 1.1rem 1.25rem; }
.movie-title { font-weight: 600; font-size: .95rem; letter-spacing: -0.02em; margin-bottom: .35rem; }
.movie-desc { color: var(--text-mu); font-size: .82rem; line-height: 1.5; }

/* Movie Lightbox */
.movie-lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(2, 14, 23, .9);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.movie-lightbox.open, .movie-lightbox.active { opacity: 1; visibility: visible; }
.movie-lightbox-inner {
  background: var(--surface);
  border: 1px solid var(--surface-bd2);
  border-radius: var(--radius-lg);
  overflow: hidden; max-width: 900px; width: 100%;
}
.movie-lightbox-info {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.25rem;
}
.movie-lightbox-title { font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; }
.movie-lightbox-desc { font-size: .85rem; color: var(--text-mu); margin-top: .25rem; }
.movie-lightbox-close {
  background: rgba(255,255,255,0.08); border: 1px solid var(--surface-bd2);
  color: var(--text); border-radius: 100px;
  width: 36px; height: 36px; cursor: pointer; font-size: 1rem;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.movie-lightbox-close:hover { background: rgba(255,255,255,0.14); }

/* ── Founders Section ────────────────────────────────────── */
.section-founders { }
.founders-bg-glow { display: none; }

.founders-header {
  text-align: center; margin-bottom: 4rem;
}
.founders-crown { font-size: 2.5rem; margin-bottom: .75rem; }
.founders-title { margin-bottom: .75rem; }

.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.founders-grid-single {
  max-width: 440px;
  margin: 0 auto;
}

.founder-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--surface-bd);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
  animation: fadeSlideIn .6s ease both;
  animation-delay: var(--delay);
}
.founder-card:hover { transform: translateY(-8px); border-color: var(--surface-bd2); }

/* header area with avatar */
.founder-avatar {
  position: relative;
  aspect-ratio: 4/3;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--accent) 40%, transparent), color-mix(in srgb, var(--accent) 6%, black 94%) 70%);
}
.founder-avatar::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask: radial-gradient(ellipse at 50% 60%, black 30%, transparent 80%);
}
.founder-crown-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: min(180px, 58%);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 0 10px rgba(255,255,255,0.3))
    drop-shadow(0 12px 24px rgba(0,0,0,0.42));
}
.founder-avatar-ring { display: none; }
.founder-glow { display: none; }

/* founder role badge overlay */
.founder-crown-icon {
  position: absolute; top: 1.1rem; left: 1.1rem;
  background: rgba(0,0,0,.45); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px; padding: .35rem .9rem;
  font-size: .8rem; font-weight: 600; color: var(--text);
  z-index: 2;
}

.founder-name {
  font-family: var(--font-mono); font-size: 1.1rem;
  font-weight: 500; letter-spacing: 0;
  margin-bottom: .2rem;
}
.founder-badge { display: none; }
.founder-desc {
  color: var(--text-mu); font-size: .875rem;
  line-height: 1.55; margin-top: .75rem;
}

/* founder card body */
.founder-card > .founder-name,
.founder-card > .founder-desc,
.founder-card > .founder-badge,
.founder-card > .founder-stats {
  padding: 0 1.75rem;
}
.founder-card > .founder-name { padding-top: 1.5rem; }
.founder-card > .founder-desc { }
.founder-card > .founder-stats {
  display: flex; gap: 0;
  padding-bottom: 1.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface-bd);
}
.founder-stat {
  flex: 1; padding: 0 1rem;
  border-left: 1px solid var(--surface-bd);
  font-size: .85rem; color: var(--text-mu);
}
.founder-stat:first-child { border-left: none; padding-left: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--surface-bd);
  background: linear-gradient(135deg, #040b11, #071c27 55%, #06252d);
  padding: 80px 0 60px;
}
.footer-logo-img { display: none; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand { }
.footer-logo {
  display: flex; align-items: center; gap: .875rem;
  font-size: 1rem; font-weight: 600;
  margin-bottom: 1.1rem;
}
.footer-logo-badge {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #061008; font-weight: 700; font-size: .75rem;
}
.footer-brand p { font-size: .9rem; color: var(--text-mu); line-height: 1.5; max-width: 280px; }
.footer-ip {
  margin-top: 1.25rem; display: inline-block;
  font-family: var(--font-mono); font-size: .8rem;
  padding: .5rem .875rem;
  background: var(--surface);
  border: 1px solid var(--surface-bd2);
  border-radius: var(--radius);
  color: var(--text-mu);
}

.footer-links h4, .footer-info h4 {
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.15em; margin-bottom: 1.1rem;
}
.footer-links { display: flex; flex-direction: column; }
.footer-links a {
  color: var(--text-mu); font-size: .9rem;
  padding: .3rem 0; transition: color .2s;
}
.footer-links a:hover { color: var(--text); }
.footer-info p { color: var(--text-mu); font-size: .88rem; padding: .25rem 0; }

.footer-bottom {
  margin-top: 3.5rem; padding-top: 2rem;
  border-top: 1px solid var(--surface-bd);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .75rem;
  color: var(--text-dim); font-size: .8rem;
}
.footer-bottom p:last-child {
  font-family: var(--font-mono); font-size: .72rem;
}

/* ── Back To Top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--surface-bd2);
  color: var(--text); font-size: 1.1rem;
  backdrop-filter: blur(16px);
  cursor: pointer; z-index: 800;
  display: none; align-items: center; justify-content: center;
  transition: transform .2s, border-color .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.back-to-top.visible { display: flex; }
.back-to-top:hover { transform: translateY(-3px); border-color: var(--accent-line); }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 3rem 1rem;
  color: var(--text-dim); font-size: .95rem;
  background: var(--surface);
  border: 1px solid var(--surface-bd);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes v3float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes v3spin {
  from { transform: rotateY(0deg) rotateX(15deg); }
  to   { transform: rotateY(360deg) rotateX(15deg); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0); }
  10%  { opacity: .6; }
  90%  { opacity: .4; }
  100% { opacity: 0; transform: translateY(-80vh); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 4px var(--accent); }
  50%       { box-shadow: 0 0 12px var(--accent); }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .container { padding: 0 40px; }
  .hero { padding: 100px 40px 60px; }
  .nav-container { padding: 16px 40px; }
  .ranks-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { display: block; }
  .hero-character {
    height: 410px;
    margin: 36px auto -20px;
    justify-content: center;
  }
  .hero-character img { width: min(100%, 430px); }
  .ranks-grid { grid-template-columns: repeat(2, 1fr); }
  .series-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-layout { grid-template-columns: 1fr; gap: 40px; }
  .rules-sticky { position: static; }
  .founders-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  .container { padding: 0 20px; }
  .hero { padding: 100px 20px 50px; }
  .nav-container { padding: 14px 20px; }
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(4, 23, 33, .97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-bd);
    padding: 12px; gap: 4px;
    border-radius: 0;
  }
  .nav-toggle { display: flex; }
  .nav-menu.open .nav-link { padding: .7rem 1rem; }
  .nav-dropdown-toggle {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }
  .nav-submenu {
    position: static;
    transform: none;
    min-width: 0;
    margin: 4px 0 0 12px;
    padding: 0 0 0 10px;
    background: transparent;
    border: none;
    border-left: 1px solid var(--surface-bd2);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-dropdown.open .nav-submenu {
    display: block;
    transform: none;
  }
  .nav-submenu a {
    padding: .6rem .75rem;
  }
  .info-content-panel { padding: 1.25rem; }
  .info-feature-list { grid-template-columns: 1fr; }
  .navbar { position: fixed; }
  .section { padding: 60px 0; }
  .ranks-grid { grid-template-columns: 1fr; }
  .series-grid { grid-template-columns: 1fr; }
  .founders-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .hero-ip-box { flex-wrap: wrap; border-radius: var(--radius); }
  .hero-character {
    height: 320px;
    margin-top: 28px;
  }
}

/* ── F3 Debug Widget ──────────────────────────────────────── */
.f3-debug {
  position: fixed;
  bottom: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.2;
  background: rgba(0, 0, 0, 0.8);
  color: #00ff00;
  padding: 0.5rem;
  margin: 0.5rem;
  border: 1px solid rgba(0, 255, 0, 0.3);
  border-radius: 4px;
  max-width: 300px;
  z-index: 9999;
  pointer-events: none;
}

.f3-green { color: #00ff00; }
.f3-gold  { color: #ffcc00; }
.f3-red   { color: #ff4444; }

/* ── Achievement Toast ────────────────────────────────────── */
.achievement-toast {
  position: fixed;
  top: 30%;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(13, 15, 18, 0.95);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  z-index: 10000;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateX(400px);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.achievement-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.achievement-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.achievement-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.achievement-desc {
  font-size: 0.8rem;
  color: var(--text-mu);
}

/* ── Creative Mode (light) kept for JS compat ──────────────── */
body.creative-mode { filter: invert(1); }
