/**
 * Savage Fantasy Football League
 * Scoped to .savfl so nothing leaks into the rest of the Da Booth theme.
 */

.savfl {
	/* Palette taken from the SFFL crest: black ground, brushed chrome, gold. */
	--savfl-ink: #07070a;
	--savfl-panel: #121216;
	--savfl-panel-2: #1a1a20;
	--savfl-line: #2c2c34;
	--savfl-text: #f3f4f6;
	--savfl-muted: #9aa0a8;

	--savfl-gold: #f2b211;
	--savfl-gold-soft: #f7c948;
	--savfl-gold-deep: #8a5f10;

	--savfl-silver: #c8cdd4;
	--savfl-silver-dim: #7c838c;

	/* Semantic only — never used as an accent. */
	--savfl-alert: #e5372a;
	--savfl-green: #35c17a;

	/* Text that sits on top of a gold fill. */
	--savfl-on-gold: #0a0a0c;

	--savfl-radius: 14px;
	--savfl-shell: 1180px;

	background: var(--savfl-ink);
	color: var(--savfl-text);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

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

.savfl-shell {
	max-width: var(--savfl-shell);
	margin: 0 auto;
	padding: 0 20px 72px;
}

.savfl-alert {
	margin: 48px 0;
	padding: 20px 24px;
	border-left: 4px solid var(--savfl-gold);
	background: var(--savfl-panel);
	border-radius: 0 var(--savfl-radius) var(--savfl-radius) 0;
}

.savfl-alert code {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--savfl-gold);
	word-break: break-all;
}

/* ---------------------------------------------------------------- Hero -- */

.savfl-hero {
	position: relative;
	overflow: hidden;
	padding: 84px 20px 72px;
	background:
		radial-gradient(120% 90% at 14% 0%, rgba(242, 178, 17, 0.22) 0%, rgba(242, 178, 17, 0) 60%),
		radial-gradient(90% 80% at 92% 10%, rgba(200, 205, 212, 0.14) 0%, rgba(200, 205, 212, 0) 62%),
		var(--savfl-ink);
	border-bottom: 1px solid var(--savfl-line);
}

/* Yard lines. */
.savfl-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.05) 0 1px,
		transparent 1px 84px
	);
	pointer-events: none;
}

.savfl-hero__inner {
	position: relative;
	max-width: var(--savfl-shell);
	margin: 0 auto;
}

.savfl-hero__eyebrow {
	margin: 0 0 18px;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--savfl-gold);
}

.savfl-hero__title {
	margin: 0;
	font-family: "Anton", "Barlow Condensed", Impact, sans-serif;
	font-weight: 400;
	line-height: 0.86;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.savfl-hero__title span {
	display: block;
}

/* Crest version of the headline. */
.savfl-hero__title--logo {
	line-height: 0;
}

.savfl-hero__logo {
	display: block;
	width: clamp(240px, 34vw, 420px);
	height: auto;
	filter: drop-shadow(0 10px 32px rgba(0, 0, 0, 0.6));
}

/* Brushed-chrome fill, gold drop — the crest's own treatment. */
.savfl-hero__title-top {
	font-size: clamp(56px, 12vw, 132px);
	color: var(--savfl-silver);
	background: linear-gradient(180deg, #ffffff 6%, #dfe4e9 34%, #8b929b 52%, #f2f5f8 74%, #aeb5bd 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Older engines that ignore background-clip still get a solid chrome tone. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
	.savfl-hero__title-top { color: var(--savfl-silver); -webkit-text-fill-color: currentColor; }
	.savfl-hero__title-mid { color: var(--savfl-gold); -webkit-text-fill-color: currentColor; }
}

.savfl-hero__title-mid {
	font-size: clamp(56px, 12vw, 132px);
	color: var(--savfl-gold);
	background: linear-gradient(180deg, #f7d071 4%, #f2b211 40%, #a9760f 62%, #f7c948 96%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Chrome name plate under the wordmark, as on the crest. */
.savfl-hero__title-bot {
	margin-top: 12px;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: clamp(18px, 3.4vw, 34px);
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--savfl-silver);
}

.savfl-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.savfl-hero__stats li {
	min-width: 104px;
	padding: 14px 20px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--savfl-line);
	border-radius: var(--savfl-radius);
	backdrop-filter: blur(6px);
}

.savfl-hero__stats strong {
	display: block;
	font-family: "Anton", sans-serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.1;
	color: var(--savfl-gold);
}

.savfl-hero__stats span {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--savfl-muted);
}

/* Hero call-to-action. */
.savfl-hero__actions {
	margin: 26px 0 0;
}

.savfl-btn {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	padding: 13px 24px;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--savfl-on-gold);
	background: linear-gradient(180deg, #f7d071 0%, #f2b211 52%, #cf9410 100%);
	border: 1px solid rgba(255, 226, 150, 0.6);
	border-radius: 999px;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.savfl-btn:hover,
.savfl-btn:focus-visible {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.savfl-btn__ext {
	font-size: 14px;
}

.savfl-btn--sm {
	padding: 11px 22px;
	font-size: 15px;
}

.savfl-btn--ghost {
	color: var(--savfl-silver);
	background: transparent;
	border: 1px solid var(--savfl-line);
}

.savfl-btn--ghost:hover,
.savfl-btn--ghost:focus-visible {
	color: var(--savfl-text);
	border-color: var(--savfl-silver-dim);
	filter: none;
}

.savfl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.savfl-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ------------------------------------------------------ Weekly overview -- */

.savfl-recap {
	display: none;
}

.savfl-recap.is-active {
	display: block;
}

.savfl-nojs .savfl-recap {
	display: block;
}

.savfl-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.savfl-tile {
	padding: 18px 20px;
	background: var(--savfl-panel);
	border: 1px solid var(--savfl-line);
	border-radius: var(--savfl-radius);
}

.savfl-tile--gold {
	border-color: rgba(242, 178, 17, 0.45);
	background:
		linear-gradient(180deg, rgba(242, 178, 17, 0.09), rgba(242, 178, 17, 0)),
		var(--savfl-panel);
}

.savfl-tile__label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--savfl-muted);
}

.savfl-tile__value {
	display: block;
	margin: 6px 0 4px;
	font-family: "Anton", sans-serif;
	font-size: 34px;
	font-weight: 400;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--savfl-text);
}

.savfl-tile--gold .savfl-tile__value {
	color: var(--savfl-gold);
}

.savfl-tile__who {
	display: block;
	font-size: 13px;
	line-height: 1.35;
	color: var(--savfl-muted);
}

/* The written recap. */
.savfl-story {
	margin: 0 0 30px;
	overflow: hidden;
	background: var(--savfl-panel);
	border: 1px solid var(--savfl-line);
	border-radius: var(--savfl-radius);
}

.savfl-recap__video {
	margin: 0 0 26px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #000;
	border: 1px solid var(--savfl-line);
	border-radius: var(--savfl-radius);
	box-shadow: 0 0 0 1px rgba(242, 178, 17, 0.25);
}

.savfl-recap__video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.savfl-story__hero img {
	display: block;
	width: 100%;
	height: auto;
}

.savfl-story__body {
	padding: 26px 28px 30px;
}

.savfl-story__eyebrow {
	margin: 0 0 8px;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--savfl-gold);
}

.savfl-story__title {
	margin: 0 0 14px;
	font-family: "Anton", sans-serif;
	font-size: clamp(24px, 3.4vw, 34px);
	font-weight: 400;
	line-height: 1.08;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--savfl-text);
}

.savfl-story__text {
	max-width: 68ch;
	color: #d6d9de;
}

.savfl-story__text > :first-child {
	margin-top: 0;
}

