/* ==========================================================================
   ZST Games – front-end styles
   Look: chunky "jelly" shapes taken from the logo – bright fills, thick ink
   outlines and a solid drop that squishes when pressed.
   ========================================================================== */

:root {
	--grape: #2B1868;
	--grape-2: #3A2290;
	--grape-deep: #20104F;
	--ink: #1B2266;
	--ink-soft: #474C86;
	--paper: #F4F1FF;
	--lilac: #E3DCFF;
	--white: #FFFFFF;
	--blue: #2F5BEA;
	--sun: #FFC63A;
	--sun-tint: #FFF2C8;
	--slime: #5BC41F;
	--orange: #FF8A1F;
	--pink: #FF5FA2;
	--sky: #3FC6E8;
	--red: #EE3B45;

	--font-display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
	--font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--band-pad: clamp(28px, 4vw, 48px);
	--header-h: 84px;

	--jelly: inset 0 -5px 0 rgb(0 0 0 / .15), inset 0 3px 0 rgb(255 255 255 / .45);
	--outline: 3px solid var(--ink);
	--drop: 0 5px 0 var(--ink);
	--drop-hover: 0 8px 0 var(--ink);
	--drop-pressed: 0 1px 0 var(--ink);
	--ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.12;
	margin: 0 0 .5em;
	letter-spacing: -.005em;
}

p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }

:focus { outline: none; }
:focus-visible {
	outline: 4px solid var(--blue);
	outline-offset: 3px;
	border-radius: 12px;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--sun);
	clip: auto !important;
	clip-path: none;
	color: var(--ink);
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	height: auto;
	left: 12px;
	padding: 14px 22px;
	top: 12px;
	width: auto;
	z-index: 100000;
	border-radius: 999px;
	box-shadow: var(--drop);
	text-decoration: none;
}

.zst-icon { flex: none; }
.zst-icon.is-flipped { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   Buttons
   ----------------------------------------------------------------------- */
.btn {
	--b-bg: var(--blue);
	--b-fg: var(--white);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 28px;
	border: var(--outline);
	border-radius: 999px;
	background: var(--b-bg);
	color: var(--b-fg);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.2rem;
	line-height: 1;
	text-decoration: none;
	box-shadow: var(--jelly), var(--drop);
	transition: transform .12s ease, box-shadow .12s ease;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}
.btn:hover { color: var(--b-fg); transform: translateY(-3px); box-shadow: var(--jelly), var(--drop-hover); }
.btn:active { transform: translateY(4px); box-shadow: var(--jelly), var(--drop-pressed); }
.btn--blue { --b-bg: var(--blue); --b-fg: var(--white); }
.btn--sun { --b-bg: var(--sun); --b-fg: var(--ink); }
.btn--pink { --b-bg: var(--pink); --b-fg: var(--ink); }
.btn--play { --b-bg: var(--slime); --b-fg: var(--ink); min-height: 72px; padding: 0 40px; font-size: 1.65rem; font-weight: 700; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 20px 0 0; }

.text-link {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--blue);
	text-decoration-thickness: 3px;
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	transition: box-shadow .2s ease;
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { box-shadow: 0 6px 18px rgb(27 34 102 / .10); }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--header-h);
}

.site-logo { display: block; flex: none; line-height: 0; }
.site-logo--header .site-logo__img {
	height: 70px;
	width: auto;
	max-width: none;
	object-fit: contain;
}

/* Main menu (desktop) */
.main-nav { flex: 1; min-width: 0; }
.main-nav .menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.main-nav li { position: relative; display: flex; align-items: center; }
.main-nav .menu > li > a {
	--tone: var(--blue);
	--tone-ink: var(--white);
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 16px;
	border-radius: 999px;
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.15rem;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.main-nav .menu > li:nth-child(5n+2) > a { --tone: var(--orange); --tone-ink: var(--ink); }
.main-nav .menu > li:nth-child(5n+3) > a { --tone: var(--slime); --tone-ink: var(--ink); }
.main-nav .menu > li:nth-child(5n+4) > a { --tone: var(--pink); --tone-ink: var(--ink); }
.main-nav .menu > li:nth-child(5n+5) > a { --tone: var(--sky); --tone-ink: var(--ink); }
.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > a,
.main-nav .menu > li.current_page_item > a {
	background: var(--tone);
	color: var(--tone-ink);
}
.main-nav .menu-item-has-children > a { padding-right: 8px; }

.submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-left: 2px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
}
.submenu-toggle:hover { background: var(--paper); }
.submenu-toggle .zst-icon { transition: transform .2s ease; }
.is-open > .submenu-toggle .zst-icon { transform: rotate(180deg); }

