@font-face {
	font-family: 'Terminus';
	src: url('/assets/fonts/terminus-webfont-115b1ac6fd3a8344fa557bf157fda2b7.woff2?vsn=d') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Theme colors */
	/* Only used as fallback, will be overwritten (consider editing these values in /src/scripts/modules/theme.js) */
	--main-color: #dcdcdc;
	--main-color-40: #dcdcdc8c;
	--main-color-20: #dcdcdc4d;
	--bg-color: 12, 12, 12; /* example: rgba(var(--bg-color), 0.5) to use the background-color with 50% opacity */
	--bg-opacity: 0.15;
	--selection: #4a4a4a;

	/* other */
	--warning-color: rgb(240, 86, 86);
	--info-color: #ffffff;

	--noise-opacity: 0.65;
	--background-video-opacity: 0.275;
	--grunge-overlay-opacity: 0.9;

	--tab-background-blur: 4px;

	font-size: 10px;
}

html {
	background: black;
	overflow-x: hidden;
}

body {
	color: var(--main-color);
	background:
		radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 50%, rgba(var(--bg-color), 0.2) 250%),
		rgba(var(--bg-color), var(--bg-opacity));

	margin: 0;
	height: 100vh;
	width: 100vw;

	overflow-y: auto;
	scroll-behavior: smooth;

	font-family: 'Terminus', 'Courier New', monospace;
}

/* BACKGROUND AND OVERLAYS */
#rain-vid,
#noise-overlay,
#grunge-overlay {
	position: fixed;
	overflow: hidden;

	top: 0;
	left: 0;
	bottom: 0;
	right: 0;

	height: 100vh;
	width: 100vw;

	pointer-events: none;

	z-index: 10;

	display: none; /* Hide background videos by default, will be overwritten in effects.css if effects are not disabled */
}

#rain-vid {
	opacity: var(--background-video-opacity);
	object-fit: cover;
	z-index: -1;
}

#grunge-overlay {
	z-index: 9998;
	background: url('/assets/images/grunge-ba4824ca588cae5f949023cee6808bd6.jpg?vsn=d');
	background-size: cover;
	mix-blend-mode: color-dodge;
	opacity: var(--grunge-overlay-opacity);
}

@keyframes noise {
	0% {
		background: url('/assets/images/noise-textures/noisy-texture-200x200-1-0198c685b8692fe64d61047541aed222.png?vsn=d');
	}
	25% {
		background: url('/assets/images/noise-textures/noisy-texture-200x200-2-74bf836e2aabe1510e0db92312fa0ab7.png?vsn=d');
	}
	50% {
		background: url('/assets/images/noise-textures/noisy-texture-200x200-3-bc5d03b540cdb5663398fb30390812d1.png?vsn=d');
	}
	75% {
		background: url('/assets/images/noise-textures/noisy-texture-200x200-4-bc4eb88617410f2ab389b14edd88e12e.png?vsn=d');
	}
}

#noise-overlay {
	background-blend-mode: multiply;
	background: url('/assets/images/noise-textures/noisy-texture-200x200-1-0198c685b8692fe64d61047541aed222.png?vsn=d');
	filter: contrast(1.5) brightness(0.4) hue-rotate(90deg);
	opacity: var(--noise-opacity);

	mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 150%);
	mask-size: cover;
	mask-position: center;

	animation: noise 0.3s steps(4) infinite;
}

.snowflake {
	position: fixed;
	animation-timing-function: linear;
	z-index: -1;
	background: white;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(1px);
}

@keyframes snowflake-fall {
	0% {
		transform: translateY(-15vh);
	}
	100% {
		transform: translateY(125vh);
	}
}

@keyframes snowflake-fall-horizontal-1 {
	0% {
		transform: translateX(0) translateY(-15vh);
	}
	100% {
		transform: translateX(20vw) translateY(125vh);
	}
}

@keyframes snowflake-fall-horizontal-2 {
	0% {
		transform: translateX(0) translateY(-15vh);
	}
	100% {
		transform: translateX(-20vw) translateY(125vh);
	}
}

/* global styles | general */

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

a {
	color: var(--main-color);
	text-decoration: underline;
}

a:hover {
	background-color: var(--main-color);
	cursor: pointer;
	color: rgba(24, 45, 75, 0.616);

	transition:
		box-shadow 0.1s,
		background-color 0s,
		color 0s;

	text-decoration: none;
}

pre,
p,
li,
h1,
h2,
h3,
h4,
td {
	margin: 0;
	font-weight: normal;
}

h4 {
	font-size: 1em;
}

p em {
	opacity: 0.7;
}

i {
	margin-right: 0.75em;
	vertical-align: middle;
}

summary {
	-webkit-user-select: none; /* Safari */
	user-select: none;
	outline: 1px solid var(--main-color);
	padding-left: 0.5em;
}

summary h2 {
	display: inline;
}

summary::marker {
	font-size: 1.5em;
}

summary:hover {
	cursor: pointer;
	background-color: var(--main-color);
	color: rgba(24, 45, 75, 0.616);
}

details[open] summary {
	margin-bottom: 0.5em;
}

details[open] summary:not(:hover) {
	background: linear-gradient(90deg, transparent -15%, rgba(var(--bg-color), 0.3) 65%);
}

#canvas {
	font-size: 1.75em;
	padding: 1.8em;
}


/* Terminal-style hamburger: matches the landing LOGIN button's box (same height, border, bg, blur). */
.mobile-menu-btn {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	padding: 0;
	font-size: 1.1em; /* same baseline as #landing-login-link */
	border: 1px solid var(--main-color);
	background: rgba(var(--bg-color), 0.55);
	backdrop-filter: blur(4px);
	color: var(--main-color);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.mobile-menu-btn:hover {
	background-color: var(--main-color);
	color: rgba(0, 0, 0, 0.75);
}

.mobile-menu-btn__line {
	display: block;
	width: 1.6em;
	height: 2px;
	background-color: currentColor;
}

@media screen and (max-width: 45em) {
	.mobile-menu-btn {
		display: flex;
	}
}

@media screen and (min-width: 45.001em) {
	.mobile-menu-btn {
		display: none !important;
	}
}

/* Mobile nav overlay and panel (same styles as nav-tabs / top-right box) */
#mobile-nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 25;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.2s, opacity 0.2s;
}

body.mobile-nav-open #mobile-nav-overlay {
	visibility: visible;
	opacity: 1;
}

#mobile-nav-overlay::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

