/* ==========================================
   RSRealm — Dark Fantasy Landing Page CSS
   ========================================== */

:root {
  --gold: #c8aa46; --gold-light: #f0d878; --gold-dark: #8a6f1e;
  --parchment: #f0e4c4;
  --green: #4ade80; --green-dark: #166534;
  --iron: #b0b3b8; --iron-dark: #4a4d52;
  --red: #ef4444; --red-dark: #7f1d1d;
  --purple: #a78bfa;
  --bg-deepest: #0e0a06;
  --bg-deep: #131008;
  --bg-mid: #18140c;
  --bg-card: #1a1610;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg-deepest); font-family: 'Crimson Text', Georgia, serif; color: var(--parchment); overflow-x: hidden; }

/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--bg-deepest); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-text { font-family: 'Cinzel Decorative', serif; font-size: 14px; letter-spacing: 8px; text-transform: uppercase; color: var(--gold-dark); animation: pulse 1.5s ease-in-out infinite; }
.preloader-bar { width: 200px; height: 2px; background: rgba(200,170,70,0.15); margin-top: 20px; border-radius: 2px; overflow: hidden; }
.preloader-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); animation: fillBar 2s ease-in-out forwards; }
@keyframes pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes fillBar { from { width: 0; } to { width: 100%; } }

/* Shared */
.noise { position: absolute; inset: 0; z-index: 5; opacity: 0.02; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; }
.vignette { position: absolute; inset: 0; z-index: 4; background: radial-gradient(ellipse 75% 65% at 50% 50%, transparent 35%, rgba(14,10,6,0.6) 100%); pointer-events: none; }
.cursor-glow { position: fixed; width: 200px; height: 200px; border-radius: 50%; pointer-events: none; z-index: 9998; background: radial-gradient(circle, rgba(200,170,70,0.035), transparent 70%); transform: translate(-50%, -50%); transition: opacity 0.3s; opacity: 0; }
body:hover .cursor-glow { opacity: 1; }

.orn-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 28px; }
.orn-line { width: 80px; height: 1px; background: linear-gradient(90deg, transparent, rgba(200,170,70,0.35)); opacity: 0; animation: lineG 1s ease-out forwards; animation-play-state: paused; }
.orn-line:last-child { background: linear-gradient(90deg, rgba(200,170,70,0.35), transparent); }
.orn-diamond { width: 10px; height: 10px; border: 1px solid var(--gold); transform: rotate(45deg); position: relative; opacity: 0; animation: diaR 0.6s ease-out forwards; animation-play-state: paused; }
.orn-diamond::after { content: ''; position: absolute; inset: 2px; background: var(--gold); }
@keyframes lineG { from { opacity: 0; width: 0; } to { opacity: 1; width: 80px; } }
@keyframes diaR { from { opacity: 0; transform: rotate(45deg) scale(0); } to { opacity: 1; transform: rotate(45deg) scale(1); } }

