/* =============================================================================
   Stellar Top 400 — stellar.css
   Dark theme ranking table with stats strip, S1-S8 season columns, and tiers.
   ============================================================================= */

/* ── Container ── */
.inv-stellar {
	max-width: 1400px;
	margin: 0 auto;
	padding: 80px 16px 64px;
	position: relative;
}

/* ── Header ── */
.inv-stellar-header {
	text-align: center;
	margin-bottom: 32px;
}

.inv-stellar-title {
	font-family: 'Rajdhani', sans-serif;
	font-size: 2.5rem;
	font-weight: 700;
	color: #f59e0b;
	letter-spacing: 0.05em;
	margin: 0 0 8px;
}

.inv-stellar-subtitle {
	color: #6b7494;
	font-size: 0.9rem;
	margin: 0;
}

/* ── Explainer block ── */
.inv-stellar-explainer {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
	background: #0d1424;
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 12px;
	padding: 1.25rem 1.5rem;
	margin-bottom: 20px;
}

.inv-stellar-explainer__icon {
	font-size: 2rem;
	line-height: 1;
	flex-shrink: 0;
	margin-top: 2px;
}

.inv-stellar-explainer__body {
	flex: 1;
	min-width: 0;
}

.inv-stellar-explainer__title {
	font-family: 'Rajdhani', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: #f0f4ff;
	margin: 0 0 0.6rem;
}

.inv-stellar-explainer__text {
	font-size: 0.82rem;
	color: #9ca3b8;
	line-height: 1.6;
	margin: 0 0 0.5rem;
}

.inv-stellar-explainer__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0.75rem 0 0;
}

.inv-stellar-explainer__tag {
	font-size: 0.7rem;
	color: #3b82f6;
	border: 1px solid rgba(59,130,246,0.35);
	border-radius: 9999px;
	padding: 3px 10px;
	font-weight: 600;
}

/* ── Share bar (sticky) ── */
.inv-stellar-share-bar {
	position: sticky;
	top: 60px;
	z-index: 20;
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	margin-bottom: 24px;
	background: rgba(8, 13, 26, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid #1e293b;
	border-radius: 10px;
}

.inv-stellar-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #111827;
	border: 1px solid #1e293b;
	border-radius: 8px;
	color: #e5e7eb;
	font-size: 0.8rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s;
	white-space: nowrap;
}

.inv-stellar-share-btn:hover {
	border-color: #f59e0b;
	color: #f59e0b;
}

.inv-stellar-share-btn.is-success {
	border-color: #22c55e;
	color: #22c55e;
}

/* ── Controls row ── */
.inv-stellar-controls {
	display: flex;
	gap: 16px;
	align-items: flex-end;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.inv-stellar-search {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.inv-stellar-search label {
	font-size: 0.75rem;
	color: #6b7494;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
}

.inv-stellar-search-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #111827;
	border: 1px solid #1e293b;
	border-radius: 8px;
	padding: 0 12px;
	transition: border-color 0.2s;
}

.inv-stellar-search-wrap:focus-within {
	border-color: #f59e0b;
}

.inv-stellar-search-wrap svg {
	color: #6b7494;
	flex-shrink: 0;
}

.inv-stellar-search-wrap input {
	background: transparent;
	border: none;
	color: #e5e7eb;
	padding: 10px 0;
	font-size: 0.9rem;
	width: 160px;
	outline: none;
}

.inv-stellar-search-wrap input::placeholder {
	color: #4b5563;
}

/* ── Stats strip ── */
.inv-stellar-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 24px;
}

