/* ═══════════════════════════════════════════
   ATHENA — Modern Dark Theme (2026)
   Glass Morphism · Refined Gradients · Micro-interactions
   ═══════════════════════════════════════════ */
:root {
	--bg-0: #080a0d;
	--bg-1: #0c1014;
	--bg-surface: rgba(14, 18, 23, 0.7);
	--panel: rgba(16, 21, 28, 0.65);
	--panel-2: rgba(18, 24, 32, 0.55);
	--text: #e8edf3;
	--text-secondary: #a0aec0;
	--muted: #cbd5e1;
	--accent: #38bdf8;
	--accent-glow: rgba(56, 189, 248, 0.15);
	--accent-2: #34d399;
	--accent-violet: #a78bfa;
	--border: rgba(148, 163, 184, 0.08);
	--border-hover: rgba(56, 189, 248, 0.3);
	--glass: rgba(15, 23, 42, 0.6);
	--glass-border: rgba(148, 163, 184, 0.1);
	--card-bg: rgba(15, 23, 42, 0.45);
	--card-bg-hover: rgba(15, 23, 42, 0.6);
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
	--shadow-glow: 0 0 20px rgba(56, 189, 248, 0.08);
	--transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { scrollbar-width: thin; scrollbar-color: rgba(56, 189, 248, 0.2) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.18); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56, 189, 248, 0.35); }

body {
	background: var(--bg-0);
	background-image:
		radial-gradient(ellipse 80% 60% at 10% 0%, rgba(56, 189, 248, 0.06) 0%, transparent 60%),
		radial-gradient(ellipse 60% 50% at 90% 100%, rgba(167, 139, 250, 0.04) 0%, transparent 50%);
	background-attachment: fixed;
	color: var(--text);
	font-family: "Inter", "Exo 2", "Noto Sans KR", sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.sidebar { background: linear-gradient(180deg, rgba(8, 10, 13, 0.95) 0%, rgba(12, 16, 20, 0.95) 100%); border-right: 1px solid var(--glass-border); height: 100vh; backdrop-filter: blur(20px); }
.sidebar-content { display: grid; gap: 14px; }
.filter-panel {
	background: var(--glass);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	padding: 16px;
	box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.03);
	transition: border-color var(--transition-base);
}
.filter-panel:hover { border-color: rgba(148, 163, 184, 0.15); }
.panel-title { font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.text-muted { color: var(--muted) !important; }
.fw-bold { color: var(--text) !important; }
.brand h4 { margin: 0; font-weight: 700; letter-spacing: 1px; }
.map-list { background: var(--panel-2); border-radius: var(--radius-sm); }
.tier-list { background: var(--panel-2); border-radius: var(--radius-sm); }

/* ── Pill-style Selectors ── */
.map-list label.form-check,
.map-list div.form-check,
.tier-list label.form-check,
.tier-list div.form-check {
	margin: 0 6px 6px 0;
	transition: all var(--transition-fast);
}
.map-list .form-check-input,
.tier-list .form-check-input {
	display: none;
}
.map-list .form-check-label,
.tier-list .form-check-label,
.map-list .map-btn-custom,
.tier-list .map-btn-custom {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--glass-border);
	background: var(--glass);
	backdrop-filter: blur(8px);
	color: var(--text-secondary);
	font-size: 0.76rem;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
	transition: all var(--transition-base);
	position: relative;
}
.map-list .form-check-label:hover,
.tier-list .form-check-label:hover,
.map-list .map-btn-custom:hover,
.tier-list .map-btn-custom:hover {
	border-color: var(--border-hover);
	color: var(--text);
	background: rgba(56, 189, 248, 0.06);
}
.map-list label.form-check:active .form-check-label,
.tier-list label.form-check:active .form-check-label,
.map-list .map-btn-custom:active,
.tier-list .map-btn-custom:active {
	background: rgba(56, 189, 248, 0.12);
	border-color: rgba(56, 189, 248, 0.5);
	transform: scale(0.97);
}
.map-list .form-check-input:checked + .form-check-label,
.tier-list .form-check-input:checked + .form-check-label {
	background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(59, 130, 246, 0.9));
	border-color: transparent;
	color: #0f172a;
	font-weight: 700;
	box-shadow: 0 2px 12px rgba(56, 189, 248, 0.25);
}

/* ── Buttons ── */
.btn-primary {
	background: linear-gradient(135deg, var(--accent), #3b82f6);
	border: none;
	color: #0f172a;
	font-weight: 700;
	box-shadow: 0 2px 12px rgba(56, 189, 248, 0.2);
	transition: all var(--transition-base);
}
.btn-primary:hover {
	background: linear-gradient(135deg, #7dd3fc, #60a5fa);
	box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
	transform: translateY(-1px);
}
.btn-success { background: linear-gradient(135deg, var(--accent-2), #10b981); border-color: transparent; }
.btn-outline-info {
	color: var(--accent);
	border-color: rgba(56, 189, 248, 0.3);
	backdrop-filter: blur(4px);
	transition: all var(--transition-base);
}
.btn-outline-info:hover {
	background: linear-gradient(135deg, var(--accent), #3b82f6);
	color: #0f172a;
	border-color: transparent;
	box-shadow: 0 2px 12px rgba(56, 189, 248, 0.2);
}
.form-control, .form-select {
	background-color: rgba(15, 23, 42, 0.5);
	border: 1px solid var(--glass-border);
	color: var(--text);
	border-radius: var(--radius-sm);
	backdrop-filter: blur(4px);
	transition: all var(--transition-base);
}
.form-control:focus, .form-select:focus {
	background-color: rgba(15, 23, 42, 0.7);
	border-color: var(--accent);
	color: var(--text);
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1), var(--shadow-glow);
}
.form-check-label, .form-label {
	color: var(--text);
}

/* ── Cards ── */
.card, .tab-pane { background: transparent; }
.card {
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: rgba(15, 23, 42, 0.85);
	box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.02);
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.card:hover {
	border-color: rgba(148, 163, 184, 0.14);
}
#map_bubble_card .card-header { position: relative; overflow: visible; }
#map_tier_card, #map_tier_card .card-header { overflow: visible; position: relative; }
#map_detail_view .card > .card-header { position: relative; overflow: visible; }

/* ── Counter Side Panel (inside scatter plot card) ── */
.counter-side-panel {
	flex: 3 0 0;
	min-width: 160px;
	max-width: 280px;
	overflow: hidden;
	background: rgba(10,15,25,0.6);
	border-left: 1px solid rgba(148,163,184,0.06);
	padding: 8px 7px;
	display: flex;
	flex-direction: column;
	gap: 0;
	justify-content: center;
}
.counter-side-panel:empty { display: none; }

.counter-side-section {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.counter-side-section + .counter-side-section {
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid rgba(148,163,184,0.06);
}
.counter-side-section-label {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 4px;
}
.counter-side-entry {
	display: flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
	padding: 3px 4px;
	border-radius: 4px;
	transition: background 0.15s;
}
.counter-side-entry:hover {
	background: rgba(255,255,255,0.07);
}
.counter-side-entry img {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	flex-shrink: 0;
	box-shadow: 0 0 4px rgba(0,0,0,0.4);
}
.counter-side-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}
.counter-side-name {
	font-size: 10px;
	font-weight: 600;
	color: #d1d5db;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2;
}
.counter-side-bar-track {
	width: 100%;
	height: 3px;
	background: rgba(255,255,255,0.04);
	border-radius: 2px;
	overflow: hidden;
}
.counter-side-bar-fill {
	height: 100%;
	border-radius: 2px;
	transition: width 0.4s ease;
}
.counter-side-score {
	font-size: 10px;
	font-weight: 700;
	min-width: 20px;
	text-align: right;
	flex-shrink: 0;
}
.counter-side-role-group {
	margin-bottom: 2px;
}
.counter-side-role-group:last-child { margin-bottom: 0; }
.counter-side-role-badge {
	font-size: 8px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 1px 6px;
	border-radius: 3px;
	border: 1px solid;
	margin-bottom: 2px;
	display: inline-block;
}
.counter-side-role-entries {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.counter-side-entry.compact {
	padding: 2px 3px;
}
.counter-side-entry.compact .counter-side-name {
	font-size: 9px;
}
.counter-side-entry.compact .counter-side-score {
	font-size: 9px;
}

/* ── Card Headers ── */
.card-header {
	border-bottom: 1px solid var(--glass-border);
	background: rgba(15, 23, 42, 0.6) !important;
}
.bg-dark { background: transparent !important; }
.card-header.bg-dark {
	background: rgba(15, 23, 42, 0.4) !important;
}

/* ── Chart Backgrounds ── */
#mainPlot, #plot_single_trend, #plot_meta_wilson, #plot_map_distribution, #plot_tier_distribution {
	background: rgba(8, 10, 14, 0.6);
	border-radius: var(--radius-md);
	padding: 8px;
	border: 1px solid var(--glass-border);
}
#plot_composite_score, #plot_metric_wilson, #plot_metric_map_wr, #plot_metric_svd_fit {
	background: rgba(8, 10, 14, 0.6);
	padding: 0;
}

/* ── Chart Containers & Titles ── */
.chart-container {
	background: rgba(8, 10, 14, 0.5);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-md);
	padding: 12px;
}
.chart-title { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: 0.5px; }
.chart-title-small { font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; letter-spacing: 0.8px; text-transform: uppercase; }

/* ── Result & Dropdown ── */
.result-card {
	background: rgba(8, 10, 14, 0.5);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-md);
	padding: 12px;
}
.tier-dropdown-menu {
	background: rgba(8, 12, 20, 0.95);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	min-width: 360px;
	color: var(--text);
	box-shadow: var(--shadow-lg);
}
.tier-dropdown-menu .form-control { background: rgba(15, 23, 42, 0.6); color: var(--text); border-color: var(--glass-border); }
.tier-dropdown-menu .form-check-label { color: var(--text-secondary); }
.tier-plot-wrap { display: flex; justify-content: center; }

/* ══════════════════════════════════════════
   HOME TAB — Premium Layout
   ══════════════════════════════════════════ */

/* ── Hero Banner (S-Tier Spotlight) ── */
.home-hero-banner {
	position: relative;
	border-radius: var(--radius-xl);
	overflow: hidden;
	margin-bottom: 16px;
	min-height: 160px;
	background: linear-gradient(135deg, rgba(15,23,42,0.9) 0%, rgba(30,41,59,0.7) 50%, rgba(56,189,248,0.08) 100%);
	border: 1px solid rgba(56,189,248,0.12);
}
.home-banner-bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 80% at 85% 30%, rgba(56,189,248,0.12) 0%, transparent 70%),
		radial-gradient(ellipse 40% 60% at 15% 80%, rgba(167,139,250,0.08) 0%, transparent 60%);
	pointer-events: none;
}
.home-banner-content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 32px;
	gap: 24px;
	z-index: 1;
}
.home-banner-text { flex-shrink: 0; }
.home-banner-label {
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 4px;
	opacity: 0.9;
}
.home-banner-title {
	font-size: 1.6rem;
	font-weight: 900;
	color: #fff;
	margin: 0 0 4px;
	letter-spacing: -0.03em;
	line-height: 1.2;
	background: linear-gradient(135deg, #fff 0%, #38bdf8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.home-banner-desc {
	font-size: 0.78rem;
	color: var(--text-secondary);
	margin: 0;
	opacity: 0.7;
}

/* Spotlight hero cards */
.home-spotlight-heroes {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	flex: 1;
	justify-content: flex-end;
	min-width: 0;
	padding: 4px 0;
}
.home-spotlight-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px 12px 8px;
	border-radius: 14px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.06);
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition: all var(--transition-base);
	min-width: 72px;
	position: relative;
	overflow: hidden;
}
.home-spotlight-card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 14px;
	background: linear-gradient(180deg, var(--hero-color, transparent) 0%, transparent 60%);
	opacity: 0.08;
	transition: opacity var(--transition-base);
	pointer-events: none;
}
.home-spotlight-card:hover {
	background: rgba(255,255,255,0.08);
	border-color: rgba(56,189,248,0.25);
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 16px var(--hero-color, rgba(56,189,248,0.1));
}
.home-spotlight-card:hover::before { opacity: 0.15; }
.home-spotlight-img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2.5px solid;
	object-fit: cover;
	margin-bottom: 5px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.4);
	transition: all var(--transition-base);
}
.home-spotlight-card:hover .home-spotlight-img {
	transform: scale(1.1);
	box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.home-spotlight-name {
	font-size: 10px;
	font-weight: 700;
	color: #e2e8f0;
	white-space: nowrap;
	max-width: 70px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.home-spotlight-role {
	font-size: 8px;
	font-weight: 600;
	letter-spacing: 0.5px;
	margin-top: 1px;
	opacity: 0.7;
}
.home-spotlight-rank {
	position: absolute;
	top: 4px;
	left: 6px;
	font-size: 9px;
	font-weight: 900;
	color: rgba(255,255,255,0.5);
	font-family: 'Exo 2', sans-serif;
}

/* ── Quick Stats Row ── */
.home-stats-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 16px;
}
.home-stat-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: var(--radius-md);
	background: rgba(15,23,42,0.5);
	border: 1px solid var(--glass-border);
	backdrop-filter: blur(8px);
	transition: all var(--transition-base);
}
.home-stat-card:hover {
	border-color: rgba(56,189,248,0.18);
	background: rgba(15,23,42,0.65);
	transform: translateY(-1px);
}
.home-stat-icon {
	font-size: 1.5rem;
	line-height: 1;
	flex-shrink: 0;
}
.home-stat-info { min-width: 0; }
.home-stat-value {
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
	white-space: nowrap;
	letter-spacing: -0.02em;
}
.home-stat-label {
	font-size: 0.7rem;
	color: var(--text-secondary);
	opacity: 0.7;
	white-space: nowrap;
}

