/*
Theme Name: ShardForge Studios
Description: Cinematic dark studio theme for ShardForge Studios, developer of Shardlands Arena and The Meridian. Studio logo hero, full-bleed game banners, screenshot galleries with a mobile lightbox, a Games post type with per-game accent colours, devlog, press kit template and one-click setup. Mobile-first classic PHP theme, no page builder required.
Author: ShardForge Studios
Version: 1.5.12
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shardforge
Tags: blog, entertainment, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, footer-widgets, threaded-comments, translation-ready, wide-blocks, editor-style, theme-options

ShardForge Studios theme, (C) 2026 ShardForge Studios. GPLv2 or later.
Fonts: Lilita One & Inter (SIL OFL 1.1). Brand icons: Simple Icons (CC0).
Styles are mobile-first: base rules target phones, min-width queries add layout.
*/

/* ==========================================================================
   1. Tokens (palette sampled from the ShardForge Studios logo)
   ========================================================================== */
:root {
	--sf-ember: #ff8a1c;
	--sf-gold: #ffc22e;
	--sf-crystal: #4aa8ff;
	--sf-ice: #7fdcff;
	--sf-amethyst: #9a5cff;

	--sf-bg: #07080c;
	--sf-bg-2: #0b0d13;
	--sf-surface: #11141c;
	--sf-surface-2: #171b26;
	--sf-glass: rgba(16, 19, 28, 0.62);
	--sf-line: rgba(255, 255, 255, 0.07);
	--sf-line-strong: rgba(255, 255, 255, 0.14);

	--sf-text: #e9ebf1;
	--sf-muted: #a3abbc;
	--sf-dim: #7f879b;

	--sf-font-display: "Lilita One", "Arial Black", system-ui, sans-serif;
	--sf-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--sf-r-sm: 10px;
	--sf-r: 16px;
	--sf-r-lg: 24px;
	--sf-header-h: 64px;
	--sf-gutter: 20px;
	--sf-accent: var(--sf-crystal);
	--sf-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 1000px) {
	:root {
		--sf-header-h: 80px;
		--sf-gutter: 32px;
	}
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--sf-header-h) + 16px);
}

body {
	margin: 0;
	background: var(--sf-bg);
	color: var(--sf-text);
	font-family: var(--sf-font-body);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

@media (min-width: 900px) {
	body { font-size: 1.0625rem; }
}

img,
svg,
video,
iframe { max-width: 100%; }

img { height: auto; display: block; }

a {
	color: var(--sf-ice);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

a:hover { color: #fff; }

:focus-visible {
	outline: 2px solid var(--sf-ice);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Lilita One ships one weight — keep headings at 400 to avoid faux bold. */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--sf-font-display);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: 0.005em;
	color: #fff;
	margin: 0 0 0.5em;
	overflow-wrap: break-word;
}

h1 { font-size: clamp(2.2rem, 6.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.25em; }

::selection { background: var(--sf-ember); color: #140a02; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
	background: var(--sf-ember);
	border-radius: 999px;
	clip: auto !important;
	clip-path: none;
	color: #140a02;
	display: block;
	font-weight: 700;
	height: auto;
	left: 12px;
	padding: 12px 20px;
	top: 12px;
	width: auto;
	z-index: 100000;
}

.sf-container {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: var(--sf-gutter);
}

.sf-icon { flex-shrink: 0; vertical-align: middle; }

/* ==========================================================================
   3. Shared components
   ========================================================================== */
.sf-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--sf-ice);
}

.sf-eyebrow::before,
.sf-eyebrow::after {
	content: "";
	width: 26px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--sf-ember), var(--sf-crystal));
	box-shadow: 0 0 12px var(--sf-ember);
}

.sf-eyebrow::after { display: none; background: linear-gradient(90deg, var(--sf-crystal), var(--sf-ember)); }

.sf-highlight {
	background: linear-gradient(180deg, #ffe08a 0%, var(--sf-gold) 40%, var(--sf-ember) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 4px 18px rgba(255, 138, 28, 0.35));
}

/* Buttons — chunky pills in the logo's display face. */
.sf-btn,
.wp-block-button__link,
input[type="submit"],
.button {
	--sf-btn-bg: rgba(255, 255, 255, 0.08);
	--sf-btn-fg: #fff;
	--sf-btn-glow: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--sf-btn-bg);
	color: var(--sf-btn-fg);
	font-family: var(--sf-font-display);
	font-size: 1.05rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.1;
	cursor: pointer;
	box-shadow: 0 10px 30px -10px var(--sf-btn-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
	transition: transform 0.25s var(--sf-ease), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}

.sf-btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
.button:hover {
	color: var(--sf-btn-fg);
	transform: translateY(-2px);
	box-shadow: 0 16px 40px -10px var(--sf-btn-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sf-btn:active { transform: translateY(0); }
.sf-btn .sf-icon { transition: transform 0.25s var(--sf-ease); }
.sf-btn:hover .sf-icon--arrow-right { transform: translateX(4px); }

.sf-btn--primary,
.wp-block-button__link,
input[type="submit"] {
	--sf-btn-bg: linear-gradient(180deg, #ffd25a 0%, var(--sf-gold) 30%, var(--sf-ember) 100%);
	--sf-btn-fg: #2a1200;
	--sf-btn-glow: rgba(255, 138, 28, 0.75);
	border-color: rgba(255, 210, 120, 0.6);
}

.sf-btn--accent {
	--sf-btn-bg: linear-gradient(180deg, color-mix(in srgb, var(--sf-accent) 70%, #fff) 0%, var(--sf-accent) 45%, color-mix(in srgb, var(--sf-accent) 75%, #000) 100%);
	--sf-btn-fg: #04101c;
	--sf-btn-glow: color-mix(in srgb, var(--sf-accent) 70%, transparent);
	border-color: color-mix(in srgb, var(--sf-accent) 60%, #fff);
}

.sf-btn--ghost {
	--sf-btn-bg: rgba(255, 255, 255, 0.06);
	border-color: var(--sf-line-strong);
	box-shadow: none;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.sf-btn--ghost:hover { --sf-btn-bg: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }

.sf-btn--sm { min-height: 44px; padding: 9px 22px; font-size: 0.95rem; }

.is-style-outline .wp-block-button__link {
	--sf-btn-bg: transparent;
	--sf-btn-fg: #fff;
	border-color: var(--sf-line-strong);
	box-shadow: none;
}

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

.sf-actions .sf-btn { flex: 1 1 100%; }

@media (min-width: 560px) {
	.sf-actions .sf-btn { flex: 0 0 auto; }
}

.sf-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	background: color-mix(in srgb, var(--sf-accent) 18%, rgba(7, 8, 12, 0.6));
	border: 1px solid color-mix(in srgb, var(--sf-accent) 50%, transparent);
	border-radius: 999px;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.sf-status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--sf-accent);
	box-shadow: 0 0 10px var(--sf-accent);
	animation: sf-pulse 2.2s ease-in-out infinite;
}

.sf-status--released::before { animation: none; }

.sf-badge {
	display: inline-block;
	padding: 4px 12px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sf-muted);
	background: rgba(255, 255, 255, 0.06);
	border-radius: 999px;
	text-decoration: none;
}

a.sf-badge:hover { color: #fff; }

.sf-badge--game {
	--sf-accent: var(--sf-crystal);
	color: color-mix(in srgb, var(--sf-accent) 80%, #fff);
	background: color-mix(in srgb, var(--sf-accent) 16%, transparent);
}

.sf-badge--pinned { color: var(--sf-ember); }

.sf-inline-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--sf-muted);
}

.sf-inline-meta li { display: inline-flex; align-items: center; }

.sf-inline-meta li + li::before {
	content: "";
	width: 5px;
	height: 5px;
	margin: 0 12px;
	border-radius: 50%;
	background: var(--sf-accent);
	box-shadow: 0 0 8px var(--sf-accent);
}

.sf-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 0.85rem;
	color: var(--sf-dim);
}

.sf-meta__item { display: inline-flex; align-items: center; gap: 6px; }

/* Media frames — real images first, atmospheric art as fallback. */
.sf-media {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--sf-bg-2);
}

.sf-media > img,
.sf-media__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--sf-ease);
}

/* Atmospheric placeholder art: light, not shapes. */
.sf-art {
	position: absolute;
	inset: 0;
	overflow: hidden;
	container-type: inline-size;
	background:
		radial-gradient(60% 70% at var(--sf-x) var(--sf-y), color-mix(in srgb, var(--sf-accent) 55%, transparent), transparent 70%),
		radial-gradient(45% 55% at calc(100% - var(--sf-x)) 95%, color-mix(in srgb, var(--sf-ember) 35%, transparent), transparent 70%),
		linear-gradient(160deg, #10131c 0%, #07080c 100%);
}

.sf-art::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
	opacity: 0.12;
	mix-blend-mode: overlay;
	pointer-events: none;
}

.sf-art__glow {
	position: absolute;
	left: var(--sf-x);
	top: var(--sf-y);
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--sf-accent) 70%, #fff 10%), transparent 60%);
	filter: blur(40px);
	opacity: 0.55;
	transform: translate(-50%, -50%);
	animation: sf-drift 14s ease-in-out infinite alternate;
}

.sf-art__rays {
	position: absolute;
	inset: -40%;
	background: repeating-conic-gradient(from var(--sf-r) at var(--sf-x) var(--sf-y), rgba(255, 255, 255, 0.07) 0deg 2deg, transparent 2deg 14deg);
	mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 55%);
	animation: sf-spin 120s linear infinite;
}

.sf-art__title {
	position: absolute;
	left: 6%;
	right: 6%;
	bottom: 8%;
	font-family: var(--sf-font-display);
	font-size: 13cqw;
	line-height: 0.9;
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
	-webkit-background-clip: text;
	background-clip: text;
	overflow-wrap: anywhere;
}

.sf-art--thumb .sf-art__title { font-size: 11cqw; }
.sf-art--banner .sf-art__title { font-size: 9cqw; bottom: 10%; text-align: right; }

/* ==========================================================================
   4. Header & navigation
   ========================================================================== */
.sf-header {
	position: sticky;
	top: 0;
	z-index: 50;
	isolation: isolate;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease;
}

/* Blur on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header box. */
.sf-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(7, 8, 12, 0.55);
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	backdrop-filter: blur(18px) saturate(1.5);
	transition: background 0.3s ease;
}

.sf-header.is-scrolled { border-bottom-color: var(--sf-line); }
.sf-header.is-scrolled::before { background: rgba(7, 8, 12, 0.88); }

.admin-bar .sf-header { top: 0; }

@media (min-width: 601px) {
	.admin-bar .sf-header { top: 46px; }
}

@media (min-width: 783px) {
	.admin-bar .sf-header { top: 32px; }
}

.sf-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--sf-header-h);
}

.sf-logo,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.sf-logo__img,
.custom-logo {
	width: auto;
	height: 42px;
	filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
	transition: transform 0.4s var(--sf-ease);
}

.sf-logo:hover .sf-logo__img { transform: scale(1.04); }

@media (min-width: 1000px) {
	.sf-logo__img,
	.custom-logo { height: 54px; }
}

.sf-menu,
.sf-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-menu a {
	display: block;
	color: var(--sf-muted);
	text-decoration: none;
}

.sf-menu a:hover,
.sf-menu .current-menu-item > a,
.sf-menu .current-menu-ancestor > a,
.sf-menu .current_page_item > a,
.sf-menu .current-menu-parent > a { color: #fff; }

/* Mobile menu (default). */
.sf-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--sf-line-strong);
	border-radius: 50%;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.sf-nav-toggle__close { display: none; }
.sf-nav-toggle[aria-expanded="true"] .sf-nav-toggle__open { display: none; }
.sf-nav-toggle[aria-expanded="true"] .sf-nav-toggle__close { display: inline-flex; }

.js .sf-nav {
	position: fixed;
	top: var(--sf-header-h);
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 16px var(--sf-gutter) calc(32px + env(safe-area-inset-bottom));
	background:
		radial-gradient(80% 50% at 100% 0%, color-mix(in srgb, var(--sf-crystal) 14%, transparent), transparent 70%),
		radial-gradient(80% 50% at 0% 100%, color-mix(in srgb, var(--sf-ember) 16%, transparent), transparent 70%),
		var(--sf-bg);
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.3s ease, transform 0.3s var(--sf-ease), visibility 0.3s;
}

.admin-bar.js .sf-nav { top: calc(var(--sf-header-h) + 46px); }

.sf-nav.is-open { opacity: 1; visibility: visible; transform: none; }
html.sf-nav-open { overflow: hidden; }

.sf-nav .sf-menu a {
	padding: 14px 0;
	font-family: var(--sf-font-display);
	font-size: 1.9rem;
	letter-spacing: 0.01em;
	border-bottom: 1px solid var(--sf-line);
}

.sf-nav .sf-menu .sub-menu { padding-left: 16px; }
.sf-nav .sf-menu .sub-menu a { font-size: 1.3rem; }
.sf-header__cta { width: 100%; min-height: 56px; }

html:not(.js) .sf-header__inner { flex-wrap: wrap; }
html:not(.js) .sf-nav-toggle { display: none; }
html:not(.js) .sf-nav { width: 100%; padding-bottom: 16px; }
html:not(.js) .sf-nav .sf-menu a { font-size: 1.2rem; padding: 10px 0; }

/* Desktop menu. */
@media (min-width: 1000px) {
	.sf-nav-toggle { display: none; }

	.js .sf-nav,
	html:not(.js) .sf-nav {
		position: static;
		flex-direction: row;
		align-items: center;
		gap: 20px;
		width: auto;
		padding: 0;
		background: none;
		overflow: visible;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.sf-menu { display: flex; align-items: center; gap: 2px; }
	.sf-menu > li { position: relative; }

	.sf-nav .sf-menu a {
		padding: 9px 16px;
		font-family: var(--sf-font-body);
		font-size: 0.95rem;
		font-weight: 600;
		letter-spacing: 0;
		border: 0;
		border-radius: 999px;
		transition: color 0.2s ease, background 0.2s ease;
	}

	.sf-nav .sf-menu > li > a:hover { background: rgba(255, 255, 255, 0.06); }

	.sf-nav .sf-menu > .current-menu-item > a,
	.sf-nav .sf-menu > .current_page_item > a,
	.sf-nav .sf-menu > .current-menu-ancestor > a,
	.sf-nav .sf-menu > .current-menu-parent > a { background: rgba(255, 255, 255, 0.09); }

	.sf-menu .sub-menu {
		position: absolute;
		top: calc(100% + 8px);
		left: 0;
		min-width: 220px;
		padding: 8px;
		background: rgba(17, 20, 28, 0.94);
		border: 1px solid var(--sf-line-strong);
		border-radius: var(--sf-r);
		box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}

	.sf-menu li:hover > .sub-menu,
	.sf-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

	.sf-nav .sf-menu .sub-menu a { font-size: 0.92rem; border-radius: var(--sf-r-sm); padding: 10px 14px; }
	.sf-nav .sf-menu .sub-menu a:hover { background: rgba(255, 255, 255, 0.06); }

	.sf-header__cta { width: auto; min-height: 44px; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.sf-hero {
	position: relative;
	display: flex;
	align-items: center;
	padding-block: 28px 56px;
	overflow: hidden;
	isolation: isolate;
}

.sf-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}

.sf-hero__img,
.sf-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.45;
}

.sf-hero__video { opacity: 0; transition: opacity 1.2s ease; }
.sf-hero__video.is-playing { opacity: 0.5; }

/* Blue crystal light top-left, forge glow bottom-right — like the logo. */
.sf-hero__atmo {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(55% 60% at 50% 30%, color-mix(in srgb, var(--sf-crystal) 26%, transparent), transparent 70%),
		radial-gradient(55% 60% at 0% 45%, color-mix(in srgb, var(--sf-crystal) 22%, transparent), transparent 70%),
		radial-gradient(55% 60% at 100% 60%, color-mix(in srgb, var(--sf-ember) 24%, transparent), transparent 70%);
}

.has-media .sf-hero__atmo {
	background:
		linear-gradient(180deg, rgba(7, 8, 12, 0.55) 0%, rgba(7, 8, 12, 0.3) 45%, var(--sf-bg) 100%),
		radial-gradient(55% 60% at 50% 30%, color-mix(in srgb, var(--sf-crystal) 20%, transparent), transparent 70%),
		radial-gradient(55% 60% at 100% 70%, color-mix(in srgb, var(--sf-ember) 20%, transparent), transparent 70%);
}

.sf-hero__atmo::before {
	content: "";
	position: absolute;
	inset: -20%;
	background:
		radial-gradient(30% 25% at 35% 30%, color-mix(in srgb, var(--sf-crystal) 45%, transparent), transparent 70%),
		radial-gradient(28% 22% at 70% 70%, color-mix(in srgb, var(--sf-ember) 40%, transparent), transparent 70%),
		radial-gradient(20% 18% at 55% 40%, color-mix(in srgb, var(--sf-amethyst) 30%, transparent), transparent 70%);
	filter: blur(60px);
	opacity: 0.55;
	animation: sf-aurora 18s ease-in-out infinite alternate;
}

.sf-hero__atmo::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		conic-gradient(from 200deg at 50% -10%, transparent 0deg, rgba(127, 220, 255, 0.07) 12deg, transparent 24deg, rgba(127, 220, 255, 0.05) 40deg, transparent 52deg, rgba(255, 194, 46, 0.04) 70deg, transparent 84deg),
		linear-gradient(180deg, transparent 72%, var(--sf-bg) 100%);
}

