:root {
	--ink: #171713;
	--paper: #f2efe3;
	--yellow: #f5c542;
	--red: #d94b35;
	--green: #238c64;
	--line: #171713;
}

* {
	box-sizing: border-box;
}

body {
	min-height: 100vh;
	margin: 0;
	color: var(--ink);
	background-color: var(--yellow);
	background-image:
		linear-gradient(rgba(23, 23, 19, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(23, 23, 19, 0.08) 1px, transparent 1px);
	background-size: 28px 28px;
	font-family: "Trebuchet MS", Verdana, sans-serif;
}

.tally-shell {
	width: min(1600px, calc(100% - 40px));
	margin: 0 auto;
	padding: clamp(18px, 3vw, 44px) 0;
}

.tally-header {
	display: grid;
	grid-template-columns: minmax(150px, 280px) 1fr auto;
	align-items: end;
	gap: clamp(18px, 3vw, 44px);
	padding-bottom: clamp(18px, 2vw, 28px);
	border-bottom: 5px solid var(--ink);
}

.tally-logo {
	display: block;
	width: 100%;
	height: auto;
}

.session-heading p {
	margin: 0 0 5px;
	font-size: clamp(0.75rem, 1.3vw, 1rem);
	font-weight: 900;
	text-transform: uppercase;
}

.session-heading h1 {
	margin: 0;
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(2.2rem, 6vw, 6.5rem);
	font-weight: 400;
	line-height: 0.9;
	letter-spacing: 0;
	text-transform: uppercase;
}

.session-status {
	padding: 10px 14px;
	border: 3px solid var(--ink);
	background: var(--paper);
	font-weight: 900;
	text-transform: uppercase;
}

.join-section {
	margin-top: clamp(20px, 3vw, 36px);
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: clamp(20px, 4vw, 54px);
}

.qr-wrap {
	display: grid;
	justify-items: center;
	gap: 8px;
	font-size: 0.9rem;
	text-transform: uppercase;
}

.qr-wrap img {
	width: clamp(160px, 20vw, 320px);
	height: auto;
	border: 4px solid var(--ink);
	background: #fff;
}

.round-callout p,
.round-callout span {
	display: block;
	margin: 0;
	font-weight: 900;
	text-transform: uppercase;
}

.round-callout > strong {
	display: block;
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(4rem, 11vw, 10rem);
	font-weight: 400;
	line-height: 0.9;
}

.compact-standings td {
	font-size: clamp(0.95rem, 1.6vw, 1.5rem);
}

.standings-section {
	margin-top: clamp(22px, 3vw, 42px);
}

.section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
}

h2 {
	margin: 0;
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(1.7rem, 3vw, 3.4rem);
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
}

#last-updated {
	font-size: 0.8rem;
	font-weight: 800;
}

.standings-wrap {
	margin-top: 12px;
	border: 4px solid var(--ink);
	background: var(--paper);
	box-shadow: 8px 8px 0 var(--ink);
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: clamp(12px, 2vw, 24px);
	border-bottom: 2px solid var(--ink);
	text-align: right;
	white-space: nowrap;
}

th {
	color: #fff;
	background: var(--ink);
	font-size: clamp(0.66rem, 1vw, 0.88rem);
	text-transform: uppercase;
}

th:nth-child(2),
td:nth-child(2) {
	width: 45%;
	text-align: left;
}

td {
	font-size: clamp(1rem, 2.2vw, 2rem);
	font-weight: 900;
}

td:first-child {
	color: var(--red);
}

tbody tr:last-child td {
	border-bottom: 0;
}

.empty-message {
	margin: 0;
	padding: 28px;
	font-size: 1.2rem;
	font-weight: 800;
	text-align: center;
}

.summary-section {
	margin-top: clamp(32px, 5vw, 64px);
}

.summary-grid {
	margin-top: 12px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	border: 3px solid var(--ink);
	background: var(--ink);
	gap: 3px;
}

.summary-item {
	min-width: 0;
	padding: clamp(12px, 2vw, 22px);
	background: var(--paper);
}

.summary-item span {
	display: block;
	font-size: clamp(0.62rem, 1vw, 0.8rem);
	font-weight: 900;
	text-transform: uppercase;
}

.summary-item strong {
	display: block;
	margin-top: 6px;
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	font-size: clamp(1.8rem, 4vw, 4rem);
	font-weight: 400;
	line-height: 1;
}

.fun-section {
	margin-top: clamp(26px, 4vw, 50px);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(18px, 3vw, 36px);
}

.fun-section article {
	padding-top: 14px;
	border-top: 5px solid var(--red);
}

.fun-section h2 {
	font-size: clamp(1.35rem, 2.2vw, 2.5rem);
}

.fun-section p {
	margin: 10px 0 0;
	font-size: clamp(1rem, 1.7vw, 1.5rem);
	font-weight: 800;
	line-height: 1.25;
}

.tally-error {
	color: var(--red);
	font-weight: 900;
}

@media (max-width: 760px) {
	.tally-shell {
		width: min(100% - 22px, 620px);
		padding-top: 12px;
	}

	.tally-header {
		grid-template-columns: 110px 1fr;
		align-items: center;
		gap: 14px;
	}

	.session-status {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.join-section {
		grid-template-columns: 110px 1fr;
		gap: 14px;
	}

	.qr-wrap img {
		width: 140px;
	}

	th,
	td {
		padding: 11px 9px;
	}

	th:nth-child(4),
	td:nth-child(4) {
		display: none;
	}

	.summary-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.fun-section {
		grid-template-columns: 1fr;
	}
}
.site-footer {
	width: min(1180px, calc(100% - 28px));
	margin: 0 auto;
	padding: 18px 14px 24px;
	color: #171713;
	font-family: "Trebuchet MS", Verdana, sans-serif;
	font-size: 0.85rem;
	font-weight: 800;
	text-align: center;
}
.site-footer a { color: inherit; font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.site-footer a:hover { text-decoration-thickness: 3px; }
.site-footer a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }