/*
 * Biliardo 2 – theme styles.
 * Modern and minimal on a dark "billiard hall" base, with deliberately fake
 * retro details borrowed from the 2002 game: LED scoreboards, brass rail
 * diamonds, Windows 98 window frames, a beige CRT monitor.
 */

:root {
	--b2-night: var(--wp--preset--color--night);
	--b2-baize: var(--wp--preset--color--baize);
	--b2-felt: var(--wp--preset--color--felt);
	--b2-ivory: var(--wp--preset--color--ivory);
	--b2-chalk: var(--wp--preset--color--chalk);
	--b2-brass: var(--wp--preset--color--brass);
	--b2-walnut: var(--wp--preset--color--walnut);
	--b2-red: var(--wp--preset--color--red);
	--b2-yellow: var(--wp--preset--color--yellow);
	--b2-teal: var(--wp--preset--color--teal);
	--b2-led: var(--wp--preset--color--led);
	--b2-line: rgba(243, 236, 220, 0.1);
	--b2-card: rgba(243, 236, 220, 0.035);
	--b2-wide: var(--wp--style--global--wide-size, 1180px);
	--b2-gutter: var(--wp--style--root--padding-left, 1.5rem);
	--b2-pixel: var(--wp--preset--font-family--pixel);
	--b2-seg: var(--wp--preset--font-family--led);
	--b2-win: Tahoma, "Segoe UI", Verdana, Geneva, sans-serif;
	--b2-diamonds: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18'%3E%3Cpath d='M60 4l5 5-5 5-5-5z' fill='%23f3ecdc' fill-opacity='.85'/%3E%3C/svg%3E");
	--b2-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--b2-winbtns: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='14'%3E%3Cg%3E%3Crect x='0' y='0' width='16' height='14' fill='%23c0c0c0'/%3E%3Cpath d='M0 13.5h16M15.5 0v14' stroke='%23000'/%3E%3Cpath d='M.5 13V.5H15' stroke='%23fff' fill='none'/%3E%3Crect x='4' y='9' width='6' height='2' fill='%23000'/%3E%3C/g%3E%3Cg transform='translate(18 0)'%3E%3Crect width='16' height='14' fill='%23c0c0c0'/%3E%3Cpath d='M0 13.5h16M15.5 0v14' stroke='%23000'/%3E%3Cpath d='M.5 13V.5H15' stroke='%23fff' fill='none'/%3E%3Crect x='3.5' y='2.5' width='8' height='7' fill='none' stroke='%23000'/%3E%3Cpath d='M3.5 3.5h8' stroke='%23000'/%3E%3C/g%3E%3Cg transform='translate(36 0)'%3E%3Crect width='16' height='14' fill='%23c0c0c0'/%3E%3Cpath d='M0 13.5h16M15.5 0v14' stroke='%23000'/%3E%3Cpath d='M.5 13V.5H15' stroke='%23fff' fill='none'/%3E%3Cpath d='M4.5 3.5l6 6M10.5 3.5l-6 6' stroke='%23000' stroke-width='1.6'/%3E%3C/g%3E%3C/svg%3E");
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

body {
	background:
		radial-gradient(1200px 600px at 80% -10%, rgba(18, 112, 58, 0.18), transparent 60%),
		var(--b2-night);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--b2-yellow);
	color: var(--b2-night);
}

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

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

.wp-site-blocks {
	padding: 0;
}

/* The main element and the page content carry no extra spacing of their own. */
.b2-main {
	margin-block-start: 0;
}

.b2-main--home,
.b2-main--home > .wp-block-post-content {
	margin: 0;
}

.b2-main--home {
	padding: 0;
}

/* ---- Shared bits -------------------------------------------------------- */

.b2-kicker {
	font-family: var(--b2-pixel);
	font-size: 1.4rem;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--b2-brass);
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-block-end: 0.75rem;
}

.b2-kicker a {
	color: inherit;
	text-decoration: none;
}

.b2-kicker a:hover {
	color: var(--b2-yellow);
}

