/* ============================================================================
   CURSEDSTAFF — OBSIDIAN HELLFIRE DESIGN SYSTEM
   Theme: Pure Black (#000000) | Royal Purple (#9333ea) | Molten Gold (#f59e0b) | Hellfire Crimson (#dc2626)
   Visuals: Minimalistic Dark Luxury, Motion-Blur Glassmorphism, Coal Embers
   ============================================================================ */

:root {
  --bg-void: #030305;
  --bg-obsidian: #08070b;
  --bg-card: linear-gradient(180deg, rgba(17, 14, 19, 0.86) 0%, rgba(9, 8, 12, 0.94) 100%);
  --bg-card-hover: linear-gradient(180deg, rgba(24, 18, 25, 0.92) 0%, rgba(12, 10, 15, 0.97) 100%);
  --bg-input: rgba(10, 9, 13, 0.94);
  --border-subtle: rgba(255, 255, 255, 0.085);
  --border-gold: rgba(245, 158, 11, 0.34);
  --border-crimson: rgba(220, 38, 38, 0.34);

  --text-primary: #f6f3ef;
  --text-secondary: #b7afb0;
  --text-muted: #7b7275;

  --purple-core: #7c3aed;
  --purple-bright: #c084fc;
  --gold-core: #d97706;
  --gold-bright: #f59e0b;
  --crimson-core: #b91c1c;
  --crimson-bright: #ef4444;
  --hellfire-orange: #ea580c;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --blur-glass: blur(22px);
  --font-display: 'Cinzel', Georgia, serif;
  --font-wordmark: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #030305;
  color: var(--text-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(ellipse 80% 42% at 50% -6%, rgba(153, 27, 27, 0.16) 0%, transparent 65%),
    #030305;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* ---------------- Atmospheric Blur Auroras & Ember Canvas ---------------- */
#ember-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.aurora-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(115px);
  opacity: 0.32;
  animation: orbDrift 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.aurora-purple {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 72%);
  top: -140px;
  left: 10%;
}

.aurora-crimson {
  width: 640px;
  height: 480px;
  background: radial-gradient(circle, rgba(185, 28, 28, 0.34) 0%, transparent 74%);
  top: 18%;
  right: 4%;
  animation-delay: -6s;
}

.aurora-gold {
  width: 480px;
  height: 420px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.2) 0%, transparent 75%);
  bottom: -100px;
  left: 36%;
  animation-delay: -11s;
}

