/* Legends of Runeterra: Path of Champions - Companion App Dark Theme */

:root {
  --header-height: 155px;
  --bg-dark: #090c10;
  --bg-panel: #121824;
  --bg-card: #192234;
  --bg-card-hover: #222d45;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 210, 255, 0.3);

  --text-main: #f0f4f8;
  --text-muted: #8c9ba5;
  --text-gold: #f3d179;
  
  --accent-gold: #c8aa6e;
  --accent-cyan: #00d2ff;
  --accent-blue: #2f80ed;
  --accent-green: #2ed573;
  --accent-orange: #ffa502;
  --accent-red: #ff4757;
  --accent-purple: #a55eea;

  --badge-3-bg: rgba(46, 213, 115, 0.15);
  --badge-3-text: #2ed573;
  --badge-2-bg: rgba(0, 210, 255, 0.15);
  --badge-2-text: #00d2ff;
  --badge-1-bg: rgba(255, 165, 2, 0.15);
  --badge-1-text: #ffa502;
  --badge-0-bg: rgba(255, 71, 87, 0.2);
  --badge-0-text: #ff4757;

  --shadow-main: 0 8px 24px rgba(0, 0, 0, 0.4);
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;

  --transition-fast: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* App Layout Structure */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header & Navbar - Stitch Modern Aesthetic with Cosmic Background Art */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 24px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background-image: 
    linear-gradient(180deg, rgba(9, 12, 16, 0.82) 0%, rgba(13, 17, 23, 0.94) 100%),
    url('https://ddragon.leagueoflegends.com/cdn/img/champion/splash/AurelionSol_0.jpg');
  background-size: cover;
  background-position: center 22%;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(243, 209, 121, 0.25);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(243, 209, 121, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-corner-actions {
  position: absolute;
  top: 14px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.header-corner-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 28, 36, 0.75);
  border: 1.5px solid rgba(243, 209, 121, 0.45);
  color: var(--text-gold);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.header-corner-btn:hover {
  background: rgba(243, 209, 121, 0.22);
  border-color: var(--text-gold);
  box-shadow: 0 0 14px rgba(243, 209, 121, 0.55);
  transform: scale(1.1);
  color: #fff;
}

.header-top-centered {
  text-align: center;
  width: 100%;
}

.header-brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: linear-gradient(180deg, #ffffff 25%, var(--text-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  margin: 0;
  text-align: center;
}

/* Stitch Unified Navigation Toolbar */
.stitch-toolbar-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(22, 28, 36, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 5px 8px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.stitch-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--stitch-text-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stitch-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.stitch-nav-btn.primary-gold {
  background: rgba(243, 209, 121, 0.18);
  border-color: rgba(243, 209, 121, 0.5);
  color: var(--text-gold);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(243, 209, 121, 0.2);
}

.stitch-nav-btn.primary-gold:hover {
  background: rgba(243, 209, 121, 0.28);
  color: #fff;
  border-color: var(--text-gold);
  box-shadow: 0 0 16px rgba(243, 209, 121, 0.35);
}

.stitch-nav-btn.danger {
  background: rgba(255, 71, 87, 0.08);
  border-color: rgba(255, 71, 87, 0.25);
  color: #ff6b81;
}

.stitch-nav-btn.danger:hover {
  background: rgba(255, 71, 87, 0.2);
  color: #fff;
  border-color: rgba(255, 71, 87, 0.5);
}

/* Stat Counters Banner - Frosted Glass */
.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: rgba(22, 28, 36, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 20px;
  flex-wrap: wrap;
  width: auto;
  max-width: 100%;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}

.stat-label {
  color: var(--stitch-text-muted);
}

.stat-value {
  font-weight: 700;
  color: var(--stitch-cyan);
}

.stat-value.completed {
  color: var(--accent-green);
}

.stat-value.planned {
  color: var(--text-gold);
}

/* Main Container Layout: Sidebar Roster + Challenges Grid */
.main-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 24px;
  flex: 1;
}

@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* Section Panels */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-main);
  overflow: hidden;
}

.panel-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-gold);
}

