:root {
	--bg: #080d15;
	--surface: #111827;
	--surface-2: #172033;
	--surface-3: #202a40;
	--line: #2c3955;
	--text: #e7eefc;
	--muted: #96a8c8;
	--blue: #4d9fff;
	--blue-2: #2f7ee8;
	--green: #35d07f;
	--yellow: #ffd166;
	--red: #ff6262;
	--shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
	background: var(--bg);
}

body {
	margin: 0;
	font-family: Inter, Arial, Helvetica, sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(77, 159, 255, 0.16), transparent 34rem),
		linear-gradient(180deg, #08101d 0%, #0b1220 100%);
	background-attachment: fixed;
}

.container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 32px;
}

.nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-bottom: 26px;
}

.logo {
	font-size: 34px;
	font-weight: 900;
	letter-spacing: 0.5px;
}

.sub {
	color: var(--muted);
	margin-top: 4px;
}

.nav-links {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.nav-links a,
.button,
button {
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	padding: 10px 18px;
	background: #fff;
	color: #101828;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.nav-links a:hover,
.button:hover,
button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.button-primary,
button.primary {
	background: linear-gradient(135deg, var(--blue), var(--blue-2));
	color: #fff;
}

.button-danger,
button.danger {
	background: #fff;
	color: #b42318;
}

.card {
	background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(14, 20, 32, 0.98));
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: 28px;
	box-shadow: var(--shadow);
	margin-bottom: 28px;
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

h1,
h2,
h3 {
	margin: 0;
	letter-spacing: 0.3px;
}

h2 {
	font-size: 25px;
}

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

.section-title:before {
	content: '';
	width: 7px;
	height: 28px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--blue), var(--green));
}

.help {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

.divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.08);
	margin: 22px 0;
}

.grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}

.player-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.mini-panel {
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: 16px;
}

label {
	display: block;
	font-weight: 800;
	margin-bottom: 8px;
	color: #dbe7ff;
}

input,
select,
textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--surface-2);
	color: var(--text);
	padding: 13px 14px;
	font-size: 15px;
	margin-bottom: 14px;
	outline: none;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(77, 159, 255, 0.15);
}

textarea {
	min-height: 92px;
	resize: vertical;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 180px;
	gap: 14px;
	align-items: end;
}

button {
	width: auto;
	margin-bottom: 0;
}

.full-button {
	width: 100%;
	justify-content: center;
}

table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 10px;
}

th {
	text-align: left;
	color: var(--muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0 12px 6px;
}

td {
	background: rgba(255, 255, 255, 0.035);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	padding: 12px;
	vertical-align: middle;
}

td:first-child {
	border-left: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px 0 0 14px;
}

td:last-child {
	border-right: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 0 14px 14px 0;
}

.score {
	color: var(--blue);
	font-weight: 900;
}

.status-review {
	color: var(--yellow);
	font-weight: 900;
}

.status-official {
	color: var(--green);
	font-weight: 900;
}

.notice,
.error {
	padding: 14px 16px;
	border-radius: 16px;
	margin-bottom: 18px;
	font-weight: 700;
}

.notice {
	background: rgba(53, 208, 127, 0.12);
	border: 1px solid rgba(53, 208, 127, 0.35);
}

.error {
	background: rgba(255, 98, 98, 0.12);
	border: 1px solid rgba(255, 98, 98, 0.35);
}

.checkbox-list {
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 14px;
	padding: 10px;
	margin-top: 4px;
}

.checkbox-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 13px;
	margin: 7px 0;
}

.checkbox-item input {
	width: auto;
	margin: 0;
}

.autocomplete-wrap {
	position: relative;
}

.suggestions {
	display: none;
	position: absolute;
	z-index: 30;
	left: 0;
	right: 0;
	top: 50px;
	background: #0f1728;
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.suggestion {
	padding: 12px 14px;
	cursor: pointer;
}

.suggestion:hover {
	background: rgba(77, 159, 255, 0.16);
}

.actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.inline-form {
	display: inline;
}

.trophy {
	display: inline-flex;
	width: 22px;
	height: 22px;
	margin-right: 10px;
	vertical-align: middle;
}

.trophy svg {
	width: 100%;
	height: 100%;
	display: block;
}

.trophy.gold {
	color: #f5c542;
}

.trophy.silver {
	color: #c9d3df;
}

.trophy.bronze {
	color: #c47a3c;
}

.player-name-cell {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rank-number {
	color: var(--muted);
	font-weight: 800;
}

@media (max-width: 900px) {
	.nav,
	.card-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.grid,
	.player-grid,
	.form-row {
		grid-template-columns: 1fr;
	}
}
