/* ═══════════════════════════════════════════════
   BHOOTH BANGLA · GLOBAL DESIGN SYSTEM
   ═══════════════════════════════════════════════ */

:root {
  --bg:          #06060f;
  --bg2:         #0c0c1c;
  --bg3:         #12122a;
  --gold:        #c9a227;
  --gold-lt:     #e8c050;
  --gold-glow:   rgba(201, 162, 39, 0.25);
  --crimson:     #6b0000;
  --cream:       #f0e6c8;
  --muted:       #6a5a4a;
  --fog:         rgba(160, 140, 220, 0.06);
  --border:      rgba(201, 162, 39, 0.18);
  --radius:      8px;
  --shadow:      0 8px 40px rgba(0,0,0,0.7);

  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-body:    'Crimson Text', Georgia, serif;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input { font: inherit; }
ul { list-style: none; }

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--crimson), var(--gold), var(--gold-lt));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Cursor glow (desktop) ── */
.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ═══════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 1.2rem 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
#navbar.scrolled {
  background: rgba(6, 6, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,230,200,0.75);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-raffle-link {
  color: var(--gold) !important;
}
.nav-ticket-btn {
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  transition: background 0.25s, color 0.25s !important;
}
.nav-ticket-btn:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
}
.nav-ticket-btn::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 34px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(280px, 80vw);
    background: rgba(6,6,15,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    border-left: 1px solid var(--border);
    z-index: 850;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 0.9rem; }
}

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */
/* ── Hero: full image, no crop ── */
#hero {
  position: relative;
  background: var(--bg);
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  line-height: 0; /* remove inline gap under img */
}
.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100% !important;
  height: 100% !important;
}

/* CTAs sit just below the image */
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.8rem 1.5rem 0.5rem;
  opacity: 0;
}

/* Scroll hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 2rem;
  opacity: 0;
}
.scroll-hint span {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(240,230,200,0.4);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease-out);
}
.btn:hover::before { transform: translateX(0); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-primary:hover {
  background: var(--gold-lt);
  box-shadow: 0 8px 30px rgba(201,162,39,0.5);
}

.btn-ghost {
  border: 1px solid rgba(240,230,200,0.3);
  color: var(--cream);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 0.8rem;
}

.btn-raffle {
  background: linear-gradient(135deg, var(--crimson) 0%, #a00 50%, var(--crimson) 100%);
  color: var(--cream);
  box-shadow: 0 4px 25px rgba(107,0,0,0.6);
  font-size: 0.85rem;
  padding: 1rem 2.8rem;
  border: 1px solid rgba(201,162,39,0.3);
}
.btn-raffle:hover {
  box-shadow: 0 8px 40px rgba(170,0,0,0.7);
  border-color: var(--gold);
}

/* ═══════════════════════════════════
   TICKER
   ═══════════════════════════════════ */
.ticker-bar {
  overflow: hidden;
  background: var(--gold);
  padding: 0.55rem 0;
  position: relative;
  z-index: 10;
}
.ticker-track { display: flex; }
.ticker-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
  will-change: transform;
}
.ticker-content span {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
}
.ticker-sep { color: var(--bg) !important; opacity: 0.5; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-content { animation: none; }
}

/* ═══════════════════════════════════
   SECTION SHARED STYLES
   ═══════════════════════════════════ */
.room-section {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}
.room-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fog);
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Room tag */
.room-tag {
  position: absolute;
  top: 2.5rem;
  right: 2rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(201,162,39,0.4);
  border: 1px solid rgba(201,162,39,0.15);
  padding: 0.35rem 0.8rem;
  border-radius: 2px;
}

/* Section header */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.section-sub {
  font-style: italic;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ─── Reveal animation targets ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}
[data-reveal][data-from="left"] { transform: translateX(-50px); }
[data-reveal][data-from="right"] { transform: translateX(50px); }

/* ═══════════════════════════════════
   TRAILER SECTION
   ═══════════════════════════════════ */
#trailer { background: var(--bg2); }
#trailer::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(107,0,0,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(6,6,15,0.8) 0%, transparent 70%);
  pointer-events: none;
}