.sec-title {
  font-family: 'Cinzel Decorative', serif; font-weight: 700;
  font-size: clamp(26px, 4vw, 48px); letter-spacing: 6px; text-transform: uppercase;
  background: linear-gradient(180deg, var(--parchment) 0%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease;
}
.sec-sub {
  font-family: 'Crimson Text', serif; font-style: italic; font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(240,228,196,0.45); margin-top: 12px; letter-spacing: 2px;
  opacity: 0; transform: translateY(10px); transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
.sec-header.visible .sec-title, .sec-header.visible .sec-sub { opacity: 1; transform: translateY(0); }
.sec-header.visible .orn-line, .sec-header.visible .orn-diamond { animation-play-state: running; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: 200% 200%; } 100% { background-position: -200% -200%; } }

/* ==============================
   HERO + LOGIN (SPLIT)
   ============================== */
.hero-login {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; padding: 40px 32px;
}
.hero-login .hero-sky {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 20%, rgba(200,170,70,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 30% 70%, rgba(120,60,30,0.07) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 70% 70%, rgba(50,50,90,0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, #1a1408 40%, var(--bg-mid) 70%, var(--bg-deepest) 100%);
  animation: skyShift 20s ease-in-out infinite alternate;
}
@keyframes skyShift { 0% { filter: brightness(1); } 50% { filter: brightness(1.12); } 100% { filter: brightness(0.95); } }
.stars-canvas { position: absolute; inset: 0; z-index: 1; }
.light-rays { position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 100%; height: 100%; z-index: 2; overflow: hidden; pointer-events: none; }
.ray { position: absolute; top: 0; width: 2px; height: 100%; background: linear-gradient(180deg, rgba(200,170,70,0.1), transparent 70%); transform-origin: top center; }
.fog { position: absolute; bottom: 0; left: -10%; width: 120%; height: 40%; z-index: 3; opacity: 0.3; background: radial-gradient(ellipse at center bottom, rgba(200,170,70,0.1), transparent 70%); animation: fogD 15s ease-in-out infinite alternate; }
.fog-2 { animation-delay: -7s; animation-duration: 20s; opacity: 0.2; height: 30%; background: radial-gradient(ellipse at 30% bottom, rgba(180,160,80,0.08), transparent 60%); }
@keyframes fogD { 0% { transform: translateX(-3%) scaleY(1); } 100% { transform: translateX(3%) scaleY(1.1); } }

.hero-split {
  position: relative; z-index: 10; max-width: 1100px; width: 100%;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center;
}
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; text-align: center; max-width: 480px; }
  .hero-login { min-height: auto; padding: 80px 20px 60px; }
}

.hero-brand { opacity: 0; animation: fadeUp 1.2s ease-out 2.3s forwards; }

.hero-title {
  font-family: 'Cinzel Decorative', serif; font-weight: 900;
  font-size: clamp(32px, 5vw, 60px); letter-spacing: 4px; line-height: 1.05; text-transform: uppercase;
  background: linear-gradient(180deg, #f5e6a8 0%, var(--gold) 30%, #a07c20 70%, #6b5012 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: drop-shadow(0 4px 20px rgba(200,170,70,0.3)); margin-bottom: 14px;
}
.hero-subtitle {
  font-family: 'Cinzel', serif; font-weight: 400; font-size: clamp(11px, 1.6vw, 15px);
  letter-spacing: 10px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 24px;
}
.hero-tagline {
  font-family: 'Crimson Text', serif; font-style: italic; font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(240,228,196,0.45); letter-spacing: 1px; margin-bottom: 32px;
}

/* Hero player count */
.hero-player-count {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(200,170,70,0.5); margin-bottom: 20px;
}
.hero-player-count .count-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px var(--green); animation: pulse 2s ease-in-out infinite;
}

.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-cta-row { justify-content: center; } }

.cta-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 8px;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; text-decoration: none; cursor: pointer; transition: all 0.4s;
  border: 1px solid rgba(200,170,70,0.2); color: rgba(240,228,196,0.55); background: transparent;
}
.cta-link:hover { border-color: rgba(200,170,70,0.4); color: var(--parchment); background: rgba(200,170,70,0.06); text-decoration: none; }
.cta-link svg { width: 14px; height: 14px; transition: transform 0.3s; }
.cta-link:hover svg { transform: translateY(2px); }

/* Login */
.login-wrapper { opacity: 0; animation: fadeUp 1.2s ease-out 2.6s forwards; }

.login-card {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(200,170,70,0.15);
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200,170,70,0.06) 0%, transparent 50%),
    linear-gradient(180deg, rgba(24,20,14,0.97), rgba(18,15,10,0.98));
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 80px rgba(0,0,0,0.4), 0 0 40px rgba(200,170,70,0.04);
  transition: border-color 0.5s, box-shadow 0.5s;
}
.login-card:hover { border-color: rgba(200,170,70,0.25); box-shadow: 0 30px 100px rgba(0,0,0,0.5), 0 0 60px rgba(200,170,70,0.06); }

.login-card-shimmer { position: absolute; inset: 0; z-index: 0; opacity: 0; background: linear-gradient(135deg, transparent 40%, rgba(200,170,70,0.02) 50%, transparent 60%); background-size: 200% 200%; transition: opacity 0.5s; }
.login-card:hover .login-card-shimmer { opacity: 1; animation: shimmer 3s ease-in-out infinite; }

.login-card-inner { position: relative; z-index: 2; padding: 44px 40px 40px; }
@media (max-width: 600px) { .login-card-inner { padding: 32px 24px 28px; } }

