/* ============================================================
   DBD INFO — Modern Dark System (shadcn / 21st.dev / Linear UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=Oswald:wght@500;600;700;800;900&family=Bebas+Neue&display=swap');

/* ─── CSS Variables & Design Tokens ─── */
:root {
  /* Color Palette — Deep Obsidian & Zinc Base */
  --clr-bg:               #09090b;
  --clr-surface:          rgba(15, 16, 24, 0.75);
  --clr-surface2:         rgba(22, 24, 34, 0.85);
  --clr-surface3:         rgba(30, 33, 48, 0.9);
  --clr-border:           rgba(255, 255, 255, 0.08);
  --clr-border-subtle:    rgba(255, 255, 255, 0.05);
  --clr-border-highlight: rgba(255, 255, 255, 0.14);
  --clr-border-primary:   rgba(var(--clr-primary-rgb), 0.35);

  --clr-primary-rgb:        239, 68, 68;
  --clr-primary-bright-rgb: 248, 113, 113;

  --clr-primary:         #ef4444;
  --clr-primary-bright:  #f87171;
  --clr-primary-glow:    rgba(var(--clr-primary-rgb), 0.28);
  --clr-primary-subtle:  rgba(var(--clr-primary-rgb), 0.1);

  --clr-gold:        #f59e0b;
  --clr-gold-glow:   rgba(245, 158, 11, 0.25);
  --clr-gold-subtle: rgba(245, 158, 11, 0.08);

  --clr-blue:        #3b82f6;
  --clr-blue-bright: #60a5fa;
  --clr-blue-subtle: rgba(59, 130, 246, 0.1);

  --clr-cyan:        #06b6d4;
  --clr-green:       #10b981;
  --clr-yellow:      #f59e0b;
  --clr-purple:      #a855f7;

  --clr-text:        #f8fafc;
  --clr-text-2:      #94a3b8;
  --clr-text-3:      #64748b;

  /* Rarity Colors */
  --rar-ultra:       linear-gradient(135deg, #7c3aed, #db2777);
  --rar-very-rare:   linear-gradient(135deg, var(--clr-primary), #ea580c);
  --rar-rare:        linear-gradient(135deg, #2563eb, #06b6d4);
  --rar-uncommon:    linear-gradient(135deg, #16a34a, #65a30d);
  --rar-common:      linear-gradient(135deg, #475569, #64748b);

  /* Tier Colors */
  --tier-s:          #ef4444;
  --tier-a:          #f97316;
  --tier-b:          #eab308;
  --tier-c:          #22c55e;
  --tier-d:          #6366f1;

  /* Radii */
  --radius-sm:       8px;
  --radius:          12px;
  --radius-lg:       18px;
  --radius-xl:       24px;

  /* Typography */
  --font-body:       'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-display:    'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-game:       'Oswald', 'Bebas Neue', sans-serif;

  /* Shadows & Inset Highlights (shadcn / linear style) */
  --shadow-card:     inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-elevated: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 36px -6px rgba(0, 0, 0, 0.7);
  --shadow-glow:     0 0 30px rgba(var(--clr-primary-rgb), 0.2);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--clr-bg); }

/* Reduced Motion Mode */
html.reduce-motion *,
body.reduce-motion * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

body {
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ════════════════════════════════════════
   0.0 CINEMATIC PAGE OPENING REVEAL ANIMATION
════════════════════════════════════════ */
.page-intro-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: radial-gradient(ellipse 80% 80% at 50% 40%, rgba(18, 20, 32, 0.98) 0%, rgba(6, 7, 12, 0.99) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s;
}

.page-intro-overlay.intro-dismiss {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  pointer-events: none;
}

.intro-glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.8rem 3.2rem;
  background: rgba(18, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  max-width: 440px;
  width: 90%;
  animation: introCardPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes introCardPop {
  0% { opacity: 0; transform: scale(0.92) translateY(18px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.intro-3d-icon-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: float3DIcon 3s ease-in-out infinite;
}

.intro-3d-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.5);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 20px rgba(var(--clr-primary-bright-rgb), 0.6));
}

.intro-3d-glow-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--clr-primary-bright-rgb), 0.55) 0%, transparent 70%);
  filter: blur(12px);
  z-index: -1;
  animation: glowPulse 2.5s ease-in-out infinite alternate;
}

.intro-text-block {
  margin-bottom: 1.5rem;
}

.intro-app-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-app-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary-bright);
}

.intro-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  position: relative;
}

.intro-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-primary-bright) 100%);
  box-shadow: 0 0 10px var(--clr-primary-bright);
  border-radius: 99px;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-status-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--clr-text-3);
  text-transform: uppercase;
}

/* Staggered Entrance Animations on App Loaded */
body.app-loaded .dbd-sidebar {
  animation: sidebarEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.app-loaded .hero-hub-header {
  animation: heroCardEntrance 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

body.app-loaded .hero-stats-bar .hero-stat-item:nth-child(1) { animation: statTileEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
body.app-loaded .hero-stats-bar .hero-stat-item:nth-child(2) { animation: statTileEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both; }
body.app-loaded .hero-stats-bar .hero-stat-item:nth-child(3) { animation: statTileEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.29s both; }
body.app-loaded .hero-stats-bar .hero-stat-item:nth-child(4) { animation: statTileEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both; }

@keyframes sidebarEntrance {
  0% { opacity: 0; transform: translateX(-24px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes heroCardEntrance {
  0% { opacity: 0; transform: translateY(22px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes statTileEntrance {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─── Modern Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--clr-primary-rgb), 0.6); }

/* ─── DBD Wallpaper Background ─── */
.page-bg-wallpaper {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(180deg, rgba(9, 9, 11, 0.8) 0%, rgba(9, 9, 11, 0.6) 40%, rgba(9, 9, 11, 0.95) 100%),
    radial-gradient(ellipse at center, rgba(9, 9, 11, 0.2) 0%, rgba(9, 9, 11, 0.8) 70%, rgba(9, 9, 11, 0.98) 100%),
    url('bg_keyart.webp'),
    url('bg_keyart.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  filter: contrast(105%) brightness(80%);
  opacity: 0.55;
}

/* ─── Background Atmospheric Fog & Glowing Embers ─── */
#fogCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
  mix-blend-mode: screen;
}

.ambient-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(var(--clr-primary-rgb), 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 85%, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* ─── App Layout (Linear / shadcn Sidebar Layout) ─── */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ─── Sleek Modern Sidebar ─── */
.dbd-sidebar {
  width: 275px;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 0.9rem;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 6px 0 35px rgba(0, 0, 0, 0.6);
  z-index: 100;
  overflow-y: auto;
  scrollbar-width: none;
}
.dbd-sidebar::-webkit-scrollbar { display: none; }

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.3rem 0.5rem 0.5rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(var(--clr-primary-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.logo-container:hover .logo-icon {
  transform: scale(1.05);
}
.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo-text h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: #ffffff;
}
.logo-text p {
  font-size: 0.68rem;
  color: var(--clr-text-3);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.sidebar-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
  margin: 1.1rem 0;
  flex-shrink: 0;
}

.nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

/* ─── Modern Nav Buttons (shadcn / Linear UI) ─── */
.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--clr-text-2);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 18px;
  border-radius: 99px;
  background: var(--clr-primary-bright);
  box-shadow: 0 0 10px var(--clr-primary-bright);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
}

.nav-btn.active {
  color: #ffffff;
  background: rgba(var(--clr-primary-rgb), 0.12);
  border-color: rgba(var(--clr-primary-rgb), 0.3);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 18px rgba(var(--clr-primary-rgb), 0.2);
}

.nav-btn.active::before {
  transform: translateY(-50%) scaleY(1);
}

.nav-btn .dbd-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #94a3b8;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-btn img.dbd-icon,
.nav-btn .nav-icon-img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  margin: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), filter 0.22s ease;
}

.nav-btn:hover .dbd-icon,
.nav-btn.active .dbd-icon {
  color: #ffffff;
  transform: scale(1.08);
}

.nav-btn:hover img.dbd-icon,
.nav-btn.active img.dbd-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(var(--clr-primary-rgb), 0.6));
}

.nav-btn-settings {
  margin-top: 0.85rem !important;
  border-radius: 12px !important;
  background: rgba(var(--clr-primary-rgb), 0.08) !important;
  border: 1px solid rgba(var(--clr-primary-rgb), 0.22) !important;
  color: #f1f5f9 !important;
}

.nav-btn-settings:hover {
  background: rgba(var(--clr-primary-rgb), 0.18) !important;
  border-color: rgba(var(--clr-primary-rgb), 0.5) !important;
  box-shadow: 0 4px 16px rgba(var(--clr-primary-rgb), 0.25) !important;
  transform: translateY(-2px) translateX(2px) !important;
}

.nav-btn-settings .nav-icon-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--clr-primary-bright);
  filter: drop-shadow(0 0 6px rgba(var(--clr-primary-rgb), 0.5));
  transition: transform 0.3s ease, stroke 0.2s ease;
}

.nav-btn-settings:hover .nav-icon-svg {
  transform: rotate(60deg) scale(1.1);
  stroke: #ffffff;
  filter: drop-shadow(0 0 10px var(--clr-primary-bright));
}

/* ─── Main Viewport ─── */
.main-viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ─── Main Layout Container ─── */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  box-sizing: border-box;
}

/* ─── Tab Content & Next-Gen Cinematic Category Transitions ─── */
.tab-content {
  display: none;
  position: relative;
}
.tab-content.active {
  display: block;
  animation: categoryEntrance 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}
.tab-content.active::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--clr-primary-bright-rgb), 0.8) 50%, transparent 100%);
  box-shadow: 0 0 16px rgba(var(--clr-primary-bright-rgb), 0.6);
  border-radius: 99px;
  animation: categoryBeamSweep 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
  z-index: 5;
}

@keyframes categoryEntrance {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(4px);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes categoryBeamSweep {
  0% {
    opacity: 0;
    transform: scaleX(0.2);
  }
  40% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(1.3);
  }
}