#mobile-nav-panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 2em 1.25em;
	border: none;
	border-right: 1px solid var(--main-color);
	background: rgba(var(--bg-color), 0.98);
	backdrop-filter: blur(var(--tab-background-blur));
	box-shadow: none;
	transform: translateX(-100%);
	transition: transform 0.25s ease-out;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

body.mobile-nav-open #mobile-nav-panel {
	transform: translateX(0);
}

.mobile-nav-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin-bottom: 1.25em;
	flex: 0 0 auto;
}

.mobile-nav-panel__title {
	margin: 0;
	font-size: 1em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--main-color);
	opacity: 0.9;
}

.mobile-nav-panel__beta {
	display: inline-block;
	margin-left: 0.4em;
	padding: 0.1em 0.35em;
	font-size: 0.7em;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: 1px solid var(--main-color);
	background: rgba(var(--main-color), 0.08);
	opacity: 1;
}

.mobile-nav-panel__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2em;
	height: 2em;
	padding: 0;
	border: 1px solid var(--main-color);
	background: transparent;
	color: var(--main-color);
	font-size: 1.5em;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
	flex-shrink: 0;
}

.mobile-nav-panel__close:hover {
	background-color: var(--main-color);
	color: rgba(0, 0, 0, 0.75);
}

#mobile-nav-panel ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75em;
	flex: 0 0 auto;
}

#mobile-nav-panel .mobile-nav-link {
	display: block;
	padding: 0.65em 0.6em;
	font-size: 1.25em;
	border: 1px solid var(--main-color);
	background: transparent;
	color: var(--main-color);
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}

#mobile-nav-panel .mobile-nav-link:hover {
	background-color: var(--main-color);
	color: rgba(0, 0, 0, 0.75);
}

#mobile-nav-panel .mobile-nav-link.tab-active {
	background-color: var(--main-color);
	color: rgba(24, 45, 75, 0.616);
	text-decoration: none;
}

.mobile-nav-panel__footer {
	margin-top: auto;
	padding-top: 2em;
	display: flex;
	justify-content: center;
	align-items: flex-end;
}

.mobile-nav-panel__logo {
	max-width: 120px;
	height: auto;
	opacity: 0.85;
}

#top-left-ui {
	position: fixed;
	top: 1.2em;
	left: max(1.2em, calc((100% - 1280px) / 2 + 1.5em));
	z-index: 20;
	font-size: 1.1em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	pointer-events: none;
}

.top-left-ui__season {
	display: none;
}

.top-left-ui__beta {
	display: inline-block;
	margin-left: 0;
	padding: 0.1em 0.35em;
	font-size: 0.7em;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: 1px solid var(--main-color);
	background: rgba(var(--main-color), 0.08);
}

@media (min-width: 45em) {
	.top-left-ui__season {
		display: inline;
	}
	.top-left-ui__beta {
		margin-left: 0.4em;
	}
}

#terminal-prompt {
	position: fixed;
	left: 1.2em;
	bottom: 1.2em;
	z-index: 20;
	font-size: 1.1em;
	letter-spacing: 0.06em;
	pointer-events: none;
}

.terminal-cursor {
	text-decoration: underline;
	animation: cursor-pulse 1.2s steps(1) infinite;
}

#landing-publisher {
	padding: 1.5em 0 0.25em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.7em;
	color: var(--main-color);
}

.landing-publisher__bracket {
	font-size: 1.1em;
	line-height: 1;
	opacity: 0.4;
}

.landing-publisher__caption {
	font-size: 0.75em;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	opacity: 0.6;
}

#landing-publisher img {
	height: 1.3em;
	width: auto;
	display: block;
	opacity: 0.85;
	transition: opacity 200ms ease;
}

#landing-publisher img:hover {
	opacity: 1;
}

@keyframes cursor-pulse {
	0%,
	49% {
		opacity: 1;
	}
	50%,
	100% {
		opacity: 0;
	}
}

#terminal-clock {
	letter-spacing: 0.08em;
}

/* Boot sequence: only visible when .boot-show (first visit) */
.boot-show #boot-sequence {
	display: flex !important;
	visibility: visible !important; /* override body.no-fouc so boot shows immediately */
	position: fixed;
	inset: 0;
	z-index: 999;
	align-items: center;
	justify-content: center;
	background: rgba(var(--bg-color), 0.98);
	pointer-events: none;
	animation: boot-sequence-fade 3s ease forwards;
}

.boot-frame {
	text-align: center;
	padding: 1em 2em;
	border: none;
	background: transparent;
}

.boot-logo {
	width: min(70vw, 520px);
	height: auto;
	display: block;
	filter: brightness(1.05) contrast(1.05);
	margin-bottom: 0.6em;
	animation: boot-logo-out 3s ease forwards;
}

.boot-terminal {
	opacity: 0;
	animation: boot-terminal-in 3s ease forwards;
}

.boot-terminal p {
	margin: 0.2em 0;
}

@keyframes boot-sequence-fade {
	0%,
	85% {
		opacity: 1;
		visibility: visible;
	}
	100% {
		opacity: 0;
		visibility: hidden;
	}
}

@keyframes boot-logo-out {
	0%,
	35% {
		opacity: 1;
	}
	55%,
	100% {
		opacity: 0;
	}
}

@keyframes boot-terminal-in {
	0%,
	35% {
		opacity: 0;
	}
	55%,
	85% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.boot-show #boot-sequence {
		animation: none;
		opacity: 0;
		visibility: hidden;
	}
}

#toggle-effects a {
	padding: 0 0.3em;
	border: 1px solid var(--main-color);
	text-decoration: none;
}

#toggle-effects a:hover {
	background-color: var(--main-color);
	color: rgba(0, 0, 0, 0.65);
}

.tag-list {
	display: flex;
	gap: 0.5em;
	margin: 0.5em 0;
}

hr.dotted {
	border: none;
	border-top: 1px dotted var(--main-color);
	height: 1px;
	width: 100%;
}

.tooltip {
	position: absolute;
	background-color: rgba(var(--bg-color), 0.45);
	color: var(--main-color);
	padding: 5px 10px;
	border: 1px solid var(--main-color);
	font-size: 14px;
	pointer-events: none;
	white-space: nowrap;
}

/* ASCII AND INTRODUCTION */
#sub-title {
	font-size: 1em;
}

/* NAV BAR USED FOR TAB PAGES */
nav ul {
	list-style-type: none;
	display: flex;
	padding: 0;
	gap: 2.5em;
}

nav ul li a {
	padding: 0.2em 0.3em;
}

.tab-active {
	background-color: var(--main-color);
	color: rgba(24, 45, 75, 0.616);
	text-decoration: none;
}