.login-icon { width: 52px; height: 52px; margin: 0 auto 20px; position: relative; }
.login-icon-ring { position: absolute; inset: -6px; border-radius: 50%; border: 1px solid transparent; border-top-color: rgba(200,170,70,0.35); animation: ringR 8s linear infinite; }
@keyframes ringR { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.login-icon-glow { position: absolute; inset: 6px; border-radius: 50%; background: var(--gold); filter: blur(12px); opacity: 0.18; animation: iconP 4s ease-in-out infinite; }
@keyframes iconP { 0%,100% { opacity: 0.15; transform: scale(1); } 50% { opacity: 0.28; transform: scale(1.1); } }
.login-icon svg { position: relative; width: 52px; height: 52px; color: var(--gold); filter: drop-shadow(0 0 12px rgba(200,170,70,0.4)); }

.login-heading {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 22px; letter-spacing: 3px;
  text-transform: uppercase; text-align: center; margin-bottom: 6px;
  background: linear-gradient(180deg, var(--parchment), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.login-subheading {
  font-family: 'Crimson Text', serif; font-style: italic; font-size: 14px;
  color: rgba(240,228,196,0.45); text-align: center; letter-spacing: 2px; margin-bottom: 32px;
}

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-family: 'Cinzel', serif; font-weight: 600; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: rgba(240,228,196,0.5); margin-bottom: 7px; }
.form-input {
  width: 100%; padding: 13px 16px; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,170,70,0.13); border-radius: 8px;
  font-family: 'Crimson Text', serif; font-size: 16px; color: var(--parchment);
  letter-spacing: 1px; outline: none; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.form-input::placeholder { color: rgba(240,228,196,0.25); }
.form-input:focus { border-color: rgba(200,170,70,0.4); background: rgba(255,255,255,0.06); box-shadow: 0 0 20px rgba(200,170,70,0.06), inset 0 0 20px rgba(200,170,70,0.03); }

.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.remember-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: 'Crimson Text', serif; font-size: 14px; color: rgba(240,228,196,0.5); transition: color 0.3s; }
.remember-label:hover { color: rgba(240,228,196,0.7); }
.remember-check { appearance: none; width: 15px; height: 15px; border: 1px solid rgba(200,170,70,0.25); border-radius: 3px; background: rgba(255,255,255,0.03); cursor: pointer; transition: all 0.3s; position: relative; }
.remember-check:checked { border-color: var(--gold); background: rgba(200,170,70,0.18); }
.remember-check:checked::after { content: '\2713'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--gold); font-weight: bold; }
.forgot-link { font-family: 'Crimson Text', serif; font-size: 13px; color: rgba(200,170,70,0.45); text-decoration: none; transition: color 0.3s; }
.forgot-link:hover { color: var(--gold); }

.login-btn {
  width: 100%; padding: 15px; border: none; border-radius: 8px;
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 14px;
  letter-spacing: 5px; text-transform: uppercase; cursor: pointer;
  background: linear-gradient(180deg, #a88c24, #806c1a); color: var(--parchment);
  position: relative; overflow: hidden;
  box-shadow: 0 6px 30px rgba(138,111,30,0.45), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: all 0.4s;
}
.login-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transition: left 0.6s; }
.login-btn:hover::before { left: 100%; }
.login-btn:hover { background: linear-gradient(180deg, #c0a02c, #96801e); box-shadow: 0 8px 40px rgba(200,170,70,0.4), inset 0 1px 0 rgba(255,255,255,0.15); transform: translateY(-2px); }

.login-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.login-divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(200,170,70,0.12), transparent); }
.login-divider-text { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: rgba(200,170,70,0.3); white-space: nowrap; }

.register-btn {
  width: 100%; padding: 13px; border: 1px solid rgba(200,170,70,0.15); border-radius: 8px;
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 12px;
  letter-spacing: 4px; text-transform: uppercase; cursor: pointer;
  background: transparent; color: rgba(240,228,196,0.55); transition: all 0.4s;
}
.register-btn:hover { border-color: rgba(200,170,70,0.35); color: var(--parchment); background: rgba(200,170,70,0.05); box-shadow: 0 0 20px rgba(200,170,70,0.06); }

/* Login error/success messages */
.login-error {
  padding: 10px 14px; margin-bottom: 16px; border-radius: 8px;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25);
  font-family: 'Crimson Text', serif; font-size: 14px; color: #ef4444;
  text-align: center;
}
.login-success {
  padding: 10px 14px; margin-bottom: 16px; border-radius: 8px;
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.25);
  font-family: 'Crimson Text', serif; font-size: 14px; color: #4ade80;
  text-align: center;
}

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; animation: fadeUp 1s ease-out 3.5s forwards;
}
.scroll-hint-text { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 5px; text-transform: uppercase; color: rgba(200,170,70,0.3); }
.scroll-hint-arrow { width: 16px; height: 16px; border-right: 1px solid rgba(200,170,70,0.3); border-bottom: 1px solid rgba(200,170,70,0.3); transform: rotate(45deg); animation: sBounce 2s ease-in-out infinite; }
@keyframes sBounce { 0%,100% { transform: rotate(45deg) translateY(0); opacity: 0.4; } 50% { transform: rotate(45deg) translateY(5px); opacity: 0.8; } }