/* 7-segment LED readout, like the game's scoreboard. */
.b2-led {
	font-family: var(--b2-seg);
	font-weight: 700;
	font-style: normal;
	font-size: 0.78em;
	letter-spacing: 0.04em;
	color: #ff4034;
	text-shadow: 0 0 6px rgba(255, 64, 52, 0.65);
	background: #050805;
	border: 1px solid #1f2b22;
	border-radius: 4px;
	padding: 0.35em 0.45em 0.3em;
	line-height: 1;
	display: inline-block;
	text-transform: none;
}

.b2-led--green {
	color: var(--b2-led);
	text-shadow: 0 0 6px rgba(77, 255, 122, 0.55);
}

.b2-lead {
	font-size: var(--wp--preset--font-size--large);
	color: rgba(243, 236, 220, 0.86);
	max-width: 38rem;
}

.b2-muted {
	color: var(--b2-chalk);
}

/* Brass-and-walnut rail with mother-of-pearl diamonds. */
.b2-rail {
	height: 18px;
	background:
		var(--b2-diamonds) center / 120px 18px repeat-x,
		linear-gradient(180deg, #7a5230 0%, #5a3a1e 45%, #3a2410 100%);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 220, 170, 0.25);
}

/* Buttons */
.wp-block-button__link,
.b2-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.b2-btn {
	background: var(--b2-brass);
	color: var(--b2-night);
	border-radius: 999px;
	padding: 0.8rem 1.5rem;
}

.b2-btn:hover {
	background: var(--b2-yellow);
	color: var(--b2-night);
}

.wp-block-button__link:hover,
.b2-btn:hover {
	transform: translateY(-2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--b2-ivory);
	border: 1px solid rgba(243, 236, 220, 0.35);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--b2-yellow);
	color: var(--b2-yellow);
}

.b2-btn-ball {
	width: 1.05em;
	height: 1.05em;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff 0 12%, #f3ecdc 40%, #b9ad93 100%);
	box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.25);
	flex: none;
}

/* Numbered pool balls (used by the review cards and feature list). */
.b2-ballnum {
	--c: var(--b2-yellow);
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	flex: none;
	display: inline-grid;
	place-items: center;
	font-size: 0.72rem;
	font-weight: 700;
	color: #111;
	background:
		radial-gradient(circle at 50% 50%, #fff 0 32%, transparent 33%),
		radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), transparent 38%),
		var(--c);
	box-shadow: inset -3px -4px 6px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.35);
}