/* Roster Sidebar - Sticky with Non-Scrolling Top Controls */
.roster-sidebar {
  position: sticky;
  top: calc(var(--header-height, 155px) + 16px);
  max-height: calc(100vh - var(--header-height, 155px) - 32px);
  display: flex;
  flex-direction: column;
  background: rgba(22, 28, 36, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.roster-sticky-header {
  flex-shrink: 0;
  background: rgba(18, 24, 32, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.roster-controls {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 32px 8px 12px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--text-gold);
  box-shadow: 0 0 10px rgba(243, 209, 121, 0.25);
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--stitch-text-muted);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  padding: 0;
  z-index: 2;
}

.search-clear-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.search-clear-btn:hover {
  background: rgba(243, 209, 121, 0.25);
  color: var(--text-gold);
  border-color: rgba(243, 209, 121, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.filter-pills {
  display: flex;
  gap: 6px;
}

/* Roster Controls: 3 Equal Parts Frosted Glass Segmented Bar */
.roster-controls .filter-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: rgba(22, 28, 36, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.roster-controls .pill-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--stitch-text-muted);
  border-radius: 7px;
  padding: 6px 4px;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.roster-controls .pill-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.roster-controls .pill-btn.active {
  background: rgba(243, 209, 121, 0.16);
  color: var(--text-gold);
  border: 1px solid rgba(243, 209, 121, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 10px rgba(243, 209, 121, 0.2);
  font-weight: 800;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pill-btn:hover, .pill-btn.active {
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(0, 210, 255, 0.3);
}

.roster-list {
  padding: 12px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.roster-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.roster-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  transform: translateX(2px);
}

.roster-card.maxed {
  opacity: 0.45;
  background: rgba(14, 18, 24, 0.45);
  border-color: rgba(255, 255, 255, 0.04);
}

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

.champion-name {
  font-weight: 600;
  font-size: 14px;
}

.champion-region {
  font-size: 11px;
  color: var(--text-muted);
}

/* Usage Badges - Gold For All, Faded Out for 0/3 */
.use-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  color: var(--text-gold);
  background: rgba(243, 209, 121, 0.12);
  border: 1px solid rgba(243, 209, 121, 0.35);
  transition: all var(--transition-fast);
}

.use-badge.uses-3,
.use-badge.uses-2,
.use-badge.uses-1 {
  color: var(--text-gold);
  background: rgba(243, 209, 121, 0.12);
  border: 1px solid rgba(243, 209, 121, 0.35);
}

.use-badge.uses-0 {
  color: rgba(243, 209, 121, 0.4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.45;
}

/* Challenges Panel & Sticky Top Header (Title + Filters) */
.challenges-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: visible !important;
}

.challenges-sticky-header {
  position: sticky;
  top: calc(var(--header-height, 155px) + 16px);
  z-index: 85;
  background: rgba(18, 24, 32, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  margin-bottom: 20px;
  overflow: visible !important;
}

.challenges-sticky-header .panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
}

.panel-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.month-selector-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.month-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.month-select-icon {
  position: absolute;
  left: 8px;
  font-size: 11px;
  pointer-events: none;
  z-index: 1;
}

.month-select {
  height: 28px;
  padding: 2px 24px 2px 26px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-gold, #c8aa6e);
  background-color: rgba(14, 20, 30, 0.9);
  border: 1px solid rgba(200, 170, 110, 0.4);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23c8aa6e' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 8px 5px;
}

.month-select:hover, .month-select:focus {
  border-color: var(--text-gold, #c8aa6e);
  box-shadow: 0 0 8px rgba(200, 170, 110, 0.35);
  outline: none;
}

.badge-preset-official {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #f0e6d2;
  background: linear-gradient(135deg, rgba(200, 170, 110, 0.3), rgba(120, 90, 40, 0.4));
  border: 1px solid rgba(200, 170, 110, 0.6);
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(200, 170, 110, 0.2);
  user-select: none;
}

.badge-preset-custom {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #a09b8c;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  user-select: none;
}

/* New Month Alert Banner */
.new-month-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  margin: 6px 12px 10px 12px;
  background: linear-gradient(90deg, rgba(200, 170, 110, 0.18), rgba(15, 25, 35, 0.92));
  border: 1px solid var(--text-gold, #c8aa6e);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.new-month-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #f0e6d2;
}

.new-month-banner-content .banner-icon {
  font-size: 14px;
}

.new-month-banner .banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.challenges-sticky-header .toolbar {
  padding: 12px 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: none;
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 13px;
  overflow: visible;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-label {
  font-size: 12px;
  color: var(--stitch-text-muted);
}

.select-input {
  background: rgba(22, 28, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
  transition: all var(--transition-fast);
}

.select-input:focus {
  border-color: var(--text-gold);
  box-shadow: 0 0 10px rgba(243, 209, 121, 0.25);
}

/* ==========================================================================
   Stitch Glassmorphism Custom Select Dropdowns
   ========================================================================== */
.stitch-select-wrapper {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  user-select: none;
  z-index: 20;
}

.stitch-select-wrapper.is-open {
  z-index: 1200;
}

.stitch-select-trigger {
  background: rgba(22, 28, 36, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text-main);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.stitch-select-trigger:hover {
  border-color: rgba(243, 209, 121, 0.5);
  background: rgba(30, 38, 48, 0.9);
  box-shadow: 0 0 12px rgba(243, 209, 121, 0.18);
}

.stitch-select-wrapper.is-open .stitch-select-trigger {
  border-color: var(--text-gold);
  background: rgba(30, 38, 48, 0.96);
  box-shadow: 0 0 16px rgba(243, 209, 121, 0.3);
}

.stitch-select-arrow {
  color: var(--text-gold);
  font-size: 11px;
  line-height: 1;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.stitch-select-wrapper.is-open .stitch-select-arrow {
  transform: rotate(180deg);
}

.stitch-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  z-index: 1300;
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(243, 209, 121, 0.35);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(243, 209, 121, 0.12);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
  animation: stitchSelectFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stitch-select-wrapper.is-open .stitch-select-menu {
  display: flex;
}

@keyframes stitchSelectFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stitch-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.stitch-select-option:hover {
  background: rgba(243, 209, 121, 0.14);
  color: #ffffff;
  transform: translateX(3px);
}

.stitch-select-option.is-selected {
  background: rgba(243, 209, 121, 0.2);
  color: var(--text-gold);
  font-weight: 800;
}

.stitch-select-check {
  font-size: 12px;
  font-weight: 900;
  color: var(--text-gold);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.stitch-select-option.is-selected .stitch-select-check {
  opacity: 1;
}

/* Custom Scrollbar for stitch-select-menu */
.stitch-select-menu::-webkit-scrollbar {
  width: 5px;
}
.stitch-select-menu::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.stitch-select-menu::-webkit-scrollbar-thumb {
  background: rgba(243, 209, 121, 0.35);
  border-radius: 4px;
}
.stitch-select-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(243, 209, 121, 0.6);
}

/* Challenge Cards Grid */
.challenges-grid {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.challenge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all var(--transition-fast);
  content-visibility: auto;
  contain-intrinsic-size: 0 340px;
}

.challenge-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

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

.challenge-number-badge {
  background: rgba(243, 209, 121, 0.14);
  color: var(--text-gold);
  font-weight: 900;
  font-size: 15.5px;
  padding: 2px 8px;
  border-radius: 7px;
  border: 1px solid rgba(243, 209, 121, 0.4);
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.star-rating {
  color: var(--text-gold);
  font-size: 14px;
  letter-spacing: 1px;
}

/* Smart Counter Button & Modal Card Styles */
.counter-advice-btn {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--text-gold);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.counter-advice-btn:hover {
  background: rgba(255, 215, 0, 0.25);
  border-color: var(--text-gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  transform: translateY(-1px);
}

.counter-card {
  background: rgba(22, 28, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.counter-card:hover {
  border-color: rgba(243, 209, 121, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(243, 209, 121, 0.15);
}

.counter-card.top-recommendation {
  border: 1px solid var(--text-gold);
  background: linear-gradient(135deg, rgba(243, 209, 121, 0.14), rgba(22, 28, 36, 0.8));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(243, 209, 121, 0.2);
}

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

.counter-champ-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.counter-champ-info .roster-champ-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--text-gold);
  box-shadow: 0 0 12px rgba(243, 209, 121, 0.4);
  object-fit: cover;
}

.counter-reason-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  border-radius: 8px;
}

.btn-counter-assign {
  margin-top: 6px;
  width: 100%;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.btn-counter-assign.available {
  background: linear-gradient(135deg, rgba(243, 209, 121, 0.18) 0%, rgba(243, 209, 121, 0.08) 100%);
  border: 1px solid rgba(243, 209, 121, 0.45);
  color: var(--text-gold);
}

.btn-counter-assign.available:hover {
  background: linear-gradient(135deg, #f3d179 0%, #dfb755 100%);
  color: #000;
  box-shadow: 0 0 16px rgba(243, 209, 121, 0.45);
  transform: translateY(-1px);
}

.btn-counter-assign.disabled {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--stitch-text-muted);
  cursor: not-allowed;
}

.btn-unassign-champ:hover {
  background: rgba(255, 71, 87, 0.25) !important;
  border-color: #ff4757 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Unconventional Counter Pick Card */
.counter-card.unconventional-pick {
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.08) 0%, rgba(22, 28, 36, 0.8) 100%);
  border: 1px solid rgba(46, 213, 115, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(46, 213, 115, 0.15);
}

.counter-card.unconventional-pick:hover {
  border-color: rgba(46, 213, 115, 0.7);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 20px rgba(46, 213, 115, 0.25);
}

.unconventional-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(46, 213, 115, 0.15);
  border: 1px solid rgba(46, 213, 115, 0.45);
  color: #86efac;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 6px;
}

.unconventional-callout {
  font-size: 11.5px;
  line-height: 1.45;
  color: #d1fae5;
  background: rgba(46, 213, 115, 0.08);
  border-left: 3px solid #2ed573;
  padding: 7px 10px;
  border-radius: 4px 8px 8px 4px;
}

.btn-counter-assign.unconventional-assign {
  background: linear-gradient(135deg, rgba(46, 213, 115, 0.2) 0%, rgba(46, 213, 115, 0.08) 100%);
  border: 1px solid rgba(46, 213, 115, 0.45);
  color: #86efac;
}

.btn-counter-assign.unconventional-assign:hover {
  background: linear-gradient(135deg, #2ed573 0%, #20bf6b 100%);
  color: #000;
  box-shadow: 0 0 16px rgba(46, 213, 115, 0.45);
  transform: translateY(-1px);
}
.boss-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.boss-thumbs-container {
  display: flex;
  align-items: center;
  position: relative;
}

.boss-thumb-wrapper {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--accent-gold);
  background: var(--bg-panel);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.boss-thumb-wrapper:hover {
  transform: scale(1.1);
  z-index: 5;
}

.boss-thumb-wrapper.secondary {
  margin-left: -14px;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.4);
  z-index: 2;
}

.boss-thumb-wrapper.target-2nd {
  border-color: var(--accent-orange);
  box-shadow: 0 0 12px rgba(255, 165, 2, 0.7);
  z-index: 3;
}

.boss-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.boss-thumb-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--accent-orange);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-top-left-radius: 4px;
  line-height: 1;
}

.champ-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: rgba(0,0,0,0.3);
}

.boss-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.mutators-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-muted);
  max-height: 80px;
  overflow-y: auto;
}

/* Challenge Card Controls */
.challenge-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.champion-select-btn {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
  text-align: left;
}

.champion-select-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.08);
}

.champion-select-btn.assigned {
  border-color: var(--accent-gold);
  color: var(--text-gold);
  background: rgba(200, 170, 110, 0.1);
}

.status-toggle-btn {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.status-toggle-btn.status-planned {
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(0, 210, 255, 0.4);
}

.status-toggle-btn.status-completed {
  background: rgba(46, 213, 115, 0.2);
  color: var(--accent-green);
  border-color: rgba(46, 213, 115, 0.4);
}

/* Button System */
.btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 210, 255, 0.2);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(0, 210, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: rgba(255, 71, 87, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.btn-danger:hover {
  background: rgba(255, 71, 87, 0.25);
}

.btn-gold {
  background: rgba(200, 170, 110, 0.15);
  color: var(--text-gold);
  border: 1px solid rgba(200, 170, 110, 0.3);
}

.btn-gold:hover {
  background: rgba(200, 170, 110, 0.25);
}

/* Modals */
.modal-overlay,
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 14, 0.58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-overlay.active,
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-container,
.modal-backdrop.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-gold);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}

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

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.textarea-input {
  width: 100%;
  height: 200px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  color: var(--text-main);
  font-family: monospace;
  font-size: 12px;
  resize: vertical;
  outline: none;
}

.textarea-input:focus {
  border-color: var(--accent-cyan);
}

/* Champion Picker List inside Modal */
.champion-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
}

.picker-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.picker-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
}

.picker-item.selected {
  border-color: var(--accent-gold);
  background: rgba(200, 170, 110, 0.15);
}

.picker-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255, 71, 87, 0.05);
  border-color: rgba(255, 71, 87, 0.2);
}

.picker-name {
  font-weight: 600;
  font-size: 13px;
}

/* Warning Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #1e1b2e;
  border-left: 5px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  color: var(--text-main);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  max-width: 400px;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-icon {
  font-size: 20px;
  color: var(--accent-red);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 2px;
}

/* Champion Relic Builds Styling */
.relic-build-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-top: 6px;
  font-size: 11px;
}