/* ==============================
   CHOOSE SECTION
   ============================== */
.choose-section { position: relative; padding: 80px 24px 100px; display: flex; flex-direction: column; align-items: center; }
.choose-section .section-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(200,170,70,0.04) 0%, transparent 60%), linear-gradient(180deg, var(--bg-deepest), var(--bg-deep) 10%, var(--bg-mid) 50%, var(--bg-deepest)); z-index: 0; }
.section-content { position: relative; z-index: 10; max-width: 1300px; width: 100%; }
.sec-header { text-align: center; margin-bottom: 64px; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 960px) { .cards-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 36px; } }

.game-card { position: relative; border-radius: 16px; overflow: visible; cursor: pointer; opacity: 0; transform: translateY(60px); transition: opacity 0.8s ease, transform 0.8s ease; }
.game-card.visible { opacity: 1; transform: translateY(0); }
.game-card:nth-child(1) { transition-delay: 0.1s; }
.game-card:nth-child(2) { transition-delay: 0.25s; }
.game-card:nth-child(3) { transition-delay: 0.4s; }

.card-wrap { position: relative; border-radius: 16px; overflow: hidden; transition: transform 0.6s cubic-bezier(0.23,1,0.32,1), box-shadow 0.6s; }
.game-card:hover .card-wrap { transform: translateY(-10px) scale(1.012); }

.card-ambient { position: absolute; inset: -40px; border-radius: 60px; z-index: -1; opacity: 0; transition: opacity 0.6s; filter: blur(40px); }
.game-card:hover .card-ambient { opacity: 1; }
.card-regular .card-ambient { background: radial-gradient(circle, rgba(74,222,128,0.15), transparent 70%); }
.card-ironman .card-ambient { background: radial-gradient(circle, rgba(176,179,184,0.12), transparent 70%); }
.card-hcim .card-ambient { background: radial-gradient(circle, rgba(239,68,68,0.18), transparent 70%); }

.card-bg-layer { position: absolute; inset: 0; z-index: 0; }
.card-regular .card-bg-layer { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(74,222,128,0.1) 0%, transparent 60%), linear-gradient(180deg, #122210, #0f1a0e 50%, #0d150b); }
.card-ironman .card-bg-layer { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(176,179,184,0.1) 0%, transparent 60%), linear-gradient(180deg, #161719, #131416 50%, #101112); }
.card-hcim .card-bg-layer { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(239,68,68,0.12) 0%, transparent 60%), linear-gradient(180deg, #201010, #1a0e0e 50%, #140909); }

.card-shimmer { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 0.5s; background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.025) 50%, transparent 60%); background-size: 200% 200%; }
.game-card:hover .card-shimmer { opacity: 1; animation: shimmer 3s ease-in-out infinite; }

.card-frame { position: absolute; inset: 0; border-radius: 16px; z-index: 5; pointer-events: none; transition: all 0.5s; }
.card-regular .card-frame { border: 1px solid rgba(74,222,128,0.12); }
.card-ironman .card-frame { border: 1px solid rgba(176,179,184,0.12); }
.card-hcim .card-frame { border: 1px solid rgba(239,68,68,0.14); }
.card-regular:hover .card-frame { border-color: rgba(74,222,128,0.3); }
.card-ironman:hover .card-frame { border-color: rgba(176,179,184,0.3); }
.card-hcim:hover .card-frame { border-color: rgba(239,68,68,0.3); }
.card-regular:hover .card-wrap { box-shadow: 0 28px 70px rgba(22,101,52,0.3), 0 0 50px rgba(74,222,128,0.07); }
.card-ironman:hover .card-wrap { box-shadow: 0 28px 70px rgba(30,30,35,0.45), 0 0 50px rgba(176,179,184,0.05); }
.card-hcim:hover .card-wrap { box-shadow: 0 28px 70px rgba(127,29,29,0.35), 0 0 50px rgba(239,68,68,0.08); }

.card-inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 28px 40px; min-height: 540px; }

