/* --------------------------------------------------------------------------
 * Bigtor Friends - Kids Interactive Live Streaming Platform Theme
 * Design System: Child-Safe Neumorphism, Playful Glassmorphism & Jelly VFX
 * -------------------------------------------------------------------------- */

/* 1. CSS VARIABLES & ROOT DESIGN TOKENS */
:root {
  /* Typography */
  --font-display: 'Jua', 'Fredoka', 'Noto Sans KR', cursive, -apple-system, sans-serif;
  --font-body: 'Nunito', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Brand Candy Palette */
  --brand-mint: #36E59A;
  --brand-mint-deep: #1FA369;
  --brand-mint-glow: rgba(54, 229, 154, 0.45);
  --brand-pink: #FF4D79;
  --brand-pink-soft: #FF8BA7;
  --brand-pink-glow: rgba(255, 77, 121, 0.45);
  --brand-gold: #FFD028;
  --brand-gold-deep: #F5A623;
  --brand-gold-glow: rgba(255, 208, 40, 0.5);
  --brand-purple: #9B5DE5;
  --brand-purple-dark: #6E38B8;
  --brand-purple-glow: rgba(155, 93, 229, 0.45);
  --brand-cyan: #00F5D4;
  --brand-blue: #00BBF9;
  --brand-coral: #FF6B6B;

  /* Deep Cosmic Background Palette */
  --bg-deep: #0C112B;
  --bg-surface: #141B3B;
  --bg-surface-elevated: #1D2550;
  --bg-glass-card: rgba(26, 35, 75, 0.72);
  --bg-glass-card-hover: rgba(36, 48, 98, 0.85);
  --bg-glass-border: rgba(255, 255, 255, 0.14);
  --bg-glass-highlight: rgba(255, 255, 255, 0.25);

  /* Text Colors */
  --text-white: #FFFFFF;
  --text-cream: #FFFDF8;
  --text-muted: #A3B1DA;
  --text-dark: #1E2238;

  /* Shadows & Jelly 3D Elevations */
  --shadow-jelly-mint: 0 10px 0 var(--brand-mint-deep), 0 14px 25px rgba(54, 229, 154, 0.4);
  --shadow-jelly-pink: 0 10px 0 #D42854, 0 14px 25px rgba(255, 77, 121, 0.4);
  --shadow-jelly-gold: 0 10px 0 #D98804, 0 14px 25px rgba(255, 208, 40, 0.45);
  --shadow-jelly-purple: 0 10px 0 var(--brand-purple-dark), 0 14px 25px rgba(155, 93, 229, 0.4);
  --shadow-jelly-cyan: 0 10px 0 #00B49B, 0 14px 25px rgba(0, 245, 212, 0.4);
  --shadow-jelly-coral: 0 10px 0 #D63E3E, 0 14px 25px rgba(255, 107, 107, 0.4);
  --shadow-subtle: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.65);

  /* Radii */
  --radius-pill: 9999px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  /* Header Height */
  --header-height: 84px;
}

/* 2. UNIVERSAL RESET & ACCESSIBILITY GUARD */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  word-break: keep-all;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  /* Prevent accidental text selection and tap flashes during wild kid tapping */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.kids-theme {
  background: radial-gradient(circle at 15% 15%, #182252 0%, #0C112B 55%, #070A1C 100%);
  background-attachment: fixed;
  position: relative;
}

input, button, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 3. FLOATING AMBIENT ATMOSPHERE SPARKLES */
.ambient-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-star {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0.55;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
  animation: floatAmbient 12s infinite ease-in-out;
}

.star-1 { top: 8%; left: 4%; animation-delay: 0s; font-size: 2rem; }
.star-2 { top: 22%; right: 6%; animation-delay: 2s; font-size: 2.2rem; }
.star-3 { top: 65%; left: 8%; animation-delay: 4.5s; font-size: 1.6rem; }
.star-4 { top: 80%; right: 12%; animation-delay: 1.2s; font-size: 2.4rem; }
.star-5 { top: 45%; left: 2%; animation-delay: 3s; font-size: 2rem; }
.star-6 { top: 38%; right: 3%; animation-delay: 5s; font-size: 2.6rem; }

/* 4. PLATFORM HEADER & KIDS NAVIGATION */
.platform-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(16px, 3vw, 40px);
  background: rgba(14, 20, 48, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--bg-glass-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  box-sizing: border-box;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}

/* Mascot Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover {
  transform: scale(1.06) rotate(-2deg);
}

.logo-mascot {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, #56FFAF 0%, #20BF76 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--brand-mint-glow);
  padding: 2px;
}

.mascot-face-svg {
  width: 100%;
  height: 100%;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #36E59A 0%, #FFD028 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--brand-pink-soft);
}

/* Navigation Shortcut Pills */
.nav-shortcuts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.nav-tab-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid transparent;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-tab-pill .tab-icon {
  font-size: 1.15rem;
}

.nav-tab-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  transform: translateY(-2px);
}

.nav-tab-pill.active {
  background: linear-gradient(135deg, rgba(54, 229, 154, 0.22) 0%, rgba(0, 245, 212, 0.15) 100%);
  color: var(--brand-mint);
  border-color: var(--brand-mint);
  box-shadow: 0 4px 18px var(--brand-mint-glow);
}

.badge-dot-live {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--brand-pink);
  box-shadow: 0 0 10px var(--brand-pink);
  animation: neonPulse 1.4s infinite ease-in-out;
}

/* Currency & Chest Badges */
.kid-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.kid-profile-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  box-sizing: border-box;
}

.btn-round-tool {
  width: 44px;
  height: 44px;
  min-width: 44px;
}

.kid-badge:hover {
  transform: translateY(-2px);
}

.currency-badge {
  background: linear-gradient(135deg, rgba(255, 208, 40, 0.16) 0%, rgba(245, 166, 35, 0.08) 100%);
  border-color: rgba(255, 208, 40, 0.45);
}

.candy-spin {
  display: inline-block;
  animation: candySpin 6s linear infinite;
  font-size: 1.25rem;
}

.currency-badge .badge-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.currency-badge .badge-unit {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.chest-btn {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 77, 121, 0.16) 0%, rgba(155, 93, 229, 0.12) 100%);
  border-color: rgba(255, 77, 121, 0.4);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.chest-bounce {
  display: inline-block;
  font-size: 1.25rem;
  animation: chestBounce 2.2s infinite ease-in-out;
}

.badge-notify-bubble {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--brand-coral);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.8);
  border: 2px solid var(--bg-surface);
}

/* Kids Profile Pill */
.kid-profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
}

.profile-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  object-fit: cover;
  border: 2px solid var(--brand-pink);
}

.level-indicator {
  position: absolute;
  bottom: -4px;
  right: -6px;
  background: var(--brand-gold);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--bg-surface);
}

.profile-details {
  display: flex;
  flex-direction: column;
}

.profile-nickname {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.1;
}

.profile-tier-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-mint);
}

/* Audio Toggle Round Tool Button */
.btn-round-tool {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-round-tool:hover {
  transform: scale(1.1);
  border-color: var(--brand-gold);
  box-shadow: 0 0 16px var(--brand-gold-glow);
}

.btn-round-tool:active {
  transform: scale(0.92);
}

/* Single Rotating Language Flag Button (Main & Admin) */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  height: 44px;
  min-width: 68px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(29, 37, 80, 0.95) 0%, rgba(16, 22, 54, 0.98) 100%);
  border: 2px solid rgba(54, 229, 154, 0.55);
  color: var(--text-white);
  font-family: var(--font-display);
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 12px rgba(54, 229, 154, 0.2);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
  perspective: 400px;
}

.lang-toggle-btn:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--brand-gold);
  box-shadow: 0 0 18px var(--brand-gold-glow);
}

.lang-toggle-btn:active {
  transform: scale(0.93);
}

body.is-admin-mode #langToggleBtn {
  display: none !important;
}

.btn-admin-lang-rotate {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.18) 0%, rgba(54, 229, 154, 0.22) 100%) !important;
  border-color: var(--brand-cyan) !important;
  color: var(--text-white) !important;
  min-width: 68px;
  perspective: 400px;
}