.inv-stellar-stat {
	background: #111827;
	border: 1px solid #1e293b;
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.inv-stellar-stat-value {
	font-family: 'Rajdhani', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	color: #f59e0b;
}

.inv-stellar-stat-value a {
	color: #f59e0b;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.inv-stellar-stat-label {
	font-size: 0.75rem;
	color: #6b7494;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ── Search results ── */
.inv-stellar-search-results {
	margin-bottom: 24px;
	background: #111827;
	border: 1px solid #1e293b;
	border-radius: 10px;
	padding: 20px;
	overflow-x: auto;
}

.inv-stellar-search-header {
	font-family: 'Rajdhani', sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: #f59e0b;
	margin-bottom: 12px;
}

.inv-stellar-no-results {
	color: #6b7494;
	font-size: 0.9rem;
}

/* ── Server group banner (matchmaking info) ── */
.inv-stellar-group-banner {
	background: rgba(245, 158, 11, 0.06);
	border: 1px solid rgba(245, 158, 11, 0.2);
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 16px;
}

.inv-stellar-group-banner__label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	color: #f59e0b;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 6px;
}

.inv-stellar-group-banner__text {
	font-size: 0.8rem;
	color: #c8cce8;
	margin-bottom: 8px;
}

.inv-stellar-group-banner__servers {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.inv-stellar-group-server {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	color: #f0f4ff;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.inv-stellar-group-server:hover {
	border-color: #f59e0b;
	color: #f59e0b;
}

/* ── Server share button in search results ── */
.inv-stellar-server-share {
	display: flex;
	margin-bottom: 12px;
}

.inv-server-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: transparent;
	border: 1px solid #f59e0b;
	border-radius: 6px;
	color: #f59e0b;
	font-size: 0.8rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.inv-server-share-btn:hover {
	background: rgba(245, 158, 11, 0.1);
}

.inv-server-share-btn.is-success {
	border-color: #22c55e;
	color: #22c55e;
}

/* ── Table ── */
.inv-stellar-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	position: relative;
}

.inv-stellar-table-wrap::after {
	content: 'weareinvictus210.com';
	position: absolute;
	bottom: 8px;
	right: 12px;
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	color: rgba(245, 158, 11, 0.12);
	pointer-events: none;
	user-select: none;
	letter-spacing: 0.03em;
}

.inv-stellar-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.inv-stellar-table thead th {
	background: #111827;
	color: #6b7494;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 12px 10px;
	text-align: left;
	border-bottom: 1px solid #1e293b;
	position: sticky;
	top: 0;
	z-index: 1;
	white-space: nowrap;
}

.inv-stellar-table tbody tr {
	border-bottom: 1px solid rgba(30, 41, 59, 0.5);
	transition: background 0.15s;
}

.inv-stellar-table tbody tr:hover {
	background: rgba(245, 158, 11, 0.04);
}

.inv-stellar-table td {
	padding: 10px 10px;
	color: #e5e7eb;
}

.inv-stellar-th-rank {
	width: 60px;
}

.inv-stellar-th-server {
	width: 70px;
}

.inv-stellar-th-season {
	width: 65px;
	text-align: right !important;
}

.inv-stellar-th-pts {
	width: 75px;
	text-align: right !important;
}

.inv-stellar-th-tier {
	width: 55px;
	text-align: center !important;
}

.inv-stellar-rank span {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 600;
	font-size: 0.75rem;
	color: #64748b;
}

.inv-stellar-rank-top3 {
	color: #94a3b8;
	font-size: 0.85rem;
	font-weight: 700;
}

.inv-stellar-rank-top10 {
	color: #64748b;
}

.inv-stellar-server {
	font-weight: 600;
	color: #93c5fd;
	white-space: nowrap;
}

/* ── Top rows visual hierarchy ── */
.inv-stellar-row-top3 td {
	font-size: 0.95rem;
}

.inv-stellar-row-top3 .inv-stellar-rank span {
	font-size: 0.9rem;
	color: #94a3b8;
}

.inv-stellar-row-top3 .inv-stellar-server {
	color: #f59e0b;
}

.inv-stellar-row-top3 .inv-stellar-total-pts {
	color: #f59e0b;
	font-size: 1rem;
}

/* Gold — Rank 1 */
.inv-stellar-row-rank-1 {
	background: linear-gradient(90deg, rgb(255 209 61 / 66%) 0%, rgba(245, 158, 11, 0.04) 100%);
	border-left: 3px solid #f59e0b;
}

/* Silver — Rank 2 */
.inv-stellar-row-rank-2 {
	background: linear-gradient(90deg, rgb(255 255 255 / 36%) 0%, rgba(148, 163, 184, 0.04) 100%);
	border-left: 3px solid #94a3b8;
}

/* Bronze — Rank 3 */
.inv-stellar-row-rank-3 {
	background: linear-gradient(90deg, rgb(181 136 91 / 48%) 0%, rgba(205, 127, 50, 0.04) 100%);
	border-left: 3px solid #cd7f32;
}

.inv-stellar-row-top6 .inv-stellar-rank span {
	color: #64748b;
	font-size: 0.8rem;
}

.inv-stellar-row-top6 .inv-stellar-server {
	color: #d4a35a;
}

/* ── Season points cells ── */
.inv-stellar-season-cell {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.inv-stellar-pts-val {
	color: #e5e7eb;
	font-size: 0.85rem;
}

.inv-stellar-pts-none {
	color: #374151;
	font-size: 0.85rem;
}

/* ── Season position badges ── */
.inv-stellar-medal,
.inv-stellar-pos {
	display: inline-block;
	font-size: 0.6rem;
	font-weight: 700;
	margin-right: 4px;
	vertical-align: middle;
	padding: 1px 4px;
	border-radius: 3px;
	line-height: 1.3;
}

.inv-stellar-medal-1 {
	color: #080d1a;
	background: #f59e0b;
}

.inv-stellar-medal-2 {
	color: #080d1a;
	background: #94a3b8;
}

.inv-stellar-medal-3 {
	color: #080d1a;
	background: #cd7f32;
}

.inv-stellar-pos {
	color: #6b7494;
	background: rgba(107, 116, 148, 0.15);
}

/* ── Total points ── */
.inv-stellar-total-pts {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	color: #e5e7eb;
	font-size: 0.95rem;
	text-align: right;
}

/* ── Tier badge ── */
.inv-stellar-tier-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 4px;
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	color: #080d1a;
	line-height: 1.4;
	text-align: center;
}

.inv-stellar-tier-cell {
	text-align: center;
}

/* ── Sortable headers ── */
.inv-stellar-sortable {
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	transition: color 0.15s;
}

.inv-stellar-sortable:hover {
	color: #e5e7eb;
}

.inv-stellar-sortable.is-active {
	color: #f59e0b;
}

.inv-sort-arrow {
	display: inline-block;
	font-size: 0.6rem;
	margin-left: 2px;
	opacity: 0.4;
	vertical-align: middle;
}

.inv-stellar-sortable.is-active .inv-sort-arrow {
	opacity: 1;
}

/* ── Search table variant ── */
.inv-stellar-table-search {
	margin-top: 0;
}

/* ── Branding banner ── */
.inv-stellar-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 20px;
	margin-top: 24px;
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(8, 13, 26, 0.9));
	border: 1px solid rgba(245, 158, 11, 0.2);
	border-radius: 8px;
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	user-select: none;
	-webkit-user-select: none;
}

