/* ==========================================================================
   xGames — Cross Intelligence Recreation
   Standalone stylesheet in the XIO house style.
   Palette: black, white, and the grey in between. No gradients.
   ========================================================================== */

:root {
	--bg: #000000;
	--fg: #f2f2f2;
	--dim: #8a8a8a;
	--faint: #4a4a4a;
	--rule: #1e1e1e;
	--rule-hi: #333333;
	--panel: #070707;
	--panel-hi: #101010;
	--glitch-a: #ff2d2d;
	--glitch-b: #29e6ff;

	--mono: "SFMono-Regular", "SF Mono", "JetBrains Mono", "Fira Code", "IBM Plex Mono", Consolas, "Liberation Mono",
		Menlo, monospace;

	--gutter: clamp(1.1rem, 4vw, 4rem);
	--maxw: 72rem;
}

/* Alternate themes: same geometry, different phosphor. */
html.theme-paper {
	--bg: #f4f2ec;
	--fg: #141414;
	--dim: #666666;
	--faint: #a8a8a8;
	--rule: #d8d4c8;
	--rule-hi: #b8b4a8;
	--panel: #eceade;
	--panel-hi: #e2dfd0;
	--glitch-a: #c81e1e;
	--glitch-b: #0b7fa8;
}

html.theme-amber {
	--bg: #0a0600;
	--fg: #ffb000;
	--dim: #96700e;
	--faint: #574208;
	--rule: #241804;
	--rule-hi: #3d2c08;
	--panel: #100a02;
	--panel-hi: #1a1103;
	--glitch-a: #ff2d2d;
	--glitch-b: #ffd875;
}

html.theme-phosphor {
	--bg: #000800;
	--fg: #33ff66;
	--dim: #1f9940;
	--faint: #125226;
	--rule: #04260f;
	--rule-hi: #0a3d1c;
	--panel: #011006;
	--panel-hi: #021a0c;
	--glitch-a: #ff2d2d;
	--glitch-b: #a8ffcf;
}

html.theme-contrast {
	--bg: #000000;
	--fg: #ffffff;
	--dim: #c8c8c8;
	--faint: #909090;
	--rule: #444444;
	--rule-hi: #787878;
	--panel: #0a0a0a;
	--panel-hi: #161616;
	--glitch-a: #ff0000;
	--glitch-b: #00e5ff;
}

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

/* the hidden attribute must always win, even over explicit display rules */
[hidden] {
	display: none !important;
}

html {
	background: var(--bg);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--mono);
	font-size: clamp(0.88rem, 0.84rem + 0.2vw, 1rem);
	line-height: 1.7;
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
	overscroll-behavior: none;
}

body.booting {
	overflow: hidden;
}

body.game-screen {
	overflow: hidden;
	height: 100dvh;
}

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

