.cs-shell {
	position: relative;
	overflow: hidden;
	min-height: 720px;
	padding: 28px;
	border-radius: 28px;
	color: #f8fafc;
	isolation: isolate;
	background:
		radial-gradient(circle at 14% 12%, rgba(180, 83, 9, 0.28), transparent 32%),
		radial-gradient(circle at 86% 18%, rgba(59, 130, 246, 0.18), transparent 28%),
		linear-gradient(145deg, rgba(8, 10, 18, 0.98), rgba(24, 14, 10, 0.96));
	box-shadow:
		0 24px 80px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 0 0 1px rgba(251, 191, 36, 0.12);
}

.cs-shell::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, rgba(251, 191, 36, 0.45), transparent 35%, rgba(59, 130, 246, 0.35), transparent 70%, rgba(245, 158, 11, 0.4));
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	animation: cs-border-spin 8s linear infinite;
}

@keyframes cs-border-spin {
	0% { filter: hue-rotate(0deg); opacity: 0.65; }
	50% { opacity: 0.95; }
	100% { filter: hue-rotate(18deg); opacity: 0.65; }
}

.cs-fx-layer {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.cs-bg-grid {
	position: absolute;
	inset: -20%;
	background-image:
		linear-gradient(rgba(251, 191, 36, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(251, 191, 36, 0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	transform: perspective(600px) rotateX(58deg) translateY(-8%);
	opacity: 0.35;
	animation: cs-grid-drift 18s linear infinite;
}

@keyframes cs-grid-drift {
	0% { transform: perspective(600px) rotateX(58deg) translateY(-8%) translateX(0); }
	100% { transform: perspective(600px) rotateX(58deg) translateY(-8%) translateX(48px); }
}

.cs-bg-glow {
	position: absolute;
	width: 420px;
	height: 420px;
	border-radius: 999px;
	filter: blur(48px);
	opacity: 0.22;
}
.cs-bg-glow-a { left: 10%; top: 20%; background: rgba(245, 158, 11, 0.7); animation: cs-glow-pulse 6s ease-in-out infinite; }
.cs-bg-glow-b { right: 8%; bottom: 10%; background: rgba(59, 130, 246, 0.55); animation: cs-glow-pulse 7s ease-in-out infinite reverse; }

@keyframes cs-glow-pulse {
	0%, 100% { transform: scale(1); opacity: 0.18; }
	50% { transform: scale(1.12); opacity: 0.32; }
}

.cs-scanline {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		to bottom,
		transparent 0,
		transparent 3px,
		rgba(255, 255, 255, 0.012) 3px,
		rgba(255, 255, 255, 0.012) 4px
	);
	opacity: 0.35;
}

.cs-embers {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
.cs-ember {
	position: absolute;
	bottom: -12px;
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: radial-gradient(circle, #fde68a 0%, #f59e0b 45%, transparent 100%);
	box-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
	animation: cs-ember-rise linear infinite;
	opacity: 0;
}
@keyframes cs-ember-rise {
	0% { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
	10% { opacity: 0.9; }
	100% { transform: translateY(-120vh) translateX(var(--drift, 20px)) scale(0.2); opacity: 0; }
}

.cs-bg-orb {
	position: absolute;
	width: 260px;
	height: 260px;
	border-radius: 999px;
	filter: blur(24px);
	opacity: 0.32;
	pointer-events: none;
	animation: cs-float 7s ease-in-out infinite;
	z-index: 0;
}
.cs-bg-orb-a { left: -80px; top: 140px; background: rgba(245, 158, 11, 0.55); }
.cs-bg-orb-b { right: -70px; bottom: 100px; background: rgba(37, 99, 235, 0.45); animation-delay: -2.5s; }
.cs-bg-orb-c { left: 42%; top: -40px; width: 180px; height: 180px; background: rgba(239, 68, 68, 0.28); animation-delay: -4s; }

@keyframes cs-float {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(10px, -16px, 0) scale(1.06); }
}

.cs-hero,
.cs-tabs,
.cs-tab-panel,
.cs-grid,
.cs-panel {
	position: relative;
	z-index: 1;
}

.cs-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 18px;
}

.cs-title-shine {
	background: linear-gradient(90deg, #fde68a 0%, #fff7ed 35%, #fbbf24 55%, #fde68a 100%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: cs-title-shimmer 4s linear infinite;
}

@keyframes cs-title-shimmer {
	0% { background-position: 0% center; }
	100% { background-position: 200% center; }
}

.cs-kicker,
.cs-eyebrow {
	display: inline-flex;
	margin: 0 0 8px;
	color: #fbbf24;
	font-size: 0.74rem;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cs-hero h1 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.6rem);
	font-weight: 950;
	letter-spacing: -0.05em;
	text-shadow: 0 0 34px rgba(251, 191, 36, 0.18);
}

.cs-hero p {
	max-width: 680px;
	margin: 10px 0 0;
	color: rgba(226, 232, 240, 0.78);
}

.cs-hero-badge {
	display: grid;
	place-items: center;
	min-width: 170px;
	padding: 18px 20px;
	border-radius: 20px;
	border: 1px solid rgba(251, 191, 36, 0.28);
	background: rgba(251, 191, 36, 0.08);
	text-align: center;
}
.cs-pulse-ring {
	box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.35);
	animation: cs-pulse-ring 2.8s ease-out infinite;
}
@keyframes cs-pulse-ring {
	0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.35); }
	70% { box-shadow: 0 0 0 16px rgba(251, 191, 36, 0); }
	100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
.cs-hero-badge span {
	color: rgba(251, 191, 36, 0.85);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}
.cs-hero-badge strong {
	font-size: 1.35rem;
	font-weight: 900;
	line-height: 1.2;
}
.cs-hero-badge small {
	color: rgba(226, 232, 240, 0.65);
	font-size: 0.78rem;
}

/* Tabs */
.cs-tabs {
	display: flex;
	gap: 8px;
	position: relative;
	margin-bottom: 18px;
	padding: 6px;
	border-radius: 18px;
	background: rgba(2, 6, 23, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.14);
}
.cs-tab {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: rgba(226, 232, 240, 0.72);
	font-weight: 800;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.15s ease;
}
.cs-tab:hover { color: #fde68a; transform: translateY(-1px); }
.cs-tab.is-active { color: #111827; }
.cs-tab-icon { font-size: 1rem; line-height: 1; }
.cs-tab-soon {
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(251, 191, 36, 0.16);
	color: #fde68a;
	font-size: 0.62rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.cs-tab-indicator {
	position: absolute;
	top: 6px;
	left: 6px;
	height: calc(100% - 12px);
	border-radius: 14px;
	background: linear-gradient(135deg, #fde68a, #f59e0b);
	box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.cs-tab-panel { display: none; animation: cs-panel-in 0.35s ease; }
.cs-tab-panel.is-active { display: block; }

@keyframes cs-panel-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.cs-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.cs-panel {
	padding: 20px 22px;
	border-radius: 22px;
	border: 1px solid rgba(148, 163, 184, 0.14);
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(8px);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cs-panel-glow:hover {
	border-color: rgba(251, 191, 36, 0.22);
	box-shadow: 0 12px 40px rgba(245, 158, 11, 0.08);
	transform: translateY(-2px);
}

.cs-panel-wide { grid-column: 1 / -1; }

.cs-panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.cs-panel-head h2 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 900;
}

.cs-status-pill,
.cs-count-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: rgba(148, 163, 184, 0.14);
	color: rgba(226, 232, 240, 0.88);
}
.cs-status-pill-open { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.cs-status-pill-closed { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.cs-status-pill-gold { background: rgba(251, 191, 36, 0.18); color: #fde68a; }

.cs-owner-card {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 18px;
	align-items: center;
}

.cs-owner-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 110px;
	height: 110px;
	border-radius: 22px;
	border: 1px solid rgba(251, 191, 36, 0.24);
	background: rgba(2, 6, 23, 0.55);
	box-shadow: 0 0 24px rgba(251, 191, 36, 0.12);
	animation: cs-logo-glow 3s ease-in-out infinite;
}
@keyframes cs-logo-glow {
	0%, 100% { box-shadow: 0 0 18px rgba(251, 191, 36, 0.1); }
	50% { box-shadow: 0 0 32px rgba(251, 191, 36, 0.28); }
}

.cs-owner-meta h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 900; }

.cs-owner-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.cs-stat {
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(2, 6, 23, 0.45);
	border: 1px solid rgba(148, 163, 184, 0.12);
}
.cs-stat span {
	display: block;
	color: rgba(148, 163, 184, 0.92);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.cs-stat strong { display: block; margin-top: 4px; font-size: 1rem; }

.cs-role-line {
	margin: 6px 0 0;
	color: rgba(226, 232, 240, 0.82);
	font-size: 0.92rem;
}
.cs-role-line em {
	color: rgba(251, 191, 36, 0.92);
	font-style: normal;
	font-weight: 700;
}

.cs-castle-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.cs-owner-allies { margin-top: 16px; }
.cs-owner-allies h4 { margin: 0 0 10px; font-size: 0.95rem; color: rgba(226, 232, 240, 0.88); }
.cs-ally-row {
	display: grid;
	grid-template-columns: 40px 1fr 1fr;
	gap: 10px;
	align-items: center;
	padding: 8px 0;
	border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.cs-register-box { display: grid; gap: 12px; }
.cs-muted {
	margin: 0;
	color: rgba(148, 163, 184, 0.92);
	font-size: 0.92rem;
	line-height: 1.55;
}

.cs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 16px;
	border-radius: 14px;
	border: 1px solid transparent;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}
.cs-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(245, 158, 11, 0.22);
}
.cs-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.cs-btn-primary {
	background: linear-gradient(135deg, #f59e0b, #d97706);
	color: #111827;
}
.cs-btn-ghost {
	background: rgba(148, 163, 184, 0.12);
	color: #e2e8f0;
	border-color: rgba(148, 163, 184, 0.18);
}
.cs-btn-danger {
	background: rgba(239, 68, 68, 0.16);
	color: #fecaca;
	border-color: rgba(239, 68, 68, 0.28);
}

.cs-table-wrap { overflow-x: auto; }
.cs-table { width: 100%; border-collapse: collapse; }
.cs-table th,
.cs-table td {
	padding: 11px 10px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.1);
	text-align: center;
	font-size: 0.92rem;
}
.cs-table tbody tr {
	transition: background 0.15s ease;
}
.cs-table tbody tr:hover {
	background: rgba(251, 191, 36, 0.04);
}
.cs-table th {
	color: rgba(251, 191, 36, 0.88);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.cs-table td:first-child,
.cs-table th:first-child { text-align: left; }

.cs-history-wrap { position: relative; z-index: 1; }

.cs-history-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: min(62vh, 620px);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 2px 8px 6px 2px;
}

.cs-panel-history-hall {
	position: relative;
	overflow: visible;
	background:
		radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.14), transparent 38%),
		radial-gradient(circle at 88% 100%, rgba(59, 130, 246, 0.12), transparent 34%),
		linear-gradient(160deg, rgba(15, 18, 28, 0.96), rgba(8, 10, 18, 0.98));
}

.cs-panel-history-hall::after {
	content: "";
	position: absolute;
	inset: auto -20% -40% -20%;
	height: 180px;
	background: radial-gradient(circle, rgba(251, 191, 36, 0.12), transparent 70%);
	pointer-events: none;
	animation: cs-history-glow 5s ease-in-out infinite;
}

@keyframes cs-history-glow {
	0%, 100% { opacity: 0.45; transform: translateY(0); }
	50% { opacity: 0.85; transform: translateY(-8px); }
}

.cs-panel-head-history { position: relative; z-index: 1; }
.cs-history-sparkle {
	font-size: 1.4rem;
	color: #fde68a;
	text-shadow: 0 0 18px rgba(251, 191, 36, 0.75);
	animation: cs-sparkle-spin 4s linear infinite;
}
@keyframes cs-sparkle-spin {
	0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.75; }
	50% { transform: rotate(180deg) scale(1.15); opacity: 1; }
}

.cs-history-hall { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }

.cs-history-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.cs-history-stat {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 16px;
	border: 1px solid rgba(148, 163, 184, 0.14);
	background: rgba(2, 6, 23, 0.55);
	position: relative;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cs-history-stat::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
	transform: translateX(-120%);
	animation: cs-stat-shimmer 4s ease-in-out infinite;
}
@keyframes cs-stat-shimmer {
	0%, 70%, 100% { transform: translateX(-120%); }
	35% { transform: translateX(120%); }
}
.cs-history-stat:hover { transform: translateY(-2px); }

.cs-history-stat--obscure {
	border-color: rgba(168, 85, 247, 0.35);
	box-shadow: 0 0 24px rgba(168, 85, 247, 0.12);
}
.cs-history-stat--doom {
	border-color: rgba(239, 68, 68, 0.35);
	box-shadow: 0 0 24px rgba(239, 68, 68, 0.12);
}
.cs-history-stat--life {
	border-color: rgba(34, 197, 94, 0.35);
	box-shadow: 0 0 24px rgba(34, 197, 94, 0.12);
}
.cs-history-stat--total {
	border-color: rgba(251, 191, 36, 0.35);
	box-shadow: 0 0 24px rgba(251, 191, 36, 0.1);
}

.cs-history-stat-icon {
	border-radius: 10px;
	object-fit: contain;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
}
.cs-history-stat-copy { display: grid; gap: 2px; min-width: 0; }
.cs-history-stat-name {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(226, 232, 240, 0.82);
}
.cs-history-stat-count {
	font-size: 1.35rem;
	line-height: 1;
	color: #fff7ed;
}
.cs-history-stat-label {
	font-size: 0.72rem;
	color: rgba(148, 163, 184, 0.88);
}

.cs-history-item {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
	min-height: 76px;
	padding: 14px 16px 14px 20px;
	border-radius: 18px;
	background: rgba(2, 6, 23, 0.58);
	border: 1px solid rgba(148, 163, 184, 0.14);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	animation: cs-history-fade 0.4s ease backwards;
	animation-delay: calc(var(--cs-history-i, 0) * 0.02s);
	position: relative;
	overflow: visible;
}
.cs-history-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 4px;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.35);
}
.cs-history-item--obscure::before { background: linear-gradient(180deg, #c084fc, #7c3aed); box-shadow: 0 0 14px rgba(168, 85, 247, 0.55); }
.cs-history-item--doom::before { background: linear-gradient(180deg, #fca5a5, #dc2626); box-shadow: 0 0 14px rgba(239, 68, 68, 0.55); }
.cs-history-item--life::before { background: linear-gradient(180deg, #86efac, #16a34a); box-shadow: 0 0 14px rgba(34, 197, 94, 0.55); }

.cs-history-item.is-latest {
	border-color: rgba(251, 191, 36, 0.45);
	box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.14), 0 14px 36px rgba(245, 158, 11, 0.12);
	background:
		linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(2, 6, 23, 0.58) 42%);
}

@keyframes cs-history-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.cs-history-item:hover {
	border-color: rgba(251, 191, 36, 0.28);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.cs-history-emblem {
	position: relative;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.82);
	border: 1px solid rgba(148, 163, 184, 0.18);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cs-history-emblem img {
	width: 44px !important;
	height: 44px !important;
	max-width: 44px !important;
	border-radius: 12px;
	object-fit: contain;
}
.cs-history-ally-fallback {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	font-weight: 900;
	color: #fde68a;
	background: rgba(251, 191, 36, 0.12);
}

.cs-history-content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cs-history-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
}

.cs-history-ally-name {
	font-size: 1.05rem;
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.25;
}
.cs-history-ally-name a {
	color: inherit;
	text-decoration: none;
}
.cs-history-ally-name a:hover { color: #fde68a; }
.cs-history-item--obscure .cs-history-ally-name { color: #e9d5ff; text-shadow: 0 0 20px rgba(168, 85, 247, 0.35); }
.cs-history-item--doom .cs-history-ally-name { color: #fecaca; text-shadow: 0 0 20px rgba(239, 68, 68, 0.28); }
.cs-history-item--life .cs-history-ally-name { color: #bbf7d0; text-shadow: 0 0 20px rgba(34, 197, 94, 0.28); }

.cs-history-latest-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fef3c7;
	background: rgba(251, 191, 36, 0.16);
	border: 1px solid rgba(251, 191, 36, 0.35);
	box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}

.cs-history-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
}
.cs-history-date-text {
	font-size: 0.88rem;
	font-weight: 700;
	color: #fde68a;
}
.cs-history-notes {
	font-size: 0.84rem;
	color: rgba(148, 163, 184, 0.9);
}

.cs-history-aside {
	flex: 0 0 auto;
	margin-left: auto;
}

.cs-history-wrap .cs-history-list::-webkit-scrollbar { width: 8px; }
.cs-history-wrap .cs-history-list::-webkit-scrollbar-thumb {
	background: rgba(251, 191, 36, 0.35);
	border-radius: 999px;
}

.cs-schedule-wrap { overflow-x: auto; }
.cs-schedule-head {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 12px;
	padding: 0 10px 8px;
	color: rgba(251, 191, 36, 0.88);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.cs-schedule-item {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 12px;
	padding: 12px 10px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.08);
	font-size: 0.88rem;
	border-radius: 12px;
	transition: background 0.15s ease;
}
.cs-schedule-item.is-battle strong { color: #fde68a; }
.cs-schedule-item.is-current {
	background: rgba(251, 191, 36, 0.08);
	border: 1px solid rgba(251, 191, 36, 0.18);
	box-shadow: inset 0 0 20px rgba(251, 191, 36, 0.06);
}
.cs-schedule-item.is-battle.is-current {
	animation: cs-battle-pulse 2s ease-in-out infinite;
}

.cs-schedule-legends {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px dashed rgba(251, 191, 36, 0.2);
}
.cs-schedule-legends-title {
	margin: 0 0 14px;
	font-size: 1rem;
	font-weight: 900;
	color: #fde68a;
}
.cs-schedule-legends-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.cs-schedule-legend-card {
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(2, 6, 23, 0.48);
	border: 1px solid rgba(148, 163, 184, 0.12);
}
.cs-schedule-legend-card.is-current {
	border-color: rgba(251, 191, 36, 0.28);
	box-shadow: inset 0 0 18px rgba(251, 191, 36, 0.06);
}
.cs-schedule-legend-card.is-battle {
	border-color: rgba(239, 68, 68, 0.22);
}
.cs-schedule-legend-card h4 {
	margin: 0 0 6px;
	font-size: 0.95rem;
	font-weight: 900;
}
.cs-schedule-legend-range {
	margin: 0 0 8px;
	color: rgba(251, 191, 36, 0.82);
	font-size: 0.78rem;
	font-weight: 700;
}
.cs-schedule-legend-text {
	margin: 0;
	color: rgba(226, 232, 240, 0.78);
	font-size: 0.88rem;
	line-height: 1.55;
}

.cs-victory-feed-wrap {
	display: grid;
	gap: 16px;
}
.cs-panel-victory-log .cs-victory-lead {
	margin: 8px 0 0;
	max-width: 52ch;
	color: rgba(148, 163, 184, 0.92);
	font-size: 0.9rem;
	line-height: 1.5;
}
.cs-victory-log {
	border-radius: 18px;
	border: 1px solid rgba(251, 191, 36, 0.22);
	background:
		linear-gradient(145deg, rgba(36, 28, 8, 0.55), rgba(2, 6, 23, 0.72));
	box-shadow: 0 12px 36px rgba(245, 158, 11, 0.1);
	overflow: hidden;
}
.cs-victory-log-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 14px 16px 0;
}
.cs-victory-log-kicker {
	color: rgba(251, 191, 36, 0.88);
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.cs-victory-log-date {
	color: rgba(226, 232, 240, 0.78);
	font-size: 0.82rem;
	font-weight: 700;
}
.cs-victory-log-box {
	margin-top: 12px;
}
.cs-victory-log-emblem img,
.cs-victory-log-emblem .cs-history-ally-icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	object-fit: contain;
}
.cs-victory-log-hint {
	margin: 0 16px 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(2, 6, 23, 0.45);
	border: 1px dashed rgba(148, 163, 184, 0.22);
	color: rgba(226, 232, 240, 0.82);
	font-size: 0.88rem;
	line-height: 1.5;
}
.cs-victory-log-actions {
	padding: 0 16px 16px;
}
.cs-victory-feed-wrap .social-post-cs-alert {
	border-radius: 18px;
	overflow: hidden;
}

.cs-admin-note {
	margin: 0 0 12px;
	font-size: 0.86rem;
}

/* Publicación de victoria — feed y módulo CS */
.social-post-cs-alert {
	border: 1px solid rgba(251, 191, 36, 0.18);
	box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08);
}
.social-cs-feed-context {
	margin: 2px 0 0;
	color: rgba(251, 191, 36, 0.82);
	font-size: 0.78rem;
	font-weight: 700;
}
.social-cs-victory-box {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 14px;
	align-items: center;
	margin: 0 16px 12px;
	padding: 16px;
	border-radius: 16px;
	background:
		radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.16), transparent 42%),
		rgba(2, 6, 23, 0.55);
	border: 1px solid rgba(251, 191, 36, 0.18);
}
.social-cs-victory-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 18px;
	font-size: 1.8rem;
	background: rgba(251, 191, 36, 0.12);
	border: 1px solid rgba(251, 191, 36, 0.22);
}
.social-cs-victory-title {
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 900;
	color: #fde68a;
}
.social-cs-victory-body {
	margin: 0;
	color: rgba(226, 232, 240, 0.9);
	line-height: 1.5;
}
.social-cs-victory-summary {
	margin: 8px 0 0;
	color: rgba(148, 163, 184, 0.92);
	font-size: 0.88rem;
}
.social-cs-victory-cta {
	display: inline-flex;
	margin-top: 12px;
}

@keyframes cs-battle-pulse {
	0%, 100% { box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.08); }
	50% { box-shadow: inset 0 0 28px rgba(239, 68, 68, 0.18); }
}
.cs-schedule-state {
	display: inline-flex;
	margin-left: 8px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.12);
	color: rgba(226, 232, 240, 0.72);
	font-size: 0.68rem;
	font-weight: 800;
}

/* Highlights tab */
.cs-highlights-panel { min-height: 420px; }
.cs-highlights-hero {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 18px;
	align-items: center;
	padding: 22px;
	margin-bottom: 18px;
	border-radius: 20px;
	background:
		radial-gradient(circle at 20% 20%, rgba(239, 68, 68, 0.16), transparent 40%),
		rgba(2, 6, 23, 0.55);
	border: 1px solid rgba(148, 163, 184, 0.12);
}
.cs-highlights-icon {
	display: grid;
	place-items: center;
	width: 80px;
	height: 80px;
	border-radius: 22px;
	font-size: 2rem;
	background: rgba(251, 191, 36, 0.1);
	border: 1px solid rgba(251, 191, 36, 0.22);
	box-shadow: 0 0 30px rgba(251, 191, 36, 0.12);
	animation: cs-logo-glow 3s ease-in-out infinite;
}
.cs-highlights-lead {
	margin: 0;
	color: rgba(226, 232, 240, 0.86);
	font-size: 1rem;
	line-height: 1.6;
}
.cs-highlights-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cs-highlights-features li {
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.65);
	border: 1px dashed rgba(251, 191, 36, 0.18);
	color: rgba(226, 232, 240, 0.82);
	font-size: 0.92rem;
}

.cs-admin-box {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px dashed rgba(251, 191, 36, 0.24);
}
.cs-admin-box h3 { margin: 0 0 12px; font-size: 1rem; }
.cs-admin-form { display: grid; gap: 10px; max-width: 520px; }
.cs-admin-row { display: grid; gap: 6px; }
.cs-admin-row label {
	font-size: 0.78rem;
	font-weight: 700;
	color: rgba(251, 191, 36, 0.88);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.cs-admin-row input {
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	background: rgba(2, 6, 23, 0.55);
	color: #f8fafc;
}
.cs-admin-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 8px;
	color: rgba(226, 232, 240, 0.88);
	font-size: 0.88rem;
	line-height: 1.45;
	cursor: pointer;
}
.cs-admin-check input {
	margin-top: 3px;
	flex-shrink: 0;
}

.cs-alert {
	padding: 14px 16px;
	border-radius: 16px;
	margin-bottom: 16px;
}
.cs-alert-danger {
	background: rgba(239, 68, 68, 0.14);
	border: 1px solid rgba(239, 68, 68, 0.28);
	color: #fecaca;
}

.cs-toast {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 120;
	max-width: 360px;
	padding: 12px 16px;
	border-radius: 14px;
	background: rgba(15, 23, 42, 0.96);
	border: 1px solid rgba(251, 191, 36, 0.24);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}
.cs-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 980px) {
	.cs-grid { grid-template-columns: 1fr; }
	.cs-hero { flex-direction: column; align-items: flex-start; }
	.cs-castle-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cs-owner-stats { grid-template-columns: 1fr; }
	.cs-history-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cs-history-item {
		flex-wrap: wrap;
		align-items: flex-start;
		min-height: 0;
		padding: 12px 14px 12px 18px;
	}
	.cs-history-aside {
		width: 100%;
		margin-left: 70px;
	}
	.cs-highlights-features { grid-template-columns: 1fr; }
	.cs-tabs { flex-wrap: wrap; }
	.cs-schedule-legends-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.cs-shell::before,
	.cs-bg-grid,
	.cs-bg-glow,
	.cs-bg-orb,
	.cs-ember,
	.cs-pulse-ring,
	.cs-title-shine,
	.cs-owner-logo,
	.cs-highlights-icon,
	.cs-schedule-item.is-battle.is-current,
	.cs-history-item,
	.cs-history-stat::before,
	.cs-history-sparkle {
		animation: none !important;
	}
}