/* PRINT ANIMATION WHEN CHANGING TABS AND ON PAGE LOAD */
.fade-in {
	opacity: 0;
}

.fade-in.visible:not(em) {
	opacity: 1;
	transform: translateY(0);
}

.fade-in.visible em {
	opacity: 0.7;
	transform: translateY(0);
}

@keyframes fade-in-anim {
	0% {
		opacity: 0.75;
		transform: scale(0.985) rotateX(-15deg);
	}
	35% {
		opacity: 0.8;
	}

	100% {
		opacity: 1;
		transform: scale(1) rotateX(0);
	}
}

.fade-in-anim:not(em) {
	animation: fade-in-anim 0.5s ease-out;
}

/* TABS */
.tabs:not(:target):not(.default-tab) {
	display: none;
}

.tabs {
	border: solid var(--main-color);
	padding: 1.5em;
	backdrop-filter: blur(var(--tab-background-blur));
	background: linear-gradient(45deg, rgba(var(--bg-color), 0.05) 70%, rgba(var(--bg-color), 0.2) 110%);
}

/* HOME TAB */
#welcome-title {
	background: linear-gradient(90deg, transparent -15%, rgba(var(--bg-color), 0.3) 65%);
	outline: 1px solid var(--main-color);
	margin-bottom: 0.5em;
	padding-left: 0.25em;
}

#update-list em::after {
	content: '\A';
	white-space: pre;
}

#update-list p:not(:last-child) {
	margin-bottom: 0.75em;
}

/* RESPONSIVENESS */
@media screen and (max-width: 45em) {
	.no-mobile {
		display: none;
	}
	nav ul {
		gap: 0.25em;
		width: 100%;
		padding: 0.25em 0;
		display: flex;
		justify-content: space-between;
	}
	#rain-vid {
		object-fit: fill;
	}
	body {
		padding-bottom: env(safe-area-inset-bottom);
	}

	/* grid system */
	.row {
		display: block;
	}
	.row img {
		width: 100%;
	}

	/* pictures tab */
	.img-desc {
		filter: opacity(100%);
		left: 100%;
		padding: 0 0.5em;
		align-items: start;
	}
	.img-desc:hover {
		background: none;
	}
	.row-photography {
		flex-direction: column;
		display: flex;
		gap: 0;
	}
	.img-container {
		width: 50%;
	}

	/* about tab */
	.contact-link {
		margin-top: 0.5em;
	}
	.contact-link {
		margin-bottom: 0.75em;
	}
	.contact-link a {
		padding: 0.25em 0 0.25em 0;
	}
}

@media screen and (max-width: 1050px) {
	#canvas {
		padding: 0.5em;
	}
	.tabs {
		padding: 0.75em;
	}
}

@media screen and (min-width: 1600px) {
	/* Prevent the images from getting too big on wide screens */
	.row img {
		max-width: 800px;
	}
	.row {
		justify-content: left;
	}
}

@media (hover: none) {
	summary:hover {
		background-color: transparent;
		color: var(--main-color);
	}
}

/* To comply with outlinenone.com */
:focus {
	outline: 2px solid var(--main-color);
	color: var(--main-color);
	background: rgba(var(--bg-color), 0.3);

	text-decoration: none;
}

/* === DashedCard === */
.grid-row-box {
	padding: 0.5em;
	width: 100%;
	border: 1px dotted var(--main-color);
}

.grid-row-box-shrink {
	flex-shrink: 5;
}

/* === Accordion === */
.accordion {
	width: 100%;
	background: rgba(var(--bg-color), 0.5);
	/* subtle grid / terminal feel */
	background-image:
		linear-gradient(rgba(var(--main-color), 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(var(--main-color), 0.03) 1px, transparent 1px);
	background-size: 12px 12px;
}

/* Hover state: light gray/white terminal look */
.accordion__header {
	--accordion-hover-text: rgba(40, 40, 40, 0.95);
	--accordion-hover-icon: rgba(18, 18, 18, 0.95);
	position: relative;
	display: flex;
	align-items: center;
	cursor: pointer;
	list-style: none;
	user-select: none;
	/* light header bar - terminal style */
	background: linear-gradient(
		180deg,
		rgba(var(--main-color), 0.18) 0%,
		rgba(var(--main-color), 0.08) 100%
	);
	border-bottom: 1px dotted var(--main-color);
	font-weight: 600;
	letter-spacing: 0.04em;
	transition: background 1s ease, color 1s ease, border-color 1s ease, box-shadow 1s ease;
}

.accordion__header::-webkit-details-marker {
	display: none;
}

/* Hover: light gray/white, scanlines, subtle noise, dark text & icon */
.accordion__header::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	background: url('/assets/images/noise-textures/noisy-texture-200x200-1-0198c685b8692fe64d61047541aed222.png?vsn=d');
	background-size: 200px 200px;
	transition: opacity 1s ease;
}

.accordion__header:hover {
	background:
		repeating-linear-gradient(
			0deg,
			transparent 0,
			transparent 1px,
			rgba(0, 0, 0, 0.06) 2px
		),
		linear-gradient(
			180deg,
			rgba(220, 220, 220, 0.5) 0%,
			rgba(200, 200, 200, 0.4) 100%
		);
	border-bottom-color: rgba(255, 255, 255, 0.6);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.accordion__header:hover::after {
	opacity: 0.12;
}

.accordion__header .accordion__title,
.accordion__header .accordion__icon {
	position: relative;
	z-index: 1;
}

.accordion__header:hover .accordion__title {
	color: var(--accordion-hover-text);
}

.accordion__header:hover .accordion__icon {
	color: var(--accordion-hover-icon);
}

.accordion__icon {
	display: inline-block;
	transition: transform 1s ease, color 1s ease;
	font-size: 1.35em;
}

.accordion[open] .accordion__icon {
	transform: rotate(90deg); /* ► becomes ▼ when rotated 90deg */
}

.accordion__content {
	min-height: 1.5em;
	/* dark content area */
	background: rgba(var(--bg-color), 0.35);
}

.accordion__content :global(p:first-child),
.accordion__content :global(ul:first-child) {
	margin-top: 0;
}

.accordion__content :global(p:last-child),
.accordion__content :global(ul:last-child) {
	margin-bottom: 0;
}

/* === Class === */
.tag {
	padding: 0.1em 0.3em;
	background: linear-gradient(90deg, transparent -5%, rgba(var(--bg-color), 0.3) 75%);
	border: 1px solid var(--main-color);
}

.tag[class*='active'] {
	--tag-color: rgb(183, 241, 95);
	--bg-alpha: rgba(0, 255, 0, 0.3);
}

.tag[class*='inactive'] {
	--tag-color: rgb(230, 114, 37);
	--bg-alpha: rgba(255, 0, 0, 0.3);
}

.tag[class*='open-source'] {
	--tag-color: rgb(179, 138, 245);
	--bg-alpha: rgba(200, 95, 241, 0.3);
}

.tag[class*='active'],
.tag[class*='inactive'],
.tag[class*='open-source'] {
	border-color: var(--tag-color);
	color: var(--tag-color);
	background: linear-gradient(90deg, transparent -5%, var(--bg-alpha) 120%);
}

.class-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(45deg, rgba(var(--bg-color), 0.1) 70%, rgba(var(--bg-color), 0.2) 110%);
	display: flex;
	flex-direction: column;
	min-height: 230px;
}

.class-card::before,
.class-card::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.class-card::before {
	background-size: cover;
	background-position: center;
	opacity: 0.18;
	filter: grayscale(1) brightness(0.9) contrast(1.1);
}

.class-card::after {
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%);
}

.class-card > * {
	position: relative;
	z-index: 1;
}

.class-card__tags {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

.class-card__ability {
	border: 1px solid var(--main-color);
	padding: 0.35em 0.45em;
	background: rgba(var(--bg-color), 0.35);
	margin-bottom: 0.6em;
	font-size: 0.78em;
	line-height: 1.25;
}

.class-card__ability-title,
.class-card__example-title {
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.class-card__ability-title {
	margin-bottom: 0.35em;
}

.class-card__example-title {
	margin-top: 0.5em;
	margin-bottom: 0.25em;
}

.class-card__example-line {
	letter-spacing: 0.08em;
}

.class-card__motto {
	margin-top: auto;
	padding-top: 0.75em;
}

.class-card--blitz::before {
	background-image: url('/assets/images/classes/blitz-160e57322c2978814f6377ee29b77d18.png?vsn=d');
	background-position: 45% 40%;
	background-size: 350%;
}

.class-card--trickster::before {
	background-image: url('/assets/images/classes/trickster-4eeb17eafeffad9fae3307d1fed7593a.png?vsn=d');
	background-position: 60% 40%;
}

.class-card--controller::before {
	background-image: url('/assets/images/classes/controller-788e43081ce7a75c1f66ad3fb5961373.png?vsn=d');
	background-position: 80% 55%;
	background-size: 370%;
}

/* === AsciiTitle === */
#title {
	font-size: 1.3em;
	font-family: 'Courier New', Courier, monospace;
	-webkit-user-select: none; /* Safari */
	user-select: none;
	margin-bottom: 1em;
}

@media screen and (max-width: 1050px) {
	#title {
		font-size: 2.3vw;
		margin-bottom: 2em;
	}
}

/* === ClassPicker === */
/* Terminal-style class picker: details (left) + decorative bg image on card root + picker strip (bottom) */

@media (max-width: 768px) {
	.class-picker-outer > div {
		border: none;
		padding: 0;
		background: transparent;
		backdrop-filter: none;
		box-shadow: none;
	}
}

.class-picker {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	background: rgba(var(--bg-color), 0.5);
	background-image:
		linear-gradient(rgba(var(--main-color), 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(var(--main-color), 0.04) 1px, transparent 1px);
	background-size: 12px 12px;
	padding: 0.6em;
}

/* Decorative class image as subtle background on card root (no img/div) */
.class-picker::before,
.class-picker::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.class-picker::before {
	background-image: var(--class-picker-bg);
	background-repeat: no-repeat;
	background-size: 50%;
	background-position: 100% 40%;
	opacity: 0.18;
	filter: grayscale(1) brightness(0.9) contrast(1.1);
}

/* Per-class overrides for the decorative background */
.class-picker[data-class-id='blitz']::before {
	background-size: 60%;
	background-position: 115% 50%;
}

.class-picker[data-class-id='trickster']::before {
	background-size: 55%;
	background-position: 95% 35%;
}

.class-picker[data-class-id='controller']::before {
	background-size: 80%;
	background-position: 100% 55%;
}

/* 960px – 1200px: narrow desktop */
@media (max-width: 1200px) and (min-width: 961px) {
	.class-picker::before {
		background-size: 70%;
		opacity: 0.22;
	}
	.class-picker[data-class-id='blitz']::before {
		background-size: 75%;
		background-position: 50% 45%;
	}
	.class-picker[data-class-id='trickster']::before {
		background-size: 72%;
		background-position: 50% 45%;
	}
	.class-picker[data-class-id='controller']::before {
		background-size: 85%;
		background-position: 50% 45%;
	}
}

/* 769px – 960px: tablet */
@media (max-width: 960px) and (min-width: 769px) {
	.class-picker::before {
		background-size: 95%;
		background-position: 50% 45%;
		opacity: 0.35;
	}
	.class-picker[data-class-id='blitz']::before { background-size: 100%; }
	.class-picker[data-class-id='trickster']::before { background-size: 98%; }
	.class-picker[data-class-id='controller']::before { background-size: 105%; }
}

/* 600px – 768px: large mobile / small tablet */
@media (max-width: 768px) and (min-width: 600px) {
	.class-picker::before {
		opacity: 0.75;
	}
	.class-picker[data-class-id='blitz']::before { 
		background-size: 200%;
		background-position: 35% 45%;
	}
	.class-picker[data-class-id='trickster']::before { 
		background-size: 128%; 
		background-position: 50% 45%;
	}
	.class-picker[data-class-id='controller']::before { 
		background-size: 200%;
		background-position: 50% 65%;
	 }
}

/* 465px – 599px: mobile */
@media (max-width: 599px) and (min-width: 465px) {
	.class-picker::before { opacity: 0.75; }
	.class-picker[data-class-id='blitz']::before {
		background-size: 250%;
		background-position: 42% 45%;
	}
	.class-picker[data-class-id='trickster']::before {
		background-size: 150%;
		background-position: 50% 100%;
	}
	.class-picker[data-class-id='controller']::before {
		background-size: 260%;
		background-position: 85% 50%;
	}
}

@media (max-width: 464px) and (min-width: 460px) {
	.class-picker::before { opacity: 0.75; }
	.class-picker[data-class-id='blitz']::before {
		background-size: 250%;
		background-position: 42% 20%;
	}
	.class-picker[data-class-id='trickster']::before {
		background-size: 150%;
		background-position: 50% 950%;
	}
	.class-picker[data-class-id='controller']::before {
		background-size: 300%;
		background-position: 85% 35%;
	}
}

@media (max-width: 459px) and (min-width: 458px) {
	.class-picker::before { opacity: 0.75; }
	.class-picker[data-class-id='blitz']::before {
		background-size: 250%;
		background-position: 42% 20%;
	}
	.class-picker[data-class-id='trickster']::before {
		background-size: 150%;
		background-position: 50% 600%;
	}
	.class-picker[data-class-id='controller']::before {
		background-size: 300%;
		background-position: 85% 35%;
	}
}

@media (max-width: 457px) and (min-width: 455px) {
	.class-picker::before { opacity: 0.75; }
	.class-picker[data-class-id='blitz']::before {
		background-size: 250%;
		background-position: 42% 20%;
	}
	.class-picker[data-class-id='trickster']::before {
		background-size: 150%;
		background-position: 50% 220%;
	}
	.class-picker[data-class-id='controller']::before {
		background-size: 300%;
		background-position: 85% 35%;
	}
}

@media (max-width: 454px) and (min-width: 450px) {
	.class-picker::before { opacity: 0.75; }
	.class-picker[data-class-id='blitz']::before {
		background-size: 250%;
		background-position: 42% 20%;
	}
	.class-picker[data-class-id='trickster']::before {
		background-size: 150%;
		background-position: 50% 200%;
	}
	.class-picker[data-class-id='controller']::before {
		background-size: 300%;
		background-position: 85% 35%;
	}
}

@media (max-width: 449px) and (min-width: 440px) {
	.class-picker::before { opacity: 0.75; }
	.class-picker[data-class-id='blitz']::before {
		background-size: 250%;
		background-position: 42% 20%;
	}
	.class-picker[data-class-id='trickster']::before {
		background-size: 150%;
		background-position: 50% 180%;
	}
	.class-picker[data-class-id='controller']::before {
		background-size: 300%;
		background-position: 85% 35%;
	}
}

@media (max-width: 439px) and (min-width: 378px) {
	.class-picker::before { opacity: 0.75; }
	.class-picker[data-class-id='blitz']::before {
		background-size: 250%;
		background-position: 42% 20%;
	}
	.class-picker[data-class-id='trickster']::before {
		background-size: 150%;
		background-position: 50% 120%;
	}
	.class-picker[data-class-id='controller']::before {
		background-size: 300%;
		background-position: 85% 35%;
	}
}

/* ≤377px: small mobile */
@media (max-width: 377px) {
	.class-picker::before { opacity: 0.75; }
	.class-picker[data-class-id='blitz']::before {
		background-size: 320%;
		background-position: 43.5% 25%;
	}
	.class-picker[data-class-id='trickster']::before {
		background-size: 180%;
		background-position: 50% 120%;
	}
	.class-picker[data-class-id='controller']::before {
		background-size: 300%;
		background-position: 85% 45%;
	}
}

.class-picker::after {
	background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%);
}

