/* ================================================
   LuckySpinJoy - Unified Stylesheet
   Dark Gothic Theme: Deep Greens, Dark Grays, Purple Accents
   ================================================ */

/* ================================================
   NightBloom Core - Base Styles
   ================================================ */

:root {
  /* Primary Palette */
  --void-black: #0a0a0f;
  --crypt-gray: #141419;
  --stone-dark: #1e1e24;
  --tomb-mid: #2a2a32;

  /* Green Heritage */
  --bog-deep: #1a2e1a;
  --mire-rich: #2d4a2d;
  --moss-worn: #3d5c3d;
  --jade-dim: #4a6b4a;
  --emerald-pale: #5c8a5c;
  --crypt-glow: #6b9f6b;

  /* Purple Vampire */
  --vampire-veil: #2d1a3a;
  --blood-wine: #4a1f4f;
  --amethyst-deep: #5c2d6b;
  --spell-cast: #7b3d8a;
  --mystic-shroud: #9b4da3;

  /* Crimson Accents */
  --blood-dried: #6b1a2a;
  --crimson-spell: #8a2a3a;
  --ruby-glow: #aa3a4a;

  /* Text Colors */
  --text-spectral: #e8e4df;
  --text-ghost: #b8b4af;
  --text-whisper: #888490;
  --text-void: #4a4850;

  /* Gradients */
  --gradient-bloom: linear-gradient(135deg, var(--bog-deep) 0%, var(--mire-rich) 50%, var(--vampire-veil) 100%);
  --gradient-shroud: linear-gradient(180deg, rgba(10,10,15,0) 0%, rgba(10,10,15,0.8) 100%);
  --gradient-curse: linear-gradient(135deg, var(--blood-dried) 0%, var(--crimson-spell) 100%);
  --gradient-amber: linear-gradient(135deg, #d4a527 0%, #f0c540 100%);

  /* Shadows */
  --shadow-crypt: 0 10px 40px rgba(0, 0, 0, 0.6);
  --shadow-vampire: 0 8px 32px rgba(91, 45, 107, 0.3);
  --shadow-emerald: 0 8px 32px rgba(75, 159, 107, 0.2);
}

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

/* Base Body - Shared Background */
body {
  font-family: 'Mate', serif;
  background: var(--void-black);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(45, 74, 45, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(45, 26, 58, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(20, 20, 25, 0.8) 0%, transparent 70%);
  background-attachment: fixed;
  color: var(--text-spectral);
  line-height: 1.6;
  min-height: 100vh;
}

/* Headings Font */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Unicase', sans-serif;
}

/* Container */
.vessel-bound {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Links */
.arcane-link {
  color: var(--crypt-glow);
  text-decoration: none;
  transition: color 0.3s ease;
}

.arcane-link:hover {
  color: var(--mystic-shroud);
}

/* Buttons */
.curse-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--gradient-curse);
  color: var(--text-spectral);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(138, 42, 58, 0.4);
}

.curse-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(138, 42, 58, 0.6);
  background: linear-gradient(135deg, var(--crimson-spell) 0%, var(--ruby-glow) 100%);
}

.curse-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--crypt-glow);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--crypt-glow);
  text-decoration: none;
}

.curse-btn-secondary:hover {
  background: var(--crypt-glow);
  color: var(--void-black);
  transform: translateY(-2px);
}

.curse-btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--gradient-amber);
  color: var(--void-black);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(212, 165, 39, 0.4);
}

.curse-btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 165, 39, 0.6);
}

/* Section Spacing */
.fane-section {
  padding: 80px 0;
}

.realm-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mire-rich), transparent);
  margin: 0;
}

/* Section Titles */
.obelisk-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-spectral);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(107, 159, 107, 0.3);
}

.rune-subtitle {
  font-size: 18px;
  color: var(--text-whisper);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

/* Cards */
.tomb-card {
  background: var(--gradient-bloom);
  border: 1px solid rgba(75, 159, 107, 0.2);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow-emerald);
  transition: all 0.3s ease;
}

.tomb-card:hover {
  border-color: var(--crypt-glow);
  box-shadow: var(--shadow-vampire);
  transform: translateY(-5px);
}

/* Inputs */
.void-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--stone-dark);
  border: 1px solid var(--tomb-mid);
  border-radius: 4px;
  color: var(--text-spectral);
  font-size: 16px;
  transition: all 0.3s ease;
}

.void-input:focus {
  outline: none;
  border-color: var(--crypt-glow);
  box-shadow: 0 0 20px rgba(75, 159, 107, 0.2);
}