.sf-hero__particles { position: absolute; inset: 0; pointer-events: none; }
.sf-hero__particles canvas { width: 100%; height: 100%; display: block; }

.sf-hero__inner { display: grid; gap: 40px; justify-items: center; }

.sf-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 880px;
	text-align: center;
}

.sf-hero__emblem {
	width: min(92vw, 560px);
	margin: 0 auto 8px;
	animation: sf-float 7s ease-in-out infinite;
}

.sf-hero__logo {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px color-mix(in srgb, var(--sf-crystal) 25%, transparent));
}

.sf-hero__copy .sf-eyebrow::after { display: block; }

.sf-hero__title {
	font-size: clamp(2rem, 7vw, 3.9rem);
	line-height: 1.04;
	margin-bottom: 16px;
	text-wrap: balance;
	text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.sf-hero__text {
	max-width: 620px;
	font-size: clamp(1rem, 2.4vw, 1.15rem);
	color: var(--sf-muted);
	margin-bottom: 28px;
}

.sf-hero__copy .sf-actions { justify-content: center; width: 100%; }

.sf-hero__games {
	display: grid;
	gap: 12px;
	width: 100%;
	max-width: 980px;
}

.sf-hero__games-label {
	margin: 0;
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--sf-dim);
}

.sf-hero-game {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 10px;
	color: var(--sf-text);
	text-decoration: none;
	background: var(--sf-glass);
	border: 1px solid var(--sf-line-strong);
	border-radius: var(--sf-r-lg);
	-webkit-backdrop-filter: blur(18px) saturate(1.3);
	backdrop-filter: blur(18px) saturate(1.3);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
	transition: border-color 0.25s ease, transform 0.25s var(--sf-ease), box-shadow 0.25s ease;
}

.sf-hero-game:hover {
	color: #fff;
	border-color: color-mix(in srgb, var(--sf-accent) 55%, transparent);
	transform: translateY(-3px);
	box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--sf-accent) 45%, transparent);
}

.sf-hero-game__media {
	aspect-ratio: 16 / 11;
	border-radius: var(--sf-r);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.sf-hero-game__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; text-align: left; }
.sf-hero-game__body .sf-status { padding: 3px 10px; font-size: 0.6rem; }
.sf-hero-game__title { font-family: var(--sf-font-display); font-size: 1.25rem; font-weight: 400; line-height: 1.1; letter-spacing: 0.01em; }
.sf-hero-game__meta { font-size: 0.82rem; color: var(--sf-dim); }
.sf-hero-game__arrow { color: color-mix(in srgb, var(--sf-accent) 80%, #fff); padding-right: 6px; }
.sf-hero-game:hover .sf-hero-game__media img { transform: scale(1.06); }

@media (min-width: 720px) {
	.sf-hero__games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.sf-hero__games-label { grid-column: 1 / -1; }
	/* An odd number of games: the last one sits centred under the others. */
	.sf-hero__games > .sf-hero-game:last-child:nth-child(even) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 8px); }
	.sf-hero-game { grid-template-columns: 140px minmax(0, 1fr) auto; }
	.sf-hero-game__title { font-size: 1.4rem; }
}

@media (min-width: 1000px) {
	.sf-hero {
		min-height: calc(100svh - var(--sf-header-h));
		padding-block: 40px 72px;
	}
}

/* ==========================================================================
   6. Sections
   ========================================================================== */
.sf-section { position: relative; padding-block: 64px; }

@media (min-width: 900px) {
	.sf-section { padding-block: 112px; }
}

.sf-section__head { max-width: 760px; margin-bottom: 36px; }

@media (min-width: 900px) {
	.sf-section__head { margin-bottom: 56px; }
}

.sf-section__head--split {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	max-width: none;
}

@media (min-width: 700px) {
	.sf-section__head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.sf-section__title { font-size: clamp(2.1rem, 6.5vw, 3.6rem); margin-bottom: 14px; text-wrap: balance; }
.sf-section__lead { font-size: 1.08rem; color: var(--sf-muted); margin: 0; }

/* Game banners */
.sf-games { padding-bottom: 24px; }
.sf-banners { display: grid; gap: 16px; }

.sf-banner {
	position: relative;
	isolation: isolate;
}

.sf-banner__media {
	aspect-ratio: 16 / 10;
	mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}

.sf-banner__inner {
	position: relative;
	margin-top: -64px;
	padding-bottom: 32px;
}

.sf-banner__content { max-width: 620px; }

.sf-banner__title {
	font-size: clamp(2.6rem, 10vw, 5rem);
	line-height: 0.95;
	margin: 16px 0 12px;
	text-shadow: 0 6px 40px rgba(0, 0, 0, 0.7);
}

.sf-banner__title a { color: #fff; text-decoration: none; }
.sf-banner__title a:hover { color: #fff; }

.sf-banner__tagline {
	font-size: clamp(1.05rem, 2.6vw, 1.3rem);
	font-weight: 600;
	color: color-mix(in srgb, var(--sf-accent) 85%, #fff);
	margin-bottom: 14px;
}

.sf-banner__excerpt { color: var(--sf-muted); margin-bottom: 18px; max-width: 560px; }
.sf-banner__shots { margin-top: 28px; }

@media (min-width: 900px) {
	.sf-banners { gap: 24px; }

	.sf-banner {
		display: flex;
		align-items: center;
		min-height: clamp(560px, 62vw, 720px);
	}

	.sf-banner__media {
		position: absolute;
		inset: 0;
		z-index: -1;
		aspect-ratio: auto;
		mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
	}

	.sf-banner__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background:
			linear-gradient(90deg, rgba(7, 8, 12, 0.95) 0%, rgba(7, 8, 12, 0.75) 30%, rgba(7, 8, 12, 0.1) 65%, transparent 100%),
			radial-gradient(60% 80% at 0% 50%, color-mix(in srgb, var(--sf-accent) 16%, transparent), transparent 70%);
	}

	.sf-banner:nth-child(even) .sf-banner__media::after {
		background:
			linear-gradient(270deg, rgba(7, 8, 12, 0.95) 0%, rgba(7, 8, 12, 0.75) 30%, rgba(7, 8, 12, 0.1) 65%, transparent 100%),
			radial-gradient(60% 80% at 100% 50%, color-mix(in srgb, var(--sf-accent) 16%, transparent), transparent 70%);
	}

	.sf-banner__inner {
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		gap: 48px;
		margin-top: 0;
		padding-block: 80px;
	}

	.sf-banner:nth-child(even) .sf-banner__inner { flex-direction: row-reverse; }
	.sf-banner:nth-child(even) .sf-banner__content { text-align: right; }
	.sf-banner:nth-child(even) .sf-inline-meta,
	.sf-banner:nth-child(even) .sf-actions { justify-content: flex-end; }
	.sf-banner:nth-child(even) .sf-banner__excerpt { margin-left: auto; }

	.sf-banner__shots { margin-top: 0; width: min(420px, 36%); flex-shrink: 0; }
	.sf-banner:hover .sf-banner__media .sf-media__img { transform: scale(1.03); }
}

/* Galleries */
.sf-gallery {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-gallery__link {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: var(--sf-r-sm);
	background: var(--sf-surface);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
	cursor: zoom-in;
}

.sf-gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--sf-ease), filter 0.3s ease; }
.sf-gallery__link:hover img { transform: scale(1.06); filter: brightness(1.1); }

.sf-gallery--strip {
	grid-auto-flow: column;
	grid-auto-columns: 70%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 6px;
	scrollbar-width: none;
}

.sf-gallery--strip::-webkit-scrollbar { display: none; }
.sf-gallery--strip .sf-gallery__item { scroll-snap-align: start; }

.sf-gallery--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-gallery--grid .sf-gallery__item:first-child { grid-column: 1 / -1; }
.sf-gallery--grid .sf-gallery__item:first-child .sf-gallery__link { aspect-ratio: 16 / 9; }

@media (min-width: 900px) {
	.sf-gallery { gap: 14px; }
	.sf-gallery--strip { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
	.sf-gallery--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sf-gallery__link { border-radius: var(--sf-r); }
}

/* Lightbox (built by theme.js) */
.sf-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
}

.sf-lightbox::backdrop {
	background: rgba(4, 5, 8, 0.93);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.sf-lightbox__stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	padding: 64px 12px calc(84px + env(safe-area-inset-bottom));
	touch-action: pan-y;
}

.sf-lightbox__img {
	max-width: 100%;
	max-height: calc(100% - 40px);
	object-fit: contain;
	border-radius: var(--sf-r-sm);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.sf-lightbox__caption { font-size: 0.9rem; color: var(--sf-muted); text-align: center; min-height: 1.4em; }

.sf-lightbox__btn {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	cursor: pointer;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.sf-lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.sf-lightbox__close { top: 12px; right: 12px; }
.sf-lightbox__prev { left: calc(50% - 62px); bottom: calc(18px + env(safe-area-inset-bottom)); }
.sf-lightbox__prev .sf-icon { transform: rotate(180deg); }
.sf-lightbox__next { right: calc(50% - 62px); bottom: calc(18px + env(safe-area-inset-bottom)); }
.sf-lightbox__count { position: absolute; top: 24px; left: 20px; font-size: 0.85rem; font-weight: 600; color: var(--sf-muted); }

@media (min-width: 900px) {
	.sf-lightbox__stage { padding: 72px 96px 48px; }
	.sf-lightbox__prev { left: 24px; bottom: auto; top: 50%; transform: translateY(-50%); }
	.sf-lightbox__next { right: 24px; bottom: auto; top: 50%; transform: translateY(-50%); }
}

/* Pillars */
.sf-pillars__grid {
	display: grid;
	gap: 36px;
}

.sf-pillar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-bottom: 18px;
	color: #fff;
	border-radius: 18px;
	background:
		radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 50%),
		linear-gradient(180deg, var(--sf-gold), var(--sf-ember));
	box-shadow: 0 14px 34px -10px rgba(255, 138, 28, 0.8), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
	transform: rotate(-4deg);
}

.sf-pillar:nth-child(2) .sf-pillar__icon {
	background:
		radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 50%),
		linear-gradient(180deg, var(--sf-ice), var(--sf-crystal));
	box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--sf-crystal) 80%, transparent), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
	transform: rotate(3deg);
}

.sf-pillar:nth-child(3) .sf-pillar__icon {
	background:
		radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), transparent 50%),
		linear-gradient(180deg, #c09bff, var(--sf-amethyst));
	box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--sf-amethyst) 80%, transparent), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.sf-pillar__title { font-size: 1.6rem; margin-bottom: 8px; }
.sf-pillar__text { color: var(--sf-muted); margin: 0; max-width: 380px; }

@media (min-width: 900px) {
	.sf-pillars__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
}

.sf-front__content { max-width: 760px; margin: 56px auto 0; }

/* Devlog cards */
.sf-card-grid {
	display: grid;
	gap: 20px;
}

@media (min-width: 640px) {
	.sf-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.sf-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	.has-sidebar .sf-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sf-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: linear-gradient(180deg, var(--sf-surface-2), var(--sf-surface));
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-r-lg);
	transition: transform 0.35s var(--sf-ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.sf-card:hover {
	transform: translateY(-6px);
	border-color: var(--sf-line-strong);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.sf-card:hover .sf-media__img { transform: scale(1.05); }
.sf-card__media { aspect-ratio: 16 / 9; }
.sf-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.sf-card__top { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sf-card__title { font-size: 1.45rem; margin-bottom: 10px; }
.sf-card__title a { color: #fff; text-decoration: none; }
.sf-card__title a::after { content: ""; position: absolute; inset: 0; }
.sf-card__excerpt { color: var(--sf-muted); font-size: 0.96rem; flex: 1; }
.sf-card__excerpt p { margin-bottom: 18px; }

/* Community */
.sf-community__panel {
	position: relative;
	display: grid;
	gap: 32px;
	padding: 36px 24px;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 28px;
	background:
		radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--sf-crystal) 22%, transparent), transparent 60%) padding-box,
		radial-gradient(70% 90% at 100% 100%, color-mix(in srgb, var(--sf-ember) 26%, transparent), transparent 60%) padding-box,
		linear-gradient(var(--sf-surface), var(--sf-surface)) padding-box,
		linear-gradient(120deg, color-mix(in srgb, var(--sf-crystal) 75%, transparent), rgba(255, 255, 255, 0.08) 45%, color-mix(in srgb, var(--sf-ember) 75%, transparent)) border-box;
}

@media (min-width: 900px) {
	.sf-community__panel { padding: 72px; border-radius: 36px; }
	.sf-community__panel:has(.sf-community__form) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
}

.sf-community__copy { max-width: 640px; }
.sf-community__copy .sf-section__lead { margin-bottom: 28px; }
.sf-community__social { margin-top: 28px; }

/* Social */
.sf-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--sf-muted);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--sf-line);
	border-radius: 50%;
	transition: color 0.2s, background 0.2s, transform 0.2s var(--sf-ease);
}

.sf-social a:hover { color: #fff; background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

/* ==========================================================================
   7. Page headers, layout, archive
   ========================================================================== */
.sf-page-header {
	position: relative;
	padding-block: 56px 40px;
	overflow: hidden;
	isolation: isolate;
}

.sf-page-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(55% 120% at 0% 0%, color-mix(in srgb, var(--sf-crystal) 18%, transparent), transparent 70%),
		radial-gradient(50% 100% at 100% 100%, color-mix(in srgb, var(--sf-ember) 16%, transparent), transparent 70%);
}

@media (min-width: 900px) {
	.sf-page-header { padding-block: 104px 64px; }
}

.sf-page-header__title { font-size: clamp(2.6rem, 9vw, 5rem); margin: 0; max-width: 900px; text-wrap: balance; }
.sf-page-header__desc { max-width: 680px; margin-top: 16px; color: var(--sf-muted); font-size: 1.08rem; }
.sf-page-header__desc p:last-child { margin-bottom: 0; }

.sf-main { display: block; }
.sf-main > .sf-container { padding-block: 32px 64px; }

@media (min-width: 900px) {
	.sf-main > .sf-container { padding-block: 48px 96px; }
}

.sf-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }

@media (min-width: 1024px) {
	.has-sidebar .sf-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}

.sf-games-grid {
	display: grid;
	gap: 20px;
}

@media (min-width: 700px) {
	.sf-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* Three games: three across on wide screens. */
@media (min-width: 1100px) {
	.sf-games-grid:has(> :nth-child(3)):not(:has(> :nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.sf-game-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--sf-surface-2), var(--sf-surface));
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-r-lg);
	transition: transform 0.35s var(--sf-ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.sf-game-card:hover {
	transform: translateY(-6px);
	border-color: color-mix(in srgb, var(--sf-accent) 50%, transparent);
	box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--sf-accent) 50%, transparent);
}