.class-picker__main {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(200px, 40%);
	gap: 1em;
	height: auto;
	margin-bottom: 1em;
}

@media (max-width: 768px) {
	.class-picker {
		padding: 1em 0.8em;
		gap: 1.25em;
	}
	.class-picker__strip-wrap {
		order: -1;
		margin-bottom: 0.5em;
	}
	.class-picker__strip-line {
		margin-bottom: 0.75em;
	}
	.class-picker__strip {
		column-gap: 1.5rem;
		row-gap: 0.75rem;
		padding: 0.5em 0 0.6em;
	}
	.class-picker__main {
		order: 0;
		display: flex;
		flex-direction: column;
		height: auto;
		min-height: 0;
	}
	.class-picker__ability {
		flex-direction: column;
		align-items: center;
	}
	.class-picker__ability-icon {
		display: block;
		width: 6em;
		height: auto;
		margin-inline: auto;
	}
	.class-picker__ability-content {
		width: 100%;
	}
}

/* Inner card: details only */
.class-picker__details {
	display: flex;
	flex-direction: column;
	position: relative;
	min-width: 0;
	align-self: start;
	background: rgba(var(--bg-color), 0.4);
	border: 1px dotted var(--main-color);
	padding: 1em 1.2em;
	overflow-y: auto;
}

.class-picker__details-inner {
	position: relative;
	z-index: 1;
	min-width: 0;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.class-picker__details-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1em;
	margin-bottom: 0.25em;
}

@media (max-width: 1200px) {
	.class-picker__details-header {
		flex-direction: column;
		gap: 0.5em;
		align-items: flex-start;
	}
	.class-picker__tags {
		justify-content: flex-start;
	}
}

@media (max-width: 768px) {
	.class-picker__tags .tag {
		font-size: clamp(0.65em, 2.5vw + 0.5em, 1em);
	}
}

.class-picker__title {
	margin: 0;
	font-size: clamp(2rem, 6vw + 1.5rem, 5rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--main-color);
}

.class-picker__description {
	margin: 0 0 0.8em;
	font-size: clamp(0.85rem, 1.2vw + 0.9rem, 1.4rem);
	line-height: 1.4;
	color: rgba(var(--main-color), 0.9);
	width: 100%;
	min-width: 0;
}

/* Tags (from Class card) */
.class-picker__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	justify-content: flex-start;
	flex-shrink: 0;
}

.class-picker__tags .tag {
	padding: 0.1em 0.3em;
	font-size: clamp(0.7em, 2vw + 0.6em, 1em);
	background: linear-gradient(90deg, transparent -5%, rgba(var(--bg-color), 0.3) 75%);
	border: 1px solid var(--main-color);
}

