
:root {
	--bg: #0e0e0e;
	--panel: #1a1a1a;
	--white10: rgba(255, 255, 255, 0.08);
	--white14: rgba(255, 255, 255, 0.12);
	--white30: rgba(255, 255, 255, 0.32);
	--white: #ffffff;
	--purple: rgba(217, 99, 255, 0.72);
	--purple-dim: rgba(217, 99, 255, 0.16);
	--purple-solid: #d963ff;
	--purple-bright: #e18aff;
	--purple-soft: rgba(217, 99, 255, 0.22);
	--accent: #d963ff;
	--accent-soft: rgba(217, 99, 255, 0.22);
	--yellow: #ffff63;
	--yellow-soft: rgba(255, 255, 99, 0.18);
	--muted: rgba(255, 255, 255, 0.28);
	--line: rgba(255, 255, 255, 0.06);
	--radius: 10px;
	--radius-sm: 6px;
	--font: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
	margin: 0;
	height: 100%;
	overflow: hidden;
}

body {
	font-family: var(--font);
	color: var(--white);
	background: var(--bg);
}

.panel {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(1200px 600px at 0% 0%, rgba(217, 99, 255, 0.1), transparent 55%),
		radial-gradient(900px 500px at 100% 100%, rgba(217, 99, 255, 0.08), transparent 50%),
		var(--panel);
	display: flex;
	flex-direction: column;
}

.panel-head {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 22px 36px;
	border-bottom: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.22);
	flex-shrink: 0;
}

.brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 160px;
}

.brand-mark {
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1;
	background: linear-gradient(120deg, #fff 40%, var(--purple-solid));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.brand-sub {
	font-size: 0.78rem;
	color: var(--muted);
	font-weight: 500;
}

.tabs {
	display: flex;
	gap: 6px;
	padding: 5px;
	background: var(--white10);
	border-radius: 10px;
}

.tab {
	appearance: none;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 10px 16px;
	border-radius: 8px;
	background: transparent;
	color: var(--white30);
	transition: background 0.22s ease, color 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.tab .ico {
	width: 16px;
	height: 16px;
	opacity: 0.55;
	flex-shrink: 0;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.tab:hover {
	color: var(--white);
	background: rgba(255, 255, 255, 0.06);
}

.tab:hover .ico {
	opacity: 0.9;
}

.tab.is-active {
	background: var(--purple);
	color: var(--white);
	box-shadow: 0 8px 22px rgba(217, 99, 255, 0.18);
}

.tab.is-active .ico {
	opacity: 1;
}

.ico {
	width: 18px;
	height: 18px;
	display: block;
	flex-shrink: 0;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--white10);
	font-weight: 700;
	font-size: 0.9rem;
	margin-left: auto;
	letter-spacing: 0.01em;
}

.pill-ico {
	width: 15px;
	height: 15px;
	color: var(--purple-solid);
	opacity: 0.95;
}

.pill-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--purple-solid);
	box-shadow: 0 0 0 4px var(--purple-soft);
	animation: pulse 2.2s ease infinite;
}

@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 4px var(--purple-soft); }
	50% { box-shadow: 0 0 0 7px rgba(217, 99, 255, 0.08); }
}

.panel-body {
	flex: 1;
	min-height: 0;
	padding: 28px 36px;
	overflow: auto;
}

.page { display: none; height: 100%; }
.page.is-active {
	display: flex;
	flex-direction: column;
	animation: fadeIn 0.25s ease;
}

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

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	align-content: start;
}

.home {
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: 1180px;
	width: 100%;
	margin: 0 auto;
	padding-bottom: 12px;
}

.home-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	min-height: 120px;
	padding: 8px 4px 4px;
	overflow: hidden;
}

.home-kicker {
	margin: 0 0 6px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--purple-bright);
	opacity: 0.9;
}