.btn-admin-lang-rotate:hover {
  background: linear-gradient(135deg, #36E59A 0%, #00F5D4 100%) !important;
  color: var(--text-dark) !important;
  border-color: var(--brand-gold) !important;
  box-shadow: 0 0 16px var(--brand-mint-glow);
}

.lang-flag-rotor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.lang-flag-rotor .flag-emoji {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-block;
}

.lang-flag-rotor.is-rotating {
  animation: flagRotateSwitch 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes flagRotateSwitch {
  0% {
    transform: rotateY(0deg) rotateZ(0deg) scale(0.85);
    opacity: 0.5;
  }
  50% {
    transform: rotateY(180deg) rotateZ(180deg) scale(1.18);
    opacity: 0.9;
  }
  100% {
    transform: rotateY(360deg) rotateZ(360deg) scale(1);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .lang-toggle-btn {
    height: 38px;
    min-width: 44px;
    padding: 0 10px;
  }

  .lang-toggle-btn .flag-text {
    display: none;
  }
}

/* 5. VIEW PANEL MANAGEMENT & TRANSITIONS */
.platform-main {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  padding-bottom: 0;
}

.view-panel {
  display: none;
  opacity: 0;
}

.view-panel.active {
  display: block;
  opacity: 1;
  animation: fadeInView 0.38s ease-out forwards;
}

.view-panel.view-home.active,
#viewHome.active,
section.view-home.active {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100%;
}

.view-panel.view-live-room.active,
#viewLiveRoom.active,
section.view-live-room.active {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100%;
}

.view-panel.view-admin.active,
#viewAdmin.active,
section.view-admin.active {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100%;
}

/* 6. VIEW 1: NETFLIX KIDS HOME BROWSING VIEW */
.view-home {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px clamp(16px, 3vw, 40px) 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Hero Spotlight Live Card */
.hero-live-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(27, 36, 82, 0.88) 0%, rgba(16, 22, 54, 0.94) 100%);
  border: 2.5px solid rgba(54, 229, 154, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(54, 229, 154, 0.15);
  overflow: hidden;
  padding: clamp(28px, 4vw, 54px);
}

.hero-backdrop-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(54, 229, 154, 0.22) 0%, rgba(155, 93, 229, 0.18) 45%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.on-air-neon {
  background: rgba(255, 77, 121, 0.2);
  color: #FF5E89;
  border: 1.5px solid var(--brand-pink);
  box-shadow: 0 0 15px rgba(255, 77, 121, 0.5);
}

.neon-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: #FF3366;
  box-shadow: 0 0 8px #FF3366;
  animation: neonPulse 1.2s infinite ease-in-out;
}

.viewers-neon {
  background: rgba(0, 245, 212, 0.15);
  color: var(--brand-cyan);
  border: 1.5px solid var(--brand-cyan);
}

.flash-mode {
  background: rgba(255, 208, 40, 0.18);
  color: var(--brand-gold);
  border: 1.5px solid var(--brand-gold);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.22;
  color: var(--text-white);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.hero-desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-host-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.host-chip, .tag-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
}

.host-chip {
  background: rgba(54, 229, 154, 0.18);
  color: var(--brand-mint);
  border: 1px solid rgba(54, 229, 154, 0.4);
}

.tag-chip {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
}

.hero-actions-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-top: 12px;
}

.btn-hero-cta.btn-jelly {
  min-height: 60px;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

/* Giant 3D Jelly CTA Button */
.btn-hero-cta.btn-jelly {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #36E59A 0%, #1FB874 100%);
  color: var(--text-dark);
  box-shadow: var(--shadow-jelly-mint);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-hero-cta.btn-jelly:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 0 var(--brand-mint-deep), 0 20px 35px rgba(54, 229, 154, 0.55);
}

.btn-hero-cta.btn-jelly:active {
  transform: translateY(6px);
  box-shadow: 0 4px 0 var(--brand-mint-deep), 0 8px 16px rgba(54, 229, 154, 0.4);
}

.cta-icon-wrap {
  font-size: 2.2rem;
  display: flex;
  align-items: center;
}

.cta-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
}

.cta-subline {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(30, 34, 56, 0.85);
}

.btn-hero-secondary {
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 2px solid var(--bg-glass-border);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* Hero Stage Preview Graphic */
.hero-visual-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-stage-mock {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 320px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 40%, #1E285C 0%, #10163A 100%);
  border: 3px solid rgba(54, 229, 154, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mock-character-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mascot-figure {
  animation: heroMascotHover 4s infinite ease-in-out;
}

.floating-bubble {
  position: absolute;
  font-size: 1.8rem;
  animation: floatAmbient 5s infinite ease-in-out;
}

.bubble-star { top: 25px; left: 40px; animation-delay: 0.2s; }
.bubble-heart { top: 40px; right: 35px; animation-delay: 1.5s; }
.bubble-fart { bottom: 60px; left: 30px; animation-delay: 2.7s; }

.mock-stage-badge {
  position: absolute;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: var(--brand-mint);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(54, 229, 154, 0.35);
}

/* Category Filter Track */
.category-filters-container {
  width: 100%;
  overflow: hidden;
  margin: 4px 0 2px 0;
}

.filter-scroll-track {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 4px 14px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-scroll-track::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chip-emoji {
  font-size: 1.25rem;
}

.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.filter-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-chip.active {
  background: linear-gradient(135deg, rgba(255, 208, 40, 0.22) 0%, rgba(245, 166, 35, 0.15) 100%);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  box-shadow: 0 4px 20px var(--brand-gold-glow);
  transform: scale(1.05);
}

.filter-chip.active .chip-count {
  background: var(--brand-gold);
  color: var(--text-dark);
  font-weight: 700;
}

/* Netflix-Style Live Channels Section */
.live-channels-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title-with-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  color: var(--text-white);
}

.sparkle-badge {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 245, 212, 0.15);
  border: 1px solid var(--brand-cyan);
  color: var(--brand-cyan);
  font-size: 0.85rem;
  font-weight: 700;
}

.carousel-nav-arrows {
  display: flex;
  gap: 10px;
}

.btn-arrow-pill {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-arrow-pill:hover {
  background: var(--brand-mint);
  color: var(--text-dark);
  border-color: var(--brand-mint);
  transform: scale(1.08);
}

/* Channels Grid */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
  padding: 10px 4px 18px 4px;
}

.channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg-glass-card);
  border: 2px solid var(--bg-glass-border);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.channel-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* Color Accent Variations */
.channel-card.card-cyan:hover { border-color: var(--brand-cyan); box-shadow: 0 18px 45px rgba(0, 245, 212, 0.3); }
.channel-card.card-pink:hover { border-color: var(--brand-pink); box-shadow: 0 18px 45px rgba(255, 77, 121, 0.3); }
.channel-card.card-yellow:hover { border-color: var(--brand-gold); box-shadow: 0 18px 45px rgba(255, 208, 40, 0.3); }
.channel-card.card-purple:hover { border-color: var(--brand-purple); box-shadow: 0 18px 45px rgba(155, 93, 229, 0.3); }

.card-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111738;
}

.card-backdrop-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.4s ease;
}

.channel-card:hover .card-backdrop-art {
  transform: scale(1.08);
}

