/* ==========================================================================
   MOBILE LEGENDS DIGITAL INVITATION (UNDANGAN MABAR SUCI) - STYLESHEET
   Aesthetics: Luxurious Cyberpunk / ALLSTAR Sparkle Pink & Sakura Magenta Theme
   ========================================================================== */

:root {
  --bg-dark: #0d0211;
  --bg-card: rgba(28, 8, 38, 0.78);
  --bg-card-hover: rgba(48, 14, 64, 0.9);
  --border-gold: linear-gradient(135deg, #ff77c6, #ff2e93, #ec4899, #be185d);
  --gold-primary: #ff2e93;
  --gold-light: #ff77c6;
  --gold-glow: rgba(255, 46, 147, 0.5);
  
  --cyan-neon: #f472b6;
  --cyan-glow: rgba(244, 114, 182, 0.45);
  --purple-mythic: #ec4899;
  --purple-glow: rgba(236, 72, 153, 0.45);
  --red-savage: #ff1493;

  --text-main: #fdf2f8;
  --text-muted: #d8b4e2;
  --text-gold: #ffd1ea;

  --font-display: 'Orbitron', 'Cinzel', sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body.is-locked {
  overflow: hidden;
}

/* CANVAS & GLOW BACKGROUND */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 46, 147, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 46, 147, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  pointer-events: none;
}

.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.38;
  z-index: 0;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #ff2e93, #831843);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #db2777, #3b0764);
  bottom: 50px;
  left: -150px;
  animation-delay: -6s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 60px) scale(1.15); }
}

/* TYPOGRAPHY UTILITIES */
.gold-gradient-text {
  background: linear-gradient(135deg, #ffffff, #ffb6c1, #ff2e93, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 46, 147, 0.4);
}

.divider-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px auto 24px;
  max-width: 280px;
}

.divider-gold span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff2e93, transparent);
}

.divider-gold i {
  color: var(--gold-light);
  font-size: 0.9rem;
  filter: drop-shadow(0 0 8px var(--gold-primary));
}

.badge-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-light);
  background: rgba(255, 46, 147, 0.15);
  border: 1px solid rgba(255, 46, 147, 0.45);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255, 46, 147, 0.2);
}

/* BUTTONS */
.btn-primary-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff77c6, #ff2e93, #db2777);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 46, 147, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(255, 46, 147, 0.8), inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.btn-primary-gold:active {
  transform: translateY(1px) scale(0.99);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 119, 198, 0.35);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 46, 147, 0.2);
  border-color: var(--cyan-neon);
  color: var(--cyan-neon);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--purple-mythic);
  color: #fce7f3;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--purple-mythic);
  color: #fff;
  box-shadow: 0 0 20px var(--purple-glow);
}

.btn-block {
  width: 100%;
}

.pulse-btn {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(255, 46, 147, 0.4); }
  50% { box-shadow: 0 0 35px rgba(255, 46, 147, 0.85); }
  100% { box-shadow: 0 0 15px rgba(255, 46, 147, 0.4); }
}

/* Micro Buttons (Roster Reset & Delete) */
.btn-micro {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 119, 198, 0.3);
  color: #ffd1ea;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-micro:hover {
  background: rgba(255, 46, 147, 0.25);
  border-color: #ff2e93;
  color: #fff;
}

.btn-micro.danger:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #fca5a5;
}

.roster-admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ==========================================================================
   COVER MODAL (UNDANGAN SULTAN OVERLAY)
   ========================================================================== */
.cover-modal,
.cover-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #240530 0%, #0d0211 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}

.cover-modal.opened,
.cover-screen.opened {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.cover-content,
.cover-card {
  background: rgba(28, 7, 40, 0.88);
  border: 1px solid rgba(255, 46, 147, 0.45);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 60px rgba(255, 46, 147, 0.3), inset 0 0 20px rgba(255, 46, 147, 0.1);
  animation: coverZoomIn 0.8s ease;
}

@keyframes coverZoomIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* RUNIC CORNERS */
.runic-corner,
.rune-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #ff77c6;
}