.home-title {
	margin: 0;
	font-size: clamp(2.4rem, 5vw, 3.4rem);
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 0.95;
	background: linear-gradient(120deg, #fff 35%, var(--purple-solid));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.home-lead {
	margin: 10px 0 0;
	max-width: 36rem;
	color: var(--white30);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.45;
}

.home-hero-pulse {
	position: relative;
	width: 88px;
	height: 88px;
	flex-shrink: 0;
}

.home-ring {
	position: absolute;
	inset: 18px;
	border-radius: 50%;
	border: 2px solid rgba(217, 99, 255, 0.55);
	animation: homePulse 2.4s ease-out infinite;
}

.home-ring.delay { animation-delay: 1.1s; inset: 8px; opacity: 0.55; }

@keyframes homePulse {
	0% { transform: scale(0.72); opacity: 0.85; }
	100% { transform: scale(1.35); opacity: 0; }
}

.home-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.home-metric {
	padding: 16px 18px;
	border-radius: 12px;
	background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
	border: 1px solid rgba(255,255,255,0.06);
	min-height: 108px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
}

.home-metric .hm-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--muted);
	letter-spacing: 0.02em;
}

.home-metric .hm-value {
	font-size: 1.85rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

.home-metric .hm-sub {
	font-size: 0.78rem;
	color: var(--white30);
	font-weight: 500;
}

.home-metric.tone-good .hm-value { color: #6dff7a; }
.home-metric.tone-warn .hm-value { color: #ffe95c; }
.home-metric.tone-bad .hm-value { color: #ff7a7a; }
.home-metric.tone-good {
	box-shadow: inset 0 0 0 1px rgba(82, 255, 88, 0.18);
	background: linear-gradient(160deg, rgba(82, 255, 88, 0.1), rgba(255,255,255,0.03));
}
.home-metric.tone-warn {
	box-shadow: inset 0 0 0 1px rgba(255, 233, 92, 0.18);
	background: linear-gradient(160deg, rgba(255, 233, 92, 0.1), rgba(255,255,255,0.03));
}
.home-metric.tone-bad {
	box-shadow: inset 0 0 0 1px rgba(255, 122, 122, 0.2);
	background: linear-gradient(160deg, rgba(255, 90, 90, 0.12), rgba(255,255,255,0.03));
}

.home-week {
	width: 100%;
}

.home-block {
	padding: 18px 18px 16px;
	border-radius: 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.05);
}

.home-block-head {
	margin-bottom: 14px;
}

.home-block-head h2 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
}

.home-block-head p {
	margin: 4px 0 0;
	font-size: 0.78rem;
	color: var(--muted);
}

.home-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 12px;
	align-items: end;
	min-height: 180px;
	padding: 4px 0 2px;
}

.home-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-height: 180px;
	justify-content: flex-end;
}

.home-day-bar {
	width: 100%;
	max-width: 42px;
	border-radius: 10px 10px 5px 5px;
	background: linear-gradient(180deg, var(--purple-bright), rgba(217, 99, 255, 0.25));
	min-height: 6px;
	transition: height 0.4s ease;
}

.home-day-n {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--white);
}

.home-day-l {
	font-size: 0.74rem;
	color: var(--muted);
	font-weight: 600;
}

.home-speed {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	width: 100%;
}

.speed-line {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.speed-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--white30);
}

.speed-value {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--white);
}