@keyframes orbDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.28; }
  50% { transform: translate3d(34px, -22px, 0) scale(1.08); opacity: 0.38; }
  100% { transform: translate3d(-28px, 26px, 0) scale(0.95); opacity: 0.26; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-orb, .hero-emblem-wrap, .wordmark-burn, .blur-reveal {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------------- Header Navigation ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 4, 8, 0.84);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.14);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.78rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mini img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.55), 0 0 8px rgba(245, 158, 11, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.42rem 0.62rem;
  border-radius: 9px;
  white-space: nowrap;
  transition: color 0.22s ease, background 0.22s ease, text-shadow 0.22s ease;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.055);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.nav-link.active {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.16), rgba(220, 38, 38, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* ---------------- Main Container & View Transitions (Blur Motion) ---------------- */
.main-shell {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.blur-reveal {
  animation: blurFocusIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes blurFocusIn {
  0% { opacity: 0; filter: blur(12px); transform: translateY(10px); }
  100% { opacity: 1; filter: blur(0px); transform: translateY(0); }
}

/* ---------------- Hero Showcase (Emblem + Burning Wordmark) ---------------- */
.hero-section {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1rem 3.5rem;
  position: relative;
}

.hero-emblem-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transform: perspective(900px) rotateX(var(--emblem-rx, 0deg)) rotateY(var(--emblem-ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  animation: emblemFloat 6.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes emblemFloat {
  0%, 100% { transform: perspective(900px) rotateX(var(--emblem-rx, 0deg)) rotateY(var(--emblem-ry, 0deg)) translateY(0px); }
  50% { transform: perspective(900px) rotateX(var(--emblem-rx, 0deg)) rotateY(var(--emblem-ry, 0deg)) translateY(-7px); }
}

.hero-emblem-fumes-back {
  position: absolute;
  inset: -44px;
  width: 388px;
  height: 388px;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.hero-emblem-aura {
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 44%,
    rgba(168, 85, 247, 0.26) 0%,
    rgba(185, 28, 28, 0.18) 46%,
    transparent 74%);
  filter: blur(28px);
  animation: crystalCoreBreathe 5.2s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

.hero-emblem-img,
.hero-emblem-canvas {
  width: 284px;
  height: 284px;
  border-radius: 50%;
  position: absolute;
  inset: 8px;
  z-index: 2;
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 90%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 90%);
  mix-blend-mode: lighten;
  filter: contrast(1.06) saturate(1.1) drop-shadow(0 0 24px rgba(147, 51, 234, 0.22));
  transform: translateZ(14px);
}

.hero-emblem-img {
  object-fit: cover;
  transition: opacity 0.28s ease;
}

.hero-emblem-canvas {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* Sculpted dark-luxury "CURSEDSTAFF" wordmark matching reference aesthetic */
.wordmark-burn {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.85rem);
  font-weight: 500;
  letter-spacing: 0.30em;
  padding-left: 0.30em;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f1ece4 48%,
    #a89890 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.96))
          drop-shadow(0 0 28px rgba(185, 28, 28, 0.45));
  animation: wordmarkSheen 7s ease-in-out infinite alternate;
  margin-bottom: 0.55rem;
  user-select: none;
}

@keyframes wordmarkSheen {
  0% {
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.96)) drop-shadow(0 0 22px rgba(185, 28, 28, 0.38));
  }
  100% {
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.96)) drop-shadow(0 0 34px rgba(220, 38, 38, 0.58)) drop-shadow(0 0 18px rgba(168, 85, 247, 0.28));
  }
}

/* Ornate crimson rule + 4-point star divider directly below CURSEDSTAFF */
.hero-wordmark-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(460px, 78vw);
  margin: 0 auto 1.35rem;
}

.hero-wordmark-divider::before,
.hero-wordmark-divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
}

.hero-wordmark-divider::before {
  background: linear-gradient(90deg, transparent 0%, rgba(220, 38, 38, 0.45) 55%, rgba(248, 113, 113, 0.92) 100%);
}

.hero-wordmark-divider::after {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.92) 0%, rgba(220, 38, 38, 0.45) 45%, transparent 100%);
}

.hero-wordmark-divider .divider-star {
  margin: 0 0.7rem;
  color: #f87171;
  font-size: 1.05rem;
  line-height: 1;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.95), 0 0 24px rgba(220, 38, 38, 0.65);
  animation: starPulse 3.6s ease-in-out infinite alternate;
}

@keyframes starPulse {
  0% { transform: scale(0.95); opacity: 0.85; text-shadow: 0 0 10px rgba(239, 68, 68, 0.8); }
  100% { transform: scale(1.12); opacity: 1; text-shadow: 0 0 18px rgba(248, 113, 113, 1), 0 0 30px rgba(220, 38, 38, 0.85); }
}

.hero-products-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  width: min(560px, 88vw);
  margin: 0.35rem auto 1.35rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  color: #cbd5e1;
  text-transform: uppercase;
}

.hero-products-eyebrow::before,
.hero-products-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(248, 113, 113, 0.32), transparent);
}

.hero-subtitle {
  max-width: 680px;
  font-size: 1.06rem;
  color: var(--text-secondary);
  margin: 0 auto 2rem;
  font-weight: 400;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ---------------- Obsidian Glass Cards & Layout Grids ---------------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.84), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.9), 0 0 26px rgba(220, 38, 38, 0.12);
}

.card-gold {
  border-color: var(--border-gold);
}

.card-crimson {
  border-color: var(--border-crimson);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.35rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.grid-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.15rem;
}