/* Staggered Content Elements Entrance */
.tab-content.active .section-header {
  animation: categoryHeaderEntrance 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes categoryHeaderEntrance {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content.active .killers-search-row,
.tab-content.active .maps-filter-panel,
.tab-content.active .role-style-selector,
.tab-content.active .shrine-header-bar,
.tab-content.active .quiz-hud-bar {
  animation: categoryControlsEntrance 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

@keyframes categoryControlsEntrance {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Killers Grid Staggered Card Cascade ─── */
.tab-content.active .killers-grid .killer-card {
  animation: killerCardCascade 0.46s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.tab-content.active .killers-grid .killer-card:nth-child(1) { animation-delay: 0.03s; }
.tab-content.active .killers-grid .killer-card:nth-child(2) { animation-delay: 0.06s; }
.tab-content.active .killers-grid .killer-card:nth-child(3) { animation-delay: 0.09s; }
.tab-content.active .killers-grid .killer-card:nth-child(4) { animation-delay: 0.12s; }
.tab-content.active .killers-grid .killer-card:nth-child(5) { animation-delay: 0.15s; }
.tab-content.active .killers-grid .killer-card:nth-child(6) { animation-delay: 0.18s; }
.tab-content.active .killers-grid .killer-card:nth-child(7) { animation-delay: 0.21s; }
.tab-content.active .killers-grid .killer-card:nth-child(8) { animation-delay: 0.24s; }
.tab-content.active .killers-grid .killer-card:nth-child(9) { animation-delay: 0.27s; }
.tab-content.active .killers-grid .killer-card:nth-child(10) { animation-delay: 0.30s; }
.tab-content.active .killers-grid .killer-card:nth-child(n+11) { animation-delay: 0.33s; }

@keyframes killerCardCascade {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── Shrine Grid Staggered Cascade ─── */
.tab-content.active .shrine-grid .shrine-card {
  animation: shrineCardCascade 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.tab-content.active .shrine-grid .shrine-card:nth-child(1) { animation-delay: 0.05s; }
.tab-content.active .shrine-grid .shrine-card:nth-child(2) { animation-delay: 0.10s; }
.tab-content.active .shrine-grid .shrine-card:nth-child(3) { animation-delay: 0.15s; }
.tab-content.active .shrine-grid .shrine-card:nth-child(4) { animation-delay: 0.20s; }

@keyframes shrineCardCascade {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── Tier List Rows Cascade ─── */
.tab-content.active .tier-table-wrapper .tier-row {
  animation: tierRowCascade 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.tab-content.active .tier-table-wrapper .tier-row:nth-child(1) { animation-delay: 0.04s; }
.tab-content.active .tier-table-wrapper .tier-row:nth-child(2) { animation-delay: 0.08s; }
.tab-content.active .tier-table-wrapper .tier-row:nth-child(3) { animation-delay: 0.12s; }
.tab-content.active .tier-table-wrapper .tier-row:nth-child(4) { animation-delay: 0.16s; }
.tab-content.active .tier-table-wrapper .tier-row:nth-child(5) { animation-delay: 0.20s; }

@keyframes tierRowCascade {
  0% {
    opacity: 0;
    transform: translateX(-18px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── Maps Atlas Grid Cascade ─── */
.tab-content.active .maps-atlas-grid .map-atlas-card {
  animation: mapCardCascade 0.46s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.tab-content.active .maps-atlas-grid .map-atlas-card:nth-child(1) { animation-delay: 0.03s; }
.tab-content.active .maps-atlas-grid .map-atlas-card:nth-child(2) { animation-delay: 0.06s; }
.tab-content.active .maps-atlas-grid .map-atlas-card:nth-child(3) { animation-delay: 0.09s; }
.tab-content.active .maps-atlas-grid .map-atlas-card:nth-child(4) { animation-delay: 0.12s; }
.tab-content.active .maps-atlas-grid .map-atlas-card:nth-child(5) { animation-delay: 0.15s; }
.tab-content.active .maps-atlas-grid .map-atlas-card:nth-child(6) { animation-delay: 0.18s; }
.tab-content.active .maps-atlas-grid .map-atlas-card:nth-child(n+7) { animation-delay: 0.21s; }

@keyframes mapCardCascade {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ─── Evaluator Grid Reveal ─── */
.tab-content.active .evaluator-grid .evaluator-box:nth-child(1) {
  animation: evalBoxLeftIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.04s both;
}
.tab-content.active .evaluator-grid .evaluator-box:nth-child(2) {
  animation: evalBoxRightIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both;
}
@keyframes evalBoxLeftIn {
  0% { opacity: 0; transform: translateX(-22px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes evalBoxRightIn {
  0% { opacity: 0; transform: translateX(22px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ─── Roulette Grid Reveal ─── */
.tab-content.active .roulette-grid .roulette-stage-box {
  animation: rouletteBoxIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}
.tab-content.active .roulette-grid .roulette-controls-box {
  animation: rouletteBoxIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}
@keyframes rouletteBoxIn {
  0% { opacity: 0; transform: translateY(18px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Events Grid Cascade ─── */
.tab-content.active .events-grid .event-card {
  animation: eventCardCascade 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.tab-content.active .events-grid .event-card:nth-child(1) { animation-delay: 0.06s; }
.tab-content.active .events-grid .event-card:nth-child(2) { animation-delay: 0.12s; }
.tab-content.active .events-grid .event-card:nth-child(n+3) { animation-delay: 0.18s; }

@keyframes eventCardCascade {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─── Quiz Arena Stage Entrance ─── */
.tab-content.active .quiz-arena .quiz-stage {
  animation: quizStageEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}
@keyframes quizStageEntrance {
  0% { opacity: 0; transform: scale(0.97) translateY(14px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── Section Header ─── */
.section-header { margin-bottom: 1.8rem; }
.section-eyebrow {
  display: none !important;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.section-desc { color: var(--clr-text-2); font-size: 0.92rem; }

/* ─── Hero Hub Dashboard (21st.dev Bento Grid) ─── */
.hero-hub-container {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  width: 100%;
}

.hero-hub-header {
  position: relative;
  background: linear-gradient(145deg, rgba(16, 18, 28, 0.85) 0%, rgba(10, 11, 18, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 2.5rem 2.8rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 45px -15px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.hero-hub-header .hero-gameplay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  border-radius: 24px;
}

.hero-hub-header > *:not(.hero-gameplay-canvas) {
  position: relative;
  z-index: 2;
}

.hero-hub-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--clr-primary-bright) 35%, var(--clr-primary) 65%, transparent);
  box-shadow: 0 0 14px var(--clr-primary-bright);
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(var(--clr-primary-rgb), 0.1);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.25);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: beaconPulse 2s infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #22c55e; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-badge-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fda4af;
  text-transform: uppercase;
}

/* ─── Hero Title with 3D Model Badge (3dicons.co Style) ─── */
.hero-title-with-3d {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.hero-hub-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
  margin: 0;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-3d-badge-wrap {
  perspective: 800px;
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.hero-3d-badge-card {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  animation: levitate3D 4s ease-in-out infinite;
}

.hero-3d-badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.5);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 16px rgba(var(--clr-primary-bright-rgb), 0.55));
  transition: filter 0.25s ease;
}

.hero-3d-glass-reflect {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, transparent 55%);
  pointer-events: none;
}

.hero-3d-glow-ambient {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--clr-primary-bright-rgb), 0.6) 0%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
  animation: ambientGlow3D 3s ease-in-out infinite alternate;
}

.hero-3d-badge-wrap:hover .hero-3d-badge-card {
  box-shadow: 0 0 35px rgba(var(--clr-primary-bright-rgb), 0.75);
}

.hero-3d-badge-wrap:hover .hero-3d-badge-img {
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 24px rgba(var(--clr-primary-bright-rgb), 0.9));
}

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

@keyframes ambientGlow3D {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes float3DIcon {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}

@keyframes glowPulse {
  0% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.hero-hub-subtitle {
  font-size: 1.02rem;
  color: var(--clr-text-2);
  max-width: 820px;
  line-height: 1.6;
  margin: 0 0 1.8rem 0;
}

/* Bento Quick Stats Row */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.hero-stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(var(--clr-primary-rgb), 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(var(--clr-primary-rgb), 0.15);
}

.hero-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hero-stat-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-2);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.hero-stat-item:hover .hero-stat-icon-badge {
  background: rgba(var(--clr-primary-rgb), 0.15);
  border-color: rgba(var(--clr-primary-rgb), 0.4);
  color: var(--clr-primary-bright);
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(var(--clr-primary-rgb), 0.3);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-text-3);
  margin-top: 0.4rem;
}

.hero-stat-divider { display: none; }

/* Section Header for Categories */
.hero-categories-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 16, 24, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--clr-primary-bright);
  border-radius: 14px;
  padding: 0.95rem 1.4rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.hero-categories-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
  line-height: 1;
}

.hero-categories-hint {
  font-size: 0.82rem;
  color: var(--clr-text-3);
  font-weight: 500;
}

/* ─── 9 Bento Category Selection Cards Grid ─── */
.hero-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hero-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(14, 15, 23, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.6rem 1.6rem 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px -5px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  text-decoration: none;
  min-height: 240px;
}

.hero-cat-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-primary-bright) 40%, var(--clr-primary) 60%, transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hero-cat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--clr-primary-rgb), 0.45);
  background: rgba(20, 22, 34, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 24px rgba(var(--clr-primary-rgb), 0.18);
}

.hero-cat-card:hover .hero-cat-top-bar {
  opacity: 1;
}

.hero-cat-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.1rem;
}

.hero-cat-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cat-card:hover .hero-cat-icon-wrap {
  transform: scale(1.08);
  background: rgba(var(--clr-primary-rgb), 0.14);
  border-color: rgba(var(--clr-primary-rgb), 0.45);
  box-shadow: 0 0 22px rgba(var(--clr-primary-rgb), 0.4);
}

.hero-cat-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
  transition: transform 0.28s ease;
}

.hero-cat-card:hover .hero-cat-icon-img {
  transform: scale(1.06);
}

.hero-cat-card:hover .hero-cat-tag {
  color: var(--clr-primary-bright);
  background: rgba(var(--clr-primary-rgb), 0.1);
  border-color: rgba(var(--clr-primary-rgb), 0.3);
}

.hero-cat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-cat-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0 0 0.4rem 0;
  line-height: 1.2;
  transition: color 0.25s ease;
}

.hero-cat-card:hover .hero-cat-name {
  color: #ffffff;
}

.hero-cat-desc {
  font-size: 0.88rem;
  color: var(--clr-text-2);
  line-height: 1.55;
  margin: 0;
}

.hero-cat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.3rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-cat-features {
  font-size: 0.74rem;
  color: var(--clr-text-3);
  font-weight: 500;
}

.hero-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-primary-bright);
  transition: transform 0.2s ease, color 0.2s ease;
}

.hero-cat-card:hover .hero-cat-btn {
  color: #ffffff;
  transform: translateX(4px);
}

.hero-arrow {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.hero-cat-card:hover .hero-arrow {
  transform: translateX(3px);
}

.hero-cat-card-featured {
  border-color: rgba(var(--clr-primary-rgb), 0.25);
}

/* ─── Modern Card (shadcn / linear glassmorphism) ─── */
.card {
  background: var(--clr-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-body { padding: 1.6rem; }

/* ─── Modern Buttons (shadcn / tweakcn) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--clr-primary-bright), var(--clr-primary));
  color: #ffffff;
  padding: 0.65rem 1.4rem;
  box-shadow: 0 4px 16px var(--clr-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 22px rgba(var(--clr-primary-rgb), 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--clr-text);
  padding: 0.65rem 1.3rem;
  border: 1px solid var(--clr-border);
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0f172a;
  padding: 0.75rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 4px 20px var(--clr-gold-glow);
}
.btn-gold:hover {
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.45);
}

/* ─── Modern Segmented Toggle Group (shadcn style) ─── */
.toggle-group {
  display: flex;
  background: rgba(10, 11, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}
.toggle-btn {
  flex: 1;
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: none;
  color: var(--clr-text-2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.toggle-btn:hover { color: #ffffff; }
.toggle-btn.active {
  background: var(--clr-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--clr-primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ─── Modern Chip Buttons (Filter Pills) ─── */
.style-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip-btn {
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--clr-text-2);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}
.chip-btn.active {
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.25);
}

/* ─── Selector Bar ─── */
.selector-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: rgba(15, 16, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.5rem;
}

/* ─── Build Display ─── */
.build-display-container {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.build-display-header {
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.build-title-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clr-gold);
  background: var(--clr-gold-subtle);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  margin-bottom: 0.4rem;
}
.build-title { font-family: var(--font-display); font-size: 1.8rem; color: #fff; }
.build-desc { font-size: 0.85rem; color: var(--clr-text-2); margin-top: 0.2rem; }

/* ─── DBD Build HUD (Diamond Cross Layout - Clean Game View) ─── */
.dbd-build-hud {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2.2rem 2rem;
  background: linear-gradient(135deg, rgba(14, 14, 28, 0.95), rgba(7, 7, 14, 0.98));
  border-bottom: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
}

.dbd-hud-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 120px;
}
.dbd-hud-portrait {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(var(--clr-primary-rgb), 0.5);
  box-shadow: 0 0 25px rgba(var(--clr-primary-rgb), 0.35);
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}
.dbd-hud-char-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 1px;
}

.dbd-hud-diamond-cross {
  position: relative;
  width: 230px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dbd-diamond-slot {
  position: absolute;
  width: 74px;
  height: 74px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.95), rgba(20, 10, 35, 0.98));
  border: 2px solid rgba(168, 85, 247, 0.8);
  box-shadow: 0 0 18px rgba(147, 51, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.dbd-diamond-slot:hover {
  transform: rotate(45deg) scale(1.12);
  box-shadow: 0 0 30px rgba(var(--clr-primary-bright-rgb), 0.85);
  border-color: var(--clr-primary-bright);
  z-index: 10;
}

.dbd-diamond-inner {
  transform: rotate(-45deg);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.8));
}

.dbd-diamond-slot.pos-top    { top: 0; left: 78px; }
.dbd-diamond-slot.pos-right  { top: 78px; left: 156px; }
.dbd-diamond-slot.pos-bottom { top: 156px; left: 78px; }
.dbd-diamond-slot.pos-left   { top: 78px; left: 0; }

.dbd-hud-equipment {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  min-width: 120px;
}

.dbd-power-hex {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, rgba(var(--clr-primary-rgb), 0.9), rgba(69, 10, 10, 0.95));
  border: 2px solid var(--clr-primary-bright);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 22px rgba(var(--clr-primary-rgb), 0.6);
}

.dbd-addons-row {
  display: flex;
  gap: 0.6rem;
}

.dbd-addon-box {
  width: 46px;
  height: 46px;
  background: rgba(20, 20, 35, 0.9);
  border: 1.5px dashed rgba(var(--clr-primary-rgb), 0.5);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: border-color 0.2s;
}
.dbd-addon-box:hover {
  border-color: var(--clr-primary-bright);
}

/* Curated Presets Builds Grid Overhaul */
.presets-builds-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.preset-build-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: rgba(15, 16, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  min-height: 190px;
  height: auto;
  width: 100%;
  box-sizing: border-box;
}

.preset-build-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--clr-primary-rgb), 0.4);
  background: rgba(20, 22, 34, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--clr-primary-rgb), 0.15);
}

.preset-build-info {
  flex: 1;
}

.preset-build-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
}

.preset-build-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 0;
  flex: 0 1 auto;
  line-height: 1.25;
  white-space: normal;
}

.preset-difficulty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.preset-difficulty-badge .diff-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Easy (Green) */
.preset-difficulty-badge.diff-easy {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}
.preset-difficulty-badge.diff-easy .diff-dot {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* Medium (Amber/Yellow) */
.preset-difficulty-badge.diff-medium {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.15);
}
.preset-difficulty-badge.diff-medium .diff-dot {
  background: #eab308;
  box-shadow: 0 0 6px #eab308;
}

/* Hard (Red) */
.preset-difficulty-badge.diff-hard {
  background: rgba(var(--clr-primary-bright-rgb), 0.12);
  color: #f87171;
  border: 1px solid rgba(var(--clr-primary-bright-rgb), 0.3);
  box-shadow: 0 0 10px rgba(var(--clr-primary-bright-rgb), 0.15);
}
.preset-difficulty-badge.diff-hard .diff-dot {
  background: var(--clr-primary-bright);
  box-shadow: 0 0 6px var(--clr-primary-bright);
}

.preset-build-desc {
  font-size: 0.88rem;
  color: var(--clr-text-2);
  line-height: 1.5;
  white-space: normal;
  display: block;
  overflow: visible;
}

.preset-build-perks-row {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.preset-perk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 125px;
}

.preset-perk-item .perk-icon-wrapper {
  width: 96px;
  height: 96px;
  margin-bottom: 0.4rem;
}
.preset-perk-item .perk-icon-wrapper img {
  width: 78px !important;
  height: 78px !important;
  max-width: 78px !important;
  max-height: 78px !important;
}

.preset-perk-name-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-text-2);
  margin-top: 0.35rem;
  white-space: normal;
  line-height: 1.35;
  height: 3.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  width: 100%;
}

@media (max-width: 900px) {
  .preset-build-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem;
    gap: 1.4rem;
    height: auto;
  }
  .preset-build-perks-row {
    width: 100%;
    justify-content: space-around;
  }
}

.perk-icon-wrapper {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  position: relative;
  background: transparent !important;
}

.perk-icon-wrapper img,
.perk-card img {
  width: 68px !important;
  height: 68px !important;
  max-width: 68px !important;
  max-height: 68px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 0 9px rgba(168, 85, 247, 0.85)) drop-shadow(0 0 18px rgba(147, 51, 234, 0.5)) !important;
  transition: transform 0.25s ease, filter 0.25s ease !important;
}

.perk-card:hover img {
  transform: scale(1.1) !important;
  filter: drop-shadow(0 0 14px rgba(var(--clr-primary-rgb), 0.95)) drop-shadow(0 0 26px rgba(var(--clr-primary-bright-rgb), 0.7)) !important;
}

.perk-rarity-dot {
  bottom: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 99px;
  border: 2px solid var(--clr-surface2);
}

.rarity-ultra-rare .perk-rarity-dot { background: #7c3aed; }
.rarity-very-rare  .perk-rarity-dot { background: var(--clr-primary); }
.rarity-rare       .perk-rarity-dot { background: #2563eb; }
.rarity-uncommon   .perk-rarity-dot { background: #16a34a; }

.rarity-ultra-rare { background: var(--rar-ultra); }
.rarity-very-rare  { background: var(--rar-very-rare); }
.rarity-rare       { background: var(--rar-rare); }
.rarity-uncommon   { background: var(--rar-uncommon); }
.rarity-common     { background: var(--rar-common); }

.perk-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.perk-desc {
  font-size: 0.78rem;
  color: var(--clr-text-2);
  line-height: 1.5;
}

/* ─── Killers Grid & Full-Cover Cards ─── */
.killer-dbd-carousel-wrapper { overflow: hidden; }
.killers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

@media (max-width: 1400px) {
  .killers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .killers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .killers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .killers-grid {
    grid-template-columns: 1fr;
  }
}

.killer-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #09090f;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.killer-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--clr-primary-rgb), 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 25px rgba(var(--clr-primary-rgb), 0.3);
}

.killer-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.killer-card-bg img,
.killer-card-bg .killer-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease !important;
}

.killer-card:hover .killer-card-bg img,
.killer-card:hover .killer-card-bg .killer-card-img {
  transform: scale(1.06) !important;
  filter: brightness(1.06) !important;
}

.killer-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 15, 0.1) 0%, rgba(9, 9, 15, 0.4) 45%, rgba(9, 9, 15, 0.88) 75%, rgba(9, 9, 15, 0.98) 100%);
  z-index: 2;
  transition: all 0.3s ease;
}

.killer-card:hover .killer-card-overlay {
  background: linear-gradient(180deg, rgba(var(--clr-primary-rgb), 0.08) 0%, rgba(9, 9, 15, 0.3) 40%, rgba(9, 9, 15, 0.85) 70%, rgba(9, 9, 15, 0.98) 100%);
}

.killer-card-badge-top {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.killer-card-info {
  position: relative;
  z-index: 3;
  padding: 1.1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-header-avatar img {
  width: 100px;
  height: 125px;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 2px solid var(--clr-primary-bright);
  box-shadow: 0 0 22px rgba(var(--clr-primary-rgb), 0.65);
}

.killer-name-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  line-height: 1.25;
}

.killer-card:hover .killer-name-title {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(var(--clr-primary-bright-rgb), 0.7);
}

.killer-real-name {
  font-size: 0.76rem;
  color: var(--clr-text-2);
  margin-bottom: 0.45rem;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.killer-badge-diff {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  background: rgba(9, 9, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--clr-text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.killer-card:hover .killer-badge-diff {
  border-color: rgba(var(--clr-primary-bright-rgb), 0.5);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(var(--clr-primary-rgb), 0.35);
}

/* ─── Dedicated Standalone Killer Detail Page ─── */
.killer-detail-page {
  animation: killerDossierEntrance 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}
@keyframes killerDossierEntrance {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.killer-detail-page .killer-hero-portrait-card {
  animation: killerPortraitIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}
@keyframes killerPortraitIn {
  0% { opacity: 0; transform: scale(0.93) translateY(16px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.killer-detail-page .killer-hero-info-column {
  animation: killerInfoIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both;
}
@keyframes killerInfoIn {
  0% { opacity: 0; transform: translateX(18px); }
  100% { opacity: 1; transform: translateX(0); }
}

.killer-detail-page .killer-power-dossier-card {
  animation: killerPowerIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}
@keyframes killerPowerIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.killer-detail-page .hero-gear-block {
  animation: killerGearIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}
@keyframes killerGearIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.killer-detail-page .killer-build-tab-card {
  animation: killerBuildIn 0.52s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}
@keyframes killerBuildIn {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

.killer-page-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-primary);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(var(--clr-primary-rgb), 0.15);
  position: sticky;
  top: 1rem;
  z-index: 40;
  backdrop-filter: blur(12px);
}

.killer-page-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-text-2);
  letter-spacing: 0.5px;
}

.killer-nav-group {
  display: flex;
  gap: 0.6rem;
}

.killer-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: rgba(var(--clr-primary-rgb), 0.12);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.4);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.killer-nav-btn:hover {
  background: var(--clr-primary-bright);
  border-color: var(--clr-primary-bright);
  box-shadow: 0 0 15px rgba(var(--clr-primary-rgb), 0.6);
  transform: translateY(-1px);
}

.killer-page-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 35px rgba(var(--clr-primary-rgb), 0.15);
}

.killer-page-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--clr-border);
}

.killer-page-footer-bar .killer-nav-btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 650px) {
  .killer-page-nav-bar { flex-direction: column; align-items: stretch; }
  .killer-page-footer-bar { flex-direction: column; }
  .killer-nav-btn { justify-content: center; width: 100%; }
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}
.modal-overlay.active { display: flex; }

.modal-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-primary);
  border-radius: var(--radius-xl);
  max-width: 860px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-elevated), 0 0 60px rgba(var(--clr-primary-rgb), 0.15);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-text-2);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close-btn:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }

/* ══════════════════════════════════════════════════════════════════
   KILLER SUBPAGE: NEXT-GEN CINEMATIC REDESIGN
══════════════════════════════════════════════════════════════════ */

.killer-page-card {
  background: #0d0f17;
  border: 1px solid rgba(var(--clr-primary-rgb), 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.75), 0 0 40px rgba(var(--clr-primary-rgb), 0.15);
}

/* ─── Modular Killer Header Section (Hero Panel) ─── */
.killer-header-hero-panel {
  background: radial-gradient(circle at 85% 15%, rgba(var(--clr-primary-rgb), 0.25) 0%, rgba(18, 14, 26, 0.96) 50%, #080911 100%);
  border-bottom: 2px solid rgba(var(--clr-primary-rgb), 0.35);
  padding: 1.8rem 2.2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.killer-hero-ambient-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(var(--clr-primary-rgb), 0.35) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.killer-hero-main-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* Left: Portrait Card */
.killer-hero-portrait-card {
  flex: 0 0 180px;
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  box-sizing: border-box;
}

.killer-hero-portrait-card .killer-portrait-wrapper,
.killer-portrait-wrapper {
  width: 145px;
  height: 195px;
  background: #08090f;
  border-radius: 16px;
  padding: 5px;
  border: 2px solid var(--clr-primary-bright);
  box-shadow: 0 0 35px rgba(var(--clr-primary-rgb), 0.55), 0 12px 30px rgba(0, 0, 0, 0.85);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.killer-hero-portrait-card .killer-portrait-wrapper:hover,
.killer-portrait-wrapper:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 50px rgba(var(--clr-primary-rgb), 0.8), 0 16px 36px rgba(0, 0, 0, 0.95);
}

.killer-hero-portrait-card .killer-portrait-wrapper img,
.killer-hero-portrait-card .killer-portrait-wrapper .killer-card-img,
.killer-portrait-wrapper img,
.killer-portrait-wrapper .killer-card-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: top center;
  border-radius: 10px;
  display: block;
}

.killer-card-role-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.4);
  padding: 0.3rem 0.6rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--clr-text-2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(var(--clr-primary-rgb), 0.5);
  margin-top: 0.2rem;
  white-space: nowrap;
  width: 180px;
  max-width: 180px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Center & Right Details */
.killer-hero-info-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.killer-hero-top-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  box-sizing: border-box;
}

.killer-hero-summary-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}

.killer-hero-bio-card {
  flex: 0 0 350px;
  width: 350px;
  max-width: 350px;
  height: 100%;
  max-height: 200px;
  box-sizing: border-box;
  background: rgba(14, 16, 28, 0.78);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.35);
  border-left: 3px solid var(--clr-primary-bright);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.killer-hero-bio-card:hover {
  border-color: rgba(var(--clr-primary-bright-rgb), 0.65);
  box-shadow: inset 0 0 30px rgba(var(--clr-primary-rgb), 0.2), 0 6px 25px rgba(0, 0, 0, 0.65);
}

.killer-bio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  margin-bottom: 0.4rem;
}

.killer-bio-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
}

.killer-bio-icon {
  font-size: 0.75rem;
}

.killer-bio-desc {
  font-size: 0.78rem;
  line-height: 1.42;
  color: #cbd5e1;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.15px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
}

.killer-bio-desc::-webkit-scrollbar {
  width: 4px;
}
.killer-bio-desc::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}
.killer-bio-desc::-webkit-scrollbar-thumb {
  background: rgba(var(--clr-primary-rgb), 0.4);
  border-radius: 4px;
}
.killer-bio-desc::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary-bright);
}

.killer-hero-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.killer-title-badges-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.killer-main-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 25px rgba(var(--clr-primary-rgb), 0.6), 0 4px 15px rgba(0, 0, 0, 0.9);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.killer-en-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--clr-primary-bright);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(var(--clr-primary-rgb), 0.6);
  white-space: nowrap;
  flex-shrink: 0;
}

.killer-identity-tags {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

.killer-realname-badge,
.killer-role-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.killer-role-tag {
  border-color: rgba(var(--clr-primary-rgb), 0.3);
  color: #ffffff;
}

/* Telemetry Grid (Speed, Terror, Diff, Tier, Height) */
.killer-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.telemetry-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 0.35rem 0.65rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  min-width: 0;
  white-space: nowrap;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  box-sizing: border-box;
}

.telemetry-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(var(--clr-primary-rgb), 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(var(--clr-primary-rgb), 0.2);
}

.telemetry-icon-box {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.telemetry-icon-box img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}

.telemetry-meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.telemetry-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--clr-text-3);
  line-height: 1.1;
}

.telemetry-value {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

/* Dedicated Killer Power Card */
.killer-power-dossier-card {
  background: rgba(14, 16, 28, 0.7);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.3);
  border-left: 3px solid var(--clr-primary-bright);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(var(--clr-primary-rgb), 0.06);
  height: 125px;
  min-height: 125px;
  max-height: 125px;
  box-sizing: border-box;
}

.power-dossier-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.power-dossier-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  flex-shrink: 0;
}

.power-dossier-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(var(--clr-primary-rgb), 0.5));
}

.power-fallback {
  font-size: 1.3rem;
  color: var(--clr-primary-bright);
}

.power-dossier-titles {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.power-dossier-eyebrow {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--clr-primary-bright);
}

.power-dossier-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.power-dossier-desc {
  font-size: 0.82rem;
  color: var(--clr-text-2);
  line-height: 1.42;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gear Showcase Row: 3 Perks + 2 Addons */
.killer-hero-gear-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  box-sizing: border-box;
}

.hero-gear-block {
  background: rgba(12, 14, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.hero-gear-block.block-unique-perks {
  justify-content: flex-start;
  gap: 0.75rem;
}

.hero-gear-block.block-top-addons {
  justify-content: flex-start;
}

.hero-gear-block-title {
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--clr-text-2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.block-title-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

.addon-dot {
  background: var(--clr-primary-bright);
  box-shadow: 0 0 8px var(--clr-primary-bright);
}

.hero-unique-perks-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  align-items: start;
  margin-top: 0.15rem;
}

.hero-unique-perk-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: transform 0.25s ease;
  min-width: 0;
}

.hero-unique-perk-card:hover {
  transform: translateY(-3px);
}

.hero-perk-diamond-frame {
  width: 58px;
  height: 58px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-perk-aura {
  position: absolute;
  inset: -6px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.7) 0%, transparent 70%);
  filter: blur(8px);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.hero-unique-perk-card:hover .hero-perk-aura {
  transform: scale(1.2);
  background: radial-gradient(circle, rgba(192, 132, 252, 0.9) 0%, transparent 70%);
}

.hero-perk-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

.hero-perk-fallback {
  font-size: 1.6rem;
}

.hero-perk-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  min-width: 0;
}

.hero-perk-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  max-width: 100%;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Addons List */
.hero-addons-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  align-items: center;
  margin: auto 0;
}

.hero-addon-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 20, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  transition: all 0.25s ease;
  cursor: pointer;
  min-height: 74px;
  box-sizing: border-box;
  min-width: 0;
}

.hero-addon-card:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.hero-addon-icon-frame {
  width: 48px;
  height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-addon-aura {
  display: none;
}

.hero-addon-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.hero-addon-fallback {
  font-size: 1.5rem;
}

.hero-addon-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.hero-addon-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ─── Killer Balanced Maps (3 Slots Grid) ─── */
.killer-balanced-maps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.2rem;
}

@media (max-width: 900px) {
  .killer-balanced-maps-grid { grid-template-columns: 1fr; }
}

.balanced-map-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 18, 30, 0.95) 0%, rgba(10, 10, 18, 0.98) 100%);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--clr-primary-rgb), 0.12);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.balanced-map-card:hover {
  transform: translateY(-5px);
  border-color: var(--clr-primary-bright);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(var(--clr-primary-rgb), 0.35);
}

.balanced-map-cover {
  width: 100%;
  height: 155px;
  position: relative;
  overflow: hidden;
  background: #08090f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.balanced-map-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.balanced-map-card:hover .balanced-map-cover img {
  transform: scale(1.08);
}

.balanced-map-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 10, 18, 0.88);
  border: 1px solid var(--clr-primary-bright);
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--clr-primary-bright);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.badge-num {
  color: #ffffff;
}

.map-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 18, 0.9) 100%);
  pointer-events: none;
}

.balanced-map-info {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.balanced-map-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
  transition: color 0.2s ease;
}

.balanced-map-card:hover .balanced-map-title {
  color: var(--clr-primary-bright);
}

.balanced-map-realm {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text-3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ─── 4 Comp Counter Perk Slots (4 Билда на каждого выжившего) ─── */
.comp-build-counter-section {
  margin-top: 1.8rem;
}

.killer-team-builds-container {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 1.2rem;
}

.survivor-build-row-card {
  background: rgba(10, 12, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.survivor-build-row-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(168, 85, 247, 0.12);
}

.survivor-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.55rem;
}

.survivor-row-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.survivor-badge-icon {
  font-size: 0.95rem;
  color: #a855f7;
}

.survivor-row-role {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--clr-text-3);
  letter-spacing: 0.5px;
}

.survivor-row-status-note {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--clr-text-3);
  letter-spacing: 0.4px;
}

.killer-comp-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.comp-perk-slot-card {
  background: rgba(12, 14, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.15rem 0.6rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  height: 100%;
  box-sizing: border-box;
}

.comp-perk-slot-card:hover {
  background: rgba(18, 20, 34, 0.95);
  border-color: rgba(168, 85, 247, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.25);
}

.comp-perk-slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
}