.top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.top-right { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.bottom-left { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.bottom-right { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* COVER CARD INNER ELEMENTS */
.rank-badge-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.rank-badge-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 46, 147, 0.45) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.mythic-crest {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.crest-icon {
  font-size: 3rem;
  color: #ff77c6;
  filter: drop-shadow(0 0 12px #ff2e93);
  animation: pulseGlow 2.5s infinite;
}

.crest-stars {
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: #ffd1ea;
  text-shadow: 0 0 10px rgba(255, 46, 147, 0.7);
}

.rank-title-pill {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  background: linear-gradient(135deg, #ff2e93, #db2777);
  padding: 4px 14px;
  border-radius: 20px;
  margin-top: 8px;
  box-shadow: 0 0 14px rgba(255, 46, 147, 0.6);
  text-transform: uppercase;
}

.invitation-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #f472b6;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.main-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff, #ffb6c1, #ff2e93);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  text-shadow: none;
}

.sub-title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.recipient-box {
  background: rgba(255, 46, 147, 0.1);
  border: 1px dashed rgba(255, 119, 198, 0.5);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.recipient-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.recipient-note {
  font-size: 0.8rem;
  color: #f472b6;
  margin-top: 6px;
}

.recipient-note i {
  color: #4ade80;
  margin-right: 4px;
}

.cover-footer {
  margin-top: 16px;
  font-size: 0.75rem;
  color: rgba(255, 209, 234, 0.7);
}

.btn-flare {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  animation: btnFlare 3s ease-in-out infinite;
}

@keyframes btnFlare {
  0% { left: -100%; }
  40%, 100% { left: 200%; }
}

.cover-icon-box {
  margin-bottom: 20px;
}

.mlbb-emblem-glow {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(255, 46, 147, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 1px solid rgba(255, 46, 147, 0.5);
  box-shadow: 0 0 30px rgba(255, 46, 147, 0.55);
}

.mlbb-emblem-glow i {
  font-size: 2.5rem;
  color: #ff77c6;
  filter: drop-shadow(0 0 10px #ff2e93);
}

.cover-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.cover-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.guest-box {
  background: rgba(255, 46, 147, 0.1);
  border: 1px dashed rgba(255, 119, 198, 0.5);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 28px;
}

.guest-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.guest-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.cover-note {
  margin-top: 18px;
  font-size: 0.75rem;
  color: #f472b6;
  opacity: 0.9;
}

/* ==========================================================================
   APP CONTAINER & MAIN WRAPPER
   ========================================================================== */
.app-container,
.main-container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

.section {
  margin-bottom: 70px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
  margin-top: 6px;
  text-shadow: 0 0 15px rgba(255, 46, 147, 0.35);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 8px auto 0;
}

/* ==========================================================================
   HERO / HEADER SECTION
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 40px 20px 20px;
}

.hero-season-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: #ff77c6;
  background: rgba(255, 46, 147, 0.15);
  border: 1px solid rgba(255, 46, 147, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--cyan-neon);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero-meta-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.meta-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 119, 198, 0.25);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd1ea;
  backdrop-filter: blur(6px);
}

.meta-badge i {
  color: #ff2e93;
}

/* ==========================================================================
   PARTY LEADERS / PEMPELAI MLBB
   ========================================================================== */
.leaders-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
}

.leader-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 46, 147, 0.3);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.leader-card:hover {
  transform: translateY(-4px);
  border-color: #ff2e93;
  box-shadow: 0 0 30px rgba(255, 46, 147, 0.35);
}

.avatar-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff77c6;
  box-shadow: 0 0 20px rgba(255, 46, 147, 0.4);
}

.avatar-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 46, 147, 0.6);
  animation: rotateRing 20s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rank-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #1b0626;
  border: 1px solid #ff2e93;
  color: #ff77c6;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(255, 46, 147, 0.4);
}

.host-role-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ff77c6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.host-ign {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.host-realname {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.host-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 46, 147, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ff77c6;
}

.stat-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.host-quote {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.versus-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.vs-circle {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, #ff2e93, #831843);
  border: 2px solid #ff77c6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 46, 147, 0.6);
}

.versus-divider span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  color: var(--cyan-neon);
  letter-spacing: 1px;
}

.squad-banner {
  margin-top: 30px;
  background: linear-gradient(90deg, rgba(255, 46, 147, 0.15), rgba(236, 72, 153, 0.15));
  border: 1px solid rgba(255, 46, 147, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.squad-crest {
  font-size: 1.8rem;
  color: #ff77c6;
  filter: drop-shadow(0 0 8px #ff2e93);
}

.squad-details h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

.squad-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   COUNTDOWN TIMER
   ========================================================================== */
.countdown-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 46, 147, 0.35);
  border-radius: var(--radius-lg);
  padding: 34px 20px;
  text-align: center;
  box-shadow: 0 0 35px rgba(255, 46, 147, 0.2);
}

.event-date-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff77c6;
  background: rgba(255, 46, 147, 0.15);
  border: 1px solid rgba(255, 46, 147, 0.4);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.time-box {
  background: rgba(45, 12, 60, 0.7);
  border: 1px solid rgba(255, 46, 147, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 0 15px rgba(255, 46, 147, 0.15);
}

.time-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #ff77c6;
  line-height: 1;
  text-shadow: 0 0 15px rgba(255, 46, 147, 0.6);
}

.time-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 6px;
}

.calendar-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   RUNDOWN & TIMELINE
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 650px;
  margin: 0 auto;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 11px;
  width: 2px;
  background: linear-gradient(180deg, #ff2e93, #ec4899, rgba(255, 46, 147, 0.1));
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #190524;
  border: 2px solid #ff2e93;
  color: #ff77c6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  box-shadow: 0 0 12px rgba(255, 46, 147, 0.6);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 46, 147, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: #ff2e93;
  transform: translateX(4px);
  box-shadow: 0 0 20px rgba(255, 46, 147, 0.25);
}

.timeline-time {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-neon);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RULES & DRESSCODE
   ========================================================================== */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 46, 147, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.rule-card.danger {
  border-color: rgba(239, 68, 68, 0.4);
}

.rule-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.rule-icon.ok {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
}

.rule-icon.no {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #f87171;
}

.rule-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.rule-card ul {
  list-style: none;
}

.rule-card li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rule-card li i {
  color: #ff77c6;
  margin-top: 4px;
  font-size: 0.8rem;
}

.rule-card.danger li i {
  color: #f87171;
}

/* ==========================================================================
   ROULETTE MINI-GAME
   ========================================================================== */
.roulette-container {
  background: var(--bg-card);
  border: 1px solid rgba(255, 46, 147, 0.35);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.wheel-box {
  position: relative;
  width: 320px;
  height: 320px;
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #ff77c6;
  z-index: 10;
  filter: drop-shadow(0 0 8px #ff2e93);
}

#roulette-wheel {
  transition: transform 4s cubic-bezier(0.15, 0.9, 0.25, 1);
  filter: drop-shadow(0 0 15px rgba(255, 46, 147, 0.4));
}

.roulette-controls {
  text-align: center;
  max-width: 460px;
  width: 100%;
}

.roulette-result-box {
  margin-top: 20px;
  background: rgba(255, 46, 147, 0.1);
  border: 1px dashed rgba(255, 119, 198, 0.5);
  border-radius: var(--radius-md);
  padding: 16px;
}

.roulette-result-box span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

#result-role-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #ff77c6;
  margin: 4px 0 6px;
}

#result-hero-hint {
  font-size: 0.8rem;
  color: var(--cyan-neon);
}

/* ==========================================================================
   SOUNDBOARD SECTION
   ========================================================================== */
.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.sound-btn {
  background: rgba(35, 10, 48, 0.8);
  border: 1px solid rgba(255, 46, 147, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #ffd1ea;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.sound-btn i {
  font-size: 1.3rem;
  color: #ff77c6;
  transition: var(--transition);
}

.sound-btn:hover {
  background: rgba(255, 46, 147, 0.25);
  border-color: #ff2e93;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255, 46, 147, 0.55);
}

.sound-btn:hover i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px #ff2e93);
}

.sound-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   RSVP & ROSTER DRAFT (BUKU TAMU)
   ========================================================================== */
.rsvp-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.rsvp-form-card, .roster-list-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 46, 147, 0.35);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(12px);
}

