:root {
	--bg: #0c0d10;
	--panel: #16181e;
	--ink: #e8e4dc;
	--muted: #8a8478;
	--accent: #e35b2c;
	--accent-dim: #8a3418;
	--ok: #7cb87a;
	--line: #2a2d36;
	--ban: #3a1512;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	background: radial-gradient(1200px 600px at 50% -10%, #1a120e 0%, var(--bg) 55%);
	color: var(--ink);
	font-family: "Segoe UI", Tahoma, sans-serif;
}

body {
	padding: 24px 16px 48px;
}

.wrap {
	max-width: 1080px;
	margin: 0 auto;
}

h1 {
	margin: 0 0 6px;
	font-size: 28px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sub {
	color: var(--muted);
	margin: 0 0 28px;
}

.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 22px;
	margin-bottom: 18px;
}

label {
	display: block;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="number"] {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid var(--line);
	background: #0f1115;
	color: var(--ink);
	font-size: 16px;
	margin-bottom: 14px;
}

.row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

button,
.btn {
	appearance: none;
	border: 0;
	border-radius: 8px;
	padding: 11px 16px;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

button.secondary {
	background: #2a2d36;
	color: var(--ink);
}

button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.error {
	color: #f0a39a;
	min-height: 1.2em;
	margin: 0 0 10px;
}

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.notice {
	color: var(--ok);
	font-weight: 700;
}

.maps {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.map {
	position: relative;
	min-height: 128px;
	border-radius: 10px;
	border: 2px solid var(--line);
	overflow: hidden;
	cursor: pointer;
	background: #111;
	display: flex;
	align-items: flex-end;
}

.map .name {
	width: 100%;
	padding: 8px 10px;
	background: linear-gradient(transparent, #000c);
	font-weight: 700;
	font-size: 14px;
}

.map.picked {
	border-color: var(--accent);
	box-shadow: inset 0 0 0 999px rgb(227 91 44 / 28%);
}

.map.banned {
	opacity: 0.35;
	cursor: default;
	filter: grayscale(1);
}

.map .mark {
	position: absolute;
	top: 8px;
	right: 8px;
	background: var(--accent);
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 800;
}

.weekdays {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
}

.week-pool {
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

@media (max-width: 800px) {
	.weekdays {
		grid-template-columns: 1fr 1fr;
	}
}

.day {
	background: #101218;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px;
	text-align: center;
	min-height: 120px;
	background-size: cover;
	background-position: center;
}

.day.today {
	border-color: var(--accent);
}

.day .label {
	color: var(--muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.day .map-name {
	margin-top: 8px;
	font-weight: 800;
}

.muted {
	color: var(--muted);
}

.status-wrap {
	margin-top: 22px;
}

.status-wrap h3 {
	margin: 0 0 8px;
}

.legend {
	color: var(--muted);
	font-size: 13px;
	margin: 0 0 12px;
}

.legend span {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

table.status {
	width: 100%;
	border-collapse: collapse;
}

table.status th,
table.status td {
	text-align: center;
	padding: 7px 8px;
	border: 1px solid var(--line);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

table.status th {
	background: #101218;
	color: var(--muted);
	font-size: 11px;
}

table.status td.map-col {
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
	color: var(--ink);
	background: #101218;
}

.st-out {
	background: #b42318;
	color: #fff;
}

.st-keep {
	background: #f4f1ea;
	color: #16181e;
}

.st-play {
	background: #e2b114;
	color: #16181e;
}

.st-ban {
	background: #0a0a0a;
	color: #c8c4bc;
}

.st-wait {
	background: #101218;
	color: var(--muted);
}

table {
	width: 100%;
	border-collapse: collapse;
}

table.users th,
table.users td {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
}

table.users td:last-child {
	text-align: right;
}

th,
td {
	text-align: left;
	padding: 8px 6px;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
}

.flip {
	font-size: 22px;
	font-weight: 800;
}

.timer {
	font-size: 28px;
	font-weight: 800;
	color: var(--accent);
}

.bo5 {
	display: grid;
	gap: 6px;
	max-width: 520px;
}

.bo5-head,
.bo5-row {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 8px;
	align-items: center;
}

.bo5-head {
	color: var(--muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.bo5-total {
	font-size: 28px;
	color: var(--ink);
	font-weight: 800;
	text-transform: none;
	letter-spacing: 0;
}

.bo5-row {
	font-weight: 700;
}

.history-week {
	border-top: 1px solid var(--line);
	padding-top: 16px;
	margin-top: 16px;
}