.home-speed.tone-good .speed-value { color: #6dff7a; }
.home-speed.tone-warn .speed-value { color: #ffe95c; }
.home-speed.tone-bad .speed-value { color: #ff7a7a; }
.home-speed.tone-good {
	box-shadow: inset 0 0 0 1px rgba(82, 255, 88, 0.18);
	background: linear-gradient(160deg, rgba(82, 255, 88, 0.1), rgba(255,255,255,0.03));
}
.home-speed.tone-warn {
	box-shadow: inset 0 0 0 1px rgba(255, 233, 92, 0.18);
	background: linear-gradient(160deg, rgba(255, 233, 92, 0.1), rgba(255,255,255,0.03));
}
.home-speed.tone-bad {
	box-shadow: inset 0 0 0 1px rgba(255, 122, 122, 0.2);
	background: linear-gradient(160deg, rgba(255, 90, 90, 0.12), rgba(255,255,255,0.03));
}

.speed-bar {
	display: flex;
	height: 8px;
	border-radius: 999px;
	overflow: hidden;
	background: rgba(255,255,255,0.06);
}

.speed-bar > span {
	display: block;
	height: 100%;
	min-width: 0;
	transition: flex-grow 0.45s ease;
}

.speed-bar .seg-fast { background: #52ff58; }
.speed-bar .seg-mid { background: #ffe95c; }
.speed-bar .seg-slow { background: #ff6b6b; }

.home-top-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.home-top-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255,255,255,0.04);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
	border: 0;
	width: 100%;
	text-align: left;
	font-family: inherit;
	color: inherit;
}

.home-top-row:hover {
	background: rgba(217, 99, 255, 0.14);
	transform: translateY(-1px);
}

.home-top-rank {
	width: 22px;
	font-weight: 800;
	color: var(--purple-bright);
	font-size: 0.9rem;
}

.home-top-meta {
	min-width: 0;
	flex: 1;
}

.home-top-name {
	font-weight: 700;
	font-size: 0.92rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home-top-sub {
	font-size: 0.75rem;
	color: var(--muted);
}

.home-top-count {
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--white);
}

.home-empty {
	padding: 18px;
	color: var(--muted);
	font-size: 0.9rem;
	text-align: center;
}


.card {
	background: var(--white10);
	border-radius: var(--radius);
	padding: 18px 18px 16px;
	min-height: 168px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	position: relative;
	overflow: hidden;
	border: 1px solid transparent;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	cursor: pointer;
}

.card-head {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	z-index: 1;
	margin-bottom: 4px;
}

.card-head-text {
	min-width: 0;
	flex: 1;
}

.avatar {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(217, 99, 255, 0.22);
	flex-shrink: 0;
	display: block;
}

.avatar-lg {
	width: 48px;
	height: 48px;
	border-radius: 12px;
}

.person {
	display: flex;
	align-items: center;
	gap: 10px;
}

.person-name {
	font-weight: 700;
}

.drawer-title {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.drawer-avatar {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(217, 99, 255, 0.28);
	flex-shrink: 0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

tr { cursor: pointer; }

.card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--purple-solid), transparent 70%);
	opacity: 0.85;
}

.card.is-hidden::before {
	background: linear-gradient(90deg, var(--yellow), transparent 70%);
}

.card::after {
	content: "";
	position: absolute;
	inset: auto -20% -40% 30%;
	height: 70%;
	background: radial-gradient(circle, var(--purple-soft), transparent 65%);
	pointer-events: none;
	opacity: 0.7;
}

.card.is-hidden::after {
	background: radial-gradient(circle, var(--yellow-soft), transparent 65%);
}

.card:hover {
	background: var(--purple-dim);
	border-color: rgba(217, 99, 255, 0.25);
	transform: translateY(-2px);
}

.card .name {
	font-size: 1.12rem;
	font-weight: 750;
	font-weight: 700;
	position: relative;
	z-index: 1;
	letter-spacing: 0.01em;
}

.card .meta {
	color: var(--white30);
	font-size: 0.84rem;
	margin-bottom: 0;
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.card .stats {
	margin-top: auto;
	display: grid;
	gap: 8px;
	position: relative;
	z-index: 1;
}

.card .row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-size: 0.84rem;
	color: var(--white30);
	padding: 7px 10px;
	border-radius: var(--radius-sm);
	background: rgba(0, 0, 0, 0.22);
}

.card .row strong {
	color: var(--white);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.badge {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 8px;
	border-radius: 4px;
	background: var(--purple-soft);
	color: var(--purple-solid);
}

.badge.hidden-mode {
	background: var(--yellow-soft);
	color: var(--yellow);
}

.table-wrap {
	flex: 1;
	min-height: 0;
	overflow: auto;
}

.admins-table {
	width: 100%;
	border-collapse: collapse;
}

.admins-table th,
.admins-table td {
	padding: 14px 10px;
	text-align: left;
	white-space: nowrap;
	border-bottom: 1px solid var(--line);
}

.admins-table th {
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	position: sticky;
	top: 0;
	background: transparent;
	backdrop-filter: none;
	z-index: 1;
}

.admins-table td {
	font-size: 0.92rem;
	font-variant-numeric: tabular-nums;
}

.admins-table tr:last-child td { border-bottom: 0; }
.admins-table tr:hover td { background: rgba(255, 255, 255, 0.03); }

table {
	width: 100%;
	border-collapse: collapse;
}

th, td {
	padding: 14px 18px;
	text-align: left;
	white-space: nowrap;
	border-bottom: 1px solid var(--line);
}

th {
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	position: sticky;
	top: 0;
	background: rgba(22, 22, 22, 0.96);
	backdrop-filter: blur(8px);
	z-index: 1;
}

td {
	font-size: 0.92rem;
	font-variant-numeric: tabular-nums;
}

tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--purple-dim); }

.steamid {
	color: var(--muted);
	font-size: 0.74rem;
	margin-top: 3px;
	font-weight: 500;
}

.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 8px;
	background: rgba(255, 255, 255, 0.22);
	vertical-align: middle;
}

.dot.on {
	background: var(--purple-solid);
	box-shadow: 0 0 0 3px var(--purple-soft);
}

.dot.admin {
	background: var(--purple-solid);
	box-shadow: 0 0 0 3px var(--purple-dim);
}

.dot.hidden-dot {
	background: var(--yellow);
	box-shadow: 0 0 0 3px var(--yellow-soft);
}

.status-on { color: var(--purple-bright); font-weight: 700; }
.status-admin { color: var(--purple-solid); font-weight: 700; }
.status-hidden { color: var(--yellow); font-weight: 700; }
.status-off { color: var(--white30); }

.badge.server {
	background: var(--purple-soft);
	color: var(--purple-solid);
}

.badge.adminmode-badge {
	background: var(--purple-dim);
	color: var(--purple-solid);
}

.empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: var(--muted);
	font-size: 1rem;
	font-weight: 500;
}

