/* ============================================
   Solaria SMP — Fantasy theme
   Design system variables
   ============================================ */
:root {
  /* Safe areas for notched devices (phones, tablets) */
  --safe-top: env(safe-area-inset-top, 0);
  --safe-right: env(safe-area-inset-right, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-left: env(safe-area-inset-left, 0);
  /* Fantasy palette: deep woods + amber + mystic */
  --bg-base: #0c0e12;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-elevated: #141922;
  --bg-card: rgba(22, 26, 33, 0.85);
  --text-primary: #f5f0e8;
  --text-secondary: #c4bcb0;
  --text-muted: #8a8278;
  --accent-primary: #c9a227;
  --accent-primary-hover: #d4af37;
  --accent-secondary: #7b9e87;
  --accent-mystic: #9b87c4;
  --effect-glow: rgba(201, 162, 39, 0.2);
  --effect-shadow: rgba(0, 0, 0, 0.45);
  /* Fantasy accents */
  --fantasy-glow: rgba(201, 162, 39, 0.35);
  --fantasy-glow-mystic: rgba(155, 135, 196, 0.25);
  --fantasy-border: rgba(201, 162, 39, 0.15);
  --fantasy-highlight: rgba(255, 255, 255, 0.04);
  --font-display: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
}
img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Loading screen
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  z-index: 2;
}

.loader-logo {
  margin-bottom: 2rem;
  animation: loader-pulse 1.5s ease-in-out infinite;
}
.loader-logo img {
  display: block;
  max-width: 280px;
  width: clamp(160px, 45vw, 280px);
  height: auto;
  filter: drop-shadow(0 0 24px var(--fantasy-glow)) drop-shadow(0 0 48px rgba(201, 162, 39, 0.2));
}

.loader-bar-wrap {
  width: 200px;
  height: 4px;
  margin: 0 auto 1rem;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--fantasy-border);
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-mystic));
  border-radius: 4px;
  box-shadow: 0 0 12px var(--fantasy-glow);
  animation: loader-fill 1.8s ease-out forwards;
}

.loader-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Floating particles (fantasy) */
.loader-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.loader-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--effect-glow);
  border-radius: 50%;
  animation: loader-float 4s ease-in-out infinite;
}
.loader-particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.loader-particles span:nth-child(2) { left: 30%; animation-delay: 0.8s; }
.loader-particles span:nth-child(3) { left: 50%; animation-delay: 1.6s; }
.loader-particles span:nth-child(4) { left: 70%; animation-delay: 2.4s; }
.loader-particles span:nth-child(5) { left: 90%; animation-delay: 3.2s; }

@keyframes loader-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
@keyframes loader-fill {
  to { width: 100%; }
}
@keyframes loader-float {
  0%, 100% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* ============================================
   Main content (fade-in after load)
   ============================================ */
.main-content {
  opacity: 0;
  transition: opacity 0.5s ease-out 0.2s;
}
.main-content.is-visible {
  opacity: 1;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 88px;
  background: rgba(12, 14, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--fantasy-border);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-brand img {
  display: block;
  height: 64px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--fantasy-glow));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--fantasy-glow);
  transition: width 0.2s ease;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent-primary);
  color: var(--text-primary) !important;
  padding: 10px 18px !important;
  border-radius: 8px;
  box-shadow: 0 4px 14px var(--effect-shadow), 0 0 20px var(--fantasy-glow);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--effect-shadow), 0 0 24px var(--fantasy-glow);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    var(--bg-overlay) 50%,
    rgba(12, 14, 18, 0.92) 100%
  );
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}
.hero-glow-1 {
  width: 400px;
  height: 400px;
  background: var(--fantasy-glow);
  top: 20%;
  left: 20%;
}
.hero-glow-2 {
  width: 300px;
  height: 300px;
  background: var(--fantasy-glow-mystic);
  bottom: 20%;
  right: 20%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 0 24px 80px;
}