.art-space { background: radial-gradient(circle, #253372 0%, #11183E 100%); }
.art-dance { background: radial-gradient(circle, #611D45 0%, #20112A 100%); }
.art-quiz { background: radial-gradient(circle, #5E4613 0%, #251D0C 100%); }
.art-kitchen { background: radial-gradient(circle, #3D1E68 0%, #180D2D 100%); }

.art-planet, .art-disc, .art-brain, .art-cake {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2.2rem;
  opacity: 0.6;
}

.art-star-streak, .art-note, .art-spark, .art-sparkle {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 1.8rem;
  opacity: 0.6;
}

.card-mascot-sprite {
  font-size: 4.8rem;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.channel-card:hover .card-mascot-sprite {
  transform: scale(1.15) rotate(6deg);
}

/* Badges on Thumbnail */
.card-badges-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 77, 121, 0.9);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255, 77, 121, 0.7);
}

.live-dot-blink {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: #FFF;
  animation: neonPulse 1s infinite ease-in-out;
}

.badge-viewer-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: var(--text-white);
  font-size: 0.78rem;
  font-weight: 700;
}

/* Card Hover Action Overlay */
.card-hover-action {
  position: absolute;
  inset: 0;
  background: rgba(12, 17, 43, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.channel-card:hover .card-hover-action {
  opacity: 1;
  pointer-events: auto;
}

.btn-card-enter {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #36E59A 0%, #1FB874 100%);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: var(--shadow-jelly-mint);
  transform: scale(0.9);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.channel-card:hover .btn-card-enter {
  transform: scale(1);
}

.btn-card-enter:hover {
  transform: scale(1.08);
}

/* Card Information Box */
.card-info-box {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.channel-host-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.host-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.host-green { background: #36E59A; }
.host-pink { background: #FF4D79; }
.host-yellow { background: #FFD028; }
.host-purple { background: #9B5DE5; }

.host-meta {
  display: flex;
  flex-direction: column;
}

.host-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
}

.channel-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.channel-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.2px;
  word-break: keep-all;
  color: var(--text-white);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--bg-glass-border);
}

.reward-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.stage-state-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-mint);
}

/* Daily Play Mission Track Banner */
.quest-track-banner {
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(155, 93, 229, 0.25) 0%, rgba(27, 36, 82, 0.85) 100%);
  border: 2px solid rgba(155, 93, 229, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  padding: clamp(20px, 3.2vw, 36px);
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.quest-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.quest-text-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--brand-purple);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
}

.quest-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 700;
  color: var(--text-white);
}

.quest-steps-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.quest-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.quest-step .step-num, .quest-step .step-check {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.quest-step.done {
  background: rgba(54, 229, 154, 0.2);
  color: var(--brand-mint);
  border: 1px solid var(--brand-mint);
}

.quest-step.done .step-check {
  background: var(--brand-mint);
  color: var(--text-dark);
  font-weight: 900;
}

.quest-step.active {
  background: rgba(255, 208, 40, 0.2);
  color: var(--brand-gold);
  border: 1px solid var(--brand-gold);
}

.quest-step.active .step-num {
  background: var(--brand-gold);
  color: var(--text-dark);
  font-weight: 900;
}

.quest-reward-col {
  display: flex;
  align-items: center;
  gap: 20px;
}

.reward-chest-visual {
  position: relative;
  font-size: 3.8rem;
  animation: chestBounce 2.5s infinite ease-in-out;
}

.btn-claim-quest {
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #FFD028 0%, #F5A623 100%);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow-jelly-gold);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-claim-quest:hover {
  transform: translateY(-3px) scale(1.04);
}

.btn-claim-quest:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #D98804;
}

/* 7. VIEW 2: FULL-FEATURED LIVE INTERACTIVE ROOM */
.view-live-room {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 12px clamp(12px, 2vw, 28px) 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

/* Live Stage Header Bar */
.room-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  box-shadow: var(--shadow-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.room-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-room-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--bg-glass-border);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-room-back:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(-4px);
}

.room-title-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-live-neon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 77, 121, 0.2);
  border: 1px solid var(--brand-pink);
  color: var(--brand-pink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.pulse-red {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-pink);
  box-shadow: 0 0 8px var(--brand-pink);
  animation: neonPulse 1s infinite ease-in-out;
}

.badge-category-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.badge-wasm-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(54, 229, 154, 0.15);
  border: 1px solid rgba(54, 229, 154, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-mint);
}

.wasm-bolt {
  font-size: 0.85rem;
}

.current-room-heading {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: var(--text-white);
}

.room-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Leaderboard Mini Top 3 Dock */
.live-leaderboard-dock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(14, 20, 48, 0.7);
  border: 1.5px solid var(--bg-glass-border);
}

.leaderboard-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.ranker-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ranker-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
}

.ranker-chip.gold { background: rgba(255, 208, 40, 0.2); color: var(--brand-gold); }
.ranker-chip.silver { background: rgba(220, 225, 240, 0.2); color: #E0E5F5; }
.ranker-chip.bronze { background: rgba(217, 136, 4, 0.2); color: #FFA347; }

.ranker-score {
  opacity: 0.85;
}

.room-viewers-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Split Workspace Grid */
.room-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: stretch;
}

/* Left: Interactive Character Stage Column */
.stage-column {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Canvas Screen Box Container (Full Studio Radio Booth View) */
.canvas-screen-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #FFFDF0;
  border: 4px solid #FFD028;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 35px rgba(255, 208, 40, 0.3);
  overflow: hidden;
  touch-action: none;
}

/* Right-side Studio Floating Animated Sticker Feed Overlay */
.studio-screen-live-decorations {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: 190px;
  pointer-events: none;
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.studio-sticker-chat-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.studio-sticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  animation: stickerFlyIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sticker-avatar {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.sticker-text-box {
  display: flex;
  flex-direction: column;
}

.sticker-user {
  font-size: 0.7rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  line-height: 1;
  margin-bottom: 2px;
}

.sticker-bubble {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  color: #1F2232;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  border: 2px solid #000;
  letter-spacing: -0.5px;
}

.sticker-bubble.color-cyan { background: #38E4D8; }
.sticker-bubble.color-orange { background: #FFAE33; }
.sticker-bubble.color-mint { background: #7CFF9B; }
.sticker-bubble.color-blue { background: #55C5FF; }
.sticker-bubble.color-lime { background: #C5FA3A; }

/* Grand Yellow STICKER Button Badge (Matching Screenshot) */
.btn-studio-grand-sticker {
  pointer-events: auto;
  align-self: flex-end;
  padding: 8px 24px;
  border-radius: 10px;
  background: #FFC800;
  border: 3.5px solid #000000;
  color: #000000;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  box-shadow: 0 6px 0 #000000, 0 8px 16px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: all 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-studio-grand-sticker:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 0 #D98804, 0 14px 25px rgba(255, 208, 40, 0.5);
}

.btn-studio-grand-sticker:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #D98804;
}

/* Studio Dual MC Flash Control Dock */
.studio-dual-mc-control-dock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  box-shadow: var(--shadow-subtle);
}

.studio-dock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.dock-badge-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.keyboard-guide-chip {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-glass-border);
  color: var(--brand-cyan);
  font-size: 0.8rem;
  font-weight: 700;
}

.dock-custom-upload-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-upload-sprite-sheet {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(155, 93, 229, 0.3) 0%, rgba(54, 229, 154, 0.25) 100%);
  border: 1.5px solid var(--brand-purple);
  color: #FFF;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-upload-sprite-sheet:hover {
  background: var(--brand-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--brand-purple-glow);
}

.btn-ai-char-btn {
  background: linear-gradient(135deg, rgba(255, 208, 40, 0.3) 0%, rgba(255, 77, 121, 0.3) 100%);
  border-color: var(--brand-gold);
}

.btn-ai-char-btn:hover {
  background: linear-gradient(135deg, #FFD028 0%, #FF4D79 100%);
  color: #1E2238;
  box-shadow: 0 4px 16px var(--brand-gold-glow);
}

.btn-reset-default-mc {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 77, 121, 0.2);
  border: 1px solid var(--brand-pink);
  color: var(--brand-pink);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.studio-controllers-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .studio-controllers-split {
    grid-template-columns: 1fr;
  }
}

.mc-control-group {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mc-group-left {
  background: rgba(54, 229, 154, 0.08);
  border-color: rgba(54, 229, 154, 0.3);
}

.mc-group-right {
  background: rgba(255, 174, 51, 0.08);
  border-color: rgba(255, 174, 51, 0.3);
}

.mc-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mc-avatar-pill {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.avatar-green { background: #36E59A; color: #1E2238; }
.avatar-orange { background: #FFAE33; color: #1E2238; }

.mc-key-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mc-buttons-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.btn-pose-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 2px solid var(--bg-glass-border);
  color: var(--text-white);
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.key-badge {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--brand-gold);
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 4px;
  border-radius: 4px;
}

.pose-icon {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.pose-text {
  font-size: 0.8rem;
  font-weight: 700;
}

.btn-pose-action:hover {
  transform: translateY(-2px);
  border-color: var(--brand-gold);
}

.btn-pose-action:hover .pose-icon {
  transform: scale(1.2);
}

.btn-pose-action.key-pressed {
  transform: translateY(4px) scale(0.96) !important;
  box-shadow: 0 0 16px var(--brand-gold) !important;
}

.custom-mc-select {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1.5px solid var(--brand-purple);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.btn-pose-action.pose-left.active {
  background: linear-gradient(135deg, rgba(54, 229, 154, 0.3) 0%, rgba(32, 191, 118, 0.35) 100%);
  border-color: #36E59A;
  color: #36E59A;
  box-shadow: 0 0 14px rgba(54, 229, 154, 0.4);
}

.btn-pose-action.pose-right.active {
  background: linear-gradient(135deg, rgba(255, 174, 51, 0.3) 0%, rgba(224, 133, 16, 0.35) 100%);
  border-color: #FFAE33;
  color: #FFAE33;
  box-shadow: 0 0 14px rgba(255, 174, 51, 0.4);
}

@keyframes stickerFlyIn {
  0% { transform: translateX(40px) scale(0.7); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

#stageCanvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Floating Reaction Bubbles Layer */
.floating-reactions-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}

.floating-reaction-item {
  position: absolute;
  font-size: 2.6rem;
  transform: translate(-50%, -50%);
  animation: floatUpReaction 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

/* Character Comic Speech Bubble */
.character-speech-bubble {
  position: absolute;
  top: 18px;
  left: 20px;
  max-width: clamp(260px, 50%, 460px);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 20px 20px 20px 4px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--text-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 3px solid #36E59A;
  z-index: 25;
  animation: speechPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.speech-avatar {
  font-size: 2rem;
  line-height: 1;
}

.speech-text-wrap {
  display: flex;
  flex-direction: column;
}

.speech-speaker {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1FB874;
}

.speech-content {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
  color: #2D3142;
}

.highlight-cyan {
  color: #008f68;
  text-decoration: underline;
}

/* Interactive Touch Ripple Layer */
.touch-feedback-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}

.touch-ripple-circle {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-pill);
  border: 4px solid var(--brand-mint);
  background: radial-gradient(circle, rgba(54, 229, 154, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0.2);
  animation: rippleExpand 0.7s ease-out forwards;
}

/* Stage Gauge Meter Card */
.stage-top-meter-card {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(14, 20, 48, 0.85);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--bg-glass-border);
  box-shadow: var(--shadow-subtle);
  min-width: 240px;
  z-index: 25;
}

.meter-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
}

.meter-label {
  color: var(--text-white);
}

.meter-percentage {
  color: var(--brand-gold);
}

.meter-progress-track {
  width: 100%;
  height: 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
}

.meter-progress-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #FFD028 0%, #36E59A 100%);
  position: relative;
  transition: width 0.4s ease-out;
}

.meter-bar-shine {
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: meterShine 2s infinite linear;
}

.meter-chest-tip {
  font-size: 0.72rem;
  color: var(--brand-mint);
  font-weight: 700;
}

.btn-canvas-fullscreen {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  z-index: 30;
  transition: all 0.2s ease;
}

.btn-canvas-fullscreen:hover {
  background: var(--brand-mint);
  color: var(--text-dark);
}

/* Character Action Control Dock */
.character-action-dock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  box-shadow: var(--shadow-subtle);
}

.action-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.dock-title-badge {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-mint);
}

.dock-hint {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* 6 Big 3D Candy Action Buttons */
.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.btn-action-candy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-family: var(--font-display);
  transition: all 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.candy-btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  pointer-events: none;
}

.candy-btn-icon {
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.candy-btn-label {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.candy-btn-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.85;
}

.btn-action-candy:hover .candy-btn-icon {
  transform: scale(1.22) rotate(6deg);
}

/* 6 Colorful Candy Button Styles */
.btn-jump {
  background: linear-gradient(135deg, #36E59A 0%, #20BF76 100%);
  box-shadow: 0 8px 0 var(--brand-mint-deep), 0 12px 20px rgba(54, 229, 154, 0.4);
}
.btn-jump:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 var(--brand-mint-deep);
}

.btn-heart {
  background: linear-gradient(135deg, #FF4D79 0%, #E82959 100%);
  color: var(--text-white);
  box-shadow: 0 8px 0 #BD1842, 0 12px 20px rgba(255, 77, 121, 0.4);
}
.btn-heart:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 #BD1842;
}

.btn-fart {
  background: linear-gradient(135deg, #D4FC79 0%, #96E6A1 100%);
  box-shadow: 0 8px 0 #68B874, 0 12px 20px rgba(150, 230, 161, 0.4);
}
.btn-fart:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 #68B874;
}

.btn-dance {
  background: linear-gradient(135deg, #B588F7 0%, #9B5DE5 100%);
  color: var(--text-white);
  box-shadow: 0 8px 0 var(--brand-purple-dark), 0 12px 20px rgba(155, 93, 229, 0.4);
}
.btn-dance:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 var(--brand-purple-dark);
}

.btn-stars {
  background: linear-gradient(135deg, #FFE066 0%, #FFD028 100%);
  box-shadow: 0 8px 0 var(--brand-gold-deep), 0 12px 20px rgba(255, 208, 40, 0.4);
}
.btn-stars:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 var(--brand-gold-deep);
}

.btn-cheer {
  background: linear-gradient(135deg, #FF8080 0%, #FF5252 100%);
  color: var(--text-white);
  box-shadow: 0 8px 0 #CC2929, 0 12px 20px rgba(255, 82, 82, 0.4);
}
.btn-cheer:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 #CC2929;
}

/* 8. RIGHT: SAFE LIVE CHAT & INTERACTION SIDEBAR */
.interaction-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 620px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
}

.sidebar-tabs-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(12, 17, 43, 0.6);
  border-bottom: 2px solid var(--bg-glass-border);
}

.sidebar-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

.sidebar-tab:hover {
  color: var(--text-white);
}

.sidebar-tab.active {
  color: var(--brand-mint);
  border-bottom-color: var(--brand-mint);
  background: rgba(54, 229, 154, 0.08);
}

.tab-count-badge {
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 77, 121, 0.3);
  color: var(--brand-pink);
  font-size: 0.72rem;
}

.sidebar-content-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Live Chat Scroll Feed */
.chat-feed-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.chat-feed-scroll::-webkit-scrollbar {
  width: 6px;
}

.chat-feed-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
}

.chat-item {
  display: flex;
  gap: 10px;
  animation: fadeInView 0.25s ease-out;
}

/* Chat Message Styles */
.system-bubble {
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 187, 249, 0.14);
  border: 1px dashed var(--brand-blue);
  color: #C2EEFF;
  font-size: 0.84rem;
  line-height: 1.4;
}

.system-icon {
  font-size: 1.3rem;
}

.celebration-bubble {
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 208, 40, 0.2) 0%, rgba(255, 77, 121, 0.18) 100%);
  border: 1px solid var(--brand-gold);
  color: var(--brand-gold);
  font-size: 0.85rem;
  line-height: 1.4;
}

.celebration-icon {
  font-size: 1.3rem;
}

.user-bubble {
  align-items: flex-start;
}

.chat-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 2px solid var(--brand-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.chat-bubble-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 82%;
}

.chat-sender-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-sender-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-white);
}