.main-nav .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 20;
	min-width: 240px;
	margin: 0;
	padding: 10px;
	list-style: none;
	background: var(--white);
	border: var(--outline);
	border-radius: 22px;
	box-shadow: var(--drop);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .16s ease, transform .2s var(--ease-bounce), visibility 0s linear .2s;
}
.main-nav .sub-menu::before { /* hover bridge */
	content: "";
	position: absolute;
	inset: -14px 0 auto;
	height: 14px;
}
.main-nav .sub-menu .sub-menu { top: -13px; left: calc(100% + 10px); }
.main-nav li:hover > .sub-menu,
.main-nav li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}
.main-nav .sub-menu li { display: flex; }
.main-nav .sub-menu a {
	flex: 1;
	display: block;
	padding: 12px 16px;
	border-radius: 14px;
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.08rem;
	text-decoration: none;
}
.main-nav .sub-menu a:hover,
.main-nav .sub-menu .current-menu-item > a { background: var(--paper); color: var(--blue); }

/* Header buttons */
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 52px;
	height: 52px;
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.08rem;
	text-decoration: none;
	transition: background-color .15s ease, transform .12s ease;
}
.icon-btn:hover { background: var(--lilac); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn--heart { background: #FFE3F0; }
.icon-btn--heart:hover { background: #FFCDE3; }
.icon-btn--heart .zst-icon { color: var(--red); }
.icon-btn[aria-expanded="true"] { background: var(--ink); color: var(--white); }
.icon-btn .when-open { display: none; }
.icon-btn[aria-expanded="true"] .when-open { display: block; }
.icon-btn[aria-expanded="true"] .when-closed { display: none; }
.icon-btn--menu { display: none; }

.fav-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--red);
	color: var(--white);
	font-size: .85rem;
	font-weight: 800;
	line-height: 24px;
	text-align: center;
	box-shadow: 0 0 0 3px var(--white);
}
.fav-count.is-bumped { animation: zst-bump .4s var(--ease-bounce); }
@keyframes zst-bump { 40% { transform: scale(1.35); } }

.header-search { background: var(--white); padding: 4px 0 20px; }
.header-search[hidden] { display: none; }

@media (max-width: 1100px) {
	.icon-btn__label { display: none; }
	.icon-btn { padding: 0; }
}

@media (max-width: 999px) {
	:root { --header-h: 72px; }
	.site-logo--header .site-logo__img { height: 56px; }
	.icon-btn--menu { display: inline-flex; }

	.main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100vh - var(--header-h));
		max-height: calc(100dvh - var(--header-h));
		overflow-y: auto;
		background: var(--white);
		padding: 4px var(--gutter) 24px;
		box-shadow: 0 16px 24px rgb(27 34 102 / .14);
	}
	.main-nav.is-open { display: block; }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 6px; }
	.main-nav li { flex-wrap: wrap; }
	.main-nav .menu > li > a { flex: 1; min-height: 56px; font-size: 1.3rem; padding: 0 20px; }
	.submenu-toggle { width: 52px; height: 52px; background: var(--paper); }
	.main-nav .sub-menu,
	.main-nav .sub-menu .sub-menu {
		position: static;
		flex-basis: 100%;
		display: none;
		min-width: 0;
		margin: 6px 0 4px 20px;
		padding: 6px;
		border: 0;
		border-radius: 18px;
		background: var(--paper);
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}
	.main-nav li:hover > .sub-menu { display: none; }
	.main-nav li.is-open > .sub-menu { display: block; }
	.main-nav .sub-menu a { font-size: 1.15rem; padding: 14px 16px; }
}