.section-header {
  margin-bottom: 1.85rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.45rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.section-lead {
  color: var(--text-secondary);
  max-width: 720px;
  margin-top: 0.55rem;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.72rem 1.35rem;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 52%, #ea580c 100%);
  color: #fff;
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: 0 8px 26px rgba(185, 28, 28, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.48), 0 0 20px rgba(234, 88, 12, 0.38);
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #08060a;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-outline:hover {
  border-color: var(--gold-bright);
  background: rgba(245, 158, 11, 0.08);
}

.btn-danger {
  background: rgba(185, 28, 28, 0.25);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

.btn-danger:hover {
  background: rgba(220, 38, 38, 0.45);
}

.btn-sm {
  padding: 0.42rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* ---------------- Badges & Pills ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
}

.badge-purple { background: rgba(147, 51, 234, 0.22); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.badge-gold { background: rgba(245, 158, 11, 0.18); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.45); }
.badge-crimson { background: rgba(220, 38, 38, 0.22); color: #fca5a5; border: 1px solid rgba(220, 38, 38, 0.45); }
.badge-green { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }

/* ---------------- Progress Bars (Game Mode & Regular Mode) ---------------- */
.quota-meter {
  margin-top: 0.75rem;
}

.quota-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quota-fill-game {
  height: 100%;
  background: linear-gradient(90deg, #dc2626 0%, #f59e0b 100%);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  transition: width 0.35s ease;
}

.quota-fill-regular {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
  transition: width 0.35s ease;
}

/* ---------------- Forms & Tables ---------------- */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.68rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}

input[type="file"].form-control {
  padding: 0.45rem 0.6rem;
  color: var(--text-secondary);
  cursor: pointer;
}

input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(135deg, #2b0f14 0%, #7f1d1d 55%, #b45309 100%);
  color: #fef3c7;
  border: 1px solid rgba(245, 158, 11, 0.48);
  border-radius: 8px;
  padding: 0.42rem 0.85rem;
  margin-right: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.35), 0 0 10px rgba(245, 158, 11, 0.25);
}

.cs-file-upload-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--bg-input);
  border: 1px dashed rgba(245, 158, 11, 0.34);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.cs-file-upload-wrap:hover {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 0 22px rgba(220, 38, 38, 0.14);
}

.cs-file-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cs-file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(185, 28, 28, 0.88), rgba(217, 119, 6, 0.78));
  color: #fffbeb;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 9px;
  padding: 0.46rem 0.92rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-file-upload-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.36);
}

.cs-file-upload-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.compliance-ribbon {
  background: linear-gradient(135deg, rgba(16, 12, 18, 0.94) 0%, rgba(36, 12, 16, 0.72) 55%, rgba(16, 12, 18, 0.94) 100%);
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.45rem;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(251, 191, 36, 0.14);
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.compliance-cell {
  background: rgba(8, 7, 11, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.table-wrap {
  overflow-x: auto;
}

table.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

table.cs-table th {
  text-align: left;
  padding: 0.72rem 0.8rem;
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(245, 158, 11, 0.24);
  font-weight: 600;
  white-space: nowrap;
}

table.cs-table td {
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  vertical-align: middle;
}

/* ---------------- Disclosures & Quote Boxes ---------------- */
.quote-box {
  border-left: 3px solid var(--crimson-bright);
  background: rgba(220, 38, 38, 0.08);
  padding: 1rem 1.2rem;
  border-radius: 0 12px 12px 0;
  color: #f3e8ff;
  font-style: italic;
}

.notice-box {
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* ---------------- Modal & Toast ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 470px;
  background: linear-gradient(180deg, #100d13 0%, #070609 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.95), 0 0 38px rgba(220, 38, 38, 0.2);
}

#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  background: rgba(12, 8, 20, 0.95);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  font-size: 0.86rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
}

/* ---------------- Footer ---------------- */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(245, 158, 11, 0.16);
  background: rgba(3, 3, 5, 0.92);
  padding: 2.2rem 1.5rem;
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

/* ---------------- Animated Obsidian Game Artwork Gallery Cards ---------------- */
.game-art-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 13, 18, 0.94) 0%, rgba(7, 6, 9, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(0px);
  transform-style: preserve-3d;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  will-change: transform;
}

.game-art-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--game-glow, rgba(245, 158, 11, 0.24)), transparent 70%);
  transition: opacity 0.25s ease;
  z-index: 1;
}