a {
	color: var(--fg);
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

/* ==========================================================================
   Boot overlay
   ========================================================================== */

.boot {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: #000;
	color: #f2f2f2;
	display: grid;
	place-items: center;
	transition: opacity 500ms ease, visibility 500ms;
}

html.theme-paper .boot,
html.theme-amber .boot,
html.theme-phosphor .boot,
html.theme-contrast .boot {
	background: var(--bg);
	color: var(--fg);
}

.boot.done {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.boot-inner {
	text-align: center;
	padding: 0 1rem;
}

.boot-word {
	display: flex;
	justify-content: center;
	gap: clamp(0.4rem, 2vw, 1.4rem);
}

.boot-letter {
	position: relative;
	display: inline-block;
	font-size: clamp(2.6rem, 13vw, 7rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	opacity: 0;
	visibility: hidden;
}

.boot-letter.in {
	visibility: visible;
	animation: letter-land 520ms steps(1, end) forwards;
}

.boot-letter.in::before,
.boot-letter.in::after {
	content: attr(data-letter);
	position: absolute;
	inset: 0;
	opacity: 0;
}

.boot-letter.in::before {
	color: #ff2d2d;
	animation: ghost-a 520ms steps(2, end) forwards;
}

.boot-letter.in::after {
	color: #29e6ff;
	animation: ghost-b 520ms steps(2, end) forwards;
}

@keyframes letter-land {
	0% { opacity: 0; transform: translate(0, 0) skewX(0); clip-path: inset(42% 0 38% 0); }
	10% { opacity: 1; transform: translate(-12px, 3px) skewX(-16deg); clip-path: inset(42% 0 38% 0); }
	24% { transform: translate(10px, -5px) skewX(11deg); clip-path: inset(8% 0 62% 0); }
	40% { transform: translate(-6px, 4px) skewX(-5deg); clip-path: inset(64% 0 6% 0); }
	58% { opacity: .4; transform: translate(4px, 0) skewX(8deg); clip-path: inset(24% 0 30% 0); }
	76% { opacity: 1; transform: translate(-2px, -1px) skewX(-2deg); clip-path: inset(0 0 0 0); }
	100% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}

@keyframes ghost-a {
	0% { opacity: .9; transform: translate(-9px, 2px); }
	35% { opacity: .7; transform: translate(7px, -3px); }
	65% { opacity: .4; transform: translate(-4px, 1px); }
	100% { opacity: 0; transform: none; }
}

@keyframes ghost-b {
	0% { opacity: .9; transform: translate(9px, -2px); }
	35% { opacity: .7; transform: translate(-8px, 3px); }
	65% { opacity: .4; transform: translate(4px, -1px); }
	100% { opacity: 0; transform: none; }
}

.boot-sub {
	margin-top: 1.3rem;
	font-size: clamp(0.55rem, 1.9vw, 0.72rem);
	letter-spacing: 0.5em;
	color: var(--dim);
	opacity: 0;
	white-space: nowrap;
}

.boot-sub.in {
	animation: fade-up 500ms ease forwards;
}

@keyframes fade-up {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Ambient layers — scanlines + grain, both static-cheap
   ========================================================================== */

.scanlines,
.grain {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 90;
}

.scanlines {
	background: repeating-linear-gradient(to bottom,
			rgba(255, 255, 255, 0.035) 0px,
			rgba(255, 255, 255, 0.035) 1px,
			transparent 1px,
			transparent 3px);
	opacity: 0.5;
	mix-blend-mode: overlay;
}

html.no-fx .scanlines,
html.no-fx .grain {
	display: none;
}

.grain {
	opacity: 0.05;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
	animation: grain-shift 700ms steps(4, end) infinite;
}

@keyframes grain-shift {
	0% { transform: translate(0, 0); }
	25% { transform: translate(-3%, 2%); }
	50% { transform: translate(2%, -3%); }
	75% { transform: translate(-2%, -2%); }
	100% { transform: translate(0, 0); }
}

/* ==========================================================================
   Logo mark
   ========================================================================== */

.mark {
	fill: none;
	stroke: var(--fg);
	stroke-width: 12;
	stroke-linecap: butt;
}

.mark-spacer {
	width: 34px;
	display: inline-block;
}

/* ==========================================================================
   Top bar
   ========================================================================== */

.topbar {
	position: sticky;
	top: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.8rem var(--gutter);
	background: color-mix(in srgb, var(--bg) 84%, transparent);
	border-bottom: 1px solid var(--rule);
	backdrop-filter: blur(6px);
	padding-top: calc(0.8rem + env(safe-area-inset-top, 0px));
}

.topbar-mark {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.3em;
	font-size: 0.85rem;
}

.topbar-mark .mark {
	width: 20px;
	height: 20px;
	transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.topbar-mark:hover .mark {
	transform: rotate(180deg);
}

.topbar-nav {
	display: flex;
	gap: clamp(0.8rem, 2.5vw, 2rem);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--dim);
}

.topbar-nav a {
	color: var(--dim);
	position: relative;
	padding-bottom: 2px;
	transition: color 200ms ease;
}

.topbar-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 1px;
	width: 0;
	background: var(--fg);
	transition: width 260ms ease;
}

.topbar-nav a:hover {
	color: var(--fg);
}

.topbar-nav a:hover::after {
	width: 100%;
}

.topbar-back {
	font-size: 1.2rem;
	color: var(--dim);
	padding: 0 0.3rem;
	transition: color 200ms ease;
	min-width: 34px;
}

.topbar-back:hover {
	color: var(--fg);
}

.game-title {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	flex: 1;
	min-width: 0;
}

.game-title>span:first-child {
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-size: 0.86rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.game-seed {
	font-size: 0.62rem;
	letter-spacing: 0.18em;
	color: var(--faint);
}

.icon-btn {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: 1px solid var(--rule-hi);
	color: var(--dim);
	font-size: 1.05rem;
	transition: color 200ms ease, border-color 200ms ease;
}

.icon-btn:hover,
.icon-btn.on {
	color: var(--bg);
	background: var(--fg);
	border-color: var(--fg);
}

/* ==========================================================================
   Home — launcher: name on top, games in a grid below
   ========================================================================== */

#screen-home {
	display: flex;
	flex-direction: column;
	height: 100dvh;
}

.home-wrap {
	flex: 1 1 auto;
	display: flex;
	min-height: 0;
}

.home-grid {
	flex: 1 1 auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
	grid-auto-rows: 1fr;
	gap: 1px;
	background: var(--rule);
	overflow-y: auto;
}

.tile {
	position: relative;
	background: var(--bg);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.25rem;
	padding: 1rem 0.9rem 0.9rem;
	min-height: 6.2rem;
	transition: background 200ms ease;
	animation: tile-in 380ms ease backwards;
}

.tile::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 2px;
	background: var(--fg);
	transition: width 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tile:hover,
.tile:active {
	background: var(--panel);
}

.tile:hover::before,
.tile:active::before {
	width: 100%;
}

.tile h3 {
	margin: 0;
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tile-tag {
	margin: 0;
	color: var(--dim);
	font-size: 0.72rem;
	line-height: 1.45;
}

.tile-meta {
	color: var(--faint);
	font-size: 0.58rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-top: 0.55rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tile-idx {
	position: absolute;
	top: 0.7rem;
	right: 0.8rem;
	font-size: 0.6rem;
	letter-spacing: 0.3em;
	color: var(--faint);
}

@keyframes tile-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.tile:nth-child(1) { animation-delay: 40ms; }
.tile:nth-child(2) { animation-delay: 90ms; }
.tile:nth-child(3) { animation-delay: 140ms; }
.tile:nth-child(4) { animation-delay: 190ms; }
.tile:nth-child(5) { animation-delay: 240ms; }
.tile:nth-child(6) { animation-delay: 290ms; }
.tile:nth-child(7) { animation-delay: 340ms; }
.tile:nth-child(8) { animation-delay: 390ms; }

.btn-line {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	border: 1px solid var(--fg);
	font-size: 0.72rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn-line:hover {
	background: var(--fg);
	color: var(--bg);
}

.btn-line.ghost {
	border-color: var(--rule-hi);
	color: var(--dim);
}

.btn-line.ghost:hover {
	border-color: var(--fg);
	color: var(--bg);
}

.muted {
	color: var(--dim);
}

@keyframes blink {

	0%,
	49% { opacity: 1; }

	50%,
	100% { opacity: 0; }
}

@keyframes hover-a {

	0% { opacity: 0.5; transform: translate(-4px, 1px); clip-path: inset(10% 0 60% 0); }

	50% { opacity: 0.3; transform: translate(3px, -2px); clip-path: inset(55% 0 12% 0); }

	100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
}

@keyframes hover-b {

	0% { opacity: 0.5; transform: translate(4px, -1px); clip-path: inset(58% 0 8% 0); }

	50% { opacity: 0.3; transform: translate(-3px, 2px); clip-path: inset(14% 0 52% 0); }

	100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
}

/* ==========================================================================
   Game screen — hud, board, pad
   ========================================================================== */

#screen-game {
	display: flex;
	flex-direction: column;
	height: 100dvh;
}

#screen-game .topbar {
	position: static;
	flex: 0 0 auto;
}

.hud {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1px;
	background: var(--rule);
	border-bottom: 1px solid var(--rule);
	padding: 0 var(--gutter);
	overflow-x: auto;
	scrollbar-width: none;
}

.hud-cell {
	background: var(--bg);
	padding: 0.4rem 0.9rem;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dim);
	white-space: nowrap;
}

.hud-cell b {
	color: var(--fg);
	font-weight: 700;
}

.hud-cell.warn b {
	color: var(--glitch-a);
}

.board-wrap {
	flex: 1 1 auto;
	position: relative;
	min-height: 0;
	display: grid;
	place-items: center;
	padding: 0.6rem;
}

#board {
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	cursor: pointer;
	display: block;
}

.pad {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1px;
	background: var(--rule);
	border-top: 1px solid var(--rule);
	padding: 0 max(0.4rem, env(safe-area-inset-left, 0)) max(0.4rem, env(safe-area-inset-bottom, 0)) max(0.4rem, env(safe-area-inset-right, 0));
}

.pad:empty {
	display: none;
}

.pad-btn {
	background: var(--bg);
	border: 0;
	min-width: clamp(2.6rem, 9vw, 4rem);
	padding: 0.55rem 0.4rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--fg);
	transition: background 120ms ease, color 120ms ease;
}

.pad-btn:active,
.pad-btn.sel {
	background: var(--fg);
	color: var(--bg);
}

.pad-btn small {
	display: block;
	font-size: 0.55rem;
	font-weight: 400;
	letter-spacing: 0.18em;
	color: var(--dim);
	text-transform: uppercase;
}

.pad-btn.sel small {
	color: var(--bg);
}

/* ==========================================================================
   Sheet (menu / config / overlay)
   ========================================================================== */

.sheet-backdrop {
	position: fixed;
	inset: 0;
	z-index: 94;
	background: rgba(0, 0, 0, 0.65);
}

html.theme-paper .sheet-backdrop {
	background: rgba(0, 0, 0, 0.35);
}

.sheet {
	position: fixed;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	z-index: 95;
	width: min(100%, 34rem);
	max-height: 86dvh;
	overflow-y: auto;
	background: var(--bg);
	border: 1px solid var(--rule-hi);
	border-bottom: 0;
	padding: 1.4rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
	animation: sheet-up 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes sheet-up {
	from { transform: translate(-50%, 30px); opacity: 0; }
	to { transform: translate(-50%, 0); opacity: 1; }
}

.sheet h3 {
	margin: 0 0 1rem;
	font-size: 0.86rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.sheet .sheet-sub {
	margin: -0.6rem 0 1.1rem;
	color: var(--dim);
	font-size: 0.8rem;
}

.sheet-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.2rem;
}

.sheet-actions .btn-line {
	font-size: 0.66rem;
}

.opt {
	border-top: 1px solid var(--rule);
	padding: 0.9rem 0;
}

.opt:first-of-type {
	border-top: 0;
}

.opt-head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: baseline;
}

.opt-name {
	color: var(--fg);
	font-size: 0.9rem;
	letter-spacing: 0.04em;
}

.opt-note {
	color: var(--faint);
	font-size: 0.7rem;
	margin-left: 0.4rem;
}

.opt-hint {
	color: var(--dim);
	font-size: 0.74rem;
	margin: 0.2rem 0 0.6rem;
}

.seg {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.seg button {
	padding: 0.3rem 0.7rem;
	border: 1px solid var(--rule-hi);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: var(--dim);
	transition: all 160ms ease;
}

.seg button:hover {
	color: var(--fg);
	border-color: var(--fg);
}

.seg button.sel {
	background: var(--fg);
	border-color: var(--fg);
	color: var(--bg);
}

.seg button:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.opt-conflict {
	color: var(--glitch-a);
	font-size: 0.68rem;
	margin-top: 0.4rem;
}

/* ==========================================================================
   Overlay (win / lose)
   ========================================================================== */

.overlay {
	position: fixed;
	inset: 0;
	z-index: 96;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.82);
}

html.theme-paper .overlay {
	background: rgba(244, 242, 236, 0.88);
}

.overlay-inner {
	text-align: center;
	padding: 2rem 1.4rem;
	max-width: 30rem;
}

.overlay-word {
	position: relative;
	font-size: clamp(2.2rem, 10vw, 4.6rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1;
	margin-bottom: 1rem;
}

.overlay-word::before,
.overlay-word::after {
	content: attr(data-glitch);
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}

.overlay-word.glitch::before {
	color: var(--glitch-a);
	opacity: 0.5;
	animation: hover-a 300ms steps(2, end) 5 forwards;
}

.overlay-word.glitch::after {
	color: var(--glitch-b);
	opacity: 0.5;
	animation: hover-b 300ms steps(2, end) 5 forwards;
}

.overlay-sub {
	color: var(--dim);
	font-size: 0.86rem;
	margin-bottom: 1.6rem;
	white-space: pre-line;
}

.overlay-sub b {
	color: var(--fg);
}

.chip {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.22rem 0.6rem;
	border: 1px solid var(--fg);
	font-size: 0.62rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--fg);
	animation: blink 1.6s steps(1, end) infinite;
}

/* ==========================================================================
   Pages — settings / stats / about / help
   ========================================================================== */

.page {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 2.2rem var(--gutter) 5rem;
}

.page-title {
	margin: 0 0 0.6rem;
	font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem);
	font-weight: 700;
}

