/* ============================================================
   5 SPOT CASA — design tokens + shared shell
   A private, cash-stakes NFL daily-fantasy league. The visual
   language borrows from stadium scoreboards and settlement
   ledgers, not generic dashboard chrome: chalky ink ground,
   end-zone crimson, ledger gold for money/rank, and the site's
   own oddball digital-clock face for anything that counts down
   or scores.
   ============================================================ */

:root{
	/* ground + surfaces */
	--ink: #0b0c0e;
	--surface: #16181c;
	--surface-2: #1e2126;
	--line: rgba(242, 239, 233, 0.10);
	--line-strong: rgba(242, 239, 233, 0.18);

	/* text */
	--text: #f2efe9;
	--muted: #9a9690;
	--muted-2: #6f6c67;

	/* accents */
	--crimson: #c81e3a;
	--crimson-bright: #e2405a;
	--gold: #d9a544;
	--gold-bright: #eec877;
	--silver: #c7cad1;
	--bronze: #c98a4b;

	/* type */
	--font-display: 'Oswald', 'Arial Narrow', sans-serif;
	--font-body: 'Lato', -apple-system, sans-serif;
	--font-score: ScoreboardFont, var(--font-display);

	/* rhythm */
	--gutter: 20px;
	--radius: 10px;
	--radius-lg: 16px;
	--shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

@font-face{
	font-family: ScoreboardFont;
	src: url("../fonts/atomic-clock-radio.ttf");
	font-display: swap;
}

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

html, body{
	margin: 0;
	padding: 0;
	background: var(--ink);
	color: var(--text);
}

body{
	font-family: var(--font-body);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3{
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 0;
	text-wrap: balance;
}

a{
	color: inherit;
}

::selection{
	background: var(--crimson);
	color: var(--text);
}

.eyebrow{
	font-family: var(--font-display);
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

.money{
	font-variant-numeric: tabular-nums;
	color: var(--gold-bright);
	font-weight: 700;
}

/* ---------- header / scoreboard strip ---------- */

.site-header{
	position: sticky;
	top: 0;
	z-index: 20;
	background:
		linear-gradient(180deg, rgba(11,12,14,.5) 0%, rgba(11,12,14,.8) 65%, rgba(11,12,14,.94) 100%),
		var(--ink) url("../images/lights.jpg") center 70% / cover no-repeat;
	border-bottom: 1px solid var(--line);
}

.header-bar{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gutter);
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px var(--gutter);
}

.brand{
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.brand img{
	height: 34px;
	width: auto;
	filter: brightness(0) invert(1);
}

.brand-word{
	font-family: var(--font-score);
	font-size: 22px;
	letter-spacing: 0.02em;
	color: var(--text);
	text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

.brand-word b{
	color: var(--crimson-bright);
}

.main-nav{
	display: flex;
	align-items: center;
	gap: 4px;
}

.main-nav a{
	font-family: var(--font-display);
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--muted);
	padding: 8px 14px;
	border-radius: 999px;
	transition: color .15s ease, background-color .15s ease;
}

.main-nav a:hover{
	color: var(--text);
	background: var(--surface-2);
}

.main-nav a.is-active{
	color: var(--ink);
	background: var(--crimson-bright);
}

.menu-toggle{
	display: none;
}

.scoreboard{
	/* No background of its own — the lights.jpg photo + overlay from
	   .site-header (its parent) shows through, so the nav bar and the
	   countdown strip read as one continuous photographic band instead of
	   a photo bar sitting on top of a flat one. */
	border-top: 1px solid var(--line);
}

.scoreboard-inner{
	max-width: 1100px;
	margin: 0 auto;
	padding: 10px var(--gutter);
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
}

.scoreboard .eyebrow{
	color: var(--muted);
}

.scoreboard-clock{
	font-family: var(--font-score);
	font-size: 22px;
	letter-spacing: 0.04em;
	color: var(--gold-bright);
	font-variant-numeric: tabular-nums;
}

/* mobile nav */
@media (max-width: 720px){
	.menu-toggle{
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border-radius: 8px;
		background: var(--surface-2);
		border: none;
		cursor: pointer;
	}
	.menu-toggle span,
	.menu-toggle span::before,
	.menu-toggle span::after{
		content: "";
		display: block;
		width: 18px;
		height: 2px;
		background: var(--text);
		position: relative;
		transition: transform .2s ease, opacity .2s ease;
	}
	.menu-toggle span::before{ position: absolute; top: -6px; }
	.menu-toggle span::after{ position: absolute; top: 6px; }

	.main-nav{
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		padding: 8px;
		gap: 2px;
		max-height: 0;
		overflow: hidden;
		transition: max-height .2s ease;
	}
	.main-nav a{
		padding: 12px 16px;
		border-radius: 8px;
		text-align: center;
	}
	#nav-toggle:checked ~ .header-bar .main-nav{
		max-height: 320px;
	}
	#nav-toggle:checked ~ .header-bar .menu-toggle span{
		background: transparent;
	}
	#nav-toggle:checked ~ .header-bar .menu-toggle span::before{
		top: 0;
		transform: rotate(45deg);
	}
	#nav-toggle:checked ~ .header-bar .menu-toggle span::after{
		top: 0;
		transform: rotate(-45deg);
	}
	#nav-toggle{
		display: none;
	}
}