/* ── Meta Composition Card ── */
.home-stat-meta {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	grid-column: span 1;
}
.home-stat-meta > .home-stat-icon { display: none; }
.home-stat-meta > .home-stat-info {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}
.home-stat-meta .home-stat-value {
	font-size: 1.05rem;
	background: linear-gradient(135deg, #38bdf8, #a78bfa);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.meta-bar-wrap {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.meta-bar-item {
	display: flex;
	align-items: center;
	gap: 6px;
}
.meta-bar-label {
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--text-secondary);
	width: 56px;
	flex-shrink: 0;
	white-space: nowrap;
}
.meta-bar-track {
	flex: 1;
	height: 6px;
	background: rgba(255,255,255,0.06);
	border-radius: 3px;
	overflow: hidden;
}
.meta-bar-fill {
	height: 100%;
	border-radius: 3px;
	transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.meta-bar-pct {
	font-size: 0.65rem;
	font-weight: 800;
	color: var(--text);
	width: 28px;
	text-align: right;
	flex-shrink: 0;
}

/* ── Dual Grid (Hero + Map tiers side by side) ── */
.home-dual-grid {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 16px;
	margin-bottom: 16px;
}
@media (max-width: 1200px) {
	.home-dual-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.home-stats-row { grid-template-columns: repeat(2, 1fr); }
	.home-banner-content { flex-direction: column; align-items: flex-start; }
	.home-spotlight-heroes { justify-content: flex-start; }
}
@media (max-width: 480px) {
	.home-stats-row { grid-template-columns: 1fr; }
}

/* ── Section Cards ── */
.home-section {
	background: rgba(15, 23, 42, 0.55);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	margin-bottom: 16px;
	overflow: hidden;
}
.home-dual-grid > .home-section { margin-bottom: 0; }
.home-section-sm { margin-bottom: 12px; }

/* ── Tab Section Body (generic padded body) ── */
.tab-section-body {
	padding: 16px 20px;
}

/* ══════════════════════════════════════════
   DETAIL BANNER — Hero/Map Profile Header
   ══════════════════════════════════════════ */
.detail-banner {
	position: relative;
	border-radius: var(--radius-xl);
	overflow: visible;
	margin-bottom: 16px;
	min-height: 80px;
	background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(30,41,59,0.7) 50%, rgba(56,189,248,0.06) 100%);
	border: 1px solid rgba(56,189,248,0.10);
}
.detail-banner-bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 50% 80% at 90% 30%, rgba(56,189,248,0.08) 0%, transparent 70%),
		radial-gradient(ellipse 35% 60% at 10% 80%, rgba(167,139,250,0.06) 0%, transparent 60%);
	pointer-events: none;
	border-radius: var(--radius-xl);
}
.detail-banner-content {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	gap: 16px;
	z-index: 1;
}
.detail-back-btn {
	all: unset;
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 7px 18px;
	border-radius: 999px;
	color: var(--text-secondary);
	border: 1px solid rgba(148,163,184,0.15);
	background: rgba(15,23,42,0.5);
	backdrop-filter: blur(8px);
	transition: all var(--transition-base);
	white-space: nowrap;
	flex-shrink: 0;
}
.detail-back-btn:hover {
	color: #fff;
	border-color: var(--accent);
	background: rgba(56,189,248,0.1);
	box-shadow: 0 2px 12px rgba(56,189,248,0.12);
}
.detail-charts-wrap {
	margin-bottom: 16px;
}
.detail-status-text {
	font-size: 0.72rem;
	color: var(--text-secondary);
	opacity: 0.5;
	padding: 4px 8px;
	margin-bottom: 8px;
}

/* Banner内の hero-detail 要素のスタイリング */
.detail-banner .hero-detail-header {
	gap: 14px;
	flex-wrap: wrap;
}
.detail-banner .hero-detail-image {
	display: block;
	width: 60px;
	height: 60px;
	border-radius: var(--radius-md);
	border: 2px solid rgba(56,189,248,0.2);
	box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.detail-banner .hero-detail-title .fw-bold {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.detail-banner .hero-detail-title .small {
	font-size: 0.78rem;
}
.detail-banner .small.text-muted {
	font-size: 0.72rem;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(148,163,184,0.08);
}

/* Map detail banner tweaks */
#map_detail_banner #selected_map_icon {
	display: block;
	width: 96px;
	height: 60px;
	object-fit: cover;
	border-radius: var(--radius-md);
	border: 2px solid rgba(56,189,248,0.15);
	box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* ── Sub-card polish (hero/map detail chart cards) ── */
#map_bubble_card,
#map_tier_card,
#hero .card.flex-fill,
#map .card.flex-fill {
	border-color: rgba(148,163,184,0.08);
	background: rgba(15,23,42,0.6);
	border-radius: var(--radius-lg);
}
#map_bubble_card .card-header,
#map_tier_card .card-header,
#hero .card.flex-fill .card-header,
#map .card.flex-fill .card-header {
	background: rgba(15,23,42,0.4) !important;
	border-bottom: 1px solid rgba(148,163,184,0.06);
	padding: 12px 16px;
}

/* ── Hero/Map select grid polish ── */
.hero-select-section,
.map-select-section {
	background: rgba(255,255,255,0.01);
	border-radius: var(--radius-md);
	padding: 12px;
	border: 1px solid rgba(148,163,184,0.04);
	transition: all var(--transition-base);
}
.hero-select-section:hover,
.map-select-section:hover {
	background: rgba(255,255,255,0.02);
	border-color: rgba(148,163,184,0.08);
}
.hero-select-title,
.map-select-title {
	font-size: 0.8rem;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
}

/* Select buttons upgrade */
.hero-select-btn,
.map-select-btn {
	background: rgba(255,255,255,0.03);
	border-color: rgba(148,163,184,0.06);
	border-radius: var(--radius-md);
}
.hero-select-btn:hover,
.map-select-btn:hover {
	background: rgba(56,189,248,0.06);
	border-color: rgba(56,189,248,0.2);
	box-shadow: 0 6px 20px rgba(0,0,0,0.2), 0 0 12px rgba(56,189,248,0.06);
}
.hero-select-icon {
	border-radius: var(--radius-md);
	border-color: rgba(148,163,184,0.08);
	transition: all var(--transition-spring);
}
.map-select-icon {
	border-radius: var(--radius-sm);
	border-color: rgba(148,163,184,0.08);
	transition: all var(--transition-spring);
}
.hero-select-btn:hover .hero-select-icon,
.map-select-btn:hover .map-select-icon {
	transform: scale(1.06);
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ── Responsive for detail banner ── */
@media (max-width: 768px) {
	.detail-banner-content {
		flex-direction: column;
		align-items: flex-start;
		padding: 14px 16px;
	}
	.detail-back-btn {
		align-self: flex-end;
	}
	.detail-banner .hero-detail-header {
		flex-wrap: wrap;
	}
	.detail-banner .hero-detail-image {
		width: 48px;
		height: 48px;
	}
	#map_detail_banner #selected_map_icon {
		width: 72px;
		height: 44px;
	}
}

.home-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid var(--border);
	gap: 12px;
}
.home-section-title-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	min-width: 0;
}
.home-section-icon {
	font-size: 1.15rem;
	line-height: 1;
	flex-shrink: 0;
}
.home-section-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text);
	margin: 0;
	letter-spacing: -0.02em;
	white-space: nowrap;
}
.home-section-desc {
	font-size: 0.75rem;
	color: var(--text-secondary);
	margin: 0;
	opacity: 0.7;
	white-space: nowrap;
}

/* ── Chart card subtitle (filter info) ── */
.chart-card-subtitle {
	font-size: 0.7rem;
	color: #9ad8ff;
	opacity: 0.7;
	white-space: nowrap;
	margin: 0;
	font-family: "Noto Sans KR", sans-serif;
}

.home-section-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

/* ── Role Tab Pills ── */
.home-role-tabs {
	display: flex;
	background: rgba(0, 0, 0, 0.25);
	border-radius: 8px;
	padding: 2px;
	gap: 2px;
}
.home-role-tab {
	all: unset;
	cursor: pointer;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 6px;
	color: var(--text-secondary);
	transition: all var(--transition-fast);
	white-space: nowrap;
}
.home-role-tab:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.05);
}
.home-role-tab.active {
	color: #fff;
	background: var(--accent);
	box-shadow: 0 1px 4px rgba(56, 189, 248, 0.25);
}

/* ── Status Badge ── */
.home-status-badge {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--accent);
	background: rgba(56, 189, 248, 0.08);
	border: 1px solid rgba(56, 189, 248, 0.15);
	padding: 3px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

/* ── Tier Body ── */
.home-tier-body {
	padding: 8px 12px 12px;
}

/* ── Toggle Icon ── */
.home-toggle-icon {
	font-size: 0.8rem;
	color: var(--text-secondary);
	transition: transform var(--transition-fast);
	flex-shrink: 0;
}
#toggle_home_metrics:hover .home-toggle-icon,
#toggle_hero_map_metrics:hover .home-toggle-icon,
#toggle_map_metrics:hover .home-toggle-icon {
	color: var(--accent);
}

/* ── Hero/Map Tier Row (shared) ── */
.ht-col-header {
	display: flex;
	align-items: center;
	padding: 2px 0 6px;
	margin-bottom: 0;
}
.ht-col-header-badge {
	min-width: 52px;
	flex-shrink: 0;
}
.ht-col-header-label {
	flex: 1;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: 0.55;
	padding-left: 12px;
}

.ht-tier-row {
	display: flex;
	align-items: stretch;
	margin-bottom: 4px;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(10, 14, 22, 0.45);
	border: 1px solid rgba(148, 163, 184, 0.05);
	transition: all var(--transition-base);
	position: relative;
}
.ht-tier-row::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 12px;
	opacity: 0;
	transition: opacity var(--transition-base);
	pointer-events: none;
	background: linear-gradient(90deg, var(--ht-tier-color, transparent) 0%, transparent 60%);
}
.ht-tier-row:hover {
	background: rgba(15, 20, 30, 0.65);
	border-color: rgba(148, 163, 184, 0.1);
}
.ht-tier-row:hover::before {
	opacity: 0.06;
}

.ht-tier-badge {
	min-width: 52px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 8px 0;
	flex-shrink: 0;
	position: relative;
}
.ht-tier-badge-letter {
	font-size: 1.4rem;
	font-weight: 900;
	letter-spacing: -1px;
	font-family: 'Exo 2', 'Inter', sans-serif;
	line-height: 1;
	text-shadow: 0 0 18px currentColor;
}
.ht-tier-badge-line {
	width: 18px;
	height: 2px;
	border-radius: 1px;
	opacity: 0.5;
}

.ht-tier-content {
	flex: 1;
	display: flex;
	min-width: 0;
}

.ht-role-group {
	flex: 1;
	padding: 8px 10px;
	min-width: 0;
}
.ht-role-border {
	border-left: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Hero Items ── */
.ht-hero-list {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
}

.ht-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 54px;
	cursor: pointer;
	padding: 5px 2px;
	border-radius: 10px;
	transition: all var(--transition-base);
	position: relative;
}
.ht-hero:hover {
	background: rgba(255, 255, 255, 0.06);
	transform: translateY(-2px);
}
.ht-hero:active {
	transform: translateY(0) scale(0.97);
}

.ht-hero-img {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 2px solid rgba(120, 140, 160, 0.3);
	background: #0a0e14;
	object-fit: cover;
	transition: all var(--transition-base);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.ht-hero:hover .ht-hero-img {
	border-color: rgba(255, 255, 255, 0.5);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px var(--ht-role-color, rgba(56, 189, 248, 0.15));
	transform: scale(1.08);
}
.ht-hero-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	color: #8899aa;
	background: #0f141e;
}