@media (max-width: 420px) {
	.site-header__inner { gap: 10px; }
	.header-actions { gap: 6px; }
	.icon-btn { min-width: 48px; height: 48px; }
	.site-logo--header .site-logo__img { height: 50px; }
}

/* --------------------------------------------------------------------------
   Search field
   ----------------------------------------------------------------------- */
.game-search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	max-width: 620px;
	height: 72px;
	padding: 0 8px 0 22px;
	background: var(--white);
	border: var(--outline);
	border-radius: 999px;
	box-shadow: var(--drop);
}
.game-search:focus-within { box-shadow: var(--drop), 0 0 0 5px rgb(47 91 234 / .35); }
.game-search__icon { color: var(--ink-soft); display: flex; }
.game-search__input {
	flex: 1 1 0;
	width: 0;
	min-width: 0;
	height: 100%;
	border: 0;
	background: transparent;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ink);
}
.game-search__input::placeholder { color: #8A8DB8; opacity: 1; }
.game-search__input:focus-visible { outline: none; }
.game-search__input::-webkit-search-cancel-button { cursor: pointer; }
.game-search__btn { min-height: 52px; padding: 0 24px; box-shadow: var(--jelly), 0 3px 0 var(--ink); border-width: 2px; }
.game-search__btn:hover { box-shadow: var(--jelly), 0 5px 0 var(--ink); }
.game-search__btn:active { box-shadow: var(--jelly), var(--drop-pressed); }
.game-search--compact { height: 60px; max-width: 460px; padding-left: 18px; }
.game-search--compact .game-search__btn { min-height: 44px; font-size: 1.05rem; padding: 0 18px; }
.game-search--compact .game-search__input { font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------- */
.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: radial-gradient(120% 140% at 85% 30%, var(--grape-2) 0%, var(--grape) 55%, var(--grape-deep) 100%);
	color: var(--white);
}
.bubbles {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	padding-block: clamp(36px, 6vw, 72px);
}
.hero__title {
	max-width: 13ch;
	margin: 0 0 18px;
	color: var(--white);
	font-size: clamp(2.6rem, 6vw, 4.75rem);
	line-height: 1;
	text-shadow:
		0 3px 0 var(--ink),
		0 6px 0 var(--ink),
		0 12px 22px rgb(0 0 0 / .3);
	text-wrap: balance;
}
.hero__text {
	max-width: 32ch;
	margin-bottom: 26px;
	color: #E6E0FF;
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	font-weight: 700;
	line-height: 1.45;
}
.hero__hint {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 22px 0 0;
	color: var(--sun);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.1rem;
}
.hero__art { display: flex; justify-content: center; pointer-events: none; }
.site-logo--hero { width: min(100%, 460px); }
.site-logo--hero .site-logo__img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 14px 0 rgb(0 0 0 / .18));
}

@media (max-width: 760px) {
	.hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: 30px 38px; }
	.hero__art { display: none; }
	.hero__title { max-width: 14ch; }
	.game-search { height: 64px; padding-left: 16px; }
	.game-search__btn { padding: 0 18px; }
}

/* --------------------------------------------------------------------------
   Bands (home page rows)
   ----------------------------------------------------------------------- */
.band { padding-block: var(--band-pad); }
.band--tight { padding-block: 28px var(--band-pad); }
/* Two plain bands in a row share one gap instead of stacking two. */
.band:not(.band--white):not(.band--grownups) + .band:not(.band--white):not(.band--grownups) { padding-top: 0; }
.band--white { background: var(--white); }
.band--grownups { background: var(--sun-tint); }
.band__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}
.band__title {
	margin: 0 0 22px;
	font-size: clamp(1.75rem, 3.2vw, 2.4rem);
	color: var(--ink);
}
.band__head .band__title { margin: 0; }