.rsvp-form-card h3, .roster-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rsvp-form-card h3 i, .roster-header h3 i {
  color: #ff77c6;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-group label .req {
  color: var(--red-savage);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(18, 5, 26, 0.85);
  border: 1px solid rgba(255, 46, 147, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff2e93;
  box-shadow: 0 0 15px rgba(255, 46, 147, 0.4);
}

.roster-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.badge-count {
  background: rgba(255, 46, 147, 0.2);
  border: 1px solid #ff2e93;
  color: #ff77c6;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
}

.role-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 119, 198, 0.25);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab.active, .filter-tab:hover {
  background: linear-gradient(135deg, #ff77c6, #ff2e93);
  color: #fff;
  border-color: #ff2e93;
  box-shadow: 0 0 10px rgba(255, 46, 147, 0.4);
}

.roster-items {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roster-items::-webkit-scrollbar {
  width: 5px;
}

.roster-items::-webkit-scrollbar-thumb {
  background: rgba(255, 46, 147, 0.4);
  border-radius: 4px;
}

.roster-card {
  background: rgba(38, 11, 52, 0.85);
  border: 1px solid rgba(255, 46, 147, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: var(--transition);
}

.roster-card:hover {
  border-color: #ff2e93;
  box-shadow: 0 0 15px rgba(255, 46, 147, 0.25);
}

.roster-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.roster-ign-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.roster-ign-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #ff77c6;
}

.roster-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.roster-status-badge.hadir {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
}

.roster-status-badge.ragu {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid #f59e0b;
}

.roster-status-badge.tidak {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid #ef4444;
}

.roster-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.roster-details span {
  color: #fff;
  font-weight: 600;
}

.roster-msg {
  background: rgba(0, 0, 0, 0.25);
  border-left: 2px solid #ff2e93;
  padding: 6px 10px;
  font-style: italic;
  font-size: 0.75rem;
  color: #ffd1ea;
  margin-bottom: 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.roster-reactions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reaction-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 119, 198, 0.2);
  color: #ffd1ea;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.reaction-btn:hover {
  background: rgba(255, 46, 147, 0.25);
  border-color: #ff2e93;
  color: #fff;
}

.reaction-btn.delete-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fca5a5;
}