.inv-stellar-brand-logo {
	color: #f59e0b;
	font-weight: 700;
}

.inv-stellar-brand-sep {
	color: #374151;
}

.inv-stellar-brand-url {
	color: #93c5fd;
}

.inv-stellar-brand-text {
	color: #6b7494;
}

/* ── Selection popover ── */
.inv-stellar-popover {
	position: absolute;
	z-index: 50;
	display: flex;
	gap: 4px;
	padding: 6px;
	background: #111827;
	border: 1px solid #f59e0b;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	animation: inv-popover-in 0.15s ease-out;
}

@keyframes inv-popover-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

.inv-popover-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 6px;
	color: #e5e7eb;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}

.inv-popover-btn:hover {
	color: #f59e0b;
	border-color: #f59e0b;
}

/* ── Infinite scroll sentinel ── */
.inv-stellar-sentinel {
	display: flex;
	justify-content: center;
	padding: 32px 0 16px;
}

.inv-stellar-spinner {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.78rem;
	color: #6b7494;
}

.inv-stellar-spinner svg {
	animation: inv-stellar-spin 1.5s linear infinite;
}

@keyframes inv-stellar-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* ── Empty state ── */
.inv-stellar-empty {
	text-align: center;
	padding: 48px 16px;
	color: #6b7494;
	font-size: 0.95rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.inv-stellar {
		padding: 20px 8px 48px;
	}

	.inv-stellar-title {
		font-size: 1.75rem;
	}

	.inv-stellar-stats {
		grid-template-columns: 1fr;
	}

	.inv-stellar-controls {
		flex-direction: column;
		align-items: stretch;
	}

	.inv-stellar-search-wrap input {
		width: 100%;
	}

	.inv-stellar-stat-value {
		font-size: 1.25rem;
	}

	.inv-stellar-table td,
	.inv-stellar-table thead th {
		padding: 8px 6px;
		font-size: 0.78rem;
	}

	.inv-stellar-pts-val,
	.inv-stellar-pts-none {
		font-size: 0.75rem;
	}

	.inv-stellar-th-season {
		width: 50px;
	}

	/* Share bar: icons only on mobile */
	.inv-share-label {
		display: none;
	}

	.inv-stellar-share-btn {
		padding: 8px 10px;
	}

	.inv-stellar-share-bar {
		gap: 6px;
		padding: 8px 10px;
	}

	/* Branding banner: stack on mobile */
	.inv-stellar-brand {
		flex-wrap: wrap;
		font-size: 0.75rem;
		gap: 6px;
		padding: 10px 14px;
	}

	.inv-stellar-brand-sep {
		display: none;
	}
}