.page-sub {
	color: var(--dim);
	margin: 0 0 2.2rem;
	max-width: 46rem;
}

.manifest {
	list-style: none;
	margin: 0 0 2.6rem;
	padding: 0;
	border-top: 1px solid var(--rule);
}

.manifest li {
	position: relative;
	padding: 1rem 0 1rem 3rem;
	border-bottom: 1px solid var(--rule);
	color: var(--dim);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	transition: color 220ms ease;
}

.manifest li::before {
	content: "//";
	position: absolute;
	left: 0.4rem;
	color: var(--faint);
}

.manifest li:hover {
	color: var(--fg);
}

.manifest .m-name {
	color: var(--fg);
	flex: 1;
	min-width: 10rem;
}

.manifest .m-desc {
	width: 100%;
	font-size: 0.74rem;
	color: var(--faint);
	margin-top: 0.15rem;
}

.toggle {
	min-width: 4.6rem;
	text-align: center;
	padding: 0.3rem 0.7rem;
	border: 1px solid var(--rule-hi);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	color: var(--dim);
	transition: all 180ms ease;
}

.toggle.on {
	border-color: var(--fg);
	color: var(--fg);
}

.toggle.on::after {
	content: " [x]";
}

.toggle::after {
	content: " [ ]";
}

.page h2 {
	font-size: 0.8rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--dim);
	margin: 2.6rem 0 0.8rem;
}