/* ==========================================================================
   DIGITAL GIFT & AMPLOP
   ========================================================================== */
.gift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gift-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 46, 147, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gift-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.gift-icon {
  font-size: 2rem;
}

.gift-icon.diamond {
  color: #ff77c6;
  filter: drop-shadow(0 0 8px #ff2e93);
}

.gift-icon.gopay {
  color: #f472b6;
  filter: drop-shadow(0 0 8px #f472b6);
}

.gift-header h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.gift-header p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gift-account-box {
  background: rgba(18, 5, 26, 0.75);
  border: 1px solid rgba(255, 46, 147, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.acc-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.acc-number {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #ff77c6;
  letter-spacing: 1px;
}

.acc-owner {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.copy-btn {
  background: rgba(255, 46, 147, 0.2);
  border: 1px solid #ff2e93;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.copy-btn:hover {
  background: #ff2e93;
  box-shadow: 0 0 12px rgba(255, 46, 147, 0.6);
}

/* ==========================================================================
   SHARE MODAL & FLOATING BUTTONS
   ========================================================================== */
.share-section {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(255, 46, 147, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #190526;
  border: 1px solid rgba(255, 46, 147, 0.45);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 0 50px rgba(255, 46, 147, 0.35);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.url-copy-box {
  display: flex;
  gap: 8px;
  margin: 14px 0 20px;
}

.url-copy-box input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 46, 147, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #ffd1ea;
  font-size: 0.8rem;
}

/* FLOATING CONTROLS */
.floating-controls {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

/* .control-btn is the HTML class used in index.html */
.control-btn,
.floating-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #230833;
  border: 2px solid #ff2e93;
  color: #ff77c6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 46, 147, 0.45);
  transition: var(--transition);
}

.control-btn:hover,
.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 46, 147, 0.8);
}

.control-btn.paused,
.floating-btn.paused {
  opacity: 0.6;
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

/* Music bars: HTML uses <span> inside .music-bars */
.music-bars span {
  width: 3px;
  background: #ff2e93;
  border-radius: 2px;
  display: inline-block;
  animation: barBounce 1s ease-in-out infinite alternate;
}

.music-bars span:nth-child(1) { height: 10px; animation-delay: 0.0s; }
.music-bars span:nth-child(2) { height: 16px; animation-delay: 0.2s; }
.music-bars span:nth-child(3) { height: 8px;  animation-delay: 0.4s; }
.music-bars span:nth-child(4) { height: 14px; animation-delay: 0.1s; }

.control-btn.paused .music-bars span,
.floating-btn.paused .music-bars span {
  animation: none;
  height: 4px !important;
}

/* Legacy .bar class kept for backward compat */
.bar {
  width: 3px;
  background: #ff2e93;
  border-radius: 2px;
  animation: barBounce 1s ease-in-out infinite alternate;
}
.bar-1 { height: 60%; animation-delay: 0.1s; }
.bar-2 { height: 100%; animation-delay: 0.3s; }
.bar-3 { height: 40%; animation-delay: 0.5s; }

@keyframes barBounce {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* ==========================================================================
   ANNOUNCEMENT BANNER & TOAST
   ========================================================================== */
.announcement-banner {
  position: fixed;
  top: 0;
  left: 50%;
  /* Default: fully hidden above viewport, offset by its own height */
  transform: translateX(-50%) translateY(calc(-100% - 24px));
  background: linear-gradient(135deg, rgba(46, 8, 60, 0.95), rgba(90, 15, 80, 0.95));
  border: 2px solid #ff2e93;
  border-radius: var(--radius-md);
  padding: 16px 36px;
  text-align: center;
  z-index: 10001;
  box-shadow: 0 0 50px rgba(255, 46, 147, 0.7);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  backdrop-filter: blur(12px);
  min-width: 280px;
  max-width: calc(100vw - 32px);
}

.announcement-banner.show {
  /* Slide in: move down from above viewport */
  transform: translateX(-50%) translateY(30px);
}

.announcement-banner h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.announcement-banner p {
  font-size: 0.8rem;
  color: #fdf2f8;
  letter-spacing: 1px;
}

.toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(28, 8, 38, 0.95);
  border: 1px solid #ff2e93;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10002;
  transition: bottom 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 46, 147, 0.5);
  pointer-events: none;
}

.toast.show {
  bottom: 24px;
}

/* FOOTER */
.footer-section {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 46, 147, 0.2);
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-quote {
  font-style: italic;
  color: #ff77c6;
  font-size: 0.9rem;
  margin: 0 auto 20px;
  max-width: 560px;
  line-height: 1.6;
}

.footer-sign {
  margin-bottom: 24px;
}

.footer-sign p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-sign h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #ff77c6;
  letter-spacing: 1px;
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 46, 147, 0.1);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Mini mythic crest in footer */
.mythic-crest.mini {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 46, 147, 0.25), transparent 70%);
  border: 1px solid rgba(255, 46, 147, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: #ff77c6;
  filter: drop-shadow(0 0 8px #ff2e93);
  box-shadow: 0 0 20px rgba(255, 46, 147, 0.35);
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE QUERIES - MOBILE FIRST
   ========================================================================== */

/* ---- Base Mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  .main-container {
    padding: 12px 12px 100px;
  }

  .section {
    margin-bottom: 48px;
  }

  .section-title {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  /* Cover card - smaller on phones */
  .cover-card {
    padding: 28px 18px;
  }

  .main-title {
    font-size: clamp(1.2rem, 7vw, 1.8rem);
  }

  .crest-icon {
    font-size: 2.2rem;
  }

  /* Hero section */
  .hero-section {
    padding: 24px 12px 12px;
  }

  /* Hosts grid - single column */
  .hosts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Countdown - shrink boxes */
  .countdown-grid {
    gap: 8px;
  }

  .time-box {
    min-width: 58px;
    padding: 10px 6px;
    border-radius: var(--radius-sm);
  }

  .time-value {
    font-size: 1.4rem;
  }

  .time-label {
    font-size: 0.6rem;
  }

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

  .calendar-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Timeline */
  .timeline {
    padding-left: 24px;
  }

  .timeline-dot {
    left: -24px;
    width: 20px;
    height: 20px;
    font-size: 0.55rem;
  }

  .timeline::before {
    left: 9px;
  }

  .timeline-title {
    font-size: 0.9rem;
  }

  /* Venue */
  .venue-details-grid {
    grid-template-columns: 1fr;
  }

  /* Rules */
  .rules-grid {
    grid-template-columns: 1fr;
  }

  /* Roulette - scale down wheel */
  .wheel-box {
    width: 260px;
    height: 260px;
  }

  #roulette-wheel {
    width: 260px;
    height: 260px;
  }

  /* Soundboard */
  .soundboard-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .sound-btn {
    padding: 10px 6px;
    font-size: 0.65rem;
  }

  .sound-btn i {
    font-size: 1.1rem;
  }

  /* RSVP - stack form and roster */
  .rsvp-wrapper {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Gift */
  .gift-grid {
    grid-template-columns: 1fr;
  }

  /* Gift code box */
  .gift-code-box {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  /* Squad banner */
  .squad-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  /* Floating controls - smaller */
  .floating-controls {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }

  .control-btn, .floating-btn {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  /* Announcement banner - full width on mobile */
  .announcement-banner {
    width: calc(100% - 32px);
    padding: 12px 16px;
  }

  .announcement-banner h2 {
    font-size: 1.2rem;
  }

  /* Modal */
  .modal-card {
    padding: 24px 16px;
  }

  /* Role filter tabs - scrollable */
  .role-filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .filter-tab {
    flex-shrink: 0;
  }

  /* Footer */
  .footer-title {
    font-size: 1.1rem;
  }
}

/* ---- Tablet (481px – 768px) ---- */
@media (max-width: 768px) {
  .leaders-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .versus-divider {
    transform: rotate(90deg);
    margin: 10px 0;
  }

  .rules-grid, .rsvp-wrapper, .gift-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .time-box {
    min-width: 65px;
    padding: 12px 8px;
  }

  .time-value {
    font-size: 1.6rem;
  }

  .soundboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Venue stacks on tablet */
  .venue-details-grid {
    grid-template-columns: 1fr;
  }

  /* Roulette container stacks */
  .roulette-container {
    padding: 24px 16px;
  }

  /* Gift code box wraps */
  .gift-code-box {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Hosts grid single col on tablet too */
  .hosts-grid {
    grid-template-columns: 1fr;
  }

  /* Section title */
  .section-title {
    font-size: 1.35rem;
  }
}

/* ==========================================================================
   CLASS ALIASES - Fix HTML/CSS class name mismatches
   ========================================================================== */

/* Hero Section - Missing classes */
.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: #ff77c6;
  background: rgba(255, 46, 147, 0.15);
  border: 1px solid rgba(255, 46, 147, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.6;
}

.hero-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Host Section - Aliases for HTML classes */
.host-section {
  /* inherits from .section */
}

.hosts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.host-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 46, 147, 0.3);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.host-card:hover {
  transform: translateY(-4px);
  border-color: #ff2e93;
  box-shadow: 0 0 30px rgba(255, 46, 147, 0.35);
}

.host-avatar-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.avatar-frame {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
}

.assassin-frame {
  background: radial-gradient(circle, rgba(255, 46, 147, 0.3), rgba(139, 0, 60, 0.4));
  border: 2px solid #ff2e93;
  box-shadow: 0 0 20px rgba(255, 46, 147, 0.5);
}

.roamer-frame {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.3), rgba(30, 64, 175, 0.4));
  border: 2px solid #60a5fa;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.avatar-icon {
  font-size: 2.2rem;
  color: #fff;
  filter: drop-shadow(0 0 8px currentColor);
}

.role-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 14px;
  border: 1px solid;
}

.role-badge.assassin {
  color: #ff77c6;
  border-color: rgba(255, 46, 147, 0.5);
  background: rgba(255, 46, 147, 0.1);
}

.role-badge.roamer {
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(96, 165, 250, 0.1);
}

.host-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #fff;
}

/* host-ign already defined above but fix the font-size */
.host-ign {
  font-size: 0.85rem !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.host-ign span {
  color: #ff77c6;
  font-family: var(--font-display);
  font-size: 0.9rem;
}

/* Badge count in roster */
.badge-count {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 46, 147, 0.3);
  border: 1px solid rgba(255, 46, 147, 0.5);
  padding: 3px 10px;
  border-radius: 14px;
}

/* ==========================================================================
   MISSING CLASSES - Added from HTML audit
   ========================================================================== */

/* MODAL CARD (HTML uses .modal-card not .modal-box) */
.modal-card {
  background: #190526;
  border: 1px solid rgba(255, 46, 147, 0.45);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 0 50px rgba(255, 46, 147, 0.35);
  animation: coverZoomIn 0.3s ease;
}

.modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.modal-icon {
  font-size: 2rem;
  color: #ff77c6;
  filter: drop-shadow(0 0 10px #ff2e93);
  display: block;
  margin-bottom: 10px;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-body {
  /* Body wrapper for modal content */
}

.close-modal-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
  z-index: 1;
}

.close-modal-btn:hover {
  color: #fff;
  transform: scale(1.2);
}

.generated-url-box {
  display: flex;
  gap: 8px;
  margin: 14px 0 16px;
}

.generated-url-box input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 46, 147, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #ffd1ea;
  font-size: 0.8rem;
  font-family: var(--font-body);
  min-width: 0;
}

.share-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-share.wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.35);
}