/* =============================================================================
   Trophies — 1st Place Season Wins
   Size + glow scale with wins. No opacity.
   ============================================================================= */

.inv-trophy {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1px;
	width: 28px;
	margin-right: 4px;
	vertical-align: middle;
	line-height: 1;
}

.inv-trophy__count {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 800;
	line-height: 1;
}

/* No wins — invisible spacer */
.inv-trophy--empty {
	visibility: hidden;
}

/* 1-2 wins — small, bronze */
.inv-trophy--sm {
	font-size: 0.7rem;
}
.inv-trophy--sm .inv-trophy__count {
	font-size: 0.55rem;
	color: #cd7f32;
}

/* 3-4 wins — medium, silver-gold */
.inv-trophy--md {
	font-size: 0.85rem;
	filter: drop-shadow(0 0 2px rgba(212, 163, 90, 0.3));
}
.inv-trophy--md .inv-trophy__count {
	font-size: 0.65rem;
	color: #d4a35a;
}

/* 5-6 wins — large, gold glow */
.inv-trophy--lg {
	font-size: 1.05rem;
	filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.5));
}
.inv-trophy--lg .inv-trophy__count {
	font-size: 0.75rem;
	color: #fbbf24;
}

/* 7+ wins — extra large, amber shine animation */
.inv-trophy--xl {
	font-size: 1.25rem;
	filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.7));
	animation: inv-trophy-shine 2s ease-in-out infinite;
}
.inv-trophy--xl .inv-trophy__count {
	font-size: 0.85rem;
	color: #f59e0b;
	text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

@keyframes inv-trophy-shine {
	0%, 100% { filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.5)); }
	50%      { filter: drop-shadow(0 0 12px rgba(245, 158, 11, 1)); }
}

