:root { --black:#0b0b0f; --stone:#1a1a22; --amethyst:#7c3aed; --gold:#c7a65b; --rune:#8a7a5a; --glow:0 0 24px rgba(124,58,237,.45), 0 0 60px rgba(199,166,91,.25); }
*{box-sizing:border-box}
html,body{height:100%;background:radial-gradient(1200px 800px at 70% 10%, #12121a 0%, #0b0b0f 55%, #07070b 100%);color:#e7e2ff}
body{font-family:"IM Fell DW Pica", serif; line-height:1.6; margin:0}

/* Header */
.site-header{position:fixed;top:0;left:0;right:0;display:flex;justify-content:flex-end;align-items:center;gap:24px;padding:12px 20px;background:linear-gradient(to bottom, rgba(0,0,0,.6), rgba(0,0,0,0)); z-index:50}
.nav ul{display:flex;list-style:none;gap:22px;margin:0;padding:0}
.nav a{color:#ddd;text-decoration:none;font-family:"Uncial Antiqua", serif;letter-spacing:.5px}
.nav a:hover{color:var(--gold);text-shadow:0 0 10px rgba(199,166,91,.5)}
.nav-toggle{display:none;background:transparent;border:0;width:42px;height:42px}
.nav-toggle span{display:block;height:2px;background:#ddd;margin:7px 0;transition:.3s}

/* Hero */
.hero{position:relative;min-height:92vh;display:grid;place-items:center;padding:120px 16px 64px;text-align:center}
.hero .logo{width:520px;max-width:80vw;filter:drop-shadow(0 10px 25px rgba(124,58,237,.35))}
.hero h1{font-family:"Cinzel Decorative", serif;font-size:clamp(28px, 5vw, 52px);margin:10px 0;color:#eedeff;text-shadow:0 0 18px rgba(124,58,237,.35)}
.subtitle{font-style:italic;color:#c9c0ff;margin:0 0 8px}
.intro{max-width:900px;margin:0 auto 22px;color:#dad0ff}
.cta{display:inline-block;padding:14px 28px;border:1px solid var(--gold);color:#fff;text-decoration:none;font-family:"Uncial Antiqua", serif;letter-spacing:.6px;border-radius:6px;box-shadow:var(--glow);transition:transform .25s, box-shadow .25s}
.cta:hover{transform:translateY(-1px) scale(1.01);box-shadow:0 0 28px rgba(124,58,237,.6), 0 0 70px rgba(199,166,91,.35)}
.hero-bg{position:absolute;inset:0;z-index:-1;opacity:.35;mix-blend:screen}
.hero-bg img{width:100%;height:100%;object-fit:cover;}

/* Fog & particles */
.fog{position:fixed;inset:-10% -10% auto -10%;height:60vh;background:radial-gradient(closest-side, rgba(116,92,160,.08), rgba(124,58,237,.04) 40%, rgba(0,0,0,0) 70%);filter:blur(16px);pointer-events:none;animation:fogMove 60s linear infinite}
.fog-2{top:30vh;height:70vh;animation-duration:95s;opacity:.5}
@keyframes fogMove{0%{transform:translateX(-10%)}50%{transform:translateX(10%)}100%{transform:translateX(-10%)}}
#runeParticles{position:fixed;inset:0;pointer-events:none;z-index:0;}

/* Quick links */
.quick-links{padding:40px 16px 20px;max-width:1200px;margin:0 auto}
.quick-links h2{font-family:"Cinzel Decorative", serif;color:#eedeff;text-align:center;margin:0 0 22px}
.links-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.link-card{position:relative;background:linear-gradient(180deg,#12121a,#0c0c12);border:1px solid #2b2b38;padding:18px 16px 20px;border-radius:10px;text-decoration:none;color:#e6e6f5;overflow:hidden;isolation:isolate}
.link-card .icon{font-size:26px;margin-bottom:8px;text-shadow:var(--glow)}
.link-card h3{font-family:"Uncial Antiqua", serif;color:#f0e6ff;margin:0 0 6px}
.link-card p{margin:0;color:#c9c4e8}
.link-card::after{content:"";position:absolute;inset:-40%;background:radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(124,58,237,.3), rgba(199,166,91,.18) 15%, transparent 35%);opacity:0;transition:.35s;z-index:-1}
.link-card:hover::after{opacity:.9}
.link-card.status .icon{position:relative;display:flex;align-items:center;gap:8px}
.link-card .led{width:10px;height:10px;border-radius:50%;background:#33ff66;box-shadow:0 0 12px #33ff66;animation:ledPulse 2.2s ease-in-out infinite}
@keyframes ledPulse{0%,100%{opacity:.4;box-shadow:0 0 10px #33ff66}50%{opacity:1;box-shadow:0 0 18px 6px rgba(51,255,102,.6)}}
.card-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.15;mix-blend:soft-light;z-index:-2;}

/* World */
.world-section{position:relative;padding:40px 16px 64px;max-width:1200px;margin:0 auto}
.world-bg{position:absolute;inset:0;z-index:-2;opacity:.18;filter:grayscale(.2) contrast(1.1)}
.world-section h2{font-family:"Cinzel Decorative", serif;text-align:center;margin:0 0 8px}
.world-quote{text-align:center;font-style:italic;color:#c9c0ff;margin:0 0 18px}
.carousel{position:relative;overflow:hidden;border:1px solid #2b2b38;border-radius:12px;background:#0e0e15}
.car-track{display:flex;transition:transform .6s ease;will-change:transform}
.car-slide{min-width:100%;position:relative}
.car-slide img{width:100%;height:420px;object-fit:cover;filter:saturate(.9) brightness(.9)}
.caption{position:absolute;left:12px;bottom:10px;background:rgba(10,10,14,.55);padding:8px 10px;border-radius:6px;border:1px solid rgba(124,58,237,.35)}
.car-btn{position:absolute;top:50%;transform:translateY(-50%);background:rgba(10,10,14,.55);border:1px solid #3a2a55;color:#eee;width:42px;height:42px;border-radius:50%;cursor:pointer}
.car-btn:hover{box-shadow:var(--glow)}
.car-btn.prev{left:10px}.car-btn.next{right:10px}
.world-text{max-width:880px;margin:18px auto 0;color:#dcd3ff}
.world-text .italic{font-style:italic;color:#c9c0ff}

/* Lore parchment */
.parchment{background:
linear-gradient(#0000,#0000) padding-box,
radial-gradient(120% 120% at 10% 0%, rgba(199,166,91,.35), rgba(124,58,237,.15) 40%, rgba(0,0,0,0) 70%) border-box;
border:1px solid rgba(199,166,91,.45);
margin:40px auto;max-width:1000px;border-radius:14px;padding:14px}
.parchment::before{content:"";position:absolute;inset:auto 0 -14px 0;height:28px;background:radial-gradient(50% 100% at 50% 0, rgba(0,0,0,.55), transparent);filter:blur(8px);z-index:-1}
.parchment h2,.parchment h3{font-family:"Cinzel Decorative", serif;margin:10px 0}
.parchment-inner{background:linear-gradient(180deg,#171319,#0d0b10);border:1px dashed rgba(199,166,91,.35);border-radius:10px;padding:16px}
.parchment blockquote{font-style:italic;color:#e9da9f;border-left:2px solid rgba(199,166,91,.6);margin:6px 0 10px;padding-left:10px}
.lore-illustration{width:100%;max-height:360px;object-fit:cover;border-radius:8px;margin-bottom:12px;box-shadow:var(--glow)}

/* Footer */
.site-footer{position:relative;text-align:center;padding:24px 16px;margin-top:40px;border-top:1px solid rgba(199,166,91,.25);background:linear-gradient(180deg, rgba(12,10,14,.8), rgba(8,6,10,.9))}
.site-footer a{color:#e7d7a8;text-decoration:none}
.runes{display:flex;justify-content:center;gap:16px;color:#b59a67;margin-bottom:8px}
.runes span{transition:filter .3s, text-shadow .3s}
.runes span:hover{filter:brightness(1.3);text-shadow:0 0 16px rgba(199,166,91,.8), 0 0 28px rgba(124,58,237,.5)}

/* Audio toggle */
.audio-toggle{position:fixed;right:14px;bottom:14px;border:1px solid rgba(199,166,91,.6);background:rgba(12,10,14,.65);color:#f2e9ff;border-radius:8px;padding:10px;font-size:18px;backdrop-filter:blur(4px);z-index:60}
.audio-toggle:hover{box-shadow:var(--glow)}

/* Responsive */
@media (max-width: 920px){
  .hero{padding-top:96px}
  .car-slide img{height:300px}
}
@media (max-width: 720px){
  .nav-toggle{display:block}
  .nav{position:fixed;right:12px;top:58px;background:#0c0c12;border:1px solid #2b2b38;border-radius:8px;display:none}
  .nav.open{display:block}
  .nav ul{flex-direction:column;padding:10px}
}