.void-input::placeholder {
  color: var(--text-whisper);
}

/* Animations */
@keyframes spectral-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ember-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.spectral-drift {
  animation: spectral-float 4s ease-in-out infinite;
}

.ember-glow {
  animation: ember-pulse 2s ease-in-out infinite;
}

/* ================================================
   Shroud Navigation - Header & Footer Styles
   ================================================ */

/* Header */
.ghoul-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10,10,15,0.98) 0%, rgba(10,10,15,0.9) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(75, 159, 107, 0.15);
}

.crypt-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.nether-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.spell-icon {
  width: 50px;
  height: 50px;
  background-image: url('../image/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  overflow: hidden;
}

.coven-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-spectral);
  text-decoration: none;
}

.coven-name:hover {
  color: var(--crypt-glow);
}

/* Navigation Links */
.mist-nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.shade-link {
  color: var(--text-ghost);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.shade-link:hover {
  color: var(--crypt-glow);
}

.shade-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--crypt-glow);
  transition: width 0.3s ease;
}

.shade-link:hover::after {
  width: 100%;
}

.shade-link.active {
  color: var(--ruby-glow);
}

.shade-link.active::after {
  background: var(--ruby-glow);
  width: 100%;
}

/* Footer */
.tomb-footer {
  background: linear-gradient(180deg, var(--crypt-gray) 0%, var(--void-black) 100%);
  border-top: 1px solid rgba(75, 159, 107, 0.15);
  padding: 60px 0 30px;
}

.footer-banshee-warning {
  background: var(--gradient-curse);
  border: 2px solid var(--ruby-glow);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 40px;
}

.banshee-text {
  color: var(--text-spectral);
  font-size: 16px;
  font-weight: 500;
}

.footer-grave-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.crypt-section h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--crypt-glow);
  margin-bottom: 20px;
}

.crypt-links {
  list-style: none;
}

.crypt-links li {
  margin-bottom: 12px;
}

.crypt-links a {
  color: var(--text-whisper);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.crypt-links a:hover {
  color: var(--mystic-shroud);
}

.footer-abyss {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(75, 159, 107, 0.1);
}

.void-copyright {
  color: var(--text-whisper);
  font-size: 14px;
}

.void-copyright a {
  color: var(--crypt-glow);
  text-decoration: none;
}

.void-copyright a:hover {
  color: var(--mystic-shroud);
}

/* Mobile Menu */
.wraith-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.bone-line {
  width: 25px;
  height: 2px;
  background: var(--text-spectral);
  transition: all 0.3s ease;
}

/* ================================================
   Graveyard - Homepage Sections Styles
   ================================================ */

/* Hero Section */
.necro-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(to bottom, rgba(10,10,15,0.85), rgba(10,10,15,0.95)),
    url('../image/bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.necro-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(45, 74, 45, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(45, 26, 58, 0.2) 0%, transparent 50%);
  animation: ember-pulse 4s ease-in-out infinite;
}

.hero-spirit-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 20px 80px;
}

.doom-title {
  font-size: 64px;
  font-weight: 800;
  color: var(--text-spectral);
  margin-bottom: 20px;
  text-shadow:
    0 0 40px rgba(75, 159, 107, 0.5),
    0 4px 20px rgba(0, 0, 0, 0.8);
  line-height: 1.1;
}