/* Category tiles */
.cat-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cat-tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	height: 100%;
	min-height: 168px;
	padding: 18px 18px 16px;
	border: var(--outline);
	border-radius: 28px;
	background: var(--tone);
	color: var(--tone-ink);
	text-decoration: none;
	box-shadow: var(--jelly), 0 6px 0 var(--ink);
	transition: transform .14s var(--ease-bounce), box-shadow .14s ease;
}
.cat-tile:hover { color: var(--tone-ink); transform: translateY(-4px) rotate(-1.2deg); box-shadow: var(--jelly), 0 10px 0 var(--ink); }
.cat-tile:active { transform: translateY(5px); box-shadow: var(--jelly), var(--drop-pressed); }
.cat-tile__icon {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	margin-bottom: auto;
	border-radius: 22px;
	background: rgb(255 255 255 / .92);
	color: var(--ink);
	box-shadow: 0 3px 0 rgb(27 34 102 / .25);
}
.cat-tile__name {
	margin-top: 14px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.4rem;
	line-height: 1.1;
}
.cat-tile__count { font-weight: 800; font-size: .98rem; opacity: .85; }

@media (max-width: 520px) {
	.cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.cat-tile { min-height: 148px; }
	.cat-tile__icon { width: 56px; height: 56px; border-radius: 18px; }
	.cat-tile__icon .zst-icon { width: 32px; height: 32px; }
}

/* --------------------------------------------------------------------------
   Game cards – little preview windows
   ----------------------------------------------------------------------- */
.game-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
	gap: 30px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.game-grid > li { min-width: 0; }

.game-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.game-card__link {
	display: block;
	color: var(--ink);
	text-decoration: none;
	border-radius: 24px;
}
.game-card__link:hover { color: var(--ink); }
.game-card__link:focus-visible { outline: none; }
.game-card__link:focus-visible .game-card__window { outline: 4px solid var(--blue); outline-offset: 4px; }

.game-card__window {
	display: block;
	border: var(--outline);
	border-radius: 24px;
	background: var(--tone);
	box-shadow: 0 6px 0 var(--ink);
	overflow: hidden;
	transition: transform .16s var(--ease-bounce), box-shadow .16s ease;
}
.game-card:hover .game-card__window { transform: translateY(-5px) rotate(-.7deg); box-shadow: 0 11px 0 var(--ink); }
.game-card__link:active .game-card__window { transform: translateY(4px); box-shadow: var(--drop-pressed); }

.game-card__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 48px;
	padding: 0 58px 0 14px;
	color: var(--tone-ink);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .98rem;
	white-space: nowrap;
	overflow: hidden;
}
.game-card__dots { display: inline-flex; gap: 5px; flex: none; }
.game-card__dots i {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--white);
	box-shadow: inset 0 0 0 2px var(--ink);
}
.game-card__dots i:nth-child(2) { background: var(--sun); }
.game-card__dots i:nth-child(3) { background: var(--slime); }
.game-card__cat { display: inline-flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; }

.game-card__screen {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	margin: 0 7px 7px;
	border-radius: 16px;
	background: var(--grape);
	overflow: hidden;
}
.game-card__img,
.game-card__clip {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.game-card__clip { opacity: 0; transition: opacity .25s ease; }
.game-card__clip.is-playing { opacity: 1; }
.game-card__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgb(255 255 255 / .85);
	background:
		radial-gradient(circle at 25% 30%, rgb(255 255 255 / .14) 0 14%, transparent 15%),
		radial-gradient(circle at 75% 70%, rgb(255 255 255 / .1) 0 18%, transparent 19%),
		var(--grape-2);
}
.game-card__play {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	padding-left: 4px;
	border: var(--outline);
	border-radius: 50%;
	background: var(--sun);
	color: var(--ink);
	box-shadow: var(--jelly), 0 4px 0 var(--ink);
	transition: transform .18s var(--ease-bounce);
}
.game-card:hover .game-card__play { transform: scale(1.12); }

.game-card__title {
	display: block;
	margin: 14px 4px 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.4rem;
	line-height: 1.15;
}
.game-card__desc {
	margin: 4px 4px 0;
	color: var(--ink-soft);
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.45;
}