/* Ability block – terminal style */
.class-picker__ability {
	display: flex;
	align-items: flex-start;
	gap: 0.75em;
	border: 1px dotted var(--main-color);
	padding: 0.5em 0.6em;
	background: rgba(var(--bg-color), 0.5);
	background-image:
		linear-gradient(rgba(var(--main-color), 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(var(--main-color), 0.03) 1px, transparent 1px);
	background-size: 8px 8px;
	margin-bottom: 0.6em;
	font-size: clamp(0.65em, 1.5vw + 0.5em, 0.78em);
	line-height: 1.4;
	letter-spacing: 0.06em;
	min-width: 0;
}

.class-picker__ability-icon {
	flex-shrink: 0;
	width: 10em;
	height: auto;
	opacity: 0.9;
}

.class-picker__ability-content {
	min-width: 0;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.class-picker__ability-prompt {
	color: rgba(var(--main-color), 0.7);
	margin-right: 0.35em;
	font-weight: normal;
}

.class-picker__ability-title {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	margin: 0 0 0.4em;
	font-size: clamp(1em, 2vw + 0.8em, 1.35em);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.class-picker__ability-title strong {
	color: var(--main-color);
}

.class-picker__ability-desc {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	margin: 0 0 0;
	padding-bottom: 0.5em;
	border-bottom: 1px dotted rgba(var(--main-color), 0.4);
	letter-spacing: 0.06em;
}

.class-picker__ability-desc strong {
	font-style: italic;
	color: rgba(var(--main-color), 0.55);
}

/* Example block – nested terminal output */
.class-picker__ability-example {
	margin-top: 0.5em;
	padding-left: 0.5em;
	border-left: 2px solid rgba(var(--main-color), 0.5);
}

.class-picker__example-title {
	display: flex;
	align-items: baseline;
	margin: 0 0 0.35em;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(var(--main-color), 0.85);
}

.class-picker__example-lines {
	margin: 0;
}

.class-picker__example-line {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	margin: 0.2em 0 0;
	letter-spacing: 0.08em;
}

.class-picker__example-prefix {
	color: rgba(var(--main-color), 0.6);
	margin-right: 0.4em;
	flex-shrink: 0;
}

.class-picker__learn-more {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	margin-bottom: 0.8em;
	font-size: 1.3rem;
	color: var(--main-color);
	text-decoration: none;
	border-bottom: 1px dotted var(--main-color);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.class-picker__learn-more:hover {
	color: rgba(220, 220, 220, 0.95);
	border-bottom-color: rgba(220, 220, 220, 0.6);
}

.class-picker__arrow {
	opacity: 0.8;
}

.class-picker__cta {
	display: inline-block;
	padding: 0.5em 1.2em;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-decoration: none;
	color: rgba(18, 18, 18, 0.95);
	background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 100%);
	border: 1px solid rgba(255, 255, 255, 0.3);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
	transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.class-picker__cta:hover {
	filter: brightness(1.1);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}


/* Picker strip - inside back card, outside inner card */
.class-picker__strip-wrap {
	display: flex;
	flex-direction: column;
	column-gap: 0.5rem;
	margin: 0;
	flex-shrink: 0;
}

.class-picker__strip-line {
	border-top: 1px dotted var(--main-color);
}

.class-picker__strip {
	display: flex;
	flex-wrap: wrap;
	column-gap: 1rem;
	justify-content: left;
	align-items: center;
	padding: 0.3em 0;
}

.class-picker__thumb {
	--thumb-size: 64px;
	--thumb-bg-size: cover;
	--thumb-bg-position: center; /* e.g. 30% 50%, left top, 70% 40% */
	width: var(--thumb-size);
	height: var(--thumb-size);
	padding: 0;
	border: 2px solid rgba(var(--main-color), 0.3);
	background-image: var(--thumb-bg);
	background-repeat: no-repeat;
	background-position: var(--thumb-bg-position);
	background-size: var(--thumb-bg-size);
	background-color: rgba(var(--bg-color), 0.5);
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
	flex-shrink: 0;
}

/* Per-class zoom and position for thumbnail background */
.class-picker__thumb[data-id='blitz'] {
	--thumb-bg-size: 170%;
	--thumb-bg-position: 40% 50%;
}

.class-picker__thumb[data-id='trickster'] {
	--thumb-bg-size: 110%;
	--thumb-bg-position: 50% 40%;
}

.class-picker__thumb[data-id='controller'] {
	--thumb-bg-size: 210%;
	--thumb-bg-position: 100% 50%;
}

/* Unselected: opacity 60%, 80% on hover */
.class-picker__thumb:not(.class-picker__thumb--selected) {
	filter: grayscale(1) brightness(0.7);
	opacity: 0.6;
}

.class-picker__thumb:hover:not(.class-picker__thumb--selected) {
	filter: grayscale(1) brightness(1.5) contrast(1.1);
	border-color: rgba(var(--main-color), 0.5);
	opacity: 0.8;
}

/* Selected: white image + border */
.class-picker__thumb--selected {
	filter: grayscale(1) brightness(1.8) contrast(1.1);
	opacity: 1;
	border-color: rgb(255, 255, 255);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.class-picker__thumb:focus-visible {
	outline: 2px solid var(--main-color);
	outline-offset: 2px;
}

/* === ArenaCard === */
/* Arena card: 2-col (content | image), near-black content card, sharp edges */

.arena-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
	width: 100%;
}

@media (max-width: 768px) {
	.arena-card {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
		gap: 1.5rem;
	}
	.arena-card__image-wrap {
		order: -1;
	}
}

.arena-card__content {
	font-family: var(--font-terminus), 'Courier New', monospace;
	background: rgba(var(--bg-color), 0.98);
	background-image:
		linear-gradient(rgba(var(--main-color), 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(var(--main-color), 0.03) 1px, transparent 1px);
	background-size: 12px 12px;
	color: var(--main-color);
	padding: 2rem 1.75rem;
	border: 1px solid var(--main-color);
	border-radius: 0;
}

.arena-card__header {
	margin-bottom: 1.5rem;
}

.arena-card__title {
	margin: 0 0 0.35rem 0;
	font-size: 3.5rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--main-color);
}

.arena-card__subtitle {
	margin: 0;
	font-size: 1rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--main-color);
	opacity: 0.65;
}

.arena-card__bullets {
	list-style: none;
	padding: 0;
	margin: 0 0 1.25rem 0;
}

.arena-card__bullets li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.6rem;
	font-size: 1.3rem;
	line-height: 1.5;
}

.arena-card__bullets li::before {
	content: '>';
	position: absolute;
	left: 0;
	top: 0;
	color: var(--main-color);
	opacity: 0.7;
	font-weight: 600;
}

.arena-card__divider {
	height: 1px;
	border: none;
	background: var(--main-color);
	opacity: 0.25;
	margin: 1.5rem 0;
}

.arena-card__secondary-bullets {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem 0;
	opacity: 0.85;
}

.arena-card__secondary-bullets li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.5rem;
	font-size: 1.25rem;
	line-height: 1.45;
	color: var(--main-color);
	opacity: 0.8;
}

.arena-card__secondary-bullets li::before {
	content: '>';
	position: absolute;
	left: 0;
	top: 0;
	color: var(--main-color);
	opacity: 0.5;
	font-weight: 600;
}

.arena-card__details {
	display: grid;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	font-family: var(--font-terminus), 'Courier New', monospace;
	font-size: 1.2rem;
}

.arena-card__detail-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: baseline;
}

.arena-card__detail-label {
	color: var(--main-color);
	opacity: 0.55;
	flex-shrink: 0;
}