.empty-icon {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background:
		radial-gradient(circle at 30% 25%, rgba(217, 99, 255, 0.28), transparent 55%),
		var(--white10);
	border: 1px solid rgba(217, 99, 255, 0.18);
	display: grid;
	place-items: center;
	color: var(--purple-solid);
}

.empty-icon svg {
	width: 24px;
	height: 24px;
	opacity: 0.9;
}

.hidden { display: none !important; }

.panel-foot {
	padding: 12px 36px 16px;
	text-align: right;
	color: var(--muted);
	font-size: 0.75rem;
	letter-spacing: 0.03em;
	border-top: 1px solid var(--line);
	background: rgba(0, 0, 0, 0.18);
	flex-shrink: 0;
}

@media (max-width: 980px) {
	.home-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.panel-head {
		padding: 16px;
		flex-wrap: wrap;
		gap: 12px;
	}
	.panel-body { padding: 16px; }
	.pill { margin-left: 0; width: 100%; justify-content: center; }
	.brand { min-width: 0; }
	.tabs { width: 100%; overflow-x: auto; }
	.tab { flex: 1; text-align: center; padding: 10px 10px; font-size: 0.8rem; }
	.panel-foot { padding: 10px 16px 14px; text-align: center; }
	.grid { grid-template-columns: 1fr; }
	.drawer-panel { width: 100%; max-width: 100%; }
	.stat-grid { grid-template-columns: 1fr 1fr; }
	.home-metrics { grid-template-columns: 1fr 1fr; }
	.home-hero { min-height: 0; }
	.home-hero-pulse { display: none; }
	.home-days, .home-day { min-height: 140px; }
}

.drawer {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	justify-content: flex-end;
}

.drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
}

.drawer-panel {
	position: relative;
	width: min(560px, 100%);
	height: 100%;
	background: #161616;
	border-left: 1px solid var(--line);
	box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
	overflow: auto;
	padding: 22px 24px 40px;
	animation: slideIn 0.22s ease;
	z-index: 1;
}

@keyframes slideIn {
	from { transform: translateX(24px); opacity: 0; }
	to { transform: none; opacity: 1; }
}

.drawer-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 18px;
}