.btn-share.wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.6);
}

/* BADGE LIVE (timeline highlight) */
.badge-live {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(135deg, #ff2e93, #c026d3);
  padding: 3px 10px;
  border-radius: 14px;
  margin-bottom: 6px;
  text-transform: uppercase;
  animation: pulseGlow 2s infinite;
  box-shadow: 0 0 10px rgba(255, 46, 147, 0.6);
}

/* TIMELINE HIGHLIGHT */
.timeline-item.highlight .timeline-card {
  border-color: rgba(255, 46, 147, 0.6);
  background: rgba(45, 12, 60, 0.85);
  box-shadow: 0 0 20px rgba(255, 46, 147, 0.2);
}

.timeline-item.highlight .timeline-dot {
  background: linear-gradient(135deg, #ff2e93, #db2777);
  box-shadow: 0 0 20px rgba(255, 46, 147, 0.9);
}

/* VENUE SECTION */
.venue-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 46, 147, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 30px;
  backdrop-filter: blur(12px);
}

.venue-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 46, 147, 0.2);
}

.venue-icon {
  font-size: 2rem;
  color: #ff77c6;
  filter: drop-shadow(0 0 8px #ff2e93);
  flex-shrink: 0;
}

.venue-header h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.venue-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.venue-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.venue-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 46, 147, 0.06);
  border: 1px solid rgba(255, 46, 147, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: var(--transition);
}