.relic-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.15s ease;
}

.relic-pill.type-Epic {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.45);
  color: #d8b4fe;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.2);
}

.relic-pill.type-Rare {
  background: rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.45);
  color: #7dd3fc;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.2);
}

.relic-pill.type-Common {
  background: rgba(46, 213, 115, 0.15);
  border-color: rgba(46, 213, 115, 0.45);
  color: #86efac;
  box-shadow: 0 0 8px rgba(46, 213, 115, 0.2);
}

/* Stage Unlock Path Visualizer Grid */
.map-tier-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.map-tier-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-gold);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.map-nodes-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.map-node {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  transition: all var(--transition-fast);
}

.map-node.is-milestone {
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(200, 170, 110, 0.25);
}

.map-node.is-locked {
  opacity: 0.4;
  background: rgba(0,0,0,0.5);
  border-color: var(--border-color);
}

.map-node.status-completed {
  border-left: 4px solid var(--accent-green);
}

.map-node.status-planned {
  border-left: 4px solid var(--accent-cyan);
}

.map-node-num {
  font-weight: 800;
  color: var(--accent-gold);
}

.map-node-boss {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-node-stars {
  font-size: 11px;
  color: var(--text-gold);
}

.map-node-champ {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Analytics Ranks & Region Bars */
.analytics-rank {
  font-size: 18px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  text-align: center;
  flex-shrink: 0;
}

.analytics-rank.rank-S {
  background: rgba(200, 170, 110, 0.2);
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 14px rgba(200, 170, 110, 0.4);
}

.analytics-rank.rank-A {
  background: rgba(46, 213, 115, 0.2);
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
}

.analytics-rank.rank-B {
  background: rgba(0, 210, 255, 0.2);
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.analytics-rank.rank-C {
  background: rgba(255, 71, 87, 0.2);
  border: 2px solid var(--accent-red);
  color: var(--accent-red);
}

.region-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.region-bar-label {
  width: 110px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.region-bar-track {
  flex: 1;
  height: 10px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  overflow: hidden;
}

.region-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  border-radius: 5px;
  transition: width 0.4s ease;
}

.region-bar-val {
  font-weight: 700;
  color: var(--text-gold);
  min-width: 45px;
  text-align: right;
}

/* History Archive Items */
.archive-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all var(--transition-fast);
}

/* Mutators Rule Tag Pills */
.mutators-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 95px;
  overflow-y: auto;
}

.mutator-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: #d1f4ff;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  cursor: help;
  transition: all var(--transition-fast);
}

.mutator-tag:hover {
  filter: brightness(1.25);
  border-color: rgba(0, 210, 255, 0.55);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.25);
  transform: translateY(-1px);
}

.mutator-tag.type-vicious {
  background: rgba(255, 71, 87, 0.15);
  border-color: rgba(255, 71, 87, 0.35);
  color: #ff9da7;
}

.mutator-tag.type-damage {
  background: rgba(255, 165, 2, 0.15);
  border-color: rgba(255, 165, 2, 0.35);
  color: #ffd075;
}

.mutator-tag.type-spell {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #eddcfc;
}

.mutator-tag.type-deadly {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-weight: 700;
}

/* Relic Rarity Color Coding: Epic (Purple), Rare (Blue), Common (Green) */
.relic-select-epic {
  border-color: #d070ff !important;
  color: #f3d0ff !important;
  background-color: rgba(65, 12, 85, 0.7) !important;
  font-weight: 600;
}

.relic-select-rare {
  border-color: #38b6ff !important;
  color: #b3e5ff !important;
  background-color: rgba(12, 45, 80, 0.7) !important;
  font-weight: 600;
}

.relic-select-common {
  border-color: #47d863 !important;
  color: #bdf7cb !important;
  background-color: rgba(10, 60, 25, 0.7) !important;
  font-weight: 600;
}

.relic-select-none {
  border-color: var(--border-color) !important;
  color: var(--text-muted) !important;
  background-color: rgba(0, 0, 0, 0.4) !important;
}

option.opt-epic {
  color: #d070ff;
  background-color: #280833;
  font-weight: 600;
}

option.opt-rare {
  color: #38b6ff;
  background-color: #081d33;
  font-weight: 600;
}

option.opt-common {
  color: #47d863;
  background-color: #082611;
  font-weight: 600;
}

option.opt-none {
  color: var(--text-muted);
  background-color: #1a1a1a;
}

.relic-pill.type-Epic {
  background: rgba(163, 53, 238, 0.25);
  border: 1px solid #d070ff;
  color: #f3d0ff;
}

.relic-pill.type-Rare {
  background: rgba(0, 112, 221, 0.25);
  border: 1px solid #38b6ff;
  color: #b3e5ff;
}

.relic-pill.type-Common {
  background: rgba(30, 255, 0, 0.2);
  border: 1px solid #47d863;
  color: #bdf7cb;
}

/* Edit Challenge Button on Cards (Icon-only) */
.edit-challenge-btn {
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 4px 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all var(--transition-fast);
}

.edit-challenge-btn:hover {
  background: rgba(0, 210, 255, 0.25);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
  transform: translateY(-1px);
}

/* Universal Importer Live Preview & Badges */
.import-formats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.format-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.badge-format {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.4);
}

.import-preview-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
}

.preview-table th,
.preview-table td {
  border-bottom: 1px solid var(--border-color);
  padding: 4px 8px;
}

.preview-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Mutator Chips System */
.mutator-chips-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mutator-chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  user-select: none;
  white-space: nowrap;
}

.mutator-chip:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--accent-cyan);
  transform: scale(1.03);
}

.mutator-chip.category-vicious {
  border-color: rgba(255, 71, 87, 0.4);
  background: rgba(255, 71, 87, 0.1);
}

.mutator-chip.category-vicious:hover {
  background: rgba(255, 71, 87, 0.25);
}

.mutator-chip.category-damage {
  border-color: rgba(255, 107, 129, 0.4);
  background: rgba(255, 107, 129, 0.1);
}