.hero-title {
  margin: 0 0 1rem;
  animation: hero-fade-in 0.8s ease-out 0.2s both;
}
.hero-title img {
  display: block;
  max-width: min(520px, 85vw);
  width: 100%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 40px var(--fantasy-glow)) drop-shadow(0 0 80px rgba(201, 162, 39, 0.15)) drop-shadow(0 2px 20px var(--effect-shadow));
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.95;
  max-width: 560px;
  margin: 0 auto 0.75rem;
  line-height: 1.6;
  animation: hero-fade-in 0.8s ease-out 0.35s both;
}
.hero-platforms {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin: 0 auto 2rem;
  text-shadow: 0 0 16px var(--fantasy-glow);
  animation: hero-fade-in 0.8s ease-out 0.4s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: hero-fade-in 0.8s ease-out 0.5s both;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 14px var(--effect-shadow), 0 0 16px var(--fantasy-glow);
}
.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--effect-shadow), 0 0 24px var(--fantasy-glow);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 80px 24px;
  max-width: 100%;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Ornate section divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2rem;
  max-width: 320px;
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fantasy-border), var(--accent-primary), var(--fantasy-border), transparent);
  box-shadow: 0 0 10px var(--fantasy-glow);
}
.section-divider::after {
  background: linear-gradient(90deg, transparent, var(--fantasy-border), var(--accent-primary), var(--fantasy-border), transparent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--text-primary);
  text-shadow: 0 0 24px var(--effect-glow), 0 0 40px rgba(201, 162, 39, 0.12);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.section-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}
.section-text:last-of-type { margin-bottom: 0; }
.section-text--highlight {
  color: var(--text-primary);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fantasy-border);
}

.section-about {
  background: var(--bg-base);
}

/* Announcements */
.section-announcements {
  background: var(--bg-base);
  border-top: 1px solid var(--fantasy-border);
}
.announcements-list {
  margin-top: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.announcement {
  background: var(--bg-card);
  border: 1px solid var(--fantasy-border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.announcement:last-child { margin-bottom: 0; }
.announcement:hover {
  border-color: rgba(201, 162, 39, 0.25);
  box-shadow: 0 4px 24px var(--effect-shadow);
}
.announcement-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}
.announcement-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}
.announcement-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.65;
}

.section-features {
  background: var(--bg-base);
  border-top: 1px solid var(--fantasy-border);
  border-bottom: 1px solid var(--fantasy-border);
}

.features-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--fantasy-border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--effect-shadow), 0 0 28px var(--fantasy-highlight), 0 0 0 1px rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.3);
}

.feature-icon {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--accent-primary);
  text-shadow: 0 0 14px var(--fantasy-glow);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Gallery */
.section-gallery {
  background: var(--bg-base);
  border-top: 1px solid var(--fantasy-border);
}
.gallery-callout {
  max-width: 560px;
  margin: 2rem auto 2.5rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--fantasy-border);
  border-radius: 12px;
  box-shadow: 0 4px 24px var(--effect-shadow);
}
.gallery-callout-text {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.gallery-callout-text strong {
  color: var(--accent-primary);
}
.gallery-cta {
  margin: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}
.gallery-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--fantasy-border);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.gallery-placeholder:hover {
  border-color: rgba(201, 162, 39, 0.25);
  background: rgba(201, 162, 39, 0.04);
}
.gallery-placeholder span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: center;
  padding: 0 0.5rem;
}

/* Events */
.section-events {
  background: var(--bg-base);
  border-top: 1px solid var(--fantasy-border);
}
.events-empty {
  max-width: 480px;
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  background: var(--bg-card);
  border: 1px solid var(--fantasy-border);
  border-radius: 12px;
}
.events-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
}
.event-card {
  background: var(--bg-card);
  border: 1px solid var(--fantasy-border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.event-card:hover {
  border-color: rgba(201, 162, 39, 0.25);
  box-shadow: 0 4px 24px var(--effect-shadow);
}
.event-card--placeholder {
  opacity: 0.85;
}
.event-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.4rem;
}
.event-card .event-date:not(time) {
  font-style: italic;
  color: var(--text-muted);
}
.event-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}
.event-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--fantasy-border);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--effect-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.back-to-top:hover {
  background: rgba(201, 162, 39, 0.2);
  border-color: rgba(201, 162, 39, 0.4);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Voting */
.section-vote {
  background: var(--bg-base);
  border-top: 1px solid var(--fantasy-border);
}
.vote-links {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
}
.vote-link {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--fantasy-border);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.vote-link:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.35);
  color: var(--accent-primary);
  transform: translateY(-1px);
}
.vote-note {
  margin: 1.25rem auto 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 420px;
  line-height: 1.5;
}

.section-join {
  background: var(--bg-base);
}

