﻿:root {
  color-scheme: light;
  --bg-1: #fff6ea;
  --bg-2: #f5ddc4;
  --bg-3: #f1c2a9;
  --paper: #fff7f0;
  --ink: #161a20;
  --text: #1e232b;
  --text-muted: #4f5d6b;
  --accent: #ff6a3d;
  --accent-2: #2cc7bd;
  --line: rgba(26, 30, 36, 0.14);
  --card: rgba(255, 255, 255, 0.8);
  --ok: #26c28f;
  --warn: #f29f05;
  --max-width: 1220px;
  --radius: 20px;
  --shadow: 0 34px 80px rgba(27, 16, 6, 0.22);
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-muted: rgba(255, 255, 255, 0.6);
  --surface-solid: #ffffff;
  --glow-1: rgba(255, 106, 61, 0.16);
  --glow-2: rgba(44, 199, 189, 0.14);
  --glow-3: rgba(46, 89, 255, 0.12);
  --aurora-1: rgba(44, 199, 189, 0.24);
  --aurora-2: rgba(255, 106, 61, 0.18);
  --aurora-3: rgba(46, 89, 255, 0.18);
  --dot-color: rgba(26, 30, 36, 0.1);
  --grid-color: rgba(26, 30, 36, 0.08);
  --orb-1: rgba(255, 106, 61, 0.14);
  --orb-2: rgba(44, 199, 189, 0.12);
  --orb-3: rgba(46, 89, 255, 0.12);
  --status-surface: rgba(255, 255, 255, 0.92);
  --status-surface-strong: rgba(255, 255, 255, 0.98);
  --focus-ring: rgba(46, 199, 189, 0.55);
  --font-body: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-display: "Unbounded", "Arial Black", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-1: #070a10;
  --bg-2: #0b121d;
  --bg-3: #0f1a29;
  --paper: #f8f2e8;
  --ink: #0c0f14;
  --text: #f5f1ea;
  --text-muted: #b9c3cf;
  --accent: #ff7a2f;
  --accent-2: #2dd4bf;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(12, 16, 22, 0.78);
  --ok: #2dd4bf;
  --warn: #f7b955;
  --shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
  --surface: rgba(14, 18, 26, 0.78);
  --surface-strong: rgba(12, 16, 22, 0.92);
  --surface-muted: rgba(16, 20, 28, 0.6);
  --surface-solid: #0f131a;
  --glow-1: rgba(255, 122, 47, 0.12);
  --glow-2: rgba(45, 212, 191, 0.12);
  --glow-3: rgba(99, 102, 241, 0.12);
  --aurora-1: rgba(45, 212, 191, 0.2);
  --aurora-2: rgba(255, 122, 47, 0.16);
  --aurora-3: rgba(99, 102, 241, 0.18);
  --dot-color: rgba(255, 255, 255, 0.08);
  --grid-color: rgba(255, 255, 255, 0.05);
  --orb-1: rgba(255, 122, 47, 0.12);
  --orb-2: rgba(45, 212, 191, 0.1);
  --orb-3: rgba(99, 102, 241, 0.12);
  --status-surface: rgba(12, 16, 22, 0.92);
  --status-surface-strong: rgba(14, 18, 26, 0.98);
  --focus-ring: rgba(45, 212, 191, 0.6);
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.62;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(1600px 900px at 14% 6%, var(--glow-1), transparent 62%),
    radial-gradient(1500px 980px at 88% 10%, var(--glow-2), transparent 64%),
    radial-gradient(1500px 900px at 62% 92%, var(--glow-3), transparent 66%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 54%, var(--bg-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

main,
footer {
  position: relative;
  z-index: 2;
}

.golem-bg {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  width: 640px;
  aspect-ratio: 1;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: blur(0.5px) drop-shadow(0 24px 50px rgba(17, 10, 4, 0.18));
}

.golem-left {
  top: 1200px;
  left: -40px;
  background-image: url("golemL.png");
}

.golem-right {
  top: 55vh;
  right: -60px;
  background-image: url("golemR.png");
}

@media (max-width: 720px) {
  .golem-bg {
    opacity: 0.85;
    width: 420px;
  }

  .golem-right {
    top: 70vh;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(0deg, transparent 96%, var(--grid-color) 96%),
    linear-gradient(90deg, transparent 96%, var(--grid-color) 96%),
    radial-gradient(circle at 1px 1px, var(--dot-color) 1px, transparent 0);
  background-size: 56px 56px, 56px 56px, 20px 20px;
}

body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background:
    radial-gradient(38% 30% at 12% 20%, var(--aurora-1), transparent 70%),
    radial-gradient(32% 26% at 82% 16%, var(--aurora-2), transparent 72%),
    radial-gradient(34% 28% at 70% 78%, var(--aurora-3), transparent 72%),
    radial-gradient(420px 320px at 16% 32%, var(--orb-1), transparent 70%),
    radial-gradient(420px 320px at 84% 26%, var(--orb-2), transparent 70%),
    radial-gradient(520px 380px at 70% 82%, var(--orb-3), transparent 72%);
  animation: auroraDrift 18s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
  from { transform: translate3d(-1.4%, -1.2%, 0) scale(1); }
  to { transform: translate3d(1.6%, 1.4%, 0) scale(1.04); }
}

@keyframes edgeFloatUp {
  0% { transform: translate3d(var(--x), 120vh, 0) scale(var(--scale)); opacity: 0; }
  12% { opacity: var(--alpha); }
  88% { opacity: var(--alpha); }
  100% { transform: translate3d(var(--x), -120vh, 0) scale(var(--scale)); opacity: 0; }
}

@keyframes edgeFloatDown {
  0% { transform: translate3d(var(--x), -120vh, 0) scale(var(--scale)); opacity: 0; }
  12% { opacity: var(--alpha); }
  88% { opacity: var(--alpha); }
  100% { transform: translate3d(var(--x), 120vh, 0) scale(var(--scale)); opacity: 0; }
}

@keyframes galleryMarquee {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(120deg, var(--surface-strong), var(--surface));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(22, 18, 8, 0.12);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.75), transparent);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: conic-gradient(from 140deg, var(--accent), #ffad72, var(--accent-2), var(--accent));
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.25), 0 0 0 1px rgba(31, 35, 41, 0.18);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.26rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  white-space: normal;
  flex: 1 1 520px;
  min-width: 0;
  justify-content: center;
  overflow: visible;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.86rem;
  padding: 8px 10px;
  border-radius: 10px;
  transition: 180ms ease;
  border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(46, 196, 182, 0.18);
  border-color: rgba(255, 107, 53, 0.45);
  box-shadow: 0 8px 16px rgba(255, 107, 53, 0.12);
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.site-header .actions .pill-btn.primary,
.site-header .actions a[data-discord-link] {
  display: none;
}

.lang-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(46, 196, 182, 0.22);
}

.lang-menu.is-open .lang-toggle {
  color: var(--ink);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.lang-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: 180ms ease;
  min-width: 150px;
  z-index: 40;
}

.lang-menu.is-open .lang-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-options button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 10px;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  justify-content: flex-start;
}

