/* ══════════════════════════════════════════════════════
   Crowned — Enhanced Design System
   Cinematic parchment + medieval kingdom aesthetic
══════════════════════════════════════════════════════ */

:root {
  --page:        #f4ede0;
  --page-soft:   #faf5eb;
  --paper:       #fffaf0;
  --paper-alt:   #fff6e4;
  --ink:         #1a1610;
  --ink-soft:    #2e2a22;
  --muted:       #6b6254;
  --line:        #d4c9b2;
  --line-soft:   #e8e0ce;
  --stone:       #7a7264;
  --gold:        #c99a3f;
  --gold-light:  #e0ba72;
  --gold-deep:   #8a6420;
  --gold-glow:   rgba(201,154,63,0.35);
  --moss:        #4d6f45;
  --moss-deep:   #2d4e33;
  --sky:         #5a8fad;
  --sky-soft:    rgba(90,143,173,0.18);
  --success:     #2f6a3f;
  --danger:      #8a3431;

  /* Hero dark surface */
  --hero-bg:     #110f0a;
  --hero-mid:    #1c1710;

  --radius:      14px;
  --radius-lg:   20px;
  --shadow:      0 20px 48px rgba(26,22,16,0.16);
  --shadow-gold: 0 8px 32px rgba(201,154,63,0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Cinzel", Georgia, serif;
  margin-top: 0;
  line-height: 1.18;
}

a { color: var(--moss-deep); text-decoration: none; }

/* ── Page Transition ─────────────────────────────── */
#page-transition {
  position: fixed; inset: 0; z-index: 9999;
  background:
    radial-gradient(circle at 50% 42%, rgba(201,154,63,0.08), transparent 42%),
    rgba(17, 15, 10, 0.96);
  pointer-events: none;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 220ms cubic-bezier(0.22,1,0.36,1),
    transform 220ms cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
#page-transition.t-out {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}

html.is-leaving body {
  transition: opacity 180ms cubic-bezier(0.22,1,0.36,1), transform 180ms cubic-bezier(0.22,1,0.36,1);
  opacity: 0.985;
  transform: translateY(-2px);
}

/* ── Layout ──────────────────────────────────────── */
.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* ── Header / Nav ────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(17, 15, 10, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,154,63,0.18);
  transition: background 400ms ease, border-color 400ms ease;
}

.site-header.scrolled {
  background: rgba(17, 15, 10, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,154,63,0.18);
}