.game-art-card:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px) scale(1.015);
  border-color: var(--game-accent, rgba(245, 158, 11, 0.72));
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.9), 0 0 28px var(--game-glow, rgba(220, 38, 38, 0.26));
}

.game-art-card:hover::before {
  opacity: 1;
}

.game-art-visual {
  position: relative;
  height: 132px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, var(--game-glow, rgba(220, 38, 38, 0.28)) 0%, rgba(7, 6, 9, 0.98) 76%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-art-shimmer {
  position: absolute;
  inset: -30%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.07) 49%, rgba(245, 158, 11, 0.12) 52%, transparent 66%);
  transform: translateX(-60%);
  animation: gameCardSweep 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

.game-art-scanline {
  display: none;
}

.game-art-embers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.game-art-embers span {
  position: absolute;
  bottom: -6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px #ea580c, 0 0 4px #fde68a;
  opacity: 0;
  animation: gameEmberRise var(--dur, 4.2s) linear infinite;
  animation-delay: var(--del, 0s);
}

.game-art-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: contrast(1.1) saturate(1.15);
  animation: gameKenBurns 12s ease-in-out infinite alternate;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.game-art-card:hover .game-art-photo {
  filter: contrast(1.16) saturate(1.25) brightness(1.06);
}

.game-art-photo-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 4, 7, 0.1) 0%, rgba(5, 4, 7, 0.84) 100%);
}

.game-art-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-art-card:hover .game-art-svg {
  transform: scale(1.06);
}

.game-anim-spin {
  transform-origin: center;
  animation: gameOrbitSpin 14s linear infinite;
}

.game-anim-spin-rev {
  transform-origin: center;
  animation: gameOrbitSpinRev 20s linear infinite;
}

.game-anim-pulse {
  transform-origin: center;
  animation: gameSigilPulse 2.8s ease-in-out infinite alternate;
}

.game-anim-float {
  animation: gameEmblemBob 3.6s ease-in-out infinite;
}

.game-art-footer {
  position: relative;
  z-index: 2;
  padding: 0.95rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60px;
}

.game-pill-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

@keyframes gameCardSweep {
  0%, 38% { transform: translateX(-65%); }
  74%, 100% { transform: translateX(65%); }
}

@keyframes gameScanline {
  0% { top: -4%; opacity: 0; }
  12% { opacity: 0.55; }
  88% { opacity: 0.55; }
  100% { top: 104%; opacity: 0; }
}

@keyframes gameEmberRise {
  0% { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
  20% { opacity: 0.85; }
  80% { opacity: 0.6; }
  100% { transform: translate3d(var(--dx, 10px), -125px, 0) scale(1.1); opacity: 0; }
}

@keyframes gameOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gameOrbitSpinRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes gameSigilPulse {
  0% { opacity: 0.68; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.07); }
}