.lang-options button.active {
  color: var(--ink);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.lang-options .flag {
  font-size: 0.95rem;
  line-height: 1;
}

.pill-btn {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 180ms ease;
  backdrop-filter: blur(10px);
}

.pill-btn:hover {
  border-color: rgba(255, 107, 53, 0.7);
  box-shadow: 0 14px 32px rgba(27, 17, 6, 0.22);
  transform: translateY(-1px);
}

.pill-btn.primary {
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: var(--ink);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(255, 107, 53, 0.25);
}

.pill-btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(102deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%);
}

.pill-btn.primary:hover::after {
  animation: btnSweep 700ms ease;
}

.pill-btn.is-compact {
  padding: 6px 10px;
  font-size: 0.8rem;
}

@keyframes btnSweep {
  to {
    transform: translateX(110%);
  }
}

.hero {
  padding: 78px 0 88px;
}

.hero--epic {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.hero--epic::before {
  content: "";
  position: absolute;
  right: -40px;
  top: 110px;
  width: 360px;
  height: 520px;
  background: url("assets/copper-golem.svg") no-repeat center / contain;
  opacity: 0.12;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: -1;
}

.hero-gallery-bg {
  position: absolute;
  inset: -120px;
  pointer-events: none;
  z-index: -2;
  opacity: 0.4;
  filter: blur(0.2px);
}

.gallery-ring {
  position: absolute;
  right: -20%;
  left: -20%;
  top: 410px;
  display: flex;
  align-items: center;
  gap: 45px;
  animation: galleryMarquee 42s linear infinite;
}

.gallery-orbit {
  width: 350px;
  height: 235px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  filter: saturate(1.05);
  opacity: 0.62;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-content {
  display: grid;
  gap: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text-muted);
  width: fit-content;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.16);
}