.mutator-chip.category-damage:hover {
  background: rgba(255, 107, 129, 0.25);
}

.mutator-chip.category-spell {
  border-color: rgba(0, 210, 255, 0.4);
  background: rgba(0, 210, 255, 0.1);
}

.mutator-chip.category-spell:hover {
  background: rgba(0, 210, 255, 0.25);
}

.mutator-chip.category-deadly {
  border-color: rgba(255, 165, 2, 0.4);
  background: rgba(255, 165, 2, 0.1);
}

.mutator-chip.category-deadly:hover {
  background: rgba(255, 165, 2, 0.25);
}

/* ==========================================
   INVISIBLE SCROLLBARS (FULL FUNCTIONALITY)
   ========================================== */
* {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

*::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, Opera, Edge */
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Responsive Challenge Builder Container & Widescreen Scaling */
.builder-modal-container {
  width: 95vw;
  max-width: 1540px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  transition: max-width 0.25s ease, width 0.25s ease;
  overflow-x: hidden;
}

.builder-modal-container.is-expanded {
  width: 98vw;
  max-width: 98vw;
  max-height: 96vh;
}

@media (min-width: 2200px) {
  .builder-modal-container {
    max-width: 1750px;
  }
}

.builder-expand-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1;
}

.builder-expand-btn:hover {
  color: var(--accent-gold);
  background: rgba(200, 170, 110, 0.15);
}

/* Challenge Builder Table Container & Rows */
#builder-challenges-table-container {
  max-height: 52vh;
  overflow-y: auto !important;
  overflow-x: auto !important;
  border: 1px solid var(--stitch-border);
  border-radius: 12px;
  box-sizing: border-box;
  width: 100%;
  background: rgba(10, 14, 20, 0.6);
}

.builder-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(14, 20, 30, 0.6);
  border: 1px solid var(--stitch-border);
  border-radius: 8px;
  transition: all 0.15s ease;
  box-sizing: border-box;
  width: 100%;
}

.builder-row:hover {
  background: rgba(200, 170, 110, 0.08);
  border-color: rgba(243, 209, 121, 0.4);
  box-shadow: 0 0 10px rgba(243, 209, 121, 0.15);
}

.builder-row.builder-row-focused {
  background: rgba(200, 170, 110, 0.12);
  border-color: var(--text-gold);
  box-shadow: 0 0 12px rgba(243, 209, 121, 0.25);
}

.builder-row-num {
  font-weight: 800;
  font-size: 12px;
  color: var(--text-gold);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(243, 209, 121, 0.25);
}

.builder-row-stars {
  width: 80px;
  flex-shrink: 0;
  height: 30px;
  font-size: 12px;
  padding: 3px 6px;
}

.builder-row-thumbs {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-width: 50px;
  flex-shrink: 0;
}

.builder-row-thumbs img {
  border: 1.5px solid rgba(243, 209, 121, 0.5);
  border-radius: 50%;
  object-fit: cover;
}

.builder-row-boss {
  flex: 1.1;
  min-width: 170px;
}

.builder-boss-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1.1;
  min-width: 170px;
}

.builder-boss-input {
  flex: 1;
  min-width: 80px;
  font-size: 12px;
  padding: 4px 8px;
  height: 30px;
  border-radius: 6px;
}

.builder-add-endboss-btn {
  background: rgba(243, 209, 121, 0.1);
  border: 1px dashed rgba(243, 209, 121, 0.4);
  color: var(--text-gold);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  height: 30px;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
}

.builder-add-endboss-btn:hover {
  background: rgba(243, 209, 121, 0.25);
  border-color: var(--text-gold);
  color: #fff;
  box-shadow: 0 0 8px rgba(243, 209, 121, 0.3);
}

.builder-remove-endboss-btn {
  background: transparent;
  border: none;
  color: var(--stitch-text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
  line-height: 1;
  transition: all 0.15s ease;
}

.builder-remove-endboss-btn:hover {
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.15);
}

.builder-boss-amp {
  color: var(--text-gold);
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  user-select: none;
  opacity: 0.9;
}

.builder-table-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(10, 14, 22, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stitch-border);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--stitch-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  position: sticky;
  top: 0;
  z-index: 5;
  box-sizing: border-box;
  width: 100%;
}

.builder-row-mutators {
  flex: 2;
  min-width: 220px;
  display: flex;
  align-items: center;
}

.builder-mut-input {
  font-size: 12px;
  padding: 4px 10px;
  height: 30px;
  border-radius: 6px;
  width: 100%;
}

.builder-row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 56px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.builder-mini-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stitch-border);
  color: var(--stitch-text-muted);
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 11px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.builder-mini-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Month Selection & Standardized Name Bar */
.builder-month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.08) 0%, rgba(200, 170, 110, 0.08) 100%);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.builder-month-badge {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  background: rgba(200, 170, 110, 0.15);
  color: var(--text-gold);
  border: 1px solid rgba(200, 170, 110, 0.4);
  border-radius: var(--radius-sm);
  text-shadow: 0 0 10px rgba(200, 170, 110, 0.3);
}

/* Multi-Token Mutator Autocomplete Dropdown */
.mutator-autocomplete-dropdown {
  position: absolute;
  z-index: 10000;
  background: #101726;
  border: 1px solid rgba(0, 210, 255, 0.4);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75);
  max-height: 220px;
  overflow-y: auto;
  min-width: 280px;
  max-width: 420px;
  font-family: var(--font-main);
}

.mutator-autocomplete-item {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.mutator-autocomplete-item:hover,
.mutator-autocomplete-item.selected {
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
}

.mutator-autocomplete-item:last-child {
  border-bottom: none;
}

.mutator-autocomplete-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mutator-autocomplete-desc {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* Mutator Row Tags */
.builder-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
  min-height: 18px;
}

.builder-tag-chip {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  animation: fadeIn 0.15s ease-out;
}

.builder-tag-remove {
  cursor: pointer;
  font-weight: bold;
  font-size: 11px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.builder-tag-remove:hover {
  color: var(--accent-red);
}

.builder-tag-add-btn {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--accent-cyan);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.builder-tag-add-btn:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--accent-cyan);
}

/* Highlighted mutator chips matching focused row */
.mutator-chip.active-on-focused {
  border-color: var(--accent-cyan) !important;
  background: rgba(0, 210, 255, 0.25) !important;
  color: #fff !important;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

/* ==========================================
   STITCH V2 MODERN DASHBOARD DESIGN SYSTEM
   ========================================== */
:root {
  --stitch-bg-dark: #0d1117;
  --stitch-bg-panel: #151a21;
  --stitch-bg-card: #161c24;
  --stitch-bg-card-hover: #1c2430;
  --stitch-gold: #f3d179;
  --stitch-gold-glow: rgba(243, 209, 121, 0.35);
  --stitch-cyan: #00d2ff;
  --stitch-border: rgba(255, 255, 255, 0.08);
  --stitch-border-hover: rgba(0, 210, 255, 0.35);
  --stitch-text-muted: #8b9bb4;
}

/* Stitch Modern Challenge Card */
/* Stitch Modern Challenge Card with Frosted Glass Look */
.challenge-card {
  background: rgba(22, 28, 36, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.challenge-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 210, 255, 0.15);
  background: rgba(26, 34, 44, 0.76);
}

/* Card Status Theme: Unassigned */
.challenge-card.status-unassigned {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(14, 18, 24, 0.62);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
}

.challenge-card.status-unassigned:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(20, 26, 36, 0.78);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.challenge-card.status-unassigned .challenge-number-badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--stitch-text-muted, #8a93a0);
  border-color: rgba(255, 255, 255, 0.14);
}

.challenge-card.status-unassigned .card-hero-banner {
  filter: saturate(0.85) brightness(0.88);
  transition: filter 0.2s ease;
}