.comp-perk-diamond-frame {
  width: 78px;
  height: 78px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comp-perk-diamond-glow {
  position: absolute;
  width: 85px;
  height: 85px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.comp-perk-diamond-bg {
  display: none;
}

.comp-perk-slot-img {
  position: absolute;
  width: 72px;
  height: 72px;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
  transition: transform 0.25s ease;
}

.comp-perk-slot-card:hover .comp-perk-slot-img {
  transform: scale(1.08);
}

.comp-slot-name-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #c8d6e5;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  width: 100%;
  word-break: normal;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 0.35rem;
  flex: 1;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.comp-perk-slot-card:hover .comp-slot-name-label,
.comp-gear-slot-card:hover .comp-slot-name-label {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
}

/* ─── Survivor Loadout Split Layout: Perks (4) + Gear & Offering (4) ─── */
.survivor-loadout-split-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.survivor-loadout-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.loadout-group-title {
  font-size: 0.68rem;
  font-weight: 900;
  color: #c084fc;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.survivor-loadout-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08) 20%, rgba(168, 85, 247, 0.35) 50%, rgba(255, 255, 255, 0.08) 80%, transparent);
  margin: 1.5rem 0 0.5rem 0;
}

.survivor-gear-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.comp-gear-slot-card {
  background: rgba(12, 14, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.15rem 0.6rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  height: 100%;
  box-sizing: border-box;
}

.comp-gear-slot-card:hover {
  background: rgba(18, 20, 34, 0.95);
  border-color: rgba(168, 85, 247, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.25);
}

/* 1. Hexagon Offering (Подношение - Шестиугольник) */
.comp-offering-hex-frame {
  width: 78px;
  height: 78px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp-offering-hex-glow {
  position: absolute;
  width: 85px;
  height: 85px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

/* 2. Square Item (Предмет - Квадрат) */
.comp-item-square-frame {
  width: 78px;
  height: 78px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp-item-square-glow {
  position: absolute;
  width: 85px;
  height: 85px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

/* 3. Square Addon (Аддоны на предмет) */
.comp-addon-square-frame {
  width: 78px;
  height: 78px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp-addon-square-glow {
  position: absolute;
  width: 85px;
  height: 85px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.comp-gear-slot-img {
  position: absolute;
  width: 68px;
  height: 68px;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
  transition: transform 0.25s ease;
}

.comp-addon-slot-img {
  width: 58px;
  height: 58px;
}

.comp-gear-slot-card:hover .comp-gear-slot-img {
  transform: scale(1.08);
}

@media (max-width: 1200px) {
  .survivor-loadout-split-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .survivor-loadout-divider {
    display: none;
  }
}

@media (max-width: 900px) {
  .killer-comp-slots-grid, .survivor-gear-slots-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .killer-comp-slots-grid, .survivor-gear-slots-grid { grid-template-columns: 1fr; }
}

/* ─── Killer & Survivor Tips Grid at Bottom ─── */
.killer-tips-counter-section {
  margin-top: 2rem;
}

.killer-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}

.killer-tips-card {
  background: linear-gradient(135deg, rgba(20, 16, 32, 0.85) 0%, rgba(12, 14, 24, 0.9) 100%);
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: all 0.28s ease;
}

/* Card: Tips AS Killer (Crimson) */
.tips-card-killer {
  border: 1px solid rgba(239, 68, 68, 0.28);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.08);
}

.tips-card-killer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
}

.tips-card-killer:hover {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(239, 68, 68, 0.18);
  transform: translateY(-2px);
}

.badge-killer {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.title-killer {
  color: #f87171;
}

/* Card: Tips AGAINST Killer (Amber) */
.tips-card-survivor {
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.08);
}

.tips-card-survivor::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.tips-card-survivor:hover {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.18);
  transform: translateY(-2px);
}

.badge-survivor {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.title-survivor {
  color: #fbbf24;
}

.killer-tips-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.tips-badge-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
}

.section-header-logo-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.killer-tips-content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.killer-tips-title {
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0;
}

.killer-tips-text {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 900px) {
  .killer-tips-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Killer Meta Build Section ─── */
.killer-meta-build-section {
  margin-top: 1.8rem;
}

.killer-meta-build-card {
  background: linear-gradient(135deg, rgba(20, 22, 34, 0.9) 0%, rgba(10, 12, 20, 0.98) 100%);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.38);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(var(--clr-primary-rgb), 0.16);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.killer-meta-perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.meta-perk-item-card {
  background: rgba(14, 16, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.meta-perk-item-card:hover {
  background: rgba(22, 24, 38, 0.98);
  border-color: rgba(var(--clr-primary-rgb), 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--clr-primary-rgb), 0.3);
}

.meta-perk-diamond-frame {
  width: 72px;
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meta-perk-diamond-glow {
  position: absolute;
  inset: -6px;
  background: radial-gradient(circle, rgba(var(--clr-primary-rgb), 0.6) 0%, transparent 70%);
  filter: blur(8px);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.meta-perk-item-card:hover .meta-perk-diamond-glow {
  transform: scale(1.15);
  background: radial-gradient(circle, rgba(var(--clr-primary-rgb), 0.85) 0%, transparent 70%);
}

.meta-perk-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(var(--clr-primary-rgb), 0.65));
}

.meta-perk-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-perk-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.meta-perk-role {
  font-size: 0.72rem;
  color: var(--clr-text-3);
  line-height: 1.35;
}

/* Map Rank Badge */
.map-badge-rank {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 10, 18, 0.88);
  border: 1px solid var(--clr-primary-bright);
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--clr-primary-bright);
  backdrop-filter: blur(8px);
  z-index: 2;
}

/* Survivor Row Badges & Pills */
.survivor-row-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.survivor-badge-title {
  font-size: 0.88rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.8px;
}

.survivor-badge-subtitle {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--clr-text-3);
}

.survivor-role-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.survivor-role-pill.tag-green {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.survivor-role-pill.tag-blue {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.survivor-role-pill.tag-gold {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.survivor-role-pill.tag-purple {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.survivor-tactics-bar {
  background: rgba(255, 255, 255, 0.035);
  border-left: 3px solid #a855f7;
  padding: 0.55rem 0.9rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--clr-text-2);
  margin-bottom: 1.1rem;
  line-height: 1.45;
}

.tactics-label {
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.3rem;
}

.comp-perk-empty-icon,
.gear-slot-fallback {
  font-size: 1.8rem;
  color: var(--clr-text-3);
  position: relative;
  z-index: 2;
}

/* Bullet Points in Tips */
.tips-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tips-bullet-points {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tip-bullet {
  font-size: 0.8rem;
  color: var(--clr-text-2);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.tip-bullet span {
  color: var(--clr-primary-bright);
  font-weight: 900;
}

@media (max-width: 1050px) {
  .killer-meta-perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Hero Banner ─── */
.killer-hero-banner {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(var(--clr-primary-rgb), 0.25) 0%, rgba(20, 12, 18, 0.95) 45%, #0d0f17 100%);
  border-bottom: 2px solid rgba(var(--clr-primary-rgb), 0.35);
  padding: 2.8rem 2.5rem;
  overflow: hidden;
}

.killer-hero-ambient-glow {
  position: absolute;
  top: -100px;
  right: -50px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(var(--clr-primary-rgb), 0.25) 0%, rgba(168, 85, 247, 0.08) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.killer-hero-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

/* ─── Portrait 3D Frame ─── */
.killer-hero-portrait-frame {
  width: 155px;
  height: 215px;
  flex-shrink: 0;
  position: relative;
  background: #08090f;
  border-radius: 14px;
  padding: 6px;
  border: 2px solid var(--clr-primary-bright);
  box-shadow: 0 0 35px rgba(var(--clr-primary-rgb), 0.6), 0 15px 35px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.killer-hero-portrait-frame:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 50px rgba(var(--clr-primary-rgb), 0.9), 0 20px 45px rgba(0, 0, 0, 0.95);
}

.killer-hero-portrait-frame img,
.killer-hero-portrait-frame .killer-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  display: block;
}

/* Corner metallic brackets */
.frame-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}
.frame-corner.top-left { top: -2px; left: -2px; border-top: 3px solid var(--clr-primary-bright); border-left: 3px solid var(--clr-primary-bright); }
.frame-corner.top-right { top: -2px; right: -2px; border-top: 3px solid var(--clr-primary-bright); border-right: 3px solid var(--clr-primary-bright); }
.frame-corner.bottom-left { bottom: -2px; left: -2px; border-bottom: 3px solid var(--clr-primary-bright); border-left: 3px solid var(--clr-primary-bright); }
.frame-corner.bottom-right { bottom: -2px; right: -2px; border-bottom: 3px solid var(--clr-primary-bright); border-right: 3px solid var(--clr-primary-bright); }

/* ─── Hero Information ─── */
.killer-hero-main-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.killer-hero-roster-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
}

.red-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--clr-primary-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--clr-primary-bright);
  animation: redPulse 1.8s infinite ease-in-out;
}

@keyframes redPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.killer-hero-title-group {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.killer-hero-ru-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(var(--clr-primary-rgb), 0.6), 0 4px 15px rgba(0, 0, 0, 0.9);
}

.killer-hero-en-badge {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--clr-primary-bright);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(var(--clr-primary-rgb), 0.6);
}

.killer-identity-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.identity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

.identity-chip .chip-icon { font-size: 0.95rem; }
.identity-chip .chip-label { color: var(--clr-text-3); font-weight: 600; }
.identity-chip .chip-value { color: #fff; font-weight: 800; }

.difficulty-chip.diff-easy { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.12); }
.difficulty-chip.diff-easy .chip-value { color: #34d399; }

.difficulty-chip.diff-medium { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.12); }
.difficulty-chip.diff-medium .chip-value { color: #fbbf24; }

.difficulty-chip.diff-hard { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.12); }
.difficulty-chip.diff-hard .chip-value { color: #f87171; }

.difficulty-chip.diff-ultra { border-color: rgba(168, 85, 247, 0.5); background: rgba(168, 85, 247, 0.16); }
.difficulty-chip.diff-ultra .chip-value { color: #c084fc; text-shadow: 0 0 10px rgba(168, 85, 247, 0.8); }

/* ─── HUD Status Grid (3 Stats) ─── */
.killer-hud-stats-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.hud-stat-box {
  background: rgba(16, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.hud-stat-box:hover {
  background: rgba(25, 28, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hud-stat-box.highlight-power {
  border-color: rgba(var(--clr-primary-rgb), 0.5);
  background: linear-gradient(135deg, rgba(var(--clr-primary-rgb), 0.16) 0%, rgba(18, 18, 28, 0.9) 100%);
  box-shadow: 0 0 20px rgba(var(--clr-primary-rgb), 0.15);
}

.hud-stat-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-text-3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hud-stat-box.highlight-power .hud-stat-label {
  color: var(--clr-primary-bright);
}

.hud-stat-value {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

@media (max-width: 820px) {
  .killer-hero-content { flex-direction: column; text-align: center; gap: 1.5rem; }
  .killer-hero-title-group { justify-content: center; }
  .killer-identity-row { justify-content: center; }
  .killer-hud-stats-grid { grid-template-columns: 1fr; }
}

/* ─── Subpage Sections Layout ─── */
.modal-body {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  background: #0a0b12;
}

.subpage-block-section {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.subpage-section-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.header-icon-wrap {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border-radius: 10px;
  flex-shrink: 0;
}

.header-icon-wrap.icon-red {
  background: rgba(var(--clr-primary-rgb), 0.18);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.5);
  box-shadow: 0 0 15px rgba(var(--clr-primary-rgb), 0.25);
}

.header-icon-wrap.icon-gold {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.header-icon-wrap.icon-blue {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.header-icon-wrap.icon-green {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.header-icon-wrap.icon-purple {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
}

.header-icon-wrap.icon-clean {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.section-meta-header-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

.section-map-header-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

.section-builds-header-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

.subpage-section-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.8px;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.subpage-section-desc {
  font-size: 0.85rem;
  color: var(--clr-text-3);
  line-height: 1.4;
}

/* ─── 1. Power Card ─── */
.killer-power-card {
  background: linear-gradient(135deg, rgba(var(--clr-primary-rgb), 0.12) 0%, rgba(18, 15, 26, 0.95) 100%);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.35);
  border-left: 5px solid var(--clr-primary-bright);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.killer-power-icon-seal {
  font-size: 2rem;
  line-height: 1;
  background: rgba(var(--clr-primary-rgb), 0.2);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.5);
  border-radius: 12px;
  padding: 0.6rem;
  flex-shrink: 0;
}

.killer-power-content {
  flex: 1;
}

.killer-power-desc-text {
  font-size: 0.98rem;
  color: #f1f5f9;
  line-height: 1.7;
}

/* ─── 2. Meta Build Card ─── */
.meta-build-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.meta-build-badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #fbbf24;
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
}

.meta-build-tag {
  font-size: 0.76rem;
  color: var(--clr-text-3);
  font-weight: 700;
  text-transform: uppercase;
}

.meta-build-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.meta-build-briefing {
  font-size: 0.88rem;
  color: var(--clr-text-2);
  line-height: 1.55;
  margin-bottom: 1.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Perk Slot Row ─── */
.killer-build-perks-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 860px) {
  .killer-build-perks-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .killer-build-perks-row { grid-template-columns: 1fr; }
}

.killer-build-perk-slot {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.2rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  transition: all 0.25s ease;
}

.killer-build-perk-slot:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.2);
}

.diamond-perk-container {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease;
}

.killer-build-perk-slot:hover .diamond-perk-container {
  transform: scale(1.1);
}

.diamond-perk-img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 14px rgba(245, 158, 11, 0.4));
}

.diamond-perk-fallback { font-size: 2.2rem; }

.killer-perk-slot-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.killer-perk-slot-reason {
  font-size: 0.75rem;
  color: var(--clr-text-2);
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  border-left: 2px solid #fbbf24;
  width: 100%;
}

/* ─── 3. Maps & Addons Grid ─── */
.killer-tactical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

@media (max-width: 768px) {
  .killer-tactical-grid { grid-template-columns: 1fr; }
}

.tactical-panel {
  background: rgba(18, 20, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tactical-panel.maps-panel {
  border-color: rgba(59, 130, 246, 0.3);
}

.tactical-panel.addons-panel {
  border-color: rgba(245, 158, 11, 0.3);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.maps-panel .panel-header h4 { color: #60a5fa; }
.addons-panel .panel-header h4 { color: #fbbf24; }

.maps-chips-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.map-chip-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.86rem;
  color: #f1f5f9;
  transition: all 0.2s ease;
}

.map-chip-item:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateX(3px);
}

.map-pin { font-size: 1rem; flex-shrink: 0; }

.addons-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.addon-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.addon-card-item:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.35);
}

.addon-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.addon-rarity-pill {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.addon-rarity-pill.iridescent {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #f87171;
  color: #fca5a5;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.addon-rarity-pill.very-rare {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid #c084fc;
  color: #e9d5ff;
}

.addon-name {
  font-size: 0.9rem;
  color: #ffffff;
}

.addon-desc {
  font-size: 0.82rem;
  color: var(--clr-text-2);
  line-height: 1.5;
}

/* ─── 4. Combat Strategy & Tips ─── */
.killer-combat-tactics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

@media (max-width: 768px) {
  .killer-combat-tactics-grid { grid-template-columns: 1fr; }
}

.combat-tip-card {
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.combat-tip-card.tip-play-as {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(13, 20, 24, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.combat-tip-card.tip-play-against {
  background: linear-gradient(135deg, rgba(var(--clr-primary-rgb), 0.1) 0%, rgba(24, 13, 18, 0.95) 100%);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.35);
}

.tip-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tip-icon-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.2rem;
}

.tip-icon-box.green {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.tip-icon-box.red {
  background: rgba(var(--clr-primary-rgb), 0.2);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.5);
}

.combat-tip-card.tip-play-as h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #34d399;
  letter-spacing: 0.8px;
}

.combat-tip-card.tip-play-against h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--clr-primary-bright);
  letter-spacing: 0.8px;
}

.tip-card-body {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.65;
}

/* ─── 5. Survivor Counter-Squad Builds Matrix (4x4) ─── */
.counter-squad-section {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.balance-builds-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.6rem;
}

.balance-build-row {
  background: linear-gradient(180deg, rgba(22, 20, 36, 0.95) 0%, rgba(13, 14, 25, 0.98) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.balance-build-row:hover {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(168, 85, 247, 0.25);
  transform: translateY(-2px);
}

.balance-build-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.balance-build-row-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.balance-build-index {
  font-size: 0.72rem;
  font-weight: 900;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.5);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.8px;
}

.balance-build-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: #ffffff;
  line-height: 1.2;
}

.balance-build-en {
  font-size: 0.88rem;
  color: var(--clr-text-3);
  font-weight: 400;
}

.balance-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.badge-green { background: rgba(16, 185, 129, 0.18); border: 1px solid rgba(16, 185, 129, 0.5); color: #34d399; }
.badge-blue { background: rgba(59, 130, 246, 0.18); border: 1px solid rgba(59, 130, 246, 0.5); color: #60a5fa; }
.badge-gold { background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.5); color: #fbbf24; }
.badge-purple { background: rgba(168, 85, 247, 0.18); border: 1px solid rgba(168, 85, 247, 0.5); color: #c084fc; }

.balance-build-tactics {
  font-size: 0.88rem;
  color: #e2e8f0;
  line-height: 1.55;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid #a855f7;
}

.tactics-label {
  color: #c084fc;
  font-weight: 800;
  margin-right: 0.3rem;
}

/* 4 Survivor Diamond Slots in a single horizontal row */
.balance-build-slots-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 860px) {
  .balance-build-slots-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .balance-build-slots-row { grid-template-columns: 1fr; }
}

.balance-perk-slot {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 1.1rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  transition: all 0.25s ease;
  position: relative;
}

.balance-perk-slot:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.3);
}

.balance-perk-diamond-wrap {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease;
}

.balance-perk-slot:hover .balance-perk-diamond-wrap {
  transform: scale(1.1);
}

.balance-perk-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 12px rgba(168, 85, 247, 0.5));
}

.balance-perk-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  width: 100%;
}

.balance-perk-desc {
  font-size: 0.74rem;
  color: var(--clr-text-2);
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  border-left: 2px solid #a855f7;
  width: 100%;
}

/* Empty placeholder */
.killer-build-empty-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.empty-icon { font-size: 2.2rem; }
.empty-title { font-size: 1.05rem; font-weight: 800; color: #fff; }
.empty-desc { font-size: 0.85rem; color: var(--clr-text-3); max-width: 380px; line-height: 1.5; }

/* ─── Shrine of Secrets (Храм Тайн) ─── */
.shrine-header-banner {
  margin-bottom: 1.8rem;
}
.shrine-header-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.6rem;
}
.shrine-emblem-halo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(20, 24, 38, 0.8) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}
.shrine-header-emblem {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.8));
}
.shrine-sub-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 0.15rem;
}
.shrine-main-title {
  font-family: var(--font-display, 'Bebas Neue', 'Oswald', sans-serif);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 0 24px rgba(168, 85, 247, 0.4);
}
.shrine-header-desc {
  font-size: 0.9rem;
  color: var(--clr-text-2);
  max-width: 820px;
  line-height: 1.6;
  margin: 0;
}

.shrine-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ─── Shrine Timer / Obelisk HUD Card ─── */
.shrine-timer-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 2fr 1.2fr;
  align-items: center;
  padding: 1.8rem 2.2rem;
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.95) 0%, rgba(11, 14, 22, 0.98) 100%);
  border: 1px solid rgba(220, 38, 38, 0.35);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(220, 38, 38, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  gap: 1.5rem;
}

.shrine-timer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #991b1b 0%, #ef4444 50%, #991b1b 100%);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.8);
}

