/* ===========================
   Western Typography
   =========================== */

h1, h2, h3, h4, h5, h6,
.nav-links a,
.cta-button,
.team-name,
.team-rank {
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
}

h1 { font-weight: 700; letter-spacing: 2px; }
h2, h3 { font-weight: 600; }

h1, h2, h3 {
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

/* ===========================
   Theme + Base + Responsive Layout Tokens
   =========================== */

:root {
  /* Lifted Western palette (brighter, warmer) */
  --primary-color: #14100c;
  --secondary-color: #e1bf7a;
  --accent-color: #8a6236;
  --text-color: #f7f2e8;
  --muted-text: rgba(247, 242, 232, 0.75);

  /* Surfaces */
  --gradient: linear-gradient(135deg, #f1d08a 0%, #b8874a 55%, #4a2f18 100%);
  --card-bg: rgba(247, 242, 232, 0.07);
  --card-border: rgba(225, 191, 122, 0.28);
  --card-hover: rgba(225, 191, 122, 0.38);

  /* Depth */
  --glow: 0 14px 45px rgba(225, 191, 122, 0.25);

  /* ✅ Responsive sizing (fixes 1080p vs 1440p weirdness) */
  --container: 1200px;
  --gutter: clamp(16px, 3vw, 36px);
  --section-pad: clamp(64px, 7vw, 110px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Crimson Text', serif;
  background: var(--primary-color);
  color: var(--text-color);
  line-height: 1.7;
}

/* ✅ Shared centered container (useful if you add .container wrappers later) */
.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* Premium “top light” for cards (keeps western theme, adds life) */
.feature-card,
.server-stats .stat-card,
.team-card,
.privacy-card,
.imprint-card,
.staff-card {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(0,0,0,0.15)
  );
}

/* ===========================
   Header / Banner
   =========================== */

.site-header { width: 100%; }

.top-banner {
  width: 100%;
  height: 140px; /* adjust 120–180 */
  background: url("../images/banner.jpg") center / cover no-repeat;
  border-bottom: 1px solid rgba(225, 191, 122, 0.25);
}

.banner-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   Navbar (centered pill)
   =========================== */

.navbar {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 1rem;

  background: linear-gradient(
    180deg,
    rgba(11, 10, 8, 0.92) 0%,
    rgba(20, 14, 10, 0.86) 45%,
    rgba(11, 10, 8, 0.92) 100%
  );

  border-top: 1px solid rgba(225, 191, 122, 0.28);
  border-bottom: 1px solid rgba(225, 191, 122, 0.28);

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.navbar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(225, 191, 122, 0.25), transparent);
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;

  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(225, 191, 122, 0.22);
  border-radius: 18px;
  padding: 0.65rem 2rem;

  box-shadow:
    inset 0 1px 0 rgba(225, 191, 122, 0.10),
    0 10px 25px rgba(0, 0, 0, 0.35);
}

/* Nav links (including non-clickable "Rules" label) */
.nav-links a,
.nav-links .nav-link-static{
  color: rgba(247, 242, 232, 0.70);
  text-decoration: none;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 0.55rem 1rem;
  border-radius: 16px;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}


/* Match hover behavior */
.nav-dropdown:hover .nav-link-static{
  color: rgba(247, 242, 232, 0.95);
  transform: translateY(-1px);
  background: rgba(225, 191, 122, 0.08);
}

.nav-links a:hover {
  color: rgba(247, 242, 232, 0.95);
  transform: translateY(-1px);
}

.nav-links a.active {
  color: var(--secondary-color);
  background: rgba(225, 191, 122, 0.14);
  border: 1px solid rgba(225, 191, 122, 0.22);
}

.nav-links a.active::after {
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:6px;
  width:36px;
  height:2px;
  border-radius:999px;
  background: rgba(225, 191, 122, 0.55);
}

@media (max-width: 768px) {
  .nav-links {
    width: calc(100% - 2rem);
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
}

/* ===========================
   Hero (fixed coverage + spacing + responsive type)
   =========================== */

.hero {
  position: relative;
  overflow: hidden;

  min-height: 100vh;
  min-height: 100svh;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: clamp(1.5rem, 3vh, 3rem) 1rem;

  background:
    radial-gradient(circle at 20% 20%, rgba(241, 208, 138, 0.08), transparent 45%),
    radial-gradient(circle at 80% 40%, rgba(138, 98, 54, 0.12), transparent 55%),
    linear-gradient(
      135deg,
      rgba(20,16,12,0.55) 0%,
      rgba(34,24,15,0.65) 55%,
      rgba(58,36,20,0.75) 100%
    ),
    url("../images/background.png");

  /* ✅ Fix the tiling/duplication */
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: 20% 20%, 80% 40%, center, center;
  background-size: cover, cover, cover, cover;
  background-blend-mode: normal;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.72) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 2px,
      transparent 6px
    );
  opacity: 0.55;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;

  /* ✅ Small “nav → welcome” buffer that scales by screen height */
  margin-top: clamp(0.75rem, 2vh, 1.75rem);
}

.hero-kicker {
  display: block;
  font-family: 'Cinzel', serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.70);
  margin-bottom: 0.75rem;
  font-size: clamp(0.85rem, 0.9vw, 0.95rem);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 3.6vw, 4.2rem);
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  color: var(--muted-text);
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .hero-content { padding-top: 3.25rem; }
}

/* Buttons */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.05rem;

  background: var(--gradient);
  border: 1px solid rgba(225, 191, 122, 0.35);
  border-radius: 10px;

  color: var(--text-color);
  cursor: pointer;
  text-decoration: none;

  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: var(--glow);

  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

.cta-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 40px rgba(225, 191, 122, 0.28);
}

.cta-button.secondary {
  background: transparent;
  border: 1px solid rgba(225, 191, 122, 0.45);
  box-shadow: none;
}

.cta-button.secondary:hover {
  background: rgba(225, 191, 122, 0.08);
}

/* ===========================
   Hero Stats (scoped)
   =========================== */

.hero-stats {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats .stat-card {
  width: clamp(150px, 14vw, 190px);
  height: 150px;
  padding: 1.25rem 1rem;
  text-align: center;

  background: rgba(0,0,0,0.35);
  border-radius: 12px;

  border: 1px solid rgba(225, 191, 122, 0.35);
  box-shadow: 0 14px 45px rgba(0,0,0,0.35);

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;

  backdrop-filter: blur(8px);
}

.hero-stats .stat-card i {
  font-size: 1.3rem;
  color: rgba(225,191,122,0.90);
}

.hero-stats .stat-value {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: rgba(225,191,122,0.98);
  letter-spacing: 1px;
  line-height: 1;
}

.hero-stats .stat-label {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: rgba(247,242,232,0.70);
}

.hero-stats .stat-card.stat-live {
  border-color: rgba(140, 220, 110, 0.65);
}
.hero-stats .stat-card.stat-live i,
.hero-stats .stat-card.stat-live .stat-value {
  color: rgba(140, 220, 110, 0.95);
}

/* ===========================
   Features (6 boxes)
   =========================== */

.features {
  padding: var(--section-pad) 0;
  background: linear-gradient(to bottom, var(--primary-color), #000);
}

.features-inner{
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin: 0 auto;
}

.features-title{
  text-align: center;
  margin: 0 0 2rem;
  font-family: "Cinzel", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 3px;
  color: var(--secondary-color);
  position: relative;
}

.features-title span{
  display: inline-block;
  padding: 0 18px;
}

.features-title::before,
.features-title::after{
  content:"";
  display:inline-block;
  width: 90px;
  height: 2px;
  background: rgba(225, 191, 122, 0.45);
  vertical-align: middle;
  margin: 0 14px;
  transform: translateY(-3px);
}

/* Force 3 columns on desktop (for 6 cards = 2 rows of 3) */
.features-grid {
  width: 100%;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 900px){
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  padding: 2.25rem 1.75rem;
  border-radius: 18px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(225, 191, 122, 0.30);
  background: rgba(0,0,0,0.20);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 191, 122, 0.85);
  box-shadow: 0 18px 55px rgba(225, 191, 122, 0.18);
}

/* Match the screenshot vibe: icon not in a circle, just clean + centered */
.feature-icon {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-2px);
}

.feature-icon i {
  font-size: 2.8rem;
  color: var(--secondary-color);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.45));
}

.feature-content { text-align: center; }