@keyframes gameEmblemBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes gameKenBurns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.1) translate3d(-2%, -2%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .game-art-shimmer, .game-art-scanline, .game-art-embers span, .game-art-photo, .game-anim-spin, .game-anim-spin-rev, .game-anim-pulse, .game-anim-float {
    animation: none !important;
  }
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.pulse-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

.mode-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(10, 9, 13, 0.82);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.95rem 1.15rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-q:hover {
  background: rgba(168, 85, 247, 0.08);
}

.faq-a {
  display: none;
  padding: 0 1.15rem 1rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
}

.faq-item.open .faq-a {
  display: block;
}

.admin-tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  padding: 0.6rem;
  border-radius: 14px;
  background: rgba(10, 9, 13, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 780px) {
  .nav-inner {
    flex-wrap: wrap;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

/* ---------------- CursedStaff Emblem Kinetic Fumes, Crystal Aura & Lightning ---------------- */
.cs-fume-horn-l {
  animation: hornFumeLeft 5.8s ease-in-out infinite;
  transform-origin: 95px 160px;
}

.cs-fume-horn-r {
  animation: hornFumeRight 6.4s ease-in-out infinite;
  animation-delay: -2.1s;
  transform-origin: 293px 160px;
}

.cs-fume-crystal {
  animation: crystalFumeRise 5.2s ease-in-out infinite;
  transform-origin: 194px 140px;
}

.cs-crystal-core {
  animation: crystalCoreBreathe 4.2s ease-in-out infinite alternate;
  transform-origin: 170px 118px;
}

.cs-zap-a {
  stroke-dasharray: 56 120;
  animation: crystalZapA 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cs-zap-b {
  stroke-dasharray: 48 110;
  animation: crystalZapB 4.7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cs-zap-c {
  stroke-dasharray: 38 96;
  animation: crystalZapC 5.3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cs-crown-glint {
  animation: crownRunePulse 3.9s ease-in-out infinite alternate;
}

.cs-ring-slow {
  animation: gameOrbitSpin 28s linear infinite;
  transform-origin: 170px 170px;
}

.game-art-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: contrast(1.14) saturate(1.12);
  transform: scale(1.03);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  z-index: 1;
}

.game-art-card:hover .game-art-bg-img {
  transform: scale(1.1);
  opacity: 0.72;
}

.game-art-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 44%, transparent 18%, rgba(5, 4, 8, 0.62) 76%, rgba(4, 3, 6, 0.94) 100%),
              linear-gradient(180deg, rgba(6, 5, 9, 0.24) 0%, rgba(6, 5, 9, 0.88) 100%);
  pointer-events: none;
  z-index: 1;
}

@keyframes hornFumeLeft {
  0% { transform: translate3d(0, 12px, 0) scale(0.94); opacity: 0.25; }
  45% { transform: translate3d(-10px, -14px, 0) scale(1.06); opacity: 0.72; }
  100% { transform: translate3d(-18px, -36px, 0) scale(1.14); opacity: 0.18; }
}

@keyframes hornFumeRight {
  0% { transform: translate3d(0, 12px, 0) scale(0.94); opacity: 0.24; }
  45% { transform: translate3d(10px, -16px, 0) scale(1.07); opacity: 0.72; }
  100% { transform: translate3d(18px, -38px, 0) scale(1.14); opacity: 0.18; }
}

@keyframes crystalFumeRise {
  0% { transform: translate3d(0, 8px, 0) scaleY(0.92); opacity: 0.32; }
  50% { transform: translate3d(0, -10px, 0) scaleY(1.08); opacity: 0.78; }
  100% { transform: translate3d(0, -24px, 0) scaleY(1.16); opacity: 0.22; }
}

@keyframes crystalCoreBreathe {
  0% { opacity: 0.45; transform: scale(0.96); }
  100% { opacity: 0.88; transform: scale(1.05); }
}

@keyframes crystalZapA {
  0%, 58%, 100% { opacity: 0; stroke-dashoffset: 160; }
  61% { opacity: 0.95; stroke-dashoffset: 80; }
  65% { opacity: 0.15; stroke-dashoffset: 40; }
  68% { opacity: 1; stroke-dashoffset: 0; }
  76% { opacity: 0; stroke-dashoffset: -40; }
}

@keyframes crystalZapB {
  0%, 34%, 100% { opacity: 0; stroke-dashoffset: 150; }
  37% { opacity: 0.9; stroke-dashoffset: 70; }
  41% { opacity: 0.2; stroke-dashoffset: 24; }
  44% { opacity: 0.95; stroke-dashoffset: -12; }
  52% { opacity: 0; stroke-dashoffset: -45; }
}

@keyframes crystalZapC {
  0%, 74%, 100% { opacity: 0; stroke-dashoffset: 130; }
  78% { opacity: 0.95; stroke-dashoffset: 55; }
  84% { opacity: 0.25; stroke-dashoffset: 10; }
  88% { opacity: 1; stroke-dashoffset: -18; }
  94% { opacity: 0; stroke-dashoffset: -40; }
}

@keyframes crownRunePulse {
  0% { opacity: 0.26; }
  100% { opacity: 0.68; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-emblem-wrap, .hero-emblem-aura, .cs-fume-horn-l, .cs-fume-horn-r, .cs-fume-crystal, .cs-crystal-core, .cs-zap-a, .cs-zap-b, .cs-zap-c, .cs-crown-glint, .cs-ring-slow, .game-art-bg-img {
    animation: none !important;
    transition: none !important;
  }
}