.drawer-name {
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.drawer-meta {
	margin-top: 4px;
	color: var(--white30);
	font-size: 0.86rem;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.drawer-x { flex-shrink: 0; }

.period-tabs {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	padding: 5px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	margin-bottom: 20px;
	isolation: isolate;
}

.period-thumb {
	position: absolute;
	z-index: 0;
	top: 5px;
	bottom: 5px;
	left: 5px;
	width: calc((100% - 10px) / 3);
	border-radius: 10px;
	background: linear-gradient(160deg, rgba(225, 138, 255, 0.95), rgba(217, 99, 255, 0.72));
	box-shadow:
		0 10px 28px rgba(217, 99, 255, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.18);
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
}

.period-tabs[data-active="week"] .period-thumb {
	transform: translateX(100%);
}

.period-tabs[data-active="month"] .period-thumb {
	transform: translateX(200%);
}

.period-btn {
	appearance: none;
	border: 0;
	background: transparent;
	position: relative;
	z-index: 1;
	cursor: pointer;
	font-family: inherit;
	color: var(--white30);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 12px 8px;
	border-radius: 10px;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: color 0.22s ease, transform 0.18s ease;
}

.period-btn .ico {
	width: 18px;
	height: 18px;
	opacity: 0.45;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.period-btn:hover {
	color: rgba(255, 255, 255, 0.82);
}

.period-btn:hover .ico {
	opacity: 0.8;
}

.period-btn.is-active {
	color: #fff;
}

.period-btn.is-active .ico {
	opacity: 1;
	transform: translateY(-1px);
}

.period-btn:active {
	transform: scale(0.98);
}

.stat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 22px;
}

.drawer-fade {
	transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}

.drawer-fade.is-out {
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
}

.stat-card {
	background: var(--white10);
	border-radius: 12px;
	padding: 14px 40px 14px 14px;
	border: 1px solid var(--line);
	position: relative;
	overflow: visible;
	opacity: 0;
	animation: cardRise 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.04s; }
.stat-card:nth-child(2) { animation-delay: 0.08s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.16s; }
.stat-card:nth-child(5) { animation-delay: 0.2s; }
.stat-card:nth-child(6) { animation-delay: 0.24s; }

@keyframes cardRise {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.stat-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 2px;
	background: linear-gradient(180deg, var(--purple-solid), transparent);
	opacity: 0.7;
}

.stat-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.stat-card .stat-ico {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: rgba(217, 99, 255, 0.12);
	color: var(--purple-solid);
	flex-shrink: 0;
	margin: 0;
}

.stat-card .stat-ico svg {
	width: 16px;
	height: 16px;
}

.stat-body {
	min-width: 0;
	flex: 1;
}

.stat-card .label {
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 6px;
	line-height: 1.25;
}

.stat-card .value {
	font-size: 1.22rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.stat-card .sub {
	margin-top: 5px;
	color: var(--white30);
	font-size: 0.76rem;
	line-height: 1.3;
}

.info-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: var(--white30);
	font-size: 0.68rem;
	font-weight: 800;
	font-style: normal;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: help;
	user-select: none;
	line-height: 1;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
	z-index: 2;
}

.info-btn:hover,
.info-btn:focus {
	background: var(--purple);
	color: var(--white);
	outline: none;
	transform: scale(1.06);
}

.info-tip {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	width: min(240px, 70vw);
	padding: 10px 12px;
	border-radius: 8px;
	background: #1e1e1e;
	border: 1px solid rgba(217, 99, 255, 0.35);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.4;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 30;
	text-align: left;
}

.info-btn:hover .info-tip,
.info-btn:focus .info-tip {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.drawer-block {
	margin-bottom: 24px;
	opacity: 0;
	animation: cardRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s forwards;
}

.drawer-block + .drawer-block {
	animation-delay: 0.26s;
}

.drawer-block h3 {
	margin: 0 0 12px;
	font-size: 0.95rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}

.drawer-block h3 .count {
	background: var(--purple-dim);
	color: var(--purple-solid);
	font-size: 0.75rem;
	padding: 3px 8px;
	border-radius: 999px;
}

.chart-legend {
	display: flex;
	gap: 14px;
	align-items: center;
	margin: -4px 0 10px;
	color: var(--white30);
	font-size: 0.78rem;
}

.chart-legend .lg {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	margin-right: 6px;
	vertical-align: middle;
}

.chart-legend .lg.online { background: var(--purple-solid); }
.chart-legend .lg.reports { background: var(--purple-bright); }

.chart-wrap {
	background: var(--white10);
	border-radius: var(--radius);
	padding: 12px 10px 8px;
	border: 1px solid var(--line);
}

.chart-wrap canvas {
	width: 100% !important;
	height: 220px !important;
	display: block;
}

.rep-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: none;
	overflow: visible;
}

.rep-item-full {
	background: var(--white10);
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	overflow: visible;
}

.rep-item-full[open] {
	border-color: rgba(217, 99, 255, 0.25);
}

.rep-item-full > summary {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	cursor: pointer;
	list-style: none;
	align-items: flex-start;
}

.rep-item-full > summary::-webkit-details-marker { display: none; }

.rep-summary-main .who {
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.rep-summary-main .sid {
	color: var(--muted);
	font-size: 0.78rem;
	margin-top: 4px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rep-summary-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.rep-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(217, 99, 255, 0.12);
	color: var(--purple-bright);
	font-size: 0.7rem;
	font-weight: 700;
}

.rep-rating {
	font-size: 0.68rem;
	font-weight: 800;
	padding: 2px 7px;
	border-radius: 4px;
	text-transform: uppercase;
}

.rep-rating.plus { background: var(--purple-soft); color: var(--purple-solid); }
.rep-rating.minus { background: rgba(255, 80, 80, 0.2); color: #ff7a7a; }
.rep-rating.none { background: rgba(255,255,255,0.06); color: var(--white30); }

.rep-body {
	padding: 0 14px 14px;
	border-top: 1px solid var(--line);
}

.rep-meta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 12px 0;
}

.rep-meta-grid > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 0.82rem;
}

.rep-block { margin-top: 8px; }
.rep-block-title {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 6px;
}

.rep-text {
	background: rgba(0,0,0,0.22);
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 0.86rem;
	line-height: 1.4;
	white-space: pre-wrap;
}

.rep-chat-line {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 7px 10px;
	border-radius: 6px;
	background: rgba(0,0,0,0.18);
	margin-bottom: 4px;
}

.rep-chat-who { font-size: 0.75rem; font-weight: 700; color: var(--purple-solid); }
.rep-chat-who.reporter { color: var(--purple-bright); }
.rep-chat-who.admin { color: var(--purple-solid); }
.rep-chat-who.system { color: var(--yellow); }
.rep-chat-text { font-size: 0.84rem; line-height: 1.35; }

.rep-chat-line.system {
	background: rgba(255, 255, 99, 0.08);
	border: 1px solid rgba(255, 255, 99, 0.18);
}

.rep-final-rate {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	font-weight: 800;
	font-size: 0.9rem;
	text-align: center;
	letter-spacing: 0.02em;
}

.rep-final-rate.plus {
	background: rgba(217, 99, 255, 0.16);
	color: var(--purple-solid);
	border: 1px solid rgba(217, 99, 255, 0.28);
}

.rep-final-rate.minus {
	background: rgba(255, 80, 80, 0.16);
	color: #ff7a7a;
	border: 1px solid rgba(255, 80, 80, 0.28);
}

.rep-final-rate.none {
	background: rgba(255, 255, 255, 0.04);
	color: var(--white30);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.rep-action {
	font-size: 0.86rem;
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(217, 99, 255, 0.08);
	border: 1px solid rgba(217, 99, 255, 0.16);
	margin-bottom: 6px;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.35;
}

.rep-actions-box {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: 4px;
}

.rep-muted { color: var(--muted); font-size: 0.75rem; }

.rep-item {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background: var(--white10);
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
}

.rep-item:hover { border-color: rgba(217, 99, 255, 0.2); }
.rep-item .who { font-weight: 700; }
.rep-item .sid { color: var(--muted); font-size: 0.74rem; margin-top: 2px; }
.rep-item .when {
	color: var(--white30);
	font-size: 0.8rem;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.rep-empty {
	color: var(--muted);
	padding: 24px;
	text-align: center;
	background: var(--white10);
	border-radius: var(--radius);
}

.logout-btn {
	text-decoration: none;
	margin-left: 8px;
	color: var(--white30) !important;
	background: transparent !important;
}

.logout-btn:hover {
	color: var(--white) !important;
	background: rgba(217, 99, 255, 0.2) !important;
}

.user-chip {
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 6px 12px 6px 6px;
	border-radius: 10px;
	background: var(--white10);
	color: var(--white30);
	font-size: 0.82rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.user-chip-avatar {
	width: 28px;
	height: 28px;
	border-radius: 8px;
}

.drawer-block h3 .ico {
	width: 16px;
	height: 16px;
	color: var(--purple-solid);
	opacity: 0.9;
}

.drawer-x {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.login-body {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background:
		radial-gradient(900px 500px at 20% 0%, rgba(217, 99, 255, 0.14), transparent 55%),
		radial-gradient(700px 400px at 90% 100%, rgba(217, 99, 255, 0.1), transparent 50%),
		var(--bg);
	overflow: auto;
}

.login-panel {
	width: min(400px, 100%);
	background: rgba(32, 32, 32, 0.94);
	border-radius: 20px;
	padding: 28px 26px 24px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.login-panel .brand {
	margin-bottom: 22px;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.login-hint {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 0.88rem;
}

.steam-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 18px;
	border-radius: 8px;
	background: var(--purple);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.98rem;
	transition: background 0.15s ease, transform 0.15s ease;
}

.steam-btn:hover {
	background: rgba(217, 99, 255, 0.9);
	transform: translateY(-1px);
}

.steam-icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	display: block;
}

.login-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.login-input {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.28);
	color: var(--white);
	border-radius: 8px;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 1rem;
	outline: none;
}

.login-btn {
	margin-top: 8px;
	width: 100%;
	text-align: center;
	padding: 12px 18px;
	font-size: 0.95rem;
}

.login-error {
	background: rgba(255, 80, 80, 0.15);
	color: #ff8f8f;
	border: 1px solid rgba(255, 80, 80, 0.25);
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.86rem;
	font-weight: 600;
}

/* -- Server RCON -- */

.server {
	display: flex;
	flex-direction: column;
	gap: 18px;
	height: 100%;
	min-height: 0;
}

.server-status {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(0, 0, 0, 0.28);
	flex-wrap: wrap;
}

.server-status-main {
	min-width: 160px;
}

.server-name {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.server-meta {
	margin-top: 4px;
	font-size: 0.82rem;
	color: var(--muted);
	font-weight: 600;
}

.server-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1;
}

.server-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--purple-dim);
	border: 1px solid rgba(217, 99, 255, 0.28);
	font-size: 0.8rem;
	font-weight: 700;
}

.server-pill.muted {
	background: rgba(255, 255, 255, 0.04);
	border-color: var(--line);
	color: rgba(255, 255, 255, 0.72);
	font-weight: 600;
}

.server-pill.is-online {
	background: rgba(80, 220, 140, 0.14);
	border-color: rgba(80, 220, 140, 0.35);
	color: #8dffb4;
}

.server-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
	gap: 16px;
	min-height: 0;
	flex: 1;
}

.server-players,
.server-actions {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(0, 0, 0, 0.22);
	padding: 14px 16px 16px;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.server-block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.server-block-head h2 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.03em;
}

.server-block-head .count {
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--purple-dim);
	color: var(--purple-bright);
	font-size: 0.78rem;
	font-weight: 800;
}

.server-table-wrap {
	overflow: auto;
	min-height: 0;
	flex: 1;
	border-radius: var(--radius-sm);
}

.server-offline-head {
	margin-top: 16px;
	flex-shrink: 0;
}

.server-subhint {
	margin: -4px 0 10px;
	font-size: 0.76rem;
	line-height: 1.4;
	color: var(--muted);
	font-weight: 600;
	flex-shrink: 0;
}

.server-offline-wrap {
	flex: 0 0 auto;
	max-height: 220px;
	min-height: 0;
}

.server-table tr.is-offline td {
	opacity: 0.92;
}

.server-table td,
.server-table th {
	white-space: nowrap;
}

.server-table .empty-cell {
	color: var(--muted);
	text-align: center;
	padding: 28px 12px;
	font-weight: 600;
}

.server-table code.sid {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.78);
}