.challenge-card.status-unassigned:hover .card-hero-banner {
  filter: saturate(1) brightness(1);
}

.challenge-card.status-unassigned .planned-champ-avatar,
.challenge-card.status-unassigned .planned-avatar-frame {
  border: 2px dashed rgba(255, 255, 255, 0.25);
  box-shadow: none;
  opacity: 0.65;
}

.challenge-card.status-unassigned .planned-label-title {
  color: var(--stitch-text-muted, #8a93a0);
}

/* Card Status Theme: Planned (Hextech Gold) */
.challenge-card.status-planned {
  border-color: rgba(243, 209, 121, 0.55);
  background: linear-gradient(180deg, rgba(243, 209, 121, 0.04) 0%, rgba(18, 24, 34, 0.86) 100%);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(243, 209, 121, 0.16);
}

.challenge-card.status-planned:hover {
  border-color: rgba(243, 209, 121, 0.85);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.65), 0 0 24px rgba(243, 209, 121, 0.28);
}

.challenge-card.status-planned .challenge-number-badge {
  background: rgba(243, 209, 121, 0.18);
  color: var(--text-gold, #c8aa6e);
  border-color: rgba(243, 209, 121, 0.55);
  box-shadow: 0 0 8px rgba(243, 209, 121, 0.15);
}

.challenge-card.status-planned .planned-label-title {
  color: var(--text-gold, #c8aa6e);
  font-weight: 700;
}

.challenge-card.status-planned .planned-champ-avatar,
.challenge-card.status-planned .planned-avatar-frame {
  border: 2px solid var(--text-gold, #c8aa6e);
  box-shadow: 0 0 12px rgba(243, 209, 121, 0.35);
}

/* Card Status Theme: Completed (Emerald Victory) */
.challenge-card.status-completed {
  border-color: #10b981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(10, 22, 22, 0.9) 100%);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.22);
}

.challenge-card.status-completed:hover {
  border-color: #34d399;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 28px rgba(16, 185, 129, 0.35);
}

.challenge-card.status-completed .challenge-number-badge {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  font-weight: 900;
}

.challenge-card.status-completed .planned-label-title {
  color: #34d399;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.challenge-card.status-completed .planned-champ-avatar,
.challenge-card.status-completed .planned-avatar-frame {
  border: 2.5px solid #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

/* Avatar Wrapper & Checkmark Badge */
.planned-avatar-wrapper {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

/* Avatar Frame - Circular clipping container that zooms image slightly to crop out square border */
.planned-avatar-frame {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e141e;
  border: 2px solid var(--text-gold, #c8aa6e);
  box-shadow: 0 0 12px rgba(243, 209, 121, 0.35);
  flex-shrink: 0;
  isolation: isolate;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.planned-avatar-frame .planned-champ-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: none !important;
  box-shadow: none !important;
  object-fit: cover;
  transform: scale(1.12); /* Zooms 12% to push original square game asset borders outside circle */
  transform-origin: center center;
  transition: transform 0.18s ease;
  display: block;
}

.planned-avatar-wrapper:hover .planned-avatar-frame .planned-champ-avatar {
  transform: scale(1.22);
}

/* Card Unassign Button & Right Column */
.planned-champ-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-unassign-champ-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--stitch-text-muted, #8a93a0);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.card-unassign-champ-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #ef4444;
  transform: scale(1.12);
}

/* Modal Stitch Detail Unassign Button */
.btn-stitch-unassign {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stitch-unassign:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fee2e2;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.champ-completed-checkmark {
  display: none;
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 2px solid #0e141e;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.85), 0 2px 5px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  animation: checkmarkPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.challenge-card.status-completed .champ-completed-checkmark {
  display: flex;
}

@keyframes checkmarkPop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Cleared Victory Ribbon Tag on Hero Banner */
.card-cleared-banner-tag {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ecfdf5;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  border: 1px solid rgba(110, 231, 183, 0.6);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 10px rgba(16, 185, 129, 0.5);
  z-index: 4;
  pointer-events: none;
}

.challenge-card.status-completed .card-cleared-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Card Header */
.challenge-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 8px;
  background: rgba(14, 18, 24, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-boss-title {
  font-weight: 800;
  font-size: 14.5px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 175px;
}

/* Hero Splash Art Banner - Taller with improved focus */
.card-hero-banner {
  position: relative;
  width: 100%;
  height: 135px;
  background-size: cover;
  background-position: center 18%;
  cursor: pointer;
  overflow: hidden;
  background-color: #1a222d;
}

/* Split Dual Boss Hero Art Banner */
.card-hero-banner.dual-boss, .stitch-modal-hero.dual-boss {
  display: flex;
  background-image: none !important;
}

.hero-split {
  flex: 1;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center 18%;
  transition: flex 0.25s ease, filter 0.2s ease;
  overflow: hidden;
}

.hero-split:hover {
  flex: 1.35;
  filter: brightness(1.18);
}

.hero-split-left {
  border-right: 1px solid rgba(243, 209, 121, 0.4);
}

.hero-split-right {
  border-left: 1px solid rgba(0, 210, 255, 0.4);
}

.hero-split-divider {
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--stitch-gold), transparent);
  box-shadow: 0 0 8px var(--stitch-gold);
  z-index: 4;
}

.card-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14, 18, 23, 0.05) 0%, rgba(14, 18, 23, 0.3) 50%, rgba(22, 28, 36, 0.95) 100%);
  display: flex;
  align-items: flex-end;
  padding: 8px 12px;
  pointer-events: none;
}

.card-hero-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 1;
}

/* Special Rules / Mutators List */
.card-mutators-section {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 205px;
}

.mutators-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--stitch-text-muted);
  margin-bottom: 2px;
}

.streamlined-mutator-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.streamlined-mutator-row:hover {
  background: rgba(243, 209, 121, 0.08);
  border-color: rgba(243, 209, 121, 0.35);
  transform: translateX(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 12px rgba(243, 209, 121, 0.15);
}

/* PoC Power Badge Frame matching in-game special rules */
.streamlined-mutator-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  position: relative;
  background-size: 135%;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-color: #121820;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  overflow: visible;
}

.streamlined-mutator-icon.rarity-common {
  border-color: #2ed573;
  box-shadow: 0 0 8px rgba(46, 213, 115, 0.45);
}

.streamlined-mutator-icon.rarity-rare {
  border-color: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

.streamlined-mutator-icon.rarity-epic {
  border-color: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.45);
}

.streamlined-mutator-icon.rarity-legendary {
  border-color: var(--text-gold);
  box-shadow: 0 0 10px rgba(243, 209, 121, 0.55);
}

.streamlined-mutator-icon.rarity-special {
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Gem pip at bottom of power badge */
.streamlined-mutator-icon::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 5px;
  height: 5px;
  background: #2ed573;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 4px #2ed573;
  z-index: 2;
}

.streamlined-mutator-icon.rarity-common::after { background: #2ed573; box-shadow: 0 0 4px #2ed573; }
.streamlined-mutator-icon.rarity-rare::after { background: #38bdf8; box-shadow: 0 0 4px #38bdf8; }
.streamlined-mutator-icon.rarity-epic::after { background: #a855f7; box-shadow: 0 0 4px #a855f7; }
.streamlined-mutator-icon.rarity-legendary::after { background: var(--text-gold); box-shadow: 0 0 5px var(--text-gold); }
.streamlined-mutator-icon.rarity-special::after { background: #00e5ff; box-shadow: 0 0 5px #00e5ff; }

#mutator-preview-badge {
  border-radius: 10px !important;
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#mutator-preview-badge:hover {
  transform: scale(1.06);
  box-shadow: 0 0 16px rgba(243, 209, 121, 0.5) !important;
}
#mutator-preview-badge::after {
  bottom: -4px;
  width: 7px;
  height: 7px;
}

.streamlined-mutator-content {
  display: flex;
  flex-direction: column;
}

.streamlined-mutator-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.streamlined-mutator-desc {
  font-size: 10.5px;
  color: var(--stitch-text-muted);
  line-height: 1.25;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Planned Champion & Usage Section */
.card-planned-section {
  padding: 10px 14px 12px;
  background: rgba(14, 18, 24, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.planned-labels-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--stitch-text-muted);
}

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

.planned-champ-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.planned-champ-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--text-gold);
  box-shadow: 0 0 12px rgba(243, 209, 121, 0.35);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.planned-champ-avatar:hover {
  transform: scale(1.08);
}

.planned-champ-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.planned-champ-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
}

.planned-champ-sub {
  font-size: 11.5px;
  color: var(--text-gold);
  font-weight: 600;
}

.planned-usage-gauge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(243, 209, 121, 0.15);
  border: 1px solid rgba(243, 209, 121, 0.45);
  color: var(--text-gold);
}