.sf-game-card:hover .sf-media__img { transform: scale(1.05); }
.sf-game-card__link { display: block; color: inherit; text-decoration: none; }
.sf-game-card__link:hover { color: inherit; }
.sf-game-card__media { aspect-ratio: 16 / 10; }
.sf-game-card__body { padding: 22px 24px 26px; }
.sf-game-card__title { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin: 14px 0 6px; }
.sf-game-card__tagline { color: color-mix(in srgb, var(--sf-accent) 85%, #fff); font-weight: 600; margin-bottom: 12px; }
.sf-game-card .sf-inline-meta { margin-bottom: 18px; }

.sf-game-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--sf-font-display);
	font-size: 1.05rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--sf-accent) 85%, #fff);
}

.sf-empty {
	padding: 56px 24px;
	text-align: center;
	background: var(--sf-surface);
	border: 1px dashed var(--sf-line-strong);
	border-radius: var(--sf-r-lg);
}

.sf-empty__icon { color: var(--sf-crystal); display: inline-block; margin-bottom: 12px; }
.sf-empty p { color: var(--sf-muted); }

/* Pagination */
.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 16px;
	font-weight: 700;
	color: var(--sf-muted);
	background: var(--sf-surface);
	border: 1px solid var(--sf-line);
	border-radius: 999px;
	text-decoration: none;
}

.page-numbers.current,
a.page-numbers:hover { color: #2a1200; background: var(--sf-gold); border-color: var(--sf-gold); }

/* ==========================================================================
   8. Single posts & pages
   ========================================================================== */
.sf-article { max-width: 780px; margin-inline: auto; }
.is-full-width .sf-article { max-width: none; }
.sf-article__header { margin-bottom: 28px; }
.sf-article__title { font-size: clamp(2.3rem, 7.5vw, 3.9rem); text-wrap: balance; }
.sf-article__thumb { margin: 0 0 36px; overflow: hidden; border-radius: var(--sf-r-lg); }

.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content h2 { margin-top: 1.6em; margin-bottom: 0.5em; }
.entry-content h3 { margin-top: 1.5em; margin-bottom: 0.5em; }
.entry-content h4 { margin-top: 1.4em; margin-bottom: 0.4em; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content li::marker { color: var(--sf-ember); }
.entry-content .has-large-font-size { font-size: clamp(1.2rem, 3vw, 1.5rem) !important; line-height: 1.55; color: #fff; }

.entry-content blockquote,
.wp-block-quote {
	margin-inline: 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--sf-ember);
	font-size: 1.15rem;
	color: #fff;
}

.wp-block-quote cite,
.wp-block-pullquote cite { display: block; margin-top: 8px; font-size: 0.9rem; color: var(--sf-muted); font-style: normal; }
.wp-block-pullquote { border-color: var(--sf-ember); padding: 32px 0; }

.entry-content code,
.entry-content kbd { padding: 2px 6px; font-size: 0.9em; background: var(--sf-surface-2); border: 1px solid var(--sf-line); border-radius: 6px; }

.entry-content pre,
.wp-block-code {
	padding: 20px;
	overflow-x: auto;
	font-size: 0.9rem;
	background: #05060a;
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-r);
}

.entry-content pre code { padding: 0; border: 0; background: none; }

.entry-content hr,
.wp-block-separator {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--sf-line-strong), transparent);
	margin-block: 3em;
}

.entry-content table,
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.wp-block-table { overflow-x: auto; }
.entry-content th,
.entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--sf-line); text-align: left; }
.entry-content th { color: #fff; }
.entry-content img { border-radius: var(--sf-r-sm); }
.entry-content .wp-block-embed,
.entry-content .wp-block-image { margin-bottom: 2em; }
.wp-block-embed iframe { border-radius: var(--sf-r); }

figcaption,
.wp-caption-text,
.wp-element-caption { margin-top: 10px; font-size: 0.86rem; color: var(--sf-dim); text-align: center; }

.alignleft,
.alignright { margin: 0 0 1em; }
.aligncenter { display: block; margin-inline: auto; }
.alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption { max-width: 100%; }
.gallery-caption { font-size: 0.85rem; }
.sticky { position: relative; }
.bypostauthor > .comment-body .comment-author b::after { content: " ★"; color: var(--sf-ember); }

@media (min-width: 700px) {
	.alignleft { float: left; margin: 0.3em 1.6em 1em 0; }
	.alignright { float: right; margin: 0.3em 0 1em 1.6em; }
}

@media (min-width: 1100px) {
	.alignwide { margin-inline: -120px; max-width: none; }
}

.sf-article__footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--sf-line); display: flex; flex-wrap: wrap; gap: 8px; }
.sf-article__footer a { padding: 5px 14px; font-size: 0.85rem; color: var(--sf-muted); background: var(--sf-surface); border: 1px solid var(--sf-line); border-radius: 999px; text-decoration: none; }

.post-navigation { margin-top: 48px; }
.post-navigation .nav-links { display: grid; gap: 12px; }

@media (min-width: 640px) {
	.post-navigation .nav-links { grid-template-columns: 1fr 1fr; }
	.post-navigation .nav-next { text-align: right; }
	.post-navigation .nav-next:only-child { grid-column: 2; }
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 20px 24px;
	background: var(--sf-surface);
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-r);
	text-decoration: none;
	color: #fff;
	font-family: var(--sf-font-display);
	font-size: 1.15rem;
	transition: border-color 0.2s ease;
}

.post-navigation a:hover { border-color: var(--sf-line-strong); }

.sf-nav-label {
	display: block;
	margin-bottom: 4px;
	font-family: var(--sf-font-body);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sf-ice);
}

.page-links { margin-top: 32px; display: flex; gap: 8px; align-items: center; }

/* ==========================================================================
   9. Single game
   ========================================================================== */
.sf-game-hero {
	position: relative;
	isolation: isolate;
}

.sf-game-hero__media {
	aspect-ratio: 16 / 10;
	mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.sf-game-hero__inner { position: relative; margin-top: -72px; padding-bottom: 24px; }

.sf-game-hero__title { font-size: clamp(2.8rem, 12vw, 6.4rem); line-height: 0.94; margin: 16px 0 12px; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.7); }
.sf-game-hero__tagline { font-size: clamp(1.1rem, 3vw, 1.45rem); font-weight: 600; color: color-mix(in srgb, var(--sf-accent) 85%, #fff); margin-bottom: 14px; }
.sf-game-hero__excerpt { color: var(--sf-muted); font-size: 1.05rem; max-width: 600px; margin-bottom: 28px; }

@media (min-width: 900px) {
	.sf-game-hero { display: flex; align-items: flex-end; min-height: min(760px, 78svh); }

	.sf-game-hero__media {
		position: absolute;
		inset: 0;
		z-index: -1;
		aspect-ratio: auto;
		mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
	}

	.sf-game-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background:
			linear-gradient(0deg, var(--sf-bg) 0%, rgba(7, 8, 12, 0.4) 40%, rgba(7, 8, 12, 0.1) 100%),
			linear-gradient(90deg, rgba(7, 8, 12, 0.85) 0%, transparent 65%);
	}

	.sf-game-hero__inner { margin-top: 0; padding-block: 120px 72px; }
}

.sf-game__wrap { padding-block: 40px 72px; }

@media (min-width: 900px) {
	.sf-game__wrap { padding-block: 64px 112px; }
}

.sf-game-body { display: grid; gap: 40px; align-items: start; }

@media (min-width: 1024px) {
	.sf-game-body { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
	.sf-facts { position: sticky; top: calc(var(--sf-header-h) + 24px); }
}

.sf-facts {
	padding: 24px;
	background: var(--sf-glass);
	border: 1px solid var(--sf-line-strong);
	border-radius: var(--sf-r-lg);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px -30px color-mix(in srgb, var(--sf-accent) 40%, transparent);
}

.sf-facts__title { font-size: 1.3rem; margin-bottom: 8px; }
.sf-facts dl { margin: 0 0 20px; }
.sf-facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--sf-line); }
.sf-facts dl > div:last-child { border-bottom: 0; }
.sf-facts dt { color: var(--sf-dim); font-size: 0.9rem; }
.sf-facts dd { margin: 0; color: #fff; font-weight: 600; text-align: right; font-size: 0.95rem; }
.sf-facts .sf-btn { width: 100%; margin-top: 10px; }

.sf-trailer { margin-bottom: 40px; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: var(--sf-r-lg); box-shadow: 0 0 0 1px var(--sf-line); }
.sf-trailer iframe { width: 100%; height: 100%; display: block; border: 0; }

.sf-shots { margin-bottom: 48px; }
.sf-shots__title,
.sf-features h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); margin-bottom: 20px; }

.sf-features { margin: 48px 0 0; }

.sf-features__list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.sf-features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sf-features__list li {
	position: relative;
	padding: 16px 18px 16px 48px;
	background: var(--sf-surface);
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-r);
	font-weight: 500;
}

.sf-features__list li::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 24px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sf-accent);
	box-shadow: 0 0 12px var(--sf-accent);
}

.sf-related { padding-top: 64px; margin-top: 64px; border-top: 1px solid var(--sf-line); }

/* ==========================================================================
   10. Press kit
   ========================================================================== */
.sf-press { display: grid; gap: 48px; }

.sf-press__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 12px;
	margin: 0;
}

.sf-press__fact { padding: 20px 22px; background: var(--sf-surface); border: 1px solid var(--sf-line); border-radius: var(--sf-r); }
.sf-press__fact dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sf-dim); margin-bottom: 6px; }
.sf-press__fact dd { margin: 0; color: #fff; font-weight: 600; word-break: break-word; }

.sf-press__game {
	display: grid;
	gap: 24px;
	padding: 18px;
	background: linear-gradient(180deg, var(--sf-surface-2), var(--sf-surface));
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-r-lg);
}

@media (min-width: 800px) {
	.sf-press__game { grid-template-columns: 320px minmax(0, 1fr); padding: 24px; gap: 32px; }
}

.sf-press__cover { aspect-ratio: 16 / 10; border-radius: var(--sf-r); }
.sf-press__game h3 { margin-bottom: 4px; }
.sf-press__game h3 a { color: #fff; text-decoration: none; }
.sf-press__game dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px 24px; margin: 18px 0 0; }
.sf-press__game dt { font-size: 0.72rem; color: var(--sf-dim); text-transform: uppercase; letter-spacing: 0.12em; }
.sf-press__game dd { margin: 0; color: #fff; font-weight: 600; }
.sf-press__desc { color: var(--sf-muted); margin: 10px 0 0; }
.sf-press__social { margin-top: 20px; }
.sf-press__content { max-width: 780px; }

/* ==========================================================================
   11. Forms, comments, widgets
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
select,
textarea {
	width: 100%;
	padding: 13px 16px;
	font: inherit;
	font-size: 1rem;
	color: var(--sf-text);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--sf-line-strong);
	border-radius: 12px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--sf-crystal);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--sf-crystal) 22%, transparent);
}

label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.95rem; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; margin: 0; }
.search-form .search-field { border-radius: 999px; padding-inline: 20px; }
.search-form .search-submit { flex-shrink: 0; min-width: 52px; min-height: 52px; padding: 0 16px; }

.comments-area { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--sf-line); }
.comments-title,
.comment-reply-title { font-size: 1.7rem; }
.comment-list,
.comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 16px; }
.comment-body { padding: 20px 22px; margin-bottom: 14px; background: var(--sf-surface); border: 1px solid var(--sf-line); border-radius: var(--sf-r); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.88rem; }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--sf-dim); text-decoration: none; }
.reply a { font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.comment-form p { margin-bottom: 18px; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; color: var(--sf-muted); }
.comment-notes,
.logged-in-as { color: var(--sf-muted); font-size: 0.92rem; }

@media (min-width: 640px) {
	.comment-list .children { margin-left: 40px; }
}

.sf-sidebar .widget,
.sf-footer .widget { margin-bottom: 32px; }
.sf-sidebar .widget { padding: 24px; background: var(--sf-surface); border: 1px solid var(--sf-line); border-radius: var(--sf-r-lg); }

.widget-title,
.wp-block-search__label,
.sf-sidebar .wp-block-heading { font-family: var(--sf-font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sf-dim); margin-bottom: 14px; }

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--sf-line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--sf-text); text-decoration: none; }
.widget a:hover { color: var(--sf-ice); }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__button { margin: 0; }

/* Contact shortcode */
.sf-contact { display: grid; gap: 12px; margin-top: 24px; }

/* 404 */
.sf-404 { min-height: calc(100svh - var(--sf-header-h)); }
.sf-404__search { width: 100%; max-width: 480px; margin: 0 auto 24px; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.sf-footer {
	position: relative;
	margin-top: 48px;
	padding-top: 56px;
	background:
		radial-gradient(50% 80% at 0% 100%, color-mix(in srgb, var(--sf-crystal) 8%, transparent), transparent 70%),
		radial-gradient(50% 80% at 100% 100%, color-mix(in srgb, var(--sf-ember) 8%, transparent), transparent 70%),
		linear-gradient(180deg, var(--sf-bg) 0%, var(--sf-bg-2) 100%);
}

.sf-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(900px, 90%);
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, var(--sf-crystal), var(--sf-ember), transparent);
	box-shadow: 0 0 24px var(--sf-ember);
}

.sf-front + .sf-footer { margin-top: 0; }

.sf-footer__top {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px 24px;
	padding-bottom: 40px;
}

.sf-footer__brand { grid-column: 1 / -1; }
.sf-footer__brand .sf-logo__img { height: 64px; }

@media (min-width: 1000px) {
	.sf-footer { padding-top: 80px; }
	.sf-footer__top { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
	.sf-footer__brand { grid-column: auto; }
	.sf-footer__brand .sf-logo__img { height: 76px; }
}

.sf-footer__tagline { margin: 18px 0 22px; max-width: 340px; color: var(--sf-muted); font-size: 0.95rem; }
.sf-footer__heading { font-family: var(--sf-font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sf-dim); margin-bottom: 16px; }
.sf-footer__col ul { list-style: none; margin: 0; padding: 0; }
.sf-footer__col li { margin-bottom: 10px; }
.sf-footer__col a { color: var(--sf-text); text-decoration: none; font-size: 0.97rem; }
.sf-footer__col a:hover { color: var(--sf-ice); }

.sf-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: 32px;
	padding-block: 40px 0;
	border-top: 1px solid var(--sf-line);
}

.sf-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 24px calc(24px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--sf-line);
	font-size: 0.86rem;
	color: var(--sf-dim);
}

.sf-footer__bottom p { margin: 0; }
.sf-footer__bottom a { color: var(--sf-muted); }

/* Team login / Dashboard / Log out */
.sf-footer__legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.sf-footer__legal a { display: inline-block; padding-block: 4px; text-decoration: none; transition: color 0.2s ease; }
.sf-footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sf-footer__account { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-footer__bottom .sf-footer__account-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 36px;
	padding: 6px 15px;
	border: 1px solid var(--sf-line-strong);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--sf-muted);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.sf-footer__bottom .sf-footer__account-link:hover {
	border-color: color-mix(in srgb, var(--sf-ice) 55%, transparent);
	background: rgba(127, 220, 255, 0.08);
	color: #fff;
	box-shadow: 0 0 24px -8px rgba(74, 168, 255, 0.7);
}

/* ==========================================================================
   13. Motion
   ========================================================================== */
.js .sf-reveal.sf-reveal-ready {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.8s ease, transform 0.8s var(--sf-ease);
}

.js .sf-reveal.sf-reveal-ready.is-visible { opacity: 1; transform: none; }

