/* ====== PREMIUM CINEMATIC UPGRADE ====== */

:root { 
  --accent: #ff7a18;
  --accent2: #8e54e9;
  --text: #fdf2e9; 
  --bg-current: #0f0c0a;
  --font-size: 1.7rem;
  --panel-bg: rgba(20, 10, 5, 0.75);
  --secret-color: #ff4d4d;
  --text-shadow: 0 4px 25px rgba(0,0,0,0.9);
}

/* 🌙 DARK THEME IMPROVED */
:root[data-theme="dark"] { 
  --bg-current: #000000; 
  --text: #eaeaea; 
  --accent: #00c6ff;
  --accent2: #0072ff;
  --panel-bg: rgba(10,10,10,0.85); 
}

/* 📜 VINTAGE UPGRADE */
:root[data-theme="vintage"] { 
  --bg-current: #f4ecd8; 
  --text: #3e2723; 
  --accent: #c0392b; 
  --panel-bg: rgba(244,236,216,0.95); 
}

/* ===== GLOBAL ===== */
body { 
  background: radial-gradient(circle at center, #1a120d, #000);
  color: var(--text); 
  font-family: 'Mukta', sans-serif; 
  overflow-x: hidden; 
  min-height: 100vh; 
  transition: all 1s ease;
}

/* ===== BG IMAGE (MORE CINEMATIC) ===== */
#bg-image-layer {
  position: fixed;
  inset: 0;
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.5) contrast(1.2) saturate(1.2);
  transition: opacity 2s ease, transform 0.3s ease;
  z-index: 0;
}

/* ===== SETTINGS BUTTON ===== */
#settings-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  transition: 0.3s;
}

#settings-btn:hover {
  transform: rotate(90deg) scale(1.15);
}

/* ===== SETTINGS PANEL ===== */
#settings-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 260px;
  background: var(--panel-bg);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 20px;
  z-index: 999;
  transform: translateX(120%);
  transition: 0.4s;
  box-shadow: 0 15px 40px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.1);
}

#settings-panel.active {
  transform: translateX(0);
}

.toggle-btn {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  cursor: pointer;
  transition: 0.3s;
}

.toggle-btn:hover {
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  color: #fff;
}

/* ===== INTRO SCREEN ===== */
#intro-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, #1a0f0a, #000);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#intro-screen h1 {
  font-size: 4rem;
  text-align: center;
  background: linear-gradient(135deg,#f7971e,#ffd200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(255,200,0,0.4);
}

/* ===== BUTTONS ===== */
.start-btn {
  padding: 14px 45px;
  border-radius: 50px;
  border: none;
  font-weight: 700;
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  color: #fff;
  margin-top: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.start-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(255,120,0,0.5);
}

/* ===== STORY TEXT ===== */
#story {
  max-width: 900px;
  margin: auto;
  padding: 60px 30px;
  text-align: center;
}

.line {
  margin: 40px 0;
  font-size: var(--font-size);
  line-height: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: 1s;
}

.line.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CURSOR ===== */
.cursor {
  width: 3px;
  height: 1.2em;
  background: var(--accent);
  animation: blink 1s infinite;
}

/* ===== PROGRESS ===== */
#progress-container {
  position: fixed;
  top: 0;
  width: 100%;
  height: 4px;
}

#progress {
  height: 100%;
  background: linear-gradient(90deg,var(--accent),var(--accent2));
  width: 0%;
}

/* ===== GLOSSARY ===== */
.glossary {
  color: #ffd700;
  border-bottom: 1px dashed var(--accent);
}