.ht-hero-arch {
	font-size: 7.5px;
	font-weight: 700;
	letter-spacing: 0.3px;
	line-height: 1;
	margin-top: 2px;
	padding: 1px 4px;
	border-radius: 3px;
	background: rgba(255,255,255,0.06);
	color: #8899aa;
}
.ht-hero-arch.rush  { color: #ef4444; background: rgba(239,68,68,0.12); }
.ht-hero-arch.poke  { color: #f59e0b; background: rgba(245,158,11,0.12); }
.ht-hero-arch.dive  { color: #06b6d4; background: rgba(6,182,212,0.12); }

.ht-hero-name {
	font-size: 9px;
	color: #667788;
	margin-top: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 54px;
	text-align: center;
	line-height: 1.15;
	transition: color var(--transition-fast);
}
.ht-hero:hover .ht-hero-name {
	color: #b0bec5;
}

/* ── Map Items ── */
.ht-map-list {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	align-items: center;
	padding: 8px 12px;
}

.ht-map {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 86px;
	cursor: pointer;
	padding: 7px 5px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: transparent;
	transition: all var(--transition-base);
}
.ht-map:hover {
	background: rgba(56, 189, 248, 0.08);
	border-color: rgba(56, 189, 248, 0.4);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.12);
	transform: translateY(-2px);
}
.ht-map:active {
	transform: translateY(0) scale(0.97);
}

.ht-map-img {
	width: 64px;
	height: 36px;
	border-radius: 8px;
	border: 2px solid transparent;
	background: transparent;
	object-fit: cover;
	transition: all var(--transition-base);
	box-shadow: none;
}
.ht-map:hover .ht-map-img {
	border-color: rgba(255, 255, 255, 0.55);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 10px rgba(56, 189, 248, 0.12);
	transform: scale(1.05);
}
.ht-map-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	color: #8899aa;
	background: #0f141e;
}

.ht-map-name {
	font-size: 9px;
	color: #8ea0b5;
	margin-top: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 86px;
	text-align: center;
	line-height: 1.15;
	transition: color var(--transition-fast);
}
.ht-map:hover .ht-map-name {
	color: #b0bec5;
}
.ht-map-selected {
	background: rgba(56, 189, 248, 0.12) !important;
	outline: 2px solid rgba(56, 189, 248, 0.5);
	outline-offset: -2px;
	border-radius: 10px;
}

/* ── Tooltip Styles ── */
.ht-tooltip-header {
	padding: 10px 12px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.ht-tooltip-name {
	font-size: 14px;
	font-weight: 800;
	color: #e8edf3;
}
.ht-tooltip-tier {
	font-size: 11px;
	padding: 1px 7px;
	border-radius: 999px;
	font-weight: 800;
	border: 1px solid;
}
.ht-tooltip-body {
	padding: 6px 12px 10px;
}
.ht-tooltip-score-row {
	margin-top: 6px;
	padding: 5px 8px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(148, 163, 184, 0.08);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11px;
	color: #94a3b8;
	font-weight: 600;
}
.ht-tooltip-score-row span:last-child {
	font-size: 15px;
	font-weight: 800;
}
.ht-tooltip-metric {
	flex: 1;
	padding: 4px 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(148, 163, 184, 0.06);
	text-align: center;
}
.ht-tooltip-metric-label {
	display: block;
	font-size: 9px;
	color: #94a3b8;
	font-weight: 600;
	letter-spacing: 0.5px;
}
.ht-tooltip-metric-value {
	display: block;
	font-size: 13px;
	font-weight: 800;
}

/* ── Recommendation Grid ── */
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 350px; overflow-y: auto; }
.rec-title { font-size: 0.72rem; color: var(--text-secondary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.rec-list { display: flex; flex-wrap: wrap; gap: 10px; }
.rec-pill {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	border-radius: 999px;
	border: 1px solid var(--glass-border);
	background: var(--glass);
	backdrop-filter: blur(8px);
	color: var(--text);
	font-size: 1.02rem;
	font-weight: 500;
	cursor: pointer;
	transition: all var(--transition-base);
}
.rec-pill:hover {
	border-color: var(--border-hover);
	background: rgba(56, 189, 248, 0.08);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(56, 189, 248, 0.1);
}
.rec-pill .score { color: var(--accent); font-weight: 700; font-size: 0.95rem; }

@media (max-width: 768px) {
	.rec-grid { grid-template-columns: 1fr; }
}
.table-wrap table { width: 100%; color: var(--text); }
.table-wrap th, .table-wrap td { padding: 6px 8px; border-bottom: 1px solid var(--glass-border); }
.table-wrap tr.selected { background: rgba(56, 189, 248, 0.08); }
.accordion-button { font-weight: 600; }

/* ── Team Cards ── */
.team-card {
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	background: var(--glass);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: var(--shadow-md);
	overflow: hidden;
}
.team-header {
	font-weight: 800;
	text-align: center;
	padding: 12px 8px;
	letter-spacing: 0.8px;
	font-size: 0.84rem;
	background: rgba(255, 255, 255, 0.02);
	border-bottom: 1px solid var(--glass-border);
}
.team-body { padding: 12px; }
.team-blue { border-top: 3px solid var(--accent); box-shadow: var(--shadow-md), 0 -2px 15px rgba(56, 189, 248, 0.06); }
.team-red { border-top: 3px solid #ef4444; box-shadow: var(--shadow-md), 0 -2px 15px rgba(239, 68, 68, 0.06); }
.role-block {
	margin-bottom: 10px;
	padding: 10px;
	border: 1px solid rgba(148, 163, 184, 0.06);
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, 0.015);
	transition: all var(--transition-base);
}
.role-block:hover {
	border-color: rgba(56, 189, 248, 0.15);
	background: rgba(56, 189, 248, 0.02);
}
.role-block:last-child { margin-bottom: 0; }
.role-title {
	font-size: 0.74rem;
	letter-spacing: 0.8px;
	font-weight: 700;
	color: var(--text-secondary);
	border-bottom: 1px solid rgba(148, 163, 184, 0.08);
	margin-bottom: 8px;
	padding-bottom: 4px;
	text-transform: uppercase;
}
.hero-chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.hero-chip {
	border: 1px solid rgba(148, 163, 184, 0.12);
	background: var(--glass);
	backdrop-filter: blur(4px);
	color: var(--text);
	font-size: 0.78rem;
	padding: 5px 8px;
	border-radius: var(--radius-sm);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all var(--transition-spring);
}
.hero-chip:hover {
	transform: translateY(-2px);
	border-color: var(--border-hover);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 8px rgba(56, 189, 248, 0.08);
}
.hero-chip-icon {
	width: 26px;
	height: 26px;
	object-fit: contain;
	border-radius: 6px;
	background: rgba(8, 10, 14, 0.6);
	border: 1px solid var(--glass-border);
	padding: 2px;
	flex: 0 0 auto;
}
.hero-chip-label { line-height: 1; font-weight: 600; }
.hero-chip.selected {
	background: linear-gradient(135deg, #38bdf8, #3b82f6);
	color: #0f172a;
	font-weight: 800;
	border-color: transparent;
	box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 4px 16px rgba(56, 189, 248, 0.22);
}
.hero-chip.red.selected {
	background: linear-gradient(135deg, #f87171, #ef4444);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3), 0 4px 16px rgba(239, 68, 68, 0.22);
}

/* ── My Role Highlight ── */
.role-block.my-role {
	border-color: rgba(56, 189, 248, 0.3);
	background: rgba(56, 189, 248, 0.04);
	box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.06);
}
.role-block.my-role .role-title {
	color: var(--accent);
}
.role-block.my-role .role-title::after {
	content: ' (MY)';
	font-size: 0.66rem;
	color: var(--accent);
	font-weight: 400;
}

/* ── Recommendation Badges ── */
.rec-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 16px;
	height: 16px;
	border-radius: 50%;
	font-size: 0.62rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	line-height: 1;
	pointer-events: none;
	z-index: 2;
}
.hero-chip { position: relative; }
.rec-rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }
.rec-rank-2 { background: linear-gradient(135deg, #d1d5db, #9ca3af); box-shadow: 0 0 6px rgba(156, 163, 175, 0.35); }
.rec-rank-3 { background: linear-gradient(135deg, #d97706, #b45309); box-shadow: 0 0 6px rgba(217, 119, 6, 0.35); }
.rec-rank-4 { background: #475569; }
.rec-rank-5 { background: #475569; }

/* ── VS Block ── */
.vs-block { 
	text-align: center; 
	color: var(--text-secondary);
	margin-left: 8px;
}
.vs-text { 
	font-size: 3rem; 
	font-weight: 900; 
	opacity: 0.15; 
	letter-spacing: 2px;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vs-text.winner-blue {
	color: var(--accent);
	opacity: 0.55;
	text-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}
.vs-text.winner-red {
	color: #ef4444;
	opacity: 0.55;
	text-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}
.score-diff {
	font-weight: 800;
	color: var(--text);
	font-size: 0.95rem;
	margin-top: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--glass-border);
	backdrop-filter: blur(4px);
}

.role-filter.active { background: linear-gradient(135deg, var(--accent), #3b82f6); color: #0f172a; border-color: transparent; }
.progress-indicator {
	display: none;
	align-items: center;
	color: var(--accent);
	padding: 6px 12px;
	border: 1px solid rgba(56, 189, 248, 0.2);
	border-radius: var(--radius-md);
	background: var(--glass);
	backdrop-filter: blur(8px);
}
.progress-indicator.active { display: flex !important; }

#team .filter-panel,
#team .card {
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

/* ── Team Setup Banner ── */
.team-setup-banner {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 16px;
	min-height: 140px;
}
.team-setup-bg {
	position: absolute; inset: 0;
	background: linear-gradient(135deg, rgba(56,189,248,0.12) 0%, rgba(59,130,246,0.08) 40%, rgba(139,92,246,0.06) 100%);
	z-index: 0;
}
.team-setup-bg::after {
	content: '';
	position: absolute; inset: 0;
	background: radial-gradient(ellipse 60% 80% at 85% 50%, rgba(56,189,248,0.10), transparent);
}
.team-setup-content {
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: space-between;
	padding: 28px 32px;
	flex-wrap: wrap; gap: 20px;
}
.team-setup-left { flex: 1; min-width: 200px; }
.team-setup-label {
	font-size: 0.65rem; font-weight: 800; letter-spacing: 2px;
	color: var(--accent); text-transform: uppercase; margin-bottom: 4px;
}
.team-setup-title {
	font-size: 1.5rem; font-weight: 900; color: var(--text);
	margin: 0 0 4px;
}
.team-setup-desc {
	font-size: 0.82rem; color: var(--text-secondary); margin: 0;
}
.team-setup-right {
	display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end;
}
.team-setup-field { display: flex; flex-direction: column; gap: 4px; }
.team-setup-field-label {
	font-size: 0.72rem; font-weight: 700; color: var(--text-secondary);
}
.team-setup-input {
	background: rgba(15,23,42,0.7);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-size: 0.82rem;
	padding: 6px 12px;
	transition: border-color var(--transition-base);
	appearance: auto; -webkit-appearance: auto;
}
.team-setup-input:focus {
	border-color: var(--accent);
	outline: none;
	box-shadow: 0 0 0 2px rgba(56,189,248,0.15);
}

/* ── Team Map Row ── */
.team-map-row {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 16px;
	margin-bottom: 16px;
}
.team-map-selector { margin-bottom: 0 !important; }
.team-map-preview {
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	gap: 8px;
	border-radius: var(--radius-lg);
	background: var(--glass);
	backdrop-filter: blur(16px);
	border: 1px solid var(--glass-border);
	padding: 16px;
}

/* ── Team Action Bar ── */
.team-action-bar {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 10px;
	padding: 12px 20px;
	margin-bottom: 16px;
	border-radius: var(--radius-lg);
	background: var(--glass);
	backdrop-filter: blur(16px);
	border: 1px solid var(--glass-border);
	box-shadow: var(--shadow-md);
}
.team-action-left,
.team-action-right,
.team-action-center { display: flex; align-items: center; gap: 8px; }
.team-action-btn {
	border: 1px solid var(--glass-border);
	background: rgba(255,255,255,0.04);
	color: var(--text);
	font-size: 0.8rem; font-weight: 700;
	padding: 7px 16px;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: all var(--transition-spring);
	white-space: nowrap;
}
.team-action-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.team-action-primary {
	background: linear-gradient(135deg, var(--accent), #3b82f6);
	color: #0f172a;
	border-color: transparent;
	font-weight: 800;
}
.team-action-primary:hover {
	box-shadow: 0 8px 24px rgba(56,189,248,0.3), var(--shadow-glow);
}
.team-action-secondary {
	border-color: rgba(148,163,184,0.2);
}
.team-action-warning {
	border-color: rgba(234,179,8,0.3);
	color: #fbbf24;
}
.team-action-warning:hover {
	background: rgba(234,179,8,0.1);
	border-color: rgba(234,179,8,0.5);
}
.team-action-info {
	border-color: rgba(56,189,248,0.3);
	color: var(--accent);
}
.team-action-info:hover {
	background: rgba(56,189,248,0.08);
	border-color: rgba(56,189,248,0.5);
}

/* ── Team VS Grid ── */
.team-vs-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0;
	align-items: stretch;
	margin-bottom: 16px;
}
.team-vs-center {
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	padding: 0 16px; min-width: 80px;
}
.team-header-label {
	font-weight: 800; letter-spacing: 0.8px; font-size: 0.84rem;
}

@media (max-width: 768px) {
	.team-setup-content { flex-direction: column; }
	.team-map-row { grid-template-columns: 1fr; }
	.team-vs-grid { grid-template-columns: 1fr; gap: 12px; }
	.team-vs-center { flex-direction: row; padding: 10px 0; }
	.team-action-bar { flex-direction: column; }
}

#team .action-bar { display: flex; flex-wrap: wrap; gap: 8px; }
#team .action-bar .btn {
	border-radius: var(--radius-md);
	font-weight: 700;
	padding: 6px 14px;
	transition: all var(--transition-spring);
}
#team .action-bar .btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ── Hero Detail Buttons ── */
.hero-detail-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
	align-items: stretch;
}
.hero-detail-btn {
	flex: 1 1 0;
	min-width: 0;
	border: 1px solid rgba(148, 163, 184, 0.12);
	background: var(--glass);
	backdrop-filter: blur(8px);
	color: var(--text);
	font-size: 0.85rem;
	padding: 10px 8px;
	border-radius: var(--radius-md);
	text-align: center;
	cursor: pointer;
	transition: all var(--transition-spring);
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	justify-content: flex-start;
}
.hero-detail-btn:hover {
	transform: translateY(-3px);
	border-color: rgba(56, 189, 248, 0.4);
	box-shadow: 0 8px 24px rgba(56, 189, 248, 0.1), var(--shadow-glow);
}
.hero-detail-btn.blue { 
	border-color: rgba(56, 189, 248, 0.3);
	box-shadow: 0 2px 8px rgba(56, 189, 248, 0.08);
}
.hero-detail-btn.blue:hover {
	box-shadow: 0 6px 24px rgba(56, 189, 248, 0.2);
}
.hero-detail-btn.red { 
	border-color: rgba(239, 68, 68, 0.3);
	box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
}
.hero-detail-btn.red:hover {
	box-shadow: 0 6px 24px rgba(239, 68, 68, 0.2);
}
.hero-detail-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(148, 163, 184, 0.15);
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition-spring);
}
.hero-detail-btn:hover .hero-detail-icon {
	transform: scale(1.1);
}
.hero-detail-name {
	font-weight: 600;
	font-size: 0.88rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}
.hero-detail-stats {
	font-size: 0.7rem;
	line-height: 1.3;
	background: rgba(56, 189, 248, 0.08);
	padding: 3px 7px;
	border-radius: 6px;
	white-space: nowrap;
	margin-left: auto;
	flex-shrink: 0;
	border: 1px solid rgba(56, 189, 248, 0.1);
}
.hero-detail-separator {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-basis: 100%;
	margin: 12px 0;
	padding: 8px 0;
}
.separator-line {
	flex: 1;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
	border-radius: 2px;
}
.separator-text {
	color: var(--accent);
	font-weight: 700;
	font-size: 1.2rem;
	text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
	letter-spacing: 4px;
	padding: 4px 14px 4px 18px;
	background: rgba(56, 189, 248, 0.06);
	border-radius: var(--radius-sm);
	border: 1px solid rgba(56, 189, 248, 0.2);
}

#team #result_5v5_text {
	background: var(--glass);
	backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.result-report { white-space: pre-line; font-family: "Noto Sans KR", sans-serif; line-height: 1.55; }

.prediction-report {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.prediction-head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--radius-md);
	border: 1px solid rgba(148, 163, 184, 0.1);
	background: var(--glass);
	backdrop-filter: blur(8px);
}
.prediction-head.blue {
	border-color: rgba(56, 189, 248, 0.25);
	background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), transparent);
}
.prediction-head.red {
	border-color: rgba(239, 68, 68, 0.25);
	background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), transparent);
}
.prediction-head-label {
	font-size: 0.74rem;
	font-weight: 700;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.8px;
}
.prediction-head-team {
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--text);
}
.prediction-head-prob {
	margin-left: auto;
	font-size: 0.9rem;
	font-weight: 800;
	color: var(--accent);
}