.savfl-story__text > :last-child {
	margin-bottom: 0;
}

.savfl-story__text a {
	color: var(--savfl-gold);
}

.savfl-story__text h2,
.savfl-story__text h3 {
	font-family: "Barlow Condensed", "Inter", sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--savfl-text);
}

.savfl-story__text img,
.savfl-story__text iframe,
.savfl-story__text video,
.savfl-story__text blockquote.instagram-media,
.savfl-story__text blockquote.tiktok-embed {
	max-width: 100%;
	border-radius: 10px;
}

/* Keep embeds from bursting the column. */
.savfl-story__text .wp-block-embed__wrapper {
	position: relative;
}

.savfl-story__text figure {
	margin: 20px 0;
}

.savfl-story__text figcaption {
	margin-top: 6px;
	font-size: 13px;
	color: var(--savfl-muted);
}

.savfl-story__text .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
}

.savfl-story__text .wp-block-gallery figure {
	margin: 0;
}

/* ---------------------------------------------------------- League chat -- */

.savfl-chat__note {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--savfl-muted);
}

.savfl-chat__note a {
	color: var(--savfl-gold);
}

.savfl-chat__composer {
	padding: 22px 24px;
	background: var(--savfl-panel);
	border: 1px solid var(--savfl-line);
	border-radius: var(--savfl-radius);
}

.savfl-chat__form {
	display: grid;
	gap: 14px;
}

.savfl-chat__field {
	display: grid;
	gap: 6px;
	margin: 0;
}

.savfl-chat__field label {
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--savfl-muted);
}

.savfl-chat__field--name {
	max-width: 320px;
}

.savfl-chat input[type="text"],
.savfl-chat input[type="email"],
.savfl-chat textarea {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	color: var(--savfl-text);
	background: var(--savfl-panel-2);
	border: 1px solid var(--savfl-line);
	border-radius: 10px;
	resize: vertical;
}

.savfl-chat input[type="text"]:focus,
.savfl-chat input[type="email"]:focus,
.savfl-chat textarea:focus {
	outline: 2px solid var(--savfl-gold);
	outline-offset: 1px;
	border-color: transparent;
}

.savfl-chat ::placeholder {
	color: #5f6670;
}

.savfl-chat .form-submit {
	margin: 0;
}

.savfl-chat input[type="submit"] {
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--savfl-on-gold);
	background: linear-gradient(180deg, #f7d071 0%, #f2b211 52%, #cf9410 100%);
	border: 1px solid rgba(255, 226, 150, 0.6);
	border-radius: 999px;
	padding: 12px 26px;
	cursor: pointer;
}

.savfl-chat input[type="submit"]:hover {
	filter: brightness(1.08);
}

/* Anything the theme prints that we do not want in the chat box. */
.savfl-chat .comment-form-cookies-consent,
.savfl-chat .comment-form-url,
.savfl-chat .comment-form-email {
	display: none;
}

.savfl-chat__list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--savfl-panel);
	border: 1px solid var(--savfl-line);
	border-radius: var(--savfl-radius);
	overflow: hidden;
}

.savfl-chat__msg {
	display: flex;
	gap: 14px;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.savfl-chat__msg:last-child {
	border-bottom: 0;
}

.savfl-chat__msg:target {
	background: rgba(242, 178, 17, 0.08);
}

.savfl-chat__avatar {
	display: flex;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(
		150deg,
		hsl(var(--savfl-chat-hue, 40) 45% 42%),
		hsl(calc(var(--savfl-chat-hue, 40) + 24) 42% 26%)
	);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
}

.savfl-chat__body {
	min-width: 0;
	flex: 1 1 auto;
}

.savfl-chat__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: baseline;
	margin: 0 0 4px;
}

.savfl-chat__author {
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--savfl-text);
}

.savfl-chat__meta time {
	font-size: 12px;
	color: var(--savfl-muted);
}