.chat-sender-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  background: var(--brand-gold);
  color: var(--text-dark);
}

.chat-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chat-text {
  padding: 9px 14px;
  border-radius: 4px 18px 18px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.38;
  word-break: break-word;
}

.bubble-cyan .chat-text {
  background: rgba(0, 245, 212, 0.15);
  border: 1px solid rgba(0, 245, 212, 0.35);
  color: #DCFFF9;
}

.bubble-pink .chat-text {
  background: rgba(255, 77, 121, 0.16);
  border: 1px solid rgba(255, 77, 121, 0.35);
  color: #FFE6EE;
}

.bubble-yellow .chat-text {
  background: rgba(255, 208, 40, 0.16);
  border: 1px solid rgba(255, 208, 40, 0.35);
  color: #FFF9DC;
}

/* One-Touch Quick Emoji Bar */
.quick-reactions-dock {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(12, 17, 43, 0.5);
  border-top: 1px solid var(--bg-glass-border);
}

.quick-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.quick-emojis-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-quick-emoji {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-quick-emoji:hover {
  transform: scale(1.22);
  background: rgba(255, 255, 255, 0.18);
}

.btn-quick-emoji:active {
  transform: scale(0.9);
}

/* Safe Preset Phrase Drawer */
.safe-phrase-drawer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(12, 17, 43, 0.35);
  border-top: 1px solid var(--bg-glass-border);
}

.safe-phrase-drawer::-webkit-scrollbar {
  display: none;
}

.phrase-tag {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-white);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.phrase-tag:hover {
  background: var(--brand-mint);
  color: var(--text-dark);
  border-color: var(--brand-mint);
}

/* Chat Input Bar */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(12, 17, 43, 0.9);
  border-top: 2px solid var(--bg-glass-border);
}

.input-field-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.chat-text-input {
  width: 100%;
  padding: 12px 42px 12px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--bg-glass-border);
  color: var(--text-white);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.chat-text-input:focus {
  border-color: var(--brand-mint);
  background: rgba(255, 255, 255, 0.12);
}

.btn-voice-mic {
  position: absolute;
  right: 10px;
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.btn-voice-mic:hover {
  transform: scale(1.15);
}

.btn-send-jelly {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #36E59A 0%, #1FB874 100%);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--brand-mint-deep);
  transition: all 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-send-jelly:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--brand-mint-deep);
}

.btn-send-jelly:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--brand-mint-deep);
}

/* Tab 2: Hall of Fame & Podium */
.rankings-inner-box {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.rank-podium-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  height: 180px;
  padding-bottom: 8px;
}

.podium-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 8px;
  border-radius: 16px 16px 6px 6px;
  flex: 1;
}

.podium-pillar.rank-1 {
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 208, 40, 0.35) 0%, rgba(245, 166, 35, 0.15) 100%);
  border: 2px solid var(--brand-gold);
}

.podium-pillar.rank-2 {
  height: 82%;
  background: linear-gradient(180deg, rgba(220, 225, 240, 0.35) 0%, rgba(160, 170, 200, 0.15) 100%);
  border: 2px solid #E0E5F5;
}

.podium-pillar.rank-3 {
  height: 68%;
  background: linear-gradient(180deg, rgba(217, 136, 4, 0.35) 0%, rgba(180, 100, 0, 0.15) 100%);
  border: 2px solid #FFA347;
}

.podium-crown {
  font-size: 1.6rem;
  margin-bottom: 2px;
}

.podium-avatar {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.podium-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
}

.podium-pts {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-gold);
}