.prediction-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.prediction-team {
	padding: 12px;
	border-radius: var(--radius-md);
	border: 1px solid var(--glass-border);
	background: var(--glass);
	backdrop-filter: blur(4px);
}
.prediction-team.blue { border-color: rgba(56, 189, 248, 0.2); }
.prediction-team.red { border-color: rgba(239, 68, 68, 0.2); }
.prediction-team-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.82rem;
	font-weight: 800;
	color: var(--text);
	margin-bottom: 8px;
	padding-bottom: 5px;
	border-bottom: 1px solid var(--glass-border);
}
.prediction-team-title .total {
	font-size: 0.92rem;
	color: var(--text);
}
.prediction-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 0.8rem;
	line-height: 1.45;
	padding: 3px 0;
	color: var(--text-secondary);
}
.prediction-row span:last-child {
	text-align: right;
	font-weight: 700;
	color: var(--text);
}
.prediction-row em {
	font-style: normal;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--text-secondary);
	margin-left: 4px;
}

.prediction-banner {
	padding: 10px 12px;
	border-radius: var(--radius-md);
	font-weight: 800;
	font-size: 0.88rem;
	letter-spacing: 0.2px;
	border: 1px solid var(--glass-border);
	background: var(--glass);
	backdrop-filter: blur(8px);
	color: var(--text);
}
.prediction-banner.blue {
	border-color: rgba(56, 189, 248, 0.3);
	background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), transparent);
}
.prediction-banner.red {
	border-color: rgba(239, 68, 68, 0.3);
	background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), transparent);
}