.srv-pick {
	appearance: none;
	border: 1px solid rgba(217, 99, 255, 0.35);
	background: rgba(217, 99, 255, 0.12);
	color: var(--purple-bright);
	border-radius: 6px;
	padding: 5px 10px;
	font: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
}

.srv-pick:hover {
	background: rgba(217, 99, 255, 0.22);
}

.srv-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.srv-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.srv-field span {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.srv-field input,
.srv-field select {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.32);
	color: var(--white);
	border-radius: 8px;
	padding: 11px 12px;
	font: inherit;
	font-size: 0.9rem;
	outline: none;
}

.srv-field input:focus,
.srv-field select:focus {
	border-color: rgba(217, 99, 255, 0.45);
	box-shadow: 0 0 0 3px rgba(217, 99, 255, 0.12);
}

.srv-field[hidden] {
	display: none !important;
}

.srv-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
	color: var(--white);
	border-radius: 8px;
	padding: 10px 14px;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.srv-btn:hover {
	background: rgba(255, 255, 255, 0.1);
}

.srv-btn.primary {
	background: linear-gradient(135deg, rgba(217, 99, 255, 0.85), rgba(170, 70, 230, 0.9));
	border-color: transparent;
}

.srv-btn.primary:hover {
	filter: brightness(1.06);
}