.help-body p {
	color: var(--dim);
	max-width: 46rem;
}

.help-body .rule-box {
	border: 1px solid var(--rule-hi);
	padding: 1.1rem 1.3rem;
	margin: 1.4rem 0;
	max-width: 46rem;
}

.help-body .rule-box b {
	color: var(--fg);
}

kbd {
	border: 1px solid var(--rule-hi);
	padding: 0 0.4rem;
	font-size: 0.82em;
	color: var(--fg);
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
	position: fixed;
	left: 50%;
	bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	z-index: 97;
	background: var(--fg);
	color: var(--bg);
	padding: 0.5rem 1rem;
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	white-space: nowrap;
	animation: fade-up 200ms ease;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	.tile,
	.tile::before {
		animation: none !important;
		transition: none;
	}

	.grain,
	.chip,
	.boot-letter.in,
	.boot-letter.in::before,
	.boot-letter.in::after {
		animation: none !important;
	}

	.boot-letter.in {
		opacity: 1;
	}

	html {
		scroll-behavior: auto;
	}
}

html.no-anim .tile {
	animation: none !important;
}

html.no-anim .grain,
html.no-anim .chip {
	animation: none !important;
}

html.no-anim .overlay-word.glitch::before,
html.no-anim .overlay-word.glitch::after {
	animation: none !important;
	opacity: 0 !important;
}