@keyframes sf-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes sf-spin { to { transform: rotate(360deg); } }
@keyframes sf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sf-drift { 0% { transform: translate(-50%, -50%) scale(1); } 100% { transform: translate(-42%, -56%) scale(1.15); } }
@keyframes sf-aurora { 0% { transform: translate(0, 0) rotate(0deg); } 100% { transform: translate(-6%, 4%) rotate(8deg); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.sf-hero__particles,
	.sf-hero__video { display: none; }
	.js .sf-reveal.sf-reveal-ready { opacity: 1; transform: none; }
}

@media (max-width: 899px) {
	.sf-art--banner .sf-art__title { top: 8%; bottom: auto; text-align: left; font-size: 12cqw; }
}

@media (max-width: 899px) {
	.sf-gallery--grid .sf-gallery__item:last-child:nth-child(even) { grid-column: 1 / -1; }
}

/* ==========================================================================
   15. 1.1.0 — badges, warnings, game logos, roster, contact form
   ========================================================================== */
.entry-content .sf-social { padding-left: 0; }

.sf-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.sf-rating {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	padding: 5px 10px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #fff;
	background: #b3261e;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 6px;
}

.sf-warning {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 560px;
	margin: 0 0 22px;
	padding: 10px 14px;
	font-size: 0.86rem;
	line-height: 1.5;
	color: #ffd9d6;
	background: rgba(179, 38, 30, 0.14);
	border: 1px solid rgba(255, 110, 100, 0.3);
	border-radius: 12px;
}

.sf-warning__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	font-weight: 800;
	font-size: 0.8rem;
	color: #fff;
	background: #b3261e;
	border-radius: 50%;
}

.sf-warning--sm { font-size: 0.8rem; padding: 8px 12px; margin-bottom: 16px; }
.sf-article__header .sf-warning { margin-top: 16px; }

/* Game logos replace text titles where set. */
.sf-banner__title.has-logo,
.sf-game-hero__title.has-logo { line-height: 0; text-shadow: none; }

.sf-banner__logo {
	width: auto;
	max-width: min(100%, 420px);
	max-height: 230px;
	filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.7));
	transition: transform 0.4s var(--sf-ease);
}

.sf-banner__title a:hover .sf-banner__logo { transform: scale(1.03); }

.sf-game-hero__logo {
	width: auto;
	max-width: min(100%, 520px);
	max-height: 300px;
	filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.75));
}

@media (min-width: 900px) {
	.sf-banner:nth-child(even) .sf-banner__logo { margin-left: auto; }
	.sf-banner:nth-child(even) .sf-badges { justify-content: flex-end; }
	.sf-banner:nth-child(even) .sf-warning { margin-left: auto; }
}

.sf-game-card__logo-wrap {
	position: absolute;
	left: 16px;
	bottom: 14px;
	z-index: 2;
	width: 46%;
	max-width: 240px;
	pointer-events: none;
}

.sf-game-card__logo-wrap img { width: 100%; height: auto; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.8)); }
.sf-game-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 8, 12, 0.75), transparent 55%); pointer-events: none; }
.sf-game-card .sf-badges { margin-bottom: 4px; }

.sf-press__logo-link { display: inline-block; margin-bottom: 10px; }
.sf-press__logo { width: auto; max-width: 220px; max-height: 110px; }
.sf-press__visual .sf-gallery__credit { margin-top: 8px; }

.sf-gallery__credit,
.sf-banner__credit { margin: 10px 0 0; font-size: 0.78rem; color: var(--sf-dim); }
.sf-banner:nth-child(even) .sf-gallery__credit { text-align: left; }

/* Shardling roster */
.sf-roster {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 1.5em 0 2em;
}

@media (min-width: 560px) {
	.sf-roster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.sf-roster__item {
	margin: 0;
	padding: 12px 10px 14px;
	text-align: center;
	background:
		radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--sf-accent) 22%, transparent), transparent 70%),
		var(--sf-surface);
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-r);
	transition: transform 0.3s var(--sf-ease), border-color 0.3s ease;
}

.sf-roster__item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--sf-accent) 50%, transparent); }
.entry-content .sf-roster__item img { width: 100%; max-width: 128px; height: auto; margin: 0 auto 8px; border-radius: 0; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6)); }
.sf-roster__item figcaption { display: flex; flex-direction: column; gap: 2px; margin: 0; text-align: center; }
.sf-roster__item strong { font-family: var(--sf-font-display); font-weight: 400; font-size: 1.1rem; color: #fff; letter-spacing: 0.01em; }
.sf-roster__item span { font-size: 0.78rem; color: var(--sf-muted); }

/* Contact page */
.sf-contact-layout { display: grid; gap: 32px; align-items: start; }

@media (min-width: 1000px) {
	.sf-contact-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; }
}

.sf-contact-layout__aside { display: grid; gap: 20px; }
.sf-contact-layout__intro { font-size: 1.05rem; color: var(--sf-muted); }
.sf-contact-layout__intro p:last-child { margin-bottom: 0; }

.sf-contact-card {
	padding: 22px 24px;
	background: linear-gradient(180deg, var(--sf-surface-2), var(--sf-surface));
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-r-lg);
}

.sf-contact-card__title { font-size: 1.35rem; margin-bottom: 12px; }
.sf-contact-card p { color: var(--sf-muted); font-size: 0.95rem; }
.sf-contact-card .sf-btn { width: 100%; }
.sf-contact-card--discord { background: radial-gradient(80% 120% at 100% 0%, rgba(88, 101, 242, 0.25), transparent 60%), linear-gradient(180deg, var(--sf-surface-2), var(--sf-surface)); }

.sf-contact-card__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.sf-contact-card__links a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	color: var(--sf-text);
	font-weight: 600;
	text-decoration: none;
	border-radius: 12px;
	transition: background 0.2s ease, color 0.2s ease;
}

.sf-contact-card__links a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.sf-contact-card__links a span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--sf-gold);
	background: rgba(255, 194, 46, 0.12);
	border-radius: 10px;
}

/* Form */
.sf-form-panel {
	padding: 24px 20px;
	background: var(--sf-glass);
	border: 1px solid var(--sf-line-strong);
	border-radius: var(--sf-r-lg);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -40px rgba(74, 168, 255, 0.35);
	scroll-margin-top: calc(var(--sf-header-h) + 16px);
}

@media (min-width: 640px) {
	.sf-form-panel { padding: 32px; }
}

.sf-form__grid { display: grid; gap: 4px 18px; }

@media (min-width: 640px) {
	.sf-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sf-field--full { grid-column: 1 / -1; }
}

.sf-field { margin: 0 0 16px; }
.sf-field > input, .sf-field > select, .sf-field > textarea { display: block; }
.sf-field label { color: #fff; font-size: 0.9rem; }

.sf-form select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a3abbc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.sf-form select option { background: var(--sf-surface); color: var(--sf-text); }
.sf-form textarea { min-height: 170px; resize: vertical; }

.sf-form [aria-invalid="true"] { border-color: #ff6b5f; box-shadow: 0 0 0 4px rgba(255, 107, 95, 0.15); }
.sf-field__error { margin: 6px 0 0; font-size: 0.84rem; color: #ff8a80; }

.sf-form__alert {
	margin-bottom: 20px;
	padding: 12px 16px;
	font-weight: 600;
	font-size: 0.92rem;
	color: #ffd9d6;
	background: rgba(179, 38, 30, 0.18);
	border: 1px solid rgba(255, 110, 100, 0.35);
	border-radius: 12px;
}

.sf-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 8px; }
.sf-form__footer .sf-btn { flex: 1 1 100%; }
.sf-form__note { margin: 0; font-size: 0.84rem; color: var(--sf-dim); }

@media (min-width: 640px) {
	.sf-form__footer .sf-btn { flex: 0 0 auto; }
}

/* Honeypot: off-screen for people, still in the DOM for bots. */
.sf-hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sf-form-panel--sent { text-align: center; padding-block: 48px; }
.sf-form-sent__icon { display: inline-flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-bottom: 16px; color: #2a1200; background: linear-gradient(180deg, var(--sf-gold), var(--sf-ember)); border-radius: 22px; box-shadow: 0 14px 40px -10px rgba(255, 138, 28, 0.8); }
.sf-form-sent__title { font-size: 2rem; }
.sf-form-panel--sent p { color: var(--sf-muted); max-width: 440px; margin-inline: auto; }

.sf-gallery__item.is-hidden { display: none; }
.sf-gallery__item[data-more] .sf-gallery__link::after {
	content: attr(data-more);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--sf-font-display);
	font-size: 2rem;
	color: #fff;
	background: rgba(7, 8, 12, 0.62);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.sf-gallery__item[data-more] .sf-gallery__link { cursor: pointer; }
.sf-shots__count { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 28px; padding: 0 8px; margin-left: 6px; font-family: var(--sf-font-body); font-size: 0.8rem; font-weight: 700; color: var(--sf-muted); background: rgba(255, 255, 255, 0.08); border-radius: 999px; vertical-align: middle; }
.sf-game-body .alignwide,
.sf-game-body .alignfull { margin-inline: 0; width: auto; max-width: 100%; }

/* Admin bar spacing (replaces core's inline html margin; see inc/setup.php). */
body.admin-bar { padding-top: 32px; }
@media (max-width: 782px) { body.admin-bar { padding-top: 46px; } }
@media (min-width: 1000px) {
	.admin-bar .sf-hero { min-height: calc(100svh - var(--sf-header-h) - 32px); }
}

/* Launch controls: placeholder where a hidden download button would be. */
.sf-btn--soon {
	--sf-btn-bg: rgba(255, 255, 255, 0.04);
	--sf-btn-fg: var(--sf-muted);
	border: 1px dashed var(--sf-line-strong);
	box-shadow: none;
	cursor: default;
}
.sf-btn--soon:hover { transform: none; box-shadow: none; color: var(--sf-muted); }
.sf-btn--block { width: 100%; margin-top: 10px; }

/* ==========================================================================
   16. 1.2.0 — beta button, header actions, ribbons, beta page, chips
   ========================================================================== */
.sf-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sf-header__cta { width: auto; min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }

@media (max-width: 420px) {
	.sf-header__cta { padding: 8px 12px; font-size: 0.82rem; }
	.sf-header__cta .sf-icon { display: none; }
}

@media (min-width: 1000px) {
	.sf-header__actions { margin-left: 8px; }
	.sf-header__cta { min-height: 44px; padding: 10px 20px; font-size: 0.98rem; }
}

/* Colourful animated beta button */
.sf-btn--beta {
	--sf-btn-fg: #170a26;
	--sf-btn-glow: rgba(154, 92, 255, 0.75);
	position: relative;
	background: linear-gradient(100deg, #7fdcff 0%, #4aa8ff 18%, #9a5cff 38%, #ff5fb0 58%, #ffc22e 78%, #7fdcff 100%);
	background-size: 240% 100%;
	border-color: rgba(255, 255, 255, 0.45);
	animation: sf-beta-shift 6s linear infinite;
	overflow: hidden;
}

.sf-btn--beta::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
	transform: translateX(-120%);
	animation: sf-beta-shine 3.2s ease-in-out infinite;
	pointer-events: none;
}

.sf-btn--beta:hover { --sf-btn-fg: #170a26; filter: saturate(1.15) brightness(1.05); }
.sf-btn--beta .sf-icon { position: relative; z-index: 1; }
.sf-btn--beta span { position: relative; z-index: 1; }

@keyframes sf-beta-shift { to { background-position: 240% 0; } }
@keyframes sf-beta-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

.sf-footer__beta { background: linear-gradient(90deg, #7fdcff, #9a5cff, #ff5fb0, #ffc22e); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-weight: 700; }

/* COMING SOON ribbon */
.sf-ribbon {
	/* A square corner box (S) that clips a band rotated 45°. The band's
	   centre line sits D from the corner, so the visible length there is
	   2 × D: always longer than the label, so it's never cut off. */
	--sf-rb-s: 140px;
	--sf-rb-w: 210px;
	--sf-rb-d: 84px;
	--sf-rb-h: 32px;
	position: absolute;
	top: 0;
	right: 0;
	z-index: 5;
	width: var(--sf-rb-s);
	height: var(--sf-rb-s);
	overflow: hidden;
	pointer-events: none;
	font-family: var(--sf-font-display);
	font-size: 0.95rem;
}

.sf-ribbon > span {
	position: absolute;
	top: calc(var(--sf-rb-d) * 0.70711 - var(--sf-rb-h) / 2);
	left: calc(var(--sf-rb-s) - var(--sf-rb-d) * 0.70711 - var(--sf-rb-w) / 2);
	display: block;
	width: var(--sf-rb-w);
	height: var(--sf-rb-h);
	line-height: var(--sf-rb-h);
	text-align: center;
	white-space: nowrap;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #2a1200;
	background: linear-gradient(180deg, #ffd25a, var(--sf-gold) 40%, var(--sf-ember));
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
	transform: rotate(45deg);
}

.sf-ribbon > span::before {
	content: "";
	position: absolute;
	inset: 3px 0;
	border-top: 1px dashed rgba(42, 18, 0, 0.35);
	border-bottom: 1px dashed rgba(42, 18, 0, 0.35);
}

.sf-ribbon--sm { --sf-rb-s: 96px; --sf-rb-w: 140px; --sf-rb-d: 56px; --sf-rb-h: 22px; font-size: 0.6rem; }
.sf-ribbon--sm > span::before { inset: 2px 0; }
/* The front-page hero thumbnails are only 72px tall on phones. */
@media (max-width: 719px) {
	.sf-hero-game__media .sf-ribbon--sm { --sf-rb-s: 70px; --sf-rb-w: 104px; --sf-rb-d: 40px; --sf-rb-h: 17px; font-size: 0.5rem; }
}
.sf-banner { overflow: hidden; }
.sf-ribbon--lg { --sf-rb-s: 180px; --sf-rb-w: 270px; --sf-rb-d: 108px; --sf-rb-h: 38px; font-size: 1.15rem; }

@media (min-width: 900px) {
	.sf-ribbon--lg { --sf-rb-s: 224px; --sf-rb-w: 330px; --sf-rb-d: 132px; --sf-rb-h: 46px; font-size: 1.45rem; }
}

.sf-game-hero { overflow: hidden; }

/* Beta page perks */
.sf-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sf-perk { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: linear-gradient(180deg, var(--sf-surface-2), var(--sf-surface)); border: 1px solid var(--sf-line); border-radius: var(--sf-r); }
.sf-perk > span:last-child { display: flex; flex-direction: column; color: var(--sf-muted); font-size: 0.94rem; }
.sf-perk strong { font-family: var(--sf-font-display); font-weight: 400; font-size: 1.15rem; color: #fff; }

.sf-perk__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	color: #170a26;
	background: linear-gradient(135deg, #7fdcff, #9a5cff 50%, #ff5fb0);
	border-radius: 12px;
}

/* Toggle chips (checkbox groups) */
.sf-chips-field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.sf-chips-field legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 0.9rem; color: #fff; }
.sf-field__hint { font-weight: 400; color: var(--sf-dim); font-size: 0.82rem; margin-left: 6px; }
.sf-toggle-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.sf-toggle { position: relative; display: inline-flex; margin: 0; font-weight: 500; cursor: pointer; }
.sf-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.sf-toggle span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 42px;
	padding: 9px 16px;
	font-size: 0.92rem;
	color: var(--sf-text);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--sf-line-strong);
	border-radius: 999px;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sf-toggle span::before {
	content: "";
	width: 14px;
	height: 14px;
	border: 2px solid var(--sf-dim);
	border-radius: 50%;
	transition: all 0.2s ease;
}

.sf-toggle:hover span { border-color: rgba(255, 255, 255, 0.3); }
.sf-toggle input:checked + span { color: #fff; background: rgba(154, 92, 255, 0.2); border-color: #b48cff; }
.sf-toggle input:checked + span::before { background: radial-gradient(circle, #fff 30%, #9a5cff 35%); border-color: #c9a8ff; }
.sf-toggle input:focus-visible + span { outline: 2px solid var(--sf-ice); outline-offset: 2px; }
.sf-toggle__rating { font-style: normal; font-size: 0.7rem; font-weight: 800; padding: 1px 6px; color: #fff; background: #b3261e; border-radius: 4px; }
.sf-chips-field[aria-invalid="true"] .sf-toggle span { border-color: rgba(255, 107, 95, 0.6); }

.sf-checks { display: grid; gap: 10px; }
.sf-check { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: 400; font-size: 0.92rem; color: var(--sf-muted); cursor: pointer; }
.sf-check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: #9a5cff; }


@media (prefers-reduced-motion: reduce) {
	.sf-btn--beta,
	.sf-btn--beta::after { animation: none; }
}

/* "How we forge" pillars — v1.2 redesign */
.sf-pillars { position: relative; overflow: hidden; isolation: isolate; background: none; }

.sf-pillars__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(40% 60% at 15% 30%, color-mix(in srgb, var(--sf-ember) 16%, transparent), transparent 70%),
		radial-gradient(40% 60% at 85% 70%, color-mix(in srgb, var(--sf-amethyst) 14%, transparent), transparent 70%),
		radial-gradient(35% 50% at 50% 50%, color-mix(in srgb, var(--sf-crystal) 10%, transparent), transparent 70%),
		linear-gradient(180deg, var(--sf-bg) 0%, var(--sf-bg-2) 30%, var(--sf-bg-2) 70%, var(--sf-bg) 100%);
}

.sf-pillars__watermark {
	position: absolute;
	left: 50%;
	bottom: -0.18em;
	transform: translateX(-50%);
	font-family: var(--sf-font-display);
	font-size: clamp(7rem, 26vw, 22rem);
	line-height: 1;
	letter-spacing: 0.04em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 80%);
	-webkit-background-clip: text;
	background-clip: text;
	white-space: nowrap;
	user-select: none;
}

.sf-pillars__head { display: grid; gap: 12px; max-width: none; }

@media (min-width: 900px) {
	.sf-pillars__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px; }
	.sf-pillars__head .sf-section__lead { padding-bottom: 14px; }
}

.sf-pillars__grid { display: grid; gap: 18px; counter-reset: pillar; }

@media (min-width: 900px) {
	.sf-pillars__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	.sf-pillar:nth-child(2) { transform: translateY(28px); }
	.sf-pillar:nth-child(2):hover { transform: translateY(20px); }
}

.sf-pillar {
	--sf-pc: var(--sf-ember);
	--sf-pc2: var(--sf-gold);
	position: relative;
	padding: 30px 26px 34px;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 26px;
	background:
		radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--sf-pc) 24%, transparent), transparent 60%) padding-box,
		linear-gradient(180deg, rgba(23, 27, 38, 0.92), rgba(12, 14, 20, 0.92)) padding-box,
		linear-gradient(150deg, color-mix(in srgb, var(--sf-pc) 80%, transparent), rgba(255, 255, 255, 0.06) 45%, color-mix(in srgb, var(--sf-pc2) 40%, transparent)) border-box;
	box-shadow: 0 30px 60px -35px color-mix(in srgb, var(--sf-pc) 60%, transparent);
	transition: transform 0.4s var(--sf-ease), box-shadow 0.4s ease;
}

.sf-pillar:hover { transform: translateY(-8px); box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--sf-pc) 75%, transparent); }

.sf-pillar--crystal { --sf-pc: var(--sf-crystal); --sf-pc2: var(--sf-ice); }
.sf-pillar--amethyst { --sf-pc: var(--sf-amethyst); --sf-pc2: #ff5fb0; }

.sf-pillar__num {
	position: absolute;
	top: 10px;
	right: 20px;
	font-family: var(--sf-font-display);
	font-size: 5.5rem;
	line-height: 1;
	background: linear-gradient(180deg, color-mix(in srgb, var(--sf-pc) 55%, transparent), transparent 85%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	opacity: 0.55;
	pointer-events: none;
}

.sf-pillar .sf-pillar__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	margin-bottom: 22px;
	color: #fff;
	border-radius: 20px;
	background:
		radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4), transparent 50%),
		linear-gradient(160deg, var(--sf-pc2), var(--sf-pc));
	box-shadow: 0 16px 36px -10px color-mix(in srgb, var(--sf-pc) 85%, transparent), inset 0 -4px 0 rgba(0, 0, 0, 0.18);
	transform: rotate(-6deg);
	transition: transform 0.4s var(--sf-ease);
}

.sf-pillar:hover .sf-pillar__icon { transform: rotate(0deg) scale(1.06); }
.sf-pillar:nth-child(2) .sf-pillar__icon,
.sf-pillar:nth-child(3) .sf-pillar__icon { background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4), transparent 50%), linear-gradient(160deg, var(--sf-pc2), var(--sf-pc)); box-shadow: 0 16px 36px -10px color-mix(in srgb, var(--sf-pc) 85%, transparent), inset 0 -4px 0 rgba(0, 0, 0, 0.18); }
.sf-pillar:nth-child(2) .sf-pillar__icon { transform: rotate(5deg); }