.my-current-rank-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(54, 229, 154, 0.15);
  border: 1.5px solid var(--brand-mint);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.my-rank-badge {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-mint);
}

.rank-cheer-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-white);
}

.hall-of-fame-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fame-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-glass-border);
  font-size: 0.88rem;
  font-weight: 700;
}

.fame-row-me {
  background: rgba(255, 208, 40, 0.18);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.fame-index {
  color: var(--text-muted);
  width: 24px;
}

.fame-points {
  color: var(--brand-mint);
}

/* 9. MODALS: INTERACTIVE QUIZ SHOW & TREASURE UNBOXING */

/* Backdrop Overlay */
.modal-backdrop-quiz, .modal-backdrop-reward {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
  animation: fadeInView 0.25s ease-out forwards;
}

/* Quiz Dialog Box */
.quiz-dialog-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1C244F 0%, #10163A 100%);
  border: 3px solid var(--brand-gold);
  box-shadow: var(--shadow-modal), 0 0 40px var(--brand-gold-glow);
  padding: clamp(20px, 3.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: speechPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.quiz-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.quiz-timer-ring {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-pill);
  border: 4px solid var(--brand-pink);
  background: rgba(255, 77, 121, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 0 16px rgba(255, 77, 121, 0.5);
}

.timer-number {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--brand-pink);
}

.timer-sec-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-white);
}

.quiz-character-speech {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-mascot-icon {
  font-size: 2rem;
}

.speech-bubble-mini {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-mint);
}

.quiz-question-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-white);
  text-align: center;
  padding: 6px 0;
}

.quiz-answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.option-num {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.option-emoji {
  font-size: 1.4rem;
}

.btn-quiz-option:hover {
  transform: translateY(-2px);
  border-color: var(--brand-cyan);
}

.btn-quiz-option:active {
  transform: translateY(2px);
}

/* Quiz Result Glows */
.correct-choice-glow {
  background: linear-gradient(135deg, #36E59A 0%, #1FB874 100%) !important;
  color: var(--text-dark) !important;
  border-color: #56FFAF !important;
  box-shadow: 0 0 25px var(--brand-mint-glow) !important;
}

.wrong-choice-shake {
  background: linear-gradient(135deg, #FF4D79 0%, #D42854 100%) !important;
  color: var(--text-white) !important;
  border-color: #FF789E !important;
  animation: shakeWrong 0.4s ease-in-out !important;
}

/* Quiz Live Votes Distribution Bar */
.quiz-live-votes-bar {
  display: flex;
  height: 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 4px;
}

.votes-fill {
  height: 100%;
  transition: width 0.4s ease;
}

.votes-fill.fill-1 { background: var(--brand-mint); }
.votes-fill.fill-2 { background: var(--brand-cyan); }
.votes-fill.fill-3 { background: var(--brand-gold); }
.votes-fill.fill-4 { background: var(--brand-pink); }

.votes-hint-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.quiz-dialog-footer {
  display: flex;
  justify-content: center;
}

.btn-close-modal {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.btn-close-modal:hover {
  color: var(--text-white);
}

/* Reward Unboxing Modal & Sunburst */
.reward-dialog-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 30%, #291D5E 0%, #101538 100%);
  border: 3px solid var(--brand-gold);
  box-shadow: var(--shadow-modal), 0 0 50px var(--brand-gold-glow);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  overflow: hidden;
  animation: speechPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.reward-rays-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  margin-top: -350px;
  margin-left: -350px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 208, 40, 0.14) 0deg 15deg,
    transparent 15deg 30deg
  );
  border-radius: var(--radius-pill);
  pointer-events: none;
  animation: rotateSunburst 20s linear infinite;
  z-index: 1;
}

.reward-sparkles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.confetti {
  position: absolute;
  font-size: 2rem;
  animation: floatAmbient 4s infinite ease-in-out;
}

.c-1 { top: 15%; left: 10%; }
.c-2 { top: 20%; right: 12%; animation-delay: 1s; }
.c-3 { bottom: 25%; left: 15%; animation-delay: 2s; }
.c-4 { bottom: 20%; right: 15%; animation-delay: 1.5s; }

.reward-chest-animation {
  position: relative;
  z-index: 3;
}

.chest-grand-icon {
  display: inline-block;
  font-size: 5.5rem;
  animation: chestBounce 2s infinite ease-in-out;
  filter: drop-shadow(0 8px 24px var(--brand-gold-glow));
}

.reward-headline {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1.25;
}

.reward-subline {
  position: relative;
  z-index: 3;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
}

.reward-items-showcase {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 6px 0;
}

.reward-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--bg-glass-border);
}

.reward-item-card .item-icon {
  font-size: 2.2rem;
}

.reward-item-card .item-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-white);
}

.reward-item-card .item-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-gold);
  color: var(--text-dark);
}

.btn-claim-reward.btn-jelly {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #FFD028 0%, #F5A623 100%);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: var(--shadow-jelly-gold);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-claim-reward.btn-jelly:hover {
  transform: translateY(-3px) scale(1.04);
}

.btn-claim-reward.btn-jelly:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #D98804;
}

/* 9.5. OPERATIONAL ADMIN CONSOLE (/admin) STYLING */
.nav-admin-pill {
  border-color: rgba(255, 77, 121, 0.45) !important;
  color: #FFAEC0 !important;
}

.nav-admin-pill:hover, .nav-admin-pill.active {
  background: rgba(255, 77, 121, 0.22) !important;
  color: #FF7096 !important;
  border-color: #FF4D79 !important;
}

.view-admin {
  max-width: 1600px;
  margin: 0 auto;
  padding: 36px clamp(16px, 2.5vw, 36px) 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

/* Global Admin Navigation inside Platform Header */
.admin-global-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  margin-left: 12px;
  padding: 4px 2px;
}

.admin-global-nav::-webkit-scrollbar {
  display: none;
}

.admin-global-nav .admin-nav-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 9px 16px;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--bg-glass-border);
}

.admin-global-nav .admin-nav-btn.active {
  background: linear-gradient(135deg, rgba(255, 77, 121, 0.25) 0%, rgba(155, 93, 229, 0.2) 100%);
  border-color: var(--brand-pink);
  color: #FFAEC0;
  box-shadow: 0 4px 14px rgba(255, 77, 121, 0.35);
}

/* Admin Global Header Actions */
.user-header-controls {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.admin-badge-neon.global-neon {
  padding: 6px 12px;
  font-size: 0.76rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

body.is-admin-mode .platform-header {
  background: rgba(18, 14, 42, 0.96);
  border-bottom: 2px solid rgba(255, 77, 121, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  padding-top: 12px;
  padding-bottom: 12px;
}

.admin-tab-pane {
  display: none;
  width: 100%;
  animation: fadeInView 0.25s ease-out forwards;
}

.admin-tab-pane.active {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(29, 37, 80, 0.95) 0%, rgba(17, 22, 54, 0.98) 100%);
  border: 2px solid rgba(255, 77, 121, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 77, 121, 0.15);
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-badge-neon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 77, 121, 0.2);
  border: 1px solid var(--brand-pink);
  color: var(--brand-pink);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
}

.admin-main-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--text-white);
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-admin-tool {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--bg-glass-border);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-admin-tool:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn-admin-tool.btn-danger-action {
  background: rgba(255, 77, 121, 0.25);
  border-color: var(--brand-pink);
  color: #FFAEC0;
}

.btn-admin-tool.btn-danger-action:hover {
  background: var(--brand-pink);
  color: var(--text-white);
}

.btn-admin-tool.btn-exit-admin {
  background: rgba(54, 229, 154, 0.2);
  border-color: var(--brand-mint);
  color: var(--brand-mint);
}

.btn-admin-tool.btn-exit-admin:hover {
  background: var(--brand-mint);
  color: var(--text-dark);
}

.btn-admin-tool.btn-logout-action {
  background: rgba(255, 208, 40, 0.2);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.btn-admin-tool.btn-logout-action:hover {
  background: var(--brand-gold);
  color: var(--text-dark);
}

/* Admin Sub Navigation Tabs */
.admin-subnav-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.admin-nav-btn:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.admin-nav-btn.active {
  background: linear-gradient(135deg, rgba(255, 77, 121, 0.2) 0%, rgba(155, 93, 229, 0.15) 100%);
  border-color: var(--brand-pink);
  color: #FFAEC0;
  box-shadow: 0 4px 18px rgba(255, 77, 121, 0.3);
}

/* Admin KPI Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 6px;
}

.admin-kpi-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  box-shadow: var(--shadow-subtle);
}

.kpi-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.kpi-blue { background: rgba(0, 187, 249, 0.18); border: 1.5px solid var(--brand-blue); }
.kpi-pink { background: rgba(255, 77, 121, 0.18); border: 1.5px solid var(--brand-pink); }
.kpi-gold { background: rgba(255, 208, 40, 0.18); border: 1.5px solid var(--brand-gold); }
.kpi-mint { background: rgba(54, 229, 154, 0.18); border: 1.5px solid var(--brand-mint); }

.kpi-info {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

.kpi-sub {
  font-size: 0.74rem;
  color: var(--brand-mint);
  font-weight: 600;
}

.admin-recent-summary-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.summary-col {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-col-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-white);
}

.badge-safe {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(54, 229, 154, 0.2);
  color: var(--brand-mint);
  font-size: 0.78rem;
  font-weight: 700;
}

.summary-audit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.quick-admin-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-admin-action {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--bg-glass-border);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  transition: all 0.2s ease;
}

.btn-admin-action:hover {
  background: rgba(54, 229, 154, 0.15);
  border-color: var(--brand-mint);
  color: var(--brand-mint);
  transform: translateX(4px);
}

/* Admin Tables */
.admin-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.pane-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-white);
}