/* Card 3-Button Action Row - Equal Sized Gold Buttons */
.card-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 12px;
  background: rgba(10, 14, 20, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-action-btn {
  background: rgba(243, 209, 121, 0.1);
  border: 1px solid rgba(243, 209, 121, 0.35);
  color: var(--text-gold);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  transition: all var(--transition-fast);
  width: 100%;
}

.card-action-btn:hover {
  background: rgba(243, 209, 121, 0.22);
  border-color: var(--text-gold);
  box-shadow: 0 0 10px rgba(243, 209, 121, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.card-action-btn.btn-status-planned {
  background: rgba(243, 209, 121, 0.25);
  border-color: var(--text-gold);
  color: #fff;
  box-shadow: 0 0 10px rgba(243, 209, 121, 0.3);
}

.card-action-btn.btn-status-completed {
  background: rgba(46, 213, 115, 0.22);
  border-color: var(--accent-green);
  color: #7bed9f;
  box-shadow: 0 0 10px rgba(46, 213, 115, 0.25);
}

/* Stitch Left Sidebar Roster Enhancements */
.roster-card {
  background: var(--stitch-bg-card);
  border: 1px solid var(--stitch-border);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.roster-card:hover {
  background: var(--stitch-bg-card-hover);
  border-color: var(--stitch-border-hover);
  transform: translateX(3px);
}

/* Roster Avatar Frame - Circular clipping container with zoom to eliminate square border */
.roster-avatar-frame {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e141e;
  border: 2px solid var(--text-gold);
  box-shadow: 0 0 10px rgba(243, 209, 121, 0.3);
  flex-shrink: 0;
  isolation: isolate;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.roster-champ-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--text-gold);
  object-fit: cover;
  object-view-box: inset(6% 6% 6% 6%);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(243, 209, 121, 0.3);
  transition: transform 0.18s ease;
}

.roster-avatar-frame .roster-champ-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: none !important;
  box-shadow: none !important;
  transform: scale(1.14); /* Zooms in 14% to push square borders completely outside circle */
  transform-origin: center center;
  display: block;
}

.roster-card:hover .roster-avatar-frame {
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(243, 209, 121, 0.5);
}

.roster-card:hover .roster-avatar-frame .roster-champ-avatar {
  transform: scale(1.22);
}

.roster-stamina-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stamina-gauge-text {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-gold);
}

/* Stitch Challenge Detail & Picker Modal (screen1.png) */
.stitch-detail-modal-container {
  width: 90vw;
  max-width: 690px;
  max-height: 92vh;
  background: rgba(18, 24, 34, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(243, 209, 121, 0.4);
  border-radius: 18px;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 32px rgba(243, 209, 121, 0.18);
  display: flex;
  flex-direction: column;
}

.stitch-modal-header {
  padding: 16px 20px 10px;
  text-align: center;
  background: rgba(14, 19, 28, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stitch-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-gold);
  letter-spacing: 0.5px;
}

.stitch-modal-hero {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center 25%;
  position: relative;
  background-color: #1a222d;
}

.stitch-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14, 19, 28, 0.05) 0%, rgba(18, 24, 34, 0.9) 100%);
}

.stitch-modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stitch-modal-2col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .stitch-modal-2col {
    grid-template-columns: 1fr;
  }
}

.stitch-recs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

.stitch-rec-champ-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.18s ease;
  width: 100%;
  text-align: center;
}

.stitch-rec-champ-pill:hover {
  transform: translateY(-2px) scale(1.06);
}

.stitch-rec-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--text-gold);
  box-shadow: 0 0 12px rgba(243, 209, 121, 0.4);
  object-fit: cover;
  object-view-box: inset(6% 6% 6% 6%);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.stitch-rec-champ-pill:hover .stitch-rec-avatar {
  border-color: #fff;
  box-shadow: 0 0 16px rgba(243, 209, 121, 0.65);
}

.stitch-rec-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

.stitch-deck-section {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  background: rgba(12, 16, 23, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
}

.stitch-picker-left-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stitch-roster-picker-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 6px;
}

.stitch-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.stitch-picker-item:hover, .stitch-picker-item.selected {
  background: rgba(243, 209, 121, 0.15);
  border-color: rgba(243, 209, 121, 0.4);
}

.stitch-picker-avatar-frame {
  width: 28px;
  height: 28px;
  min-width: 28px;
  max-width: 28px;
  min-height: 28px;
  max-height: 28px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e141e;
  border: 1.5px solid var(--stitch-border);
  flex-shrink: 0;
  isolation: isolate;
}

.stitch-picker-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: none !important;
  box-shadow: none !important;
  object-fit: cover;
  object-view-box: inset(6% 6% 6% 6%);
  transform: scale(1.14);
  transform-origin: center center;
  display: block;
}

.stitch-picker-item.selected .stitch-picker-avatar-frame {
  border-color: var(--text-gold);
  box-shadow: 0 0 8px rgba(243, 209, 121, 0.4);
}

.stitch-planned-pick-card {
  border: 1px solid var(--text-gold);
  background: linear-gradient(135deg, rgba(243, 209, 121, 0.15), rgba(0, 0, 0, 0.4));
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stitch-planned-pick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 209, 121, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(243, 209, 121, 0.3);
}

.stitch-planned-pick-card .roster-champ-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--text-gold);
  box-shadow: 0 0 12px rgba(243, 209, 121, 0.4);
  object-fit: cover;
}

.stitch-planned-power-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-gold);
  background: rgba(243, 209, 121, 0.12);
  border: 1px solid rgba(243, 209, 121, 0.3);
  border-radius: 12px;
  padding: 2px 8px;
  letter-spacing: 0.3px;
}