/* ---------- hero banner (home page, and a compact version for every other
   page's title) ---------- */

.hero{
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	padding: 64px 24px;
	margin-bottom: 36px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	background:
		linear-gradient(180deg, rgba(11,12,14,.55) 0%, rgba(11,12,14,.85) 78%, var(--ink) 100%),
		var(--ink) url("../images/stadium.jpg") center 62% / cover no-repeat;
	box-shadow: var(--shadow);
}

.hero img{
	height: 80px;
	width: auto;
	filter: drop-shadow(0 6px 18px rgba(0,0,0,.5));
}

.hero h1{
	font-family: var(--font-score);
	font-size: clamp(30px, 6.5vw, 52px);
	line-height: 1.05;
	text-shadow: 0 4px 18px rgba(0,0,0,.65);
}

.hero h1 span{
	color: var(--crimson-bright);
}

.hero p{
	color: var(--text);
	font-size: 16px;
	max-width: 46ch;
	margin: 0;
	text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

/* Used on every page except Home — same photo/font treatment, shorter panel
   since these are just page titles, not a marketing hero. */
.hero--compact{
	padding: 36px 24px;
	margin-bottom: 32px;
	gap: 10px;
}

.hero--compact img{
	height: 52px;
}

.hero--compact h1{
	font-size: clamp(24px, 5.5vw, 36px);
}

/* ---------- shared page shell ---------- */

.page{
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px var(--gutter) 80px;
}

.page-title{
	font-size: clamp(28px, 5vw, 40px);
	margin-bottom: 28px;
}

.card{
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 24px;
}

.btn{
	font-family: var(--font-display);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 14px;
	color: var(--text);
	background: var(--surface-2);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	padding: 10px 22px;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

.btn:hover{
	background: var(--crimson);
	border-color: var(--crimson);
}

.btn-primary{
	background: var(--crimson);
	border-color: var(--crimson);
}

.btn-primary:hover{
	background: var(--crimson-bright);
	border-color: var(--crimson-bright);
}

/* ---------- footer ---------- */

.site-footer{
	border-top: 1px solid var(--line);
	padding: 24px var(--gutter);
	text-align: center;
	color: var(--muted-2);
	font-size: 13px;
}

/* ---------- DataTables theming (shared by standings + eliminator) ---------- */

table.dataTable{
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 6px !important;
	font-family: var(--font-body);
}

table.dataTable thead th{
	font-family: var(--font-display);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	text-align: left !important;
	border: none !important;
	padding: 0 14px 8px !important;
}

table.dataTable tbody tr{
	background: var(--surface);
}

table.dataTable tbody td{
	border: none !important;
	padding: 12px 14px !important;
	font-size: 15px;
}

table.dataTable tbody tr td:first-child{
	border-top-left-radius: var(--radius);
	border-bottom-left-radius: var(--radius);
}

table.dataTable tbody tr td:last-child{
	border-top-right-radius: var(--radius);
	border-bottom-right-radius: var(--radius);
}

table.dataTable tbody tr:hover{
	background: var(--surface-2);
}

/* rank badge — applied via JS render() to the position/rank column */
.rank-badge{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 700;
	background: var(--surface-2);
	color: var(--muted);
}

.rank-badge.gold{ background: var(--gold); color: var(--ink); }
.rank-badge.silver{ background: var(--silver); color: var(--ink); }
.rank-badge.bronze{ background: var(--bronze); color: var(--ink); }

.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_info{
	color: var(--muted);
	font-size: 13px;
}