.trailer-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.trailer-glow-border {
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--gold) 0%, transparent 40%, transparent 60%, var(--gold) 100%);
  border-radius: calc(var(--radius) + 2px);
  z-index: 0;
  opacity: 0.35;
}
.trailer-thumb,
.trailer-iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.trailer-thumb { cursor: pointer; }
.trailer-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trailer-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6,6,15,0.4);
  transition: background 0.3s;
}
.trailer-thumb:hover .trailer-thumb-overlay { background: rgba(6,6,15,0.25); }

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.25s var(--ease-out);
}
.trailer-thumb:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); }

.play-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(6,6,15,0.75);
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(201,162,39,0.4);
  animation: playPulse 3s ease-in-out infinite;
}
.play-icon svg { width: 28px; height: 28px; margin-left: 3px; }
.play-btn span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201,162,39,0.3); }
  50%       { box-shadow: 0 0 50px rgba(201,162,39,0.7); }
}

/* ═══════════════════════════════════
   ABOUT SECTION
   ═══════════════════════════════════ */
#about {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.about-img-wrap {
  position: relative;
}
.about-img-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,162,39,0.08) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}
.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.about-img-ornament {
  position: absolute;
  bottom: -12px; right: -12px;
  width: 80px; height: 80px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  opacity: 0.4;
}

.about-text {
  color: rgba(240,230,200,0.7);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}
.about-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.meta-chip {}
.meta-chip-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.meta-chip-val {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--cream);
}

/* ═══════════════════════════════════
   CAST SECTION
   ═══════════════════════════════════ */
#cast {
  background: var(--bg);
}
#cast::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(107,0,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .cast-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cast-grid { grid-template-columns: repeat(2, 1fr); } }

.cast-card {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}
.cast-frame {
  position: relative;
  aspect-ratio: 3/4;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(20,10,30,0.9) 0%, rgba(12,12,28,0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cast-frame::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201,162,39,0.1);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}
.cast-card:hover .cast-frame {
  border-color: rgba(201,162,39,0.5);
  box-shadow: 0 0 30px rgba(201,162,39,0.15);
}

.cast-initial {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: rgba(201,162,39,0.5);
  letter-spacing: 0.1em;
  z-index: 1;
}
.cast-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s var(--ease-out);
}
.cast-card:hover .cast-photo { transform: scale(1.06); }

/* Candle flicker decoration */
.cast-candle {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 24px;
  background: linear-gradient(to top, rgba(201,162,39,0.3), transparent);
}
.cast-candle::before {
  content: '🕯️';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  animation: candleFlicker 3s ease-in-out infinite;
}
@keyframes candleFlicker {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  25%       { opacity: 0.6; transform: translateX(-52%) scale(0.95); }
  75%       { opacity: 0.9; transform: translateX(-48%) scale(1.02); }
}

.cast-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}
.cast-role {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ═══════════════════════════════════
   GALLERY
   ═══════════════════════════════════ */
#gallery { background: var(--bg2); }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 400px;
  gap: 1rem;
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.96);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,6,15,0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-hover-overlay { opacity: 1; }
.gallery-hover-overlay span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.gallery-wide { grid-column: 1; }

/* ═══════════════════════════════════
   TICKETS SECTION
   ═══════════════════════════════════ */
.section-tickets {
  background: var(--bg);
  text-align: center;
  padding: 8rem 0;
}
.section-tickets::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(6,6,15,0.6) 0%, rgba(6,6,15,0.4) 50%, rgba(6,6,15,0.7) 100%),
    radial-gradient(ellipse at center, rgba(107,0,0,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.tickets-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: url('../img/banner3.png');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.tickets-content { position: relative; z-index: 1; }
.tickets-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--cream);
  margin-bottom: 0.75rem;
}
.tickets-sub {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

/* ═══════════════════════════════════
   RAFFLE SECTION
   ═══════════════════════════════════ */
.section-raffle {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(107,0,0,0.2) 0%, transparent 60%),
    var(--bg2);
  text-align: center;
  padding: 8rem 0;
}

#raffle-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 0;
}

.raffle-wrap {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.raffle-icon-wrap { margin-bottom: 1.5rem; }
.raffle-lantern {
  font-size: 3.5rem;
  display: inline-block;
  animation: lanternSway 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(201,162,39,0.6));
}
@keyframes lanternSway {
  0%, 100% { transform: rotate(-5deg); }
  50%       { transform: rotate(5deg); }
}

.raffle-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--cream);
  margin-bottom: 1rem;
}
.raffle-desc {
  color: rgba(240,230,200,0.65);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* Countdown */
.countdown-wrap { margin-bottom: 1.5rem; }
.countdown-label-top {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6,6,15,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.8rem;
}
.cd-unit { text-align: center; min-width: 60px; }
.cd-flip {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.cd-label {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cd-sep {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 1rem;
}

.souls-entered {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240,230,200,0.35);
  margin-bottom: 2rem;
}
#total-entries { color: var(--gold); }

#raffle-cta { margin-bottom: 1rem; }
.raffle-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
  font-style: italic;
}

/* Post-sign-in state */
.raffle-entered {}
.entered-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,150,60,0.15);
  border: 2px solid rgba(0,200,80,0.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  animation: checkPop 0.5s var(--ease-out);
}
.entered-check svg { width: 32px; height: 32px; color: #4caf50; }
@keyframes checkPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.entered-headline {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.entries-display {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.entries-display strong { color: var(--gold); font-size: 1.3rem; }

/* Share card */
.share-card {
  background: rgba(6,6,15,0.6);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.8rem;
  margin-top: 1rem;
}
.share-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.share-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.share-url-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.share-url-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: rgba(240,230,200,0.6);
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  outline: none;
}
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(201,162,39,0.12);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-copy:hover { background: rgba(201,162,39,0.22); }

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: rgba(240,230,200,0.7);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-share:hover { border-color: var(--gold); color: var(--gold); }

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.footer-links a { color: rgba(240,230,200,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-links span { color: var(--border); }
.footer-legal {
  font-size: 0.8rem;
  color: rgba(240,230,200,0.2);
}

/* ═══════════════════════════════════
   MODAL
   ═══════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6,6,15,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 1001;
  background:
    linear-gradient(145deg, rgba(18,10,30,0.98) 0%, rgba(12,12,28,0.98) 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  width: min(480px, 94vw);
  max-height: 90svh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 60px rgba(107,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.modal.visible {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--cream); }

.modal-body { text-align: center; }
.modal-ghost-wrap { margin-bottom: 1rem; }
.modal-ghost {
  font-size: 3rem;
  display: inline-block;
  animation: ghostBob 2s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(160,140,220,0.5));
}
@keyframes ghostBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.modal-desc {
  color: rgba(240,230,200,0.6);
  font-size: 1rem;
  margin-bottom: 1.8rem;
  line-height: 1.6;
}

/* Google button */
.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #fff;
  color: #3c4043;
  border-radius: var(--radius);
  padding: 0.85rem 1.5rem;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s;
  border: none;
  margin-bottom: 0.5rem;
}
.btn-google:hover {
  background: #f8f8f8;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-or {
  text-align: center;
  position: relative;
  margin: 1.2rem 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.modal-or::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.modal-or span {
  position: relative;
  background: rgba(18,10,30,0.98);
  padding: 0 0.75rem;
}

.email-field { display: flex; flex-direction: column; gap: 0.75rem; }
.email-field input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cream);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  font-size: 1rem;
}
.email-field input:focus { border-color: var(--gold); }
.email-field input::placeholder { color: var(--muted); }
.modal-email-btn { width: 100%; justify-content: center; }

/* Email sent state */
.modal-email-sent { padding: 1rem 0; }
.email-sent-icon { font-size: 3rem; margin-bottom: 1rem; }
.email-sent-text {
  font-size: 1rem;
  color: rgba(240,230,200,0.8);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.email-sent-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.modal-fine-print {
  font-size: 0.75rem;
  color: rgba(240,230,200,0.25);
  line-height: 1.6;
  margin-top: 1.5rem;
}

/* ═══════════════════════════════════
   TOAST
   ═══════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(18,18,34,0.95);
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(201,162,39,0.3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ═══════════════════════════════════
   UTILITIES / HELPERS
   ═══════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════
   MOBILE OVERRIDES
   ═══════════════════════════════════ */
@media (max-width: 600px) {
  .room-section { padding: 5rem 0; }
  .countdown { padding: 1rem 1rem; gap: 0.3rem; }
  .cd-unit { min-width: 48px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-preview-badge { right: 1rem; }
  .share-url-row { flex-direction: column; }
  .gallery-grid { grid-template-rows: 240px 240px; }
}

/* ═══════════════════════════════════
   GAME — SURVIVE THE BANGLA
   ═══════════════════════════════════ */

/* Modal wider when game is active */
.modal.game-mode {
  width: min(560px, 96vw);
  max-height: 92svh;
}

#modal-game {
  min-height: 260px;
}

/* Shared screen wrapper */
.g-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding-bottom: 0.5rem;
}

/* ── Progress bar ── */
.g-progress {
  width: 100%;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.g-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.g-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.2);
  transition: background 0.3s, transform 0.3s;
}
.g-dot-done    { background: rgba(201,162,39,0.5); }
.g-dot-active  { background: var(--gold); transform: scale(1.3); box-shadow: 0 0 8px var(--gold-glow); }

.g-bar-wrap {
  width: 100%;
  height: 2px;
  background: rgba(201,162,39,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.g-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  border-radius: 2px;
  transition: width 0.5s var(--ease-out);
}
.g-step-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Intro screen ── */
.g-ghost-big {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  animation: ghostBob 2.5s ease-in-out infinite;
}
.g-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.g-body {
  font-size: 0.95rem;
  color: rgba(240,230,200,0.65);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  max-width: 380px;
}
.g-rooms-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.g-room-chip {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}
.g-fine {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.75rem;
}

/* ── Room screen ── */
.g-room-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.g-room-emoji { font-size: 1.8rem; }
.g-room-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cream);
}
.g-atmosphere {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 0.75rem;
  max-width: 380px;
}
.g-choices {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.2rem;
}
.g-choice-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: var(--radius);
  color: var(--cream);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  font-size: 0.95rem;
}
.g-choice-btn:hover {
  background: rgba(201,162,39,0.1);
  border-color: var(--gold);
  transform: translateX(4px);
}
.g-choice-btn:active { transform: translateX(2px) scale(0.99); }
.g-choice-icon { font-size: 1.4rem; flex-shrink: 0; }
.g-choice-text { font-family: var(--font-body); font-size: 1rem; }

/* ── Result screen ── */
.g-result-room {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.g-result-choice {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.g-result-choice strong { color: var(--cream); }
.g-result-box {
  background: rgba(107,0,0,0.12);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.5rem;
  width: 100%;
}
.g-result-box p {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(240,230,200,0.8);
}

/* ── Trivia screen ── */
.g-trivia-badge {
  background: linear-gradient(135deg, var(--crimson), #a00);
  color: var(--cream);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 0.8rem;
  display: inline-block;
}
.g-trivia-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.g-trivia-q {
  font-size: 1rem;
  color: rgba(240,230,200,0.9);
  line-height: 1.6;
  font-weight: 600;
  margin-bottom: 0.4rem;
  max-width: 380px;
}
.g-trivia-hint {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.g-trivia-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.g-trivia-opt {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,162,39,0.18);
  border-radius: var(--radius);
  color: var(--cream);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}
.g-trivia-opt:hover:not(:disabled) {
  background: rgba(201,162,39,0.1);
  border-color: var(--gold);
}
.g-trivia-opt:disabled { cursor: default; opacity: 0.8; }
.g-opt-correct {
  background: rgba(76,175,80,0.15) !important;
  border-color: #4caf50 !important;
  color: #a5d6a7 !important;
}
.g-opt-wrong {
  background: rgba(244,67,54,0.12) !important;
  border-color: #f44336 !important;
  color: #ef9a9a !important;
}
.g-trivia-feedback {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* ── Complete screen ── */
.g-complete-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  animation: ghostBob 2.5s ease-in-out infinite;
}
.g-complete-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.g-complete-sub {
  font-size: 1rem;
  color: rgba(240,230,200,0.7);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.g-gold { color: var(--gold); font-size: 1.3em; }
.g-bonus-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4caf50;
  margin-top: 0.3rem;
}
.g-path-summary {
  width: 100%;
  background: rgba(6,6,15,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.g-path-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: rgba(240,230,200,0.5);
  text-align: left;
}

/* ── Shared game button ── */
.g-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}
.g-btn:hover   { transform: translateY(-2px); }
.g-btn:active  { transform: translateY(0); }
.g-btn-primary {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.g-btn-primary:hover { background: var(--gold-lt); box-shadow: 0 8px 30px rgba(201,162,39,0.45); }

/* ═══════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ticker-content { animation: none; }
}