/* ── Matchmaking link banner ── */
.inv-stellar-mm-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 auto 1.5rem;
	max-width: 500px;
	padding: 10px 20px;
	background: rgba(245, 158, 11, 0.06);
	border: 1px solid rgba(245, 158, 11, 0.15);
	border-radius: 8px;
	color: rgba(200, 204, 232, 0.8);
	font-size: 0.78rem;
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s;
}

.inv-stellar-mm-link:hover {
	border-color: rgba(245, 158, 11, 0.35);
	background: rgba(245, 158, 11, 0.1);
	color: #f0f4ff;
}

.inv-stellar-mm-link strong {
	color: #f59e0b;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.inv-stellar-mm-link svg {
	color: #f59e0b;
	flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   HOW RANKINGS WORK — INFO PANEL
───────────────────────────────────────────────────────────── */
.inv-stellar-info-panel {
	margin-bottom: 1.25rem;
	background: rgba(59, 130, 246, 0.05);
	border: 1px solid rgba(59, 130, 246, 0.18);
	border-radius: 10px;
	overflow: hidden;
}

.inv-stellar-info-summary {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #93c5fd;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.inv-stellar-info-summary::-webkit-details-marker { display: none; }

.inv-stellar-info-summary::after {
	content: '▼';
	margin-left: auto;
	font-size: 0.6rem;
	color: #60a5fa;
	transition: transform 0.2s;
}

.inv-stellar-info-panel[open] .inv-stellar-info-summary::after {
	transform: rotate(180deg);
}

.inv-stellar-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	background: rgba(59,130,246,0.2);
	border-radius: 50%;
	font-size: 0.65rem;
	font-weight: 700;
	color: #93c5fd;
	flex-shrink: 0;
}

.inv-stellar-info-body {
	padding: 0 1rem 1rem;
}

.inv-stellar-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 0.75rem;
}

.inv-stellar-info-item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	background: rgba(255,255,255,0.025);
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 7px;
	padding: 0.6rem 0.8rem;
}

.inv-stellar-info-label {
	font-size: 0.72rem;
	font-weight: 700;
	color: #e5e7eb;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.inv-stellar-info-desc {
	font-size: 0.78rem;
	color: #9ca3af;
	line-height: 1.55;
}

.inv-stellar-info-tiers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 0.6rem;
	margin-top: 0.35rem;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
}

/* ── CTA button (shared with merge page) ─────────────────────────────────── */
.inv-merge-explainer__cta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1rem 0 0;
	flex-wrap: wrap;
}
.inv-merge-explainer__cta-text {
	font-size: 0.8rem;
	color: #6b7280;
}
.inv-merge-explainer__cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.9rem;
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #0c0f1e;
	font-size: 0.78rem;
	font-weight: 700;
	font-family: 'Rajdhani', sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 6px;
	border: 1px solid rgba(245,158,11,0.4);
	box-shadow: 0 0 10px rgba(245,158,11,0.2);
	transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
	white-space: nowrap;
}
.inv-merge-explainer__cta-btn:hover {
	background: linear-gradient(135deg, #fbbf24, #f59e0b);
	box-shadow: 0 0 18px rgba(245,158,11,0.4);
	transform: translateY(-1px);
	color: #0c0f1e;
	text-decoration: none;
}
.inv-merge-explainer__cta-btn:active {
	transform: translateY(0);
}

/* ── ERA Dynasty Rankings (v7.2.0) ─────────────────────────────────────────── */

/* Members column: smaller text, truncate on mobile */
.inv-stellar-th-members {
	min-width: 120px;
}
.inv-stellar-members {
	font-size: 0.75rem;
	color: #9ca3b8;
	white-space: normal;
	max-width: 180px;
}

/* ERA id cell */
.inv-stellar-era-id {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	color: #f59e0b;
	white-space: nowrap;
}

/* Expand button */
.inv-era-expand-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: rgba(245,158,11,0.12);
	border: 1px solid rgba(245,158,11,0.25);
	border-radius: 4px;
	color: #f59e0b;
	cursor: pointer;
	flex-shrink: 0;
	padding: 0;
	transition: background 0.15s, transform 0.2s;
}
.inv-era-expand-btn:hover {
	background: rgba(245,158,11,0.22);
}
.inv-stellar-era-row.is-expanded .inv-era-expand-btn svg {
	transform: rotate(180deg);
}