.hero-lead {
  color: var(--text-muted);
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  margin: 0;
  max-width: 60ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--surface-strong), var(--surface));
  font-size: 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 53, 0.12);
}

.meta-chip strong {
  font-weight: 700;
}

.meta-chip .pill-btn {
  padding: 6px 10px;
  font-size: 0.78rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
}

.status-card {
  position: relative;
  background: linear-gradient(160deg, var(--status-surface-strong), var(--status-surface));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: statusFloat 8s ease-in-out infinite;
}

.status-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(180px 140px at 80% 10%, rgba(255, 255, 255, 0.18), transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}

.status-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.25;
  pointer-events: none;
}

:root[data-theme="dark"] .status-card::after {
  background: radial-gradient(200px 160px at 80% 12%, rgba(255, 255, 255, 0.06), transparent 72%);
  opacity: 0.12;
}

:root[data-theme="dark"] .status-card::before {
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.18;
}

.status-card.is-online {
  border-color: rgba(46, 196, 182, 0.5);
}

.status-card.is-offline {
  border-color: rgba(255, 107, 53, 0.45);
}

.edge-stream {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
  overflow: hidden;
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}

.edge-stream--left {
  left: 0;
}

.edge-stream--right {
  right: 0;
}

.edge-stream.is-empty {
  display: none;
}

.edge-particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: edgeFloatUp var(--dur) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

.edge-stream--right .edge-particle {
  animation-name: edgeFloatDown;
}

.edge-particle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  border-radius: 12px;
  filter: saturate(1.05);
}

.edge-particle--fallback {
  background: linear-gradient(140deg, rgba(70, 75, 86, 0.9), rgba(36, 40, 48, 0.9));
}

.edge-particle--fallback img {
  display: none;
}

:root[data-theme="dark"] .edge-particle {
  background: rgba(12, 16, 22, 0.7);
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-card.is-online .status-pill {
  background: rgba(46, 196, 182, 0.18);
  border-color: rgba(46, 196, 182, 0.5);
}

.status-card.is-offline .status-pill {
  background: rgba(255, 107, 53, 0.2);
  border-color: rgba(255, 107, 53, 0.5);
}

.status-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.status-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
  background: var(--surface);
  text-align: center;
}

.status-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-item strong {
  font-size: 1.05rem;
}

.status-motd {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-orbit {
  position: absolute;
  inset: -200px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(520px 420px at 12% 10%, var(--glow-1), transparent 72%),
    radial-gradient(520px 420px at 90% 30%, var(--glow-2), transparent 72%),
    radial-gradient(560px 440px at 40% 90%, var(--glow-3), transparent 72%);
  opacity: 0.7;
  filter: blur(1px);
}

@keyframes statusFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: clip;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.14), transparent 35%, transparent 70%, rgba(46, 196, 182, 0.16));
  opacity: 0.55;
  transition: opacity 260ms ease;
}

.panel:hover::before {
  opacity: 0.8;
}

.react-spotlight-badge {
  margin: 0 0 10px;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 53, 0.5);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.react-spotlight-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.9vw, 2.6rem);
}