.savfl-chat__text {
	overflow-wrap: anywhere;
	color: #d6d9de;
}

.savfl-chat__text p {
	margin: 0 0 8px;
}

.savfl-chat__text p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------- Transactions -- */

.savfl-empty {
	padding: 32px 28px;
	background: var(--savfl-panel);
	border: 1px solid var(--savfl-line);
	border-radius: var(--savfl-radius);
	color: var(--savfl-muted);
}

.savfl-empty p {
	margin: 0 0 8px;
	max-width: 62ch;
}

.savfl-empty p:last-child {
	margin-bottom: 0;
}

.savfl-empty strong {
	color: var(--savfl-text);
}

.savfl-empty a {
	color: var(--savfl-gold);
}

.savfl-moves {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	align-items: start;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.savfl-move {
	padding: 18px 20px;
	background: var(--savfl-panel);
	border: 1px solid var(--savfl-line);
	border-radius: var(--savfl-radius);
}

.savfl-move__head {
	display: flex;
	gap: 14px;
	align-items: center;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--savfl-line);
}

.savfl-move__who {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.savfl-move__team {
	overflow: hidden;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--savfl-text);
}

.savfl-move__meta {
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--savfl-muted);
}

.savfl-move__list {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.savfl-move__row {
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 6px 0;
}

.savfl-move__tag {
	flex: 0 0 auto;
	width: 72px;
	padding: 3px 0;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
	border-radius: 5px;
}

.savfl-move__tag--add {
	color: #06251a;
	background: var(--savfl-green);
}

.savfl-move__tag--drop {
	color: var(--savfl-text);
	background: #3a2024;
	border: 1px solid #5d3036;
}

.savfl-move__player {
	font-weight: 600;
}

/* --------------------------------------------------------------- Intro -- */

.savfl-intro {
	max-width: 720px;
	margin: 44px 0 0;
	color: #d3d3dd;
}

.savfl-intro p:first-child {
	margin-top: 0;
}

.savfl-intro a {
	color: var(--savfl-gold);
}

/* ---------------------------------------------------------------- Tabs -- */

.savfl-tabs {
	display: flex;
	gap: 4px;
	margin: 44px 0 0;
	padding-bottom: 2px;
	overflow-x: auto;
	border-bottom: 1px solid var(--savfl-line);
	scrollbar-width: none;
}

.savfl-tabs::-webkit-scrollbar {
	display: none;
}

.savfl-tab {
	flex: 0 0 auto;
	padding: 14px 22px;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: var(--savfl-muted);
	border-bottom: 3px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.savfl-tab:hover,
.savfl-tab:focus-visible {
	color: var(--savfl-text);
}

.savfl-tab.is-active {
	color: var(--savfl-text);
	border-bottom-color: var(--savfl-gold);
}

/* -------------------------------------------------------------- Panels -- */

.savfl-panel {
	display: none;
	padding-top: 36px;
}

.savfl-panel.is-active {
	display: block;
}

/* No JS: show everything stacked. */
.savfl-nojs .savfl-panel {
	display: block;
}

.savfl-panel__head {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}

.savfl-panel__head h2 {
	margin: 0;
	font-family: "Anton", sans-serif;
	font-size: clamp(26px, 4vw, 38px);
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--savfl-text);
}

.savfl-hint {
	margin: 0;
	font-size: 14px;
	color: var(--savfl-muted);
}

.savfl-toggle {
	display: inline-flex;
	padding: 4px;
	background: var(--savfl-panel);
	border: 1px solid var(--savfl-line);
	border-radius: 999px;
}

.savfl-toggle__btn {
	padding: 8px 18px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--savfl-muted);
	background: none;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.savfl-toggle__btn.is-active {
	color: var(--savfl-on-gold);
	background: var(--savfl-gold);
}

.savfl-view {
	display: none;
}

.savfl-view.is-active {
	display: block;
}

.savfl-nojs .savfl-view {
	display: block;
}

/* -------------------------------------------------------------- Tables -- */

.savfl-tablewrap {
	overflow-x: auto;
	background: var(--savfl-panel);
	border: 1px solid var(--savfl-line);
	border-radius: var(--savfl-radius);
}

.savfl-table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.savfl-table th {
	padding: 14px 12px;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-align: left;
	text-transform: uppercase;
	color: var(--savfl-muted);
	background: var(--savfl-panel-2);
	border-bottom: 1px solid var(--savfl-line);
}

.savfl-table td {
	padding: 12px;
	font-size: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.savfl-table tbody tr:last-child td {
	border-bottom: 0;
}

.savfl-table tbody tr:hover td {
	background: rgba(255, 255, 255, 0.03);
}

.savfl-col-rank {
	width: 44px;
	padding-left: 18px !important;
	font-family: "Anton", sans-serif;
	color: var(--savfl-muted);
}

.savfl-table tbody tr:nth-child(1) .savfl-col-rank,
.savfl-table tbody tr:nth-child(2) .savfl-col-rank,
.savfl-table tbody tr:nth-child(3) .savfl-col-rank {
	color: var(--savfl-gold);
}

.savfl-col-num,
.savfl-col-streak {
	text-align: right;
}

.savfl-col-streak {
	padding-right: 18px !important;
	color: var(--savfl-muted);
}

.savfl-col-div {
	font-size: 13px;
	color: var(--savfl-muted);
	white-space: nowrap;
}

.savfl-teamcell {
	display: flex;
	gap: 14px;
	align-items: center;
}

.savfl-teamcell__text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.savfl-teamcell__name {
	font-weight: 600;
}

.savfl-teamcell__owner {
	font-size: 12px;
	color: var(--savfl-muted);
}

.savfl-division {
	margin-bottom: 30px;
}

.savfl-division__name {
	margin: 0 0 12px;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--savfl-gold);
}

/* -------------------------------------------------------------- Badges -- */

.savfl-badge {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--savfl-on-gold);
	border-radius: 10px;
}