.pane-title-group p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.btn-create-channel {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #36E59A 0%, #1FB874 100%);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: var(--shadow-jelly-mint);
  transition: all 0.2s ease;
}

.btn-create-channel:hover {
  transform: scale(1.04);
}

.admin-table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 2px solid var(--bg-glass-border);
  background: var(--bg-surface-elevated);
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.admin-data-table th, .admin-data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--bg-glass-border);
  vertical-align: middle;
}

.admin-data-table th {
  background: rgba(12, 17, 43, 0.6);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-live { background: rgba(255, 77, 121, 0.2); color: var(--brand-pink); border: 1px solid var(--brand-pink); }
.status-off { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.2); }
.status-active { background: rgba(54, 229, 154, 0.2); color: var(--brand-mint); border: 1px solid var(--brand-mint); }
.status-muted { background: rgba(255, 208, 40, 0.2); color: var(--brand-gold); border: 1px solid var(--brand-gold); }

.table-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-mini-tbl {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-white);
  transition: all 0.15s ease;
}

.btn-mini-tbl:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-mini-tbl.danger {
  border-color: rgba(255, 77, 121, 0.4);
  color: #FFAEC0;
}

.btn-mini-tbl.danger:hover {
  background: var(--brand-pink);
  color: var(--text-white);
}

/* Moderation Feed Box */
.admin-moderation-feed-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
}

/* 9.6. ADMIN SETTINGS & AI INTEGRATION STYLING */
.settings-subtabs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: rgba(12, 17, 43, 0.72);
  border: 1.5px solid var(--bg-glass-border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.settings-subtabs-bar::-webkit-scrollbar {
  display: none;
}

.settings-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.settings-subtab-btn .subtab-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.settings-subtab-btn:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.settings-subtab-btn.active {
  background: linear-gradient(135deg, rgba(54, 229, 154, 0.22) 0%, rgba(0, 245, 212, 0.16) 100%);
  border-color: var(--brand-mint);
  color: var(--brand-mint);
  box-shadow: 0 4px 16px rgba(54, 229, 154, 0.28);
}

.settings-subtab-pane {
  display: none;
  width: 100%;
  animation: fadeInView 0.22s ease-out forwards;
}

.settings-subtab-pane.active {
  display: flex !important;
  flex-direction: column;
  gap: 22px;
}

.admin-settings-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 1080px) {
  .admin-settings-layout {
    grid-template-columns: 1fr;
  }
}

.settings-card-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  box-shadow: var(--shadow-subtle);
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--bg-glass-border);
  padding-bottom: 14px;
}

.settings-badge-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(155, 93, 229, 0.18);
  border: 1px solid var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-card-header h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
}

.settings-card-header small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.admin-settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

@media (max-width: 600px) {
  .form-row-grid {
    grid-template-columns: 1fr;
  }
}

.form-group-admin {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-admin label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #C2EEFF;
}

.admin-input, .admin-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(12, 17, 43, 0.7);
  border: 1.5px solid var(--bg-glass-border);
  color: var(--text-white);
  font-size: 0.92rem;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.admin-select {
  cursor: pointer;
}

.admin-select option {
  background: #141B3B;
  color: #FFFFFF;
}

.admin-input:focus, .admin-select:focus {
  border-color: var(--brand-mint);
  outline: none;
  box-shadow: 0 0 10px var(--brand-mint-glow);
}

.input-with-button-wrap {
  display: flex;
  gap: 8px;
}

.btn-input-accessory {
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--bg-glass-border);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-input-accessory:hover {
  background: rgba(255, 255, 255, 0.16);
}

.field-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.diagnostic-actions-row {
  display: flex;
  gap: 10px;
}

.btn-diagnostic-action {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(0, 187, 249, 0.25) 0%, rgba(155, 93, 229, 0.25) 100%);
  border: 2px solid var(--brand-cyan);
  color: var(--brand-cyan);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 187, 249, 0.25);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-diagnostic-action:hover {
  background: var(--brand-cyan);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 245, 212, 0.4);
}

.diagnostic-results-box {
  min-height: 220px;
  border-radius: var(--radius-md);
  background: rgba(12, 17, 43, 0.85);
  border: 1.5px solid var(--bg-glass-border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.diagnostic-placeholder {
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

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

.diag-success-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeInView 0.3s ease;
}

.diag-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
}

.diag-badge-ok {
  background: rgba(54, 229, 154, 0.2);
  color: var(--brand-mint);
  border: 1px solid var(--brand-mint);
}

.diag-badge-fallback {
  background: rgba(255, 208, 40, 0.2);
  color: var(--brand-gold);
  border: 1px solid var(--brand-gold);
}

.diag-badge-error {
  background: rgba(255, 77, 121, 0.2);
  color: var(--brand-pink);
  border: 1px solid var(--brand-pink);
}

.diag-dialogue-quote {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--brand-gold);
  color: var(--text-white);
  font-size: 0.92rem;
  line-height: 1.5;
  font-style: italic;
}

.diag-meta-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.settings-info-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-glass-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-info-box h5 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--brand-gold);
}

.settings-info-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.settings-info-box code {
  color: var(--brand-cyan);
  background: rgba(0, 245, 212, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
}

.voice-persona-studio-card {
  margin-top: 4px;
}

.voice-ai-recommend-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(155, 93, 229, 0.12);
  border: 1.5px dashed rgba(155, 93, 229, 0.55);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.voice-ai-recommend-box label {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.voice-id-code {
  font-family: monospace;
  font-size: 0.84rem;
  color: var(--brand-cyan);
  background: rgba(0, 245, 212, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 245, 212, 0.25);
}

.voice-tag-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 208, 40, 0.16);
  border: 1px solid rgba(255, 208, 40, 0.4);
  color: var(--brand-gold);
  font-family: monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.btn-voice-preview {
  background: rgba(0, 245, 212, 0.16);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

.btn-voice-preview:hover {
  background: var(--brand-cyan);
  color: var(--text-dark);
}

.moderation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-glass-border);
}

.moderation-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.moderation-meta {
  display: flex;
  flex-direction: column;
}

.moderation-user {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-mint);
}

.moderation-text {
  font-size: 0.9rem;
  color: var(--text-white);
}

/* 9.65. CHARACTER & SPRITE SHEET STUDIO STYLING */
.character-studio-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 1080px) {
  .character-studio-layout {
    grid-template-columns: 1fr;
  }
}

.studio-card-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  box-shadow: var(--shadow-subtle);
}

.studio-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-glass-border);
}

.studio-badge-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(54, 229, 154, 0.15);
  border: 1px solid var(--brand-mint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-dual-dropzone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .studio-dual-dropzone-grid {
    grid-template-columns: 1fr;
  }
}

.studio-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 175px;
  border: 2.5px dashed rgba(54, 229, 154, 0.4);
  border-radius: var(--radius-md);
  background: rgba(12, 17, 43, 0.6);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.studio-dropzone-side {
  border-color: rgba(0, 245, 212, 0.4);
}

.studio-dropzone:hover, .studio-dropzone.drag-over {
  border-color: var(--brand-mint);
  background: rgba(54, 229, 154, 0.08);
}

.studio-dropzone-side:hover, .studio-dropzone-side.drag-over {
  border-color: var(--brand-cyan);
  background: rgba(0, 245, 212, 0.08);
}

.dropzone-role-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(54, 229, 154, 0.18);
  border: 1px solid var(--brand-mint);
  color: var(--brand-mint);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.dropzone-role-badge.badge-side {
  background: rgba(0, 245, 212, 0.18);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

.dropzone-content, .dropzone-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.uploaded-thumb-preview {
  max-width: 115px;
  max-height: 115px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 2px solid var(--brand-mint);
  background: rgba(0,0,0,0.3);
  margin-bottom: 8px;
}

.btn-generate-atlas {
  margin-top: 6px;
  padding: 14px;
  font-size: 1.05rem;
}

.btn-ai-gen-sheet {
  padding: 12px;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.4);
}