.venue-box:hover {
  border-color: rgba(255, 46, 147, 0.5);
  background: rgba(255, 46, 147, 0.1);
}

.venue-box i {
  font-size: 1.3rem;
  color: #ff77c6;
  margin-top: 2px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px #ff2e93);
}

.venue-box strong {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.venue-box p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.venue-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 46, 147, 0.15);
}

/* GIFT CODE BOX */
.gift-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(18, 5, 26, 0.75);
  border: 1px solid rgba(255, 46, 147, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 10px;
}

.gift-code-box span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ff77c6;
  letter-spacing: 1px;
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.gift-holder {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.gift-icon.wallet {
  color: #a78bfa;
  filter: drop-shadow(0 0 8px #7c3aed);
}

.gift-icon.bank {
  color: #fbbf24;
  filter: drop-shadow(0 0 8px #d97706);
}

/* ANNOUNCEMENT BANNER CREST */
.banner-crest {
  font-size: 1.8rem;
  color: #ff77c6;
  filter: drop-shadow(0 0 8px #ff2e93);
  margin-bottom: 6px;
}

/* HOST STATS INSIDE HOST CARD */
.host-card .host-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  border: 1px solid rgba(255, 46, 147, 0.2);
}

.host-card .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.host-card .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #ff77c6;
}

.host-card .stat-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.host-quote {
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(255, 46, 147, 0.05);
  border-left: 2px solid rgba(255, 46, 147, 0.4);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-align: left;
}

/* Ensure body can scroll after cover is dismissed */
body:not(.is-locked) {
  overflow-y: auto !important;
}

/* Fix for main content being hidden behind cover */
#main-content {
  display: block;
}

/* Fix cover modal scrolling on very small screens */
.cover-screen {
  overflow-y: auto;
}

/* Ensure no horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Fix canvas roulette overflow on mobile - use CSS transform scale instead */
@media (max-width: 360px) {
  .wheel-box {
    width: 240px;
    height: 240px;
  }
  #roulette-wheel {
    width: 240px !important;
    height: 240px !important;
  }
}