.fav-btn {
	position: absolute;
	top: 7px;
	right: 10px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: var(--white);
	color: var(--ink);
	transition: transform .15s var(--ease-bounce);
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn:active { transform: scale(.9); }
.fav-btn[aria-pressed="true"] { color: var(--red); }
.fav-btn[aria-pressed="true"] .zst-icon { fill: currentColor; }
.fav-btn.is-popping .zst-icon { animation: zst-bump .45s var(--ease-bounce); }

/* --------------------------------------------------------------------------
   Grown-ups box
   ----------------------------------------------------------------------- */
.grownups {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(20px, 3vw, 40px);
}
.grownups__icon {
	display: grid;
	place-items: center;
	width: 104px;
	height: 104px;
	border: var(--outline);
	border-radius: 32px;
	background: var(--sun);
	color: var(--ink);
	box-shadow: var(--jelly), var(--drop);
}
.grownups__copy p { margin: 0; max-width: 46ch; font-weight: 700; color: var(--ink-soft); }
.grownups__copy .band__title { margin-bottom: 10px; }
.grownups__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.grownups__list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 18px;
	border-radius: 18px;
	background: var(--white);
	font-weight: 800;
}
.grownups__list .zst-icon { color: var(--orange); fill: var(--sun); }

@media (max-width: 900px) {
	.grownups { grid-template-columns: auto 1fr; }
	.grownups__list { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.grownups { grid-template-columns: 1fr; }
	.grownups__icon { width: 80px; height: 80px; border-radius: 26px; }
}

/* --------------------------------------------------------------------------
   Page headers, archives, chips, sorting, pagination
   ----------------------------------------------------------------------- */
.page-head {
	--tone: var(--grape);
	--tone-ink: var(--white);
	background: var(--tone);
	color: var(--tone-ink);
	padding-block: clamp(28px, 4.5vw, 48px);
}
.page-head__inner { display: flex; align-items: center; gap: 22px; }
.page-head__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 88px;
	height: 88px;
	border: var(--outline);
	border-radius: 28px;
	background: var(--white);
	color: var(--ink);
	box-shadow: var(--drop);
}
.page-head__title { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.page-head__desc { margin-top: 8px; max-width: 60ch; font-weight: 700; opacity: .92; }
.page-head__desc p { margin: 0; }
.page-head .entry-meta { color: inherit; opacity: .85; }
@media (max-width: 520px) {
	.page-head__icon { width: 64px; height: 64px; border-radius: 20px; }
	.page-head__icon .zst-icon { width: 32px; height: 32px; }
}

.chip-row ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.chip {
	--tone: var(--grape);
	--tone-ink: var(--white);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px;
	border: var(--outline);
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.06rem;
	text-decoration: none;
	box-shadow: 0 3px 0 var(--ink);
	transition: transform .12s ease, box-shadow .12s ease;
}
.chip:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.chip:active { transform: translateY(2px); box-shadow: var(--drop-pressed); }
.chip[aria-current="page"] { background: var(--tone); color: var(--tone-ink); }
.chip--small { min-height: 38px; padding: 0 14px; font-size: .98rem; background: var(--tone); color: var(--tone-ink); align-self: flex-start; }
.chip--small:hover { color: var(--tone-ink); }

.list-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 30px;
}
.sort-switch {
	display: inline-flex;
	gap: 4px;
	padding: 5px;
	border-radius: 999px;
	background: var(--white);
	box-shadow: 0 3px 0 var(--lilac);
}
.sort-switch__opt {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	text-decoration: none;
}
.sort-switch__opt:hover { background: var(--paper); color: var(--ink); }
.sort-switch__opt[aria-current="true"] { background: var(--ink); color: var(--white); }

.zst-pagination { margin-top: 40px; }
.zst-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.zst-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 54px;
	height: 54px;
	padding: 0 18px;
	border: var(--outline);
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.15rem;
	text-decoration: none;
	box-shadow: 0 4px 0 var(--ink);
}
.zst-pagination .page-numbers.current { background: var(--sun); }
.zst-pagination .page-numbers.dots { border: 0; box-shadow: none; background: transparent; min-width: 0; }
.zst-pagination a.page-numbers:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); color: var(--ink); }