.feature-content h3 {
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;

  /* Keep your theme gradient text */
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-content p {
  color: rgba(247, 242, 232, 0.72);
  line-height: 1.6;
}

/* Optional: featured card like the left one in the screenshot */
.feature-card.is-featured{
  border-color: rgba(225, 191, 122, 0.85);
  box-shadow: 0 20px 70px rgba(0,0,0,0.65);
}

/* ===========================
   Server Stats section (separate from hero stats)
   =========================== */

.server-stats {
  background: linear-gradient(to bottom, #000, var(--primary-color));
  padding: var(--section-pad) 0;
}

.stats-container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin: 0 auto;
  text-align: center;
}

.stats-container h2 {
  margin-bottom: 3rem;
  font-size: clamp(1.9rem, 2.4vw, 2.7rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.server-stats .stat-card {
  padding: 2rem;
  border-radius: 18px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.server-stats .stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: 0 18px 55px rgba(225, 191, 122, 0.18);
}

/* ===========================
   Team (legacy page styling kept)
   =========================== */

.team-content {
  padding: 2rem;
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin: 50px auto 50px;
}

.team-content h1 {
  font-size: 2.2rem;
  margin: 1rem 0 1.5rem;
  color: var(--text-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.team-card {
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(225, 191, 122, 0.22);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(225,191,122,0.20), transparent);
  transform: skewX(-25deg);
}

.team-card:hover::before { animation: teamShimmer 1.6s infinite; }

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 191, 122, 0.48);
  box-shadow: 0 18px 55px rgba(225, 191, 122, 0.14);
}

@keyframes teamShimmer {
  0% { left: -120%; }
  100% { left: 220%; }
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  border: 3px solid var(--secondary-color);
  padding: 3px;
  background: var(--gradient);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.team-rank {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(225, 191, 122, 0.14);
  border: 1px solid rgba(225, 191, 122, 0.22);
  border-radius: 999px;
  color: var(--text-color);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.team-discord {
  color: rgba(247, 242, 232, 0.70);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.team-discord i {
  color: rgba(247, 242, 232, 0.70);
  margin-right: 0.5rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: rgba(11, 10, 8, 0.95);
  border-radius: 18px;
  padding: 2rem;
  max-width: 650px;
  width: 92%;
  position: relative;
  border: 1px solid rgba(225, 191, 122, 0.22);
  box-shadow: 0 18px 60px rgba(0,0,0,0.6);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.6rem;
  color: rgba(247, 242, 232, 0.70);
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal:hover { color: var(--secondary-color); }

/* ===========================
   Scroll reveal (fade-up)
   =========================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
  will-change: opacity, transform;
}

.reveal-stagger > *.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===========================
   Privacy page: override inline blues
   =========================== */

.privacy-card { border-color: var(--card-border) !important; }
.privacy-card:hover { box-shadow: var(--glow) !important; }
.privacy-title, .privacy-title i { color: var(--secondary-color) !important; }
.privacy-text li::before { color: var(--secondary-color) !important; }

/* ============================================
   STAFF SECTION (Western Skies layout, Onyx theme)
   ============================================ */

.staff-section {
  background: linear-gradient(to bottom, var(--primary-color), #000);
  padding: var(--section-pad) 0;
  position: relative;
}

.staff-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

.staff-container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin: 0 auto;
}

.staff-groups{
  width: 100%;
}

.staff-title{
  text-align: center;
  margin-bottom: 2.5rem;
  font-family: "Cinzel", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 3px;
  color: var(--secondary-color);
  position: relative;
}

.staff-title span{
  padding: 0 18px;
}

.staff-title::before,
.staff-title::after{
  content:"";
  display:inline-block;
  width: 90px;
  height: 2px;
  background: rgba(225, 191, 122, 0.45);
  vertical-align: middle;
  margin: 0 14px;
  transform: translateY(-3px);
}

.staff-heading {
  text-align: center;
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  margin-bottom: 2.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.staff-role-group {
  margin-bottom: 3rem;
}

.staff-role-group:last-child {
  margin-bottom: 0;
}

.staff-role-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(225, 191, 122, 0.35);
}

.staff-members {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.staff-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;

  width: clamp(140px, 12vw, 170px);
  text-align: center;
  padding: 1.25rem;

  border: 1px solid var(--card-border);
  border-radius: 12px;

  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.staff-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 191, 122, 0.55);
  box-shadow: 0 18px 55px rgba(225, 191, 122, 0.14);
}

.staff-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(225, 191, 122, 0.35);
  object-fit: cover;
  transition: transform 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
}

.staff-card:hover .staff-avatar {
  transform: scale(1.04);
  border-color: rgba(225, 191, 122, 0.75);
  filter: contrast(1.05);
}

.staff-name {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(247, 242, 232, 0.92);
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 768px) {
  .staff-section { padding: 3rem 0; }
  .staff-role-title { font-size: 1.1rem; }

  .staff-card { padding: 1rem; }
  .staff-avatar { width: 60px; height: 60px; }
  .staff-name { font-size: 0.85rem; }
}

/* =========================
   GALLERY
========================= */

.gallery-section{
  padding: 60px 20px;
  background: radial-gradient(ellipse at top, rgba(30,16,10,0.95), rgba(10,6,4,0.98));
}

.gallery-inner{
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-title{
  text-align: center;
  margin: 0 0 28px;
  font-size: 34px;
  letter-spacing: 3px;
  color: #d8b46a;
  position: relative;
}

.gallery-title span{
  display: inline-block;
  padding: 0 18px;
}

.gallery-title::before,
.gallery-title::after{
  content:"";
  display:inline-block;
  width: 90px;
  height: 2px;
  background: rgba(216,180,106,0.55);
  vertical-align: middle;
  margin: 0 14px;
  transform: translateY(-3px);
}

/* Grid: 3 columns desktop, responsive down */
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .gallery-grid{ grid-template-columns: 1fr; }
}

/* Card */
.gallery-item{
  border: 2px solid rgba(216,180,106,0.55);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  cursor: pointer;
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gallery-item:hover{
  transform: translateY(-2px);
  border-color: rgba(216,180,106,0.9);
  box-shadow: 0 14px 34px rgba(0,0,0,0.5);
}

.gallery-item img{
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(1.02);
}

@media (max-width: 520px){
  .gallery-item img{ height: 210px; }
}

/* =========================
   MODAL / LIGHTBOX
========================= */

.gallery-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gallery-modal.is-open{
  display: flex;
}

.gallery-modal-content{
  width: min(1100px, 92vw);
  height: min(720px, 78vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-content img{
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  border: 2px solid rgba(216,180,106,0.65);
  box-shadow: 0 18px 55px rgba(0,0,0,0.6);
}

.gallery-modal-close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid rgba(216,180,106,0.55);
  background: rgba(0,0,0,0.35);
  color: #f1d79f;
  font-size: 20px;
  cursor: pointer;
}

.gallery-modal-close:hover{
  border-color: rgba(216,180,106,0.95);
}

.gallery-modal-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 2px solid rgba(216,180,106,0.55);
  background: rgba(0,0,0,0.35);
  color: #f1d79f;
  font-size: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.gallery-modal-nav:hover{
  border-color: rgba(216,180,106,0.95);
}

.gallery-modal-prev{ left: 18px; }
.gallery-modal-next{ right: 18px; }

.gallery-modal-counter{
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid rgba(216,180,106,0.45);
  background: rgba(0,0,0,0.35);
  color: #f1d79f;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ===========================
   NAV DROPDOWN (Rules)
   =========================== */

.nav-dropdown{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown .nav-link{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-caret{
  font-size: 0.8em;
  opacity: 0.8;
  transform: translateY(1px);
}

.nav-dropdown-menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;

  display: none;
  flex-direction: column;

  padding: 10px;
  border-radius: 14px;

  background: rgba(0,0,0,0.80);
  border: 2px solid rgba(225, 191, 122, 0.35);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);

  z-index: 9999;
}

.nav-dropdown::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;      /* should match/cover your gap */
}

.nav-dropdown-menu a{
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;

  color: rgba(247, 242, 232, 0.88);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover{
  background: rgba(225, 191, 122, 0.12);
  color: rgba(247, 242, 232, 1);
}

/* Show dropdown on hover AND keyboard focus */
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{
  display: flex;
}

/* Non-clickable nav label */
.nav-link-static{
  cursor: default;
  user-select: none;
}

/* Keep hover color consistent with links */

/* ===========================
   Rules Pages
   =========================== */

/* Slightly larger type on rules pages for readability */
.rules-page{
  font-size: 1.06rem;
}

.rules-page .rules-subtitle,
.rules-page .rules-lead,
.rules-page .rules-card p,
.rules-page .rules-card li,
.rules-page .rules-tile p{
  font-size: 1.06rem;
}

.rules-page .rules-card-title{
  font-size: 1.15rem;
}

.rules-page .rules-bullet-title{
  font-size: 1.05rem;
}


html { scroll-behavior: smooth; }

.rules-hero{
  padding: clamp(50px, 7vw, 90px) 0 30px;
  background: radial-gradient(ellipse at top, rgba(30,16,10,0.95), rgba(10,6,4,0.98));
  border-bottom: 1px solid rgba(225, 191, 122, 0.18);
}

.rules-hero-inner{
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin: 0 auto;
  text-align: center;
}

.rules-title{
  font-family: "Cinzel", serif;
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  letter-spacing: 2px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rules-subtitle{
  margin-top: 10px;
  color: rgba(247, 242, 232, 0.75);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
}

.rules-nav-wrap{
  margin-top: 26px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(225, 191, 122, 0.22);
  background: rgba(0,0,0,0.30);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.rules-nav-title{
  font-family: "Cinzel", serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(225, 191, 122, 0.9);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.rules-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.rules-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(247, 242, 232, 0.85);
  border: 1px solid rgba(225, 191, 122, 0.22);
  background: rgba(0,0,0,0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.rules-chip:hover{
  transform: translateY(-1px);
  border-color: rgba(225, 191, 122, 0.7);
  background: rgba(225, 191, 122, 0.08);
}

.rules-content{
  padding: var(--section-pad) 0;
  background: linear-gradient(to bottom, #000, var(--primary-color));
}

.rules-container{
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin: 0 auto;
}


.rules-h2{
  font-family: "Cinzel", serif;
  color: rgba(225, 191, 122, 0.95);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.rules-lead{
  margin-top: 10px;
  margin-bottom: 16px;
  color: rgba(247, 242, 232, 0.7);
}

.rules-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px){
  .rules-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px){
  .rules-grid{ grid-template-columns: 1fr; }
}

.rules-card{
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(225, 191, 122, 0.22);
  background: rgba(0,0,0,0.28);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.rules-card h3{
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rules-card p,
.rules-card li{
  color: rgba(247, 242, 232, 0.74);
}

.rules-card ul{
  padding-left: 18px;
}

/* Red callout like screenshot */
.rules-callout{
  margin: 0 0 28px;
  padding: 18px 18px;
  border-radius: 12px;
  background: rgba(40, 10, 10, 0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.rules-callout-list{
  margin-top: 12px;
  padding-left: 1.25rem; /* proper indent inside the red box */
  list-style: disc;
  margin-left: 0.5rem;
}

.rules-callout-list li{
  color: rgba(247, 242, 232, 0.88);
  margin-bottom: 8px;
  line-height: 1.65;
}

.rules-callout-list li::marker{
  color: rgba(255, 90, 90, 0.95);
  font-size: 0.9em;
}

.rules-callout h3{
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 210, 200, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rules-callout p{
  margin: 0;
  color: rgba(247, 242, 232, 0.82);
}

/* Red border + emphasis */
.rules-callout-danger{
  border: 1px solid rgba(255, 60, 60, 0.75);
}

/* Apply the same red style to specific rules cards (Fair Play Only) */
.rules-card-danger{
  border: 1px solid rgba(255, 60, 60, 0.75) !important;
  background: rgba(40, 10, 10, 0.22) !important;
}

#duels .rules-card + .rules-card {
  margin-top: 1rem;
}

/* ===== General Rules layout (like screenshot) ===== */

.rules-stack{
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 22px;
}

.rules-card-wide{
  width: 100%;
  padding: 22px 22px;
  border-radius: 14px;
  margin-top: 16px;

  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(225, 191, 122, 0.22);
}

/* Give the big cards that “panel” look */

/* Red emphasis panel (Fair Play) */


/* ===========================
   Character Creation (bullet style like screenshot)
   =========================== */

.rules-card-title{
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: rgba(247, 242, 232, 0.95);
}

.rules-bullets{
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.rules-bullets > li{
  margin-bottom: 18px;
  color: rgba(247, 242, 232, 0.78);
}

.rules-bullets > li:last-child{
  margin-bottom: 0;
}

.rules-bullet-title{
  display: inline-block;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  color: rgba(247, 242, 232, 0.95);
  margin-bottom: 6px;
}

.rules-bullets p{
  margin: 6px 0 0;
  color: rgba(247, 242, 232, 0.75);
  line-height: 1.65;
}

/* Gold bullet markers (keeps your theme) */
.rules-bullets > li::marker{
  color: rgba(225, 191, 122, 0.95);
}

/* Important emphasis line (bold + underlined) */
.rules-important{
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  color: rgba(247, 242, 232, 0.95);
}

/* Bullet list style in red card */
.rules-list{
  margin-top: 12px;
  padding-left: 1.25rem;
}

.rules-list li{
  margin-bottom: 8px;
  color: rgba(247, 242, 232, 0.85);
  line-height: 1.65;
}

.rules-list li::marker{
  color: rgba(225, 191, 122, 0.95); /* keep your gold theme */
}

/* Small tiles grid like screenshot */
.rules-tiles{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rules-tiles,
.rules-grid{
  gap: 18px; /* slightly tighter and cleaner */
}

.rules-tiles + .rules-card-wide,
.rules-grid + .rules-card-wide{
  margin-top: 12px;
}

@media (max-width: 900px){
  .rules-tiles{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .rules-tiles{ grid-template-columns: 1fr; }
}

/* Individual tiles */
.rules-tile{
  padding: 16px 16px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(225, 191, 122, 0.18);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.rules-tile h4{
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  color: rgba(247, 242, 232, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  text-transform: none;
}

.rules-tile h4 i{
  color: rgba(225, 191, 122, 0.95);
}

.rules-tile p{
  margin: 0;
  color: rgba(247, 242, 232, 0.72);
  line-height: 1.6;
}

/* ===========================
   Rules section dividers
   =========================== */

.rules-section {
  position: relative;
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
  margin-top: clamp(3.5rem, 6vw, 5rem);
}

.rules-section::before,
.donations-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 80%);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(225, 191, 122, 0.65),
    transparent
  );
  box-shadow:
    0 0 10px rgba(225, 191, 122, 0.45),
    0 0 24px rgba(225, 191, 122, 0.25);
}

/* First section does NOT get a divider */
.rules-section:first-of-type::before,
.donations-section:first-of-type::before {
  display: none;
}

/* Highlighted danger rule inside bullet lists */
.rules-bullet-danger {
  border-left: 4px solid #c94b4b;
  background: rgba(201, 75, 75, 0.12);
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.rules-card-footer-danger {
  border-top-color: rgba(201, 75, 75, 0.65);
  color: rgba(247, 220, 220, 0.95);
}

.rules-card-footer-danger i {
  color: rgba(201, 75, 75, 0.95);
}

.rules-report-link strong {
  color: rgba(225, 191, 122, 0.95);
  font-weight: 700;
}

/* Rules card footer (Discord / CTA style) */
.rules-card-footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;

  font-size: 0.95rem;
  color: rgba(247, 242, 232, 0.75);

  border-top: 1px solid rgba(225, 191, 122, 0.25);
}

.rules-card-footer i {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.rules-card-footer a {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.rules-card-footer a:hover {
  color: #f1d08a;
  text-shadow: 0 0 10px rgba(225, 191, 122, 0.4);
}

/* Prevent grid overlap after wide cards */
.rules-grid {
  margin-top: 1.0rem;
}

/* Optional: warning tile styling */
.rules-tile-danger{
  border-color: rgba(225, 65, 65, 0.55);
  box-shadow: 0 18px 55px rgba(225, 65, 65, 0.08);
}

/* Back to Top bottom bar */
.back-to-top-bar{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(120%);
  opacity: 0;
  pointer-events: none;

  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  padding: 0.85rem 1.15rem;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.60);
  border: 1px solid rgba(225, 191, 122, 0.28);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);

  color: rgba(247, 242, 232, 0.90);
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;

  transition: transform 220ms ease, opacity 220ms ease, border-color 220ms ease, background 220ms ease;
  z-index: 9999;
}

.back-to-top-bar i{
  color: var(--secondary-color);
}

.back-to-top-bar:hover{
  border-color: rgba(225, 191, 122, 0.60);
  background: rgba(0, 0, 0, 0.72);
}

/* Visible state */
.back-to-top-bar.is-visible{
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 520px){
  .back-to-top-bar{
    width: calc(100% - 24px);
    justify-content: center;
    bottom: 12px;
  }
}

/* ============================================
   DISCORD PAGE (Onyx theme, Western-like layout)
   ============================================ */

.discord-page {
  background: var(--primary-color);
}

/* HERO */
.discord-hero {
  padding: var(--section-pad) 0;
  background:
    radial-gradient(900px 500px at 50% -80px, rgba(225, 191, 122, 0.16), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.35));
  position: relative;
}

.discord-hero-inner {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  text-align: center;
}

.discord-kicker {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(225, 191, 122, 0.26);
  background: rgba(225, 191, 122, 0.08);
  color: rgba(247, 242, 232, 0.85);
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.discord-title {
  margin: 14px 0 8px;
  font-family: "Cinzel", serif;
  letter-spacing: 2px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--secondary-color);
  background: linear-gradient(
    135deg,
    #f1d08a 0%,
    #e1bf7a 45%,
    #b8874a 75%,
    #7a552f 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* ============================================
   Discord section dividers (FIXED)
   - Uses ::after (since .discord-panel::before is already taken)
   - Draws the line INSIDE the next panel at top:0 (no clipping)
   ============================================ */

/* Keep consistent vertical rhythm between left-side blocks */
.discord-left{
  display: contents;
  gap: 26px;
}

.discord-inside-panel{
  grid-column: 1;
  grid-row: 1;
}

/* Ensure these blocks can anchor pseudo elements */
.discord-panel,
.discord-cta{
  position: relative;
}

/* Divider line inside every panel that follows another panel */
.discord-panel + .discord-panel::after,
.discord-panel + .discord-cta::after{
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(225, 191, 122, 0.35),
    transparent
  );
  pointer-events: none;
  opacity: 0.95;
}

/* Slightly stronger divider before final CTA */
.discord-panel + .discord-cta::after{
  background: linear-gradient(
    to right,
    transparent,
    rgba(225, 191, 122, 0.55),
    transparent
  );
}

.discord-subtitle {
  max-width: 820px;
  margin: 0 auto;
  color: rgba(247, 242, 232, 0.78);
  font-size: 1.15rem;
}

.discord-hero-buttons {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Stats strip (4 items) */
.discord-stats-strip {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.discord-stat {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.18));
  border: 1px solid rgba(225, 191, 122, 0.22);
  border-radius: 14px;
  padding: 14px 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.28);
  text-align: left;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
}

.discord-stat .stat-icon {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(225, 191, 122, 0.10);
  border: 1px solid rgba(225, 191, 122, 0.22);
  color: rgba(225, 191, 122, 0.95);
}

.discord-stat .stat-top {
  color: rgba(247, 242, 232, 0.72);
  font-size: 0.95rem;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
}

.discord-stat .stat-value {
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  color: rgba(247, 242, 232, 0.95);
  font-size: 1.35rem;
}

/* MAIN LAYOUT */
.discord-content {
  padding: clamp(54px, 6vw, 90px) 0;
}

.discord-container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.discord-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: clamp(16px, 2.2vw, 28px);
  align-items: stretch;
}

#how-to-join{
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
}

#how-to-join,
.discord-expectations-right{
  align-self: stretch;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: 22px 22px 22px; /* normalize with .discord-panel */
}

.discord-expectations-right{
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
}

.discord-expectations-right .expectations-footnote{
  margin-top: auto; /* pushes footnote to bottom to align nicely */
}

/* ---- Discord: alignment + clean stacking (widget/expectations) ---- */
.discord-right > *{
  position: relative;
  z-index: 1;
}

/* Keep card borders/radius consistent across right column */
.discord-panel,
.discord-widget-card,
.discord-cta{
  border-radius: 16px;
  border: 1px solid rgba(225, 191, 122, 0.22);
  overflow: hidden;
}

/* Ensure right column stacks widget + expectations neatly */
.discord-right{
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 22px;
  align-content: start;
}

/* Make CTA span across both columns */
.discord-cta{
  grid-column: 1 / -1;
  grid-row: 3;
  min-height: 220px; /* makes it stand out */
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px 28px;
  margin-top: 10px;

  background: radial-gradient(900px 280px at 50% 0%, rgba(225,191,122,0.14), rgba(0,0,0,0.22));
  border: 1px solid rgba(225, 191, 122, 0.22);
  border-radius: 16px;
  box-shadow: 0 22px 85px rgba(0,0,0,0.35);
}

/* Bigger heading + better spacing */
.discord-cta h2{
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  margin: 0 0 10px;
  letter-spacing: 1px;
}

.discord-cta p{
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(247,242,232,0.76);
  font-size: 1.05rem;
}


/* Panels */
.discord-panel {
  background: rgba(247, 242, 232, 0.07);
  border: 1px solid rgba(225, 191, 122, 0.22);
  border-radius: 16px;
  padding: 22px 22px;
  box-shadow: 0 18px 70px rgba(0,0,0,0.26);
  position: relative;
  overflow: hidden;
}

.discord-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 220px at 20% 0%, rgba(225, 191, 122, 0.12), transparent 55%);
  pointer-events: none;
}

.discord-h2 {
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  color: rgba(247, 242, 232, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.discord-h2 i {
  color: rgba(225, 191, 122, 0.95);
}

.discord-lead {
  margin: 0 0 16px;
  color: rgba(247, 242, 232, 0.75);
}

/* Benefits list */
.discord-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.benefit {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(225, 191, 122, 0.18);
}

.benefit-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(225, 191, 122, 0.10);
  border: 1px solid rgba(225, 191, 122, 0.22);
  color: rgba(225, 191, 122, 0.95);
}

.benefit-text h3 {
  margin: 0 0 6px;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  font-size: 1.05rem;
}

.benefit-text p {
  margin: 0;
  color: rgba(247, 242, 232, 0.72);
  line-height: 1.6;
}

/* Steps */
.discord-steps {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(225, 191, 122, 0.18);
}

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Cinzel", serif;
  color: rgba(0,0,0,0.85);
  background: rgba(225, 191, 122, 0.92);
  border: 1px solid rgba(225, 191, 122, 0.35);
}

.step-body h3 {
  margin: 0 0 6px;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  font-size: 1.05rem;
}

.step-body p {
  margin: 0;
  color: rgba(247, 242, 232, 0.72);
}

/* Widget card */
.discord-widget-card {
  position: relative; /* ✅ no sticky */
  top: auto;
  background: rgba(247, 242, 232, 0.07);
  border: 1px solid rgba(225, 191, 122, 0.22);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 70px rgba(0,0,0,0.26);
}

.discord-widget-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(225, 191, 122, 0.18);
}

.widget-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(225, 191, 122, 0.95);
  box-shadow: 0 0 12px rgba(225, 191, 122, 0.35);
}

.widget-title {
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  color: rgba(247, 242, 232, 0.9);
  font-size: 0.95rem;
}

.discord-iframe {
  height: 455px;         /* match your HTML height */
  display: block;
  width: 100%;
  border: 0;
}

.discord-widget-foot {
  padding: 12px 16px 14px;
  color: rgba(247, 242, 232, 0.70);
  font-size: 0.95rem;
  border-top: 1px solid rgba(225, 191, 122, 0.18);
  background: rgba(0,0,0,0.18);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.discord-widget-foot i {
  color: rgba(225, 191, 122, 0.95);
  margin-top: 2px;
}


/* Responsive */
@media (max-width: 980px) {
  .discord-stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discord-grid { grid-template-columns: 1fr; }
  .discord-widget-card { position: relative; top: 0; }
}

@media (max-width: 560px) {
  .discord-benefits { grid-template-columns: 1fr; }
  .discord-stat { text-align: left; }
}

/* ============================================
   DISCORD EXPECTATIONS (DO / DON'T)
   ============================================ */

/* In the 2x2 grid layout, Expectations is a peer panel, so it should NOT be pushed down.
   We only add top margin on smaller screens where panels stack. */
.discord-expectations{
  margin-top: 0;
}

@media (max-width: 980px){
  .discord-expectations{
    margin-top: 22px;
  }
}

/* Grid */
.expectations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

/* Shared box styling */
.expectations-box {
  padding: 18px 18px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(225, 191, 122, 0.22);
}

.expectations-box h3 {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* DO styling */
.expectations-box.do h3 i {
  color: rgba(120, 200, 140, 0.95);
}

.expectations-box.do {
  border-left: 3px solid rgba(120, 200, 140, 0.85);
}

/* DON'T styling */
.expectations-box.dont h3 i {
  color: rgba(220, 90, 90, 0.95);
}

.expectations-box.dont {
  border-left: 3px solid rgba(220, 90, 90, 0.85);
}

/* Lists */
.expectations-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.expectations-box li {
  margin-bottom: 8px;
  color: rgba(247, 242, 232, 0.78);
  line-height: 1.6;
}

.expectations-box li::marker {
  color: rgba(225, 191, 122, 0.9);
}

/* Footnote */
.expectations-footnote {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(225, 191, 122, 0.08);
  border: 1px solid rgba(225, 191, 122, 0.22);
  color: rgba(247, 242, 232, 0.75);
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.expectations-footnote i {
  color: rgba(225, 191, 122, 0.95);
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 720px) {
  .expectations-grid {
    grid-template-columns: 1fr;
  }
}


.discord-iframe{
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(225, 191, 122, 0.16);
}

/* ============================================
   Before you join checklist (How to Join filler)
   ============================================ */

.join-checklist{
  margin-top: 18px;
  padding: 16px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,0.20);
  border: 1px solid rgba(225,191,122,0.18);
}

.join-checklist-title{
  margin: 0 0 12px;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  font-size: 1.05rem;
  color: rgba(247,242,232,0.92);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.join-checklist-title i{
  color: rgba(225,191,122,0.95);
}

.join-checklist-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.jc-item{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(225,191,122,0.14);
  color: rgba(247,242,232,0.78);
  line-height: 1.5;
}

.jc-item i{
  color: rgba(225,191,122,0.95);
  margin-top: 2px;
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
}

.join-checklist-footnote{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(225,191,122,0.08);
  border: 1px solid rgba(225,191,122,0.18);
  color: rgba(247,242,232,0.72);
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.join-checklist-footnote i{
  color: rgba(225,191,122,0.95);
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 720px){
  .join-checklist-grid{
    grid-template-columns: 1fr;
  }
}

.inline-link{
  color: rgba(225,191,122,0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(225,191,122,0.35);
}
.inline-link:hover{
  color: rgba(247,242,232,0.95);
  border-bottom-color: rgba(225,191,122,0.65);
}

/* ============================================
   DONATIONS PAGE (Onyx theme)
   Matches Rules + Discord styling
   ============================================ */

.donations-page {
  background: var(--primary-color);
}

/* ===========================
   HERO (same structure as Discord)
   =========================== */

.donations-hero {
  padding: clamp(70px, 7vw, 110px) 0 40px;
  background:
    radial-gradient(900px 500px at 50% -80px, rgba(225, 191, 122, 0.16), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.35));
  border-bottom: 1px solid rgba(225, 191, 122, 0.18);
}

.donations-hero-inner {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin: 0 auto;
  text-align: center;
}

.donations-kicker {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(225, 191, 122, 0.26);
  background: rgba(225, 191, 122, 0.08);
  color: rgba(247, 242, 232, 0.85);
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.donations-title {
  margin: 14px 0 8px;
  font-family: "Cinzel", serif;
  letter-spacing: 2px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.donations-subtitle {
  max-width: 860px;
  margin: 0 auto;
  color: rgba(247, 242, 232, 0.78);
  font-size: 1.15rem;
}

.donations-hero-buttons {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===========================
   CONTENT WRAPPER
   =========================== */

.donations-content {
  padding: var(--section-pad) 0;
  background: linear-gradient(to bottom, #000, var(--primary-color));
}

.donations-container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin: 0 auto;
}

/* ===========================
   SECTION (Rules-style)
   =========================== */

.donations-section {
  position: relative;
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
  margin-top: clamp(3.5rem, 6vw, 5rem);
}

/* First section has no divider */
.donations-section:first-of-type::before {
  display: none;
}

/* ===========================
   SECTION PANEL
   =========================== */

.donations-panel {
  padding: 22px 22px;
  border-radius: 16px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(225, 191, 122, 0.22);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

/* ===========================
   HEADINGS & TEXT
   =========================== */

.donations-h2 {
  font-family: "Cinzel", serif;
  color: rgba(225, 191, 122, 0.95);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.donations-lead {
  margin-bottom: 16px;
  color: rgba(247, 242, 232, 0.72);
  max-width: 860px;
}

/* ===========================
   LISTS (rules-like)
   =========================== */

.donations-list {
  padding-left: 1.25rem;
}

.donations-list li {
  margin-bottom: 10px;
  color: rgba(247, 242, 232, 0.78);
  line-height: 1.65;
}

.donations-list li::marker {
  color: rgba(225, 191, 122, 0.95);
}

/* ===========================
   FINAL CTA
   =========================== */

.donations-cta {
  text-align: center;
  padding: 36px 28px;
  border-radius: 18px;
  background: radial-gradient(
    900px 280px at 50% 0%,
    rgba(225,191,122,0.14),
    rgba(0,0,0,0.22)
  );
  border: 1px solid rgba(225,191,122,0.28);
  box-shadow: 0 22px 85px rgba(0,0,0,0.35);
}

.donations-cta h2 {
  margin-bottom: 10px;
  font-family: "Cinzel", serif;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  letter-spacing: 1px;
}

.donations-cta p {
  margin-bottom: 18px;
  color: rgba(247,242,232,0.76);
  max-width: 760px;
  margin-inline: auto;
}

/* ===========================
   DONATION TILES (Feature-style)
   Matches the “SERVER FEATURES” cards
   =========================== */

.donations-tiles{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1050px){
  .donations-tiles{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px){
  .donations-tiles{ grid-template-columns: 1fr; }
}

.donation-tile{
  padding: 2.25rem 1.75rem;
  border-radius: 18px;
  backdrop-filter: blur(10px);

  border: 2px solid rgba(225, 191, 122, 0.30);
  background: rgba(0,0,0,0.20);

  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);

  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  min-height: 210px;
}

.donation-tile:hover{
  transform: translateY(-5px);
  border-color: rgba(225, 191, 122, 0.85);
  box-shadow: 0 18px 55px rgba(225, 191, 122, 0.18);
}

/* Big centered icon */
.donation-tile i{
  font-size: 2.8rem;
  color: var(--secondary-color);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.45));
}

/* Headings match Features (uppercase + gradient text) */
.donation-tile h3{
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  letter-spacing: 1px;
  text-transform: uppercase;

  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.donation-tile p{
  margin: 0;
  color: rgba(247, 242, 232, 0.72);
  line-height: 1.6;
  max-width: 36ch;
}
/* Final thank-you CTA panel (centered, consistent) */
.donations-cta-panel {
  text-align: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 18px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(225, 191, 122, 0.22);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  color: rgba(247, 242, 232, 0.76);
}

.donations-cta-panel h2 {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  letter-spacing: 1.2px;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  color: rgba(247, 242, 232, 0.95);
}

.donations-cta-panel h2 span {
  color: rgba(225, 191, 122, 0.95);
}

.donations-cta-panel p {
  margin: 0 auto 18px;
  max-width: 760px;
  color: rgba(247, 242, 232, 0.76);
  line-height: 1.6;
}

/* =========================
   Onyx Footer (3-column)
   ========================= */
.site-footer{
  position: relative;
  margin-top: 60px;
  padding: 54px 0 28px;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(225,191,122,0.14), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(225,191,122,0.10), transparent 60%),
    rgba(0,0,0,0.35);
  border-top: 1px solid rgba(225,191,122,0.18);
  overflow: hidden;
}

.site-footer::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(to right, rgba(0,0,0,0.55), rgba(0,0,0,0.20), rgba(0,0,0,0.55));
}

.footer-container{
  position: relative;
  width: min(var(--container, 1200px), 100% - (var(--gutter, 24px) * 2));
  margin: 0 auto;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 44px;
  align-items:start;
}

.footer-col{ min-width: 0; }

.footer-title{
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: rgba(247,242,232,0.92);
  font-size: 1.05rem;
}

.footer-underline{
  width: 28px;
  height: 2px;
  margin: 10px 0 16px;
  background: rgba(225,191,122,0.75);
  box-shadow: 0 0 12px rgba(225,191,122,0.25);
}

.footer-text{
  color: rgba(247,242,232,0.72);
  line-height: 1.7;
  margin: 0;
  max-width: 52ch;
}

/* Links list */
.footer-links-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap: 12px;
}

/* Hover effect like your reference image: slight slide + glow */
.footer-link{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  color: rgba(247,242,232,0.72);
  text-decoration:none;
  position: relative;
  transition: transform 180ms ease, color 180ms ease, text-shadow 180ms ease;
}

.footer-link::before{
  content:"";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(225,191,122,0.0);
  box-shadow: 0 0 0 rgba(225,191,122,0.0);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.footer-link:hover{
  transform: translateX(6px);
  color: rgba(247,242,232,0.92);
  text-shadow: 0 0 10px rgba(225,191,122,0.20);
}

.footer-link:hover::before{
  background: rgba(225,191,122,0.85);
  box-shadow: 0 0 12px rgba(225,191,122,0.25);
}

/* Divider + bottom bar */
.footer-divider{
  height: 1px;
  margin: 40px 0 18px;
  background: linear-gradient(to right, transparent, rgba(225,191,122,0.22), transparent);
}

.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-stamp{
  color: rgba(247,242,232,0.62);
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 980px){
  .footer-grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-text{ max-width: none; }
}



/* =========================
   Scene Creator (Onyx)
   ========================= */

.page-wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 36px 0 60px;
}

.page-hero {
  padding: 10px 0 26px;
}

.page-title {
  margin: 0;
  letter-spacing: 0.4px;
}

.page-subtitle {
  margin: 10px 0 0;
  max-width: 820px;
  color: #ffffff;
  opacity: 0.85;
}

.onyx-section {
  margin-top: 12px;
}

.glow-divider {
  height: 1px;
  width: 100%;
  margin: 18px 0;
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(212,175,55,0.6), rgba(0,0,0,0));
  box-shadow: 0 0 14px rgba(212,175,55,0.22);
}

.scene-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

@media (max-width: 980px) {
  .scene-grid { grid-template-columns: 1fr; }
}

.scene-card {
  background: rgba(10, 10, 14, 0.72);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 16px;
}

.scene-card__head h2 {
  margin: 0 0 6px;
}

.muted {
  opacity: 0.75;
}

.tiny {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 6px;
}

.scene-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}

.scene-mode {
  min-width: 280px;
  flex: 1;
}

.scene-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.scene-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.scene-check {
  width: 16px;
  height: 16px;
  accent-color: rgba(212,175,55,1);
}

.scene-line__main {
  display: grid;
  gap: 6px;
}

.scene-line__meta {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

@media (max-width: 680px) {
  .scene-line__meta { grid-template-columns: 1fr 1fr; }
  .scene-line__meta .btn { grid-column: 1 / -1; }
}

.meta-field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: 0.88rem;
  opacity: 0.85;
}

.field-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.18);
  background: rgba(0,0,0,0.35);
  color: #fff;
  outline: none;
}

.field-input:focus {
  border-color: rgba(212,175,55,0.45);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}

.scene-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 650;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  user-select: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #0b0b0f;
  background: linear-gradient(180deg, rgba(212,175,55,1), rgba(176,138,33,1));
  box-shadow: 0 10px 20px rgba(212,175,55,0.16);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(212,175,55,0.22);
}

.btn-ghost {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
}

.btn-danger {
  color: #fff;
  background: rgba(255, 80, 80, 0.16);
  border: 1px solid rgba(255, 80, 80, 0.28);
}

.btn-danger:hover {
  transform: translateY(-1px);
  background: rgba(255, 80, 80, 0.22);
}

.code-box {
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.18);
  background: rgba(0,0,0,0.45);
  padding: 12px;
  min-height: 180px;
  overflow: auto;
}

.code-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
}

.hint-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
}

.copy-toast {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: rgba(255,255,255,0.85);
  font-weight: 650;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Center the hero like your standard pages */
.scene-hero {
  text-align: center;
  padding-top: 22px;
  padding-bottom: 18px;
}

.scene-hero .page-title {
  color: rgba(212,175,55,0.95);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.scene-hero .page-subtitle {
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.85);
  max-width: 900px;
}

/* Make tiles match Onyx cards */
.scene-section .scene-card {
  background: linear-gradient(180deg, rgba(14,14,18,0.88), rgba(8,8,10,0.86));
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 18px;
  box-shadow:
    0 16px 36px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}

.scene-section .scene-card__head h2 {
  color: rgba(212,175,55,0.90);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.scene-section .muted {
  color: rgba(255,255,255,0.72);
  opacity: 1;
}

/* Inputs: more Onyx + less grey */
.scene-section .field-input {
  background: rgba(0,0,0,0.40);
  border: 1px solid rgba(212,175,55,0.20);
  color: rgba(255,255,255,0.92);
}

.scene-section .field-input:focus {
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.14);
}

/* Line blocks: tighter + theme */
.scene-section .scene-line {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.scene-section .scene-line__meta {
  grid-template-columns: 1fr 1fr 1fr auto;
}

@media (max-width: 680px) {
  .scene-section .scene-line__meta {
    grid-template-columns: 1fr 1fr;
  }
}

/* Buttons: match your Onyx gold */
.scene-section .btn-primary {
  color: #0b0b0f;
  background: linear-gradient(180deg, rgba(212,175,55,1), rgba(176,138,33,1));
  box-shadow: 0 12px 22px rgba(212,175,55,0.18);
}

.scene-section .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(212,175,55,0.24);
}

.scene-section .btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.18);
  color: rgba(255,255,255,0.92);
}

.scene-section .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.scene-section .btn-danger {
  background: rgba(150, 40, 40, 0.18);
  border: 1px solid rgba(220, 80, 80, 0.22);
}

/* Output/code box: less “empty grey”, more Onyx */
.scene-section .code-box {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(212,175,55,0.22);
}

.scene-section .hint-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Put builder buttons nicely at bottom */
.scene-actions--builder {
  margin-top: 14px;
  justify-content: flex-start;
  gap: 10px;
  position: sticky;
  bottom: 10px;
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(8,8,10,0.65) 40%, rgba(8,8,10,0.85));
  border-radius: 14px;
}

/* Scene Creator: match standard Onyx page background (like Donations) */
body.scene-page{
  background: var(--primary-color) !important;
}

/* =========================================
   Scene Creator mini guide (Onyx theme)
   ========================================= */

.onyx-mini-guide{
  margin: 26px auto 18px;
  width: min(1200px, 92vw);
  margin-bottom: 11px; /* was visually ~40–60px */
}

.onyx-mini-guide__inner{
  padding: 26px 26px 22px;
  border-radius: 18px;
  border: 1px solid rgba(212,175,55,0.22);
  background: radial-gradient(800px 240px at 50% 0%, rgba(212,175,55,0.12), rgba(0,0,0,0) 65%),
              rgba(255,255,255,0.02);
  box-shadow: 0 18px 46px rgba(0,0,0,0.45);
}

.onyx-mini-guide__title{
  margin: 0 0 18px;
  text-align: center;
  font-family: "Cinzel", serif;
  color: rgba(212,175,55,0.95);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.onyx-mini-steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px){
  .onyx-mini-steps{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px){
  .onyx-mini-steps{ grid-template-columns: 1fr; }
}

.onyx-mini-step{
  text-align: center;
  padding: 14px 12px 10px;
}

.onyx-mini-step__num{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid rgba(212,175,55,0.55);
  box-shadow: 0 0 18px rgba(212,175,55,0.12);
  margin: 0 auto 12px;

  display: grid;
  place-items: center;

  font-family: "Cinzel", serif;
  color: rgba(212,175,55,0.95);
  font-weight: 700;
  font-size: 1.05rem;
}

.onyx-mini-step__head{
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  color: rgba(212,175,55,0.90);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 1.02rem;
}

.onyx-mini-step__text{
  margin: 0;
  font-family: "Crimson Text", serif;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
}

.onyx-mini-step__text code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 0.95em;
  color: rgba(255,255,255,0.88);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(212,175,55,0.18);
  padding: 2px 6px;
  border-radius: 8px;
}

/* =========================================
   Scene Creator (scoped + clean)
   ========================================= */

/* Keep ONE scene background rule */
body.scene-page{
  background: var(--primary-color);
}

/* Mini guide spacing (tighten gap to generator) */
.scene-page .onyx-mini-guide{
  margin: 22px auto 12px;
  width: min(1200px, 92vw);
}

/* Tighten ONLY the Scene Creator section spacing (do NOT touch donations/rules) */
.scene-page #scene-builder.donations-section{
  padding-top: 18px;
  margin-top: 22px;
  padding-bottom: 26px;
}

/* If your content wrapper adds too much bottom space, tighten it here */
.scene-page .donations-content{
  padding-bottom: 42px;
}

/* Optional: slightly reduce hero→content gap on Scene page only */
.scene-page .donations-hero{
  padding-bottom: 30px;
}

/* Mini guide styling (keep your existing look) */
.scene-page .onyx-mini-guide__inner{
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(212,175,55,0.22);
  background:
    radial-gradient(800px 240px at 50% 0%, rgba(212,175,55,0.12), rgba(0,0,0,0) 65%),
    rgba(255,255,255,0.02);
  box-shadow: 0 18px 46px rgba(0,0,0,0.45);
}

.scene-page .onyx-mini-guide__title{
  margin: 0 0 14px;
  text-align: center;
  font-family: "Cinzel", serif;
  color: rgba(212,175,55,0.95);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.scene-page .onyx-mini-steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px){
  .scene-page .onyx-mini-steps{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .scene-page .onyx-mini-steps{ grid-template-columns: 1fr; }
}

.scene-page .onyx-mini-step{
  text-align: center;
  padding: 12px 10px 8px;
}

.scene-page .onyx-mini-step__num{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(212,175,55,0.55);
  box-shadow: 0 0 18px rgba(212,175,55,0.12);
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-family: "Cinzel", serif;
  color: rgba(212,175,55,0.95);
  font-weight: 700;
  font-size: 1rem;
}

.scene-page .onyx-mini-step__head{
  margin: 0 0 6px;
  font-family: "Cinzel", serif;
  color: rgba(212,175,55,0.90);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.95rem;
}

.scene-page .onyx-mini-step__text{
  margin: 0;
  font-family: "Crimson Text", serif;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
}

.scene-page .onyx-mini-step__text code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  font-size: 0.95em;
  color: rgba(255,255,255,0.88);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(212,175,55,0.18);
  padding: 2px 6px;
  border-radius: 8px;
}

/* ================================
   Scene Creator Generator — Onyx polish
   ================================ */

.scene-page .scene-card {
  background: linear-gradient(180deg, rgba(14,14,18,0.82), rgba(8,8,10,0.78));
  border: 1px solid rgba(212,175,55,0.18);
  box-shadow: 0 18px 46px rgba(0,0,0,0.45);
}

/* Card headings like Onyx */
.scene-page .scene-card__head h2 {
  color: rgba(212,175,55,0.92);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.scene-page .scene-card__head p,
.scene-page .muted {
  color: rgba(255,255,255,0.70);
}

/* Inputs / selects */
.scene-page .field-label {
  color: rgba(255,255,255,0.75);
}

.scene-page .field-input {
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(212,175,55,0.22);
  color: rgba(255,255,255,0.92);
}

.scene-page .field-input:focus {
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.14);
}

/* Each line tile */
.scene-page .scene-line {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}

/* Remove button: less red, more “Onyx danger” */
.scene-page .btn-danger {
  background: rgba(150, 40, 40, 0.16);
  border: 1px solid rgba(220, 80, 80, 0.22);
}

.scene-page .btn-danger:hover {
  background: rgba(150, 40, 40, 0.22);
}

/* Code output box */
.scene-page .code-box {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(212,175,55,0.22);
}

/* Hint box */
.scene-page .hint-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Copy button success state */
.scene-page .btn-copy-success {
  background: linear-gradient(180deg, rgba(70, 190, 110, 1), rgba(35, 150, 80, 1)) !important;
  color: #08110a !important;
  box-shadow: 0 14px 26px rgba(70,190,110,0.20) !important;
  border: 1px solid rgba(70,190,110,0.35) !important;
}

/* Hide old toast if still in HTML */
.scene-page .copy-toast {
  display: none !important;
}

/* CTA success state for Copy button */
.cta-button.is-copied{
  background: linear-gradient(180deg, rgba(70, 190, 110, 1), rgba(35, 150, 80, 1)) !important;
  border-color: rgba(70,190,110,0.35) !important;
  color: #07110a !important;
  box-shadow: 0 14px 26px rgba(70,190,110,0.22) !important;
}

/* If your CTA buttons have icons, keep spacing consistent */
.cta-button i{
  margin-right: 8px;
}

/* ================================
   Scene Creator: Live Preview
   ================================ */

.scene-preview{
  margin: 10px 0 14px;
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 14px;
  background: rgba(0,0,0,0.38);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.scene-preview__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 0;
}

.scene-preview__head h3{
  margin: 0;
  font-family: "Cinzel", serif;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: rgba(212,175,55,0.92);
}

.scene-preview__note{
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}

.scene-preview__box{
  padding: 12px;
  min-height: 110px;
  border-radius: 12px;
  margin: 10px 12px 12px;
  background:
    radial-gradient(600px 180px at 50% 0%, rgba(212,175,55,0.08), rgba(0,0,0,0) 62%),
    rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
}

.scene-preview__line{
  display: block;
  line-height: 1.15;
  margin: 4px 0;
  text-shadow: 0 8px 20px rgba(0,0,0,0.55);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Business Rules - Disclaimer full yellow box */
.rules-card-disclaimer{
  background: linear-gradient(180deg, rgba(212,175,55,0.22), rgba(212,175,55,0.12)) !important;
  border: 1px solid rgba(212,175,55,0.55) !important;
  box-shadow: 0 18px 40px rgba(212,175,55,0.10), 0 12px 36px rgba(0,0,0,0.40);
}

.rules-card-disclaimer .rules-card-title,
.rules-card-disclaimer h3{
  color: rgba(212,175,55,0.98) !important;
}

.rules-card-disclaimer p,
.rules-card-disclaimer .rules-important{
  color: rgba(255,255,255,0.88) !important;
}

/* =========================================
   APPEALS (Onyx theme, Scene Creator style)
   ========================================= */

body.appeals-page{
  background: var(--primary-color);
}

.appeals-hero-actions{
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Use the same grid feel as scene creator */
.appeals-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px){
  .appeals-grid{ grid-template-columns: 1fr; }
}

.onyx-panel{
  padding: 22px 22px;
  border-radius: 16px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(225, 191, 122, 0.22);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

.onyx-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(700px 220px at 20% 0%, rgba(225,191,122,0.12), transparent 55%);
  pointer-events:none;
}

.onyx-panel > *{
  position: relative;
  z-index: 1;
}

.onyx-h2{
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  color: rgba(247, 242, 232, 0.95);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.onyx-h2 i{ color: rgba(225,191,122,0.95); }

.onyx-lead{
  margin: 0 0 16px;
  color: rgba(247,242,232,0.75);
}

.onyx-form{
  display: grid;
  gap: 12px;
}

.onyx-field{
  display: grid;
  gap: 6px;
}

.onyx-label{
  font-family: "Cinzel", serif;
  letter-spacing: 0.8px;
  font-size: 0.95rem;
  color: rgba(247,242,232,0.82);
}

.onyx-input,
.onyx-select,
.onyx-textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(225,191,122,0.18);
  background: rgba(0,0,0,0.40);
  color: rgba(255,255,255,0.92);
  outline: none;
}

.onyx-textarea{ min-height: 140px; resize: vertical; }

.onyx-input:focus,
.onyx-select:focus,
.onyx-textarea:focus{
  border-color: rgba(225,191,122,0.55);
  box-shadow: 0 0 0 3px rgba(225,191,122,0.14);
}

.onyx-help{
  color: rgba(247,242,232,0.68);
  font-size: 0.95rem;
  line-height: 1.6;
}

.onyx-help a{
  color: rgba(225,191,122,0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(225,191,122,0.35);
}
.onyx-help a:hover{
  color: rgba(247,242,232,0.95);
  border-bottom-color: rgba(225,191,122,0.65);
}

.onyx-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.onyx-alert{
  margin-top: 12px;
  border-radius: 14px;
  padding: 14px 14px;
  border: 1px solid rgba(225, 191, 122, 0.22);
  background: rgba(0,0,0,0.34);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.onyx-alert.success{
  border-color: rgba(140, 220, 110, 0.40);
}

.onyx-alert-title{
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  color: rgba(247,242,232,0.95);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.onyx-alert-title i{ color: rgba(140,220,110,0.95); }

.onyx-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  color: rgba(255,255,255,0.88);
}

.onyx-link{
  color: rgba(225,191,122,0.95);
  text-decoration: none;
  border-bottom: 1px solid rgba(225,191,122,0.35);
}
.onyx-link:hover{
  color: rgba(247,242,232,0.95);
  border-bottom-color: rgba(225,191,122,0.65);
}

/* Status tracker */
.status-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(225,191,122,0.22);
  background: rgba(0,0,0,0.35);
  color: rgba(247,242,232,0.90);
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.status-pill.is-submitted{ border-color: rgba(225,191,122,0.30); }
.status-pill.is-review{ border-color: rgba(120,170,255,0.40); }
.status-pill.is-moreinfo{ border-color: rgba(255,200,120,0.45); }
.status-pill.is-accepted{ border-color: rgba(140,220,110,0.45); }
.status-pill.is-denied{ border-color: rgba(220,90,90,0.55); }

.status-timeline{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.status-step{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(225,191,122,0.16);
  background: rgba(0,0,0,0.22);
  color: rgba(247,242,232,0.78);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.status-step strong{
  font-family: "Cinzel", serif;
  letter-spacing: 0.8px;
  color: rgba(247,242,232,0.92);
}

.status-meta{
  color: rgba(247,242,232,0.62);
  font-size: 0.95rem;
}

/* =========================
   WELCOME GUIDE (Onyx)
========================= */

.onyx-page-hero {
  padding: 120px 0 35px;
  position: relative;
}

.onyx-page-hero-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.onyx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: rgba(225,191,122,0.95);
  text-transform: uppercase;
}

.onyx-page-title {
  margin: 10px 0 10px;
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  color: rgba(255,255,255,0.98);
}

.onyx-page-subtitle {
  max-width: 780px;
  font-family: "Crimson Text", serif;
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
}

.onyx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.onyx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(225,191,122,0.35);
  background: rgba(12,12,12,0.65);
  color: rgba(255,255,255,0.92);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.onyx-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(225,191,122,0.65);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.onyx-btn-ghost {
  border-color: rgba(255,255,255,0.16);
}

.onyx-guide {
  padding: 22px 0 70px;
}

.onyx-guide-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 980px) {
  .onyx-guide-grid {
    grid-template-columns: 1fr;
  }
}

.onyx-guide-aside {
  position: sticky;
  top: 90px;
}

@media (max-width: 980px) {
  .onyx-guide-aside { position: relative; top: auto; }
}

.onyx-panel {
  background: rgba(10,10,10,0.62);
  border: 1px solid rgba(225,191,122,0.16);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
}

.onyx-panel-title {
  font-family: "Cinzel", serif;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: rgba(255,255,255,0.94);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.onyx-toc-links {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.onyx-toc a {
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.86);
  background: rgba(0,0,0,0.25);
  transition: transform 180ms ease, border-color 180ms ease;
}

.onyx-toc a:hover {
  transform: translateX(2px);
  border-color: rgba(225,191,122,0.45);
}

.onyx-toc a.active {
  border-color: rgba(225,191,122,0.70);
  background: rgba(225,191,122,0.10);
}

.onyx-toc-tip {
  margin-top: 12px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  display: flex;
  gap: 10px;
  align-items: center;
}

.onyx-section {
  scroll-margin-top: 92px;
}

.onyx-section-header {
  margin-bottom: 12px;
}

.onyx-h2 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.96);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.onyx-lead {
  margin: 0;
  font-family: "Crimson Text", serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.80);
}

.onyx-text {
  font-family: "Crimson Text", serif;
  font-size: 1.06rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.80);
  margin: 0 0 10px;
}

.onyx-section-divider {
  height: 2px;
  margin: 16px 0;
  background: linear-gradient(90deg, transparent, rgba(225,191,122,0.80), transparent);
  box-shadow: 0 0 18px rgba(225,191,122,0.22);
  border-radius: 999px;
}

.onyx-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 720px) {
  .onyx-tiles { grid-template-columns: 1fr; }
}

.onyx-tile {
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(225,191,122,0.14);
  border-radius: 18px;
  padding: 14px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.onyx-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(225,191,122,0.35);
  box-shadow: 0 16px 44px rgba(0,0,0,0.35);
}

.onyx-tile-title {
  font-family: "Cinzel", serif;
  font-weight: 700;
  color: rgba(255,255,255,0.94);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.onyx-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.82);
  font-family: "Crimson Text", serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

.onyx-list-tight li { margin: 4px 0; }

.onyx-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(225,191,122,0.10);
  border: 1px solid rgba(225,191,122,0.20);
  color: rgba(255,255,255,0.90);
}

.onyx-callout {
  margin-top: 10px;
  border-radius: 16px;
  padding: 12px 12px;
  border: 1px solid rgba(225,191,122,0.22);
  background: rgba(225,191,122,0.08);
  color: rgba(255,255,255,0.84);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.onyx-code {
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.40);
  color: rgba(255,255,255,0.88);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  overflow-x: auto;
}

.onyx-table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
}

.onyx-table {
  width: 100%;
  border-collapse: collapse;
}

.onyx-table th,
.onyx-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  font-family: "Crimson Text", serif;
  font-size: 1.04rem;
}

.onyx-table th {
  font-family: "Cinzel", serif;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  background: rgba(225,191,122,0.08);
}

/* =========================
   HERO HEADER (Donations-style)
========================= */

.onyx-hero {
  padding: 140px 0 45px; /* sits nicely under your navbar */
  text-align: center;
  position: relative;
}

.onyx-hero-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.onyx-hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(225,191,122,0.35);
  background: rgba(10,10,10,0.55);
  color: rgba(255,255,255,0.75);
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.onyx-hero-title {
  margin: 18px 0 10px;
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: rgba(225,191,122,0.92);
  text-shadow: 0 0 22px rgba(225,191,122,0.12);
}

.onyx-hero-subtitle {
  margin: 0 auto;
  max-width: 820px;
  font-family: "Crimson Text", serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
}

.onyx-hero-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Optional: slightly tighter spacing on smaller screens */
@media (max-width: 600px) {
  .onyx-hero { padding-top: 125px; }
}

/* =========================
   ONYX FORMS (Applications)
========================= */

.onyx-form {
  display: grid;
  gap: 16px;
}

/* Each panel already exists; give panels form spacing */
.onyx-form .onyx-panel {
  padding: 18px;
}

/* Labels + inputs stack cleanly */
.onyx-form label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  font-family: "Crimson Text", serif;
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  line-height: 1.35;
}

.onyx-form label:first-of-type {
  margin-top: 0;
}

/* Inputs + textareas theme */
.onyx-form input[type="text"],
.onyx-form input[type="number"],
.onyx-form input[type="email"],
.onyx-form textarea,
.onyx-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(225,191,122,0.18);
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.92);
  font-family: "Crimson Text", serif;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.onyx-form textarea {
  resize: vertical;
  min-height: 110px;
}