.icon-area { position: relative; width: 110px; height: 110px; margin-bottom: 22px; }
.icon-ring-outer { position: absolute; inset: -8px; border-radius: 50%; border: 1px solid transparent; animation: ringR 10s linear infinite; }
.icon-ring-inner { position: absolute; inset: 4px; border-radius: 50%; border: 1px solid transparent; animation: ringR 7s linear infinite reverse; }
.card-regular .icon-ring-outer { border-top-color: rgba(74,222,128,0.35); border-right-color: rgba(74,222,128,0.12); }
.card-ironman .icon-ring-outer { border-top-color: rgba(176,179,184,0.35); border-right-color: rgba(176,179,184,0.12); }
.card-hcim .icon-ring-outer { border-top-color: rgba(239,68,68,0.45); border-right-color: rgba(239,68,68,0.12); }
.card-regular .icon-ring-inner { border-bottom-color: rgba(74,222,128,0.22); }
.card-ironman .icon-ring-inner { border-bottom-color: rgba(176,179,184,0.22); }
.card-hcim .icon-ring-inner { border-bottom-color: rgba(239,68,68,0.28); }

.icon-glow { position: absolute; inset: 10px; border-radius: 50%; filter: blur(18px); animation: iconP 4s ease-in-out infinite; }
.card-regular .icon-glow { background: var(--green); }
.card-ironman .icon-glow { background: var(--iron); }
.card-hcim .icon-glow { background: var(--red); }

.icon-svg { position: absolute; inset: 14px; display: flex; align-items: center; justify-content: center; }
.icon-svg svg { width: 60px; height: 60px; filter: drop-shadow(0 0 14px currentColor); transition: filter 0.4s, transform 0.4s; }
.game-card:hover .icon-svg svg { filter: drop-shadow(0 0 22px currentColor); transform: scale(1.07); }
.card-regular .icon-svg svg { color: var(--green); }
.card-ironman .icon-svg svg { color: var(--iron); }
.card-hcim .icon-svg svg { color: var(--red); }