.empty-box {
	max-width: 620px;
	margin: 10px auto;
	padding: clamp(28px, 5vw, 44px);
	border-radius: 32px;
	background: var(--white);
	text-align: center;
	box-shadow: 0 6px 0 var(--lilac);
}
.empty-box h2 { font-size: 1.9rem; margin-bottom: 8px; }
.empty-box p { color: var(--ink-soft); font-weight: 700; }
.empty-box .btn-row { justify-content: center; }
.empty-box__icon {
	display: inline-grid;
	place-items: center;
	width: 88px;
	height: 88px;
	margin-bottom: 14px;
	border-radius: 28px;
	background: var(--paper);
	color: var(--blue);
}

.my-games [data-my-games-list]:empty { min-height: 120px; }
.my-games.is-loading [data-my-games-list] {
	min-height: 200px;
	border-radius: 28px;
	background: linear-gradient(90deg, var(--white) 0%, var(--lilac) 50%, var(--white) 100%) 0 0 / 200% 100%;
	animation: zst-shimmer 1.2s linear infinite;
}
@keyframes zst-shimmer { to { background-position: -200% 0; } }

/* --------------------------------------------------------------------------
   Blog posts, pages
   ----------------------------------------------------------------------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 26px;
}
.post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: var(--outline);
	border-radius: 26px;
	background: var(--white);
	overflow: hidden;
	box-shadow: 0 6px 0 var(--ink);
}
.post-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-card__body { padding: 20px 22px 24px; }
.post-card__title { font-size: 1.45rem; margin-bottom: 6px; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--blue); }
.post-card__excerpt { margin: 8px 0 0; color: var(--ink-soft); font-weight: 700; }
.sticky .post-card__title::before { content: "★ "; color: var(--orange); }

.entry-meta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
	color: var(--ink-soft);
	font-weight: 700;
	font-size: 1rem;
}
.entry-hero { margin-top: 28px; }
.entry-hero__img { width: 100%; border-radius: 28px; }

.entry-content { padding-block: 28px 8px; font-size: 1.15rem; }
.entry-content > * { max-width: 72ch; }
.entry-content > .alignwide { max-width: 1100px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { font-size: 2rem; margin-top: 1.4em; }
.entry-content h3 { font-size: 1.6rem; margin-top: 1.3em; }
.entry-content h4 { font-size: 1.3rem; margin-top: 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--orange); font-weight: 800; }
.entry-content img, .entry-content video { border-radius: 20px; }
.entry-content blockquote {
	margin: 1.6em 0;
	padding: 22px 26px;
	border-radius: 24px;
	background: var(--sun-tint);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.3rem;
	line-height: 1.4;
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content blockquote cite { display: block; margin-top: 8px; font-family: var(--font-body); font-size: 1rem; font-style: normal; color: var(--ink-soft); }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.entry-content code { padding: .1em .35em; border-radius: 6px; background: var(--lilac); }
.entry-content pre { padding: 18px 20px; overflow-x: auto; border-radius: 18px; background: var(--grape); color: var(--white); }
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: 18px; overflow: hidden; background: var(--white); }
.entry-content th, .entry-content td { padding: 12px 16px; text-align: left; }
.entry-content tr:nth-child(even) td { background: var(--paper); }
.entry-content th { background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 600; }
.entry-content .wp-block-button__link {
	border: var(--outline);
	border-radius: 999px;
	background: var(--blue);
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 600;
	box-shadow: var(--jelly), var(--drop);
}
.entry-content .wp-block-separator { border: 0; height: 12px; margin: 2em auto; background: radial-gradient(circle, var(--lilac) 4px, transparent 5px) 0 0 / 24px 12px repeat-x; max-width: 200px; }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, figure { margin: 1.5em 0; }
.wp-caption-text, .gallery-caption, figcaption { margin-top: 8px; color: var(--ink-soft); font-size: .95rem; font-weight: 700; text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.bypostauthor > .comment-body .fn::after { content: " ★"; color: var(--orange); }

.entry-footer { padding-bottom: var(--band-pad); }
.entry-tags a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	font-weight: 800;
	font-size: .95rem;
	text-decoration: none;
}
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.post-navigation a {
	display: block;
	height: 100%;
	padding: 18px 20px;
	border-radius: 22px;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	text-decoration: none;
}
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-label { display: block; color: var(--blue); font-size: .95rem; }
.page-links { display: flex; gap: 8px; margin: 24px 0; font-weight: 800; }

/* Comments */
.comments { padding-bottom: var(--band-pad); }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { margin-left: clamp(16px, 4vw, 44px); }
.comment-body { margin-bottom: 16px; padding: 18px 20px; border-radius: 22px; background: var(--white); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .95rem; }
.comment-meta .avatar { border-radius: 50%; }
.comment-metadata a { color: var(--ink-soft); }
.comment-form label { display: block; font-weight: 800; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: var(--outline);
	border-radius: 18px;
	background: var(--white);
	font-size: 1.1rem;
}
.comment-form .form-submit .btn { border-width: 3px; }