.sf-pillar__title { position: relative; font-size: clamp(1.6rem, 3vw, 1.9rem); margin-bottom: 10px; }
.sf-pillar__text { position: relative; color: var(--sf-muted); max-width: none; margin: 0; }

.sf-pillar__bar {
	position: absolute;
	left: 26px;
	right: 26px;
	bottom: 0;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: linear-gradient(90deg, var(--sf-pc), var(--sf-pc2), transparent);
	transform-origin: left;
	transform: scaleX(0.35);
	transition: transform 0.5s var(--sf-ease);
}

.sf-pillar:hover .sf-pillar__bar { transform: scaleX(1); }
.sf-pillars .sf-front__content { margin-top: 80px; }

/* Breadcrumbs */
.sf-breadcrumbs { margin: 0 0 22px; font-size: 0.85rem; }
.sf-breadcrumbs ol { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.sf-breadcrumbs ol::-webkit-scrollbar { display: none; }
.sf-breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; }
.sf-breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px; border-top: 1.5px solid var(--sf-dim); border-right: 1.5px solid var(--sf-dim); transform: rotate(45deg); flex-shrink: 0; }
.sf-breadcrumbs a { color: var(--sf-muted); text-decoration: none; }
.sf-breadcrumbs a:hover { color: #fff; }
.sf-breadcrumbs [aria-current="page"] { color: var(--sf-text); font-weight: 600; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
.sf-breadcrumbs--hero { margin-bottom: 18px; }
.sf-breadcrumbs--hero a,
.sf-breadcrumbs--hero li + li::before { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.sf-hero__copy .sf-breadcrumbs ol { justify-content: center; }

/* Studio page */
.sf-studio-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 40px 56px; }
.sf-studio-hero__bg { position: absolute; inset: 0; z-index: -1; }
.sf-studio-hero__inner { display: grid; gap: 32px; align-items: center; }
.sf-studio-hero__title { font-size: clamp(2.6rem, 9vw, 5.4rem); line-height: 1; margin-bottom: 18px; text-wrap: balance; }
.sf-studio-hero__lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--sf-muted); max-width: 560px; margin-bottom: 22px; }
.sf-studio-hero__platforms { margin: 0; }
.sf-studio-hero__emblem { max-width: 460px; width: 100%; margin-inline: auto; animation: sf-float 7s ease-in-out infinite; }
.sf-studio-hero__logo { width: 100%; height: auto; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px color-mix(in srgb, var(--sf-crystal) 25%, transparent)); }

@media (min-width: 900px) {
	.sf-studio-hero { padding-block: 72px 96px; }
	.sf-studio-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; }
}

.sf-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: -24px 0 0;
	position: relative;
	z-index: 2;
}

@media (min-width: 800px) {
	.sf-stats { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 16px; }
}

.sf-stat {
	display: flex;
	flex-direction: column-reverse;
	padding: 20px 22px;
	background: var(--sf-glass);
	border: 1px solid var(--sf-line-strong);
	border-radius: var(--sf-r-lg);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.sf-stat dd { margin: 0; font-family: var(--sf-font-display); font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1; background: linear-gradient(180deg, #fff 20%, var(--sf-ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf-stat:nth-child(2) dd { background-image: linear-gradient(180deg, #ffe08a, var(--sf-ember)); }
.sf-stat:nth-child(3) dd { background-image: linear-gradient(180deg, #e3d0ff, var(--sf-amethyst)); }
.sf-stat dt { margin-top: 6px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sf-dim); }

.sf-studio-story__inner { display: grid; gap: 20px; }

@media (min-width: 900px) {
	.sf-studio-story__inner { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
	.sf-studio-story__label { position: sticky; top: calc(var(--sf-header-h) + 32px); }
}

.sf-studio-story__content { font-size: 1.08rem; }
.sf-studio-story__content .has-large-font-size {
	position: relative;
	padding-left: 22px;
	border-left: 3px solid transparent;
	border-image: linear-gradient(180deg, var(--sf-crystal), var(--sf-ember)) 1;
}

.sf-studio-games { padding-top: 0; }
.sf-logo-wall { display: grid; gap: 20px; }

@media (min-width: 760px) {
	.sf-logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sf-logo-wall__item {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 340px;
	padding: 26px;
	overflow: hidden;
	color: var(--sf-text);
	text-decoration: none;
	border: 1px solid color-mix(in srgb, var(--sf-accent) 35%, transparent);
	border-radius: 28px;
	isolation: isolate;
	box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--sf-accent) 60%, transparent);
	transition: transform 0.4s var(--sf-ease), box-shadow 0.4s ease;
}

.sf-logo-wall__item:hover { color: #fff; transform: translateY(-6px); box-shadow: 0 50px 90px -40px color-mix(in srgb, var(--sf-accent) 80%, transparent); }
.sf-logo-wall__media { position: absolute; inset: 0; z-index: -1; }
.sf-logo-wall__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 8, 12, 0.95) 10%, rgba(7, 8, 12, 0.35) 60%, rgba(7, 8, 12, 0.15)); }
.sf-logo-wall__item:hover .sf-media__img { transform: scale(1.05); }
.sf-logo-wall__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sf-logo-wall__logo { width: auto; max-width: min(100%, 300px); max-height: 150px; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.8)); }
.sf-logo-wall__name { font-family: var(--sf-font-display); font-weight: 400; font-size: 2.2rem; color: #fff; }
.sf-logo-wall__tagline { font-weight: 600; color: color-mix(in srgb, var(--sf-accent) 85%, #fff); }

/* Devlog category chips */
.sf-cat-nav { margin: 0 0 28px; }
.sf-cat-nav ul { display: flex; gap: 8px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.sf-cat-nav ul::-webkit-scrollbar { display: none; }
.sf-cat-nav a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 16px;
	white-space: nowrap;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--sf-muted);
	text-decoration: none;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--sf-line-strong);
	border-radius: 999px;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.sf-cat-nav a span { font-size: 0.75rem; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--sf-dim); }
.sf-cat-nav a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.sf-cat-nav a[aria-current="page"] { color: #2a1200; background: linear-gradient(180deg, #ffd25a, var(--sf-gold) 40%, var(--sf-ember)); border-color: transparent; }
.sf-cat-nav a[aria-current="page"] span { background: rgba(42, 18, 0, 0.15); color: #2a1200; }

/* 1.2.2: the full logo (crystals + lettering) in a taller header. */
:root { --sf-header-h: 76px; }
@media (min-width: 1000px) { :root { --sf-header-h: 100px; } }
.sf-header__brand { display: flex; align-items: center; padding-block: 6px; }
.sf-header .sf-logo__img,
.sf-header .custom-logo { width: auto; height: 62px; transition: height 0.3s ease; }
.sf-header.is-scrolled .sf-logo__img,
.sf-header.is-scrolled .custom-logo { height: 54px; }

@media (min-width: 1000px) {
	.sf-header .sf-logo__img,
	.sf-header .custom-logo { height: 86px; }
	.sf-header.is-scrolled .sf-logo__img,
	.sf-header.is-scrolled .custom-logo { height: 66px; }
}

.sf-footer__brand .sf-logo__img { height: 110px; width: auto; }
@media (min-width: 1000px) { .sf-footer__brand .sf-logo__img { height: 130px; } }

/* ==========================================================================
   1.3.0: Beta Access (code → download), closed sign-ups
   ========================================================================== */

/* 1.3.6: long words, gamer tags and URLs never push the page sideways on phones. */
body { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6, p, li, dd, dt, td, th, figcaption, blockquote, label { overflow-wrap: break-word; } /* Breaks only words that don't fit, so flex and grid items keep their natural width. */
.sf-card__title, .sf-game-card__tagline, .sf-hero-game__title, .sf-logo-wall__name, .sf-bs-game__name, .sf-ba-hero__title, .sf-ba-card__title, .sf-ba-game__name { overflow-wrap: anywhere; }
.entry-content a { overflow-wrap: anywhere; }

/* ==========================================================================
   1.3.6: Beta Access, "your code unlocks the forge"
   ========================================================================== */
.sf-ba { overflow-x: clip; }

/* Hero: the games in testing, aurora glow and embers */
.sf-ba-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 40px 128px; text-align: center; }
@media (min-width: 900px) { .sf-ba-hero { padding-block: 72px 176px; } }
.sf-ba-hero__art { position: absolute; inset: 0; z-index: -3; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.sf-ba-hero__cover { position: relative; overflow: hidden; }
.sf-ba-hero__cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.3) brightness(0.45); transform: scale(1.1); animation: sf-ba-pan 26s ease-in-out infinite alternate; }
.sf-ba-hero__cover + .sf-ba-hero__cover img { animation-direction: alternate-reverse; }
.sf-ba-hero__cover + .sf-ba-hero__cover { box-shadow: -40px 0 60px -20px rgba(7, 8, 12, 0.9); }
.sf-ba-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(75% 65% at 50% 38%, rgba(7, 8, 12, 0.1), rgba(7, 8, 12, 0.82) 78%), linear-gradient(180deg, rgba(7, 8, 12, 0.6) 0%, rgba(7, 8, 12, 0.15) 38%, var(--sf-bg) 100%); }
/* The wrapper stays still and holds the fade; only the glow inside it spins, so the fade never turns with it. */
.sf-ba-hero__aurora { position: absolute; inset: -25% -25% 0; z-index: -1; opacity: 0.5; mix-blend-mode: screen; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 42%, transparent 88%); mask-image: linear-gradient(180deg, #000 42%, transparent 88%); }
.sf-ba-hero__aurora::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 200deg at 50% 50%, transparent 0deg, color-mix(in srgb, var(--sf-crystal) 40%, transparent) 55deg, color-mix(in srgb, var(--sf-amethyst) 36%, transparent) 115deg, transparent 175deg, color-mix(in srgb, var(--sf-ember) 32%, transparent) 255deg, transparent 320deg); filter: blur(70px); animation: sf-spin 48s linear infinite; }
.sf-ba-hero .sf-hero__particles { z-index: -1; }
.sf-ba-hero .sf-hero__particles { -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 96%); mask-image: linear-gradient(180deg, #000 50%, transparent 96%); }
.sf-ba-hero__inner { position: relative; max-width: 900px; }
.sf-ba-hero .sf-breadcrumbs { display: flex; justify-content: center; }
.sf-ba-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 18px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.sf-ba-hero__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: sf-ba-ping 1.8s ease-out infinite; }
.sf-ba-hero__title { margin: 0 0 18px; font-family: var(--sf-font-display); font-weight: 400; font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: 0.98; color: #fff; text-shadow: 0 12px 44px rgba(0, 0, 0, 0.65); }
.sf-ba-hero__lead { max-width: 620px; margin: 0 auto 26px; color: #c9cfdd; font-size: clamp(1rem, 2.4vw, 1.2rem); }
.sf-ba-hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sf-ba-hero__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(13, 15, 22, 0.62); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px); font-size: 0.9rem; color: var(--sf-text); }
.sf-ba-hero__chips .sf-icon { color: var(--sf-ice); }

/* Stage: the unlock card rises out of the hero, steps beside it */
.sf-ba-stage { position: relative; z-index: 2; display: grid; gap: 40px; margin-top: -88px; padding-bottom: 40px; }
@media (min-width: 1000px) { .sf-ba-stage { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 56px; margin-top: -124px; } }