.savfl-badge--gold {
	background: linear-gradient(150deg, #f7d071 0%, #f2b211 46%, #a9760f 100%);
	border: 1px solid rgba(255, 226, 150, 0.5);
}

.savfl-badge--chrome {
	background: linear-gradient(150deg, #f2f5f8 0%, #c8cdd4 46%, #7c838c 100%);
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.savfl-badge--sm {
	width: 48px;
	height: 48px;
	font-size: 13px;
	border-radius: 11px;
}

.savfl-badge--lg {
	width: 76px;
	height: 76px;
	font-size: 20px;
	border-radius: 16px;
}

img.savfl-badge {
	object-fit: cover;
	background: var(--savfl-panel-2);
	border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Poster-derived icon: frame it on the helmet rather than the card's centre. */
img.savfl-badge--art {
	object-position: 50% 19%;
}

/* --------------------------------------------------------------- Cards -- */

.savfl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	align-items: start; /* Cards keep their own height when a roster opens. */
	gap: 16px;
}

.savfl-card {
	display: flex;
	flex-direction: column;
	padding: 20px;
	background: var(--savfl-panel);
	border: 1px solid var(--savfl-line);
	border-radius: var(--savfl-radius);
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.savfl-card:hover {
	border-color: rgba(242, 178, 17, 0.5);
	transform: translateY(-2px);
}

.savfl-card__top {
	display: flex;
	gap: 16px;
	align-items: center;
}

.savfl-card__name {
	margin: 0;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--savfl-text);
}

.savfl-card__owner {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--savfl-muted);
}

.savfl-card__meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 18px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--savfl-line);
}

.savfl-card__meta div {
	min-width: 0;
}

.savfl-card__meta dt {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--savfl-muted);
}

.savfl-card__meta dd {
	margin: 3px 0 0;
	font-size: 16px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--savfl-text);
}