.arena-card__detail-value {
	color: var(--main-color);
	text-align: right;
}

.arena-card__closing {
	margin: 0;
	font-size: 1.25rem;
	font-style: italic;
	color: var(--main-color);
	opacity: 0.6;
	font-family: var(--font-terminus), 'Courier New', monospace;
}

.arena-card__image-wrap {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border: 1px solid var(--main-color);
}

.arena-card__image-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url('/assets/images/noise-textures/noisy-texture-200x200-1-0198c685b8692fe64d61047541aed222.png?vsn=d');
	background-repeat: repeat;
	opacity: 0.08;
	pointer-events: none;
	mix-blend-mode: overlay;
}

.arena-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.15);
}

.arena-card__logo-overlay {
	position: absolute;
	top: 1rem;
	left: 1rem;
	max-width: 70%;
	max-height: 7rem;
	object-fit: contain;
	filter: drop-shadow(0 2px 8px rgba(var(--bg-color), 0.85));
	pointer-events: none;
}

/* === RoadmapCard === */
/* Roadmap card: near-black, thin white border (low opacity), hover = full border + text opacity up. White only. */

.roadmap-card {
	background: rgba(var(--bg-color), 0.98);
	border: 1px solid var(--main-color-20, rgba(255, 255, 255, 0.25));
	border-radius: 0;
	opacity: 1;
	padding: 1.75rem 1.75rem;
	transition: border-color 0.2s ease, opacity 0.2s ease;
}

.roadmap-card:hover {
	border-color: var(--main-color);
	opacity: 1;
}

.roadmap-card:hover .roadmap-card__name,
.roadmap-card:hover .roadmap-card__descriptor {
	opacity: 1;
}

.roadmap-card__name {
	margin: 0 0 0.5rem 0;
	font-size: 2rem;
	font-weight: 700;
	color: var(--main-color);
	opacity: 0.95;
	transition: opacity 0.2s ease;
	font-family: var(--font-terminus), 'Courier New', monospace;
}

.roadmap-card__descriptor {
	margin: 0 0 1rem 0;
	font-size: 1.5rem;
	line-height: 1.45;
	color: var(--main-color);
	opacity: 0.7;
	transition: opacity 0.2s ease;
	font-family: var(--font-terminus), 'Courier New', monospace;
}

.roadmap-card__descriptor:last-child {
	margin-bottom: 0;
}

.roadmap-card__status {
	display: inline-block;
	font-family: var(--font-terminus), 'Courier New', monospace;
	font-size: 1.15rem;
	letter-spacing: 0.08em;
	color: var(--main-color);
	opacity: 0.6;
	border: 1px solid var(--main-color-40, rgba(255, 255, 255, 0.4));
	padding: 0.35rem 0.75rem;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.roadmap-card:hover .roadmap-card__status {
	opacity: 0.85;
	border-color: var(--main-color);
}

/* LOCKED cards: dimmed (higher specificity so it wins) */
article.roadmap-card.roadmap-card--locked {
	opacity: 0.5 !important;
}

article.roadmap-card.roadmap-card--locked:hover {
	opacity: 0.5 !important;
}

/* === RoadmapSection === */
/* Roadmap section: id=roadmap, grid of cards, white-only */

.roadmap-section {
	width: 100%;
	font-family: var(--font-terminus), 'Courier New', monospace;
}

.roadmap-section__header {
	margin-bottom: 1.75rem;
}

.roadmap-section__title {
	margin: 0 0 0.25rem 0;
	font-size: 3.5rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--main-color);
}

.roadmap-section__subtitle {
	margin: 0;
	font-size: 1.2rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--main-color);
	opacity: 0.6;
}

.roadmap-section__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

.roadmap-section__footer {
	margin: 1.75rem 0 0 0;
	font-size: 1.25rem;
	color: var(--main-color);
	opacity: 0.5;
	font-family: var(--font-terminus), 'Courier New', monospace;
}


/* === Landing login button (added) === */
#landing-login-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55em 1em;
  border: 1px solid var(--main-color);
  background: rgba(var(--bg-color), 0.55);
  backdrop-filter: blur(4px);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1.1em;
  color: var(--main-color);
  transition: background-color 0.15s, color 0.15s;
}

#landing-login-link:hover {
  background-color: var(--main-color);
  color: rgba(0, 0, 0, 0.75);
  box-shadow: none;
}

/* Wrap so both top-right box and login button sit side by side */
#top-right-cluster {
  position: fixed;
  top: 1.2em;
  right: max(1.2em, calc((100% - 1280px) / 2 + 1.5em));
  z-index: 20;
  display: flex;
  align-items: stretch;
  gap: 0.5rem; /* space-x-2 */
}

/* Override default fixed positioning since the cluster handles it */

/* === Class picker: power icons → Heroicons swap === */
/* The wrapper is now a <div> containing 3 stacked icon spans;
   override the original <img> sizing rules and toggle visibility
   based on the parent .class-picker[data-class-id]. */
div.class-picker__ability-icon {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.9;
  color: var(--main-color);
}

div.class-picker__ability-icon > [data-power] {
  display: none;
  align-items: center;
  justify-content: center;
}

.class-picker[data-class-id='trickster'] div.class-picker__ability-icon > [data-power='trickster'],
.class-picker[data-class-id='blitz']     div.class-picker__ability-icon > [data-power='blitz'],
.class-picker[data-class-id='controller'] div.class-picker__ability-icon > [data-power='controller'] {
  display: inline-flex;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING — global sizing tune-up
   Caps the canvas width, tones down oversized headings, and reduces vertical
   bloat so the home view fits on a typical 1080p screen without scrolling.
   ═══════════════════════════════════════════════════════════════════════════ */

#canvas {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.2em 1.5em;
  font-size: 1.4em;
}

@media screen and (max-width: 1050px) {
  #canvas {
    padding: 0.75em;
    font-size: 1.25em;
  }
}

/* ASCII title — smaller, with breathing room above and below */
#title {
  font-size: 0.95em;
  margin-top: 2em;
  margin-bottom: 1.5em;
}

@media screen and (max-width: 1050px) {
  #title {
    font-size: 1.8vw;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
  }
}

/* Nav tabs — slightly tighter */
nav ul {
  gap: 1.5em;
}

/* Home — Season label was text-6xl (huge). Force a sane size + cap it */
.grid-row-box p.uppercase.text-6xl {
  font-size: 1.6em;
  line-height: 1.2;
}

.grid-row-box .mt-8 {
  margin-top: 1em;
}

.grid-row-box .mt-8 p {
  font-size: 0.95em;
  line-height: 1.45;
}