/* --------------------------------------------------------------------------
   404
   ----------------------------------------------------------------------- */
.lost {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 70vh;
	display: grid;
	align-items: center;
	background: var(--grape);
	color: var(--white);
	text-align: center;
}
.lost__inner { position: relative; z-index: 1; padding-block: 56px; }
.lost__code {
	margin: 0;
	color: var(--sun);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(6rem, 18vw, 11rem);
	line-height: 1;
	text-shadow: 0 5px 0 var(--ink), 0 10px 0 var(--ink);
}
.lost__title { font-size: clamp(1.9rem, 4vw, 3rem); margin: 18px 0 10px; }
.lost__text { color: #E6E0FF; font-weight: 700; font-size: 1.2rem; }
.lost .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */
.site-footer { background: var(--grape); color: #DCD5FF; }
.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 28px 48px;
	padding-block: 44px 20px;
}
.site-footer__brand { display: flex; align-items: center; gap: 18px; }
.site-logo--footer { width: 120px; flex: none; }
.site-logo--footer .site-logo__img { width: 100%; height: auto; }
.site-footer__tagline { margin: 0; max-width: 34ch; font-weight: 700; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.footer-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 16px;
	border-radius: 999px;
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.1rem;
	text-decoration: none;
}
.footer-menu a:hover { background: var(--grape-2); color: var(--sun); }
.footer-widgets {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
}
.footer-widgets .widget-title { color: var(--white); font-size: 1.3rem; }
.footer-widgets a { color: var(--sun); }
.footer-widgets ul { padding-left: 1.1em; }
.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 6px 30px;
	color: #B7AEE6;
	font-size: .98rem;
	font-weight: 700;
}
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: #DCD5FF; }
.site-footer :focus-visible { outline-color: var(--sun); }
@media (max-width: 760px) {
	.site-footer__inner { grid-template-columns: 1fr; }
	.site-footer__brand { flex-direction: column; align-items: flex-start; }
}

/* Dark surfaces get a sun-colored focus ring */
.hero :focus-visible,
.lost :focus-visible,
.page-head :focus-visible { outline-color: var(--sun); }

/* --------------------------------------------------------------------------
   Play screen (opened in a new tab)
   ----------------------------------------------------------------------- */
html.zst-play-html { margin-top: 0 !important; }
.zst-play-screen { overflow: hidden; background: var(--grape); }

.play {
	position: fixed;
	inset: 0;
	height: 100vh;
	height: 100dvh;
	background: var(--grape);
}
.play__stage { position: absolute; inset: 0; background: #000; }
.play__stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }

.play__start {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	padding: clamp(14px, 3vw, 32px);
	overflow-y: auto;
	background: radial-gradient(120% 140% at 80% 20%, var(--grape-2) 0%, var(--grape) 55%, var(--grape-deep) 100%);
}
.play__start[hidden] { display: none; }