.shrine-timer-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.shrine-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  width: fit-content;
}

.pulse-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: shrineBeaconPulse 2s infinite ease-in-out;
}

@keyframes shrineBeaconPulse {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 4px #10b981; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 4px #10b981; }
}

.shrine-status-text {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #34d399;
  text-transform: uppercase;
}

.shrine-timer-sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.2rem;
}

.shrine-reset-schedule {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.25rem;
}

.shrine-timer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.shrine-timer-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--clr-text-3);
}

.shrine-countdown-blocks {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 0.45rem 0.6rem;
  background: rgba(8, 10, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.unit-num {
  font-family: var(--font-display, 'Bebas Neue', 'Oswald', monospace);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
  text-shadow: 0 0 16px rgba(251, 191, 36, 0.5);
}

.unit-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--clr-text-3);
  margin-top: 0.25rem;
}

.unit-divider {
  font-family: var(--font-display, monospace);
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(251, 191, 36, 0.7);
  line-height: 1;
  animation: shrineDividerBlink 1.5s infinite;
}

@keyframes shrineDividerBlink {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.25; }
}

.shrine-timer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.shrine-currency-badge {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(6, 182, 212, 0.18));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.15);
}

.currency-shard-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

.currency-shard-icon-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.75)) drop-shadow(0 0 14px rgba(239, 68, 68, 0.45));
  flex-shrink: 0;
}

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

.currency-amount {
  font-family: var(--font-display, monospace);
  font-size: 1.25rem;
  font-weight: 900;
  color: #e0e7ff;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.currency-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #c084fc;
}

.currency-tier-note {
  font-size: 0.72rem;
  color: var(--clr-text-3);
  text-align: right;
}

/* ─── Shrine Grid ─── */
.shrine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

/* ─── Shrine Perk Card ─── */
.shrine-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(21, 25, 40, 0.94) 0%, rgba(13, 16, 26, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.15rem 1.1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.shrine-card-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0.8;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.shrine-card.role-killer .shrine-card-top-bar {
  background: linear-gradient(90deg, transparent, #ef4444 30%, #b91c1c 70%, transparent);
}
.shrine-card.role-survivor .shrine-card-top-bar {
  background: linear-gradient(90deg, transparent, #38bdf8 30%, #0284c7 70%, transparent);
}

.shrine-card:hover {
  transform: translateY(-6px);
}

.shrine-card.role-killer:hover {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.65), 0 0 28px rgba(239, 68, 68, 0.25);
}
.shrine-card.role-survivor:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.65), 0 0 28px rgba(56, 189, 248, 0.25);
}

.shrine-card:hover .shrine-card-top-bar {
  opacity: 1;
  height: 4px;
}

.shrine-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.shrine-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.shrine-role-pill.role-killer {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.shrine-role-pill.role-survivor {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.role-pill-icon {
  font-size: 0.8rem;
}

.shrine-tier-pill {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.18rem 0.5rem;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  border-radius: 6px;
}

/* ─── Perk Diamond Frame (100% TRANSPARENT BACKGROUND) ─── */
.shrine-perk-frame-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.2rem 0 0.6rem 0;
}

.shrine-perk-frame {
  width: 106px;
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent !important; /* Strictly transparent, no square block! */
  margin: 0 auto;
}

.shrine-perk-aura {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(12px);
  opacity: 0.7;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 1;
}

.shrine-perk-aura.role-killer {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.45) 0%, rgba(168, 85, 247, 0.2) 50%, transparent 70%);
}
.shrine-perk-aura.role-survivor {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45) 0%, rgba(168, 85, 247, 0.2) 50%, transparent 70%);
}

.shrine-card:hover .shrine-perk-aura {
  transform: scale(1.18);
  opacity: 1;
}

.shrine-perk-img {
  width: 92px;
  height: 92px;
  max-width: 92px;
  max-height: 92px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  background: transparent !important;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.75)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease;
}

.shrine-card:hover .shrine-perk-img {
  transform: scale(1.08) rotate(-1deg);
  filter: drop-shadow(0 0 16px rgba(192, 132, 252, 0.95)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.9));
}

.shrine-tag-badge {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.12rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--clr-text-2);
  border-radius: 999px;
}

/* ─── Perk Content ─── */
.shrine-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.shrine-card-titles {
  text-align: center;
}

.shrine-perk-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.shrine-perk-subname {
  font-size: 0.72rem;
  color: var(--clr-text-3);
  font-weight: 600;
  margin-top: 0.15rem;
  font-style: italic;
}

.shrine-owner-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.65rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.shrine-owner-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #000;
  flex-shrink: 0;
}

.shrine-owner-placeholder {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.shrine-owner-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shrine-owner-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--clr-text-3);
  line-height: 1;
}

.shrine-owner-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.shrine-desc-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  min-height: 84px;
  display: flex;
  align-items: flex-start;
}

.shrine-desc-text {
  font-size: 0.76rem;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.48;
  margin: 0;
}

.shrine-highlight-num {
  color: #fbbf24;
  font-weight: 800;
  text-shadow: 0 0 6px rgba(251, 191, 36, 0.35);
}

/* ─── Perk Footer & Actions ─── */
.shrine-card-footer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.shrine-price-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #e0e7ff;
}

.shard-symbol {
  font-size: 1rem;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.8));
}

.shard-symbol-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.7)) drop-shadow(0 0 10px rgba(239, 68, 68, 0.4));
  flex-shrink: 0;
  vertical-align: middle;
}

.info-shard-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
  display: block;
}

.toast-shard-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  vertical-align: middle;
}

.shard-price {
  font-family: var(--font-display, monospace);
  font-size: 1.1rem;
  color: #fbcfe8;
}

.shard-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-text-3);
  text-transform: uppercase;
}

.shrine-action-btn {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 9px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.shrine-action-btn.role-killer {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}
.shrine-action-btn.role-killer:hover {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.55);
  transform: translateY(-2px);
}

.shrine-action-btn.role-survivor {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.shrine-action-btn.role-survivor:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.55);
  transform: translateY(-2px);
}

.shrine-action-btn:active {
  transform: translateY(0);
}

/* ─── Shrine Info Banner / Lore ─── */
.shrine-info-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.shrine-info-card {
  padding: 1.4rem;
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.7) 0%, rgba(13, 16, 26, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.shrine-info-icon {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.shrine-info-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
}

.shrine-info-text {
  font-size: 0.78rem;
  color: var(--clr-text-2);
  line-height: 1.5;
  margin: 0;
}

/* ─── Shrine Floating Toast Notification ─── */
.shrine-notification-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99999;
  pointer-events: none;
}

.shrine-toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, rgba(22, 26, 42, 0.98), rgba(12, 14, 24, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-left: 4px solid #a855f7;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 24px rgba(168, 85, 247, 0.35);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  animation: shrineToastSlideIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.shrine-toast.fade-out {
  opacity: 0;
  transform: translateY(16px);
}

@keyframes shrineToastSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.shrine-toast-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

.shrine-toast-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.shrine-toast-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #c084fc;
  text-transform: uppercase;
}

.shrine-toast-msg {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

/* ─── Shrine Responsive ─── */
@media (max-width: 1100px) {
  .shrine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shrine-timer-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.2rem;
  }
  .shrine-timer-left,
  .shrine-timer-right {
    align-items: center;
    text-align: center;
  }
  .currency-tier-note {
    text-align: center;
  }
}

@media (max-width: 650px) {
  .shrine-grid {
    grid-template-columns: 1fr;
  }
  .shrine-info-banner {
    grid-template-columns: 1fr;
  }
  .countdown-unit {
    min-width: 52px;
    padding: 0.35rem 0.45rem;
  }
  .unit-num {
    font-size: 1.7rem;
  }
}

/* ─── Tier List (Modern TierMaker / shadcn Style with Killer Portraits) ─── */
.tier-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tier-row {
  display: flex;
  min-height: 110px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 16, 26, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s;
}

.tier-row:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.tier-label {
  width: 96px;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 1rem 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  position: relative;
}

.tier-label small {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 2px;
  font-weight: 800;
  opacity: 0.85;
  margin-top: -2px;
}

.tier-s-row .tier-label {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
  box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.4);
}
.tier-a-row .tier-label {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #9a3412 100%);
  box-shadow: inset 0 0 20px rgba(249, 115, 22, 0.4);
}
.tier-b-row .tier-label {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #92400e 100%);
  box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.4);
}
.tier-c-row .tier-label {
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #065f46 100%);
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.4);
}
.tier-d-row .tier-label {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #3730a3 100%);
  box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.4);
}

.tier-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.2rem;
  background: rgba(12, 14, 22, 0.85);
  flex: 1;
}

.tier-killer-card {
  width: 76px;
  height: 104px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #090a14;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.tier-killer-card:hover {
  transform: translateY(-5px) scale(1.08);
  z-index: 10;
  border-color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 20px rgba(var(--clr-primary-rgb), 0.4);
}

.tier-s-row .tier-killer-card:hover {
  border-color: #ef4444;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 22px rgba(239, 68, 68, 0.6);
}

.tier-a-row .tier-killer-card:hover {
  border-color: #f97316;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 22px rgba(249, 115, 22, 0.6);
}

.tier-b-row .tier-killer-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 22px rgba(245, 158, 11, 0.6);
}

.tier-c-row .tier-killer-card:hover {
  border-color: #10b981;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 22px rgba(16, 185, 129, 0.6);
}

.tier-d-row .tier-killer-card:hover {
  border-color: #818cf8;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8), 0 0 22px rgba(99, 102, 241, 0.6);
}

.tier-killer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.tier-killer-card:hover .tier-killer-img {
  transform: scale(1.05);
}

/* ─── Checkspots ─── */
.checkspot-container { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; }
@media (max-width: 860px) { .checkspot-container { grid-template-columns: 1fr; } }

.checkspot-nav { display: flex; flex-direction: column; gap: 2px; }

.checkspot-btn {
  padding: 1rem 1.2rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--clr-text-2);
  transition: all 0.2s;
  text-align: left;
}
.checkspot-btn:hover { background: var(--clr-surface2); border-color: rgba(255,255,255,0.15); color: #fff; }
.checkspot-btn.active { background: var(--clr-surface2); border-color: var(--clr-primary); color: #fff; }
.checkspot-btn-title { font-size: 0.88rem; font-weight: 700; color: inherit; margin-bottom: 0.2rem; }
.checkspot-btn-sub { font-size: 0.75rem; color: var(--clr-text-3); }
.checkspot-btn.active .checkspot-btn-sub { color: var(--clr-text-2); }

.checkspot-display {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.checkspot-display-header { padding: 1.5rem 1.8rem; border-bottom: 1px solid var(--clr-border); }
.checkspot-display-header h3 { font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin-bottom: 0.3rem; }
.checkspot-display-header p { font-size: 0.85rem; color: var(--clr-text-2); }

.canvas-wrapper {
  background: #020204;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--clr-border);
}

.checkspot-tips { padding: 1.5rem 1.8rem; }
.checkspot-tips h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-text-3);
  margin-bottom: 0.8rem;
}
.checkspot-tips ul { list-style: none; }
.checkspot-tips li {
  display: flex;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.85rem;
  color: var(--clr-text-2);
  line-height: 1.4;
}
.checkspot-tips li::before { content: '›'; color: var(--clr-blue); font-size: 1.1rem; margin-top: -1px; flex-shrink: 0; }
.checkspot-tips li:last-child { border-bottom: none; }

/* ─── AI Build Evaluator ─── */
.evaluator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .evaluator-grid { grid-template-columns: 1fr; } }

.evaluator-box {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.evaluator-box-header {
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-surface2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.evaluator-box-body { padding: 1.5rem 1.8rem; }

.perk-select-slot {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.perk-select-slot:last-child { border-bottom: none; }
.perk-slot-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--clr-text-3);
  flex-shrink: 0;
}
/* Strict Perk Image Sizing & Layout Fix with Neon Glow */
.perk-img-icon,
.perk-select-btn img,
.perk-picker-card img,
.eval-perk-row img {
  width: 46px !important;
  height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  object-fit: contain !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 0 7px rgba(168, 85, 247, 0.75)) drop-shadow(0 0 14px rgba(147, 51, 234, 0.4)) !important;
  transition: filter 0.25s ease, transform 0.25s ease !important;
}

.perk-select-btn:hover img,
.perk-picker-card:hover img {
  filter: drop-shadow(0 0 10px rgba(var(--clr-primary-rgb), 0.9)) drop-shadow(0 0 20px rgba(var(--clr-primary-bright-rgb), 0.6)) !important;
  transform: scale(1.08) !important;
}

.perk-select-slot {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  overflow: hidden;
}
.perk-select-slot:last-child { border-bottom: none; }

.perk-select-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--clr-text);
  transition: all 0.2s ease;
  text-align: left;
  min-height: 54px;
  overflow: hidden;
}
.perk-select-btn:hover {
  border-color: var(--clr-blue);
  background: var(--clr-surface3);
  box-shadow: 0 0 15px rgba(59,130,246,0.25);
}
.perk-select-btn-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Standalone Sub-Page Perk Picker Styles */
.perk-picker-subpage {
  animation: killerPageFade 0.3s ease-out;
}

.perk-page-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  position: sticky;
  top: 1rem;
  z-index: 40;
  backdrop-filter: blur(12px);
}

/* Darker, Seamless Search Bar Styling */
#perkSearchInput {
  width: 100%;
  background: rgba(10, 10, 18, 0.95);
  border: 1px solid var(--clr-border);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}
#perkSearchInput::placeholder {
  color: var(--clr-text-3);
}
#perkSearchInput:focus {
  border-color: var(--clr-primary-bright);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5), 0 0 18px rgba(var(--clr-primary-rgb), 0.45);
  background: rgba(15, 15, 26, 0.98);
}