@media (max-width: 768px) {
	.prediction-grid {
		grid-template-columns: 1fr;
	}
}
/* ── Hero/Map Select ── */
.hero-select-list { display: flex; flex-direction: column; gap: 12px; }
.hero-select-section { margin-bottom: 0; }
.hero-select-title { font-weight: 700; color: var(--text-secondary); margin: 4px 0 8px; }
.hero-select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.hero-select-btn {
	border: 1px solid var(--glass-border);
	background: var(--glass);
	backdrop-filter: blur(4px);
	color: var(--text);
	font-size: 0.76rem;
	padding: 6px;
	border-radius: var(--radius-md);
	cursor: pointer;
	text-align: center;
	transition: all var(--transition-spring);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.hero-select-icon {
	width: 80px;
	height: 80px;
	object-fit: contain;
	border-radius: 8px;
	background: rgba(8, 10, 14, 0.5);
	border: 1px solid var(--glass-border);
	padding: 3px;
	transition: transform var(--transition-spring);
}
.hero-select-label { line-height: 1.1; }
.hero-select-btn:hover {
	border-color: var(--border-hover);
	color: #fff;
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(56, 189, 248, 0.08);
}
.hero-select-btn:hover .hero-select-icon { transform: scale(1.05); }
.hero-select-btn.active {
	background: linear-gradient(135deg, var(--accent), #3b82f6);
	color: #0f172a;
	font-weight: 700;
	border-color: transparent;
	box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}

.map-select-list { display: flex; flex-direction: column; gap: 12px; }
.map-select-section { margin-bottom: 0; }
.map-select-title { font-weight: 700; color: var(--text-secondary); margin: 4px 0 8px; }
.map-select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.map-select-btn {
	border: 1px solid var(--glass-border);
	background: var(--glass);
	backdrop-filter: blur(4px);
	color: var(--text);
	font-size: 0.7rem;
	padding: 6px;
	border-radius: var(--radius-md);
	cursor: pointer;
	text-align: center;
	transition: all var(--transition-spring);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.map-select-icon { width: 80px; height: 45px; object-fit: cover; border-radius: 6px; background: rgba(8, 10, 14, 0.5); border: 1px solid var(--glass-border); padding: 2px; }
.map-select-label { line-height: 1.1; word-wrap: break-word; }
.map-select-btn:hover {
	border-color: var(--border-hover);
	color: #fff;
	transform: translateY(-2px);
}

/* ── Hero Metrics ── */
.hero-metrics {
	background: rgba(8, 10, 14, 0.5);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-md);
	padding: 12px;
	height: 100%;
	backdrop-filter: blur(4px);
}
.hero-metric-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; padding: 5px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.06); }
.hero-metric-row:last-child { border-bottom: none; }
.hero-metric-label { color: var(--text-secondary); }
.hero-metric-value { font-weight: 700; }
.hero-metric-list { margin: 6px 0 0; padding-left: 14px; font-size: 0.8rem; color: var(--text-secondary); }
.hero-detail-image { width: 56px; height: 56px; object-fit: contain; border-radius: var(--radius-md); background: rgba(8, 10, 14, 0.5); border: 1px solid var(--glass-border); padding: 4px; display: none; }
.hero-detail-image-wrap { position: relative; flex-shrink: 0; }
.hero-detail-tier-badge {
	position: absolute;
	bottom: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 900;
	font-family: 'Exo 2', 'Inter', sans-serif;
	display: none;
	align-items: center;
	justify-content: center;
	color: #fff;
	line-height: 1;
	padding: 0 5px;
	text-shadow: 0 1px 3px rgba(0,0,0,0.5);
	border: 2px solid rgba(8, 10, 14, 0.9);
	z-index: 2;
}
#selected_map_icon { display: block; width: 88px; height: 56px; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--glass-border); background: rgba(8, 10, 14, 0.5); padding: 4px; }
.hero-detail-header { display: flex; align-items: center; gap: 12px; }
.hero-detail-title { display: flex; flex-direction: column; }
.bg-purple { background-color: #7c3aed !important; }

/* ── Archetype Badge ── */
.hero-archetype-badge-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}
.archetype-tag {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	line-height: 1.4;
	white-space: nowrap;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.archetype-tag.dive   { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.archetype-tag.poke   { background: linear-gradient(135deg, #f59e0b, #d97706); }
.archetype-tag.rush   { background: linear-gradient(135deg, #ef4444, #dc2626); }
.archetype-tag.other  { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.archetype-hover-popup {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 100;
	min-width: 240px;
	max-width: 320px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(10, 14, 20, 0.95);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(56, 189, 248, 0.18);
	box-shadow: 0 8px 24px rgba(0,0,0,0.5);
	color: #cfd8df;
	font-size: 12px;
}
.hero-archetype-badge-wrap:hover .archetype-hover-popup {
	display: block;
}
.archetype-hover-title {
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 8px;
	color: #e2e8f0;
}
.archetype-hover-bar-wrap {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.archetype-hover-row {
	display: flex;
	align-items: center;
	gap: 6px;
}
.archetype-hover-label {
	width: 50px;
	font-size: 11px;
	font-weight: 600;
	text-align: right;
	flex-shrink: 0;
	color: #94a3b8;
}
.archetype-hover-bar-bg {
	flex: 1;
	height: 14px;
	background: rgba(255,255,255,0.08);
	border-radius: 4px;
	overflow: hidden;
	position: relative;
}
.archetype-hover-bar-fill {
	height: 100%;
	border-radius: 4px;
	transition: width 0.3s ease;
}
.archetype-hover-bar-fill.dive { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.archetype-hover-bar-fill.poke { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.archetype-hover-bar-fill.rush { background: linear-gradient(90deg, #ef4444, #f87171); }
.archetype-hover-bar-fill.other { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.archetype-hover-val {
	width: 38px;
	font-size: 11px;
	text-align: right;
	flex-shrink: 0;
	font-weight: 600;
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.archetype-hover-method {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── 유사 영웅 호버 아케타입 팝업 ── */
.similar-archetype-popup {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 200;
	min-width: 200px;
	max-width: 280px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(10, 14, 20, 0.95);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(56, 189, 248, 0.18);
	box-shadow: 0 8px 24px rgba(0,0,0,0.5);
	color: #cfd8df;
	font-size: 12px;
	pointer-events: none;
	white-space: normal;
}
.similar-hero-item:hover .similar-archetype-popup {
	display: block;
}
.archetype-method-title {
	font-size: 11px;
	font-weight: 700;
	color: #94a3b8;
	margin-bottom: 4px;
}
.archetype-method-body {
	font-size: 10.5px;
	line-height: 1.5;
	color: #8899a6;
}
.archetype-metric {
	color: #a5b4c3;
	font-weight: 600;
	font-size: 10px;
	background: rgba(255,255,255,0.06);
	padding: 1px 4px;
	border-radius: 3px;
	white-space: nowrap;
}

/* ── Hero Modal ── */
#heroModal .modal-content {
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-xl);
	background: rgba(10, 14, 20, 0.92);
	backdrop-filter: blur(32px);
	-webkit-backdrop-filter: blur(32px);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 1px rgba(56, 189, 248, 0.1);
}
#heroModal .modal-header,
#heroModal .modal-footer {
	border-color: var(--glass-border);
	background: rgba(15, 23, 42, 0.3);
}
#heroModal .modal-title {
	font-weight: 800;
	letter-spacing: 0.2px;
	color: var(--text);
}
#heroModal .modal-body {
	padding: 16px 18px;
}
#heroModalSubtitle {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(56, 189, 248, 0.08);
	border: 1px solid rgba(56, 189, 248, 0.2);
	color: var(--accent) !important;
	font-weight: 600;
}
#heroModalTrend {
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-md);
	padding: 4px;
	background: rgba(8, 10, 14, 0.6);
}
#heroModalScores {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.hero-modal-score-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: var(--radius-md);
	border: 1px solid var(--glass-border);
	background: var(--glass);
	backdrop-filter: blur(4px);
	min-width: 150px;
}
.hero-modal-score-chip .label {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--text-secondary);
}
.hero-modal-score-chip .value {
	margin-left: auto;
	font-weight: 800;
	font-size: 0.85rem;
}
.hero-modal-score-chip .value.positive { color: var(--accent); }
.hero-modal-score-chip .value.negative { color: #f87171; }
.hero-modal-score-chip .value.map { color: var(--accent-violet); }

.hero-modal-table {
	font-size: 0.86rem;
	color: var(--text);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border-radius: var(--radius-md);
	border: 1px solid var(--glass-border);
	background: var(--glass);
}
.hero-modal-table thead th {
	background: rgba(56, 189, 248, 0.08);
	color: var(--text);
	border-bottom: 1px solid var(--glass-border);
	font-weight: 700;
	padding-top: 8px;
	padding-bottom: 8px;
}
.hero-modal-table td {
	border-color: var(--glass-border);
	background: transparent;
}
.hero-modal-table .table-active,
.hero-modal-table .table-active > td {
	background: rgba(56, 189, 248, 0.08);
	color: var(--text);
	border-color: rgba(56, 189, 248, 0.15);
}

.hero-modal-empty {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 210px;
	border-radius: var(--radius-md);
	border: 1px dashed rgba(148, 163, 184, 0.15);
	background: var(--glass);
	color: var(--text-secondary);
	font-size: 0.9rem;
	font-weight: 700;
}

@media (min-width: 992px) {
	.map-filter-panel {
		display: flex;
		flex-direction: column;
	}
	.map-filter-panel .map-list-flex {
		flex: 1 1 auto;
		overflow: auto;
		min-height: 120px;
	}
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.sidebar { height: auto; position: relative; }
	.sidebar-content { gap: 10px; }
	
	.hero-detail-icon {
		width: 36px;
		height: 36px;
	}
	.hero-detail-name {
		font-size: 0.8rem;
	}
	.hero-detail-stats {
		font-size: 0.65rem;
		padding: 2px 4px;
	}
}

@media (max-width: 576px) {
	.hero-detail-btn {
		padding: 8px 4px;
		gap: 6px;
	}
	.hero-detail-icon {
		width: 32px;
		height: 32px;
	}
	.hero-detail-name {
		font-size: 0.75rem;
	}
	.separator-text {
		font-size: 1rem;
		letter-spacing: 2px;
	}
}

/* ── Similar Hero Hover ── */
.similar-hero-item {
	transition: all var(--transition-base);
	padding: 2px 6px;
	border-radius: 6px;
}
.similar-hero-item:hover {
	background: rgba(56, 189, 248, 0.1);
	transform: scale(1.05);
}

/* ── Counter Info ── */
.counter-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1.5px solid rgba(56, 189, 248, 0.35);
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	font-style: normal;
	cursor: help;
	position: relative;
	line-height: 1;
	transition: all var(--transition-base);
}
.counter-info-icon:hover {
	border-color: rgba(56, 189, 248, 0.7);
	box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.counter-info-tooltip {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	right: -10px;
	width: 320px;
	padding: 16px;
	background: rgba(10, 14, 20, 0.98);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg), 0 0 1px rgba(56, 189, 248, 0.15);
	z-index: 1060;
	pointer-events: none;
	font-size: 0.72rem;
	line-height: 1.45;
	color: var(--text-secondary);
	text-align: left;
	white-space: normal;
}
.counter-info-tooltip::before {
	content: '';
	position: absolute;
	top: -6px;
	right: 14px;
	width: 10px;
	height: 10px;
	background: rgba(10, 14, 20, 0.95);
	border-top: 1px solid var(--glass-border);
	border-left: 1px solid var(--glass-border);
	transform: rotate(45deg);
}
.counter-info-tooltip.arrow-left::before {
	right: auto;
	left: 18px;
}
.counter-info-icon:hover .counter-info-tooltip {
	display: block;
	animation: tooltipFadeIn 0.2s ease-out;
}
@keyframes tooltipFadeIn {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}
.counter-info-title {
	font-size: 0.78rem;
	font-weight: 800;
	color: var(--text);
	letter-spacing: 0.3px;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--glass-border);
}
.counter-info-steps {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 10px;
}
.counter-info-step {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.counter-info-step .step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	min-width: 18px;
	border-radius: 50%;
	background: rgba(56, 189, 248, 0.1);
	border: 1px solid rgba(56, 189, 248, 0.3);
	color: var(--accent);
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1;
	margin-top: 1px;
}
.counter-info-axis {
	padding-top: 8px;
	border-top: 1px solid var(--glass-border);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.counter-info-axis .axis-label {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 4px;
	background: rgba(56, 189, 248, 0.08);
	border: 1px solid rgba(56, 189, 248, 0.2);
	color: var(--accent);
	font-weight: 700;
	font-size: 0.72rem;
	margin-right: 4px;
}

/* ── Counter Info — Metrics List ── */
.counter-info-metrics {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}
.counter-info-metric {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 8px;
	align-items: baseline;
	padding: 6px 8px;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--glass-border);
}
.counter-info-metric .metric-label {
	font-weight: 800;
	font-size: 0.78rem;
	color: var(--accent);
	white-space: nowrap;
}
.counter-info-metric .metric-desc {
	font-size: 0.72rem;
	color: var(--text-secondary);
	line-height: 1.4;
}
.counter-info-metric .metric-weight {
	font-weight: 800;
	font-size: 0.76rem;
	color: var(--text);
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(56, 189, 248, 0.1);
	border: 1px solid rgba(56, 189, 248, 0.25);
	white-space: nowrap;
}
.counter-info-method {
	padding-top: 8px;
	border-top: 1px solid var(--glass-border);
}
.counter-info-method .method-title {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}
.counter-info-method .method-desc {
	font-size: 0.74rem;
	color: var(--text-secondary);
	line-height: 1.5;
}

/* ── Formula Styles ── */
.counter-info-formula {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.formula-block {
	padding: 6px 10px;
	border-radius: var(--radius-sm);
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid var(--glass-border);
}
.formula-block .katex { color: var(--text); font-size: 0.9rem; }
.formula-block .katex-display { margin: 4px 0; }
.formula-main {
	font-family: 'Georgia', 'Times New Roman', serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--text);
	text-align: center;
	padding: 4px 0;
	letter-spacing: 0.5px;
}
.formula-label {
	font-size: 0.64rem;
	font-weight: 700;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 3px;
}
.formula-eq {
	font-family: 'Georgia', 'Times New Roman', serif;
	font-size: 0.82rem;
	color: var(--text);
	letter-spacing: 0.3px;
}
.formula-note {
	font-size: 0.64rem;
	color: var(--text-secondary);
	margin-top: 2px;
}
.formula-where {
	font-family: 'Georgia', 'Times New Roman', serif;
	font-size: 0.72rem;
	font-style: italic;
	color: var(--text-secondary);
	margin-bottom: 4px;
}
.formula-vars {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 0.76rem;
	color: var(--text-secondary);
	padding-left: 8px;
	border-left: 2px solid rgba(56, 189, 248, 0.2);
}
.formula-var {
	font-family: 'Georgia', 'Times New Roman', serif;
	font-weight: 700;
	font-style: italic;
	color: var(--accent);
	margin-right: 2px;
}

/* ── Info Content ── */
.counter-info-content {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 0.68rem;
	line-height: 1.45;
	color: var(--text);
}
.counter-info-item {
	padding: 8px 10px;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--glass-border);
}
.counter-info-item .item-key {
	display: inline-block;
	margin-bottom: 2px;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.3px;
	color: var(--accent);
}
.counter-info-item .item-desc {
	color: var(--text-secondary);
}
.counter-info-item.item-note {
	border-color: rgba(148, 163, 184, 0.12);
	background: rgba(148, 163, 184, 0.03);
}
.counter-info-item.item-note .item-key {
	color: var(--text-secondary);
}
.counter-info-item.item-note .item-desc {
	color: var(--text-secondary);
}

/* ── Map Preview ── */
.team-preview-icons-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.selected-map-img-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
}
.selected-map-img-wrapper img {
	width: 480px;
	height: 270px;
	object-fit: cover;
	border-radius: var(--radius-lg);
	border: 1px solid rgba(56, 189, 248, 0.2);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.05);
	transition: all var(--transition-base);
}
.selected-map-img-wrapper img:hover {
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.08);
}
.selected-map-info {
	text-align: center;
	margin-top: 8px;
}
.selected-map-info .selected-map-name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text);
	text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.selected-map-info .selected-map-mode {
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--text-secondary);
	margin-top: 2px;
}
.selected-map-placeholder {
	font-style: italic;
	color: var(--text-secondary);
}