.btn-ai-gen-sheet:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* Studio Preview Panel */
.preview-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.live-playback-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-mint);
}

.animation-preview-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 340px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 50%, #1c2759 0%, #0f153a 100%);
  border: 2px solid var(--bg-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#charPreviewCanvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.preview-motion-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
}

.btn-motion-pill {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--bg-glass-border);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-motion-pill.active {
  background: linear-gradient(135deg, rgba(255, 208, 40, 0.25) 0%, rgba(245, 166, 35, 0.2) 100%);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  box-shadow: 0 0 12px var(--brand-gold-glow);
}

.preview-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--bg-glass-border);
}

.btn-preview-tool {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid var(--bg-glass-border);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.fps-slider-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--brand-cyan);
}

.fps-slider-group input[type="range"] {
  cursor: pointer;
}

/* Atlas View Box */
.atlas-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.atlas-scroll-viewport {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: #0b0f26;
  border: 1.5px solid var(--bg-glass-border);
  padding: 14px;
  display: flex;
  justify-content: center;
}

#atlasDisplayCanvas {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  aspect-ratio: 5 / 3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.atlas-active-cuts-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(54, 229, 154, 0.16);
  border: 1px solid var(--brand-mint);
  color: var(--brand-mint);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
}

.atlas-cut-filter-bar {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(12, 17, 43, 0.65);
  border: 1px solid var(--bg-glass-border);
}

@media (max-width: 900px) {
  .atlas-cut-filter-bar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.btn-atlas-cut-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(54, 229, 154, 0.16);
  border: 1.5px solid rgba(54, 229, 154, 0.6);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-atlas-cut-chip:hover {
  transform: translateY(-1px);
  border-color: var(--brand-gold);
}

.btn-atlas-cut-chip.is-playing {
  background: linear-gradient(135deg, rgba(255, 208, 40, 0.35) 0%, rgba(54, 229, 154, 0.3) 100%);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  box-shadow: 0 0 10px rgba(255, 208, 40, 0.45);
}

.btn-atlas-cut-chip.is-excluded {
  background: rgba(255, 77, 121, 0.14);
  border-color: rgba(255, 77, 121, 0.55);
  color: #FF8BA7;
  text-decoration: line-through;
  opacity: 0.72;
}

/* Separated Multi-Layer Eyes/Nose (1.5 FPS) & Mouth Viseme (3.0 FPS) Strip Viewer */
.layered-face-sets-box {
  margin-top: 8px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(12, 17, 43, 0.72);
  border: 1.5px solid rgba(0, 245, 212, 0.35);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.layered-face-sets-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.layered-face-sets-header h5 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--brand-cyan);
  margin-bottom: 2px;
}

.layered-face-sets-header small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.layered-face-sets-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.face-sets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 980px) {
  .face-sets-grid {
    grid-template-columns: 1fr;
  }
}

.face-set-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(20, 27, 59, 0.85);
  border: 1px solid var(--bg-glass-border);
}

.face-set-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.face-set-title {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-white);
}

.face-set-fps-badge {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 245, 212, 0.16);
  border: 1px solid var(--brand-cyan);
  color: var(--brand-cyan);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}

.face-set-fps-badge.badge-mouth {
  background: rgba(255, 77, 121, 0.18);
  border-color: var(--brand-pink);
  color: #FF8BA7;
}

.face-strip-viewport {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  background: #090d22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px;
}

#eyesNoseAtlasCanvas,
#mouthVisemeAtlasCanvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 1;
  border-radius: 6px;
}

/* AI Precision 3D Rig Modeling Status Bar */
.studio-ai-rig-status-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.35);
}

.ai-rig-status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-cyan);
  line-height: 1.35;
}

.ai-rig-status-badge.analyzing {
  color: var(--brand-gold);
  animation: neonPulse 1.2s infinite ease-in-out;
}

.ai-rig-status-badge.ready {
  color: var(--brand-mint);
}

.btn-reanalyze-rig {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.22) 0%, rgba(155, 93, 229, 0.25) 100%) !important;
  border-color: var(--brand-cyan) !important;
  color: var(--brand-cyan) !important;
  white-space: nowrap;
}

.btn-reanalyze-rig:hover {
  background: var(--brand-cyan) !important;
  color: var(--text-dark) !important;
}

/* 5-Motion Character Set Slot Selector & Library Badges */
.studio-motion-set-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.studio-set-progress-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(54, 229, 154, 0.16);
  border: 1px solid var(--brand-mint);
  color: var(--brand-mint);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
}

.studio-motion-slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.btn-studio-motion-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  background: rgba(12, 17, 43, 0.75);
  border: 1.5px solid var(--bg-glass-border);
  color: var(--text-muted);
  font-family: var(--font-display);
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-studio-motion-slot:hover {
  border-color: var(--brand-cyan);
  color: var(--text-white);
  transform: translateY(-1px);
}

.btn-studio-motion-slot.active {
  background: linear-gradient(135deg, rgba(255, 208, 40, 0.22) 0%, rgba(245, 166, 35, 0.16) 100%);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  box-shadow: 0 0 12px rgba(255, 208, 40, 0.3);
}

.btn-studio-motion-slot.is-completed {
  border-color: rgba(54, 229, 154, 0.65);
}

.btn-studio-motion-slot .slot-emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.btn-studio-motion-slot .slot-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-white);
}

.btn-studio-motion-slot .slot-state {
  font-size: 0.66rem;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-weight: 700;
}

.btn-studio-motion-slot.is-completed .slot-state {
  background: rgba(54, 229, 154, 0.22);
  color: var(--brand-mint);
}

.studio-gen-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.studio-sub-gen-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-save-charset-lib {
  background: linear-gradient(135deg, #36E59A 0%, #00BBF9 100%) !important;
  color: #10163A !important;
  font-weight: 800 !important;
}

.btn-motion-pill.is-completed {
  border-color: var(--brand-mint);
}

.char-lib-poses-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.char-pose-mini-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.char-pose-mini-chip.done {
  background: rgba(54, 229, 154, 0.18);
  border-color: rgba(54, 229, 154, 0.55);
  color: var(--brand-mint);
}

/* Character Library Grid */
.character-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.char-lib-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid var(--bg-glass-border);
  transition: all 0.2s ease;
}

.char-lib-card:hover {
  border-color: var(--brand-mint);
  transform: translateY(-2px);
}

.char-lib-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  overflow: hidden;
}

.char-lib-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.char-lib-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.char-lib-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
}

.char-lib-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.char-lib-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* 9.7. ADMIN AUTHENTICATION & SUPER ADMIN MANAGEMENT STYLING */

/* Admin Login Overlay Backdrop */
.modal-backdrop-admin-login,
.modal-backdrop-admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 32, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 3000;
  animation: fadeInView 0.25s ease-out forwards;
}

.admin-login-dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(28, 36, 80, 0.96) 0%, rgba(15, 20, 48, 0.98) 100%);
  border: 2.5px solid rgba(255, 77, 121, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 77, 121, 0.25);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: speechPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.login-header-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.login-logo-badge {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, rgba(255, 77, 121, 0.3) 0%, rgba(155, 93, 229, 0.2) 100%);
  border: 2px solid var(--brand-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 20px rgba(255, 77, 121, 0.4);
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-white);
}

.login-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-input-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #C2EEFF;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-addon-icon {
  position: absolute;
  left: 14px;
  font-size: 1.15rem;
  color: var(--text-muted);
  pointer-events: none;
}

.login-field {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: var(--radius-sm);
  background: rgba(12, 17, 43, 0.85);
  border: 1.5px solid var(--bg-glass-border);
  color: var(--text-white);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.login-field:focus {
  border-color: var(--brand-pink);
  box-shadow: 0 0 12px rgba(255, 77, 121, 0.4);
}

/* Custom Checkboxes for ID Remember & Keep Logged In */
.login-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.custom-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.custom-chk {
  display: none;
}

.chk-custom-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--bg-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.custom-chk:checked + .chk-custom-box {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
  box-shadow: 0 0 8px rgba(255, 77, 121, 0.6);
}

.custom-chk:checked + .chk-custom-box::after {
  content: "✔";
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 900;
}

.chk-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-white);
}

.login-hint-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 208, 40, 0.14);
  border: 1px dashed var(--brand-gold);
  color: var(--brand-gold);
  font-size: 0.8rem;
  line-height: 1.35;
}

.login-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.btn-login-submit {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #FF4D79 0%, #D42854 100%);
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 6px 0 #A81B3E, 0 10px 20px rgba(255, 77, 121, 0.4);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #A81B3E, 0 14px 25px rgba(255, 77, 121, 0.5);
}

.btn-login-submit:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #A81B3E;
}