.srv-btn:disabled,
.srv-btn.is-busy {
	opacity: 0.55;
	pointer-events: none;
}

.server-hint {
	margin: 12px 0 0;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--muted);
	font-weight: 600;
}

.server-log-head {
	margin-top: 18px;
}

.srv-btn-sm {
	padding: 6px 10px;
	font-size: 0.75rem;
}

.server-log {
	margin-top: 8px;
	max-height: 280px;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: rgba(0, 0, 0, 0.28);
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.server-log-empty {
	padding: 16px 10px;
	text-align: center;
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 600;
}

.server-log-item {
	padding: 8px 10px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.server-log-top {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--muted);
}

.server-log-who {
	color: var(--purple-bright);
}

.server-log-title {
	margin-top: 4px;
	font-size: 0.84rem;
	font-weight: 800;
}

.server-log-action {
	margin-left: 8px;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.server-log-meta {
	margin-top: 3px;
	font-size: 0.74rem;
	color: rgba(255, 255, 255, 0.55);
	font-weight: 600;
	word-break: break-word;
}

.logs-page {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	min-height: 0;
}

.logs-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(0, 0, 0, 0.28);
}

.logs-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 160px;
}

.logs-field.logs-search {
	flex: 1;
	min-width: 220px;
}

.logs-field span {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
}

.logs-field input,
.logs-field select {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 0, 0, 0.32);
	color: var(--white);
	border-radius: 8px;
	padding: 10px 12px;
	font: inherit;
	font-size: 0.9rem;
	outline: none;
}

.logs-field input:focus,
.logs-field select:focus {
	border-color: rgba(217, 99, 255, 0.45);
	box-shadow: 0 0 0 3px rgba(217, 99, 255, 0.12);
}

.logs-meta {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--muted);
}

.logs-list {
	flex: 1;
	min-height: 0;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(0, 0, 0, 0.22);
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	z-index: 80;
	max-width: min(520px, calc(100vw - 32px));
	padding: 12px 18px;
	border-radius: 10px;
	background: rgba(28, 28, 32, 0.96);
	border: 1px solid rgba(217, 99, 255, 0.35);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
	font-size: 0.9rem;
	font-weight: 700;
	text-align: center;
	pointer-events: none;
}

.toast.is-error {
	border-color: rgba(255, 90, 90, 0.45);
	color: #ffb0b0;
}

.toast.hidden {
	display: none;
}

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

	.server-players {
		max-height: 42vh;
	}
}