/* ── Team Hero Preview ── */
.team-hero-preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 56px;
	padding: 4px;
	align-self: center;
}
.team-hero-preview .hero-preview-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid transparent;
	opacity: 0;
	transform: translateY(20px);
	transition: none;
}
.team-hero-preview-blue .hero-preview-icon {
	border-color: rgba(56, 189, 248, 0.5);
	box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}
.team-hero-preview-red .hero-preview-icon {
	border-color: rgba(239, 68, 68, 0.5);
	box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}
.team-hero-preview .hero-preview-icon.animate-in {
	animation: heroSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes heroSlideIn {
	0% {
		opacity: 0;
		transform: translateY(20px) scale(0.7);
	}
	60% {
		opacity: 1;
		transform: translateY(-4px) scale(1.05);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ═══════════════════════════════════════════
   Topbar & Tab Navigation
   ═══════════════════════════════════════════ */
.topbar {
	background: rgba(15, 23, 42, 0.85);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-lg);
	padding: 10px 18px !important;
	box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.03);
	margin-bottom: 20px !important;
}

#mainTabs {
	gap: 4px;
	background: rgba(0, 0, 0, 0.2);
	border-radius: var(--radius-md);
	padding: 4px;
}

#mainTabs .nav-link {
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.3px;
	padding: 8px 18px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	transition: all var(--transition-base);
	position: relative;
	background: transparent;
}

#mainTabs .nav-link:hover:not(.active):not(.disabled) {
	color: var(--text);
	background: rgba(56, 189, 248, 0.06);
	border-color: rgba(56, 189, 248, 0.1);
}

#mainTabs .nav-link.active {
	background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(59, 130, 246, 0.1));
	color: var(--accent);
	border-color: rgba(56, 189, 248, 0.2);
	box-shadow: 0 0 16px rgba(56, 189, 248, 0.08), inset 0 1px 0 rgba(56, 189, 248, 0.1);
	font-weight: 700;
}

#mainTabs .nav-link.disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ── Form Switch (dark mode) ── */
.form-check-input[type="checkbox"] {
	background-color: rgba(148, 163, 184, 0.15);
	border-color: rgba(148, 163, 184, 0.2);
}
.form-check-input:checked {
	background-color: var(--accent) !important;
	border-color: var(--accent) !important;
}
.form-check-input:focus {
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
	border-color: var(--accent);
}

/* ── Outline Secondary ── */
.btn-outline-secondary {
	color: var(--text-secondary);
	border-color: rgba(148, 163, 184, 0.2);
}
.btn-outline-secondary:hover {
	background: rgba(148, 163, 184, 0.1);
	color: var(--text);
	border-color: rgba(148, 163, 184, 0.3);
}

/* ── API Status ── */
#api_status_indicator {
	border-radius: var(--radius-sm) !important;
	backdrop-filter: blur(4px);
}

/* ── Section spacing ── */
.tab-pane .card + .card,
.tab-pane .row + .card {
	margin-top: 4px;
}

/* ── Loading shimmer ── */
@keyframes shimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}
.loading-shimmer {
	background: linear-gradient(90deg, transparent 30%, rgba(56, 189, 248, 0.04) 50%, transparent 70%);
	background-size: 200% 100%;
	animation: shimmer 2s infinite;
}

/* ── Subtle glow for active elements ── */
@keyframes pulseGlow {
	0%, 100% { box-shadow: 0 0 8px rgba(56, 189, 248, 0.1); }
	50% { box-shadow: 0 0 16px rgba(56, 189, 248, 0.2); }
}

/* ==============================================================================
   MOBILE RESPONSIVE
   ============================================================================== */

/* ── Tables: horizontal scroll wrapper ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── 768px: Tablet ── */
@media (max-width: 768px) {
	/* Global spacing */
	main.col-12 { padding: 8px !important; }
	.topbar { padding: 8px 10px !important; flex-direction: column; align-items: stretch !important; gap: 8px !important; }

	/* Navigation: horizontal scroll */
	#mainTabs {
		width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		flex-wrap: nowrap !important;
		scrollbar-width: none;
		justify-content: flex-start;
		padding: 3px;
	}
	#mainTabs::-webkit-scrollbar { display: none; }
	#mainTabs .nav-link {
		font-size: 0.78rem;
		padding: 6px 12px;
		white-space: nowrap;
	}

	/* Topbar right controls */
	.topbar > .d-flex:last-child {
		justify-content: flex-end;
		flex-wrap: wrap;
		gap: 6px !important;
	}
	#global_status_text { max-width: 200px !important; font-size: 0.7rem; }

	/* tier dropdown */
	.tier-dropdown-menu { width: 260px !important; }
	.tier-dropdown-menu .tier-plot-wrap { display: none; }

	/* Home banner */
	.home-banner { min-height: 100px; }
	.home-banner-content { padding: 16px; }
	.home-banner-title { font-size: 1.2rem; }

	/* Home stat cards */
	.home-stat-card { padding: 10px 12px; gap: 8px; }
	.home-stat-icon { font-size: 1.2rem; }
	.home-stat-value { font-size: 0.95rem; }

	/* Meta card */
	.home-stat-meta .meta-bar-label { width: 50px; font-size: 0.62rem; }

	/* Home sections */
	.home-section-header { padding: 10px 12px; }
	.home-section-title { font-size: 0.88rem; }
	.home-section-desc { font-size: 0.68rem; }
	.home-section-controls { flex-wrap: wrap; gap: 6px; }

	/* Role tabs */
	.home-role-tabs { gap: 4px; flex-wrap: wrap; }
	.home-role-tab { font-size: 0.72rem; padding: 4px 10px; }

	/* Hero tier list items */
	.home-hero-item { padding: 6px 8px; gap: 8px; }
	.home-hero-icon { width: 28px; height: 28px; }
	.home-hero-main .home-hero-name { font-size: 0.78rem; }
	.tier-badge { font-size: 0.6rem; padding: 2px 6px; }

	/* Detail banner compact */
	.detail-banner { margin-bottom: 12px; }

	/* Filter panels */
	.filter-panel { padding: 10px 12px; }

	/* Toggle sections body */
	.tab-section-body { padding: 10px 12px; }

	/* Hero/Map detail buttons – stack 2 per row */
	.hero-detail-buttons { gap: 6px; }
	.hero-detail-btn {
		flex: 1 1 calc(50% - 6px);
		min-width: 120px;
		font-size: 0.76rem;
		padding: 8px 6px;
	}
	.hero-detail-icon { width: 32px; height: 32px; }
	.hero-detail-name { font-size: 0.72rem; }
	.hero-detail-metric { font-size: 0.68rem; }

	/* Team setup banner compact */
	.team-setup-banner { min-height: auto; }
	.team-setup-content { padding: 16px; }
	.team-setup-title { font-size: 1.1rem; }
	.team-setup-desc { font-size: 0.74rem; }

	/* Team cards */
	.team-header { padding: 8px 6px; font-size: 0.78rem; }
	.team-body { padding: 8px; }
	.role-block { padding: 6px; margin-bottom: 6px; }
	.role-title { font-size: 0.68rem; }
	.hero-chip { font-size: 0.72rem; padding: 3px 6px; gap: 4px; }
	.hero-chip-icon { width: 22px; height: 22px; }
	.hero-chip-label { font-size: 0.7rem; }

	/* Team action bar */
	.team-action-btn { font-size: 0.72rem; padding: 6px 10px; }

	/* VS block */
	.vs-text { font-size: 2rem; }
	.score-diff { font-size: 0.82rem; }

	/* Sidebar (hero/map detail) */
	.sidebar { height: auto; position: relative; }

	/* Selected map image */
	.selected-map-img-wrapper { max-width: 100%; height: auto; }
	.selected-map-img-wrapper img { max-width: 100%; height: auto; }

	/* Plotly charts squeeze */
	.home-chart-block { min-height: 200px; }
	.js-plotly-plot { max-width: 100% !important; }

	/* Rec grid */
	.rec-grid { grid-template-columns: 1fr; }

	/* Map list (hero/map tab) */
	.map-list-flex { max-height: 200px; }
}