.onyx-form input::placeholder,
.onyx-form textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

/* Focus glow */
.onyx-form input:focus,
.onyx-form textarea:focus,
.onyx-form select:focus {
  border-color: rgba(225,191,122,0.55);
  box-shadow: 0 0 0 3px rgba(225,191,122,0.12);
}

/* Two-column layout helper */
.onyx-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 780px) {
  .onyx-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Radio groups */
.onyx-radio-group {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
}

.onyx-radio-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.86);
}

.onyx-radio-group input[type="radio"] {
  margin-top: 2px;
  accent-color: #e1bf7a; /* keeps it on-theme */
}

/* Checkbox */
.onyx-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.86);
}

.onyx-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #e1bf7a;
}

/* Submit area */
.onyx-form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
}

/* Make the button feel “primary” inside forms */
.onyx-form-actions .onyx-btn {
  padding: 12px 16px;
  border-radius: 16px;
}

/* =========================
   Applications (Appeals-style)
========================= */

.app-shell{
  width: min(920px, calc(100% - 32px));
  margin: 70px auto 70px;
}

.app-card{
  background: rgba(10,10,10,0.66);
  border: 1px solid rgba(225,191,122,0.18);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.42);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.app-card-header{
  padding: 18px 18px 10px;
}

.app-card-title{
  margin: 0 0 8px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-card-subtitle{
  margin: 0;
  font-family: "Crimson Text", serif;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
}

.app-form{
  padding: 12px 18px 18px;
  display: grid;
  gap: 14px;
}

.app-section-title{
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(225,191,122,0.92);
}

.app-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 760px){
  .app-grid{ grid-template-columns: 1fr; }
}