.react-spotlight-subtitle {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.react-spotlight-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.react-spotlight-tabs button {
  border: 1px solid rgba(255, 107, 53, 0.32);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
}

.react-spotlight-tabs button.is-active {
  border-color: rgba(255, 107, 53, 0.85);
  background: rgba(46, 196, 182, 0.18);
}

.react-spotlight-points {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  color: var(--text);
}

.react-spotlight-cta {
  margin-top: 14px;
  display: inline-flex;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
}

.crest {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  line-height: 1.04;
  margin: 0 0 16px;
  letter-spacing: 0.03em;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.06rem;
  max-width: 62ch;
  margin: 0 0 18px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.stat {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  font-size: 0.92rem;
}

.stat.is-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.section {
  padding: 44px 0 16px;
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.3vw, 2.5rem);
  position: relative;
  padding-bottom: 12px;
}

.legend-name {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 78px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

.section-subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: start;
}

.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.loop-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--surface), var(--surface-muted));
  padding: 18px;
  box-shadow: var(--shadow);
  min-height: 180px;
  display: grid;
  gap: 10px;
}

.loop-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.loop-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.strip {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface-strong), var(--surface-muted));
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.strip strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: linear-gradient(155deg, var(--surface), var(--surface-muted));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), transparent 45%, rgba(46, 196, 182, 0.12));
  transition: opacity 220ms ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}


.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.65);
  box-shadow: 0 18px 46px rgba(27, 17, 6, 0.22), 0 0 0 1px rgba(255, 107, 53, 0.18) inset;
}

.card h3,
.card h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.16rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 90px;
  gap: 12px;
}

.gallery figure {
  margin: 0;
  position: relative;
  cursor: zoom-in;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.gallery figure:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 53, 0.7);
  box-shadow: 0 18px 40px rgba(27, 17, 6, 0.25);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 780ms ease;
  filter: saturate(1.05);
}

.gallery figure:hover img {
  transform: scale(1.06);
}

.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 0.88rem;
  color: #ffffff;
  padding: 14px 12px 10px;
  border-top: 0;
  background: linear-gradient(to top, rgba(19, 23, 28, 0.8), rgba(19, 23, 28, 0));
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.gallery .shot-1 {
  grid-column: span 7;
  grid-row: span 4;
}

.gallery .shot-2,
.gallery .shot-3 {
  grid-column: span 5;
  grid-row: span 2;
}

.gallery .shot-4 {
  grid-column: span 4;
  grid-row: span 3;
}

.gallery .shot-5 {
  grid-column: span 8;
  grid-row: span 3;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(16, 18, 22, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  width: min(1280px, 94vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.7);
}

.lightbox button {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--ink);
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  background: var(--surface-strong);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

textarea[readonly] {
  min-height: 145px;
  background: var(--surface-strong);
}

.field-full {
  grid-column: 1 / -1;
}

.form-note {
  margin-top: 10px;
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--warn);
}

.stack {
  display: grid;
  gap: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  color: var(--text-muted);
  background: var(--surface-muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.meta {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.page-intro {
  padding: 58px 0 26px;
}

.page-intro h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
}

.page-intro p {
  margin: 0;
  color: var(--text-muted);
}

.filters {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  margin-bottom: 18px;
}

.mods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(46, 196, 182, 0.4);
  text-decoration: none;
  color: var(--text);
  background: rgba(46, 196, 182, 0.18);
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 0.92rem;
}

.link-btn:hover {
  border-color: rgba(255, 107, 53, 0.65);
  background: rgba(46, 196, 182, 0.26);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline .card {
  position: relative;
  overflow: hidden;
}

.timeline .card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
}

.challenge-box {
  display: grid;
  gap: 14px;
}

.challenge-actions,
.challenge-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.challenge-actions .pill-btn.primary {
  min-width: 0;
  width: 100%;
  flex: 1 1 100%;
}

.challenge-result {
  border: 1px dashed rgba(255, 107, 53, 0.55);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface);
}

.challenge-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.challenge-text {
  margin: 0;
  color: var(--text);
}

.challenge-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 12px 0 10px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 53, 0.55);
  background: rgba(255, 107, 53, 0.18);
  color: var(--text);
  font-weight: 600;
}

.challenge-badge.is-easy {
  border-color: rgba(43, 189, 140, 0.7);
  background: rgba(43, 189, 140, 0.18);
}

.challenge-badge.is-medium {
  border-color: rgba(245, 159, 0, 0.75);
  background: rgba(245, 159, 0, 0.18);
}