/* Team poster card. */
.savfl-card--poster {
	padding: 0;
	overflow: hidden;
}

.savfl-card--poster .savfl-card__top,
.savfl-card--poster .savfl-card__meta,
.savfl-card--poster .savfl-roster {
	margin-left: 20px;
	margin-right: 20px;
}

.savfl-card--poster .savfl-card__top {
	margin-top: 18px;
}

.savfl-card--poster .savfl-roster {
	margin-bottom: 20px;
}

.savfl-card__poster {
	display: block;
	line-height: 0;
	background: #000;
	border-bottom: 1px solid var(--savfl-line);
}

.savfl-card__poster img {
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.savfl-card--poster:hover .savfl-card__poster img {
	transform: scale(1.02);
}

.savfl-card__poster:focus-visible {
	outline: 2px solid var(--savfl-gold);
	outline-offset: -2px;
}

/* ------------------------------------------------------------- Rosters -- */

.savfl-roster {
	margin-top: 16px;
	border-top: 1px solid var(--savfl-line);
}

.savfl-roster summary {
	padding-top: 14px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--savfl-gold);
	cursor: pointer;
	list-style: none;
}

.savfl-roster summary::-webkit-details-marker {
	display: none;
}

.savfl-roster summary::after {
	content: " +";
}

.savfl-roster[open] summary::after {
	content: " –";
}

.savfl-roster__list {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.savfl-roster__row {
	display: grid;
	grid-template-columns: 52px 1fr auto auto;
	gap: 8px;
	align-items: center;
	padding: 7px 0;
	font-size: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.savfl-roster__row:last-child {
	border-bottom: 0;
}

.savfl-roster__slot {
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	color: var(--savfl-muted);
	background: var(--savfl-panel-2);
	border-radius: 5px;
	padding: 3px 0;
}

.savfl-roster__row.is-starter .savfl-roster__slot {
	color: var(--savfl-on-gold);
	background: var(--savfl-silver);
}

.savfl-roster__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.savfl-roster__team {
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--savfl-muted);
}

.savfl-roster__inj {
	width: 18px;
	height: 18px;
	font-size: 10px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	color: #fff;
	background: var(--savfl-alert);
	border-radius: 50%;
}

/* ------------------------------------------------------------ Schedule -- */

.savfl-weeks {
	display: flex;
	gap: 6px;
	margin-bottom: 22px;
	overflow-x: auto;
	padding-bottom: 6px;
	scrollbar-width: thin;
}

.savfl-week {
	flex: 0 0 auto;
	padding: 9px 16px;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--savfl-muted);
	background: var(--savfl-panel);
	border: 1px solid var(--savfl-line);
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.savfl-week:hover {
	color: var(--savfl-text);
}

.savfl-week.is-active {
	color: var(--savfl-on-gold);
	background: var(--savfl-gold);
	border-color: var(--savfl-gold);
}

.savfl-matchups {
	display: none;
	grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	gap: 14px;
}

.savfl-matchups.is-active {
	display: grid;
}

.savfl-nojs .savfl-matchups {
	display: grid;
}

.savfl-matchup {
	padding: 16px 18px;
	background: var(--savfl-panel);
	border: 1px solid var(--savfl-line);
	border-radius: var(--savfl-radius);
}

.savfl-matchup__side {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 8px 0;
}

.savfl-matchup__name {
	flex: 1 1 auto;
	overflow: hidden;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--savfl-muted);
}

.savfl-matchup__side.is-winner .savfl-matchup__name {
	color: var(--savfl-text);
}

.savfl-matchup__score {
	font-family: "Anton", sans-serif;
	font-size: 20px;
	font-variant-numeric: tabular-nums;
	color: var(--savfl-muted);
}

.savfl-matchup__side.is-winner .savfl-matchup__score {
	color: var(--savfl-gold);
}