/* Join — server address block */
.join-ip-block {
  margin: 2rem auto 2.5rem;
  max-width: 420px;
  text-align: center;
}
.join-ip-block .join-ip-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.join-ip-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.join-ip-value {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-primary);
  background: rgba(201, 162, 39, 0.12);
  padding: 0.5em 0.85em;
  border-radius: 8px;
  border: 1px solid var(--fantasy-border);
  box-shadow: 0 0 16px rgba(201, 162, 39, 0.1);
}
.btn-copy {
  padding: 0.5em 1rem;
  font-size: 0.9rem;
}
.join-actions .btn.is-copied,
.btn-copy.is-copied {
  background: var(--accent-primary-hover);
}

/* Join — step-by-step instructions */
.join-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.join-platform {
  background: var(--bg-card);
  border: 1px solid var(--fantasy-border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.join-platform:hover {
  border-color: rgba(201, 162, 39, 0.25);
  box-shadow: 0 4px 24px var(--effect-shadow);
}
.join-platform-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--fantasy-border);
}
.join-step-list {
  margin: 0;
  padding: 0 0 0 1.6rem;
  list-style: none;
  counter-reset: step;
}
.join-step-list li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  counter-increment: step;
}
.join-step-list li::before {
  position: absolute;
  left: -1.6rem;
  top: 0.1rem;
  width: 1.35rem;
  height: 1.35rem;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35rem;
  text-align: center;
  color: var(--accent-primary);
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid var(--fantasy-border);
  border-radius: 50%;
}
.join-step-list li:last-child {
  margin-bottom: 0;
}
.join-note {
  margin: 2rem auto 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 480px;
  line-height: 1.5;
}

.footer {
  padding: 36px 24px 32px;
  border-top: 1px solid var(--fantasy-border);
  background: var(--bg-base);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-bottom: 1rem;
}
.footer-links a {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--accent-primary);
}
.footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   Responsive — all devices
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 20px; }
  .container { padding: 0 20px; }
  .section { padding: 70px 20px; }
  .hero-content { padding: 0 20px 80px; }
  .faq-hero { padding: 8rem 20px 4rem; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    height: 72px;
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
  }
  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .nav-brand img {
    height: 48px;
    max-width: 200px;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px 20px 24px;
    padding-left: calc(20px + var(--safe-left));
    padding-right: calc(20px + var(--safe-right));
    background: rgba(12, 14, 18, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--fantasy-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block;
    padding: 14px 12px;
    min-height: 44px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-cta { min-height: 44px; }

  .hero-content { padding: 0 16px 60px; }
  .hero-title img { max-width: min(400px, 90vw); }
  .hero-actions { flex-direction: column; align-items: center; gap: 10px; }
  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    min-height: 48px;
    padding: 12px 20px;
    -webkit-tap-highlight-color: transparent;
  }

  .section { padding: 50px 16px; }
  .section-title { font-size: clamp(1.5rem, 5vw, 1.75rem); }
  .section-text { font-size: 1rem; }

  .join-steps { grid-template-columns: 1fr; gap: 1rem; }
  .join-ip-block { margin: 1.5rem auto 2rem; }
  .join-ip-row { flex-direction: column; }
  .join-ip-value { width: 100%; text-align: center; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .btn-copy { width: 100%; max-width: 200px; min-height: 48px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .gallery-placeholder span { font-size: 0.7rem; }
  .gallery-callout { padding: 1.5rem 1.25rem; margin: 1.5rem auto 2rem; }

  .events-list { grid-template-columns: 1fr; }
  .events-empty { margin: 1.25rem 16px 0; padding: 1rem 1.25rem; font-size: 0.95rem; }
  .event-card { padding: 1.25rem 1.35rem; }
  .vote-links { flex-direction: column; align-items: center; gap: 0.75rem; }
  .vote-link {
    width: 100%;
    max-width: 280px;
    text-align: center;
    min-height: 48px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .footer { padding: 28px 16px 24px; padding-bottom: calc(24px + var(--safe-bottom)); }
  .footer-links {
    gap: 0.5rem 1.25rem;
    margin-bottom: 1rem;
  }
  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    -webkit-tap-highlight-color: transparent;
  }

  .back-to-top {
    bottom: calc(1rem + var(--safe-bottom));
    right: calc(1rem + var(--safe-right));
    width: 3rem;
    height: 3rem;
    font-size: 1.35rem;
    min-width: 48px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .nav-inner { padding: 0 12px; }
  .nav-brand img { height: 42px; max-width: 160px; }
  .section { padding: 40px 12px; }
  .section-title { font-size: 1.4rem; letter-spacing: 0.08em; }
  .container { padding: 0 12px; }
  .hero-content { padding: 0 12px 50px; }
  .hero-tagline { font-size: 0.95rem; }
  .hero-platforms { font-size: 0.75rem; letter-spacing: 0.08em; }
  .join-platform { padding: 1.25rem 1.35rem; }
  .join-step-list { padding-left: 1.5rem; }
  .join-step-list li::before { width: 1.2rem; height: 1.2rem; font-size: 0.7rem; line-height: 1.2rem; left: -1.5rem; }
  .gallery-grid { gap: 0.5rem; }
  .gallery-callout { padding: 1.25rem 1rem; }
  .announcement { padding: 1.25rem 1.35rem; }
  .feature-card { padding: 1.35rem 1.25rem; }
  .faq-hero { padding: 6rem 12px 3rem; }
  .faq-hero-title { font-size: 1.6rem; letter-spacing: 0.08em; }
  .faq-question { padding: 1rem 1.25rem; min-height: 48px; }
  .faq-answer p { padding: 0 1.25rem 1.25rem; }
  .faq-cta { padding: 1.5rem 1.25rem; margin-top: 2.5rem; }
  .back-to-top { bottom: calc(0.75rem + var(--safe-bottom)); right: calc(0.75rem + var(--safe-right)); }
}

/* ============================================
   FAQ page
   ============================================ */
.faq-page .loader { display: none; }
.faq-main { min-height: 100vh; padding-bottom: 4rem; }

.faq-hero {
  position: relative;
  padding: 10rem 24px 5rem;
  text-align: center;
  overflow: hidden;
}
.faq-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.faq-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-elevated) 50%, var(--bg-base) 100%);
}
.faq-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}
.faq-hero-glow-1 {
  width: 400px;
  height: 400px;
  background: var(--fantasy-glow);
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
}
.faq-hero-glow-2 {
  width: 280px;
  height: 280px;
  background: var(--fantasy-glow-mystic);
  bottom: -5%;
  right: 10%;
}
.faq-hero-content { position: relative; z-index: 1; }
.faq-hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin: 0 0 0.75rem;
  text-shadow: 0 0 20px var(--fantasy-glow);
}
.faq-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 1.5rem;
  text-shadow: 0 0 40px rgba(201, 162, 39, 0.2);
}
.faq-hero-divider { margin-bottom: 1.5rem; }
.faq-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.faq-content { position: relative; z-index: 1; }
.container--faq { max-width: 680px; }

.faq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--fantasy-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item:hover,
.faq-item:focus-within {
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 4px 24px var(--effect-shadow), 0 0 0 1px rgba(201, 162, 39, 0.08);
}
.faq-item [aria-expanded="true"] + .faq-answer-wrap {
  border-top: 1px solid var(--fantasy-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.faq-question:hover {
  color: var(--accent-primary);
}
.faq-question span:first-child { flex: 1; }
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  border: 2px solid var(--accent-primary);
  border-radius: 4px;
  transition: transform 0.3s ease, border-color 0.2s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--accent-primary);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}
.faq-icon::after {
  width: 2px;
  height: 10px;
}
[aria-expanded="true"] .faq-icon::after { opacity: 0; }
[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease-out;
  overflow: hidden;
}
.faq-answer-wrap.is-open {
  grid-template-rows: 1fr;
}
.faq-answer {
  min-height: 0;
  overflow: hidden;
}
.faq-answer p {
  margin: 0;
  padding: 0 1.5rem 1.35rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-answer p + p { padding-top: 0.5rem; }
.faq-answer .steps-list {
  margin: 0 0 1rem;
  padding: 0 0 0 1.75rem;
  list-style: none;
  counter-reset: step;
}
.faq-answer .steps-list li {
  position: relative;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  counter-increment: step;
}
.faq-answer .steps-list li::before {
  position: absolute;
  left: -1.75rem;
  top: 0.05rem;
  width: 1.4rem;
  height: 1.4rem;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.4rem;
  text-align: center;
  color: var(--accent-primary);
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid var(--fantasy-border);
  border-radius: 50%;
}
.faq-answer .steps-note {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}
.faq-answer code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: rgba(201, 162, 39, 0.12);
  border-radius: 4px;
  color: var(--accent-primary);
  border: 1px solid var(--fantasy-border);
}

.faq-cta {
  margin-top: 3.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--fantasy-border);
  border-radius: 12px;
}
.faq-cta-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}
.faq-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.nav-link--current {
  color: var(--accent-primary) !important;
}
.nav-link--current::after {
  width: 100%;
  background: var(--accent-primary);
}
