:root {
	--bg: #000;
	--panel: #0b0b0b;
	--text: #f5f5f5;
	--muted: #bdbdbd;
	--border: rgba(255, 255, 255, 0.12);
	--glow: rgba(255, 255, 255, 0.08);

	--gold: #d4af37;
	--gold-soft: rgba(212, 175, 55, 0.35);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica,
		Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
}

/* ===== NAV ===== */
.nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.nav-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

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

.brand .title {
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.brand .name {
	font-size: 18px;
	font-weight: 700;
}

.tabs {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.tabs a {
	text-decoration: none;
	color: var(--text);
	font-size: 14px;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
	transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.tabs a:hover {
	transform: translateY(-1px);
	border-color: rgba(255, 255, 255, 0.22);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
}

/* ===== LAYOUT ===== */
.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 28px 16px 80px;
}

.hero {
	padding: 28px 18px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: radial-gradient(900px 400px at 20% 0%, var(--glow), transparent),
		linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.hero h1 {
	margin: 0 0 6px;
	font-size: 30px;
	letter-spacing: -0.02em;
}

.hero p {
	margin: 0;
	color: var(--muted);
	max-width: 720px;
}

.section {
	margin-top: 28px;
	padding: 22px 18px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.section h2 {
	margin: 0 0 10px;
	font-size: 20px;
}

.section p {
	margin: 0;
	color: var(--muted);
}

.footer {
	margin-top: 28px;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

/* Mobile tweaks */
@media (max-width: 640px) {
	.brand {
		min-width: unset;
	}
	.hero h1 {
		font-size: 24px;
	}
}

/* ===== WINNERS WALL ===== */
.winner-sub {
	margin-top: -6px;
	color: var(--muted);
	font-size: 13px;
}

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

@media (max-width: 900px) {
	.winners-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 560px) {
	.winners-grid {
		grid-template-columns: 1fr;
	}
}

.winner-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: none;
	border: none;
}

.winner-photo {
	position: relative;
	aspect-ratio: 3 / 4; /* portrait */
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.winner-photo img.photo {
	position: absolute;
	width: 72%;
	height: 78%;
	object-fit: cover;
	z-index: 1;
}

.winner-photo img.frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	z-index: 2;
	pointer-events: none;
}

.nameplate {
	gap: 12px; /* extra space between year and name */
	margin: 14px 14px 18px;
	padding: 14px 10px;

	border-radius: 12px;
	border: 1px solid rgba(212, 175, 55, 0.4);
	background: linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(255, 255, 255, 0.04));

	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 6px 18px rgba(0, 0, 0, 0.4);

	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
	max-width: 85%;
}

.winner-year {
	order: 1;
	font-family: "Cinzel", serif;
	font-size: 22px;
	letter-spacing: 0.15em;
	color: #f5e6b0;
	text-align: center;
}

.winner-name {
	order: 2;
	font-family: "Cinzel", serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #f5e6b0;
	text-align: center;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

/* ===== PLAYER PROFILES ===== */

.players-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .players-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.player-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: transform 0.2s ease;
}

.player-card:hover {
  transform: translateY(-4px);
}

.player-name {
  font-family: "Cinzel", serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.player-nickname {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 10px;
}

.player-stats {
  color: var(--muted);
  font-size: 13px;
}

/* ===== PLAYER PROFILES ===== */

.players-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 18px;
}

@media (max-width: 900px) {
	.players-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.players-grid { grid-template-columns: 1fr; }
}

.player-card {
	border: 1px solid var(--border);
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
	box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.player-photo {
	aspect-ratio: 3 / 4;
	width: 100%;
	position: relative;
	border-bottom: 1px solid var(--border);
}

.player-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.player-body {
	padding: 16px 16px 18px;
	text-align: center;
}

.player-name {
	font-family: "Cinzel", serif;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 6px;
}

.player-nickname {
	color: #f5e6b0;
	font-family: "Cinzel", serif;
	font-size: 14px;
	letter-spacing: 0.10em;
	margin: 0 0 10px;
}

.player-desc {
	color: var(--muted);
	font-size: 13px;
	line-height: 1.55;
	margin: 0 0 14px;
}

.player-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 12px;
}

.stat {
	border: 1px solid rgba(212,175,55,0.35);
	border-radius: 14px;
	padding: 10px 8px;
	background: linear-gradient(180deg, rgba(212,175,55,0.12), rgba(255,255,255,0.02));
}

.stat .label {
	color: var(--muted);
	font-size: 11px;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.stat .value {
	font-family: "Cinzel", serif;
	font-size: 16px;
	color: #f5e6b0;
	letter-spacing: 0.06em;
}

.player-years {
	color: var(--muted);
	font-size: 12px;
}

.constitution-page {
	padding: 2rem 0 3rem;
}

.constitution-hero {
	text-align: center;
	margin-bottom: 2rem;
}

.constitution-kicker {
	font-family: 'Cinzel', serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #c9a64b;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.constitution-page h2 {
	font-family: 'Cinzel', serif;
	color: #f2d57a;
	font-size: 2.2rem;
	margin-bottom: 0.35rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.constitution-ratified {
	color: #d7c08a;
	font-style: italic;
	margin-bottom: 0;
}

.constitution-shell {
	background:
		linear-gradient(180deg, rgba(201, 166, 75, 0.12), rgba(201, 166, 75, 0.04)),
		radial-gradient(circle at top, rgba(255, 215, 120, 0.08), transparent 45%),
		#111111;
	border: 1px solid rgba(201, 166, 75, 0.45);
	border-radius: 18px;
	box-shadow:
		0 0 0 1px rgba(255, 215, 120, 0.08) inset,
		0 18px 40px rgba(0, 0, 0, 0.45);
	padding: 2rem;
	max-width: 950px;
	margin: 0 auto;
}

.constitution-text {
	padding-right: 0.75rem;
	color: #f4e7bf;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.8;
	font-size: 1.02rem;
}

.constitution-text h3 {
	font-family: 'Cinzel', serif;
	color: #f2d57a;
	font-size: 1.35rem;
	margin-top: 2.2rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.45rem;
	border-bottom: 1px solid rgba(201, 166, 75, 0.35);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.constitution-text h3:first-child {
	margin-top: 0;
}

.constitution-text h4 {
	color: #e8c96a;
	font-size: 1.02rem;
	margin-top: 1.2rem;
	margin-bottom: 0.45rem;
	font-weight: 700;
}

.constitution-text p {
	margin: 0 0 1rem;
	color: #f3e6c2;
}

.constitution-text ul {
	margin: 0.4rem 0 1rem 1.5rem;
	padding-left: 1rem;
}

.constitution-text li {
	margin-bottom: 0.4rem;
	color: #f3e6c2;
}

.constitution-text::-webkit-scrollbar {
	width: 10px;
}

.constitution-text::-webkit-scrollbar-track {
	background: #1a1a1a;
	border-radius: 999px;
}

.constitution-text::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #c9a64b, #8f6d1f);
	border-radius: 999px;
	border: 2px solid #1a1a1a;
}

.constitution-text {
	scrollbar-color: #c9a64b #1a1a1a;
	scrollbar-width: thin;
}

body {
	background: #080808;
	color: #f4e7bf;
}

/* ===== SCORING PAGE CLEAN FINAL ===== */

.scoring-page.section {
	padding: 34px 28px;
}

.scoring-hero {
	text-align: center;
	margin-bottom: 2rem;
}

.scoring-kicker {
	font-family: "Cinzel", serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #c9a64b;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
}

.scoring-page h2 {
	font-family: "Cinzel", serif;
	color: #f2d57a;
	font-size: 2.2rem;
	margin-bottom: 0.35rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.scoring-shell {
	background:
		linear-gradient(180deg, rgba(201, 166, 75, 0.12), rgba(201, 166, 75, 0.04)),
		radial-gradient(circle at top, rgba(255, 215, 120, 0.08), transparent 45%),
		#111111;
	border: 1px solid rgba(201, 166, 75, 0.45);
	border-radius: 22px;
	box-shadow:
		0 0 0 1px rgba(255, 215, 120, 0.08) inset,
		0 18px 40px rgba(0, 0, 0, 0.45);
	padding: 1rem;
	margin: 0 auto;
}

.scoring-table-wrap {
	overflow-x: hidden;
}

.scoring-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.82rem;
	color: #f4e7bf;
}

.scoring-table th,
.scoring-table td {
	padding: 8px 3px;
	text-align: center;
}

.scoring-table thead th {
	font-family: "Cinzel", serif;
	color: #f2d57a;
	background: rgba(201, 166, 75, 0.12);
	border-bottom: 1px solid rgba(201, 166, 75, 0.35);
	font-size: 0.72rem;
	letter-spacing: 0.01em;
	line-height: 1.05;
	white-space: normal;
	word-break: break-word;
}

.scoring-table thead th span {
	display: block;
}

.scoring-table tbody td {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: #f3e6c2;
	font-size: 0.82rem;
}

.scoring-table tbody tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.025);
}

.scoring-table tbody tr:hover {
	background: rgba(212, 175, 55, 0.08);
}

.scoring-table th:first-child,
.scoring-table td:first-child {
	width: 9%;
	text-align: left;
	padding-left: 4px;
	padding-right: 2px;
	font-family: "Cinzel", serif;
	font-weight: 700;
	color: #f5e6b0;
}

.scoring-table th:not(:first-child),
.scoring-table td:not(:first-child) {
	width: 7.2%;
}

.scoring-table .member-cell {
	padding-left: 4px;
	padding-right: 2px;
	font-size: 0.8rem;
	white-space: nowrap;
}

.scoring-table .highlight-cell,
.scoring-table .place-cell {
	color: #f2d57a;
	font-weight: 700;
}

.scoring-table thead th:nth-child(7) {
	font-size: 0.66rem;
}

/* ===== COUNTDOWN SECTION ===== */

.countdown-section {
	text-align: center;
}

.countdown-box {
	margin-top: 12px;
	padding: 24px;
	border: 1px solid rgba(212,175,55,0.4);
	border-radius: 16px;
	background:
	linear-gradient(180deg, rgba(212,175,55,0.18), rgba(255,255,255,0.04));
	box-shadow:
	0 0 0 1px rgba(255,255,255,0.05) inset,
	0 6px 18px rgba(0,0,0,0.4);
}

#countdown {
	font-family: "Cinzel", serif;
	font-size: 34px;
	letter-spacing: 0.08em;
	color: #f5e6b0;
	margin-bottom: 18px;
}

.join-button {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 999px;
	text-decoration: none;
	font-family: "Cinzel", serif;
	font-weight: 700;
	color: black;
	background: linear-gradient(180deg, #f2d57a, #c9a64b);
	box-shadow: 0 6px 14px rgba(0,0,0,0.4);
	transition: transform 0.15s ease;
}

.join-button:hover {
	transform: translateY(-2px);
}