.b2-ball-1 { --c: #f6c21c; }
.b2-ball-2 { --c: #1d4fbf; }
.b2-ball-3 { --c: #e0322b; }
.b2-ball-4 { --c: #6b2d9c; }
.b2-ball-5 { --c: #f07c1e; }
.b2-ball-6 { --c: #12703a; }
.b2-ball-7 { --c: #7d1f1a; }
.b2-ball-8 { --c: #111; }
.b2-ball-9 { --c: linear-gradient(180deg, #f3ecdc 0 24%, #f6c21c 24% 76%, #f3ecdc 76%); }
.b2-ball-10 { --c: linear-gradient(180deg, #f3ecdc 0 24%, #1d4fbf 24% 76%, #f3ecdc 76%); }

/* ---- Header ------------------------------------------------------------- */

/* Sticky header: the template-part wrapper is what sticks to the viewport. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.b2-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem var(--b2-gutter);
	background: rgba(7, 16, 11, 0.72);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.b2-header.is-scrolled {
	border-bottom-color: rgba(212, 162, 76, 0.2);
	background: rgba(7, 16, 11, 0.88);
}

.b2-header > * {
	margin: 0 !important;
}

.b2-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 4vw, 3rem);
	flex: 1;
	min-width: 0;
}

.b2-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--b2-ivory);
	text-decoration: none;
	flex: none;
}

.b2-logo:hover {
	color: var(--b2-ivory);
}

.b2-logo__ball,
.b2-two {
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	font-weight: 700;
	color: #141414;
	line-height: 1;
	background:
		radial-gradient(circle at 50% 50%, #fff 0 33%, transparent 34%),
		radial-gradient(circle at 34% 28%, #ff8a7f 0, #e0322b 42%, #8e1510 100%);
	box-shadow: inset -3px -4px 7px rgba(0, 0, 0, 0.35);
}

.b2-logo__ball {
	width: 2.1rem;
	height: 2.1rem;
	font-size: 0.8rem;
	transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.b2-logo:hover .b2-logo__ball {
	transform: rotate(360deg);
}

.b2-logo__word {
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-size: 0.95rem;
}

.b2-nav {
	flex: 1;
	min-width: 0;
}

.b2-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: clamp(0.9rem, 2.2vw, 1.8rem);
}

.b2-nav a {
	position: relative;
	display: block;
	padding: 0.35rem 0;
	color: rgba(243, 236, 220, 0.72);
	text-decoration: none;
	font-size: 0.93rem;
	white-space: nowrap;
}

.b2-nav a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -0.25rem;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--b2-yellow);
	transform: translateX(-50%) scale(0);
	transition: transform 0.2s ease;
}

.b2-nav a:hover,
.b2-nav a.is-active {
	color: var(--b2-ivory);
}

.b2-nav a:hover::after,
.b2-nav a.is-active::after {
	transform: translateX(-50%) scale(1);
}

.b2-lang {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	flex: none;
	padding: 0.28rem 0.7rem 0.28rem 0.35rem;
	border: 1px solid rgba(243, 236, 220, 0.22);
	border-radius: 999px;
	color: var(--b2-ivory);
	text-decoration: none;
	font-family: var(--b2-pixel);
	font-size: 1.25rem;
	line-height: 1;
}

.b2-lang:hover {
	border-color: var(--b2-yellow);
	color: var(--b2-yellow);
}

.b2-lang__ball {
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.35);
}

.b2-lang__ball--it {
	background: radial-gradient(circle at 34% 28%, #ff8a7f, #e0322b 45%, #8e1510);
}

.b2-lang__ball--en {
	background: radial-gradient(circle at 34% 28%, #fff1a8, #f6c21c 45%, #a47c05);
}

@media (max-width: 900px) {
	.b2-header {
		flex-wrap: wrap;
		row-gap: 0.4rem;
	}

	.b2-header__inner {
		flex-wrap: wrap;
		row-gap: 0.5rem;
	}

	.b2-nav {
		order: 3;
		flex-basis: 100%;
		overflow-x: auto;
		scrollbar-width: none;
		mask-image: linear-gradient(90deg, #000 85%, transparent);
	}

	.b2-nav ul {
		justify-content: flex-start;
	}

	.b2-header .b2-lang {
		position: absolute;
		top: 0.85rem;
		right: var(--b2-gutter);
	}
}

/* ---- Sections of the home page ----------------------------------------- */

.b2-section {
	position: relative;
	padding-block: var(--wp--preset--spacing--70);
	margin-block: 0 !important;
}

.b2-section > * {
	position: relative;
	z-index: 1;
}

.b2-section h2 {
	margin-block-start: 0;
	max-width: 22ch;
}

/* Headings and intro text sit on the left edge of the wide column. */
.b2-section.is-layout-constrained > :is(h2, .b2-lead) {
	margin-left: max(0px, calc((100% - var(--b2-wide)) / 2)) !important;
	margin-right: auto !important;
}

.b2-section--felt {
	background:
		radial-gradient(120% 90% at 50% 0%, rgba(40, 170, 90, 0.22), transparent 60%),
		linear-gradient(180deg, var(--b2-felt), var(--b2-baize));
	box-shadow: inset 0 30px 60px -30px rgba(0, 0, 0, 0.8), inset 0 -30px 60px -30px rgba(0, 0, 0, 0.8);
}

.b2-section--felt::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--b2-noise);
	opacity: 0.16;
	mix-blend-mode: overlay;
	pointer-events: none;
	z-index: 0;
}

.b2-section--felt::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 18px;
	background:
		var(--b2-diamonds) center / 120px 18px repeat-x,
		linear-gradient(180deg, #7a5230 0%, #5a3a1e 45%, #3a2410 100%);
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.b2-section--felt .b2-kicker {
	color: var(--b2-yellow);
}

.b2-section--felt p {
	color: rgba(243, 236, 220, 0.9);
}

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

.b2-hero {
	position: relative;
	min-height: min(88vh, 860px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: var(--wp--preset--spacing--60) !important;
	padding-inline: var(--b2-gutter) !important;
	overflow: hidden;
	isolation: isolate;
}

.b2-hero .b2-hero__bg {
	position: absolute;
	inset: 0;
	margin: 0 !important;
	max-width: none !important;
	z-index: -2;
}

.b2-hero .b2-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 50%;
	animation: b2-hero-in 1.6s ease-out both;
}

.b2-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, var(--b2-night) 0%, rgba(7, 16, 11, 0.88) 30%, rgba(7, 16, 11, 0.2) 65%, rgba(7, 16, 11, 0) 100%),
		linear-gradient(0deg, var(--b2-night) 0%, transparent 25%);
}

.b2-hero > :not(.b2-hero__bg) {
	width: 100%;
	max-width: var(--b2-wide) !important;
	margin-inline: auto !important;
}

.b2-hero > :not(.b2-hero__bg) > * {
	max-width: 40rem;
}

.b2-hero__title {
	font-size: var(--wp--preset--font-size--huge);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 0.95;
	margin-block: 0.25rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 0.2em;
}

.b2-two {
	width: 0.92em;
	height: 0.92em;
	font-size: 1em;
	letter-spacing: 0;
}

.b2-two > span {
	font-size: 0.34em;
	transform: translateY(0.04em);
}

.b2-hero .wp-block-buttons {
	margin-block-start: 2rem;
}

@keyframes b2-hero-in {
	from {
		opacity: 0;
		transform: scale(1.06);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* LED scoreboard strip. */
.b2-scoreboard {
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0.6rem;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	background: linear-gradient(180deg, #13201a, #0a120e);
	border: 2px solid #3a2410;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.b2-scoreboard li {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0.35rem 0.6rem;
	border-right: 1px solid rgba(243, 236, 220, 0.08);
}

.b2-scoreboard li:last-child {
	border-right: 0;
}

.b2-scoreboard .b2-led {
	font-size: 1.35rem;
	background: transparent;
	border: 0;
	padding: 0;
}

.b2-scoreboard small {
	font-family: var(--b2-pixel);
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--b2-chalk);
}

/* ---- The game ----------------------------------------------------------- */

.b2-games {
	list-style: none;
	padding: 0;
	margin: 1.75rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.b2-games li {
	font-family: var(--b2-pixel);
	font-size: 1.35rem;
	line-height: 1;
	padding: 0.45rem 0.85rem 0.4rem;
	border: 1px solid rgba(212, 162, 76, 0.45);
	border-radius: 999px;
	color: var(--b2-ivory);
	background: rgba(7, 16, 11, 0.35);
}

.b2-features {
	list-style: none;
	padding: 0;
	margin: 3rem 0 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
	gap: 1rem;
}

.b2-features li {
	padding: 1.3rem 1.3rem 1.2rem;
	border-radius: 18px;
	background: var(--b2-card);
	border: 1px solid var(--b2-line);
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 0.9rem;
	row-gap: 0.25rem;
	align-items: start;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.b2-features li:hover {
	border-color: rgba(212, 162, 76, 0.5);
	transform: translateY(-3px);
}

.b2-features .b2-ballnum {
	grid-row: span 2;
}

.b2-features strong {
	font-size: 1.05rem;
	color: var(--b2-ivory);
}

.b2-features span:not(.b2-ballnum) {
	color: var(--b2-chalk);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* ---- Windows 98 frame (screenshots) ------------------------------------ */

.b2-shots {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2.5vw, 2rem);
	margin-block-start: 2.5rem !important;
}

@media (max-width: 960px) {
	.b2-shots {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.b2-shots {
		grid-template-columns: 1fr;
	}
}

.b2-shots > .wp-block-image,
.b2-win {
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	background: #c0c0c0;
	padding: 3px;
	box-shadow:
		inset -1px -1px #0a0a0a,
		inset 1px 1px #fff,
		inset -2px -2px #808080,
		inset 2px 2px #dfdfdf,
		0 18px 40px rgba(0, 0, 0, 0.45);
	transition: transform 0.2s ease;
}

.b2-shots > .wp-block-image:hover {
	transform: translateY(-4px) rotate(-0.4deg);
}

.b2-shots > .wp-block-image:nth-child(even):hover {
	transform: translateY(-4px) rotate(0.4deg);
}

.b2-shots > .wp-block-image figcaption,
.b2-win__bar {
	order: -1;
	margin: 0 0 3px !important;
	padding: 3px 60px 3px 5px;
	min-height: 20px;
	display: block;
	background:
		var(--b2-winbtns) right 3px center / 52px 14px no-repeat,
		linear-gradient(90deg, #000080, #1084d0);
	color: #fff;
	font: 700 12px/14px var(--b2-win);
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.b2-shots > .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	image-rendering: pixelated;
	border: 1px solid #808080;
	border-right-color: #fff;
	border-bottom-color: #fff;
}

.wp-lightbox-overlay .wp-block-image img {
	image-rendering: pixelated;
}

/* ---- CRT monitor (video) ----------------------------------------------- */

.b2-video {
	margin-block-start: 2.5rem !important;
}

.b2-crt {
	position: relative;
	max-width: 960px;
	margin: 0 auto;
	padding: clamp(12px, 3vw, 34px) clamp(12px, 3vw, 34px) clamp(34px, 5vw, 56px);
	border-radius: clamp(16px, 3vw, 30px);
	background: linear-gradient(180deg, #ece4cf 0%, #d6ccb2 60%, #c3b797 100%);
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, 0.7),
		inset 0 -4px 0 rgba(0, 0, 0, 0.15),
		0 30px 80px rgba(0, 0, 0, 0.6);
}

.b2-crt::before {
	content: "B2-VISION 15\2033";
	position: absolute;
	left: clamp(16px, 3vw, 38px);
	bottom: clamp(10px, 1.6vw, 18px);
	font: 700 0.72rem/1 var(--b2-win);
	letter-spacing: 0.18em;
	color: rgba(0, 0, 0, 0.35);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.b2-crt__led {
	position: absolute;
	right: clamp(18px, 3vw, 40px);
	bottom: clamp(13px, 2vw, 22px);
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--b2-led);
	box-shadow: 0 0 8px var(--b2-led);
}

.b2-crt__screen {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: clamp(10px, 2vw, 22px) / clamp(9px, 1.8vw, 18px);
	background: #000;
	box-shadow: inset 0 0 0 3px #2b2b2b, inset 0 0 40px rgba(0, 0, 0, 0.9);
}

.b2-crt__screen::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
		radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.b2-crt__screen.is-playing::after {
	display: none;
}

.b2-crt__screen img,
.b2-crt__screen iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}

.b2-video__play {
	position: absolute;
	inset: 0;
	width: 100%;
	border: 0;
	background: rgba(0, 0, 0, 0.15);
	cursor: pointer;
	display: grid;
	place-items: center;
	color: #fff;
	transition: background-color 0.2s ease;
	z-index: 2;
}

.b2-video__play:hover {
	background: rgba(0, 0, 0, 0);
}

.b2-video__ball {
	width: clamp(64px, 9vw, 96px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at 34% 28%, #fff 0 10%, #f3ecdc 45%, #a99d82 100%);
	box-shadow: inset -6px -8px 14px rgba(0, 0, 0, 0.3), 0 12px 30px rgba(0, 0, 0, 0.6);
	position: relative;
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.b2-video__ball::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-left: 22px solid var(--b2-red);
	border-top: 14px solid transparent;
	border-bottom: 14px solid transparent;
}

.b2-video__play:hover .b2-video__ball {
	transform: scale(1.08) rotate(-12deg);
}

.b2-video__label {
	position: absolute;
	left: 1rem;
	bottom: 0.8rem;
	right: 1rem;
	text-align: left;
	font-family: var(--b2-pixel);
	font-size: 1.3rem;
	line-height: 1.1;
	text-shadow: 0 1px 2px #000;
}

.b2-video__label::before {
	content: "\25B6\00a0";
	color: var(--b2-led);
}

/* ---- Setup dialog (download) ------------------------------------------- */

.b2-dialog {
	max-width: 560px;
	margin-inline: auto;
	background: #c0c0c0;
	color: #000;
	padding: 3px;
	font: 13px/1.45 var(--b2-win);
	box-shadow:
		inset -1px -1px #0a0a0a,
		inset 1px 1px #fff,
		inset -2px -2px #808080,
		inset 2px 2px #dfdfdf,
		0 30px 70px rgba(0, 0, 0, 0.55);
	transform: rotate(0.6deg);
}

.b2-dialog__body {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 14px;
	padding: 16px 14px 14px;
}

.b2-dialog__icon {
	width: 48px;
	height: 48px;
}

.b2-dialog p {
	margin: 0 0 10px;
	color: #000 !important;
}

.b2-specs {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 14px;
	margin: 0 0 12px;
	padding: 8px 10px;
	background: #fff;
	box-shadow: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #0a0a0a, inset -2px -2px #dfdfdf;
}

.b2-specs dt {
	color: #444;
}

.b2-specs dd {
	margin: 0;
	font-weight: 700;
}

.b2-progress {
	height: 22px;
	padding: 3px;
	margin-bottom: 14px;
	box-shadow: inset 1px 1px #808080, inset -1px -1px #fff;
	overflow: hidden;
}

.b2-progress span {
	display: block;
	height: 100%;
	width: 100%;
	background: repeating-linear-gradient(90deg, #000080 0 9px, transparent 9px 11px);
	animation: b2-progress 5s steps(24) infinite;
}

@keyframes b2-progress {
	from {
		width: 0;
	}
	80%,
	to {
		width: 100%;
	}
}

.b2-download {
	margin-block: 2rem 1.5rem !important;
}

.b2-btn--big {
	font-size: 1.15rem;
	padding: 1rem 1.8rem;
}

.b2-btn--big small {
	font-family: var(--b2-pixel);
	font-size: 1.15rem;
	font-weight: 400;
	opacity: 0.75;
	margin-left: 0.2rem;
}

.b2-note {
	font-size: 0.92rem;
	color: var(--b2-chalk);
	padding: 1rem 1.2rem;
	border-left: 3px solid var(--b2-brass);
	background: var(--b2-card);
	border-radius: 0 12px 12px 0;
}

/* ---- Story -------------------------------------------------------------- */

.b2-timeline {
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0 0 0 2.2rem;
	position: relative;
}

/* The cue: ivory tip, maple shaft, walnut butt. */
.b2-timeline::before {
	content: "";
	position: absolute;
	left: 0.55rem;
	top: 0.4rem;
	bottom: 0.4rem;
	width: 6px;
	border-radius: 3px;
	background: linear-gradient(180deg, #2d6fd6 0 10px, #f3ecdc 10px 16px, #e2c48f 16px, #c9a36a 62%, #5a3a1e 62% 80%, #1c120a 80%);
}

.b2-timeline li {
	position: relative;
	padding-bottom: 2rem;
}

.b2-timeline li::before {
	content: "";
	position: absolute;
	left: -2.05rem;
	top: 0.35rem;
	width: 0.95rem;
	height: 0.95rem;
	border-radius: 50%;
	background: radial-gradient(circle at 34% 28%, #fff 0 12%, #f3ecdc 45%, #b9ad93);
	box-shadow: 0 0 0 3px var(--b2-night);
}

.b2-timeline .b2-led {
	font-size: 1.05rem;
	margin-bottom: 0.55rem;
}

.b2-timeline p {
	margin: 0;
	color: rgba(243, 236, 220, 0.85);
	max-width: 44rem;
}

.b2-photo {
	margin: 0 !important;
}

.b2-photo img {
	border-radius: 20px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.b2-photo figcaption {
	font-family: var(--b2-pixel);
	font-size: 1.1rem;
	color: var(--b2-chalk);
	text-align: center;
}

/* ---- Reviews ------------------------------------------------------------ */

.b2-reviews {
	list-style: none;
	padding: 0;
	margin: 2.5rem 0 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
}

.b2-reviews__link {
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	padding: 1.35rem;
	border-radius: 18px;
	background: rgba(7, 16, 11, 0.4);
	border: 1px solid var(--b2-line);
	color: var(--b2-ivory);
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.b2-reviews__link:hover {
	color: var(--b2-ivory);
	border-color: rgba(246, 194, 28, 0.6);
	background: rgba(7, 16, 11, 0.6);
	transform: translateY(-3px);
}

.b2-reviews__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.b2-reviews__num {
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	display: inline-grid;
	place-items: center;
	font-size: 0.72rem;
	font-weight: 700;
	color: #111;
	background:
		radial-gradient(circle at 50% 50%, #fff 0 32%, transparent 33%),
		radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55), transparent 38%),
		var(--c);
	box-shadow: inset -3px -4px 6px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.35);
}

.b2-reviews__source {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.2;
}

.b2-reviews__text {
	color: var(--b2-chalk);
	font-size: 0.95rem;
	line-height: 1.55;
	flex: 1;
}

.b2-reviews__more {
	font-family: var(--b2-pixel);
	font-size: 1.2rem;
	color: var(--b2-yellow);
}

/* ---- Pages, reviews, archives ------------------------------------------ */

.b2-page,
.b2-review,
.b2-archive,
.b2-404 {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

.b2-page__title,
.b2-review__title {
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	letter-spacing: -0.03em;
	margin-block-end: 1.5rem;
}

.b2-page h2 {
	font-size: 1.6rem;
	margin-block-start: 3rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--b2-line);
}

.b2-page h3 {
	font-size: 1.2rem;
	margin-block-start: 2rem;
	color: var(--b2-brass);
}

.b2-page h4 {
	font-size: 1.05rem;
	margin-block-start: 1.5rem;
}

.b2-page li + li {
	margin-top: 0.4rem;
}

.b2-review__date {
	font-family: var(--b2-pixel);
	font-size: 1.35rem;
	color: var(--b2-chalk);
	margin-block: -0.75rem 2rem;
}

.b2-review__body {
	font-size: 1.08rem;
}

.b2-review__body h2 {
	font-size: 1.6rem;
}

.b2-review__body h3 {
	font-size: 1.2rem;
	color: var(--b2-chalk);
}

.b2-review__body img {
	max-width: 100%;
	height: auto;
	image-rendering: pixelated;
	border: 3px solid #c0c0c0;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.b2-review__body .alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.5rem;
	max-width: 45%;
}

.b2-review__body .aligncenter {
	display: block;
	margin-inline: auto;
}

.b2-review__body a[target="_blank"]::after {
	content: " \2197";
}

.b2-review__nav {
	margin-block-start: 3.5rem !important;
	padding-top: 1.5rem;
	border-top: 1px solid var(--b2-line);
	gap: 1rem;
}

.b2-review__nav a {
	text-decoration: none;
}

.b2-review__cta {
	margin-block-start: 2rem !important;
}

.b2-list .wp-block-post-template {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
}

.b2-list__item {
	padding-block: 1.5rem;
	border-top: 1px solid var(--b2-line);
}

.b2-list__item h2 {
	font-size: 1.5rem;
	margin: 0.6rem 0 0.4rem;
}

.b2-list__item h2 a {
	color: var(--b2-ivory);
	text-decoration: none;
}

.b2-list__item h2 a:hover {
	color: var(--b2-yellow);
}

.b2-list__item .wp-block-post-date {
	font-family: var(--b2-seg);
	color: #ff4034;
}

.b2-list .wp-block-post-excerpt {
	color: var(--b2-chalk);
}

.b2-404__box {
	text-align: center;
	padding-block: var(--wp--preset--spacing--60);
}

.b2-404__code {
	font-size: clamp(3rem, 12vw, 7rem);
}

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

.b2-footer {
	margin-block-start: 0 !important;
	background: #050b08;
}

.b2-footer__inner {
	max-width: var(--b2-wide);
	margin: 0 auto;
	padding: 2rem var(--b2-gutter) 2.5rem;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	align-items: center;
	justify-content: space-between;
	font-size: 0.92rem;
	color: var(--b2-chalk);
}

.b2-footer__copy {
	margin: 0;
}

.b2-footer a {
	color: var(--b2-ivory);
}

.b2-badges {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.b2-badges li {
	font-family: var(--b2-pixel);
	font-size: 1.05rem;
	line-height: 1;
	padding: 0.35rem 0.55rem 0.3rem;
	color: #cfe9d8;
	background: #0b1a12;
	border: 1px solid #1f3a2a;
	box-shadow: 2px 2px 0 #000;
}

/* ---- Reveal on scroll (only with JS) ----------------------------------- */

.b2-js .b2-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.b2-js .b2-reveal.is-in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.b2-js .b2-reveal {
		opacity: 1;
		transform: none;
	}
}

.b2-404__box h1 {
	font-size: var(--wp--preset--font-size--x-large);
}

@media (max-width: 600px) {
	.b2-scoreboard {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.b2-scoreboard li {
		border-right: 0;
	}
}