.card-label { font-family: 'Cinzel', serif; font-weight: 600; font-size: 10px; letter-spacing: 7px; text-transform: uppercase; opacity: 0.45; margin-bottom: 8px; }
.card-title { font-family: 'Cinzel Decorative', serif; font-weight: 900; font-size: clamp(22px, 2.5vw, 28px); letter-spacing: 3px; text-transform: uppercase; line-height: 1.2; margin-bottom: 16px; transition: letter-spacing 0.4s; }
.game-card:hover .card-title { letter-spacing: 5px; }
.card-regular .card-title { background: linear-gradient(180deg, #b8ffb8, var(--green), var(--green-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.card-ironman .card-title { background: linear-gradient(180deg, #e8eaee, var(--iron), var(--iron-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.card-hcim .card-title { background: linear-gradient(180deg, #ffaaaa, var(--red), var(--red-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-div-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.card-div-line { width: 36px; height: 1px; }
.card-regular .card-div-line { background: linear-gradient(90deg, transparent, rgba(74,222,128,0.45)); }
.card-regular .card-div-line:last-child { background: linear-gradient(90deg, rgba(74,222,128,0.45), transparent); }
.card-ironman .card-div-line { background: linear-gradient(90deg, transparent, rgba(176,179,184,0.45)); }
.card-ironman .card-div-line:last-child { background: linear-gradient(90deg, rgba(176,179,184,0.45), transparent); }
.card-hcim .card-div-line { background: linear-gradient(90deg, transparent, rgba(239,68,68,0.45)); }
.card-hcim .card-div-line:last-child { background: linear-gradient(90deg, rgba(239,68,68,0.45), transparent); }
.card-div-dot { width: 5px; height: 5px; transform: rotate(45deg); }
.card-regular .card-div-dot { background: var(--green); opacity: 0.55; }
.card-ironman .card-div-dot { background: var(--iron); opacity: 0.55; }
.card-hcim .card-div-dot { background: var(--red); opacity: 0.55; }

.card-desc { font-size: 15.5px; line-height: 1.7; color: rgba(240,228,196,0.55); max-width: 280px; margin-bottom: 22px; }
.card-features { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; width: 100%; max-width: 260px; flex-grow: 1; }
.feat { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.5px; color: rgba(240,228,196,0.48); transition: color 0.3s; }
.game-card:hover .feat { color: rgba(240,228,196,0.6); }
.feat-i { width: 16px; height: 16px; flex-shrink: 0; }
.feat-i svg { width: 13px; height: 13px; }
.card-regular .feat-i svg { color: rgba(74,222,128,0.55); }
.card-ironman .feat-i svg { color: rgba(176,179,184,0.55); }
.card-hcim .feat-i svg { color: rgba(239,68,68,0.55); }

.play-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 46px; border: none; border-radius: 8px; font-family: 'Cinzel', serif; font-weight: 700; font-size: 13px; letter-spacing: 4px; text-transform: uppercase; cursor: pointer; overflow: hidden; transition: all 0.4s; position: relative; }
.play-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transition: left 0.6s; }
.play-btn:hover::before { left: 100%; }
.play-btn::after { content: ''; position: absolute; inset: 0; border-radius: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.12); pointer-events: none; }
.card-regular .play-btn { background: linear-gradient(180deg, #3a9628, #1a6a12); color: #d0ffd0; box-shadow: 0 6px 28px rgba(22,101,52,0.5); }
.card-regular .play-btn:hover { box-shadow: 0 8px 36px rgba(74,222,128,0.3); transform: translateY(-2px); }
.card-ironman .play-btn { background: linear-gradient(180deg, #5a5d62, #35383d); color: #e0e3e8; box-shadow: 0 6px 28px rgba(40,42,46,0.6); }
.card-ironman .play-btn:hover { box-shadow: 0 8px 36px rgba(176,179,184,0.2); transform: translateY(-2px); }
.card-hcim .play-btn { background: linear-gradient(180deg, #c41818, #7f1212); color: #ffe0e0; box-shadow: 0 6px 28px rgba(127,29,29,0.5); }
.card-hcim .play-btn:hover { box-shadow: 0 8px 36px rgba(239,68,68,0.3); transform: translateY(-2px); }
.btn-text { position: relative; z-index: 2; }
.btn-arrow { position: relative; z-index: 2; width: 14px; height: 14px; transition: transform 0.3s; }
.play-btn:hover .btn-arrow { transform: translateX(3px); }

.embers { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; border-radius: 16px; opacity: 0; transition: opacity 0.5s; }
.game-card:hover .embers { opacity: 1; }
.ember { position: absolute; width: 2px; height: 2px; border-radius: 50%; bottom: 0; animation: emberF 3s ease-out infinite; }
@keyframes emberF { 0% { opacity: 0; transform: translateY(0) scale(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-400px) translateX(var(--drift)) scale(0); } }
.card-regular .ember { background: var(--green); box-shadow: 0 0 4px var(--green); }
.card-ironman .ember { background: var(--iron); box-shadow: 0 0 4px var(--iron); }
.card-hcim .ember { background: var(--red); box-shadow: 0 0 4px var(--red); }

/* ==============================
   ABOUT
   ============================== */
.about-section { position: relative; padding: 80px 24px 100px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.about-section .section-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 60% 35% at 50% 10%, rgba(200,170,70,0.04) 0%, transparent 60%), linear-gradient(180deg, var(--bg-deepest), var(--bg-deep) 15%, var(--bg-mid) 50%, var(--bg-deepest)); }

.about-intro {
  text-align: center; max-width: 680px; margin: 0 auto 52px;
  font-family: 'Crimson Text', serif; font-size: 17px; line-height: 1.8;
  color: rgba(240,228,196,0.55); letter-spacing: 0.3px;
}

.about-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  opacity: 0; transform: translateY(40px); transition: opacity 0.8s, transform 0.8s;
}
.about-grid.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 960px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .about-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }

.about-card {
  position: relative; padding: 32px 28px; border-radius: 12px;
  border: 1px solid rgba(200,170,70,0.08);
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200,170,70,0.04) 0%, transparent 60%),
    linear-gradient(180deg, rgba(24,20,14,0.6), rgba(18,15,10,0.8));
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.about-card:hover {
  border-color: rgba(200,170,70,0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px rgba(200,170,70,0.03);
}

.about-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,170,70,0.08); border: 1px solid rgba(200,170,70,0.12);
  color: var(--gold); font-size: 18px;
  transition: background 0.3s, border-color 0.3s;
}
.about-card:hover .about-icon { background: rgba(200,170,70,0.12); border-color: rgba(200,170,70,0.25); }

.about-card-title {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 15px;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
  color: var(--parchment); transition: color 0.3s;
}
.about-card:hover .about-card-title { color: var(--gold-light); }

.about-card-text {
  font-family: 'Crimson Text', serif; font-size: 14.5px; line-height: 1.7;
  color: rgba(240,228,196,0.45);
}

@media (max-width: 960px) {
  .about-section { padding: 60px 20px 70px; }
  .about-intro { margin-bottom: 40px; }
}

/* ==============================
   UPDATES
   ============================== */
.updates-section { position: relative; padding: 80px 24px 100px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.updates-section .section-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 50% 30% at 50% 10%, rgba(200,170,70,0.04) 0%, transparent 60%), linear-gradient(180deg, var(--bg-deepest), var(--bg-deep) 20%, var(--bg-mid) 50%, var(--bg-deepest)); }
.updates-content { position: relative; z-index: 10; max-width: 820px; width: 100%; }

