/* ==========================================================================
   DIVE GAMES theme — main stylesheet
   Fonts are declared in theme.json (self-hosted, with Vietnamese subsets).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--abyss: #030a1c;
	--deep: #071c40;
	--ocean: #0b3d80;
	--sea: #1474d6;
	--cyan: #3fd8ff;
	--foam: #d9f7ff;
	--coral: #ff6b8b;
	--sun: #ffd166;
	--ink: #eaf6ff;
	--muted: #a9c3e3;
	--line: rgba(150, 210, 255, .18);

	--paper: #fff6e2;
	--crayon-ink: #3b2a1e;
	--crayon-orange: #f39c2a;
	--os-ink: #4a2d6e;
	--os-line: #6b4a9e;
	--os-soft: #cdb6ec;
	--os-pink: #ff8cc6;
	--os-pink-deep: #e2458f;
	--os-a: #ffe0f1;
	--os-b: #efe0ff;

	--font-display: var(--wp--preset--font-family--display, "Unbounded", "Segoe UI", system-ui, sans-serif);
	--font-body: var(--wp--preset--font-family--body, "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif);
	--font-crayon: var(--wp--preset--font-family--crayon, "Baloo 2", system-ui, sans-serif);
	--font-hand: var(--wp--preset--font-family--hand, "Patrick Hand", system-ui, sans-serif);
	--font-pixel: var(--wp--preset--font-family--pixel, "Pixelify Sans", monospace);

	--container: 1200px;
	--content: 720px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Pixelify Sans has no Vietnamese letters: the game itself switches to Handjet. */
html[lang^="vi"] {
	--font-pixel: var(--wp--preset--font-family--pixel-vi, "Handjet", monospace);
}

/* Pixelify Sans draws "fi" as a broken ligature. */
.scene--cyfh, .scene-info--cyfh, .game-body--cyfh, .features--cyfh, .facts--cyfh, .os-win { font-variant-ligatures: none; }

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

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

body {
	margin: 0;
	background: var(--abyss);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	overflow-x: clip;
}

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

a { color: var(--cyan); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: #fff; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	margin: 0 0 .6em;
	color: #fff;
}

p { margin: 0 0 1em; }

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