/* ERA rows: pointer cursor */
.inv-stellar-era-row[data-expandable] {
	cursor: pointer;
}
.inv-stellar-era-row[data-expandable]:hover td {
	background: rgba(255,255,255,0.03);
}

/* Detail expanded row */
.inv-stellar-detail-row td {
	padding: 0 !important;
	background: #070b18 !important;
	border-top: none !important;
}
.inv-stellar-detail-cell {
	padding: 0 !important;
}
.inv-stellar-detail {
	padding: 16px;
	border-bottom: 2px solid rgba(245,158,11,0.2);
}

/* Detail inner table */
.inv-stellar-detail-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.78rem;
}
.inv-stellar-detail-table th {
	padding: 6px 8px;
	text-align: center;
	color: #6b7494;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 1px solid rgba(255,255,255,0.07);
	white-space: nowrap;
}
.inv-stellar-detail-table th:first-child {
	text-align: left;
}
.inv-stellar-detail-table td {
	padding: 6px 8px;
	text-align: center;
	border-bottom: 1px solid rgba(255,255,255,0.04);
	color: #c9d1e0;
}
.inv-stellar-detail-table tr:last-child td {
	border-bottom: none;
}

.inv-stellar-detail-kingdom {
	text-align: left !important;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	color: #f59e0b;
	font-size: 0.9rem;
	white-space: nowrap;
}

.inv-stellar-detail-event {
	white-space: nowrap;
}

/* Loading row */
.inv-stellar-loading-row td {
	background: #070b18 !important;
	padding: 12px !important;
	text-align: center;
	color: #6b7494;
	font-size: 0.82rem;
}