.perk-picker-subpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding-bottom: 2.5rem;
}
.perk-picker-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  overflow: hidden;
}
.perk-picker-card:hover:not(.disabled) {
  background: var(--clr-surface2);
  border-color: var(--clr-primary-bright);
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.6), 0 0 15px rgba(var(--clr-primary-rgb), 0.2);
}
.perk-picker-card.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.8);
  background: rgba(255,255,255,0.02);
}
.perk-picker-card-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Evaluator Result */
.eval-score-ring {
  text-align: center;
  padding: 2rem 1.8rem;
  border-bottom: 1px solid var(--clr-border);
}
.eval-score-number {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  letter-spacing: 2px;
}
.eval-score-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--clr-text-3); margin-top: 0.3rem; }

.eval-perks-list { display: flex; flex-direction: column; gap: 2px; }
.eval-perk-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}
.eval-perk-row.good   { background: rgba(16,185,129,0.07); border: 1px solid rgba(16,185,129,0.18); }
.eval-perk-row.ok     { background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.18); }
.eval-perk-row.bad    { background: rgba(var(--clr-primary-rgb), 0.07);  border: 1px solid rgba(var(--clr-primary-rgb), 0.18);  }

.eval-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  flex-shrink: 0;
}
.good .eval-color-dot  { background: var(--clr-green); box-shadow: 0 0 8px var(--clr-green); }
.ok   .eval-color-dot  { background: var(--clr-gold);  box-shadow: 0 0 8px var(--clr-gold);  }
.bad  .eval-color-dot  { background: var(--clr-primary);   box-shadow: 0 0 8px var(--clr-primary);   }

.eval-perk-info { flex: 1; }
.eval-perk-info strong { font-size: 0.88rem; color: #fff; font-weight: 700; }
.eval-perk-info span   { display: block; font-size: 0.75rem; color: var(--clr-text-2); }
.eval-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  white-space: nowrap;
}
.good .eval-badge { background: rgba(16,185,129,0.2); color: var(--clr-green); }
.ok   .eval-badge { background: rgba(245,158,11,0.2); color: var(--clr-gold);  }
.bad  .eval-badge { background: rgba(var(--clr-primary-rgb), 0.2);  color: var(--clr-primary-bright); }

.eval-verdict {
  padding: 1.2rem 1.5rem;
  background: var(--clr-blue-subtle);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--radius);
}
.eval-verdict h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--clr-blue-bright); margin-bottom: 0.4rem; }
.eval-verdict p   { font-size: 0.84rem; color: var(--clr-text-2); line-height: 1.5; }

/* ─── Roulette (Modern Dark / shadcn Style) ─── */
.roulette-container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: flex-start;
}
@media (max-width: 860px) { .roulette-container { grid-template-columns: 1fr; } }

.player-input-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.player-input-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 20, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.4rem 0.6rem 0.4rem 0.75rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.player-input-item:focus-within {
  border-color: var(--clr-primary-bright);
  background: rgba(22, 25, 38, 0.85);
  box-shadow: 0 0 16px rgba(var(--clr-primary-rgb), 0.15);
}

.player-num-badge {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--clr-text-2);
  flex-shrink: 0;
}

.player-input-icon {
  color: var(--clr-text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-input-item input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--clr-text);
  padding: 0.45rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
}

.player-input-item input::placeholder {
  color: var(--clr-text-3);
  font-size: 0.88rem;
}

.roulette-spin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.95rem 1.8rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px -4px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.roulette-spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(245, 158, 11, 0.6);
}

.roulette-spin-btn:active:not(:disabled) {
  transform: translateY(0);
}

.roulette-spin-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.wheel-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.wheel-pointer {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 24px solid var(--clr-gold);
  filter: drop-shadow(0 3px 8px rgba(245, 158, 11, 0.65));
  z-index: 5;
}

#wheelCanvas {
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 45px rgba(var(--clr-primary-rgb), 0.25), var(--shadow-elevated);
}

.turn-schedule {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.turn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  background: rgba(16, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s, transform 0.2s;
}

.turn-row:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.turn-round-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(var(--clr-primary-rgb), 0.15);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--clr-primary-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
}

.turn-role-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-text-2);
}

.turn-killer-icon-box {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(var(--clr-primary-rgb), 0.18);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.35);
  color: var(--clr-primary-bright);
  transition: all 0.25s ease;
}

.turn-name {
  font-size: 1.05rem;
  font-weight: 800;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  letter-spacing: -0.01em;
}

.turn-name.is-killer {
  color: var(--clr-primary-bright);
  text-shadow: 0 0 12px rgba(var(--clr-primary-rgb), 0.5);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.roulette-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.5rem;
  background: rgba(14, 15, 24, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-align: center;
}

.roulette-empty-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--clr-primary-rgb), 0.1);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.2);
  border-radius: 12px;
  color: var(--clr-primary-bright);
  margin-bottom: 0.8rem;
}

/* ─── Events ─── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--clr-border); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); overflow: hidden; }
.event-card { background: var(--clr-surface); padding: 2rem; transition: background 0.2s; }
.event-card:hover { background: var(--clr-surface2); }

.event-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.2rem 0.7rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.event-status::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.status-active   { color: var(--clr-green); background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); }
.status-upcoming { color: var(--clr-blue-bright); background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); }

.event-card h3 { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; line-height: 1.1; }
.event-dates { font-size: 0.78rem; font-weight: 700; color: var(--clr-gold); margin-bottom: 0.8rem; }
.event-desc  { font-size: 0.83rem; color: var(--clr-text-2); line-height: 1.5; margin-bottom: 1.2rem; }
.event-bonus { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; color: var(--clr-blue-bright); }

/* ─── Promo Codes Grid (1 плашка — 1 промокод) ─── */
.promocodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.promo-card {
  position: relative;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
  opacity: 0.7;
}
.promo-card:hover {
  background: var(--clr-surface2);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 18px rgba(245, 158, 11, 0.12);
}
.promo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
}
.promo-badge-active {
  color: var(--clr-green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.promo-badge-active::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
.promo-expiry-text {
  font-size: 0.75rem;
  color: var(--clr-text-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.promo-code-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(245, 158, 11, 0.45);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.promo-code-pill:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--clr-gold);
}
.promo-code-pill:active {
  transform: scale(0.98);
}
.promo-code-value {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--clr-gold);
  letter-spacing: 1.5px;
}
.promo-copy-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-text-2);
  transition: color 0.2s;
}
.promo-code-pill:hover .promo-copy-action {
  color: #fff;
}
.promo-reward-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.promo-reward-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.promo-reward-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

/* ─── Terror Quiz (Угадай террор маньяка) ─── */
.quiz-header-banner {
  margin-bottom: 1.8rem;
}
.quiz-header-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 0.6rem;
}
.quiz-emblem-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(var(--clr-primary-rgb), 0.25) 0%, rgba(20, 24, 38, 0.8) 100%);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(var(--clr-primary-rgb), 0.3);
  transition: all 0.3s ease;
}
.quiz-header-emblem {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(var(--clr-primary-rgb), 0.8));
  transition: filter 0.3s ease;
}
.quiz-sub-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--clr-primary-bright);
  margin-bottom: 0.15rem;
  transition: color 0.3s ease;
}
.quiz-main-title {
  font-family: var(--font-display, 'Bebas Neue', 'Oswald', sans-serif);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 0 24px rgba(var(--clr-primary-rgb), 0.45);
  transition: text-shadow 0.3s ease;
}
.quiz-header-desc {
  font-size: 0.9rem;
  color: var(--clr-text-2);
  max-width: 820px;
  line-height: 1.6;
  margin: 0;
}

/* ─── Quiz Arena ─── */
.quiz-arena {
  max-width: 880px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(22, 26, 42, 0.95) 0%, rgba(12, 14, 24, 0.98) 100%);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.35);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(var(--clr-primary-rgb), 0.18);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quiz-arena::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--clr-primary-bright) 30%, var(--clr-primary) 70%, transparent);
  box-shadow: 0 0 14px rgba(var(--clr-primary-rgb), 0.8);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ─── Top HUD Bar ─── */
.quiz-hud-bar {
  padding: 1.4rem 2rem;
  background: rgba(8, 10, 18, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.quiz-hud-left {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-1;
  min-width: 220px;
}

.quiz-round-badge {
  display: inline-flex;
  align-items: center;
}

.round-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.quiz-progress-track {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.quiz-pip {
  height: 6px;
  flex: 1;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.quiz-pip.pip-pending {
  background: rgba(255, 255, 255, 0.1);
}

.quiz-pip.pip-current {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
  transform: scaleY(1.3);
}

.quiz-pip.pip-correct {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.quiz-pip.pip-wrong {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.quiz-hud-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quiz-stats-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.quiz-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #34d399;
}

.quiz-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #fbbf24;
}

.quiz-reset-btn {
  padding: 0.45rem 0.9rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--clr-text-3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-reset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* ─── Quiz Stage / Audio Chamber ─── */
.quiz-stage {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

/* ─── Heartbeat Stage ─── */
.heartbeat-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

.terror-heart-wrap {
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.dbd-heart-svg,
.dbd-heart-img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(var(--clr-primary-rgb), 0.9)) drop-shadow(0 0 32px rgba(var(--clr-primary-rgb), 0.65));
  transition: transform 0.2s ease, filter 0.3s ease;
  display: block;
  user-select: none;
  pointer-events: none;
}

.heart-shockwave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(var(--clr-primary-rgb), 0.5);
  opacity: 0;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.terror-heart-wrap.is-beating .dbd-heart-svg,
.terror-heart-wrap.is-beating .dbd-heart-img {
  animation: dbdHeartPulse 0.65s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 0 24px rgba(var(--clr-primary-rgb), 1)) drop-shadow(0 0 45px rgba(var(--clr-primary-rgb), 0.9));
}

.terror-heart-wrap.is-beating .shockwave-1 {
  animation: shockwaveRipple 1.3s infinite 0s ease-out;
}
.terror-heart-wrap.is-beating .shockwave-2 {
  animation: shockwaveRipple 1.3s infinite 0.45s ease-out;
}
.terror-heart-wrap.is-beating .shockwave-3 {
  animation: shockwaveRipple 1.3s infinite 0.9s ease-out;
}

@keyframes dbdHeartPulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.22); }
  45% { transform: scale(1.05); }
  65% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes shockwaveRipple {
  0% { transform: scale(0.6); opacity: 0.9; border-color: rgba(var(--clr-primary-rgb), 0.9); }
  100% { transform: scale(2.2); opacity: 0; border-color: rgba(var(--clr-primary-rgb), 0); }
}

/* ─── Equalizer Frequency Bars ─── */
.sound-equalizer-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  margin-bottom: 0.8rem;
}

.eq-bar {
  width: 4px;
  height: 6px;
  background: rgba(var(--clr-primary-rgb), 0.4);
  border-radius: 2px;
  transition: height 0.2s ease, background-color 0.3s ease;
}

.sound-equalizer-bars.is-playing .eq-bar {
  background: linear-gradient(180deg, #fbbf24 0%, var(--clr-primary-bright) 100%);
  box-shadow: 0 0 8px rgba(var(--clr-primary-rgb), 0.6);
  animation: eqBarDance 0.8s infinite ease-in-out alternate;
}

.sound-equalizer-bars.is-playing .bar-1 { animation-delay: 0.1s; }
.sound-equalizer-bars.is-playing .bar-2 { animation-delay: 0.35s; }
.sound-equalizer-bars.is-playing .bar-3 { animation-delay: 0.15s; }
.sound-equalizer-bars.is-playing .bar-4 { animation-delay: 0.5s; }
.sound-equalizer-bars.is-playing .bar-5 { animation-delay: 0.25s; }
.sound-equalizer-bars.is-playing .bar-6 { animation-delay: 0.6s; }
.sound-equalizer-bars.is-playing .bar-7 { animation-delay: 0.2s; }
.sound-equalizer-bars.is-playing .bar-8 { animation-delay: 0.4s; }

@keyframes eqBarDance {
  0% { height: 6px; }
  50% { height: 26px; }
  100% { height: 12px; }
}

.stage-cue-text {
  font-size: 0.88rem;
  color: var(--clr-text-2);
  font-weight: 600;
  text-align: center;
  min-height: 24px;
}

.cue-correct {
  color: #34d399;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.6);
}

.cue-wrong {
  color: #f87171;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.6);
}

/* ─── Controls: Play Button & Volume ─── */
.quiz-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0.4rem;
  margin-bottom: 1.6rem;
}

.play-terror-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.88rem 2.2rem;
  background: linear-gradient(135deg, rgba(var(--clr-primary-rgb), 0.85) 0%, var(--clr-primary-bright) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(var(--clr-primary-rgb), 0.45);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.play-terror-btn:hover {
  background: linear-gradient(135deg, var(--clr-primary-bright) 0%, var(--clr-primary) 100%);
  box-shadow: 0 8px 30px rgba(var(--clr-primary-rgb), 0.7);
  transform: translateY(-2px) scale(1.02);
}

.play-terror-btn.playing {
  background: linear-gradient(135deg, rgba(var(--clr-primary-rgb), 0.7) 0%, var(--clr-primary) 100%);
  border-color: var(--clr-primary-bright);
  box-shadow: 0 0 24px rgba(var(--clr-primary-rgb), 0.65);
}

.play-btn-icon {
  font-size: 1.1rem;
}

/* ─── Custom Volume Widget ─── */
.custom-volume-widget {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.vol-icon {
  font-size: 1rem;
  color: var(--clr-text-3);
}

.volume-slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.volume-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--clr-primary-bright);
  box-shadow: 0 0 8px rgba(var(--clr-primary-rgb), 0.75);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.volume-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  filter: brightness(1.2);
}

.volume-slider-input::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--clr-primary-bright);
  border: none;
  box-shadow: 0 0 8px rgba(var(--clr-primary-rgb), 0.75);
  cursor: pointer;
}

.volume-percent-badge {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
  min-width: 36px;
  text-align: right;
}

/* ─── Options Grid ─── */
.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  width: 100%;
}

.quiz-opt-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.4rem;
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.9) 0%, rgba(13, 16, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #ffffff;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: left;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.quiz-opt-card:hover {
  background: linear-gradient(135deg, rgba(30, 36, 56, 0.95) 0%, rgba(18, 22, 36, 0.98) 100%);
  border-color: rgba(var(--clr-primary-rgb), 0.55);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(var(--clr-primary-rgb), 0.25);
  transform: translateY(-3px);
}

.opt-card-left {
  display: flex;
  align-items: center;
}

.opt-letter-badge {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  color: #e0e7ff;
  transition: all 0.2s;
}

.quiz-opt-card:hover .opt-letter-badge {
  border-color: var(--clr-primary-bright);
  color: var(--clr-primary-bright);
  box-shadow: 0 0 8px rgba(var(--clr-primary-rgb), 0.4);
}

.opt-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.2rem;
}

.opt-killer-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.opt-killer-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--clr-text-3);
  font-weight: 500;
  font-style: normal;
}

.opt-card-reveal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: revealFadeIn 0.3s ease;
}

@keyframes revealFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.opt-killer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: #000;
}

.opt-terror-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fbbf24;
  white-space: nowrap;
}