.soul-subtitle {
  font-size: 20px;
  color: var(--text-ghost);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-arcane-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* About Section */
.fane-about {
  background: var(--gradient-shroud);
}

.about-tomb-scroll {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.grimoire-text {
  font-size: 18px;
  color: var(--text-ghost);
  line-height: 1.8;
}

/* Stats Section */
.catacomb-stats {
  background: var(--gradient-bloom);
}

.graveyard-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.tomb-stat {
  text-align: center;
  padding: 40px 20px;
}

.soul-number {
  font-size: 64px;
  font-weight: 800;
  background: var(--gradient-amber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.tomb-label {
  font-size: 16px;
  color: var(--text-whisper);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Features Section */
.blessing-realm {
  background: var(--void-black);
}

.altar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.relic-card {
  background: linear-gradient(135deg, var(--stone-dark) 0%, var(--tomb-mid) 100%);
  border: 1px solid rgba(75, 159, 107, 0.2);
  border-radius: 8px;
  padding: 35px;
  text-align: center;
  transition: all 0.3s ease;
}

.relic-card:hover {
  border-color: var(--crypt-glow);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(75, 159, 107, 0.2);
}

.totem-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-bloom);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.totem-icon img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.artifact-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-spectral);
  margin-bottom: 12px;
}

.charm-text {
  color: var(--text-whisper);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Games Section */
.game-necropolis {
  background: linear-gradient(180deg, var(--void-black) 0%, var(--crypt-gray) 100%);
}

.sarcophagus-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.coffin-game {
  background: var(--gradient-bloom);
  width: 500px;
  border: 1px solid rgba(75, 159, 107, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.coffin-game:hover {
  border-color: var(--mystic-shroud);
  box-shadow: var(--shadow-vampire);
  transform: translateY(-5px);
}

.phantom-frame {
  width: 100%;
  height: 300px;
  background-image: url('../image/game_banner.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.phantom-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(10,10,15,0.3), rgba(10,10,15,0.6));
  transition: background 0.3s ease;
}

.coffin-game:hover .phantom-frame::before {
  background: linear-gradient(to bottom, rgba(10,10,15,0.1), rgba(10,10,15,0.3));
}

.game-grave-info {
  padding: 25px;
  text-align: center;
}

.spirit-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-spectral);
  margin-bottom: 15px;
}

/* ================================================
   Crypt Chamber - Game Page & Contact Styles
   ================================================ */

/* Game Page */
.crypt-chamber {
  min-height: 100vh;
  padding-top: 100px;
}

.summoning-ground {
  background: var(--crypt-gray);
  border: 1px solid rgba(75, 159, 107, 0.2);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
}

.ritual-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-spectral);
  text-align: center;
  margin-bottom: 30px;
  text-shadow: 0 0 30px rgba(75, 159, 107, 0.3);
}

.portal-frame-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--void-black);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-crypt);
  border: 1px solid rgba(75, 159, 107, 0.2);
}

.nether-portal {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

.game-back-nav {
  text-align: center;
  margin-top: 30px;
}

/* Contact Page */
.void-contact {
  min-height: 100vh;
  padding-top: 100px;
}

.seance-chamber {
  max-width: 900px;
  margin: 0 auto;
}

.messenger-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-spectral);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 0 30px rgba(75, 159, 107, 0.3);
}

.contact-graveyard {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.spirit-tomb-info {
  background: var(--gradient-bloom);
  border: 1px solid rgba(75, 159, 107, 0.2);
  border-radius: 12px;
  padding: 35px;
}

.info-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--crypt-glow);
  margin-bottom: 25px;
}

.ghost-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.specter-details h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-spectral);
  margin-bottom: 5px;
}

.specter-details p {
  color: var(--text-whisper);
  font-size: 14px;
}

.specter-details a {
  color: var(--crypt-glow);
  text-decoration: none;
}

.specter-details a:hover {
  color: var(--mystic-shroud);
}

/* Contact Form */
.summon-form {
  background: var(--gradient-bloom);
  border: 1px solid rgba(75, 159, 107, 0.2);
  border-radius: 12px;
  padding: 35px;
}

.form-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--crypt-glow);
  margin-bottom: 25px;
}

.void-field-group {
  margin-bottom: 20px;
}

.void-field-group label {
  display: block;
  color: var(--text-ghost);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.void-field-group textarea.void-input {
  min-height: 150px;
  resize: vertical;
}

/* Policy Pages */
.grimoire-scroll {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 60px;
}

.scroll-container {
  max-width: 900px;
  margin: 0 auto;
}

.rune-heading {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-spectral);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 0 30px rgba(75, 159, 107, 0.3);
}

.arcane-text-block {
  background: var(--gradient-bloom);
  border: 1px solid rgba(75, 159, 107, 0.2);
  border-radius: 12px;
  padding: 40px;
}

.arcane-text-block h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--crypt-glow);
  margin-top: 30px;
  margin-bottom: 15px;
}

.arcane-text-block h2:first-child {
  margin-top: 0;
}

.arcane-text-block p {
  color: var(--text-ghost);
  line-height: 1.8;
  margin-bottom: 15px;
}

.arcane-text-block ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.arcane-text-block ul li {
  color: var(--text-ghost);
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
  line-height: 1.6;
}

.arcane-text-block ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--crypt-glow);
}

/* ================================================
   Spirit Popup - Cookie Consent Styles
   ================================================ */

/* Cookie Consent Banner */
.spirit-consent-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spirit-consent-overlay.active {
  transform: translateY(0);
}

.phantom-consent-box {
  background: linear-gradient(135deg, var(--crypt-gray) 0%, var(--void-black) 100%);
  border: 1px solid rgba(75, 159, 107, 0.3);
  border-radius: 12px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.consent-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.consent-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-spectral);
}