/* ── Season Results section ─────────────────────────────────────────────── */
/* ── Season Results ─────────────────────────────────────────────────────── */
.inv-mm-results {
	background: linear-gradient(160deg, #0c1322 0%, #111827 100%);
	border: 1px solid rgba(245,158,11,0.3);
	border-radius: 16px;
	padding: 1.5rem;
	margin-bottom: 1.75rem;
}

.inv-mm-results__header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.inv-mm-results__header-left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.inv-mm-results__crown-wrap {
	font-size: 2rem;
	line-height: 1;
	filter: drop-shadow(0 0 10px rgba(245,158,11,0.5));
	flex-shrink: 0;
}

.inv-mm-results__title {
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 1.4rem;
	color: #f59e0b;
	margin: 0 0 2px;
	letter-spacing: 0.02em;
}

.inv-mm-results__subtitle {
	font-size: 0.72rem;
	color: #6b7494;
	margin: 0;
}

/* champion grid */
.inv-mm-results__groups {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.inv-mm-results__group {
	background: rgba(245,158,11,0.06);
	border: 1px solid rgba(245,158,11,0.2);
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.6rem 0.5rem 0.5rem;
	gap: 0.3rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.inv-mm-results__group:hover {
	border-color: rgba(245,158,11,0.45);
	box-shadow: 0 2px 12px rgba(245,158,11,0.08);
}

.inv-mm-results__group-label {
	font-size: 0.6rem;
	font-weight: 700;
	color: #6b7494;
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

.inv-mm-results__group-body {
	display: flex;
	align-items: center;
	gap: 4px;
}

.inv-mm-results__trophy {
	font-size: 0.85rem;
	line-height: 1;
}

.inv-mm-results__server-num {
	font-family: 'Rajdhani', sans-serif;
	font-size: 1.3rem;
	font-weight: 700;
	color: #f59e0b;
	letter-spacing: -0.01em;
	line-height: 1;
}

/* leaderboard */
.inv-mm-results__leaderboard {
	border-top: 1px solid rgba(255,255,255,0.07);
	padding-top: 1.25rem;
}

/* column header row */
.inv-mm-results__lb-head {
	display: grid;
	grid-template-columns: 2.5rem 1fr 5rem 6rem;
	align-items: center;
	padding: 0 0.75rem 0.6rem;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #4b5563;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	margin-bottom: 0.4rem;
}

.inv-mm-results__lb-title {
	grid-column: 1 / 3;
	font-family: 'Rajdhani', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: #c4c9e2;
	text-transform: none;
	letter-spacing: 0;
}

.inv-mm-results__lb-col-correct,
.inv-mm-results__lb-col-earned {
	text-align: right;
}

/* leaderboard rows */
.inv-mm-lb-row {
	display: grid;
	grid-template-columns: 2.5rem 1fr 5rem 6rem;
	align-items: center;
	gap: 0;
	padding: 0.55rem 0.75rem;
	border-radius: 8px;
	border: 1px solid transparent;
	margin-bottom: 0.3rem;
	font-size: 0.85rem;
	transition: background 0.15s;
}

.inv-mm-lb-row:last-child { margin-bottom: 0; }

.inv-mm-lb-row--p0 {
	background: linear-gradient(90deg, rgba(255,185,0,0.12) 0%, rgba(255,185,0,0.04) 100%);
	border-color: rgba(255,185,0,0.2);
}

.inv-mm-lb-row--p1 {
	background: linear-gradient(90deg, rgba(170,180,195,0.09) 0%, rgba(170,180,195,0.02) 100%);
	border-color: rgba(170,180,195,0.15);
}

.inv-mm-lb-row--p2 {
	background: linear-gradient(90deg, rgba(180,100,40,0.1) 0%, rgba(180,100,40,0.02) 100%);
	border-color: rgba(180,100,40,0.18);
}

.inv-mm-lb-row__rank {
	font-size: 1.1rem;
	text-align: center;
	line-height: 1;
	flex-shrink: 0;
}

.inv-mm-lb-row__user {
	font-weight: 600;
	color: #e2e8f0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 0.5rem;
}

.inv-mm-lb-row__correct {
	text-align: right;
	padding-right: 0.5rem;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.2;
}

.inv-mm-lb-row__correct strong {
	font-size: 0.95rem;
	font-weight: 700;
	color: #e2e8f0;
}

.inv-mm-lb-row__correct small {
	font-size: 0.65rem;
	color: #6b7494;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.inv-mm-lb-row__profit {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
	font-weight: 700;
	font-size: 0.9rem;
	white-space: nowrap;
}

/* ── Group card winner styles ─────────────────────────────────────────── */
.inv-mm-card--has-winner {
	border-color: rgba(245,158,11,0.5);
	box-shadow: 0 0 0 1px rgba(245,158,11,0.2), 0 4px 20px rgba(245,158,11,0.08);
}

.inv-mm-card__winner-banner {
	background: linear-gradient(90deg, rgba(245,158,11,0.18) 0%, rgba(245,158,11,0.06) 100%);
	border-bottom: 1px solid rgba(245,158,11,0.25);
	padding: 5px 12px;
	font-size: 0.72rem;
	font-weight: 700;
	color: #f59e0b;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 8px 8px 0 0;
	margin: -1px -1px 0 -1px;
}

.inv-mm-card__server--winner {
	background: rgba(245,158,11,0.12) !important;
	border-color: rgba(245,158,11,0.4) !important;
	color: #fbbf24 !important;
	font-weight: 700;
}

.inv-mm-card__winner-tag {
	display: inline-block;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	padding: 1px 5px;
	border-radius: 3px;
	background: #f59e0b;
	color: #000;
	vertical-align: middle;
	margin-left: 2px;
}