.savfl-matchup__at {
	display: block;
	padding-left: 62px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #55555f;
}

/* -------------------------------------------------------------- Footer -- */

.savfl-foot {
	margin-top: 56px;
	padding-top: 24px;
	font-size: 13px;
	color: var(--savfl-muted);
	border-top: 1px solid var(--savfl-line);
}

.savfl-foot p {
	margin: 0 0 6px;
}

.savfl-foot__brand a {
	color: var(--savfl-gold);
	text-decoration: none;
}

.savfl-foot__brand a:hover {
	text-decoration: underline;
}

/* -------------------------------------------------- Live scoreboard -- */

.savfl-live {
	margin: 0 0 30px;
	padding: 20px 20px 22px;
	background:
		radial-gradient(900px 220px at 12% -40%, rgba(242, 178, 17, 0.1), transparent 70%),
		var(--savfl-panel);
	border: 1px solid var(--savfl-line);
	border-radius: var(--savfl-radius);
}

.savfl-live__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	margin-bottom: 16px;
}

.savfl-live__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--savfl-text);
}

.savfl-live__dot {
	width: 10px;
	height: 10px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--savfl-silver-dim);
}

.savfl-live.is-live .savfl-live__dot {
	background: var(--savfl-alert);
	animation: savfl-pulse 1.8s ease-in-out infinite;
}

.savfl-live.is-final .savfl-live__dot {
	background: var(--savfl-green);
}

@keyframes savfl-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(229, 55, 42, 0.55); }
	60%      { box-shadow: 0 0 0 8px rgba(229, 55, 42, 0); }
}

.savfl-live__status {
	margin: 0;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--savfl-muted);
}

.savfl-live__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 12px;
}

.savfl-live__game {
	padding: 6px 4px;
	background: var(--savfl-panel-2);
	border: 1px solid var(--savfl-line);
	border-radius: 12px;
}

.savfl-live__side {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 9px;
}

.savfl-live__side + .savfl-live__side {
	border-top: 1px solid var(--savfl-line);
	border-radius: 0 0 9px 9px;
}

.savfl-live__side .savfl-badge {
	width: 40px;
	height: 40px;
	font-size: 12px;
	border-radius: 10px;
}

.savfl-live__name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	font-weight: 600;
	font-size: 15px;
	color: var(--savfl-silver);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.savfl-live__side.is-leading .savfl-live__name {
	color: var(--savfl-text);
}

.savfl-live__nums {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.1;
}

.savfl-live__score {
	font-family: "Barlow Condensed", "Inter", sans-serif;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--savfl-silver-dim);
}

.savfl-live__side.is-leading .savfl-live__score {
	color: var(--savfl-gold);
}

.savfl-live__proj {
	min-height: 14px;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--savfl-muted);
}

/* A score that just moved gets a short gold lift. */
.savfl-live__score.is-bumped {
	animation: savfl-bump 900ms ease-out;
}

@keyframes savfl-bump {
	0%   { color: var(--savfl-gold-soft); transform: translateY(-2px); }
	100% { color: inherit; transform: none; }
}

@media (max-width: 640px) {
	.savfl-live {
		padding: 16px 14px 18px;
	}

	.savfl-live__grid {
		grid-template-columns: 1fr;
	}

	.savfl-live__score {
		font-size: 23px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.savfl-live__dot,
	.savfl-live__score.is-bumped {
		animation: none !important;
	}
}

/* ------------------------------------------------------------- Mobile -- */

@media (max-width: 640px) {
	.savfl-hero {
		padding: 56px 20px 48px;
	}

	.savfl-hero__stats li {
		flex: 1 1 calc(50% - 7px);
		min-width: 0;
		padding: 12px 14px;
	}



	.savfl-card__meta {
		grid-template-columns: repeat(3, 1fr);
	}

	.savfl-tab {
		padding: 12px 14px;
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.savfl * {
		transition: none !important;
	}
}