/* ── 576px: Small mobile ── */
@media (max-width: 576px) {
	main.col-12 { padding: 4px !important; }

	/* Topbar ultra compact */
	.topbar { padding: 6px 8px !important; border-radius: 10px; }
	#mainTabs .nav-link {
		font-size: 0.72rem;
		padding: 5px 8px;
	}

	/* Home stats: 2 columns */
	.home-stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }

	/* Home dual grid */
	.home-dual-grid { gap: 10px; }

	/* Home banner */
	.home-banner-content { padding: 12px; gap: 8px; }
	.home-banner-title { font-size: 1rem; }
	.home-banner-desc { font-size: 0.72rem; }
	.home-spotlight-heroes { gap: 4px; }
	.home-spotlight-hero-img { width: 32px; height: 32px; }

	/* Home section */
	.home-section-header { padding: 8px 10px; }
	.home-section-title { font-size: 0.82rem; }
	.home-section-icon { font-size: 1rem; width: 28px; height: 28px; }

	/* Hero tier items */
	.home-hero-item { padding: 5px 6px; gap: 6px; }
	.home-hero-icon { width: 24px; height: 24px; }
	.home-hero-rank { font-size: 0.64rem; width: 18px; }
	.home-hero-main .home-hero-name { font-size: 0.72rem; }
	.home-hero-main .home-hero-meta { font-size: 0.58rem; }
	.tier-badge { font-size: 0.56rem; padding: 1px 5px; }

	/* Detail banner */
	.detail-banner { border-radius: 12px; }
	.detail-banner-content { padding: 10px 12px; gap: 10px; }
	.detail-back-btn { font-size: 0.72rem; padding: 4px 10px; }
	.detail-banner .hero-detail-header h2 { font-size: 1rem; }
	.detail-banner .hero-detail-image { width: 42px; height: 42px; }

	/* Hero/Map detail buttons – stack fully */
	.hero-detail-buttons { flex-direction: column; }
	.hero-detail-btn {
		flex: 1 1 100%;
		min-width: 0;
		font-size: 0.74rem;
		padding: 8px 8px;
	}
	.hero-detail-icon { width: 36px; height: 36px; }

	/* Team setup */
	.team-setup-content { padding: 12px; gap: 12px; }
	.team-setup-title { font-size: 1rem; }
	.team-setup-label { font-size: 0.6rem; }
	.team-setup-input { font-size: 0.76rem; padding: 5px 8px; }
	.team-setup-right { flex-direction: column; gap: 8px; width: 100%; }
	.team-setup-field { width: 100%; }
	.team-setup-field .team-setup-input { width: 100%; }

	/* Team action bar */
	.team-action-bar { padding: 8px 10px; gap: 8px; }
	.team-action-left,
	.team-action-right,
	.team-action-center { width: 100%; justify-content: center; }
	.team-action-btn { flex: 1; font-size: 0.7rem; padding: 6px 8px; text-align: center; }

	/* Team VS grid */
	.team-vs-center { padding: 6px 0; }
	.vs-text { font-size: 1.5rem; }
	.score-diff { font-size: 0.76rem; padding: 2px 8px; }

	/* Team card roles */
	.team-header { padding: 6px; font-size: 0.72rem; letter-spacing: 0.4px; }
	.team-body { padding: 6px; }
	.role-block { padding: 5px; margin-bottom: 4px; }
	.role-title { font-size: 0.64rem; margin-bottom: 4px; padding-bottom: 3px; }
	.hero-chip { font-size: 0.66rem; padding: 2px 4px; gap: 3px; }
	.hero-chip-icon { width: 18px; height: 18px; border-radius: 4px; }
	.hero-chip-label { font-size: 0.64rem; }
	.rec-badge { width: 14px; height: 14px; min-width: 14px; font-size: 0.56rem; top: -4px; right: -4px; }

	/* My role select in blue team */
	#my_role_select { font-size: 0.66rem !important; padding: 2px 16px 2px 4px !important; }
	#recommend_hero_btn { font-size: 0.66rem !important; padding: 3px 8px !important; }

	/* Filter panel */
	.filter-panel { padding: 8px 10px; }

	/* Charts: reduce height */
	.home-chart-block { min-height: 180px; }

	/* Prediction grid */
	.prediction-grid { gap: 8px; }

	/* Table font */
	.table-wrap table { font-size: 0.72rem; }
	.table-wrap th, .table-wrap td { padding: 4px 5px; }

	/* Modal */
	.hero-modal-table { font-size: 0.72rem; }

	/* Map list */
	.map-list-flex { max-height: 160px; }

	/* Selected map preview */
	.selected-map-img-wrapper { max-width: 100%; height: auto; min-height: 100px; }

	/* Tier dropdown full width */
	.tier-dropdown-menu { left: -60px !important; width: calc(100vw - 24px) !important; }

	/* Result card */
	.result-card { font-size: 0.78rem; }

	/* Separator in sim results */
	.separator-text { font-size: 0.9rem; }

	/* Sidebar compact */
	.sidebar-hero-icon { width: 36px; height: 36px; }
	.sidebar-hero-name { font-size: 0.8rem; }
	.sidebar-stat-value { font-size: 0.82rem; }
}

/* ── 400px: Extra small mobile ── */
@media (max-width: 400px) {
	.home-stats-row { grid-template-columns: 1fr; gap: 6px; }
	.home-stat-card { padding: 8px 10px; }
	.home-stat-value { font-size: 0.88rem; }
	.home-stat-label { font-size: 0.64rem; }

	#mainTabs .nav-link { font-size: 0.68rem; padding: 4px 7px; }

	.home-banner-title { font-size: 0.9rem; }
	.team-setup-title { font-size: 0.9rem; }

	/* Team preview row stacked */
	.team-preview-icons-row { flex-direction: column; gap: 6px; align-items: center; }
	.team-hero-preview { flex-direction: row; }

	/* Detail banner icon smaller */
	.detail-banner .hero-detail-image { width: 36px; height: 36px; }
	.detail-banner .hero-detail-header h2 { font-size: 0.88rem; }
}

/* Synergy badges (next to similar heroes) */
#hero_synergy_summary {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 3px;
	margin-left: 8px;
}

#hero_synergy_summary .synergy-badge:hover {
	filter: brightness(1.3);
	transform: translateY(-1px);
	transition: all 0.15s ease;
}

/* ═══════════════════════════════════════════
   Hero Chart Tabs (trend / counter)
   ═══════════════════════════════════════════ */
/* ========= Hero 1x2 Grid Layout ========= */
.hero-grid-1x2 {
	display: grid;
	grid-template-columns: 6.5fr 3.5fr;
	grid-template-rows: minmax(460px, auto);
	gap: 12px;
	margin-bottom: 16px;
}

/* ── Inner tab buttons ── */
.hero-inner-tabs {
	display: flex;
	gap: 2px;
	flex-shrink: 0;
}
.hero-inner-tab {
	all: unset;
	cursor: pointer;
	font-size: 0.76rem;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 6px;
	color: var(--text-secondary);
	transition: all var(--transition-fast);
	white-space: nowrap;
}
.hero-inner-tab:hover {
	color: var(--text);
	background: rgba(56, 189, 248, 0.08);
}
.hero-inner-tab.active {
	color: var(--accent);
	background: rgba(56, 189, 248, 0.12);
}

/* ── Tab-specific header extras ── */
.hero-tab-extra {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	min-width: 0;
}

/* ── Tab panels ── */
.hero-tab-panel {
	display: none;
	flex: 1 1 0;
	min-height: 0;
	overflow: hidden;
}
.hero-tab-panel.active {
	display: flex;
	flex-direction: column;
}

.hero-grid-cell {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(148,163,184,0.08);
	background: rgba(15,23,42,0.6);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.02);
	transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.hero-grid-cell:hover {
	border-color: rgba(148, 163, 184, 0.14);
}

.hero-grid-cell-header {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 16px;
	font-size: 0.82rem;
	font-weight: 700;
	color: #e2e8f0;
	background: rgba(15, 23, 42, 0.4) !important;
	border-bottom: 1px solid rgba(148, 163, 184, 0.06);
	flex-shrink: 0;
	white-space: nowrap;
	min-height: 42px;
}

.hero-grid-cell-body {
	flex: 1 1 0;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 8px;
}

/* Right column (map tier): content determines height, no scroll */
.hero-grid-1x2 .hero-grid-cell:last-child {
	overflow: visible;
}
.hero-grid-1x2 .hero-grid-cell:last-child .hero-grid-cell-body {
	flex: 0 0 auto;
	overflow: visible;
}

@media (max-width: 900px) {
	.hero-grid-1x2 {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr 380px;
		height: auto;
		min-height: auto;
	}
}

/* ========= Counter Vertical Bar Chart (유리 / 불리) ========= */
.counter-vbar-col {
	flex: 1 1 0;
	min-width: 32px;
	max-width: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	cursor: pointer;
	border-radius: 6px;
	padding: 3px 2px 2px;
	transition: all var(--transition-fast);
	position: relative;
}
.counter-vbar-col:hover {
	background: rgba(56, 189, 248, 0.08);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.counter-vbar-col:hover .synergy-vbar-icon {
	box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}
.counter-vbar-col:hover .synergy-vbar-name {
	color: #e2e8f0;
}
.counter-vbar-sub-label {
	font-weight: 400;
	color: #64748b;
	font-size: 9px;
	margin-left: 6px;
}

/* 카운터 바 영역: 스크롤 없이 축소 */
#plot_hero_counter_scatter .synergy-vbar-row-wrap {
	overflow-x: hidden;
	flex-wrap: nowrap;
}
#plot_hero_counter_scatter .synergy-vbar-col,
#plot_hero_counter_scatter .counter-vbar-col {
	min-width: 0;
	flex: 1 1 0;
}

/* ========= Synergy Vertical Bar Chart (위=추천 / 아래=비추천) ========= */
.synergy-duo-container {
	padding: 2px 4px;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.synergy-vbar-section {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.synergy-vbar-section-label {
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px 1px;
	flex-shrink: 0;
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

.synergy-vbar-section-label.good {
	color: #4ade80;
}

.synergy-vbar-section-label.bad {
	color: #f87171;
}

.synergy-vbar-map-label {
	font-weight: 400;
	color: #64748b;
	margin-left: 6px;
	font-size: 9px;
}

.synergy-vbar-row-wrap {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	align-items: stretch;
	gap: 2px;
	padding: 2px 2px 0;
	overflow-x: auto;
	overflow-y: hidden;
}

.synergy-vbar-col {
	flex: 1 1 0;
	min-width: 28px;
	max-width: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	cursor: pointer;
	border-radius: 6px;
	padding: 3px 2px 2px;
	transition: all var(--transition-fast);
}

.synergy-vbar-col:hover {
	background: rgba(56, 189, 248, 0.08);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.synergy-vbar-col:hover .synergy-vbar-icon {
	box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}
.synergy-vbar-col:hover .synergy-vbar-name {
	color: #e2e8f0;
}

.synergy-vbar-val {
	font-size: 7px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.synergy-vbar-track {
	width: 10px;
	flex: 1 1 0;
	min-height: 8px;
	border-radius: 3px;
	background: rgba(255,255,255,0.04);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.synergy-vbar-fill {
	width: 100%;
	border-radius: 3px;
	transition: height 0.3s ease;
}

.synergy-vbar-icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid #888;
	flex-shrink: 0;
	object-fit: cover;
}

.synergy-vbar-fb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid #888;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 7px;
	font-weight: 700;
	color: #94a3b8;
	background: rgba(30, 41, 59, 0.6);
	flex-shrink: 0;
}

.synergy-vbar-name {
	font-size: 7px;
	font-weight: 600;
	color: #94a3b8;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 44px;
	line-height: 1;
	text-align: center;
}

.synergy-vbar-empty {
	font-size: 10px;
	color: #475569;
	padding: 4px 8px;
	font-style: italic;
}

.synergy-duo-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #64748b;
	font-size: 13px;
	padding: 40px 0;
}

/* ========= 역할별 뷰 (BY_ROLE) ========= */
.synergy-byrole-wrap {
	display: flex;
	width: 100%;
	height: 100%;
	gap: 0;
}

.synergy-byrole-col {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-right: 1px solid rgba(255,255,255,0.06);
}

.synergy-byrole-col:last-child {
	border-right: none;
}

.synergy-byrole-header {
	font-size: 11px;
	font-weight: 800;
	text-align: center;
	padding: 4px 0 3px;
	letter-spacing: 1px;
	flex-shrink: 0;
}