/* Choose your path label */
#welcome-title {
  font-size: 1.1em;
  padding: 0.15em 0.4em;
}

/* Class cards — drop the huge title sizing, tighten min-height */
.class-card {
  min-height: 0;
  padding: 0.6em;
}

.class-card h2 {
  font-size: 1.1em !important;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.class-card p {
  font-size: 0.78em !important;
  line-height: 1.3;
  margin-top: 0.25em;
}

.class-card .class-card__motto {
  font-size: 0.7em !important;
  padding-top: 0.4em;
  margin-top: auto;
}

/* Accordion title */
.accordion__title.text-4xl {
  font-size: 1.05em;
}

.accordion__content {
  padding: 0.5em 0.6em;
}

.accordion__content p,
.accordion__content li {
  font-size: 0.85em;
  line-height: 1.45;
}

/* Ruleset page — same accordion treatment */
.grid-row-box p.uppercase.text-4xl {
  font-size: 1.3em;
  line-height: 1.2;
}

/* Arena page — title was 3.5rem (huge) */
.arena-card__title {
  font-size: 2.2rem;
  letter-spacing: 0.06em;
}

.arena-card__subtitle {
  font-size: 0.9rem;
}

.arena-card__bullets li,
.arena-card__secondary-bullets li {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0.45rem;
  padding-left: 1.2rem;
}

.arena-card__details {
  font-size: 0.95rem;
  gap: 0.4rem;
}

.arena-card__closing {
  font-size: 0.95rem;
}

.arena-card__content {
  padding: 1.4rem 1.25rem;
}

/* Roadmap page */
.roadmap-section__title {
  font-size: 2.2rem;
  letter-spacing: 0.06em;
}

.roadmap-section__subtitle {
  font-size: 0.95rem;
}

.roadmap-card {
  padding: 1.1rem 1.2rem;
}

.roadmap-card__name {
  font-size: 1.35rem;
}

.roadmap-card__descriptor {
  font-size: 1.05rem;
  line-height: 1.4;
}

.roadmap-card__status {
  font-size: 0.85rem;
  padding: 0.25rem 0.55rem;
}

.roadmap-section__footer {
  font-size: 0.95rem;
}

/* Class picker page — tighten the giant title */
.class-picker__title {
  font-size: clamp(1.6rem, 4vw + 0.5rem, 3rem) !important;
}

.class-picker__description {
  font-size: clamp(0.8rem, 0.6vw + 0.7rem, 1.05rem) !important;
}

/* Class picker thumbnails — slightly smaller */
.class-picker__thumb {
  --thumb-size: 52px;
}

/* Make every section a touch tighter on the row gaps */
.grid-row-box {
  padding: 0.55em 0.7em;
}

/* ──────────────────────────────────────────
   Pairing — auto-playing swipe simulator
   ────────────────────────────────────────── */
.pairing-sim {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
  user-select: none;
  -webkit-user-select: none;
}

.pairing-sim__deck {
  position: relative;
  width: 100%;
  aspect-ratio: 280 / 410;
  perspective: 800px;
}

.pairing-sim__card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #0B0B0B;
  transform-origin: 50% 100%;
  transition:
    transform 600ms cubic-bezier(0.4, 0.05, 0.2, 1),
    opacity 500ms ease;
  will-change: transform, opacity;
}

.pairing-sim__card:nth-child(1) { transform: translateY(0) scale(1); }
.pairing-sim__card:nth-child(2) { transform: translateY(8px) scale(0.97); opacity: 0.85; }
.pairing-sim__card:nth-child(3) { transform: translateY(16px) scale(0.94); opacity: 0.7; }

.pairing-sim__card--pass {
  transform: translate3d(-160%, -10%, 0) rotate(-18deg) !important;
  opacity: 0 !important;
}

.pairing-sim__card--like {
  transform: translate3d(160%, -10%, 0) rotate(18deg) !important;
  opacity: 0 !important;
}

.pairing-sim__avatar {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.pairing-sim__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pairing-sim__clan {
  color: rgba(255, 255, 255, 0.65);
}

.pairing-sim__user {
  color: rgb(255, 255, 255);
}

.pairing-sim__crest {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.7;
}

.pairing-sim__sub-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.pairing-sim__stats {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 10px;
}

.pairing-sim__stats li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.pairing-sim__stats li span {
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pairing-sim__stats li strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.pairing-sim__belt--blue   { color: #3b82f6 !important; text-transform: uppercase; }
.pairing-sim__belt--purple { color: #a855f7 !important; text-transform: uppercase; }
.pairing-sim__belt--brown  { color: #8b5a2b !important; text-transform: uppercase; }
.pairing-sim__belt--black  { color: #71717a !important; text-transform: uppercase; }

.pairing-sim__bio {
  margin: 16px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pairing-sim__warn,
.pairing-sim__ok {
  margin-top: auto;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.pairing-sim__warn {
  color: rgba(252, 211, 77, 0.85);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}

.pairing-sim__ok {
  color: rgba(110, 231, 183, 0.9);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
}

.pairing-sim__pre-like {
  position: absolute;
  top: -10px;
  right: 12px;
  padding: 3px 8px;
  background: rgba(110, 231, 183, 0.95);
  color: #0c0c0c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  z-index: 1;
}

.pairing-sim__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  margin-top: 1em;
}

.pairing-sim__btn {
  width: 2.4em;
  height: 2.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--main-color-40);
  font-size: 1.15em;
  line-height: 1;
  color: var(--main-color-40);
  transition:
    transform 250ms ease,
    color 250ms ease,
    border-color 250ms ease,
    background 250ms ease;
}

.pairing-sim__btn--like {
  color: #f87474;
}

.is-passing .pairing-sim__btn--pass,
.is-liking .pairing-sim__btn--like {
  transform: scale(1.15);
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.05);
}

.pairing-sim__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid var(--main-color);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 350ms ease, transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.pairing-sim__overlay.is-active {
  opacity: 1;
  transform: scale(1);
}

.pairing-sim__overlay-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--main-color);
}

.pairing-sim__overlay-meta {
  font-size: 0.85em;
  color: var(--main-color-40);
}

.pairing-sim__overlay-line {
  font-size: 0.75em;
  letter-spacing: 0.15em;
}

.pairing-sim__caption {
  margin-top: 0.85em;
  text-align: center;
  font-size: 0.75em;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--main-color-40);
}

@media (prefers-reduced-motion: reduce) {
  .pairing-sim__card,
  .pairing-sim__overlay,
  .pairing-sim__btn { transition: none; }
}