.btn-login-cancel {
  padding: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: color 0.2s ease;
}

.btn-login-cancel:hover {
  color: var(--text-white);
}

/* Super Admin Create / Edit Modal Card */
.admin-modal-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-elevated);
  border: 2px solid var(--bg-glass-border);
  box-shadow: var(--shadow-modal);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: speechPop 0.25s ease-out;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-glass-border);
  padding-bottom: 12px;
}

.admin-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-white);
}

.btn-close-admin-modal {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.btn-close-admin-modal:hover {
  color: var(--brand-pink);
}

.admin-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer-btns {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

/* Super Admin Role Badges */
.badge-role-super {
  background: rgba(255, 208, 40, 0.2);
  color: var(--brand-gold);
  border: 1px solid var(--brand-gold);
}

.badge-role-operator {
  background: rgba(54, 229, 154, 0.2);
  color: var(--brand-mint);
  border: 1px solid var(--brand-mint);
}

.badge-role-mod {
  background: rgba(0, 187, 249, 0.2);
  color: var(--brand-blue);
  border: 1px solid var(--brand-blue);
}

/* 9.8. INTERNAL SYSTEM DIALOG MODAL (ALERT / CONFIRM / PROMPT) */
.modal-backdrop-internal-dialog {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 28, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 4500;
  animation: fadeInView 0.2s ease-out forwards;
}

.internal-dialog-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(29, 38, 84, 0.98) 0%, rgba(16, 22, 52, 0.99) 100%);
  border: 2.5px solid rgba(54, 229, 154, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(54, 229, 154, 0.2);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: speechPop 0.26s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.internal-dialog-card.dialog-danger {
  border-color: rgba(255, 77, 121, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 77, 121, 0.25);
}

.internal-dialog-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-glass-border);
}

.internal-dialog-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(54, 229, 154, 0.16);
  border: 1.5px solid var(--brand-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.internal-dialog-card.dialog-danger .internal-dialog-icon-badge {
  background: rgba(255, 77, 121, 0.18);
  border-color: var(--brand-pink);
}

.internal-dialog-title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.internal-dialog-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.25;
}

.internal-dialog-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.internal-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.internal-dialog-message {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-cream);
  word-break: keep-all;
  white-space: pre-line;
}

.internal-dialog-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.internal-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.internal-dialog-card.dialog-danger #btnInternalDialogConfirm {
  background: linear-gradient(135deg, #FF4D79 0%, #D42854 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-jelly-pink);
}

/* 10. KEYFRAME ANIMATIONS GALLERY */

@keyframes fadeInView {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatAmbient {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}

@keyframes heroMascotHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes chestBounce {
  0%, 100% { transform: scale(1) translateY(0); }
  35% { transform: scale(1.14, 0.88) translateY(-10px); }
  65% { transform: scale(0.92, 1.1) translateY(4px); }
}

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

@keyframes neonPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@keyframes floatUpReaction {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%, -40px) scale(1.3); }
  80% { opacity: 1; transform: translate(-50%, -160px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -240px) scale(0.7); }
}

@keyframes speechPop {
  0% { opacity: 0; transform: scale(0.75) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes rippleExpand {
  0% { transform: translate(-50%, -50%) scale(0.1); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

@keyframes meterShine {
  0% { left: -50%; }
  100% { left: 150%; }
}

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

@keyframes shakeWrong {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* 11. RESPONSIVE DESIGN BREAKPOINTS */

/* Tablet & Medium Laptops (under 1180px) */
@media (max-width: 1180px) {
  .hero-live-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-visual-preview {
    order: -1;
  }

  .preview-stage-mock {
    max-width: 100%;
    height: 240px;
  }

  .room-workspace-grid {
    grid-template-columns: 1fr;
  }

  .interaction-sidebar {
    min-height: 480px;
    height: 520px;
  }

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

/* Mobile Bottom Floating Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(66px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(14, 20, 48, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 2px solid var(--bg-glass-border);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
  z-index: 1500;
  justify-content: space-around;
  align-items: center;
  padding-left: 8px;
  padding-right: 8px;
}

.mobile-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 6px 0;
}

.mobile-nav-item .nav-item-icon {
  font-size: 1.45rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.mobile-nav-item .nav-item-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}

.mobile-nav-item.active {
  color: var(--brand-mint);
}

.mobile-nav-item.active .nav-item-icon {
  transform: translateY(-2px) scale(1.15);
}

.mobile-nav-item.mobile-nav-admin.active {
  color: var(--brand-pink);
}

.mobile-badge-live {
  position: absolute;
  top: 10px;
  right: calc(50% - 18px);
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-pink);
  box-shadow: 0 0 8px var(--brand-pink);
  animation: neonPulse 1.2s infinite ease-in-out;
}

/* Mobile Devices (under 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .platform-header {
    padding: 0 12px;
  }

  /* Admin Header & Global Nav Mobile Horizontal Scroll Optimization */
  body.is-admin-mode .platform-header {
    flex-wrap: wrap;
    height: auto;
    min-height: auto;
    padding: 10px 12px 8px 12px;
    gap: 8px 0;
  }

  body.is-admin-mode .header-left {
    display: contents;
  }

  body.is-admin-mode .brand-logo {
    order: 1;
    flex-shrink: 0;
  }

  body.is-admin-mode .header-right {
    order: 2;
    margin-left: auto;
    max-width: 65%;
  }

  body.is-admin-mode .admin-header-actions {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding: 2px 0;
    gap: 6px;
  }

  body.is-admin-mode .admin-header-actions::-webkit-scrollbar {
    display: none;
  }

  body.is-admin-mode .admin-header-actions .btn-admin-tool {
    flex-shrink: 0;
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  body.is-admin-mode .admin-global-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 4px;
    padding: 4px 4px 8px 4px;
    gap: 8px;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
  }

  body.is-admin-mode .admin-global-nav::-webkit-scrollbar {
    display: none;
  }

  body.is-admin-mode .admin-global-nav .admin-nav-btn {
    flex-shrink: 0 !important;
    padding: 8px 14px;
    font-size: 0.84rem;
  }

  .nav-shortcuts {
    display: none; /* Substituted by mobile-bottom-nav */
  }

  .brand-logo {
    gap: 8px;
  }

  .logo-mascot {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-sub {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }

  .kid-profile-card {
    padding: 4px 8px;
  }

  .kid-profile-card .profile-details {
    display: none;
  }

  .currency-badge {
    padding: 6px 10px;
  }

  .currency-badge .badge-value {
    font-size: 0.95rem;
  }

  .currency-badge .badge-unit {
    display: none;
  }

  .chest-btn {
    padding: 6px 10px;
  }

  .chest-btn .badge-label {
    display: none;
  }

  .btn-round-tool {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  /* Views Global Padding */
  .view-home, .view-admin, .view-live-room {
    padding: 14px 12px;
    padding-bottom: 24px;
    gap: 20px;
  }

  /* Admin Console Mobile Optimization */
  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
  }

  .admin-top-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
  }

  .btn-admin-tool {
    padding: 10px 8px;
    font-size: 0.8rem;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  .admin-subnav-bar {
    padding-bottom: 8px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-nav-btn {
    padding: 10px 14px;
    font-size: 0.86rem;
  }

  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .admin-kpi-card {
    padding: 14px;
    gap: 12px;
  }

  .kpi-icon-wrap {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .kpi-value {
    font-size: 1.25rem;
  }

  .kpi-label {
    font-size: 0.74rem;
  }

  .kpi-sub {
    font-size: 0.68rem;
  }

  .admin-recent-summary-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .summary-col {
    padding: 16px;
  }

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

  .btn-hero-cta.btn-jelly {
    justify-content: center;
  }

  .quest-content {
    flex-direction: column;
    align-items: stretch;
  }

  .quest-reward-col {
    justify-content: space-between;
  }

  .room-top-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .room-nav-right {
    justify-content: space-between;
  }

  .live-leaderboard-dock {
    overflow-x: auto;
  }

  .character-speech-bubble {
    max-width: calc(100% - 30px);
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .stage-top-meter-card {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 52px;
    min-width: auto;
    padding: 8px 12px;
  }

  .action-buttons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .candy-btn-label {
    font-size: 0.82rem;
  }

  .candy-btn-sub {
    display: none;
  }

  .quiz-answers-grid {
    grid-template-columns: 1fr;
  }

  .reward-items-showcase {
    grid-template-columns: 1fr;
  }
}

/* Extra Compact Phones (under 480px) */
@media (max-width: 480px) {
  .brand-sub {
    display: none;
  }

  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-top-actions {
    grid-template-columns: 1fr;
  }

  .action-buttons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .btn-action-candy {
    padding: 10px 4px;
  }

  .candy-btn-icon {
    font-size: 1.6rem;
  }

  .candy-btn-label {
    font-size: 0.76rem;
  }
}
```