.play__card {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	width: min(980px, 100%);
	border: 4px solid var(--ink);
	border-radius: 34px;
	background: var(--white);
	box-shadow: 0 10px 0 var(--ink), 0 24px 50px rgb(0 0 0 / .35);
	overflow: hidden;
}
.play__home {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 16px 0 10px;
	border: 2px solid var(--ink);
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 3px 0 var(--ink);
}
.play__home:hover { color: var(--blue); }
.play__preview {
	position: relative;
	display: grid;
	place-items: center;
	padding: 76px 22px 26px;
	background: var(--tone);
}
.play__img,
.play__preview .game-card__placeholder {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: var(--outline);
	border-radius: 22px;
	box-shadow: 0 6px 0 var(--ink);
}
.play__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	padding: clamp(22px, 3.5vw, 36px);
}
.play__title { margin: 0; font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.02; }
.play__desc { margin: 0; color: var(--ink-soft); font-size: 1.2rem; font-weight: 700; line-height: 1.45; }

.how-to { width: 100%; padding: 16px 20px; border-radius: 22px; background: var(--paper); }
.how-to__title { margin: 0 0 6px; font-size: 1.2rem; }
.how-to p { margin: 0 0 10px; font-weight: 700; }
.how-to p:last-child { margin: 0; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.controls li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--white);
	font-weight: 800;
	font-size: 1rem;
	box-shadow: 0 3px 0 var(--lilac);
}
.controls .zst-icon { color: var(--blue); }

.play__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.fav-btn--inline {
	position: static;
	width: auto;
	height: 60px;
	gap: 8px;
	display: inline-flex;
	padding: 0 22px;
	border: var(--outline);
	border-radius: 999px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.15rem;
	box-shadow: 0 4px 0 var(--ink);
}
.fav-btn--inline:hover { transform: translateY(-2px); }
.play__note { margin: 0; color: var(--ink-soft); font-size: .98rem; font-weight: 700; }
.play__missing { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
noscript .play__missing, .play > noscript { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; text-align: center; color: var(--white); }

.play__bar {
	position: absolute;
	top: 50%;
	left: env(safe-area-inset-left);
	z-index: 5;
	display: flex;
	align-items: center;
	transform: translateY(-50%);
	transition: opacity .3s ease;
}
.play__bar[hidden] { display: none; }
.play__bar.is-idle { opacity: .35; }
.play__bar:hover, .play__bar:focus-within { opacity: 1; }
.play__tab {
	display: grid;
	place-items: center;
	width: 30px;
	height: 64px;
	padding: 0 2px 0 0;
	border: 2px solid rgb(255 255 255 / .6);
	border-left: 0;
	border-radius: 0 16px 16px 0;
	background: rgb(27 34 102 / .8);
	color: var(--white);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.play__tab .zst-icon { transition: transform .2s ease; }
.play__tab[aria-expanded="true"] .zst-icon { transform: none; }
.play__tab:hover { color: var(--sun); }
.play__tools {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-left: 8px;
	padding: 8px;
	border-radius: 20px;
	background: rgb(27 34 102 / .8);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.play__tools[hidden] { display: none; }
.play__tool {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid rgb(255 255 255 / .55);
	border-radius: 50%;
	background: transparent;
	color: var(--white);
}
.play__tool:hover { background: var(--ink); color: var(--sun); }
.play__tool .when-open { display: none; }
.play__tool[aria-pressed="true"] .when-open { display: block; }
.play__tool[aria-pressed="true"] .when-closed { display: none; }
.play :focus-visible { outline-color: var(--sun); }

@media (max-width: 780px) {
	.play__start { place-items: start center; }
	.play__card { grid-template-columns: 1fr; border-radius: 28px; }
	.play__preview { padding: 70px 18px 18px; }
	.play__img, .play__preview .game-card__placeholder { aspect-ratio: 16 / 9; }
	.btn--play { flex: 1; }
}

/* --------------------------------------------------------------------------
   Motion preferences
   ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.game-card:hover .game-card__window,
	.cat-tile:hover { transform: none; }
}

/* Print: keep it readable */
@media print {
	.site-header, .site-footer, .hero canvas, .fav-btn { display: none !important; }
	body { background: #fff; }
}