.quiz-opt-card.correct {
  border-color: #10b981 !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 78, 59, 0.35) 100%) !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.5) !important;
}
.quiz-opt-card.correct .opt-letter-badge {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.quiz-opt-card.wrong {
  border-color: #ef4444 !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(127, 29, 29, 0.35) 100%) !important;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.5) !important;
  animation: wrongShake 0.4s ease;
}
.quiz-opt-card.wrong .opt-letter-badge {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

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

/* ─── Scorecard Results View ─── */
.quiz-scorecard {
  padding: 2.5rem 2rem;
  width: 100%;
}

.scorecard-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
  text-align: center;
}

.scorecard-rank-badge {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 2rem;
  background: rgba(8, 10, 18, 0.7);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.45);
  box-shadow: 0 0 24px rgba(var(--clr-primary-rgb), 0.25);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  text-align: left;
  transition: all 0.3s ease;
}

.rank-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-badge-icon-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(var(--clr-primary-rgb), 0.45));
  transition: filter 0.3s ease;
}

.rank-badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.rank-badge-title {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--clr-primary-bright);
  transition: color 0.3s ease;
}

.rank-badge-desc {
  font-size: 0.85rem;
  color: var(--clr-text-2);
  line-height: 1.45;
}

.scorecard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  width: 100%;
  max-width: 680px;
}

.metric-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.metric-num {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.5);
}

.metric-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--clr-text-3);
  text-transform: uppercase;
}

.scorecard-review-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.scorecard-history-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  width: 100%;
  max-width: 680px;
}

.history-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-align: left;
}

.history-card.history-correct {
  border-color: rgba(16, 185, 129, 0.4);
}
.history-card.history-wrong {
  border-color: rgba(239, 68, 68, 0.4);
}

.history-portrait {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.history-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.history-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-sub {
  font-size: 0.68rem;
  color: var(--clr-text-3);
}

.history-status-mark {
  font-size: 1.1rem;
  font-weight: 900;
}

.history-card.history-correct .history-status-mark {
  color: #10b981;
}
.history-card.history-wrong .history-status-mark {
  color: #ef4444;
}

.scorecard-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.scorecard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.88rem 2.2rem;
  background: linear-gradient(135deg, rgba(var(--clr-primary-rgb), 0.85) 0%, var(--clr-primary-bright) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(var(--clr-primary-rgb), 0.45);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scorecard-btn:hover {
  background: linear-gradient(135deg, var(--clr-primary-bright) 0%, var(--clr-primary) 100%);
  box-shadow: 0 8px 30px rgba(var(--clr-primary-rgb), 0.7);
  transform: translateY(-2px) scale(1.02);
}

/* ─── Quiz Responsive ─── */
@media (max-width: 768px) {
  .quiz-options-grid {
    grid-template-columns: 1fr;
  }
  .scorecard-history-grid {
    grid-template-columns: 1fr;
  }
  .scorecard-metrics-grid {
    grid-template-columns: 1fr;
  }
  .quiz-controls-row {
    flex-direction: column;
    gap: 1.2rem;
  }
  .scorecard-rank-badge {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Hero Section ─── */
.hero-section {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 3rem;
  border: 1px solid var(--clr-border-primary);
  box-shadow: var(--shadow-elevated), var(--shadow-red);
}

.hero-gameplay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(7,7,14,0.98) 0%, rgba(7,7,14,0.6) 40%, rgba(7,7,14,0.2) 100%);
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  padding: 3rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-primary-bright);
  background: rgba(var(--clr-primary-rgb), 0.12);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--clr-primary); border-radius: 99px; animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.8);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--clr-text-2);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
}

.feature-quick-card {
  background: rgba(14,14,28,0.8);
  padding: 1.4rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature-quick-card:hover { background: rgba(26,26,52,0.95); }

.feature-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--clr-surface3);
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.feature-quick-card:hover .feature-icon { transform: scale(1.1); }

.feature-text h3 { font-size: 0.9rem; font-weight: 800; color: #fff; margin-bottom: 0.2rem; }
.feature-text p  { font-size: 0.78rem; color: var(--clr-text-2); line-height: 1.4; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .app-layout {
    flex-direction: column;
  }
  .dbd-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(var(--clr-primary-rgb), 0.25);
  }
  .sidebar-divider {
    margin: 0.75rem 0;
  }
  .nav-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }
  .nav-btn {
    font-size: 0.95rem;
    padding: 0.55rem 0.85rem;
  }
  .app-container {
    padding: 1.5rem 1rem 4rem;
  }
  .hero-content-wrapper {
    padding: 2rem 1.5rem;
  }
  .modal-info-grid, .modal-tips-grid, .modal-perks-grid {
    grid-template-columns: 1fr;
  }
}

.ui-icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  vertical-align: -0.2em;
  margin-right: 0.3rem;
  display: inline-block;
}
  
/* Shrine specific override */  
#shrineGrid .perk-img-icon {  
  width: 110px !important;  
  height: 110px !important;  
  max-width: 110px !important;  
  max-height: 110px !important;  
} 

/* THEMES */
[data-theme="blue"] {
  --clr-primary-rgb: 59, 130, 246;
  --clr-primary-bright-rgb: 96, 165, 250;
  --clr-primary: #3b82f6;
  --clr-primary-bright: #60a5fa;
  --clr-primary-glow: rgba(59, 130, 246, 0.3);
  --clr-primary-subtle: rgba(59, 130, 246, 0.08);
  --clr-border-primary: rgba(59, 130, 246, 0.35);
}

[data-theme="green"] {
  --clr-primary-rgb: 16, 185, 129;
  --clr-primary-bright-rgb: 52, 211, 153;
  --clr-primary: #10b981;
  --clr-primary-bright: #34d399;
  --clr-primary-glow: rgba(16, 185, 129, 0.3);
  --clr-primary-subtle: rgba(16, 185, 129, 0.08);
  --clr-border-primary: rgba(16, 185, 129, 0.35);
}

[data-theme="white"] {
  --clr-primary-rgb: 248, 250, 252;
  --clr-primary-bright-rgb: 255, 255, 255;
  --clr-primary: #f8fafc;
  --clr-primary-bright: #ffffff;
  --clr-primary-glow: rgba(255, 255, 255, 0.3);
  --clr-primary-subtle: rgba(255, 255, 255, 0.08);
  --clr-border-primary: rgba(255, 255, 255, 0.35);
}

[data-theme="black"] {
  --clr-primary-rgb: 0, 0, 0;
  --clr-primary-bright-rgb: 26, 26, 26;
  --clr-primary: #000000;
  --clr-primary-bright: #1a1a1a;
  --clr-primary-glow: rgba(0, 0, 0, 0.6);
  --clr-primary-subtle: rgba(0, 0, 0, 0.3);
  --clr-border-primary: rgba(0, 0, 0, 0.6);
}

[data-theme="pink"] {
  --clr-primary-rgb: 236, 72, 153;
  --clr-primary-bright-rgb: 244, 114, 182;
  --clr-primary: #ec4899;
  --clr-primary-bright: #f472b6;
  --clr-primary-glow: rgba(236, 72, 153, 0.3);
  --clr-primary-subtle: rgba(236, 72, 153, 0.08);
  --clr-border-primary: rgba(236, 72, 153, 0.35);
}

[data-theme="yellow"] {
  --clr-primary-rgb: 234, 179, 8;
  --clr-primary-bright-rgb: 253, 224, 71;
  --clr-primary: #eab308;
  --clr-primary-bright: #fde047;
  --clr-primary-glow: rgba(234, 179, 8, 0.3);
  --clr-primary-subtle: rgba(234, 179, 8, 0.08);
  --clr-border-primary: rgba(234, 179, 8, 0.35);
}



.theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.theme-btn {
  padding: 0.8rem 1.2rem;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-btn:hover {
  border-color: var(--clr-primary);
  background: var(--clr-surface3);
}

/* ─── Map Clocks Grid & Cards ─── */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

@media (max-width: 1400px) {
  .maps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .maps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .maps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .maps-grid {
    grid-template-columns: 1fr;
  }
}

.map-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
}

.map-card:hover {
  background: var(--clr-surface2);
  border-color: var(--clr-primary-bright);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 18px rgba(var(--clr-primary-rgb), 0.35);
}

.map-card-cover {
  width: 100%;
  height: 150px;
  position: relative;
  overflow: hidden;
  background: #080811;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.map-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.map-card:hover .map-card-cover img {
  transform: scale(1.08);
}

.map-card-content {
  padding: 1.1rem 0.9rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  justify-content: center;
}

.map-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
}

.map-card:hover .map-card-title {
  color: var(--clr-primary-bright);
}

.map-card-realm {
  font-size: 0.78rem;
  color: var(--clr-text-3);
  font-weight: 600;
}

/* /* ══════════════════════════════════════════════════════════════════
   MAP CLOCKS 2.0: TACTICAL REALM ATLAS & BLUEPRINT STAGE
══════════════════════════════════════════════════════════════════ */

/* ─── 1. Atlas Grid & Header ─── */
.maps-header-banner {
  margin-bottom: 1.5rem;
}
.maps-header-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 0.5rem;
}
.maps-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.35);
  flex-shrink: 0;
}
.maps-title-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.maps-subtitle-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ef4444;
  margin-bottom: 0.2rem;
}

/* Filter Panel */
.maps-filter-panel {
  background: rgba(13, 15, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1rem 1.4rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
}
.maps-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1rem;
}
.maps-search-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.maps-search-icon {
  position: absolute;
  left: 1.1rem;
  font-size: 1rem;
  color: var(--clr-text-3);
  pointer-events: none;
}
#mapSearchInput {
  width: 100%;
  background: rgba(8, 9, 15, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.8rem 2.8rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}
#mapSearchInput:focus {
  border-color: var(--clr-primary-bright);
  box-shadow: 0 0 16px rgba(var(--clr-primary-rgb), 0.4);
}
.maps-clear-btn {
  position: absolute;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--clr-text-3);
  font-size: 1rem;
  cursor: pointer;
}
.maps-count-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--clr-gold);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
  white-space: nowrap;
}

/* Maps Grid */
.maps-atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  padding-bottom: 3rem;
}
.map-atlas-card {
  background: rgba(14, 16, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.map-atlas-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary-bright);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(var(--clr-primary-rgb), 0.3);
}
.map-card-img-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #090b14;
}
.map-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.28);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block;
}
.map-atlas-card:hover .map-card-img {
  transform: scale(1.33);
}
.map-card-body {
  padding: 0.85rem 1.15rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(14, 16, 26, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.map-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  margin: 0;
  line-height: 1.25;
  transition: color 0.2s ease;
}
.map-atlas-card:hover .map-card-title {
  color: var(--clr-primary-bright);
}
.map-card-realm {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-text-3);
  letter-spacing: 0.2px;
}

.maps-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4.5rem 1rem;
}