.updates-grid { display: grid; gap: 0; opacity: 0; transform: translateY(40px); transition: opacity 0.8s, transform 0.8s; }
.updates-grid.visible { opacity: 1; transform: translateY(0); }

.update-entry { position: relative; padding: 0 0 44px 52px; border-left: 1px solid rgba(200,170,70,0.1); }
.update-entry:last-child { border-left-color: transparent; padding-bottom: 0; }
.update-dot { position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(200,170,70,0.35); background: var(--bg-deepest); transition: all 0.3s; }
.update-entry:hover .update-dot { border-color: var(--gold); background: rgba(200,170,70,0.18); box-shadow: 0 0 10px rgba(200,170,70,0.3); }
.update-dot-pulse { position: absolute; left: -10px; top: 0; width: 19px; height: 19px; border-radius: 50%; border: 1px solid rgba(200,170,70,0.2); animation: dotP 3s ease-in-out infinite; display: none; }
@keyframes dotP { 0%,100% { opacity: 0; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
.update-entry:first-child .update-dot-pulse { display: block; }
.update-entry:first-child .update-dot { border-color: var(--gold); background: rgba(200,170,70,0.22); box-shadow: 0 0 10px rgba(200,170,70,0.2); }

.update-date { font-family: 'Cinzel', serif; font-weight: 600; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: rgba(200,170,70,0.5); margin-bottom: 7px; }
.update-entry:first-child .update-date { color: var(--gold); }
.update-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 18px; letter-spacing: 1.5px; color: var(--parchment); margin-bottom: 9px; transition: color 0.3s; }
.update-entry:hover .update-title { color: var(--gold-light); }
.update-title a { color: inherit; text-decoration: none; transition: color 0.3s; }
.update-title a:hover { color: var(--gold-light); }

.update-tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.tag-major { background: rgba(200,170,70,0.14); color: var(--gold); border: 1px solid rgba(200,170,70,0.22); }
.tag-patch { background: rgba(74,222,128,0.1); color: var(--green); border: 1px solid rgba(74,222,128,0.18); }
.tag-hotfix { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.18); }
.tag-content { background: rgba(167,139,250,0.1); color: var(--purple); border: 1px solid rgba(167,139,250,0.18); }

.update-body { font-family: 'Crimson Text', serif; font-size: 15px; line-height: 1.7; color: rgba(240,228,196,0.5); }
.update-read-more {
  display: inline-block; margin-top: 8px; font-family: 'Cinzel', serif; font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase; color: rgba(200,170,70,0.5);
  text-decoration: none; transition: color 0.3s;
}
.update-read-more:hover { color: var(--gold); text-decoration: none; }

/* Footer */
.site-footer { position: relative; z-index: 10; text-align: center; padding: 0 24px 50px; }
.footer-orn { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px; }
.fo-line { width: 100px; height: 1px; background: linear-gradient(90deg, transparent, rgba(200,170,70,0.18)); }
.fo-line:last-child { background: linear-gradient(90deg, rgba(200,170,70,0.18), transparent); }
.fo-emblem svg { color: var(--gold-dark); opacity: 0.45; width: 14px; height: 14px; }
.footer-copy { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: rgba(200,170,70,0.25); margin-bottom: 14px; }
.footer-links { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.footer-link { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: rgba(200,170,70,0.3); text-decoration: none; transition: color 0.3s; position: relative; }
.footer-link::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s; }
.footer-link:hover { color: var(--gold); }
.footer-link:hover::after { width: 100%; }

/* Nav */
.nav-bar { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; gap: 3px; padding: 4px; border-radius: 10px; background: rgba(18,15,10,0.88); backdrop-filter: blur(16px); border: 1px solid rgba(200,170,70,0.1); opacity: 0; transition: opacity 0.5s; }
.nav-bar.shown { opacity: 1; }
.nav-pill { padding: 7px 18px; border-radius: 7px; border: none; background: transparent; font-family: 'Cinzel', serif; font-weight: 600; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: rgba(240,228,196,0.4); cursor: pointer; transition: all 0.3s; text-decoration: none; }
.nav-pill:hover { color: var(--parchment); background: rgba(200,170,70,0.07); text-decoration: none; }
.nav-pill.active { color: var(--gold); background: rgba(200,170,70,0.12); }
@media (max-width: 700px) { .nav-pill { padding: 5px 10px; font-size: 8px; letter-spacing: 2px; } }