.app-field label{
  display: block;
  margin-bottom: 6px;
  font-family: "Crimson Text", serif;
  color: rgba(255,255,255,0.86);
  font-size: 1.02rem;
}

.app-field input[type="text"],
.app-field input[type="number"],
.app-field input[type="email"],
.app-field input[type="date"],
.app-field input[type="url"],
.app-field input[type="tel"],
.app-field input[type="password"],
.app-field input[type="search"],
.app-field textarea,
.app-field select{
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(225,191,122,0.16);
  background: rgba(0,0,0,0.40);
  color: rgba(255,255,255,0.92);
  font-family: "Crimson Text", serif;
  font-size: 1.03rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.app-field textarea{
  resize: vertical;
  min-height: 120px;
}

.app-field input::placeholder,
.app-field textarea::placeholder{
  color: rgba(255,255,255,0.42);
}

.app-field input:focus,
.app-field textarea:focus,
.app-field select:focus{
  border-color: rgba(225,191,122,0.55);
  box-shadow: 0 0 0 3px rgba(225,191,122,0.12);
}

.app-radio{
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
}

.app-radio label{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  color: rgba(255,255,255,0.84);
}

.app-radio input{
  width: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
  margin-top: 3px;
  accent-color: #e1bf7a;
}


.app-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.app-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(225,191,122,0.25);
  background: rgba(12,12,12,0.55);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.app-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(225,191,122,0.55);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.app-btn-primary{
  background: rgba(225,191,122,0.86);
  color: rgba(20,20,20,0.95);
  border-color: rgba(225,191,122,0.70);
}

.app-btn-primary:hover{
  box-shadow: 0 16px 50px rgba(225,191,122,0.12), 0 18px 60px rgba(0,0,0,0.40);
}

.app-btn-ghost{
  border-color: rgba(255,255,255,0.14);
}

.app-footnote{
  margin-top: 4px;
  font-family: "Crimson Text", serif;
  color: rgba(255,255,255,0.62);
  line-height: 1.55;
  font-size: 0.98rem;
}

/* =========================
   FIX RADIO LAYOUT (Applications)
========================= */

/* Ensure radio rows don't get stretched/weird */
.app-radio,
.onyx-radio-group {
  align-items: start;
}

/* Force each radio option to be a tight row: dot + text */
.app-radio label,
.onyx-radio-group label {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100%;
  text-align: left;
}

/* Stop any global label grid rules from affecting radio label text */
.app-radio label > input[type="radio"],
.onyx-radio-group label > input[type="radio"] {
  flex: 0 0 auto;
  margin: 0 !important;
}

/* Keep the text from wrapping in a weird narrow column */
.app-radio label span,
.onyx-radio-group label span {
  flex: 1 1 auto;
}

/* Make radio click area nicer */
.app-radio label,
.onyx-radio-group label {
  padding: 8px 10px;
  border-radius: 12px;
}

.app-radio label:hover,
.onyx-radio-group label:hover {
  background: rgba(225,191,122,0.06);
  border: 1px solid rgba(225,191,122,0.10);
}

.donations-hero + .app-shell {
  margin-top: 70px;
}

/* Avoid hover 'jump' on radio options */
.app-radio label{border:1px solid transparent;}


/* Applications: Discord login gate (Appeals-style) */
.onyx-login-gate{
  margin-top: 10px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(225,191,122,0.18);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

.onyx-login-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin-bottom: 8px;
}

.onyx-login-sub{
  color: rgba(255,255,255,0.78);
  margin: 0 0 14px;
  line-height: 1.55;
}

/* ===== Applications: success state ===== */
.onyx-alert-success{
  border: 1px solid rgba(87, 242, 135, 0.35) !important;
  background: linear-gradient(180deg, rgba(87,242,135,0.08), rgba(0,0,0,0.35)) !important;
  box-shadow:
    0 0 0 1px rgba(87,242,135,0.10) inset,
    0 0 30px rgba(87,242,135,0.12);
}

.onyx-alert-success .success-overlay{
  position:absolute;
  right:-10px;
  top:-30px;
  font-size: 120px;
  opacity: 0.10;
  transform: rotate(10deg);
  pointer-events:none;
  filter: drop-shadow(0 0 18px rgba(87,242,135,0.35));
}