.stitch-modal-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px 18px;
  background: rgba(14, 19, 28, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-stitch-confirm {
  background: linear-gradient(135deg, #f3d179 0%, #dfb755 100%);
  color: #000;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stitch-confirm:hover {
  background: #fce198;
  box-shadow: 0 0 16px rgba(243, 209, 121, 0.5);
  transform: translateY(-1px);
}

/* ============================================================
   STITCH V2 CUSTOM FROSTED GLASS & GOLD HOVER TOOLTIP SYSTEM
   ============================================================ */
.lor-custom-tooltip {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.97);
  transition: opacity 0.14s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.14s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(14, 19, 28, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(243, 209, 121, 0.35);
  border-radius: 10px;
  padding: 9px 13px;
  max-width: 320px;
  min-width: 60px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 16px rgba(243, 209, 121, 0.16);
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.45;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  word-break: break-word;
}

.lor-custom-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lor-custom-tooltip .tooltip-header {
  color: var(--text-gold);
  font-weight: 800;
  font-size: 12.5px;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.lor-custom-tooltip .tooltip-body {
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}

.lor-custom-tooltip .tooltip-body.single-line {
  color: #f1f5f9;
  font-weight: 600;
}

.lor-custom-tooltip .tooltip-hint {
  color: var(--stitch-text-muted);
  font-size: 10.5px;
  font-style: italic;
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Enhanced Interactive Hover Polish */
.card-hero-banner {
  transition: filter 0.25s ease;
}

.card-hero-banner:hover {
  filter: brightness(1.1);
}

.hero-split {
  transition: transform 0.35s ease;
}

.card-hero-banner:hover .hero-split {
  transform: scale(1.05);
}

.use-badge {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.use-badge:hover {
  transform: scale(1.04);
  box-shadow: 0 0 10px rgba(243, 209, 121, 0.35);
}

.roster-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.roster-card:hover {
  transform: translateY(-2px);
  background: rgba(26, 34, 46, 0.85);
  border-color: rgba(243, 209, 121, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 14px rgba(243, 209, 121, 0.15);
}

.roster-champ-avatar {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.roster-card:hover .roster-champ-avatar {
  transform: scale(1.06);
  border-color: var(--text-gold);
  box-shadow: 0 0 12px rgba(243, 209, 121, 0.45);
}

/* Active Filtering Highlight on Roster Card */
.roster-card.filtering-active {
  background: rgba(243, 209, 121, 0.16);
  border-color: var(--text-gold);
  box-shadow: 0 0 16px rgba(243, 209, 121, 0.35);
}

.roster-card.filtering-active .roster-champ-avatar,
.roster-card.filtering-active .roster-avatar-frame {
  border-color: var(--text-gold);
  box-shadow: 0 0 14px rgba(243, 209, 121, 0.6);
}

/* ==========================================================================
   Roster to Challenge Card Drag and Drop
   ========================================================================== */
.roster-card {
  cursor: grab;
  user-select: none;
}

.roster-card:active {
  cursor: grabbing;
}

.roster-card.is-dragging {
  opacity: 0.5;
  transform: scale(0.96);
  border-color: var(--text-gold);
  box-shadow: 0 0 18px rgba(243, 209, 121, 0.45);
}

body.is-champion-dragging {
  user-select: none;
}

body.is-champion-dragging .challenge-card {
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.challenge-card.drag-over {
  border-color: var(--text-gold) !important;
  background: rgba(243, 209, 121, 0.12) !important;
  box-shadow: 0 0 28px rgba(243, 209, 121, 0.55), inset 0 0 16px rgba(243, 209, 121, 0.2) !important;
  transform: translateY(-4px) scale(1.02) !important;
}

.challenge-card.just-dropped {
  animation: challengeDropGlow 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes challengeDropGlow {
  0% {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(243, 209, 121, 0.85);
    border-color: var(--text-gold);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 0 16px rgba(243, 209, 121, 0.45);
  }
  100% {
    transform: scale(1);
    box-shadow: none;
  }
}

/* ===================================================
   INTERACTIVE CHALLENGE CARD EDIT SCREEN
=================================================== */
.edit-card-modal-container {
  max-width: 620px;
  width: 100%;
  background: #101620 !important;
  border: 1px solid var(--stitch-border) !important;
  border-radius: 16px !important;
}

.edit-card-wrapper {
  padding: 4px 0;
  display: flex;
  justify-content: center;
}

.challenge-card.edit-mode-card {
  width: 100%;
  max-width: 560px;
  background: rgba(18, 24, 34, 0.95);
  border: 1px solid rgba(243, 209, 121, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 24px rgba(243, 209, 121, 0.12);
  margin: 0;
  transform: none !important;
}

.edit-card-boss-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
}

.edit-card-boss-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 5px 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}

.edit-card-boss-input:focus {
  border-color: var(--stitch-gold);
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 0 0 10px rgba(243, 209, 121, 0.3);
}

.edit-card-stars-select {
  background: rgba(18, 24, 34, 0.9);
  border: 1px solid rgba(243, 209, 121, 0.5);
  color: var(--stitch-gold);
  font-weight: 800;
  font-size: 12px;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.edit-card-stars-select:focus {
  border-color: #fff;
  box-shadow: 0 0 8px rgba(243, 209, 121, 0.4);
}

.edit-banner-badge {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 3;
}

.edit-mutator-row-del {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.edit-mutator-row-del:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.edit-card-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.edit-card-nav-btn:hover:not(:disabled) {
  background: rgba(243, 209, 121, 0.18);
  color: var(--stitch-gold);
  border-color: var(--stitch-gold);
}

.edit-card-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ===================================================
   MY COLLECTION EDITOR (DESIGN.MD COMPLIANT)
=================================================== */
.collection-modal-container {
  max-width: 960px !important;
  width: 95%;
  background: #0d1117 !important;
  border: 1px solid rgba(243, 209, 121, 0.25) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(243, 209, 121, 0.08) !important;
}

.collection-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  background: rgba(22, 28, 36, 0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 18px;
}

.collection-status-segmented-bar {
  display: flex;
  background: rgba(22, 28, 36, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.collection-status-tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--stitch-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.collection-status-tab:hover {
  color: #fff;
}

.collection-status-tab.active {
  background: rgba(243, 209, 121, 0.16);
  color: var(--text-gold);
  border-color: rgba(243, 209, 121, 0.45);
  font-weight: 800;
  box-shadow: 0 0 10px rgba(243, 209, 121, 0.2);
}

.btn-collection-action {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-collection-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-collection-action.featured {
  background: rgba(243, 209, 121, 0.16);
  border-color: rgba(243, 209, 121, 0.45);
  color: var(--text-gold);
  font-weight: 800;
}

.btn-collection-action.featured:hover {
  background: rgba(243, 209, 121, 0.25);
  box-shadow: 0 0 12px rgba(243, 209, 121, 0.25);
}

.btn-collection-action.danger {
  background: rgba(255, 71, 87, 0.08);
  border-color: rgba(255, 71, 87, 0.25);
  color: #ff6b81;
}

.btn-collection-action.danger:hover {
  background: rgba(255, 71, 87, 0.18);
  border-color: rgba(255, 71, 87, 0.45);
}

.collection-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 12px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

/* Individual Collection Champion Card */
.collection-champ-card {
  background: rgba(22, 28, 36, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.collection-champ-card:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 209, 121, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(243, 209, 121, 0.1);
}

.collection-champ-card.is-locked {
  opacity: 0.55;
  border-color: rgba(255, 255, 255, 0.04);
  background: rgba(14, 18, 24, 0.6);
}

.collection-champ-card.is-locked:hover {
  opacity: 0.85;
}

.collection-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.collection-champ-portrait {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--text-gold);
  box-shadow: 0 0 10px rgba(243, 209, 121, 0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.collection-champ-card.is-locked .collection-champ-portrait {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
  filter: grayscale(0.6);
}

.collection-stars-bar {
  display: flex;
  align-items: center;
  gap: 2px;
}

.collection-star-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.22);
  font-size: 16px;
  cursor: pointer;
  padding: 1px 2px;
  transition: all 0.12s ease;
  line-height: 1;
}

.collection-star-btn:hover,
.collection-star-btn.active {
  color: var(--text-gold);
  text-shadow: 0 0 8px rgba(243, 209, 121, 0.6);
  transform: scale(1.15);
}

.collection-lock-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 10px;
  padding: 2px 6px;
  color: var(--stitch-text-muted);
  cursor: pointer;
  margin-left: 6px;
  transition: all 0.12s ease;
}

.collection-lock-toggle:hover {
  background: rgba(255, 71, 87, 0.15);
  color: #ff6b81;
  border-color: rgba(255, 71, 87, 0.35);
}

.collection-lock-toggle.locked {
  background: rgba(255, 71, 87, 0.2);
  color: #ff6b81;
  border-color: rgba(255, 71, 87, 0.4);
}

.collection-lvl-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.collection-step-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.collection-step-btn:hover {
  background: rgba(243, 209, 121, 0.2);
  color: var(--text-gold);
  border-color: var(--text-gold);
}

/* 3 Relic Slots */
.collection-relic-slot {
  flex: 1;
  min-width: 0;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.collection-relic-slot.rarity-epic {
  border-color: rgba(168, 85, 247, 0.55);
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);
}

.collection-relic-slot.rarity-rare {
  border-color: rgba(0, 210, 255, 0.55);
  color: #7dd3fc;
  background: rgba(0, 210, 255, 0.12);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.25);
}

.collection-relic-slot.rarity-common {
  border-color: rgba(46, 213, 115, 0.55);
  color: #86efac;
  background: rgba(46, 213, 115, 0.12);
  box-shadow: 0 0 8px rgba(46, 213, 115, 0.25);
}

.collection-relic-slot.rarity-none {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--stitch-text-muted);
}

/* ==========================================================================
   MOBILE & TOUCH RESPONSIVE STYLES (design.md Compliant)
   ========================================================================== */

/* ==========================================================================
   MOBILE & TOUCH RESPONSIVE STYLES (Ultra-Compact Mobile Design)
   ========================================================================== */

/* Desktop defaults for collapsible mobile filter elements */
.toolbar-search-row {
  display: contents;
}

.mobile-filter-toggle-btn {
  display: none;
}

.toolbar-filters-dropdowns {
  display: contents;
}

.mobile-view-tabs {
  display: none;
}

@media (max-width: 900px) {
  /* 1. Header & App Bar - Ultra Compact */
  .app-header {
    padding: 6px 0 2px !important;
    gap: 4px !important;
  }

  .header-corner-actions {
    top: 6px !important;
    right: 8px !important;
  }

  .header-corner-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
    border-width: 1px !important;
  }

  .header-top-centered {
    margin: 0 !important;
    padding: 0 36px 0 12px !important;
  }

  .header-brand-title {
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    text-align: center;
    margin: 0 !important;
  }

  /* Compact Horizontal Toolbar */
  .stitch-toolbar-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 10px 4px !important;
    margin: 0 !important;
    gap: 6px !important;
    justify-content: flex-start;
  }

  .stitch-toolbar-bar::-webkit-scrollbar {
    display: none;
  }

  .stitch-nav-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 11px !important;
    padding: 4px 9px !important;
    min-height: 32px !important;
    border-radius: 6px !important;
  }

  /* 2. Stats Banner - 1-Line Ultra-Compact Strip */
  .stats-bar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 2px 10px 0 !important;
    padding: 4px 8px !important;
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 8px !important;
    min-height: 26px !important;
  }

  .stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
  }

  .stat-label {
    display: none !important;
  }

  .stat-value {
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  /* 3. Mobile View Switcher Tab Bar - Sleek & Slim */
  .mobile-view-tabs {
    display: flex !important;
    gap: 4px !important;
    padding: 2px !important;
    margin: 4px 10px 0 !important;
    background: rgba(13, 17, 23, 0.95) !important;
    border: 1px solid var(--stitch-border) !important;
    border-radius: 10px !important;
  }

  .mobile-view-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--stitch-text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 32px;
  }

  .mobile-view-tab.active {
    background: rgba(243, 209, 121, 0.15);
    color: var(--text-gold);
    border-color: rgba(243, 209, 121, 0.4);
  }

  .tab-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
  }

  /* 4. Main Layout & Sticky Header Compactness */
  .main-layout {
    display: flex !important;
    flex-direction: column !important;
    padding: 6px 10px !important;
    gap: 8px !important;
  }

  .main-layout[data-active-view="challenges"] .roster-sidebar {
    display: none !important;
  }

  .main-layout[data-active-view="challenges"] #challenges-column {
    display: flex !important;
    flex-direction: column;
    width: 100%;
  }

  .main-layout[data-active-view="roster"] #challenges-column {
    display: none !important;
  }

  .main-layout[data-active-view="roster"] .roster-sidebar {
    display: flex !important;
    width: 100%;
    max-height: none;
  }

  .challenges-sticky-header {
    border-radius: 10px 10px 0 0;
  }

  .challenges-sticky-header .panel-header {
    padding: 6px 10px !important;
    min-height: 30px !important;
  }

  #main-challenges-title {
    display: none !important;
  }

  /* 5. Collapsible Filters Toolbar */
  .toolbar {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 6px 10px !important;
  }

  .toolbar-search-row {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    align-items: center !important;
  }

  .mobile-filter-toggle-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 5px 10px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--stitch-border) !important;
    border-radius: 6px !important;
    color: #e2e8f0 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    min-height: 34px !important;
    transition: all 0.15s ease !important;
  }

  .mobile-filter-toggle-btn.has-filters {
    background: rgba(243, 209, 121, 0.15) !important;
    border-color: rgba(243, 209, 121, 0.4) !important;
    color: var(--text-gold) !important;
  }

  .filter-count-badge {
    background: var(--text-gold);
    color: #090c10;
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 6px;
  }

  .toolbar-filters-dropdowns {
    display: none;
    width: 100% !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding: 6px 0 2px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  .toolbar-filters-dropdowns.expanded {
    display: grid !important;
    animation: fadeIn 0.15s ease-out;
  }

  .toolbar-group {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .toolbar-label {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    color: var(--stitch-text-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  .select-input {
    width: 100% !important;
    min-width: 0 !important;
    padding: 4px 6px !important;
    font-size: 11px !important;
    min-height: 30px !important;
    height: 30px !important;
  }

  /* 6. Challenge Cards - Compact & High Information Density */
  .challenges-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .challenge-card {
    padding: 10px !important;
    gap: 8px !important;
    border-radius: 10px !important;
  }

  .challenge-card-hero-banner {
    height: 80px !important;
    border-radius: 6px !important;
  }

  .challenge-boss-name {
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  .challenge-number-badge {
    font-size: 13px !important;
    padding: 1px 6px !important;
  }

  .challenge-mutators-list {
    gap: 4px !important;
  }

  /* 7. Modals - Mobile Bottom Sheet */
  .modal-overlay,
  .modal-backdrop {
    padding: 6px;
    align-items: flex-end;
  }

  .modal-container,
  .modal-box,
  .collection-modal-container,
  .builder-modal-container {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 94vh !important;
    border-radius: 14px 14px 6px 6px !important;
    margin: 0 !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  /* Challenge Builder Mobile adjustments */
  .builder-month-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .builder-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .builder-toolbar > div:last-child {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 2px !important;
  }

  .builder-toolbar > div:last-child::-webkit-scrollbar {
    display: none;
  }

  /* My Collection Modal */
  .collection-stats-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }

  .collection-editor-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .collection-champ-card {
    padding: 10px !important;
  }

  .collection-champ-card > div:last-child {
    flex-direction: column !important;
    gap: 5px !important;
  }

  .collection-relic-slot {
    width: 100% !important;
    min-height: 34px !important;
    font-size: 11.5px !important;
  }
}

/* ==========================================================================
   New User Introduction & Quick Start Guide Modal
   ========================================================================== */
.intro-guide-modal {
  background: linear-gradient(180deg, #151c28 0%, #0d121a 100%);
  border: 1px solid rgba(243, 209, 121, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 24px rgba(243, 209, 121, 0.15);
  border-radius: 12px;
}

.intro-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.intro-guide-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.intro-guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 209, 121, 0.35);
  background: rgba(243, 209, 121, 0.05);
}

.intro-card-icon {
  font-size: 26px;
  line-height: 1;
  padding: 8px;
  background: rgba(243, 209, 121, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(243, 209, 121, 0.2);
  flex-shrink: 0;
}

.intro-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.intro-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.intro-card-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.45;
}

.intro-guide-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 16, 23, 0.7);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.intro-dismiss-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.intro-dismiss-checkbox input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--text-gold);
  width: 15px;
  height: 15px;
}

.intro-dismiss-checkbox:hover {
  color: #e2e8f0;
}

@media (max-width: 640px) {
  .intro-guide-grid {
    grid-template-columns: 1fr;
  }
  .intro-guide-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .intro-guide-footer button {
    width: 100%;
  }
}