.skip-link {
	position: absolute; left: 12px; top: -80px; z-index: 1000;
	padding: 10px 16px; border-radius: 10px;
	background: var(--sun); color: #111; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site-main:focus { outline: none; }

.container {
	width: min(100% - 2 * var(--gutter), var(--container));
	margin-inline: auto;
}

.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
}
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(3, 14, 38, .74);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	backdrop-filter: blur(14px) saturate(1.3);
	box-shadow: 0 1px 0 var(--line);
	opacity: 0;
	transition: opacity .4s;
}
.site-header.is-scrolled::before,
.nav-open .site-header::before { opacity: 1; }

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
	position: relative;
	height: var(--header-h);
	width: min(100% - 2 * var(--gutter), 1320px);
	margin-inline: auto;
	display: flex;
	align-items: center;
	gap: 20px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	position: relative;
	z-index: 2;
}
.brand:hover { color: #fff; }
.site-header:not(.is-scrolled) .brand,
.site-header:not(.is-scrolled) .nav-toggle,
.site-header:not(.is-scrolled) .site-nav__extras { filter: drop-shadow(0 1px 8px rgba(0, 38, 92, .45)); }
.site-header:not(.is-scrolled) .primary-nav a { text-shadow: 0 1px 10px rgba(0, 38, 92, .6); }
.brand .dg-mark { width: 38px; height: 38px; transition: transform .6s var(--ease); }
.brand:hover .dg-mark { transform: rotate(-14deg) scale(1.06); }
.brand__word { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.brand__word b { font-weight: 800; font-size: 1.12rem; letter-spacing: .08em; }
.brand__word i { font-style: normal; font-weight: 500; font-size: .6rem; letter-spacing: .5em; color: var(--cyan); margin-top: 4px; }
.brand--custom img { max-height: 46px; width: auto; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.primary-nav .menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav a {
	display: block;
	padding: 8px 15px;
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: .95rem;
	transition: background .25s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a { background: rgba(255, 255, 255, .14); color: #fff; }
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; left: 0; top: 100%; min-width: 200px;
	background: rgba(3, 14, 38, .95); border: 1px solid var(--line); border-radius: 14px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.site-nav__extras { display: flex; align-items: center; gap: 12px; }

.lang-switch ul {
	list-style: none; display: flex; margin: 0; padding: 3px;
	border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
	background: rgba(3, 14, 38, .35);
}
.lang-switch a {
	display: block; padding: 4px 10px; border-radius: 999px;
	font-size: .76rem; font-weight: 700; letter-spacing: .08em;
	color: rgba(255, 255, 255, .75); text-decoration: none;
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-current { background: var(--cyan); color: #04203a; }

.social { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.social__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 38px; height: 38px; border-radius: 50%;
	color: #fff; background: rgba(255, 255, 255, .12); text-decoration: none;
	transition: background .25s, color .25s, transform .25s var(--ease);
}
.social__link:hover { background: var(--cyan); color: #04203a; transform: translateY(-2px); }
.social .icon { width: 18px; height: 18px; }

.nav-toggle {
	display: none;
	position: relative; z-index: 2;
	width: 46px; height: 46px; margin-left: auto;
	align-items: center; justify-content: center;
	border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%;
	background: rgba(3, 14, 38, .4); color: #fff; cursor: pointer;
}
.nav-toggle__close { display: none; }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: 0; z-index: 1;
		flex-direction: column; justify-content: center; gap: 30px;
		padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
		background: radial-gradient(80% 60% at 50% 0%, rgba(63, 216, 255, .22), transparent 70%), var(--deep);
		opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; }
	.nav-open { overflow: hidden; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.primary-nav .menu { flex-direction: column; align-items: center; gap: 6px; }
	.primary-nav a { font-family: var(--font-display); font-size: 1.6rem; padding: 10px 22px; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; text-align: center; }
	.site-nav__extras { flex-direction: column; gap: 18px; }
}

/* ---------- Depth gauge ---------- */
.depth-gauge {
	position: fixed; right: 16px; top: 50%; z-index: 90;
	transform: translateY(-50%);
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	padding: 14px 8px; border-radius: 999px;
	background: rgba(3, 14, 38, .55);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border: 1px solid var(--line);
	color: var(--foam); font-family: var(--font-display);
	opacity: 0; transition: opacity .5s; pointer-events: none;
}
.depth-gauge.is-active { opacity: 1; }
.depth-gauge__label { font-size: .56rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.depth-gauge__track { position: relative; width: 4px; height: min(32vh, 240px); border-radius: 4px; background: rgba(255, 255, 255, .14); }
.depth-gauge__fill { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--t, 0) * 100%); border-radius: 4px; background: linear-gradient(var(--cyan), var(--coral)); }
.depth-gauge__marker {
	position: absolute; left: 50%; top: calc(var(--t, 0) * 100%);
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--abyss); border: 3px solid var(--cyan);
	transform: translate(-50%, -50%); box-shadow: 0 0 14px var(--cyan);
}
.depth-gauge__read { font-weight: 700; font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.depth-gauge__zone {
	font-family: var(--font-body); font-size: .58rem; font-weight: 600; line-height: 1.25;
	letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
	max-width: 70px; text-align: center;
}
@media (max-width: 900px) {
	/* On phones the gauge is a small pill that only shows while you are scrolling. */
	.depth-gauge { top: auto; bottom: 12px; right: 12px; transform: translateY(8px); flex-direction: row; gap: 10px; padding: 7px 14px; transition: opacity .4s, transform .4s; }
	.depth-gauge.is-active { opacity: 0; }
	.depth-gauge.is-active.is-moving { opacity: 1; transform: none; }
	.depth-gauge__track, .depth-gauge__label { display: none; }
	.depth-gauge__zone { max-width: none; }
}

/* ---------- Buttons, kickers, badges ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 12px 24px; border-radius: 999px;
	border: 1.5px solid transparent;
	font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn .icon { width: 20px; height: 20px; }
.btn--primary {
	background: linear-gradient(135deg, #7af2ff, #2f8cff);
	color: #03203f;
	box-shadow: 0 10px 30px -8px rgba(63, 216, 255, .7);
}
.btn--primary:hover { color: #03203f; transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(63, 216, 255, .9); }
.btn--glass, .btn--ghost {
	background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .32); color: #fff;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--glass:hover, .btn--ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; transform: translateY(-2px); }
.btn--lg { min-height: 58px; padding: 14px 32px; font-size: 1.08rem; }

.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ctas--center { justify-content: center; }

.kicker {
	font-family: var(--font-display); font-size: .76rem; font-weight: 600;
	letter-spacing: .28em; text-transform: uppercase; color: var(--cyan);
	margin: 0 0 14px;
}
.kicker--light { color: #fff; opacity: .9; }

.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0; }
.section-intro { color: var(--muted); font-size: 1.12rem; margin: 18px auto 0; max-width: 620px; }

.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.badge {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 13px; border-radius: 999px;
	font-size: .8rem; font-weight: 600; line-height: 1.3;
	background: rgba(255, 255, 255, .12); border: 1px solid var(--line); color: #fff;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 209, 102, .25); }
.motion .badge__dot { animation: blink 1.6s ease-in-out infinite; }
.badge--released .badge__dot { background: #5ee88a; box-shadow: 0 0 0 4px rgba(94, 232, 138, .25); }

.admin-hint {
	display: inline-block; margin: 24px auto 0; padding: 12px 16px; border-radius: 12px;
	background: rgba(255, 209, 102, .12); border: 1px dashed rgba(255, 209, 102, .6);
	color: #ffe7a8; font-size: .92rem;
}
.admin-hint a { color: #fff; }

/* ---------- Shared layer system ---------- */
.layer { position: absolute; }
.layer--fill { left: 0; top: 0; width: 100%; height: 100%; }
.layer--fill > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.motion .layer[data-speed] { will-change: transform; }

/* ---------- Bubbles ---------- */
.bubbles { pointer-events: none; overflow: hidden; }
.bubbles span {
	position: absolute; bottom: -30px; left: var(--bx);
	width: var(--bs); height: var(--bs); border-radius: 50%;
	border: 1.5px solid rgba(220, 250, 255, .55);
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .6), rgba(255, 255, 255, .04) 60%);
	animation: bubble var(--bd) linear var(--bdelay) infinite;
}

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: max(100svh, 640px);
	display: grid; place-items: center;
	padding: calc(var(--header-h) + 40px) 0 130px;
	background: linear-gradient(180deg, #62e3ff 0%, #20a8f0 20%, #0d65cc 52%, #083e93 76%, #071c40 100%);
	color: #fff;
}
.hero .layer--fill { top: -22%; height: 144%; }
.hero__water { background: radial-gradient(120% 55% at 50% -8%, rgba(255, 255, 255, .55), transparent 62%); }
.hero__sun {
	left: 50%; top: -38vmax; width: 76vmax; height: 76vmax; margin-left: -38vmax; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(190, 248, 255, .28) 38%, transparent 66%);
	mix-blend-mode: screen;
}
.hero__rays { mix-blend-mode: screen; }
.hero__rays span {
	position: absolute; top: -8%; width: 13vw; height: 112%;
	background: linear-gradient(180deg, rgba(235, 255, 255, .5), rgba(200, 250, 255, 0) 78%);
	clip-path: polygon(36% 0, 64% 0, 100% 100%, 0 100%);
	transform-origin: 50% 0; transform: rotate(var(--r, 10deg)); opacity: .7;
}
.hero__rays span:nth-child(1) { left: 6%; --r: 16deg; }
.hero__rays span:nth-child(2) { left: 22%; --r: 10deg; width: 8vw; }
.hero__rays span:nth-child(3) { left: 40%; --r: 4deg; width: 16vw; }
.hero__rays span:nth-child(4) { left: 58%; --r: -4deg; width: 9vw; }
.hero__rays span:nth-child(5) { left: 72%; --r: -10deg; width: 14vw; }
.hero__rays span:nth-child(6) { left: 88%; --r: -16deg; width: 7vw; }
.motion .hero__rays span { animation: ray 9s ease-in-out infinite alternate; }
.motion .hero__rays span:nth-child(2n) { animation-duration: 12s; animation-delay: -4s; }
.motion .hero__rays span:nth-child(3n) { animation-duration: 7s; animation-delay: -2s; }

.hero__snow, .join__snow { overflow: hidden; pointer-events: none; }
.hero__snow::before, .join__snow::before {
	content: ""; position: absolute; inset: -180px 0 0;
	background-image:
		radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .75) 0 1.2px, transparent 1.8px),
		radial-gradient(circle at 64% 42%, rgba(255, 255, 255, .55) 0 1px, transparent 1.6px),
		radial-gradient(circle at 38% 76%, rgba(255, 255, 255, .6) 0 1.4px, transparent 2px),
		radial-gradient(circle at 86% 88%, rgba(255, 255, 255, .45) 0 1px, transparent 1.6px);
	background-size: 180px 180px;
	opacity: .55;
}
.hero__snow--far::before { background-size: 120px 120px; opacity: .3; }
.motion .hero__snow::before, .motion .join__snow::before { animation: snow 22s linear infinite; }
.motion .hero__snow--far::before { animation-duration: 34s; }

.hero__surface { left: 0; top: -2px; width: 100%; height: clamp(80px, 15vh, 170px); }
.hero__surface svg { display: block; width: 100%; height: 100%; }
.hero__manta { left: 64%; top: 30%; width: min(24vw, 320px); color: rgba(2, 28, 78, .26); }
.hero__fish { left: 0; top: 34%; width: min(22vw, 240px); color: rgba(4, 36, 96, .5); }
.hero__fish--two { top: 60%; width: min(13vw, 150px); color: rgba(4, 36, 96, .36); }
.school svg { transform: scaleX(-1); }
.motion .glide { animation: glide 30s ease-in-out infinite alternate; }
.motion .school { animation: school 38s linear infinite; }
.motion .school--rev { animation-duration: 52s; animation-direction: reverse; }
.school--rev svg { transform: none; }

.hero__kelp { bottom: -6%; width: clamp(80px, 11vw, 170px); color: #062f63; }
.hero__kelp--left { left: -1%; }
.hero__kelp--right { right: 1%; }
.hero__kelp--right .sway { scale: -1 1; }
.sway { transform-origin: 50% 100%; }
.motion .sway { animation: sway 7s ease-in-out infinite alternate; }
.motion .sway--late { animation-delay: -3.5s; animation-duration: 8.5s; }

.hero__content { position: relative; z-index: 4; text-align: center; max-width: 920px; }
.hero__content.layer { position: relative; }
.hero-logo { display: flex; flex-direction: column; align-items: center; margin: 0 0 6px; line-height: .9; color: #fff; }
.hero-logo__mark { width: clamp(64px, 9vw, 106px); height: auto; margin-bottom: 20px; filter: drop-shadow(0 8px 24px rgba(0, 40, 90, .45)); }
.hero-logo__word {
	font-family: var(--font-display); font-weight: 800;
	font-size: clamp(4.4rem, 16vw, 12rem); letter-spacing: .02em;
	background: linear-gradient(180deg, #ffffff 30%, #c9f6ff 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 10px 30px rgba(0, 30, 80, .35));
}
.hero-logo__sub {
	font-family: var(--font-display); font-weight: 500;
	font-size: clamp(1rem, 3vw, 2.1rem); letter-spacing: .62em; margin-right: -.62em;
	color: #eaffff; margin-top: 14px;
}
.hero__tagline { font-family: var(--font-display); font-size: clamp(1.05rem, 2.2vw, 1.5rem); font-weight: 600; margin: 26px 0 10px; color: #fff; }
.hero__text { max-width: 640px; margin: 0 auto 32px; color: rgba(236, 250, 255, .9); font-size: 1.08rem; }
.scroll-cue {
	position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5;
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	color: #fff; text-decoration: none; font-size: .7rem; font-weight: 600;
	letter-spacing: .3em; text-transform: uppercase; opacity: .85;
}
.scroll-cue:hover { color: #fff; opacity: 1; }
.motion .scroll-cue .icon { animation: cue 1.8s ease-in-out infinite; }

/* ---------- Intro ---------- */
.intro {
	position: relative; isolation: isolate; overflow: hidden;
	padding: clamp(90px, 13vw, 170px) 0;
	background: linear-gradient(180deg, #071c40 0%, #06244f 45%, #051a3c 100%);
}
.intro .layer--fill { top: -20%; height: 140%; }
.intro__rays { background: radial-gradient(60% 45% at 50% 0%, rgba(63, 216, 255, .16), transparent 70%); }
.intro__inner { position: relative; z-index: 2; }
.prose--intro { text-align: center; max-width: 900px; margin-inline: auto; }
.prose--intro > * { margin-inline: auto; }
.prose--intro h2 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); }
.prose--intro p { max-width: 700px; color: var(--muted); }
.prose--intro .is-style-lead { color: #fff; }

.is-style-lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6; }

.prose .dg-pillars,
.dg-pillars {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
	max-width: 1080px; margin: 56px auto 0; text-align: left;
}
.dg-pillars > .wp-block-column {
	position: relative; padding: 30px 26px 26px; border-radius: 22px;
	background: linear-gradient(160deg, rgba(63, 216, 255, .12), rgba(255, 255, 255, .03));
	border: 1px solid var(--line);
}
.dg-pillars > .wp-block-column::before {
	content: ""; display: block; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px;
	background: var(--cyan) var(--pillar-icon) center / 26px no-repeat;
	-webkit-mask: none;
	background-color: rgba(63, 216, 255, .16);
}
.dg-pillars > .wp-block-column:nth-child(1) { --pillar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233fd8ff'%3E%3Cpath d='M3 21l3.8-1 11.4-11.4-2.8-2.8L4 17.2zM14.6 4.6l2.8 2.8 1.6-1.6a1 1 0 0 0 0-1.4l-1.4-1.4a1 1 0 0 0-1.4 0z'/%3E%3C/svg%3E"); }
.dg-pillars > .wp-block-column:nth-child(2) { --pillar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fd8ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v13M6 10l6 6 6-6M5 21h14'/%3E%3C/svg%3E"); }
.dg-pillars > .wp-block-column:nth-child(3) { --pillar-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233fd8ff'%3E%3Cpath fill-rule='evenodd' d='M7 7h10a5 5 0 0 1 4.9 6l-.8 4a2.5 2.5 0 0 1-4.3 1.2L14.5 16h-5l-2.3 2.2A2.5 2.5 0 0 1 2.9 17l-.8-4A5 5 0 0 1 7 7zm1 3v2H6v2h2v2h2v-2h2v-2h-2v-2zm8.5 0a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4zm-2 2.6a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4z'/%3E%3C/svg%3E"); }
.dg-pillars h3 { font-size: 1.15rem; margin: 0 0 .5em; }
.dg-pillars p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Games section ---------- */
.games { position: relative; background: #041633; }
.games__head { padding: clamp(80px, 10vw, 130px) 0 clamp(36px, 5vw, 60px); background: linear-gradient(180deg, #051a3c, #041633); }

/* ---------- Scenes (parallax worlds) ---------- */
.scene {
	position: relative; isolation: isolate;
	height: clamp(620px, 100svh, 1000px);
	overflow: hidden;
}
.scene__view { position: absolute; inset: 0; overflow: hidden; container-type: size; }
.stage {
	--sw: max(100cqw, 177.78cqh);
	--sh: calc(var(--sw) * .5625);
	position: absolute;
	width: var(--sw);
	height: var(--sh);
	left: clamp(calc(100cqw - var(--sw)), calc(50cqw - var(--fx, .5) * var(--sw)), 0px);
	top: clamp(calc(100cqh - var(--sh)), calc(50cqh - var(--fy, .5) * var(--sh)), 0px);
}
@supports not (width: 1cqw) {
	.stage { --sw: 100vw; width: 100%; height: 100%; left: 0; top: 0; }
}
.stage .layer { left: var(--x, 0); top: var(--y, 0); width: var(--w, auto); }
.stage .layer img { display: block; width: 100%; height: auto; }
.stage .layer--fill { left: 0; top: 0; width: 100%; height: 100%; }
.stage .layer--fill > img { height: 100%; }
.scene__shade { position: absolute; inset: 0; pointer-events: none; z-index: 2; background: linear-gradient(180deg, rgba(0, 0, 0, .28), transparent 26%, transparent 64%, rgba(0, 0, 0, .55)); }
.scene__content { position: absolute; z-index: 5; }
.scene__tagline { margin: 0; }
.game-title { margin: 0; }
.game-logo { display: block; height: auto; }

.scene__content--center {
	left: 50%; bottom: 11%; transform: translateX(-50%);
	width: min(92%, 780px); text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.scene__content--center .game-title__text { font-size: clamp(2.4rem, 6vw, 4.6rem); color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.scene__content--center .scene__tagline { font-size: 1.2rem; color: #fff; }
.scene--layers { background: var(--deep); }
.scene--layers .layer--bg { top: -13%; height: 126%; }
.scene--layers .layer--mid, .scene--layers .layer--front { left: 0; right: 0; width: 100%; top: auto; bottom: -6%; }

/* Lexicore: crayon world */
.scene--lexicore { background: #8cc8ee; }
/* The landscape and everything standing on it share one layer (14% larger than the stage, so parallax never shows an edge). */
.stage .layer--ground { left: -7%; top: -7%; width: 114%; height: 114%; }
.stage .layer--ground img.ground__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ground__item { position: absolute; left: var(--x); top: var(--y); width: var(--w); }
.stage .ground__item img { display: block; width: 100%; height: auto; }
.walker .walk { position: relative; transform-origin: 50% 100%; }
.stage .walker .walker__shadow { position: absolute; left: 6%; bottom: -5%; width: 88%; opacity: .55; }
.walker__body { position: relative; }
.motion .walk { animation: walk 1.15s ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
.motion .drift { animation: drift 24s ease-in-out infinite alternate; animation-delay: var(--delay, 0s); }
.motion .drift--rev { animation-direction: alternate-reverse; }
.motion .flap { animation: flap .45s ease-in-out infinite alternate; }
.squish { transform-origin: 50% 100%; }
.motion .squish { animation: squish 1.4s ease-in-out infinite; animation-delay: var(--delay, 0s); }

.scene__content--title {
	left: 50%; top: clamp(84px, 9%, 130px); transform: translateX(-50%);
	width: min(92%, 640px); text-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.scene--lexicore .game-logo { width: clamp(240px, 32vw, 500px); filter: drop-shadow(0 10px 16px rgba(50, 35, 10, .3)); }
.scene--lexicore .game-title__text,
.scene--lexicore .scene__tagline {
	font-family: var(--font-crayon); font-weight: 800; color: #fff;
	text-shadow: 2px 2px 0 var(--crayon-ink), -2px 2px 0 var(--crayon-ink), 2px -2px 0 var(--crayon-ink), -2px -2px 0 var(--crayon-ink), 0 3px 0 var(--crayon-ink), 0 6px 14px rgba(0, 0, 0, .25);
}
.scene--lexicore .scene__tagline { font-size: clamp(1.15rem, 2.2vw, 1.65rem); letter-spacing: .01em; }
.scene--lexicore .badges .badge { background: #fff; border: 2px solid var(--crayon-ink); color: var(--crayon-ink); font-family: var(--font-crayon); font-weight: 700; }

.cbtn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 230px; min-height: 60px; padding: 6px 22px 12px;
	border-style: solid; border-width: 14px 16px 18px;
	border-image: url(../img/lexicore/btn-blue.webp) 30 34 38 34 fill / 14px 16px 18px stretch;
	font-family: var(--font-crayon); font-weight: 800; font-size: 1.12rem; letter-spacing: .05em;
	text-transform: uppercase; color: #fff; text-decoration: none;
	text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
	transition: transform .2s var(--ease), filter .2s;
}
.cbtn--primary { border-image-source: url(../img/lexicore/btn-orange.webp); }
.cbtn:hover { transform: translateY(-3px) scale(1.02); filter: brightness(1.06) saturate(1.1); color: #fff; }
.cbtn .icon { width: 20px; height: 20px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); }
.cbtn span { position: relative; top: 1px; }
.scene--lexicore .ctas { justify-content: center; }

/* Can You Fix Her: DIVE OS desktop */
.scene--cyfh { background: var(--os-a); color: var(--os-ink); }
.os-wallpaper {
	top: -45% !important; height: 190% !important;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' shape-rendering='crispEdges'%3E%3Cg fill='%23ffffff' opacity='.9'%3E%3Crect x='18' y='20' width='4' height='4'/%3E%3Crect x='26' y='20' width='4' height='4'/%3E%3Crect x='14' y='24' width='20' height='4'/%3E%3Crect x='18' y='28' width='12' height='4'/%3E%3Crect x='22' y='32' width='4' height='4'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.85'%3E%3Crect x='84' y='70' width='2' height='12'/%3E%3Crect x='79' y='75' width='12' height='2'/%3E%3Crect x='83' y='74' width='4' height='4'/%3E%3C/g%3E%3Cg fill='%23f7b2d8' opacity='.7'%3E%3Crect x='96' y='18' width='3' height='3'/%3E%3Crect x='40' y='92' width='3' height='3'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px,
		conic-gradient(var(--os-a) 25%, var(--os-b) 0 50%, var(--os-a) 0 75%, var(--os-b) 0) 0 0 / 60px 60px;
}
.os-glow { top: -20% !important; height: 140% !important; background: radial-gradient(60% 50% at 70% 35%, rgba(255, 255, 255, .6), transparent 70%), linear-gradient(180deg, transparent 55%, rgba(255, 170, 215, .38)); }
.os-watermark {
	display: flex; align-items: center; gap: .18em; white-space: nowrap;
	font-family: "Pixelify Sans", var(--font-pixel); font-weight: 700; line-height: 1;
	font-size: calc(var(--sw) * .052); color: #fff;
	text-shadow: 3px 0 var(--os-soft), -3px 0 var(--os-soft), 0 3px var(--os-soft), 0 -3px var(--os-soft), 5px 6px 0 rgba(107, 74, 158, .18);
}
.os-watermark svg { width: .9em; height: .9em; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff); }

.os-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: calc(var(--sw) * .009); }
.os-icons li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--font-pixel); font-size: calc(var(--sw) * .0074); color: var(--os-ink); line-height: 1.2; }
.os-icons svg { width: calc(var(--sw) * .024); height: auto; filter: drop-shadow(1px 0 0 var(--os-line)) drop-shadow(-1px 0 0 var(--os-line)) drop-shadow(0 1px 0 var(--os-line)) drop-shadow(0 -1px 0 var(--os-line)); }
.os-icons span { background: rgba(255, 255, 255, .92); border: 2px solid var(--os-line); border-radius: 8px; padding: 1px 6px; white-space: nowrap; }

.os-win {
	background: #fff8fc; border: 2px solid var(--os-line); border-radius: 10px; overflow: hidden;
	box-shadow: 5px 6px 0 rgba(107, 74, 158, .32);
	font-family: var(--font-pixel); color: var(--os-ink); line-height: 1.4;
}
.stage .os-win { font-size: calc(var(--sw) * .0084); }
.os-bar {
	display: flex; align-items: center; gap: .5em; height: 2.2em; padding: 0 .55em;
	background: linear-gradient(90deg, var(--os-pink), #d8c6f4);
	color: #fff; font-weight: 600; text-shadow: 1px 1px 0 var(--os-pink-deep);
	border-bottom: 2px solid var(--os-line);
}
.os-bar svg { width: 1.3em; height: 1.3em; }
.os-bar i { margin-left: auto; width: 1.15em; height: 1.15em; border: 2px solid var(--os-line); border-radius: 4px; background: #fff8fc; }
.os-bar i + i { margin-left: .3em; }
.os-mail { display: grid; grid-template-columns: 30% 1fr; gap: .6em; padding: .6em; }
.os-mail__list { align-self: start; display: flex; gap: .4em; align-items: center; padding: .4em; border-radius: 6px; background: #ffd3ea; }
.os-mail__list b { display: grid; place-items: center; width: 1.8em; height: 1.8em; flex: none; border-radius: 6px; background: var(--os-line); color: #fff; }
.os-mail__body { border: 2px solid var(--os-soft); border-radius: 6px; padding: .6em .8em; background: #fff; }
.os-mail__body h4 { font-family: var(--font-pixel); font-size: 1.15em; line-height: 1.25; margin: 0 0 .35em; color: var(--os-ink); letter-spacing: 0; }
.os-mail__body p { margin: 0 0 .5em; }
.os-mail__from { color: #8a6fb0; }
.os-chat { display: flex; flex-direction: column; gap: .5em; padding: .7em; background: #fff; }
.os-chat p { margin: 0; }
.os-chat__who { padding: .4em .6em; border: 2px solid var(--os-line); border-radius: 8px; background: #ffd3ea; }
.os-chat__msg { align-self: flex-start; padding: .45em .75em; border: 2px solid var(--os-line); border-radius: 8px; background: #fff8fc; box-shadow: 2px 2px 0 var(--os-soft); }
.os-chat__pick { display: flex; gap: .55em; align-items: center; padding: .45em .6em; border: 2px solid var(--os-line); border-radius: 8px; background: #fff; box-shadow: 0 3px 0 var(--os-line); }
.os-chat__pick b { display: grid; place-items: center; width: 1.45em; height: 1.45em; flex: none; border-radius: 4px; background: var(--os-pink-deep); color: #fff; font-size: .85em; }
.stage .os-win--dialog { padding: .9em 1em; display: flex; flex-direction: column; gap: .6em; font-size: calc(var(--sw) * .0092); }
.os-win--dialog p { margin: 0; }
.os-progress { display: block; height: 1.25em; border: 2px solid var(--os-line); border-radius: 6px; overflow: hidden; background: #fff; }
.os-progress span { display: block; height: 100%; width: 46%; background: repeating-linear-gradient(90deg, var(--os-pink) 0 .6em, #8fdcf7 .6em 1.2em); }
.motion .os-progress span { animation: progress 3.4s steps(12) infinite; }
.pixel img { image-rendering: pixelated; }
.breathe { transform-origin: 50% 100%; }
.motion .breathe { animation: breathe 3.2s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.motion .pop { animation: bob 6s ease-in-out infinite; }
.motion .pop--late { animation-delay: -3s; }
.motion .glitch { animation: glitch 4.2s steps(1) infinite; }
.motion .twinkle { animation: twinkle 2.4s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.os-heart svg { display: block; width: 100%; height: auto; }

.os-taskbar {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 42px;
	display: flex; align-items: center; gap: 8px; padding: 0 10px;
	background: #f5eeff; border-top: 2px solid var(--os-line);
	font-family: var(--font-pixel); font-size: 14px; color: var(--os-ink);
}
.os-start { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border: 2px solid var(--os-line); border-radius: 999px; background: var(--os-pink); color: #fff; font-weight: 700; text-shadow: 1px 1px 0 var(--os-pink-deep); }
.os-start i { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--os-line); }
.os-task { padding: 2px 12px; min-width: 120px; border: 2px solid var(--os-line); border-radius: 6px; background: var(--os-b); }
.os-clock { margin-left: auto; padding: 2px 12px; border: 2px solid var(--os-line); border-radius: 999px; background: #fff; }

.scene__content--window { left: 8.5%; top: 50%; transform: translateY(-54%); width: min(440px, 30%); }
.os-win--about { font-size: 16px; }
.os-about { display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 24px; background: #fff8fc; }
.scene--cyfh .game-title__text {
	display: block; font-family: var(--font-pixel); font-weight: 700;
	font-size: clamp(2.1rem, 3.6vw, 3.2rem); line-height: 1; color: var(--os-pink);
	text-shadow: 3px 0 var(--os-line), -3px 0 var(--os-line), 0 3px var(--os-line), 0 -3px var(--os-line), 3px 3px var(--os-line), -3px -3px var(--os-line), 3px -3px var(--os-line), -3px 3px var(--os-line), 6px 7px 0 rgba(107, 74, 158, .25);
}
.scene--cyfh .scene__tagline { font-family: var(--font-pixel); font-size: 1.08rem; line-height: 1.45; color: var(--os-ink); }
.scene--cyfh .badges .badge, .scene-info--cyfh .badge { background: #fff; border: 2px solid var(--os-line); color: var(--os-ink); font-family: var(--font-pixel); border-radius: 8px; }

.osbtn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 16px; border: 2px solid var(--os-line); border-radius: 8px;
	background: #fff; color: var(--os-ink); box-shadow: 0 3px 0 var(--os-line);
	font-family: var(--font-pixel); font-weight: 600; font-size: 1.02rem; line-height: 1.2; text-decoration: none;
	transition: transform .08s, background .2s;
}
.osbtn:hover { background: #ffd3ea; color: var(--os-ink); }
.osbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--os-line); }
.osbtn--primary { background: var(--os-pink); color: #fff; text-shadow: 1px 1px 0 var(--os-pink-deep); }
.osbtn--primary:hover { background: #ff76bb; color: #fff; }
.osbtn .icon { width: 18px; height: 18px; }

/* Info strip under each world on the home page */
.scene-info { position: relative; z-index: 2; }
.scene-info__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 32px; align-items: center; padding-block: 26px; }
.scene-info__text { margin: 0; }
.scene-info__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.scene-info--lexicore { background: var(--paper); color: var(--crayon-ink); border-top: 4px solid var(--crayon-ink); }
.scene-info--lexicore .scene-info__text { font-family: var(--font-hand); font-size: 1.32rem; line-height: 1.35; }
.scene-info--lexicore .scene-info__link { color: #c2410c; font-family: var(--font-crayon); font-size: 1.1rem; }
.scene-info--lexicore .badge { background: #fff; border: 2px solid var(--crayon-ink); color: var(--crayon-ink); font-family: var(--font-crayon); }
.scene-info--cyfh { background: #f5eeff; color: var(--os-ink); border-top: 2px solid var(--os-line); }
.scene-info--cyfh .scene-info__text { font-size: 1.02rem; }
.scene-info--cyfh .scene-info__link { color: var(--os-pink-deep); font-family: var(--font-pixel); font-size: 1.1rem; }

/* ---------- News ---------- */
.news {
	position: relative; isolation: isolate; overflow: hidden;
	padding: clamp(90px, 12vw, 150px) 0;
	background: linear-gradient(180deg, #04142f, #030d24);
}
.news .layer--fill { top: -20%; height: 140%; }
.news__glow { background: radial-gradient(50% 40% at 15% 20%, rgba(63, 216, 255, .1), transparent 70%), radial-gradient(40% 40% at 90% 80%, rgba(255, 107, 139, .08), transparent 70%); }
.news .container { position: relative; z-index: 2; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 380px)); justify-content: center; gap: 24px; }
.card {
	display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
	background: linear-gradient(180deg, rgba(18, 48, 100, .62), rgba(8, 24, 56, .72));
	border: 1px solid var(--line);
	transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(63, 216, 255, .5); box-shadow: 0 24px 50px -24px rgba(63, 216, 255, .45); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ocean); }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { display: grid; place-items: center; height: 100%; background: radial-gradient(circle at 50% 30%, var(--sea), var(--deep)); }
.card__placeholder svg { width: 72px; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.card__meta { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: 1.18rem; margin: 0; }
.card__title a { color: #fff; text-decoration: none; }
.card__title a:hover { color: var(--cyan); }
.card__excerpt { margin: 0; color: var(--muted); font-size: .98rem; }
.section-more { text-align: center; margin-top: 40px; }
.empty-note { text-align: center; color: var(--muted); }

/* ---------- Join (the trench) ---------- */
.join {
	position: relative; isolation: isolate; overflow: hidden; text-align: center;
	padding: clamp(110px, 15vw, 190px) 0;
	background: radial-gradient(70% 60% at 50% 100%, rgba(63, 216, 255, .14), transparent 70%), linear-gradient(180deg, #030d24, #01060f);
}
.join .layer--fill { top: -20%; height: 140%; }
.join__snow::before { opacity: .3; }
.join__jelly { width: clamp(70px, 9vw, 130px); color: #7cf3ff; filter: drop-shadow(0 0 18px rgba(124, 243, 255, .6)); }
.join__jelly svg { display: block; width: 100%; height: auto; }
.join__jelly--a { left: 8%; top: 16%; }
.join__jelly--b { right: 9%; top: 22%; width: clamp(50px, 6vw, 92px); color: #ff8cc6; filter: drop-shadow(0 0 18px rgba(255, 140, 198, .55)); }
.join__jelly--c { left: 72%; top: 64%; width: clamp(40px, 4.4vw, 72px); color: #b693ef; filter: drop-shadow(0 0 16px rgba(182, 147, 239, .55)); }
.motion .pulse { animation: pulse 4s ease-in-out infinite; }
.motion .pulse--slow { animation-duration: 5.5s; animation-delay: -2s; }
.join__inner { position: relative; z-index: 2; max-width: 780px; }
.join__text { color: var(--muted); font-size: 1.15rem; margin: 20px auto 34px; max-width: 620px; }
.social--join { justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.social--join .social__link { width: auto; height: auto; padding: 9px 16px; border-radius: 999px; font-size: .92rem; font-weight: 600; }
.join__email { margin: 24px 0 0; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }

/* ---------- Footer: sea floor ---------- */
.site-footer { position: relative; background: #01050e; color: var(--muted); padding: 70px 0 28px; font-size: .95rem; }
.seafloor { position: absolute; left: 0; right: 0; top: -58px; height: 60px; color: #01050e; pointer-events: none; }
.seafloor svg { display: block; width: 100%; height: 100%; }
.site-footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; align-items: start; }
.site-footer__note { margin: 16px 0 0; max-width: 360px; }
.footer-nav .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--cyan); }
.site-footer__connect { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.site-footer__email { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
.to-surface { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); text-decoration: none; font-weight: 600; }
.to-surface .icon { width: 18px; height: 18px; }

/* ---------- Inner page header ---------- */
.page-header {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: clamp(380px, 58vh, 580px);
	display: grid; align-items: end;
	padding: calc(var(--header-h) + 60px) 0 60px;
	background: linear-gradient(180deg, #0d65cc, #071c40);
}
.page-header .layer--fill { top: -25%; height: 150%; }
.page-header__bg img { opacity: .75; }
.page-header--image::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background:
		linear-gradient(90deg, rgba(3, 10, 28, .88) 0%, rgba(3, 10, 28, .55) 45%, rgba(3, 10, 28, .1) 100%),
		linear-gradient(180deg, rgba(3, 10, 28, .1) 40%, rgba(3, 10, 28, .92) 100%);
}
.page-header__glow { position: absolute; inset: 0; background: radial-gradient(70% 50% at 50% 0%, rgba(255, 255, 255, .35), transparent 65%); mix-blend-mode: screen; }
.page-header__inner { position: relative; z-index: 2; }
.page-title { font-size: clamp(2.2rem, 6vw, 4.2rem); margin: 0; max-width: 20ch; }
.page-intro { max-width: 640px; color: var(--foam); font-size: 1.15rem; margin: 16px 0 0; }

/* ---------- Entries & prose ---------- */
.entry, .listing { padding: clamp(48px, 7vw, 80px) 0 clamp(80px, 10vw, 120px); background: var(--deep); }
.entry__meta .post-meta { max-width: var(--content); margin: 0 auto 26px; color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

.prose > * { max-width: var(--content); margin: 0 auto 1.25em; }
.prose > .alignwide, .prose > .dg-shots, .prose > .dg-cast { max-width: 1120px; }
.prose > .alignfull { max-width: none; width: 100vw; margin-inline: calc(50% - 50vw); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-top: 1.9em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose img { border-radius: 14px; }
.prose figure { margin-inline: auto; }
.prose figcaption { color: var(--muted); font-size: .88rem; text-align: center; margin-top: .6em; }
.prose blockquote { border-left: 4px solid var(--cyan); margin-left: auto; padding: .3em 0 .3em 1.2em; font-size: 1.15rem; color: #fff; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose hr { border: 0; height: 1px; background: var(--line); }
.prose .dg-note { font-size: .9rem; color: var(--muted); text-align: center; }
.prose .dg-whisper { font-style: italic; letter-spacing: .05em; opacity: .85; }
.prose .wp-block-gallery.dg-shots { gap: 18px; }
.prose .wp-block-gallery.dg-shots figure.wp-block-image img { border-radius: 14px; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); border-radius: 0 0 14px 14px; font-size: .85rem; padding: 2.4em .8em .7em; }

.prose .dg-cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dg-cast > .wp-block-column { padding: 26px 22px; border-radius: 22px; text-align: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.dg-cast img { width: auto !important; max-height: 220px; margin: 0 auto 12px; border-radius: 0 !important; transition: transform .45s var(--ease); }
.dg-cast > .wp-block-column:hover img { transform: translateY(-8px) rotate(-3deg) scale(1.05); }
.dg-cast h3 { margin-top: 0; }
.prose .dg-patients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.dg-patients > .wp-block-column { text-align: center; }
.dg-patients img { width: auto !important; max-height: 300px; margin: 0 auto; border-radius: 0 !important; }
.is-pixel-art img { image-rendering: pixelated; }

.page-links, .entry__tags { max-width: var(--content); margin: 30px auto 0; }
.entry__tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--foam); font-size: .85rem; text-decoration: none; }
.post-navigation { max-width: var(--content); margin: 50px auto 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: #fff; }
.post-navigation a:hover { border-color: var(--cyan); }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav-title { font-weight: 700; }
.pagination, .posts-navigation { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: #fff; text-decoration: none; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--cyan); border-color: var(--cyan); color: #04203a; }

/* ---------- Game pages ---------- */
.facts { background: #04142f; border-block: 1px solid var(--line); }
.facts__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0; }
.facts__item { padding: 20px 22px; border-left: 1px solid var(--line); }
.facts__item:first-child { border-left: 0; }
.facts dt { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-weight: 700; color: #fff; line-height: 1.35; }
.facts--lexicore { background: var(--crayon-ink); border-color: rgba(255, 246, 226, .2); }
.facts--lexicore .facts__item { border-color: rgba(255, 246, 226, .18); }
.facts--lexicore dt { color: #e8cfa8; }
.facts--lexicore dd { color: var(--paper); font-family: var(--font-crayon); font-size: 1.15rem; }
.facts--cyfh { background: var(--os-ink); }
.facts--cyfh dt { color: #e3cff7; }
.facts--cyfh dd { font-family: var(--font-pixel); font-size: 1.12rem; }

.game-body { padding: clamp(70px, 9vw, 120px) 0; background: var(--deep); }
.game-body--lexicore { background: var(--paper); color: var(--crayon-ink); }
.game-body--lexicore .prose h2, .game-body--lexicore .prose h3 { font-family: var(--font-crayon); font-weight: 800; color: var(--crayon-ink); letter-spacing: 0; }
.game-body--lexicore .prose h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--crayon-orange); text-shadow: 2px 2px 0 var(--crayon-ink), -2px 2px 0 var(--crayon-ink), 2px -2px 0 var(--crayon-ink), -2px -2px 0 var(--crayon-ink), 0 4px 0 var(--crayon-ink); }
.game-body--lexicore .prose p { font-size: 1.1rem; }
.game-body--lexicore .is-style-lead { font-family: var(--font-hand); font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.35; }
.game-body--lexicore a { color: #c2410c; }
.game-body--lexicore .prose figcaption { color: #6b5443; }
.game-body--lexicore .wp-block-gallery figure.wp-block-image img { border: 3px solid var(--crayon-ink); }
.game-body--lexicore .wp-block-gallery.has-nested-images figure.wp-block-image figcaption { color: #fff; font-family: var(--font-hand); font-size: 1.05rem; }
.game-body--lexicore .dg-cast > .wp-block-column { background: #fff; border: 3px solid var(--crayon-ink); box-shadow: 6px 6px 0 rgba(59, 42, 30, .18); border-radius: 18px 26px 16px 24px; }
.game-body--lexicore .dg-cast > .wp-block-column:nth-child(1) { --c: #3a86ff; }
.game-body--lexicore .dg-cast > .wp-block-column:nth-child(2) { --c: #e63946; }
.game-body--lexicore .dg-cast > .wp-block-column:nth-child(3) { --c: #57cc4d; }
.game-body--lexicore .dg-cast h3 { color: var(--c, var(--crayon-ink)); }
.game-body--lexicore .dg-cast p { font-family: var(--font-hand); font-size: 1.2rem; line-height: 1.35; margin: 0; }
.game-body--lexicore .prose .dg-note { color: #7a6250; }

.game-body--cyfh {
	color: var(--os-ink);
	background: conic-gradient(var(--os-a) 25%, var(--os-b) 0 50%, var(--os-a) 0 75%, var(--os-b) 0) 0 0 / 60px 60px;
}
.game-body--cyfh .prose {
	position: relative; max-width: 1000px; margin-inline: auto;
	padding: calc(2.6em + clamp(20px, 4vw, 44px)) clamp(20px, 4vw, 48px) clamp(24px, 4vw, 44px);
	background: #fff8fc; border: 2px solid var(--os-line); border-radius: 14px;
	box-shadow: 7px 8px 0 rgba(107, 74, 158, .3);
}
.game-body--cyfh .prose::before {
	content: "about_can_you_fix_her.txt"; position: absolute; left: 0; right: 0; top: 0;
	height: 2.4em; display: flex; align-items: center; padding: 0 16px;
	background: linear-gradient(90deg, var(--os-pink), #d8c6f4); border-bottom: 2px solid var(--os-line);
	color: #fff; font-family: var(--font-pixel); font-weight: 600; text-shadow: 1px 1px 0 var(--os-pink-deep);
}
.game-body--cyfh .prose > * { max-width: 760px; }
.game-body--cyfh .prose > .dg-shots { max-width: none; }
.game-body--cyfh .prose h2, .game-body--cyfh .prose h3 { font-family: var(--font-pixel); color: var(--os-pink-deep); letter-spacing: 0; }
.game-body--cyfh .prose h3 { color: var(--os-ink); }
.game-body--cyfh a { color: var(--os-pink-deep); }
.game-body--cyfh .prose figcaption { color: #8a6fb0; }
.game-body--cyfh .wp-block-gallery figure.wp-block-image img { border: 2px solid var(--os-line); }
.game-body--cyfh .prose .dg-note { color: #8a6fb0; }
.game-body--cyfh .dg-patients > .wp-block-column { padding: 20px; border: 2px solid var(--os-line); border-radius: 10px; background: var(--os-a); box-shadow: 4px 5px 0 rgba(107, 74, 158, .25); }
.game-body--cyfh .dg-patients h3 { margin: 12px 0 4px; }
.game-body--cyfh .dg-patients p { margin: 0; font-family: var(--font-pixel); }

.features { padding: clamp(80px, 10vw, 130px) 0; background: var(--deep); }
.features__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; }
.feature { position: relative; padding: 26px 24px 24px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.feature__num { font-family: var(--font-display); font-size: .9rem; font-weight: 700; letter-spacing: .1em; color: var(--cyan); }
.feature p { margin: 10px 0 0; color: #fff; }
.features--lexicore { background: #8cc8ee url(../img/lexicore/sky.webp) center / cover; }
.features--lexicore .kicker { color: #fff; text-shadow: 0 1px 0 var(--crayon-ink); }
.features--lexicore .section-title { font-family: var(--font-crayon); font-weight: 800; color: #fff; text-shadow: 2px 2px 0 var(--crayon-ink), -2px 2px 0 var(--crayon-ink), 2px -2px 0 var(--crayon-ink), -2px -2px 0 var(--crayon-ink), 0 4px 0 var(--crayon-ink); }
.features--lexicore .feature { background: var(--paper); border: 3px solid var(--crayon-ink); border-radius: 16px 22px 14px 20px; box-shadow: 5px 6px 0 rgba(59, 42, 30, .2); }
.features--lexicore .feature:nth-child(odd) { rotate: -.6deg; }
.features--lexicore .feature:nth-child(even) { rotate: .5deg; }
.features--lexicore .feature__num { font-family: var(--font-crayon); font-size: 1.5rem; color: var(--crayon-orange); text-shadow: 1px 1px 0 var(--crayon-ink); }
.features--lexicore .feature p { color: var(--crayon-ink); font-family: var(--font-hand); font-size: 1.28rem; line-height: 1.32; }
.features--cyfh { background: var(--os-b); }
.features--cyfh .kicker { color: var(--os-pink-deep); }
.features--cyfh .section-title { font-family: var(--font-pixel); color: var(--os-ink); }
.features--cyfh .feature { background: #fff8fc; border: 2px solid var(--os-line); border-radius: 10px; box-shadow: 4px 5px 0 rgba(107, 74, 158, .3); }
.features--cyfh .feature__num { font-family: var(--font-pixel); font-size: 1.2rem; color: var(--os-pink-deep); }
.features--cyfh .feature p { color: var(--os-ink); }

.game-follow { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(90px, 12vw, 150px) 0; background: linear-gradient(180deg, #071c40, #030d24); }
.game-follow .layer--fill { top: -20%; height: 140%; }
.game-follow__inner { position: relative; z-index: 2; max-width: 760px; }
.game-follow__text { color: var(--muted); max-width: 620px; margin: 18px auto 30px; font-size: 1.1rem; }

.more-games { padding: clamp(80px, 10vw, 120px) 0; background: #030d24; }
.cards--games { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 520px)); }
.card--game .badges { margin-bottom: 2px; }

/* ---------- 404 & search ---------- */
.lost {
	position: relative; isolation: isolate; overflow: hidden; text-align: center;
	min-height: 100svh; display: grid; place-items: center; padding: 140px 0 100px;
	background: radial-gradient(60% 50% at 50% 30%, rgba(63, 216, 255, .12), transparent 70%), #030d24;
}
.lost .layer--fill { top: -20%; height: 140%; }
.lost__jelly { left: 50%; top: 10%; width: 110px; margin-left: -55px; color: #7cf3ff; filter: drop-shadow(0 0 20px rgba(124, 243, 255, .6)); }
.lost__jelly svg { display: block; width: 100%; }
.lost__inner { position: relative; z-index: 2; }
.lost .page-title { max-width: none; }
.lost .page-intro { margin: 16px auto 30px; }
.lost__search { margin-bottom: 28px; }

.search-form { display: flex; gap: 10px; max-width: 540px; margin: 0 auto; }
.search-form__input {
	flex: 1; min-width: 0; min-height: 50px; padding: 0 20px; border-radius: 999px;
	border: 1px solid var(--line); background: rgba(255, 255, 255, .07); color: #fff; font: inherit;
}
.search-form__input::placeholder { color: var(--muted); }
.search-again { margin-bottom: 40px; }

/* ---------- Comments ---------- */
.comments { max-width: var(--content); margin: 60px auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
	background: rgba(255, 255, 255, .06); color: #fff; font: inherit;
}

/* ---------- Reveal ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes bubble {
	0% { transform: translate(0, 0); opacity: 0; }
	8% { opacity: 1; }
	50% { transform: translate(var(--bw), -55vh); }
	100% { transform: translate(0, -115vh); opacity: 0; }
}
@keyframes ray { from { transform: rotate(calc(var(--r, 0deg) - 4deg)); opacity: .45; } to { transform: rotate(calc(var(--r, 0deg) + 4deg)); opacity: .9; } }
@keyframes snow { to { transform: translateY(180px); } }
@keyframes glide { 0% { transform: translate(-14vw, 4vh) rotate(-5deg); } 50% { transform: translate(0, 0) rotate(2deg); } 100% { transform: translate(12vw, -4vh) rotate(-2deg); } }
@keyframes school { from { transform: translateX(-30vw); } to { transform: translateX(115vw); } }
@keyframes sway { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes blink { 50% { opacity: .35; } }
/* Rocks from the feet: the heroes walk without ever leaving the ground. */
@keyframes walk { from { transform: rotate(-1.4deg) scaleY(1); } to { transform: rotate(1.4deg) scaleY(.985); } }
@keyframes drift { from { transform: translateX(-22%); } to { transform: translateX(22%); } }
@keyframes flap { from { transform: translateY(0) scaleY(1); } to { transform: translateY(-14%) scaleY(.84); } }
@keyframes squish { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.1, .86); } }
@keyframes progress { from { width: 4%; } to { width: 100%; } }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.014); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4%); } }
@keyframes glitch { 0%, 90%, 100% { transform: none; opacity: 1; } 91% { transform: translate(3px, -1px); opacity: .7; } 93% { transform: translate(-3px, 1px); } 95% { opacity: .85; transform: translate(1px, 0); } }
@keyframes twinkle { 0%, 100% { transform: scale(.8); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: translateY(0) scale(1, 1); } 40% { transform: translateY(-12px) scale(.94, 1.06); } 70% { transform: translateY(-18px) scale(1.04, .96); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.scene__content--window { left: 7%; width: min(400px, 34%); }
	.os-about { padding: 18px; }
}

@media (max-width: 900px) {
	.prose .dg-pillars, .dg-pillars, .prose .dg-cast { grid-template-columns: 1fr; }
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
	.scene-info__inner { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 760px) {
	:root { --header-h: 64px; }
	.hero { padding-bottom: 110px; }
	.hero__kelp { width: 70px; }

	/* Worlds: the scene becomes a picture window, the text goes underneath. */
	.scene { height: auto; overflow: visible; }
	.scene__view { position: relative; height: 70svh; min-height: 430px; max-height: 640px; }
	.scene--single .scene__view { height: 74svh; }
	.scene__content,
	.scene__content--window,
	.scene__content--center {
		position: relative; left: auto; top: auto; bottom: auto; transform: none;
		width: auto; margin: 0; padding: 26px var(--gutter) 32px;
	}
	.scene--lexicore .scene__content--title {
		position: absolute; left: 50%; top: calc(var(--header-h) + 16px); transform: translateX(-50%);
		width: 92%; padding: 0;
	}
	.scene--lexicore .game-logo { width: min(62vw, 300px); }
	.scene--lexicore .scene__content .ctas { display: none; }
	.scene--lexicore.scene--single .scene__content--title { position: relative; left: auto; top: auto; transform: none; width: auto; padding: 24px var(--gutter) 30px; background: var(--paper); }
	.scene--lexicore.scene--single .scene__content .ctas { display: flex; }
	.scene--lexicore.scene--single .scene__view { margin-bottom: 0; }
	.scene--lexicore.scene--single .scene__tagline { color: var(--crayon-ink); text-shadow: none; }
	.scene--cyfh .scene__content--window { background: var(--os-b); }
	.scene--cyfh .os-win--about { max-width: 520px; margin: 0 auto; }
	.scene--cyfh.scene--home .os-about .ctas { display: none; }
	.scene--layers .scene__content--center { background: var(--deep); }
	.os-task { display: none; }
	.cbtn { min-width: 0; width: 100%; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.facts__item { border-left: 0; border-top: 1px solid var(--line); }
	.prose .dg-patients { grid-template-columns: 1fr 1fr; }
	.search-form { flex-direction: column; }
	.prose .wp-block-gallery.dg-shots figure.wp-block-image:not(#individual-image) { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.bubbles { display: none; }
}