.consepulcher-text {
  color: var(--text-whisper);
  line-height: 1.6;
  margin-bottom: 25px;
}

.consepulcher-text a {
  color: var(--crypt-glow);
  text-decoration: none;
}

.consepulcher-text a:hover {
  color: var(--mystic-shroud);
  text-decoration: underline;
}

.consepulcher-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Cookie Settings Modal */
.vampire-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.vampire-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-void-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(5px);
}

.crypt-modal-container {
  position: relative;
  background: linear-gradient(135deg, var(--crypt-gray) 0%, var(--stone-dark) 100%);
  border: 1px solid rgba(75, 159, 107, 0.3);
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-crypt);
}

.modal-seal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(75, 159, 107, 0.2);
}

.seal-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-spectral);
}

.tomb-ward {
  width: 40px;
  height: 40px;
  background: var(--tomb-mid);
  border: none;
  border-radius: 8px;
  color: var(--text-ghost);
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
}

.tomb-ward:hover {
  background: var(--crimson-spell);
  color: var(--text-spectral);
}

.spirit-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  background: var(--void-black);
  border: 1px solid rgba(75, 159, 107, 0.15);
  border-radius: 8px;
  margin-bottom: 15px;
}

.spirit-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-spectral);
  margin-bottom: 5px;
}

.spirit-info p {
  font-size: 13px;
  color: var(--text-whisper);
}

/* Custom Toggle Switch */
.wraith-toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.wraith-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--tomb-mid);
  border-radius: 13px;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--text-whisper);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.wraith-toggle-switch input:checked + .toggle-slider {
  background: var(--crypt-glow);
}

.wraith-toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
  background: var(--void-black);
}

.wraith-toggle-switch.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wraith-toggle-switch.disabled input {
  pointer-events: none;
}

.modal-rites {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.modal-rites button {
  flex: 1;
}

/* Contact Success Modal - Side Notification */
#contactSuccessModal {
  position: fixed;
  top: auto;
  bottom: 20px;
  left: auto;
  right: 20px;
  z-index: 10001;
  display: block;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#contactSuccessModal.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

#contactSuccessModal .modal-void-backdrop {
  display: none;
}

#contactSuccessModal .crypt-modal-container {
  background: linear-gradient(135deg, var(--crypt-gray) 0%, var(--stone-dark) 100%);
  border: 1px solid var(--crypt-glow);
  border-radius: 12px;
  padding: 20px;
  max-width: 320px;
  width: 100%;
  max-height: none;
  box-shadow: 0 10px 40px rgba(75, 159, 107, 0.3);
}

#contactSuccessModal .modal-seal {
  margin-bottom: 15px;
  padding-bottom: 15px;
}

#contactSuccessModal .seal-title {
  font-size: 18px;
}

#contactSuccessModal .consepulcher-text {
  font-size: 14px;
  margin-bottom: 15px;
}

#contactSuccessModal .modal-rites {
  margin-top: 15px;
}

#contactSuccessModal .modal-rites button {
  flex: none;
  width: 100%;
}

/* ================================================
   Mobile Responsive Styles
   ================================================ */

@media (max-width: 768px) {
  /* Mobile Menu */
  .wraith-toggle {
    display: flex;
  }

  .mist-nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--crypt-gray);
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mist-nav-list.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .footer-grave-grid {
    grid-template-columns: 1fr;
  }

  /* Hero Section */
  .doom-title {
    font-size: 36px;
  }

  .soul-subtitle {
    font-size: 16px;
  }

  .graveyard-counts {
    grid-template-columns: 1fr;
  }

  .hero-arcane-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .altar-grid {
    grid-template-columns: 1fr;
  }

  /* Game & Contact Pages */
  .contact-graveyard {
    grid-template-columns: 1fr;
  }

  .ritual-title,
  .messenger-title,
  .rune-heading {
    font-size: 28px;
  }

  .nether-portal {
    height: 400px;
  }

  .spirit-tomb-info,
  .summon-form,
  .arcane-text-block {
    padding: 25px;
  }

  /* Cookie Consent */
  .phantom-consent-box,
  .crypt-modal-container {
    padding: 20px;
  }

  .consepulcher-actions {
    flex-direction: column;
  }

  .consepulcher-actions .curse-btn-primary,
  .consepulcher-actions .curse-btn-secondary {
    width: 100%;
  }

  .modal-rites {
    flex-direction: column;
  }

  /* Contact Success Modal on mobile */
  #contactSuccessModal {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }

  #contactSuccessModal .crypt-modal-container {
    max-width: 100%;
  }
}