.site-header.light {
  background: rgba(17, 15, 10, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,154,63,0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.brand {
  font-family: "Cinzel", serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  font-size: 1.08rem;
  text-decoration: none;
  transition: color 300ms;
}

.site-header.light .brand { color: #fff; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem;
}

.nav a {
  color: rgba(255,255,255,0.72);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.42rem 0.68rem;
  transition: color 200ms, background 200ms;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover, .nav a.active {
  color: #fff;
  background: rgba(201,154,63,0.22);
}

.site-header.light .nav a { color: rgba(255,255,255,0.72); }
.site-header.light .nav a:hover,
.site-header.light .nav a.active { color: #fff; background: rgba(201,154,63,0.22); }

.lang-switch {
  border: 1px solid rgba(201,154,63,0.45);
  background: rgba(201,154,63,0.1);
  color: var(--gold-light) !important;
  padding: 0.32rem 0.62rem !important;
  border-radius: 8px;
  font-size: 0.82rem !important;
}
.site-header.light .lang-switch {
  border-color: rgba(201,154,63,0.45);
  background: rgba(201,154,63,0.1);
  color: var(--gold-light) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
}
.site-header.light .nav-toggle span { background: #fff; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100svh;
  background: var(--hero-bg);
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(201,154,63,0.11), transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(77,111,69,0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(90,143,173,0.08), transparent 50%);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 7rem 0 5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-eyebrow::after { transform: scaleX(-1); }

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  color: #fff;
  margin: 0 0 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 32px rgba(201,154,63,0.15);
}

.hero-title .gold-word {
  color: var(--gold-light);
  position: relative;
}

.hero-lead {
  color: rgba(255,255,255,0.62);
  font-size: 1.08rem;
  max-width: 54ch;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.hero-sub {
  color: rgba(255,255,255,0.4);
  font-size: 0.92rem;
  max-width: 50ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-social a {
  color: rgba(255,255,255,0.5);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  transition: color 200ms, border-color 200ms, background 200ms;
}
.hero-social a:hover {
  color: var(--gold-light);
  border-color: rgba(201,154,63,0.45);
  background: rgba(201,154,63,0.08);
}

/* Hero panel / logo */
.hero-visual {
  position: relative;
}

.hero-logo-wrap {
  background: linear-gradient(145deg, rgba(201,154,63,0.14), rgba(90,143,173,0.1));
  border: 1px solid rgba(201,154,63,0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
}

.hero-logo-wrap img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.hero-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,154,63,0.3);
  color: rgba(255,255,255,0.7);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  letter-spacing: 0.04em;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll svg { opacity: 0.4; }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.72rem 1.2rem;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 600ms ease;
}
.btn:hover::after { transform: translateX(100%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(130deg, var(--gold), #d2a24d);
  color: #1a1208;
  box-shadow: 0 4px 20px rgba(201,154,63,0.38);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(201,154,63,0.52); }

.btn-ghost {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.88);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); }

.btn-secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(201,154,63,0.14); }

.btn-moss {
  background: linear-gradient(130deg, var(--moss), #5e8a55);
  color: #fff;
  box-shadow: 0 4px 16px rgba(77,111,69,0.3);
}

.btn-sky {
  background: linear-gradient(130deg, var(--sky), #7baec7);
  color: #fff;
}

.btn-sm { padding: 0.45rem 0.8rem; font-size: 0.82rem; }

/* ── Content Area ─────────────────────────────────── */
.content-area {
  background:
    linear-gradient(180deg, var(--hero-bg) 0%, var(--page) 120px),
    var(--page);
  padding-top: 0;
}

.content-wrap {
  background: var(--page);
  padding-bottom: 4rem;
}

/* ── Section ─────────────────────────────────────── */
.section {
  padding: 4rem 0;
}
.section + .section {
  padding-top: 0;
}

.section-label {
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.section-lead {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 2.4rem;
  font-size: 1rem;
}

/* ── Feature Cards ────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 300ms;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(26,22,16,0.14), var(--shadow-gold);
  border-color: rgba(201,154,63,0.35);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.2rem;
  color: var(--gold);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

/* ── Stat Grid ────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  transition: border-color 200ms, box-shadow 200ms;
}
.stat-card:hover {
  border-color: rgba(201,154,63,0.4);
  box-shadow: var(--shadow-gold);
}

.stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.stat-value {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
}

/* ── Cards ────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.card:hover {
  border-color: rgba(201,154,63,0.3);
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(26,22,16,0.12), var(--shadow-gold);
}
.card p { color: var(--muted); }

/* ── Panel ────────────────────────────────────────── */
.panel {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.panel h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }

/* ── Grid ─────────────────────────────────────────── */
.grid { display: grid; gap: 1.2rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Info list ────────────────────────────────────── */
.info-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.info-list li {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
}
.info-list li strong { color: var(--ink); }
.list-muted { color: var(--muted); font-size: 0.88rem; margin-top: 0.6rem; }

/* ── Badges ────────────────────────────────────────── */
.badge {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.28rem 0.65rem;
  display: inline-block;
}
.badge-gold {
  background: rgba(201,154,63,0.12);
  border-color: rgba(201,154,63,0.4);
  color: var(--gold-deep);
}

/* ── CTA Banner ────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(130deg, var(--hero-bg), var(--hero-mid));
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(201,154,63,0.1), transparent);
  pointer-events: none;
}
.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}
.cta-banner p { color: rgba(255,255,255,0.55); max-width: 50ch; margin: 0 auto 2rem; }

/* ── Notice ────────────────────────────────────────── */
.notice {
  background: rgba(201,154,63,0.08);
  border: 1px solid rgba(201,154,63,0.28);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--hero-bg);
  padding: 2.5rem 0 2rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-brand {
  font-family: "Cinzel", serif;
  font-weight: 800;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
}
.footer-links a,
.footer-links button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  padding: 0;
  text-decoration: none;
  transition: color 180ms;
}
.footer-links a:hover,
.footer-links button:hover { color: rgba(255,255,255,0.75); }

/* ── Reveal animations ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms cubic-bezier(0.22,1,0.36,1),
              transform 600ms cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Various page-specific ────────────────────────── */
.eyebrow {
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero {
  padding: 9rem 0 3rem;
  background: linear-gradient(180deg, var(--hero-bg) 0%, var(--page) 100%);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); }

/* ── Form ──────────────────────────────────────────── */
.form { display: grid; gap: 0.9rem; }
.form label { font-size: 0.92rem; font-weight: 800; }
.form input, .form textarea, .form select {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  padding: 0.65rem 0.8rem;
  width: 100%;
  transition: border-color 180ms;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,154,63,0.12);
}
.form textarea { min-height: 140px; resize: vertical; }

/* ── Forum ──────────────────────────────────────────── */
.forum-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; }
.forum-pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  transition: background 180ms, border-color 180ms;
  text-align: left;
}
.forum-pill:hover, .forum-pill.active {
  background: rgba(201,154,63,0.1);
  border-color: rgba(201,154,63,0.4);
}
.forum-thread-item { cursor: pointer; }
.forum-post { border-top: 1px solid var(--line); padding-top: 0.8rem; margin-top: 0.8rem; }
.forum-category-list, .forum-thread-list { display: grid; gap: 0.5rem; }

/* ── Table ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 0.6rem 0.5rem; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Map ──────────────────────────────────────────── */
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: min(70vh, 680px);
  width: 100%;
}

/* ── Player grid ──────────────────────────────────── */
.player-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.player-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms, transform 180ms;
}
.player-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.player-avatar { width: 54px; height: 54px; border-radius: 9px; border: 2px solid var(--gold); object-fit: cover; }
.player-name { font-weight: 800; font-size: 0.88rem; }
.player-meta { color: var(--muted); font-size: 0.76rem; }

/* ── Percent summary ────────────────────────────────── */
.percent-summary {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.75rem; display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.8rem;
}
.percent-summary.critical { background: #fdeaea; border-color: #c35d5d; }
.percent-value { font-size: 1.2rem; font-weight: 900; }

/* ── Filter grid ────────────────────────────────────── */
.filter-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 0.5rem; align-items: end; }

/* ── Status dot ─────────────────────────────────────── */
.status-dot {
  display: inline-block; width: 0.72rem; height: 0.72rem;
  border-radius: 50%; background: var(--stone); margin-right: 0.35rem; vertical-align: middle;
}
.status-dot.online { background: var(--success); animation: statusPulse 1.8s ease-in-out infinite; }
.status-dot.offline { background: var(--danger); }

/* ── Form status ────────────────────────────────────── */
.form-status { border-radius: 10px; padding: 0.65rem 0.8rem; font-weight: 800; display: none; }
.form-status.success { display: block; background: #e6f4ea; color: var(--success); border: 1px solid #b5d8bf; }
.form-status.error { display: block; background: #fdebea; color: var(--danger); border: 1px solid #e8b3b0; }

/* ── Rule list ──────────────────────────────────────── */
.rule-list { display: grid; gap: 0.8rem; }
.rule-public {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.9rem; display: grid; gap: 0.25rem;
}
.rule-public strong { color: var(--moss-deep); }
.penalty-badge {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.76rem; font-weight: 900; min-width: 4rem; padding: 0.2rem 0.55rem; white-space: nowrap;
}
.penalty-neutral { background: #edf3f5; border-color: #c3d4dc; color: #2f4f63; }
.penalty-warn { background: #fff3d8; border-color: #dfb86f; color: #7a541b; }
.penalty-critical { background: #fdeaea; border-color: #d58c88; color: #7d2f2f; }
.penalty-ban { background: #2a1d1d; border-color: #2a1d1d; color: #fff9ee; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list { display: grid; gap: 0.75rem; }
.faq-list summary { cursor: pointer; font-weight: 900; }

/* ── Badge row ──────────────────────────────────────── */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.badge-critical { background: #fdeaea; border-color: #c35d5d; color: #7d2f2f; }

/* ── Legal notice ───────────────────────────────────── */
.legal-notice {
  background: #fff7e5; border: 1px solid #dfb86f; border-left-width: 4px;
  border-left-color: var(--gold); border-radius: 10px; color: #5f461c;
  font-weight: 800; padding: 0.75rem 0.9rem;
}

/* ── Auth ──────────────────────────────────────────── */
.auth-user { color: var(--muted); font-size: 0.84rem; padding: 0.35rem 0.5rem; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; align-items: end; }
.form .inline { display: flex; gap: 0.65rem; align-items: flex-start; }

/* ── Cookie consent ─────────────────────────────────── */
.cookie-consent {
  background: rgba(255,250,240,0.98); border: 1px solid var(--line); border-radius: var(--radius);
  bottom: 1rem; box-shadow: var(--shadow); left: 50%;
  max-width: min(760px, 92vw); padding: 1.2rem;
  position: fixed; transform: translateX(-50%); z-index: 80;
}
.cookie-consent[hidden] { display: none; }
.cookie-options { display: grid; gap: 0.4rem; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 0.8rem 0; }
.cookie-options label { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-weight: 800; padding: 0.55rem; }

/* ── Animations ─────────────────────────────────────── */
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,106,63,0.4); }
  50% { box-shadow: 0 0 0 7px rgba(47,106,63,0); }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner,
  .grid.cols-3,
  .grid.cols-4,
  .grid.cols-2,
  .stat-grid,
  .feature-grid,
  .forum-layout,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { display: none; }

  .nav-toggle { display: flex; }
  #main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17,15,10,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 99;
  }
  #main-nav.nav-open { display: flex; }
  #main-nav a {
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
    color: rgba(255,255,255,0.85) !important;
  }
  #main-nav a.active,
  #main-nav a:hover { color: var(--gold-light) !important; background: rgba(201,154,63,0.12); }

  .header-inner { min-height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  [data-hero-enter] { opacity: 1 !important; transform: none !important; }
  #page-transition { display: none !important; }
  html.is-leaving body { opacity: 1; transform: none; }
}