/* The card and its spinning forge ring */
.sf-ba-card { position: relative; isolation: isolate; padding: 2px; border-radius: 30px; }
.sf-ba-card__ring { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.sf-ba-card__ring::before { content: ""; position: absolute; inset: -60%; background: conic-gradient(from 0deg, #7fdcff, #4aa8ff, #9a5cff, #ff5fb0, #ffc22e, #ff8a1c, #7fdcff); animation: sf-spin 6s linear infinite; }
.sf-ba-card::after { content: ""; position: absolute; inset: 14px; z-index: -2; border-radius: inherit; background: conic-gradient(from 90deg, #4aa8ff, #9a5cff, #ff5fb0, #ffc22e, #4aa8ff); filter: blur(42px); opacity: 0.45; animation: sf-ba-glow 3.6s ease-in-out infinite alternate; }
.sf-ba-card__inner { position: relative; display: block; margin: 0; padding: 40px 22px 26px; border-radius: 28px; background: linear-gradient(180deg, rgba(21, 24, 35, 0.97), rgba(10, 12, 19, 0.99)); text-align: center; }
@media (min-width: 600px) { .sf-ba-card__inner { padding: 48px 44px 34px; } }
.sf-ba-card__medallion { display: grid; place-items: center; width: 78px; height: 78px; margin: -84px auto 16px; border-radius: 24px; color: #170a26; background: linear-gradient(135deg, #7fdcff, #9a5cff 52%, #ffc22e); box-shadow: 0 20px 50px -12px rgba(154, 92, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.65); animation: sf-ba-bob 5s ease-in-out infinite; }
.sf-ba-card__title { margin: 0 0 6px; font-family: var(--sf-font-display); font-weight: 400; font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.05; color: #fff; }
.sf-ba-card__sub { margin: 0 0 24px; color: var(--sf-muted); }
.sf-ba-card .sf-field { margin-bottom: 16px; text-align: left; }
.sf-ba-card .sf-form__alert { text-align: left; }
.sf-ba-code .sf-ba-code__input { padding-block: 18px; font-family: ui-monospace, Consolas, "SFMono-Regular", monospace; font-size: clamp(1.1rem, 4.6vw, 1.55rem); font-weight: 700; letter-spacing: 0.14em; text-align: center; text-transform: uppercase; color: #fff; border-color: color-mix(in srgb, var(--sf-crystal) 45%, var(--sf-line-strong)); background: radial-gradient(120% 160% at 50% 0%, rgba(74, 168, 255, 0.14), transparent 62%), rgba(255, 255, 255, 0.03); }
.sf-ba-code .sf-ba-code__input:focus { box-shadow: 0 0 0 4px rgba(127, 220, 255, 0.18), 0 0 46px -8px rgba(74, 168, 255, 0.8); }
.sf-ba-code .sf-ba-code__input::placeholder { color: var(--sf-text); opacity: 0.3; letter-spacing: 0.14em; }
@media (max-width: 380px) { .sf-ba-code .sf-ba-code__input, .sf-ba-code .sf-ba-code__input::placeholder { padding-inline: 10px; font-size: 1rem; letter-spacing: 0.05em; } } /* The whole code stays visible on small phones. */
.sf-ba-card__submit { width: 100%; justify-content: center; margin-top: 6px; padding-block: 16px; font-size: 1.05rem; }
.sf-ba-card__note { margin: 16px 0 0; color: var(--sf-muted); font-size: 0.92rem; }
.sf-ba-card--error .sf-ba-card__inner { animation: sf-ba-shake 0.45s ease-in-out 1; }

/* "You're in!" */
.sf-ba-card--ok .sf-ba-card__ring::before { animation-duration: 2.6s; }
.sf-ba-card--ok .sf-ba-card__inner { overflow: hidden; padding-top: 36px; }
.sf-ba-card__granted { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 7px 14px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #052617; background: linear-gradient(90deg, #3ddc84, #7fdcff); box-shadow: 0 12px 30px -10px rgba(61, 220, 132, 0.85); }
.sf-ba-card__title--big { font-size: clamp(2.7rem, 10vw, 4.2rem); background: linear-gradient(90deg, #fff, #7fdcff, #ffc22e, #ff5fb0, #fff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sf-beta-shift 6s linear infinite; }
.sf-ba-card__game { margin: 10px 0 16px; }
.sf-ba-card__logo { display: block; width: auto; max-width: min(100%, 320px); max-height: 140px; margin: 0 auto; filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.75)); animation: sf-ba-pop 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) 0.15s both; }
.sf-ba-card__gamename { margin: 0; font-family: var(--sf-font-display); font-size: 2.2rem; color: #fff; }
.sf-ba-card__warning { text-align: left; }
.sf-ba-card__download { width: 100%; justify-content: center; margin-top: 4px; padding-block: 18px; font-size: 1.12rem; animation: sf-beta-shift 6s linear infinite, sf-ba-ring 2.2s ease-out infinite; }
.sf-ba-card__small { margin: 10px 0 0; color: var(--sf-muted); font-size: 0.88rem; }
.sf-ba-card__notes { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--sf-line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); font-size: 0.95rem; text-align: left; }
.sf-ba-card__notes p:last-child { margin-bottom: 0; }
.sf-ba-card__next { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; counter-reset: sf-next; text-align: left; }
.sf-ba-card__next li { position: relative; padding: 13px 14px 13px 52px; border: 1px solid var(--sf-line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); counter-increment: sf-next; }
.sf-ba-card__next li::before { content: counter(sf-next); position: absolute; left: 13px; top: 50%; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; font-size: 0.85rem; font-weight: 800; color: #1a0d00; background: var(--sf-accent, var(--sf-ember)); transform: translateY(-50%); }
.sf-ba-card__next code { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.06em; }

/* Crystal-shard burst behind "You're in!" */
.sf-ba-burst { position: absolute; left: 50%; top: 92px; width: 0; height: 0; pointer-events: none; }
.sf-ba-burst i { position: absolute; left: -5px; top: -9px; width: 10px; height: 18px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: linear-gradient(180deg, #7fdcff, #4aa8ff); opacity: 0; animation: sf-ba-shard 1.5s cubic-bezier(0.12, 0.7, 0.3, 1) both; }
.sf-ba-burst i:nth-child(3n) { background: linear-gradient(180deg, #ffd25a, #ff8a1c); }
.sf-ba-burst i:nth-child(3n + 1) { background: linear-gradient(180deg, #ff8ad0, #9a5cff); }
.sf-ba-burst i:nth-child(1) { --r: 0deg; --d: 150px; }
.sf-ba-burst i:nth-child(2) { --r: 26deg; --d: 120px; animation-delay: 0.05s; }
.sf-ba-burst i:nth-child(3) { --r: 51deg; --d: 165px; }
.sf-ba-burst i:nth-child(4) { --r: 77deg; --d: 130px; animation-delay: 0.08s; }
.sf-ba-burst i:nth-child(5) { --r: 103deg; --d: 155px; }
.sf-ba-burst i:nth-child(6) { --r: 129deg; --d: 115px; animation-delay: 0.04s; }
.sf-ba-burst i:nth-child(7) { --r: 154deg; --d: 160px; }
.sf-ba-burst i:nth-child(8) { --r: 180deg; --d: 125px; animation-delay: 0.1s; }
.sf-ba-burst i:nth-child(9) { --r: 206deg; --d: 150px; }
.sf-ba-burst i:nth-child(10) { --r: 231deg; --d: 120px; animation-delay: 0.06s; }
.sf-ba-burst i:nth-child(11) { --r: 257deg; --d: 165px; }
.sf-ba-burst i:nth-child(12) { --r: 283deg; --d: 130px; animation-delay: 0.09s; }
.sf-ba-burst i:nth-child(13) { --r: 309deg; --d: 155px; }
.sf-ba-burst i:nth-child(14) { --r: 334deg; --d: 118px; animation-delay: 0.03s; }

/* How it works */
@media (min-width: 1000px) { .sf-ba-steps { padding-top: 156px; } }
.sf-ba-steps__title { margin: 0 0 20px; font-family: var(--sf-font-display); font-weight: 400; font-size: 1.9rem; color: #fff; }
.sf-ba-steps__list { position: relative; display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.sf-ba-steps__list::before { content: ""; position: absolute; left: 23px; top: 26px; bottom: 26px; width: 2px; background: linear-gradient(180deg, var(--sf-crystal), var(--sf-amethyst), var(--sf-ember)); opacity: 0.55; }
.sf-ba-step { position: relative; display: flex; align-items: flex-start; gap: 16px; }
.sf-ba-step__node { position: relative; z-index: 1; flex: 0 0 48px; display: grid; place-items: center; height: 48px; border-radius: 16px; color: #170a26; background: linear-gradient(135deg, #7fdcff, #9a5cff 55%, #ff5fb0); box-shadow: 0 12px 30px -10px rgba(154, 92, 255, 0.9); }
.sf-ba-step:nth-child(2) .sf-ba-step__node { background: linear-gradient(135deg, #9a5cff, #ff5fb0 55%, #ffc22e); }
.sf-ba-step:nth-child(3) .sf-ba-step__node { background: linear-gradient(135deg, #ff5fb0, #ffc22e 55%, #ff8a1c); }
.sf-ba-step__body { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; color: var(--sf-muted); }
.sf-ba-step__body strong { font-family: var(--sf-font-display); font-weight: 400; font-size: 1.25rem; color: #fff; }
.sf-ba-steps__note { margin-top: 24px; color: var(--sf-muted); }

/* Now in testing */
.sf-ba-games { padding-top: 16px; }
.sf-ba-games__grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .sf-ba-games__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-ba-game { position: relative; isolation: isolate; display: grid; min-height: 340px; overflow: hidden; border: 1px solid var(--sf-line); border-radius: 24px; color: var(--sf-text); text-decoration: none; transition: transform 0.35s var(--sf-ease), box-shadow 0.35s, border-color 0.35s; }
.sf-ba-game:hover, .sf-ba-game:focus-visible { transform: translateY(-6px); border-color: color-mix(in srgb, var(--sf-accent) 60%, transparent); box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--sf-accent) 85%, transparent); }
.sf-ba-game__media { position: absolute; inset: 0; z-index: -1; }
.sf-ba-game__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--sf-ease); }
.sf-ba-game:hover .sf-ba-game__media img { transform: scale(1.06); }
.sf-ba-game__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 8, 12, 0.97) 20%, rgba(7, 8, 12, 0.45) 66%, rgba(7, 8, 12, 0.1)); }
.sf-ba-game__body { align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; }
.sf-ba-game__state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: rgba(7, 8, 12, 0.62); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); }
.sf-ba-game__state span { width: 8px; height: 8px; border-radius: 50%; background: var(--sf-gold); }
.sf-ba-game__state--open span { background: #3ddc84; animation: sf-ba-ping 1.8s ease-out infinite; }
.sf-ba-game__logo { width: auto; max-width: min(100%, 280px); max-height: 110px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.8)); }
.sf-ba-game__name { font-family: var(--sf-font-display); font-size: 2rem; font-weight: 400; color: #fff; }
.sf-ba-game__tagline { font-weight: 600; color: color-mix(in srgb, var(--sf-accent) 80%, #fff); }
.sf-ba-game__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 0.88rem; color: #c9cfdd; }
.sf-ba-game__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.sf-ba-game__ends { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: #fff; background: color-mix(in srgb, var(--sf-accent) 24%, rgba(7, 8, 12, 0.6)); border: 1px solid color-mix(in srgb, var(--sf-accent) 50%, transparent); }
.sf-ba-games__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 30px 0 0; color: var(--sf-muted); }

@keyframes sf-ba-ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }
@keyframes sf-ba-pan { from { transform: scale(1.1) translateX(-2%); } to { transform: scale(1.16) translateX(2%); } }
@keyframes sf-ba-glow { from { opacity: 0.28; } to { opacity: 0.6; } }
@keyframes sf-ba-bob { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-6px) rotate(-4deg); } }
@keyframes sf-ba-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes sf-ba-pop { from { opacity: 0; transform: scale(0.6) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes sf-ba-ring { 0% { box-shadow: 0 0 0 0 rgba(154, 92, 255, 0.6), 0 18px 40px -16px rgba(154, 92, 255, 0.9); } 100% { box-shadow: 0 0 0 16px rgba(154, 92, 255, 0), 0 18px 40px -16px rgba(154, 92, 255, 0.9); } }
@keyframes sf-ba-shard { 0% { opacity: 1; transform: rotate(var(--r)) translateY(0) scale(0.3); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--r)) translateY(calc(-1 * var(--d))) scale(1); } }
@media (prefers-reduced-motion: reduce) {
	.sf-ba-burst { display: none; }
	.sf-ba-card__ring::before { animation: none; }
}

/* ==========================================================================
   1.4.0: Beta sign-up ("join the testers"), tester journey, Beta Testing Rules
   ========================================================================== */
@keyframes sf-bs-pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes sf-bs-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-6deg); } }
@keyframes sf-bs-sheen { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(220%) skewX(-18deg); } }

.sf-ba-hero__eyebrow.is-closed .sf-ba-hero__dot { background: var(--sf-gold); animation: none; }

/* Stage: the application card rises out of the hero, perks beside it */
@media (min-width: 1000px) { .sf-bs-stage { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.sf-bs-card .sf-ba-card__inner { text-align: left; }
.sf-bs-form > .sf-ba-card__title,
.sf-bs-form > .sf-ba-card__sub { text-align: center; }
.sf-bs-form > .sf-ba-card__title { display: block; }

/* Live progress (shown by the script; the form works fine without it) */
.sf-bs-progress { margin: 0 0 28px; padding: 16px 18px 14px; border: 1px solid var(--sf-line); border-radius: 18px; background: rgba(255, 255, 255, 0.03); transition: border-color 0.4s ease, box-shadow 0.4s ease; }
.sf-bs-progress[hidden] { display: none; }
.sf-bs-progress__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sf-muted); }
.sf-bs-progress__head strong { font-family: var(--sf-font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: 0; color: #fff; font-variant-numeric: tabular-nums; }
.sf-bs-progress__bar { position: relative; height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.sf-bs-progress__bar span { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, #7fdcff, #9a5cff, #ff5fb0, #ffc22e, #7fdcff); background-size: 200% 100%; box-shadow: 0 0 18px rgba(154, 92, 255, 0.7); transition: width 0.7s var(--sf-ease); animation: sf-beta-shift 4s linear infinite; }
.sf-bs-progress__bar span::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); animation: sf-bs-sheen 2.4s ease-in-out infinite; }
.sf-bs-progress__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 0.8rem; font-weight: 600; color: var(--sf-dim); }
.sf-bs-progress__steps li { display: flex; align-items: center; gap: 7px; min-width: 0; transition: color 0.3s ease; }
.sf-bs-progress__steps li span { flex: none; display: grid; place-items: center; width: 22px; height: 22px; box-sizing: border-box; line-height: 1; /* Fixed size: stays a circle when phones stack the steps in a column. */ border: 1px solid var(--sf-line-strong); border-radius: 50%; font-size: 0.7rem; font-weight: 800; transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
.sf-bs-progress__steps li.is-done { color: #fff; }
.sf-bs-progress__steps li.is-done span { border-color: #3ddc84; background: #3ddc84; color: #052617; animation: sf-bs-pop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1); }
.sf-bs-form.is-complete .sf-bs-progress { border-color: rgba(61, 220, 132, 0.45); box-shadow: 0 0 44px -18px rgba(61, 220, 132, 0.9); }
@media (max-width: 420px) { .sf-bs-progress__steps { font-size: 0.72rem; } .sf-bs-progress__steps li { flex-direction: column; gap: 4px; text-align: center; } }

/* Numbered steps */
.sf-bs-step { position: relative; margin: 0 0 8px; padding-bottom: 8px; }
.sf-bs-step + .sf-bs-step { padding-top: 22px; border-top: 1px dashed rgba(255, 255, 255, 0.09); }
.sf-bs-step__title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--sf-font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.1; color: #fff; }
.sf-bs-step__num { position: relative; flex: 0 0 36px; display: grid; place-items: center; height: 36px; border-radius: 12px; font-family: var(--sf-font-body); font-size: 0.95rem; font-weight: 800; color: #170a26; background: linear-gradient(135deg, #7fdcff, #9a5cff 55%, #ff5fb0); box-shadow: 0 10px 24px -10px rgba(154, 92, 255, 0.9); transition: background 0.35s ease, box-shadow 0.35s ease; }
.sf-bs-step:nth-of-type(2) .sf-bs-step__num { background: linear-gradient(135deg, #9a5cff, #ff5fb0 55%, #ffc22e); }
.sf-bs-step:nth-of-type(3) .sf-bs-step__num { background: linear-gradient(135deg, #ff5fb0, #ffc22e 55%, #ff8a1c); }
.sf-bs-step:nth-of-type(4) .sf-bs-step__num { background: linear-gradient(135deg, #ffc22e, #ff8a1c 55%, #ff5fb0); }
.sf-bs-step__num > span,
.sf-bs-step__num svg { grid-area: 1 / 1; transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.2, 1.5, 0.4, 1); }
.sf-bs-step__num svg { opacity: 0; transform: scale(0.3); }
.sf-bs-step.is-done .sf-bs-step__num { background: linear-gradient(135deg, #3ddc84, #7fdcff); box-shadow: 0 10px 26px -10px rgba(61, 220, 132, 0.95); }
.sf-bs-step.is-done .sf-bs-step__num > span { opacity: 0; transform: scale(0.3); }
.sf-bs-step.is-done .sf-bs-step__num svg { opacity: 1; transform: none; }

/* Game tiles */
.sf-bs-games { min-width: 0; margin: 0 0 10px; padding: 0; border: 0; }
.sf-bs-games legend { margin-bottom: 12px; padding: 0; font-size: 0.9rem; font-weight: 600; color: #fff; }
.sf-bs-games__grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .sf-bs-games__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sf-bs-game { position: relative; display: block; margin: 0; cursor: pointer; }
.sf-bs-game input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sf-bs-game__card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 160px; padding: 16px 18px; overflow: hidden; border: 2px solid var(--sf-line-strong); border-radius: 18px; background: var(--sf-surface); transition: transform 0.35s var(--sf-ease), border-color 0.25s ease, box-shadow 0.35s ease; }
.sf-bs-game__media { position: absolute; inset: 0; z-index: -1; }
.sf-bs-game__media > * { width: 100%; height: 100%; }
.sf-bs-game__media img { object-fit: cover; filter: saturate(0.75) brightness(0.55); transition: transform 0.6s var(--sf-ease), filter 0.35s ease; }
.sf-bs-game__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 8, 12, 0.95) 8%, rgba(7, 8, 12, 0.2) 75%); }
.sf-bs-game__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-right: 34px; }
.sf-bs-game__logo { width: auto; max-width: 160px; max-height: 58px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.85)); transition: transform 0.4s var(--sf-ease); }
.sf-bs-game__name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--sf-font-display); font-size: 1.25rem; line-height: 1.1; color: #fff; }
.sf-bs-game__meta { font-size: 0.82rem; color: #c9cfdd; }
.sf-bs-game__check { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 50%; background: rgba(7, 8, 12, 0.55); color: transparent; transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
.sf-bs-game:hover .sf-bs-game__card { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sf-accent) 55%, transparent); }
.sf-bs-game:hover .sf-bs-game__media img { transform: scale(1.06); filter: saturate(1) brightness(0.7); }
.sf-bs-game input:checked + .sf-bs-game__card { border-color: var(--sf-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sf-accent) 22%, transparent), 0 26px 50px -22px color-mix(in srgb, var(--sf-accent) 90%, transparent); }
.sf-bs-game input:checked + .sf-bs-game__card .sf-bs-game__media img { filter: saturate(1.15) brightness(0.8); }
.sf-bs-game input:checked + .sf-bs-game__card .sf-bs-game__logo { transform: scale(1.05); }
.sf-bs-game input:checked + .sf-bs-game__card .sf-bs-game__check { border-color: transparent; background: var(--sf-accent); color: #07080c; animation: sf-bs-pop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1); }
.sf-bs-game input:focus-visible + .sf-bs-game__card { outline: 2px solid var(--sf-ice); outline-offset: 3px; }
.sf-bs-games[aria-invalid="true"] .sf-bs-game__card { border-color: rgba(255, 107, 95, 0.6); }

/* Account instructions for the games you pick */
@keyframes sf-bs-acct-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }
.sf-bs-accounts { margin: 16px 0 6px; padding: 16px; border: 1px solid rgba(255, 194, 46, 0.3); border-radius: 18px; background: linear-gradient(135deg, rgba(255, 194, 46, 0.08), rgba(154, 92, 255, 0.06)); }
.js .sf-bs-accounts:not(.is-on),
.js .sf-bs-acct:not(.is-on) { display: none; }
.js .sf-bs-accounts.is-on,
.js .sf-bs-acct.is-on { animation: sf-bs-acct-in 0.45s var(--sf-ease) both; }
.sf-bs-accounts__title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-family: var(--sf-font-display); font-size: 1.15rem; color: #fff; }
.sf-bs-accounts__title .sf-icon { color: var(--sf-gold); }
.sf-bs-accounts__lead { margin: 0 0 12px; font-size: 0.9rem; color: var(--sf-muted); }
.sf-bs-accounts__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sf-bs-acct { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 12px 14px; border: 1px solid var(--sf-line); border-left: 3px solid var(--sf-accent); border-radius: 14px; background: rgba(7, 8, 12, 0.5); }
.sf-bs-acct__icon { flex: 0 0 40px; display: grid; place-items: center; height: 40px; border-radius: 12px; color: #07080c; background: var(--sf-accent); box-shadow: 0 10px 24px -12px var(--sf-accent); }
.sf-bs-acct__body { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 0.92rem; color: var(--sf-text); }
.sf-bs-acct__body strong { font-size: 0.98rem; color: #fff; }
.sf-bs-acct__body a { color: var(--sf-ice); }
.sf-bs-acct__go { flex: 0 0 auto; }
@media (max-width: 520px) { .sf-bs-acct__go { width: 100%; justify-content: center; } }

/* "Create your account" pop-up */
@keyframes sf-bs-modal-in { from { opacity: 0; transform: translateY(24px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes sf-bs-fade { from { opacity: 0; } to { opacity: 1; } }
.sf-bs-modal { width: min(520px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--sf-text); overflow: visible; }
.sf-bs-modal::backdrop { background: rgba(4, 5, 8, 0.74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sf-bs-modal[open] { animation: sf-bs-modal-in 0.5s cubic-bezier(0.2, 1.2, 0.3, 1) both; }
.sf-bs-modal[open]::backdrop { animation: sf-bs-fade 0.3s ease both; }
.sf-bs-modal__card { position: relative; max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; border: 1px solid color-mix(in srgb, var(--sf-accent) 50%, rgba(255, 255, 255, 0.12)); border-radius: 26px; background: linear-gradient(180deg, rgba(21, 24, 35, 0.98), rgba(10, 12, 19, 0.99)); box-shadow: 0 40px 100px -30px color-mix(in srgb, var(--sf-accent) 70%, #000), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.sf-bs-modal__media { position: relative; height: 180px; overflow: hidden; }
.sf-bs-modal__media .sf-bs-modal__cover,
.sf-bs-modal__media .sf-art { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2) brightness(0.62); transform: scale(1.08); animation: sf-ba-pan 18s ease-in-out infinite alternate; }
.sf-bs-modal__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 19, 0.1) 30%, rgba(17, 20, 29, 1) 100%), radial-gradient(60% 80% at 50% 100%, color-mix(in srgb, var(--sf-accent) 35%, transparent), transparent 70%); }
.sf-bs-modal__logo { position: absolute; left: 50%; bottom: 10px; z-index: 1; width: auto; max-width: 70%; max-height: 96px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.85)); transform: translateX(-50%); animation: sf-bs-logo-pop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) 0.15s both; }
@keyframes sf-bs-logo-pop { from { opacity: 0; transform: translateX(-50%) scale(0.6); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.sf-bs-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; background: rgba(7, 8, 12, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; }
.sf-bs-modal__close:hover { background: rgba(255, 255, 255, 0.16); transform: rotate(90deg); }
.sf-bs-modal__close:focus-visible { outline: 2px solid var(--sf-ice); outline-offset: 2px; }
.sf-bs-modal__body { padding: 10px 24px 24px; text-align: center; }
@media (min-width: 560px) { .sf-bs-modal__body { padding: 12px 34px 30px; } }
.sf-bs-modal__eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; padding: 6px 13px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #07080c; background: var(--sf-accent); box-shadow: 0 10px 26px -12px var(--sf-accent); }
.sf-bs-modal__title { margin: 0 0 10px; font-family: var(--sf-font-display); font-weight: 400; font-size: clamp(1.6rem, 6vw, 2.1rem); line-height: 1.05; color: #fff; }
.sf-bs-modal__text { margin: 0 0 18px; color: #c9cfdd; }
.sf-bs-modal__text a { color: var(--sf-ice); font-weight: 600; }
.sf-bs-modal__steps { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; text-align: left; }
.sf-bs-modal__steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--sf-line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); font-size: 0.94rem; opacity: 0; animation: sf-bs-acct-in 0.45s var(--sf-ease) both; }
.sf-bs-modal__steps li:nth-child(1) { animation-delay: 0.2s; }
.sf-bs-modal__steps li:nth-child(2) { animation-delay: 0.3s; }
.sf-bs-modal__steps li:nth-child(3) { animation-delay: 0.4s; }
.sf-bs-modal__steps li span { flex: 0 0 26px; display: grid; place-items: center; height: 26px; border-radius: 50%; font-size: 0.8rem; font-weight: 800; color: #07080c; background: var(--sf-accent); }
.sf-bs-modal__actions { display: grid; gap: 10px; }
.sf-bs-modal__actions .sf-btn { width: 100%; justify-content: center; }
@keyframes sf-bs-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sf-accent) 60%, transparent), 0 18px 40px -16px var(--sf-accent); } 100% { box-shadow: 0 0 0 16px transparent, 0 18px 40px -16px var(--sf-accent); } }
.sf-bs-modal__go { animation: sf-bs-ring 2.2s ease-out 0.8s infinite; }
.sf-bs-modal__legal { margin: 16px 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--sf-dim); }
.sf-bs-modal__ready { position: relative; padding-top: 4px; }
.sf-bs-modal__ready .sf-ba-burst { top: 40px; }
.sf-bs-modal__tick { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 24px; color: #052617; background: linear-gradient(135deg, #3ddc84, #7fdcff); box-shadow: 0 18px 44px -12px rgba(61, 220, 132, 0.9); animation: sf-ba-pop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.sf-bs-modal__ready .sf-bs-modal__eyebrow { color: #052617; background: linear-gradient(90deg, #3ddc84, #7fdcff); box-shadow: 0 10px 26px -12px rgba(61, 220, 132, 0.9); }
.sf-bs-acct__ready { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; color: #052617; background: linear-gradient(90deg, #3ddc84, #7fdcff); animation: sf-bs-pop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1); }
.sf-bs-acct__ready[hidden] { display: none; }
.sf-bs-acct.is-ready .sf-bs-acct__go { display: none; }
.sf-bs-acct.is-ready { border-left-color: #3ddc84; }
@media (prefers-reduced-motion: reduce) {
	.sf-bs-modal[open],
	.sf-bs-modal[open]::backdrop,
	.sf-bs-modal__logo,
	.sf-bs-modal__go,
	.sf-bs-modal__media .sf-bs-modal__cover,
	.sf-bs-modal__steps li { animation: none; opacity: 1; }
}

/* Chips: lift on hover, a check that pops in */
.sf-toggle span { transition: transform 0.2s var(--sf-ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; }
.sf-toggle:hover span { transform: translateY(-2px); }
.sf-toggle input:checked + span { background: linear-gradient(135deg, rgba(127, 220, 255, 0.2), rgba(154, 92, 255, 0.32)); border-color: #b48cff; box-shadow: 0 10px 26px -12px rgba(154, 92, 255, 0.95); }
.sf-toggle input:checked + span::before { border-color: transparent; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat, linear-gradient(135deg, #7fdcff, #9a5cff); animation: sf-bs-pop 0.4s cubic-bezier(0.2, 1.5, 0.4, 1); }

/* Agreement boxes */
.sf-bs-form .sf-checks { gap: 12px; }
.sf-bs-form .sf-check { align-items: flex-start; padding: 13px 15px; border: 1px solid var(--sf-line); border-radius: 14px; background: rgba(255, 255, 255, 0.025); color: var(--sf-text); transition: border-color 0.25s ease, background 0.25s ease; }
.sf-bs-form .sf-check:hover { border-color: rgba(255, 255, 255, 0.2); }
.sf-bs-form .sf-check:has(input:checked) { border-color: rgba(154, 92, 255, 0.5); background: rgba(154, 92, 255, 0.09); }
.sf-bs-form .sf-check input { -webkit-appearance: none; appearance: none; display: grid; place-items: center; width: 22px; height: 22px; margin: 1px 0 0; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 7px; background: rgba(255, 255, 255, 0.04); cursor: pointer; transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.sf-bs-form .sf-check input::after { content: ""; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23170a26' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; transform: scale(0); transition: transform 0.3s cubic-bezier(0.2, 1.5, 0.4, 1); }
.sf-bs-form .sf-check input:checked { border-color: transparent; background: linear-gradient(135deg, #7fdcff, #9a5cff 55%, #ff5fb0); box-shadow: 0 6px 18px -6px rgba(154, 92, 255, 0.95); }
.sf-bs-form .sf-check input:checked::after { transform: scale(1); }
.sf-bs-form .sf-check input:focus-visible { outline: 2px solid var(--sf-ice); outline-offset: 2px; }
.sf-bs-form .sf-check input[aria-invalid="true"] { border-color: rgba(255, 107, 95, 0.85); }
.sf-bs-form .sf-check a { color: var(--sf-ice); font-weight: 600; }

/* Submit: charges up when everything is filled in */
.sf-bs-submit { width: 100%; justify-content: center; margin-top: 18px; padding-block: 18px; font-size: 1.15rem; }
.sf-bs-submit.is-ready { animation: sf-beta-shift 6s linear infinite, sf-ba-ring 2.2s ease-out infinite; }
.sf-bs-form .sf-ba-card__note { text-align: center; }

/* Done and closed panels */
.sf-bs-done { text-align: center; }
.sf-bs-done .sf-ba-card__medallion { margin: 0 auto 14px; }
.sf-bs-done .sf-ba-card__next { max-width: 520px; margin-inline: auto; }
.sf-bs-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; }
.sf-bs-done:focus { outline: none; }
.sf-bs-closed { text-align: center; }
.sf-bs-closed__medal { color: var(--sf-text); background: var(--sf-surface-2); box-shadow: none; border: 1px solid var(--sf-line-strong); animation: none; }
.sf-bs-card--closed .sf-ba-card__ring::before { filter: grayscale(1); opacity: 0.45; animation-duration: 24s; }

/* Aside: perks that float, the rules card */
.sf-bs-aside { display: grid; gap: 16px; }
@media (min-width: 1000px) { .sf-bs-aside { padding-top: 150px; } }
.sf-bs-perks .sf-perk { position: relative; overflow: hidden; transition: transform 0.35s var(--sf-ease), border-color 0.3s ease, box-shadow 0.35s ease; }
.sf-bs-perks .sf-perk::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); transform: translateX(-120%) skewX(-18deg); pointer-events: none; }
.sf-bs-perks .sf-perk:hover { transform: translateY(-4px); border-color: rgba(154, 92, 255, 0.45); box-shadow: 0 30px 60px -32px rgba(154, 92, 255, 0.8); }
.sf-bs-perks .sf-perk:hover::after { animation: sf-bs-sheen 0.9s ease-out; }
.sf-bs-perks .sf-perk__icon { box-shadow: 0 10px 26px -10px rgba(154, 92, 255, 0.9); animation: sf-bs-float 5s ease-in-out infinite; }
.sf-bs-perks .sf-perk:nth-child(2) .sf-perk__icon { background: linear-gradient(135deg, #9a5cff, #ff5fb0 55%, #ffc22e); animation-delay: -1.7s; }
.sf-bs-perks .sf-perk:nth-child(3) .sf-perk__icon { background: linear-gradient(135deg, #ff5fb0, #ffc22e 55%, #ff8a1c); animation-delay: -3.4s; }
.sf-bs-aside__note { color: var(--sf-muted); }
.sf-bs-aside__note p:last-child { margin-bottom: 0; }

.sf-bs-rules-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid rgba(255, 194, 46, 0.35); border-radius: 18px; background: linear-gradient(135deg, rgba(255, 194, 46, 0.12), rgba(255, 138, 28, 0.05)); color: var(--sf-text); text-decoration: none; transition: transform 0.35s var(--sf-ease), box-shadow 0.35s ease, border-color 0.3s ease; }
.sf-bs-rules-card:hover,
.sf-bs-rules-card:focus-visible { color: var(--sf-text); transform: translateY(-3px); border-color: rgba(255, 194, 46, 0.7); box-shadow: 0 24px 50px -24px rgba(255, 138, 28, 0.85); }
.sf-bs-rules-card__icon { flex: 0 0 44px; display: grid; place-items: center; height: 44px; border-radius: 14px; color: #2a1200; background: linear-gradient(180deg, #ffd25a, var(--sf-ember)); box-shadow: 0 10px 24px -10px rgba(255, 138, 28, 0.9); }
.sf-bs-rules-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 0.92rem; color: var(--sf-muted); }
.sf-bs-rules-card__body strong { font-family: var(--sf-font-display); font-size: 1.15rem; font-weight: 400; color: #fff; }
.sf-bs-rules-card__go { margin-left: auto; color: var(--sf-gold); transition: transform 0.3s var(--sf-ease); }
.sf-bs-rules-card:hover .sf-bs-rules-card__go { transform: translateX(4px); }
.sf-ba-steps__rules { margin-top: 26px; }

/* How beta testing works */
.sf-bs-journey { padding-top: 32px; }
.sf-bs-journey__inner { max-width: 920px; }
.sf-journey { position: relative; padding: 30px 22px; border: 1px solid var(--sf-line); border-radius: 28px; background: radial-gradient(110% 70% at 0% 0%, rgba(74, 168, 255, 0.1), transparent 60%), radial-gradient(110% 70% at 100% 100%, rgba(255, 138, 28, 0.09), transparent 60%), rgba(255, 255, 255, 0.02); }
@media (min-width: 760px) { .sf-journey { padding: 44px 48px; } }
.sf-journey__title { margin: 0 0 26px; font-family: var(--sf-font-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.4rem); color: #fff; }
.sf-journey__step:nth-child(4) .sf-ba-step__node { background: linear-gradient(135deg, #ffc22e, #ff8a1c 55%, #ff5fb0); }
.sf-journey__step:nth-child(5) .sf-ba-step__node { background: linear-gradient(135deg, #7fdcff, #4aa8ff 55%, #9a5cff); }
.sf-journey__step:nth-child(6) .sf-ba-step__node { background: linear-gradient(135deg, #3ddc84, #7fdcff); }
.sf-journey a { color: var(--sf-ice); }
.sf-journey code { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: #fff; font-family: ui-monospace, Consolas, monospace; font-size: 0.86em; letter-spacing: 0.04em; white-space: nowrap; }
.sf-journey__accounts { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.sf-journey__accounts li { padding: 10px 14px; border-left: 3px solid var(--sf-accent); border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 0.93rem; color: var(--sf-text); }
.sf-journey .sf-journey__accounts strong { font-family: var(--sf-font-body); font-size: inherit; font-weight: 700; color: #fff; }
.sf-journey .sf-ba-step { transition: transform 0.3s var(--sf-ease); }
.sf-journey .sf-ba-step:hover { transform: translateX(4px); }
.sf-journey .sf-ba-step:hover .sf-ba-step__node { animation: sf-bs-pop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1); }

/* Beta Testing Rules page */
.sf-rules-hero__updated { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 0.9rem; color: var(--sf-muted); }
.sf-rules-layout { position: relative; z-index: 2; display: grid; gap: 28px; margin-top: -96px; padding-bottom: 24px; }
@media (min-width: 1000px) { .sf-rules-layout { grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 44px; margin-top: -128px; } }
.sf-rules-toc { display: none; }
@media (min-width: 1000px) { .sf-rules-toc { position: sticky; top: calc(var(--sf-header-h) + 24px); display: block; padding: 20px; border: 1px solid var(--sf-line); border-radius: 20px; background: rgba(13, 15, 22, 0.84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.sf-rules-toc__title { margin: 0 0 12px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sf-muted); }
.sf-rules-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.sf-rules-toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 0.92rem; line-height: 1.35; color: var(--sf-text); text-decoration: none; transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.sf-rules-toc a span { color: var(--sf-gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.sf-rules-toc a:hover,
.sf-rules-toc a.is-active { background: rgba(255, 255, 255, 0.07); color: #fff; transform: translateX(3px); }
.sf-rules-toc a.is-active span { color: var(--sf-ice); }
.sf-rules { min-width: 0; padding: 26px 20px; border: 1px solid var(--sf-line-strong); border-radius: 28px; background: linear-gradient(180deg, rgba(21, 24, 35, 0.95), rgba(10, 12, 19, 0.97)); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.95); }
@media (min-width: 760px) { .sf-rules { padding: 44px 48px; } }
.sf-rules__content > :first-child { margin-top: 0; }
.sf-rules__content > p:first-child { padding: 18px 20px; border: 1px solid rgba(127, 220, 255, 0.22); border-radius: 16px; background: linear-gradient(135deg, rgba(74, 168, 255, 0.1), rgba(154, 92, 255, 0.1)); font-size: 1.08rem; color: #d6dbe6; }
.sf-rules__content h2 { display: flex; align-items: center; gap: 14px; margin: 38px 0 14px; font-size: clamp(1.35rem, 3vw, 1.75rem); scroll-margin-top: calc(var(--sf-header-h) + 24px); }
.sf-rules__num { flex: 0 0 44px; display: grid; place-items: center; height: 44px; border-radius: 14px; font-family: var(--sf-font-body); font-size: 0.95rem; font-weight: 800; color: #170a26; background: linear-gradient(135deg, #7fdcff, #9a5cff 55%, #ff5fb0); box-shadow: 0 12px 30px -12px rgba(154, 92, 255, 0.95); }
.sf-rules__content h2:nth-of-type(3n + 2) .sf-rules__num { background: linear-gradient(135deg, #9a5cff, #ff5fb0 55%, #ffc22e); }
.sf-rules__content h2:nth-of-type(3n) .sf-rules__num { background: linear-gradient(135deg, #ffc22e, #ff8a1c 55%, #ff5fb0); }
.sf-rules__content ul { display: grid; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.sf-rules__content ul li { position: relative; margin: 0; padding: 11px 14px 11px 40px; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; background: rgba(255, 255, 255, 0.03); transition: border-color 0.25s ease, background 0.25s ease; }
.sf-rules__content ul li:hover { border-color: rgba(127, 220, 255, 0.25); background: rgba(127, 220, 255, 0.05); }
.sf-rules__content ul li::before { content: ""; position: absolute; left: 15px; top: 15px; width: 10px; height: 16px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: linear-gradient(180deg, #7fdcff, #4aa8ff); }
@media (min-width: 760px) { .sf-rules__content h2 ~ p, .sf-rules__content h2 ~ ul { margin-left: 58px; } }
.sf-rules-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

@media (prefers-reduced-motion: reduce) {
	.sf-bs-progress__bar span,
	.sf-bs-progress__bar span::after,
	.sf-bs-perks .sf-perk__icon,
	.sf-bs-submit.is-ready { animation: none; }
}

/* ==========================================================================
   Back to top (1.4.11): glass orb with a scroll-progress ring
   ========================================================================== */
.sf-to-top {
	--sf-tt-size: 52px;
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 45;
	display: grid;
	place-items: center;
	width: var(--sf-tt-size);
	height: var(--sf-tt-size);
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background:
		radial-gradient(circle at 32% 26%, rgba(127, 220, 255, 0.28), transparent 58%),
		radial-gradient(circle at 70% 80%, rgba(154, 92, 255, 0.3), transparent 60%),
		rgba(11, 13, 21, 0.82);
	-webkit-backdrop-filter: blur(10px) saturate(1.3);
	backdrop-filter: blur(10px) saturate(1.3);
	box-shadow:
		0 14px 32px -10px rgba(0, 0, 0, 0.75),
		inset 0 1px 0 rgba(255, 255, 255, 0.14),
		0 0 26px -6px rgba(154, 92, 255, 0.55);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	opacity: 0;
	visibility: hidden;
	transform: translateY(18px) scale(0.8);
	transition: opacity 0.3s var(--sf-ease), transform 0.35s var(--sf-ease), box-shadow 0.3s ease, visibility 0s linear 0.35s;
}
.sf-to-top[hidden] { display: none; }
.sf-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.3s var(--sf-ease), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, visibility 0s;
}
.sf-nav-open .sf-to-top { opacity: 0; visibility: hidden; }

.sf-to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; overflow: visible; }
.sf-to-top__ring circle { fill: none; stroke-width: 3; }
.sf-to-top__track { stroke: rgba(255, 255, 255, 0.1); }
.sf-to-top__bar {
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	filter: drop-shadow(0 0 3px rgba(154, 92, 255, 0.85));
	transition: stroke-dashoffset 0.15s linear;
}

.sf-to-top .sf-icon { position: relative; transition: transform 0.35s var(--sf-ease), color 0.25s ease; }
.sf-to-top:hover,
.sf-to-top:focus-visible {
	box-shadow:
		0 16px 36px -10px rgba(0, 0, 0, 0.8),
		inset 0 1px 0 rgba(255, 255, 255, 0.2),
		0 0 34px -2px rgba(255, 95, 176, 0.55),
		0 0 0 1px rgba(255, 255, 255, 0.12);
}
.sf-to-top:hover .sf-icon,
.sf-to-top:focus-visible .sf-icon { color: var(--sf-ice); transform: translateY(-3px); }
.sf-to-top:active { transform: scale(0.92); transition-duration: 0.1s; }
.sf-to-top:focus-visible { outline: 2px solid var(--sf-ice); outline-offset: 4px; }

/* "Back to top" label slides out on hover (mouse) and keyboard focus. */
.sf-to-top::after {
	content: attr(data-label);
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	padding: 7px 12px;
	border: 1px solid var(--sf-line-strong);
	border-radius: 999px;
	font: 600 0.78rem/1 var(--sf-font-body);
	letter-spacing: 0.02em;
	white-space: nowrap;
	color: #fff;
	background: rgba(11, 13, 21, 0.92);
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7);
	opacity: 0;
	transform: translate(8px, -50%);
	transition: opacity 0.2s ease, transform 0.25s var(--sf-ease);
	pointer-events: none;
}
.sf-to-top:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
@media (hover: hover) {
	.sf-to-top:hover::after { opacity: 1; transform: translate(0, -50%); }
}

#masthead:focus { outline: none; } /* Focus target after "Back to top" (tabindex -1). */

@media (min-width: 900px) {
	.sf-to-top { --sf-tt-size: 56px; right: 28px; bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.sf-to-top,
	.sf-to-top.is-visible { transform: none; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
	.sf-to-top.is-visible { transition: opacity 0.2s ease, visibility 0s; }
	.sf-to-top .sf-icon,
	.sf-to-top__bar,
	.sf-to-top::after { transition: none; }
	.sf-to-top:hover .sf-icon,
	.sf-to-top:focus-visible .sf-icon { transform: none; }
}

@media print {
	.sf-to-top { display: none !important; }
}

/* ==========================================================================
   About page: Tools of the forge (1.5.4)
   One card per group; its tools sit in a grid of tiles.
   ========================================================================== */
.sf-toolkit { position: relative; }
.sf-toolkit__head { max-width: 760px; }
.sf-toolkit__grid { display: grid; gap: 20px; }

.sf-toolkit__group {
	--sf-pc: var(--sf-ember);
	--sf-pc2: var(--sf-gold);
	position: relative;
	padding: 22px 18px 18px;
	border: 1px solid transparent;
	border-radius: 24px;
	background:
		radial-gradient(60% 80% at 0% 0%, color-mix(in srgb, var(--sf-pc) 16%, transparent), transparent 65%) padding-box,
		linear-gradient(180deg, rgba(23, 27, 38, 0.92), rgba(12, 14, 20, 0.92)) padding-box,
		linear-gradient(120deg, color-mix(in srgb, var(--sf-pc) 70%, transparent), rgba(255, 255, 255, 0.06) 40%, color-mix(in srgb, var(--sf-pc2) 28%, transparent)) border-box;
	box-shadow: 0 30px 60px -45px color-mix(in srgb, var(--sf-pc) 60%, transparent);
}
.sf-toolkit__group--crystal { --sf-pc: var(--sf-crystal); --sf-pc2: var(--sf-ice); }
.sf-toolkit__group--amethyst { --sf-pc: var(--sf-amethyst); --sf-pc2: #ff5fb0; }

.sf-toolkit__group-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	font-family: var(--sf-font-display);
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.15;
	color: #fff;
}
.sf-toolkit__group-icon {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	color: #fff;
	background: linear-gradient(135deg, var(--sf-pc), var(--sf-pc2));
	box-shadow: 0 10px 24px -10px var(--sf-pc), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.sf-toolkit__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sf-toolkit__tool {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 10px 12px 10px 10px;
	border: 1px solid var(--sf-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.025);
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--sf-ease);
}
.sf-toolkit__tool:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: color-mix(in srgb, var(--sf-pc) 40%, transparent);
	transform: translateY(-2px);
}

.sf-toolkit__badge {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid color-mix(in srgb, var(--sf-pc) 45%, transparent);
	border-radius: 12px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	color: color-mix(in srgb, var(--sf-pc2) 80%, #fff);
	background: color-mix(in srgb, var(--sf-pc) 16%, rgba(255, 255, 255, 0.02));
}
.sf-toolkit__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sf-toolkit__body strong { font-size: 0.98rem; color: #fff; overflow-wrap: anywhere; }
.sf-toolkit__body span { font-size: 0.86rem; line-height: 1.4; color: var(--sf-muted); }

/* Phones: smaller tiles, so the long list stays easy to scroll. */
@media (max-width: 639px) {
	.sf-toolkit__list { gap: 6px; }
	.sf-toolkit__tool { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 8px 10px 8px 8px; border-radius: 14px; }
	.sf-toolkit__badge { width: 34px; height: 34px; border-radius: 10px; font-size: 0.72rem; }
}

@media (min-width: 640px) {
	.sf-toolkit__group { padding: 24px 22px 22px; }
	.sf-toolkit__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Desktop: the group name on the left, its tools in three columns. */
@media (min-width: 1000px) {
	.sf-toolkit__group { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; padding: 26px 26px 26px 28px; }
	.sf-toolkit__group-title { flex-direction: column; align-items: flex-start; gap: 14px; margin: 4px 0 0; }
	.sf-toolkit__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.sf-toolkit__tool { transition: none; }
	.sf-toolkit__tool:hover { transform: none; }
}

/* Game pages: two games side by side (BoomBall / Dungeon BoomBall), 1.5.12. Stacks on phones. */
.entry-content .wp-block-columns.sf-game-modes {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 1.5em 0 2em;
}
@media (min-width: 700px) {
	.entry-content .wp-block-columns.sf-game-modes { grid-template-columns: 1fr 1fr; }
}
.entry-content .sf-game-modes > .wp-block-column {
	margin: 0;
	padding: 20px 22px 6px;
	background: var(--sf-glass);
	border: 1px solid var(--sf-line-strong);
	border-top: 3px solid var(--sf-accent);
	border-radius: var(--sf-r);
}
.entry-content .sf-game-modes h3 { margin-top: 0; }
.entry-content .sf-game-modes em { color: var(--sf-text); }
.entry-content .sf-game-modes p:last-child { color: var(--sf-muted); }