.challenge-badge.is-hard {
  border-color: rgba(231, 76, 60, 0.75);
  background: rgba(231, 76, 60, 0.18);
}

.challenge-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.challenge-streak {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.details-stack {
  display: grid;
  gap: 14px;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(150deg, var(--surface), var(--surface-muted));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-card > summary {
  cursor: pointer;
  padding: 16px 18px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.detail-card > summary::-webkit-details-marker {
  display: none;
}

.detail-card > summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--text-muted);
}

.detail-card[open] > summary::after {
  content: "–";
}

.detail-card[open] > summary {
  background: rgba(46, 196, 182, 0.12);
}

.detail-body {
  padding: 0 18px 18px;
}

.detail-body .section-actions {
  margin: 6px 0 16px;
}

.rules-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(150deg, var(--surface), var(--surface-muted));
  padding: 10px 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

details[open] {
  border-color: rgba(255, 107, 53, 0.55);
  box-shadow: 0 16px 32px rgba(27, 17, 6, 0.18);
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  color: var(--text-muted);
}

.plugins-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: var(--surface);
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 107, 53, 0.22);
  text-align: left;
  font-size: 0.92rem;
}

th {
  font-family: var(--font-display);
  color: var(--text-muted);
  background: var(--surface-muted);
}

tr:hover td {
  background: rgba(46, 196, 182, 0.14);
}

.empty-state {
  color: var(--text-muted);
  padding: 12px;
  text-align: center;
}

.site-footer {
  margin-top: 46px;
  border-top: 1px solid var(--line);
  background: var(--surface-strong);
}

.footer-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  min-width: 240px;
  max-width: min(420px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 220ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.feedback-fab {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 72;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--surface-strong);
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  box-shadow: var(--shadow);
}

.feedback-fab:hover {
  border-color: rgba(255, 107, 53, 0.8);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 420ms ease;
}

.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1400px) {
  .main-nav a {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
}

@media (max-width: 1600px) {
  .actions [data-copy-ip] {
    display: none;
  }
}

@media (max-width: 1080px) {
  .edge-stream {
    display: none;
  }

  .hero--epic::before {
    width: 220px;
    height: 320px;
    right: -20px;
    top: 60px;
    opacity: 0.08;
  }

  .gallery-ring {
    right: -35%;
    left: -35%;
    top: 110px;
    gap: 16px;
    animation-duration: 36s;
  }

  .gallery-orbit {
    width: 180px;
    height: 120px;
    opacity: 0.55;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand {
    order: 1;
  }

  .actions {
    order: 2;
    width: 100%;
    justify-content: flex-start;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .hero-grid,
  .hero-split,
  .feature-grid,
  .card-grid,
  .gallery,
  .form-grid,
  .mods-grid,
  .split-section,
  .loop-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 84px;
  }

  .gallery .shot-1,
  .gallery .shot-2,
  .gallery .shot-3,
  .gallery .shot-4,
  .gallery .shot-5 {
    grid-column: span 3;
    grid-row: span 2;
  }
}

@media (max-width: 760px) {
  main {
    padding-bottom: 74px;
  }

  .actions {
    gap: 6px;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-gallery-bg {
    opacity: 0.25;
  }

  .gallery-ring {
    right: -40%;
    left: -40%;
    top: 280px;
    animation-duration: 34s;
  }

  .gallery-orbit {
    width: 150px;
    height: 100px;
  }

  .hero-visual {
    min-height: 0;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .hero-split,
  .feature-grid,
  .card-grid,
  .gallery,
  .form-grid,
  .mods-grid,
  .filters,
  .split-section,
  .loop-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .challenge-actions .pill-btn,
  .challenge-result-actions .pill-btn {
    width: 100%;
    justify-content: center;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery .shot-1,
  .gallery .shot-2,
  .gallery .shot-3,
  .gallery .shot-4,
  .gallery .shot-5 {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery img {
    aspect-ratio: 16 / 9;
  }

  .actions [data-copy-ip] {
    display: none;
  }

  .feedback-fab {
    left: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    padding: 8px 11px;
    font-size: 0.8rem;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .js-enabled .reveal {
    opacity: 1;
    transform: none;
  }
}