/* ==============================
   REGISTRATION MODAL OVERLAY
   ============================== */
.register-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(14,10,6,0.85); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 20px;
}
.register-modal-overlay.active { display: flex; }

.register-modal {
  position: relative; width: 100%; max-width: 460px; border-radius: 16px;
  border: 1px solid rgba(200,170,70,0.15);
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200,170,70,0.06) 0%, transparent 50%),
    linear-gradient(180deg, rgba(24,20,14,0.98), rgba(18,15,10,0.99));
  box-shadow: 0 30px 100px rgba(0,0,0,0.6), 0 0 60px rgba(200,170,70,0.05);
  padding: 44px 40px 36px;
  max-height: 90vh; overflow-y: auto;
  animation: fadeUp 0.4s ease-out forwards;
}
@media (max-width: 600px) { .register-modal { padding: 28px 20px 24px; } }

.register-modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border: 1px solid rgba(200,170,70,0.15); border-radius: 6px; background: transparent;
  color: rgba(240,228,196,0.4); font-size: 18px; cursor: pointer; transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.register-modal-close:hover { border-color: rgba(200,170,70,0.35); color: var(--parchment); background: rgba(200,170,70,0.05); }

.register-modal .login-heading { margin-bottom: 4px; }
.register-modal .login-subheading { margin-bottom: 24px; }

.register-modal .form-group { margin-bottom: 14px; }
.register-modal .form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.register-modal .form-row-dob { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.register-modal .form-select { appearance: auto; -webkit-appearance: auto; cursor: pointer; padding: 11px 10px; font-size: 14px; }
.register-modal .form-select option { background: var(--bg-card); color: var(--parchment); }
@media (max-width: 500px) { .register-modal .form-row-split { grid-template-columns: 1fr; } .register-modal .form-row-dob { grid-template-columns: 1fr; } }

.register-modal .terms-label {
  display: flex; align-items: center; gap: 8px; font-family: 'Crimson Text', serif;
  font-size: 13px; color: rgba(240,228,196,0.45); cursor: pointer; margin-bottom: 18px;
}
.register-modal .terms-label a { color: var(--gold-dark); text-decoration: none; transition: color 0.3s; }
.register-modal .terms-label a:hover { color: var(--gold); }

.register-modal .gamemode-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 6px;
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  font-weight: 700; margin-bottom: 16px;
}
.register-modal .gamemode-badge.mode-regular { background: rgba(74,222,128,0.1); color: var(--green); border: 1px solid rgba(74,222,128,0.2); }
.register-modal .gamemode-badge.mode-ironman { background: rgba(176,179,184,0.1); color: var(--iron); border: 1px solid rgba(176,179,184,0.2); }
.register-modal .gamemode-badge.mode-hardcore { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }

/* ==============================
   SWEETALERT DARK OVERRIDES
   ============================== */
.sweet-alert {
  background: var(--bg-card) !important;
  border: 1px solid rgba(200,170,70,0.15) !important;
  color: var(--parchment) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}
.sweet-alert h2 {
  font-family: 'Cinzel', serif !important;
  color: var(--parchment) !important;
}
.sweet-alert p {
  font-family: 'Crimson Text', serif !important;
  color: rgba(240,228,196,0.6) !important;
}
.sweet-alert .sa-confirm-button-container .confirm {
  background: linear-gradient(180deg, #a88c24, #806c1a) !important;
  color: var(--parchment) !important;
  font-family: 'Cinzel', serif !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(138,111,30,0.4) !important;
}
.sweet-alert .sa-button-container .cancel {
  background: transparent !important;
  border: 1px solid rgba(200,170,70,0.2) !important;
  color: rgba(240,228,196,0.5) !important;
  font-family: 'Cinzel', serif !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  font-size: 12px !important;
}
.sweet-alert .sa-input-field input {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(200,170,70,0.15) !important;
  color: var(--parchment) !important;
  font-family: 'Crimson Text', serif !important;
}
.sweet-overlay { background: rgba(14,10,6,0.8) !important; }

@media (max-width: 960px) {
  .card-inner { min-height: auto; padding: 36px 22px 32px; }
  .choose-section, .updates-section { padding: 60px 20px 70px; }
  .sec-header { margin-bottom: 44px; }
}