/* ─── 2. Map Detail Sub-Page ─── */
.map-detail-page {
  animation: mapDetailEntrance 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
  padding-bottom: 3rem;
  will-change: transform, opacity;
}
@keyframes mapDetailEntrance {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.map-detail-page .map-hero-banner {
  animation: mapHeroIn 0.48s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}
@keyframes mapHeroIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.map-detail-page .map-clock-stage {
  animation: mapClockIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both;
}
@keyframes mapClockIn {
  0% { opacity: 0; transform: translateX(-18px); }
  100% { opacity: 1; transform: translateX(0); }
}

.map-detail-page .map-intel-sidebar {
  animation: mapIntelIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}
@keyframes mapIntelIn {
  0% { opacity: 0; transform: translateX(18px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Top Detail Navigation Bar */
.map-detail-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.3rem;
  background: rgba(14, 16, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 1.3rem;
  position: sticky;
  top: 1rem;
  z-index: 40;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.map-back-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.map-back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateX(-3px);
}
.map-nav-title-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.map-nav-counter {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--clr-gold);
}
.map-nav-realm {
  font-size: 0.78rem;
  color: var(--clr-text-3);
  padding-left: 0.8rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.map-nav-arrows {
  display: flex;
  gap: 0.4rem;
}
.map-arrow-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--clr-text);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.map-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* Map Page Card Frame */
.map-page-card {
  background: rgba(11, 13, 22, 0.96);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.32);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(var(--clr-primary-rgb), 0.18);
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hero Header Banner */
.map-hero-banner {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(var(--clr-primary-rgb), 0.24) 0%, rgba(18, 20, 34, 0.95) 50%, #0b0d17 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 2rem 2.4rem;
  overflow: hidden;
  transition: background 0.3s ease;
}
.map-hero-ambient-glow {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(var(--clr-primary-rgb), 0.22) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
  transition: background 0.3s ease;
}
.map-hero-content {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  position: relative;
  z-index: 2;
}
@media (max-width: 768px) {
  .map-hero-content {
    flex-direction: column;
    text-align: center;
  }
}
.map-hero-thumbnail-frame {
  width: 190px;
  height: 125px;
  flex-shrink: 0;
  position: relative;
  background: #08090f;
  border-radius: 12px;
  padding: 4px;
  border: 2px solid rgba(var(--clr-primary-rgb), 0.65);
  box-shadow: 0 0 25px rgba(var(--clr-primary-rgb), 0.45), 0 10px 25px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.map-hero-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.18);
  border-radius: 8px;
  display: block;
}
.frame-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: #fbbf24;
  border-style: solid;
}
.frame-corner.top-left     { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.frame-corner.top-right    { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.frame-corner.bottom-left  { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.frame-corner.bottom-right { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

.map-hero-details {
  flex: 1;
}
.map-hero-meta-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.map-meta-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}
.realm-pill { background: rgba(var(--clr-primary-rgb), 0.18); border: 1px solid rgba(var(--clr-primary-rgb), 0.45); color: var(--clr-primary-bright); }
.type-pill  { background: rgba(6, 182, 212, 0.2); border: 1px solid rgba(6, 182, 212, 0.4); color: #06b6d4; }
.clock-pill { background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.4); color: #fbbf24; }

.map-hero-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0;
  text-shadow: 0 0 20px rgba(var(--clr-primary-rgb), 0.45);
  transition: text-shadow 0.3s ease;
}
.map-hero-desc {
  font-size: 0.88rem;
  color: var(--clr-text-2);
  line-height: 1.55;
  max-width: 800px;
}

/* ─── 3. Two-Column Tactical Blueprint Layout ─── */
.map-blueprint-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.8rem;
  padding: 2rem 2.4rem;
  background: #090b14;
}
@media (max-width: 1080px) {
  .map-blueprint-layout {
    grid-template-columns: 1fr;
  }
}

/* Left: Blueprint Stage */
.map-clock-stage {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.stage-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.1rem;
  background: rgba(18, 20, 34, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}
.stage-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
}
.stage-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(var(--clr-primary-rgb), 0.15);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.4);
  color: var(--clr-primary-bright);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.stage-zoom-btn:hover {
  background: rgba(var(--clr-primary-rgb), 0.3);
  border-color: var(--clr-primary);
  color: #fff;
  box-shadow: 0 0 14px rgba(var(--clr-primary-rgb), 0.45);
}

.map-clock-canvas-box {
  position: relative;
  background: #0b0d17;
  border: 1px solid rgba(var(--clr-primary-rgb), 0.38);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.85), 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(var(--clr-primary-rgb), 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.canvas-blueprint-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(var(--clr-primary-rgb), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--clr-primary-rgb), 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  transition: background-image 0.3s ease;
}
.map-clock-img-container {
  position: relative;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.map-clock-img-container:hover {
  transform: scale(1.015);
}
.map-clock-img {
  max-height: 520px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.clock-zoom-hint {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-text-3);
  letter-spacing: 0.5px;
}

.map-clock-missing-box {
  text-align: center;
  padding: 3rem 1rem;
  z-index: 2;
}
.missing-preview-img {
  max-width: 320px;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
}
.missing-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}
.missing-desc {
  font-size: 0.84rem;
  color: var(--clr-text-3);
  max-width: 380px;
  margin: 0 auto;
}

/* Right: Intel Sidebar */
.map-intel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.intel-card {
  background: rgba(16, 18, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.intel-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 0.9rem;
}
.intel-card-header h4 {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

/* Legend Tiles */
.legend-tiles-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.legend-tile-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.tile-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  text-align: center;
  min-width: 44px;
}
.badge-clock    { background: rgba(var(--clr-primary-rgb), 0.22); border: 1px solid var(--clr-primary); color: var(--clr-primary-bright); }
.badge-shack    { background: rgba(245, 158, 11, 0.25); border: 1px solid #fbbf24; color: #fde047; }
.badge-main     { background: rgba(59, 130, 246, 0.25); border: 1px solid #3b82f6; color: #93c5fd; }
.badge-basement { background: rgba(168, 85, 247, 0.25); border: 1px solid #c084fc; color: #e9d5ff; }
.badge-center   { background: rgba(16, 185, 129, 0.25); border: 1px solid #34d399; color: #a7f3d0; }
.badge-feature  { background: rgba(251, 146, 60, 0.25); border: 1px solid #fb923c; color: #fed7aa; }

.tile-info {
  flex: 1;
}
.tile-info strong {
  display: block;
  font-size: 0.82rem;
  color: #fff;
  margin-bottom: 0.15rem;
}
.tile-info span {
  display: block;
  font-size: 0.72rem;
  color: var(--clr-text-3);
  line-height: 1.35;
}



/* Bottom Nav Footer */
.map-page-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  background: rgba(14, 16, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}
@media (max-width: 680px) {
  .map-page-footer-bar {
    flex-direction: column;
  }
}
.map-footer-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--clr-text);
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.map-footer-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}
.map-footer-btn.back {
  background: rgba(var(--clr-primary-rgb), 0.18);
  border-color: rgba(var(--clr-primary-rgb), 0.4);
  color: #fff;
}
.map-footer-btn.back:hover {
  background: rgba(var(--clr-primary-rgb), 0.32);
  border-color: var(--clr-primary);
  box-shadow: 0 0 14px rgba(var(--clr-primary-rgb), 0.4);
}

/* ─── 4. Fullscreen Blueprint Modal ─── */
.map-fullscreen-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  animation: mapModalOverlayFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes mapModalOverlayFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.map-modal-content {
  position: relative;
  background: #0b0d18;
  border: 1px solid rgba(var(--clr-primary-rgb), 0.5);
  border-radius: var(--radius-xl, 16px);
  padding: 1.5rem 1.8rem 1.2rem 1.8rem;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 45px rgba(var(--clr-primary-rgb), 0.25);
  box-sizing: border-box;
  animation: mapModalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes mapModalPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.map-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.map-modal-close:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #ffffff;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 0 16px rgba(var(--clr-primary-rgb), 0.6);
}

.map-modal-header {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 0 0 12px rgba(var(--clr-primary-rgb), 0.5);
  padding-right: 2rem;
  padding-left: 2rem;
}

.map-modal-img-wrap {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 72vh;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px;
  box-sizing: border-box;
}

.map-modal-img-wrap img {
  max-height: 70vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.map-modal-footer {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--clr-text-3);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.map-modal-footer strong {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

/* ════════════════════════════════════════
   DBD SETTINGS & CUSTOMIZATION SYSTEM (shadcn / Linear UI)
════════════════════════════════════════ */

/* Top Floating Actions (Discord + Settings in Top-Right Corner) */
.top-floating-actions {
  position: fixed;
  top: 1.15rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 9999;
}

.top-action-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(14, 16, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  user-select: none;
}

.top-action-btn svg {
  transition: transform 0.28s ease, fill 0.28s ease, color 0.28s ease;
}

/* Discord button */
.top-action-btn.discord-btn {
  color: #cbd5e1;
}

.top-action-btn.discord-btn:hover {
  background: rgba(var(--clr-primary-rgb), 0.2);
  border-color: var(--clr-primary-bright);
  color: var(--clr-primary-bright);
  transform: translateY(-2px) scale(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 22px rgba(var(--clr-primary-rgb), 0.6);
}

.top-action-btn.discord-btn:hover svg {
  transform: scale(1.1);
  fill: var(--clr-primary-bright);
}

/* Settings button */
.top-action-btn.theme-settings-btn:hover {
  background: rgba(var(--clr-primary-rgb), 0.2);
  border-color: var(--clr-primary-bright);
  color: var(--clr-primary-bright);
  transform: translateY(-2px) rotate(45deg) scale(1.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 22px rgba(var(--clr-primary-rgb), 0.6);
}

@media (max-width: 768px) {
  .top-floating-actions {
    top: 0.85rem;
    right: 0.85rem;
    gap: 0.5rem;
  }
  .top-action-btn {
    width: 40px;
    height: 40px;
  }
  .top-action-btn svg {
    width: 19px;
    height: 19px;
  }
}

/* Settings Modal Overlay */
.settings-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: settingsFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes settingsFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Settings Modal Card (shadcn Dialog style) */
.settings-modal-card {
  background: rgba(13, 14, 22, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(var(--clr-primary-rgb), 0.15);
  animation: settingsScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.settings-modal-top-accent {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-primary-bright) 35%, var(--clr-primary) 65%, transparent);
  box-shadow: 0 0 14px var(--clr-primary-bright);
  width: 100%;
  flex-shrink: 0;
}

/* Modal Header */
.settings-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.8rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.settings-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.settings-header-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--clr-primary-rgb), 0.12);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary-bright);
  box-shadow: 0 0 16px rgba(var(--clr-primary-rgb), 0.2);
  flex-shrink: 0;
}

.settings-header-gear-icon {
  animation: slowSpin 25s linear infinite;
}

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

.settings-modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.settings-modal-subtitle {
  font-size: 0.82rem;
  color: var(--clr-text-2);
  margin: 0.2rem 0 0 0;
}

.settings-modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.settings-modal-close-btn:hover {
  background: rgba(var(--clr-primary-rgb), 0.8);
  border-color: var(--clr-primary);
  color: #ffffff;
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 0 14px rgba(var(--clr-primary-rgb), 0.6);
}

/* Settings Navigation Tabs */
.settings-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.8rem 0;
  background: rgba(8, 9, 14, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.settings-nav-tabs::-webkit-scrollbar { display: none; }

.settings-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--clr-text-2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-radius: 8px 8px 0 0;
}

.settings-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.settings-tab-btn.active {
  color: #ffffff;
  border-bottom-color: var(--clr-primary-bright);
  background: rgba(var(--clr-primary-rgb), 0.1);
  font-weight: 700;
}

.settings-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--clr-text-2);
  transition: all 0.2s ease;
}

.settings-tab-btn:hover .settings-tab-icon,
.settings-tab-btn.active .settings-tab-icon {
  color: var(--clr-primary-bright);
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(var(--clr-primary-rgb), 0.5));
}

.settings-tab-svg {
  display: block;
}

.btn-svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.danger-svg-icon {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.5));
}

.audio-vol-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-3);
}

.audio-vol-icon svg {
  display: block;
}

.footer-check-icon svg {
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.6));
}

.settings-footer-save-btn svg {
  display: inline-block;
  vertical-align: middle;
}

/* Settings Modal Body */
.settings-modal-body {
  padding: 1.6rem 1.8rem;
  overflow-y: auto;
  flex: 1;
}

.settings-modal-body::-webkit-scrollbar {
  width: 6px;
}
.settings-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.settings-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}
.settings-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary-bright);
}

/* Settings Tab Pane */
.settings-tab-pane {
  display: none;
  animation: tabPaneFade 0.2s ease-out;
}
.settings-tab-pane.active {
  display: block;
}

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

/* Settings Section */
.settings-section {
  background: rgba(15, 16, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.3rem 1.4rem;
}

.settings-section-head {
  margin-bottom: 1.1rem;
}

.settings-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin: 0 0 0.2rem 0;
}

.settings-section-desc {
  font-size: 0.8rem;
  color: var(--clr-text-2);
  margin: 0;
}

/* Theme Presets Grid */
.theme-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

@media (max-width: 768px) {
  .theme-presets-grid { grid-template-columns: repeat(2, 1fr); }
}

.theme-preset-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 20, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.theme-preset-card:hover {
  background: rgba(24, 26, 40, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.theme-preset-card.active {
  background: rgba(26, 28, 44, 0.95);
  border-color: var(--clr-primary-bright);
  box-shadow: 0 0 16px rgba(var(--clr-primary-rgb), 0.3);
}

.theme-preset-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease;
}

.theme-preset-card:hover .theme-preset-swatch {
  transform: scale(1.1);
}

.theme-preset-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.theme-preset-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-preset-hex {
  font-size: 0.68rem;
  color: var(--clr-text-3);
  font-family: monospace;
}

.theme-preset-check {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--clr-primary-bright);
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.theme-preset-card.active .theme-preset-check {
  opacity: 1;
}

/* Custom Color Control Box */
.custom-color-control-box {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  background: rgba(18, 20, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
}

.custom-color-swatch-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  cursor: pointer;
}

.custom-color-picker-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.custom-color-preview-swatch {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: var(--clr-primary-bright);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 14px rgba(var(--clr-primary-rgb), 0.45);
  transition: transform 0.2s ease;
}

.custom-color-swatch-wrap:hover .custom-color-preview-swatch {
  transform: scale(1.06);
}

.custom-color-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 150px;
}

.custom-color-hex-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--clr-text-3);
  text-transform: uppercase;
}

.custom-color-hex-field {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  color: #ffffff;
  font-family: monospace;
  font-size: 0.92rem;
  font-weight: 700;
  width: 120px;
  outline: none;
  transition: border-color 0.2s ease;
}

.custom-color-hex-field:focus {
  border-color: var(--clr-primary-bright);
  box-shadow: 0 0 10px rgba(var(--clr-primary-rgb), 0.35);
}

.settings-btn-reset-accent {
  background: rgba(var(--clr-primary-rgb), 0.1);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.3);
  color: var(--clr-primary-bright);
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.settings-btn-reset-accent:hover {
  background: rgba(var(--clr-primary-rgb), 0.2);
  border-color: var(--clr-primary);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(var(--clr-primary-rgb), 0.3);
}

/* Wallpapers Gallery Grid */
.wallpapers-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .wallpapers-gallery-grid { grid-template-columns: 1fr; }
}

.wallpaper-thumb-card {
  background: rgba(14, 16, 26, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.wallpaper-thumb-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.wallpaper-thumb-card.active {
  border-color: var(--clr-primary-bright);
  box-shadow: 0 0 20px rgba(var(--clr-primary-rgb), 0.4);
}

.wallpaper-thumb-img-wrap {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
  background: #08090f;
}

.wallpaper-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wallpaper-thumb-card:hover .wallpaper-thumb-img {
  transform: scale(1.06);
}

.wallpaper-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(10, 12, 20, 0.4) 100%);
}

.wallpaper-thumb-meta {
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: rgba(12, 14, 24, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wallpaper-thumb-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallpaper-thumb-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--clr-primary-bright);
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.wallpaper-thumb-card.active .wallpaper-thumb-badge {
  opacity: 1;
}

/* Settings Controls Row & Sliders */
.settings-controls-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

@media (max-width: 650px) {
  .settings-controls-row { grid-template-columns: 1fr; }
}

.settings-slider-group {
  background: rgba(18, 20, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.settings-slider-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--clr-text-2, #94a3b8);
  text-transform: uppercase;
}

.settings-slider-val {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--clr-primary-bright);
  font-family: monospace;
}

.settings-range-slider {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.settings-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clr-primary-bright);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(var(--clr-primary-rgb), 0.8);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.settings-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.settings-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--clr-text, #f1f5f9);
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.settings-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Settings Toggle Cards */
.settings-toggle-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.settings-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background: rgba(18, 20, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  transition: border-color 0.2s ease;
}

.settings-toggle-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.settings-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.settings-toggle-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
}

.settings-toggle-desc {
  font-size: 0.74rem;
  color: var(--clr-text-2, #94a3b8);
}

/* Switch Toggle (iOS style) */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.switch-toggle input:checked + .switch-slider {
  background-color: var(--clr-primary-bright);
  border-color: var(--clr-primary-bright);
  box-shadow: 0 0 12px rgba(var(--clr-primary-rgb), 0.5);
}

.switch-toggle input:checked + .switch-slider::before {
  transform: translateX(20px);
}

/* Segmented Control */
.settings-segmented-control {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.segmented-btn {
  flex: 1;
  padding: 0.55rem 0.9rem;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--clr-text-2, #94a3b8);
  font-family: var(--font-body, sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.segmented-btn:hover {
  color: #ffffff;
}

.segmented-btn.active {
  background: var(--clr-primary-bright);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(var(--clr-primary-rgb), 0.4);
}

/* Audio Control Card */
.settings-audio-control-card {
  background: rgba(18, 20, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.settings-volume-badge {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--clr-primary-bright);
  font-family: monospace;
}

.settings-audio-slider-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.audio-vol-icon {
  font-size: 1.1rem;
}

.settings-audio-test-btn {
  background: rgba(var(--clr-primary-rgb), 0.15);
  border: 1px solid rgba(var(--clr-primary-rgb), 0.4);
  color: var(--clr-primary-bright);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.settings-audio-test-btn:hover {
  background: var(--clr-primary-bright);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(var(--clr-primary-rgb), 0.6);
}

/* System Telemetry Grid */
.system-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 650px) {
  .system-telemetry-grid { grid-template-columns: 1fr; }
}

.telemetry-info-box {
  background: rgba(18, 20, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.telemetry-box-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--clr-text-3, #64748b);
  text-transform: uppercase;
}

.telemetry-box-val {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
}

/* Danger Zone */
.settings-danger-zone {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.danger-zone-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.danger-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.danger-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #f87171;
  margin: 0 0 0.2rem 0;
}

.danger-desc {
  font-size: 0.78rem;
  color: var(--clr-text-2, #94a3b8);
  margin: 0;
}

.settings-danger-reset-btn {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.8) 0%, rgba(185, 28, 28, 0.9) 100%);
  border: 1px solid #ef4444;
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-family: var(--font-body, sans-serif);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35);
}

.settings-danger-reset-btn:hover {
  background: #ef4444;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.6);
}

/* Settings Modal Footer */
.settings-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.8rem;
  background: rgba(8, 9, 16, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.settings-footer-note {
  font-size: 0.76rem;
  color: var(--clr-text-3, #64748b);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-check-icon {
  color: #10b981;
  font-weight: 900;
}

.settings-footer-save-btn {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-bright) 100%);
  border: 1px solid var(--clr-primary-bright);
  color: #ffffff;
  padding: 0.75rem 1.8rem;
  border-radius: 10px;
  font-family: var(--font-body, sans-serif);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(var(--clr-primary-rgb), 0.4);
}

.settings-footer-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(var(--clr-primary-rgb), 0.7);
}

