/* AI-slop: loud arcade stickers on a lavender table. */

:root {
	--ink: #1A1446;
	--yolk: #FFE94A;
	--pink: #FF4FA3;
	--cobalt: #2F5BFF;
	--lav: #F3F1FF;
	--paper: #FFFFFF;
	--muted: #4C4775;
	--line: 3px;
	--display: "Dela Gothic One", "Arial Black", Impact, system-ui, sans-serif;
	--body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--lav);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--yolk); padding: 10px 16px; border-radius: 10px;
	font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.ais-icon { flex: none; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px;
	background: var(--pink); color: var(--ink);
	border: var(--line) solid var(--ink); border-radius: 999px;
	box-shadow: 4px 4px 0 var(--ink);
	font-weight: 900; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-ghost { background: var(--paper); }
.btn-big { padding: 15px 26px; font-size: 19px; }
.btn-small { padding: 7px 14px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }

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

.site-header {
	background: var(--yolk);
	border-bottom: var(--line) solid var(--ink);
}
.header-row {
	display: flex; align-items: center; gap: 16px;
	padding-top: 14px; padding-bottom: 10px;
}
.brand { text-decoration: none; margin-right: auto; display: flex; align-items: center; }
.brand-mark { font-family: var(--display); font-size: 28px; letter-spacing: -.01em; line-height: 1; }
.brand-logo { max-height: 48px; width: auto; }

.header-search {
	display: flex; align-items: center; gap: 8px;
	background: var(--paper);
	border: var(--line) solid var(--ink); border-radius: 999px;
	padding: 0 14px; height: 46px;
	width: min(340px, 34vw);
}
.header-search:focus-within { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.header-search input {
	border: 0; background: none; outline: none; width: 100%;
	font: inherit; font-weight: 700; color: var(--ink);
}
.header-search input::placeholder { color: var(--muted); opacity: 1; }

.main-nav { padding-bottom: 14px; }
.nav-list {
	list-style: none; margin: 0; padding: 4px 4px 6px;
	display: flex; gap: 10px;
	overflow-x: auto; scrollbar-width: none;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list a {
	--c: var(--ink);
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 16px;
	background: var(--paper);
	border: var(--line) solid var(--ink); border-radius: 999px;
	font-weight: 900; font-size: 15px; text-decoration: none; white-space: nowrap;
	transition: background-color .12s ease;
}
.nav-list a::before {
	content: ""; width: 10px; height: 10px; border-radius: 50%;
	background: var(--c); border: 2px solid var(--ink);
}
.nav-list a:hover { background: color-mix(in srgb, var(--c) 22%, white); }
.nav-list .current-menu-item > a,
.nav-list .current-menu-item > a:hover { background: var(--c); color: var(--paper); }
.nav-list .current-menu-item > a::before { background: var(--paper); }
.nav-list .menu-item:first-child > a { --c: var(--ink); }

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

.hero {
	background: var(--yolk);
	border-bottom: var(--line) solid var(--ink);
	padding: clamp(28px, 6vw, 64px) 0 clamp(40px, 7vw, 80px);
	overflow: hidden;
}
.hero-title { display: inline-block; position: relative; }
.hero-word {
	display: block; position: relative; z-index: 1;
	font-family: var(--display); font-weight: 400;
	font-size: clamp(64px, 15vw, 190px);
	line-height: .9; letter-spacing: -.02em;
}
.hero-drip {
	display: block; position: relative; z-index: 0;
	width: 100%; height: clamp(34px, 6vw, 70px);
	margin-top: clamp(-14px, -1.4vw, -6px);
	fill: var(--pink);
	transform-origin: top center;
	animation: drip 1.4s cubic-bezier(.3, 1.4, .5, 1) .25s both;
}
@keyframes drip {
	from { transform: scaleY(.25); }
	to { transform: scaleY(1); }
}
.hero-line {
	max-width: 34ch; margin: 18px 0 28px;
	font-size: clamp(18px, 2.2vw, 22px); font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */

.section { padding: clamp(32px, 5vw, 56px) 0; }
.section-band { background: var(--paper); border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); }
.section-head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin-bottom: 20px;
}
.section-title {
	font-family: var(--display); font-weight: 400;
	font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.01em;
}
.section-title.with-icon { display: flex; align-items: center; gap: 12px; }
.title-icon {
	display: grid; place-items: center;
	width: 42px; height: 42px; border-radius: 12px;
	background: var(--c); border: var(--line) solid var(--ink);
}
.see-all {
	font-weight: 900; text-decoration: underline; text-decoration-thickness: 3px;
	text-underline-offset: 5px; text-decoration-color: var(--pink); white-space: nowrap;
}
.cat-row .see-all { text-decoration-color: var(--c); }
.cat-row + .cat-row { padding-top: 0; }
.cats .section-title { margin-bottom: 20px; }

/* ---------- Category tiles ---------- */

.cat-tiles {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.cat-tile {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
	column-gap: 14px; align-items: center;
	padding: 18px;
	background: var(--c);
	border: var(--line) solid var(--ink); border-radius: 20px;
	box-shadow: 6px 6px 0 var(--ink);
	text-decoration: none;
	transition: transform .12s ease, box-shadow .12s ease;
}
.cat-tile:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.cat-tile:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.cat-tile-icon {
	grid-row: span 2;
	display: grid; place-items: center;
	width: 60px; height: 60px; border-radius: 50%;
	background: var(--paper); border: var(--line) solid var(--ink);
}
.cat-tile-name { font-family: var(--display); font-size: 22px; line-height: 1.1; }
.cat-tile-count { font-weight: 800; font-size: 14px; }

/* ---------- Game cards ---------- */

.game-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 22px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.game-card-link {
	display: flex; flex-direction: column; height: 100%;
	background: var(--paper);
	border: var(--line) solid var(--ink); border-radius: 16px;
	box-shadow: 5px 5px 0 var(--ink);
	overflow: hidden; text-decoration: none;
	transition: transform .12s ease, box-shadow .12s ease;
}
.game-card-link:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--c); }
.game-card-link:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.game-thumb {
	position: relative; display: block; aspect-ratio: 16 / 10;
	border-bottom: var(--line) solid var(--ink);
	background: var(--c); overflow: hidden;
}
.game-thumb .thumb-img { width: 100%; height: 100%; object-fit: cover; }
.game-play-badge {
	position: absolute; right: 12px; bottom: 12px;
	display: grid; place-items: center;
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--yolk); border: var(--line) solid var(--ink);
	opacity: 0; transform: scale(.7);
	transition: opacity .15s ease, transform .15s ease;
}
.game-play-badge svg { fill: var(--ink); margin-left: 3px; }
.game-card-link:hover .game-play-badge,
.game-card-link:focus-visible .game-play-badge { opacity: 1; transform: none; }
.game-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.game-title { font-weight: 900; font-size: 18px; line-height: 1.25; }
.game-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 3px 10px; border-radius: 8px;
	background: color-mix(in srgb, var(--c, var(--pink)) 20%, white);
	font-weight: 800; font-size: 13px; text-decoration: none;
}
.plays { font-weight: 700; font-size: 14px; color: var(--muted); }

/* Generated cover when a game has no image */
.thumb-gen {
	position: absolute; inset: 0; display: block;
	background:
		radial-gradient(circle at 20% 120%, color-mix(in srgb, var(--c) 60%, var(--ink)) 0 35%, transparent 36%),
		var(--c);
}
.thumb-gen-icon {
	position: absolute; right: -18px; top: -14px;
	color: var(--ink); opacity: .22; transform: rotate(-14deg);
}
.thumb-gen-icon svg { width: 150px; height: 150px; }
.thumb-gen-mono {
	position: absolute; left: 16px; bottom: 6px;
	font-family: var(--display); font-size: 64px; line-height: 1;
	color: var(--paper); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
}

/* ---------- Listing pages ---------- */

.listing-head {
	background: var(--c);
	border-bottom: var(--line) solid var(--ink);
	padding: clamp(28px, 5vw, 48px) 0;
}
.listing-head-inner { display: flex; align-items: center; gap: 20px; }
.listing-icon {
	display: grid; place-items: center; flex: none;
	width: 84px; height: 84px; border-radius: 24px;
	background: var(--paper); border: var(--line) solid var(--ink);
	box-shadow: 5px 5px 0 var(--ink);
}
.listing-title { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 6vw, 64px); letter-spacing: -.01em; }
.listing-blurb { margin: 6px 0 0; font-weight: 800; font-size: 18px; max-width: 50ch; }
.result-count { margin: 0; font-weight: 800; }
.sort {
	display: inline-flex; padding: 4px;
	background: var(--paper); border: var(--line) solid var(--ink); border-radius: 999px;
}
.sort a { padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; text-decoration: none; }
.sort a[aria-current="true"] { background: var(--ink); color: var(--paper); }

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	background: var(--paper); border: var(--line) solid var(--ink); border-radius: 12px;
	font-weight: 900; text-decoration: none;
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); }

.empty {
	max-width: 560px; margin: 0 auto; text-align: center;
	padding: 40px 28px;
	background: var(--paper); border: var(--line) dashed var(--ink); border-radius: 20px;
}
.empty h1, .empty h2 { font-family: var(--display); font-weight: 400; font-size: 28px; margin-bottom: 8px; }
.empty p { margin: 0 0 20px; }
.empty .btn { margin: 4px 6px; }
.big-404 { font-family: var(--display); font-size: clamp(90px, 20vw, 160px); line-height: 1; margin: 0 0 10px !important; color: var(--pink); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }

/* ---------- Game page ---------- */

.game-page { padding: 28px 0 40px; }
.game-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.chip-link { font-size: 14px; padding: 5px 12px; border: 2px solid var(--ink); }
.game-page-title { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5vw, 54px); letter-spacing: -.01em; }

.player {
	--r: 1.7778;
	position: relative;
	width: min(100%, calc(78vh * var(--r)));
	aspect-ratio: var(--r);
	margin: 0 auto;
	background: var(--ink);
	border: var(--line) solid var(--ink); border-radius: 18px;
	box-shadow: 8px 8px 0 var(--c);
	overflow: hidden;
}
.player.is-fill { width: 100%; aspect-ratio: auto; height: 80vh; }
.player iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.player:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.fake-full { overflow: hidden; }
.fake-full .player {
	position: fixed; inset: 0; z-index: 9999;
	width: 100vw; height: 100dvh; aspect-ratio: auto;
	border: 0; border-radius: 0; box-shadow: none;
	padding-top: env(safe-area-inset-top);
	background: var(--ink);
}
.player-exit {
	display: none;
	position: absolute; z-index: 2;
	top: calc(10px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right));
	width: 44px; height: 44px; padding: 0;
	place-items: center;
	background: var(--yolk); color: var(--ink);
	border: var(--line) solid var(--ink); border-radius: 50%;
	box-shadow: 3px 3px 0 var(--ink);
	cursor: pointer;
}
.fake-full .player-exit,
.player:fullscreen .player-exit { display: grid; }

.player-start {
	position: absolute; inset: 0; width: 100%; height: 100%;
	padding: 0; border: 0; background: none; cursor: pointer;
	display: grid; place-items: center;
}
.player-poster { position: absolute; inset: 0; }
.player-poster .thumb-img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) brightness(.7); }
.player-poster .thumb-gen-mono { font-size: clamp(56px, 9vw, 110px); left: 24px; bottom: 18px; }
.player-poster .thumb-gen-icon svg { width: 320px; height: 320px; }
.player-start-btn {
	position: relative;
	display: inline-flex; align-items: center; gap: 12px;
	padding: 16px 34px 16px 28px;
	background: var(--yolk);
	border: var(--line) solid var(--ink); border-radius: 999px;
	box-shadow: 6px 6px 0 var(--ink);
	font-family: var(--display); font-size: clamp(22px, 3vw, 30px); line-height: 1;
	transition: transform .12s ease, box-shadow .12s ease;
}
.player-start-btn svg { fill: var(--ink); }
.player-start:hover .player-start-btn { transform: translate(-2px, -2px) scale(1.03); box-shadow: 8px 8px 0 var(--ink); }
.player-start:active .player-start-btn { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.player-start:focus-visible { outline: none; }
.player-start:focus-visible .player-start-btn { outline: 4px solid var(--cobalt); outline-offset: 4px; }

.player-missing {
	position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
	color: var(--paper); font-weight: 800; text-align: center;
}
.player-missing p { margin: 0; }

.player-bar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	width: min(100%, calc(78vh * 1.7778)); margin: 22px auto 0;
}
.player-info { margin: 0; }
.player-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.game-about {
	margin: 36px auto 0; padding: 24px 28px;
	background: var(--paper); border: var(--line) solid var(--ink); border-radius: 18px;
}
.game-about h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin-bottom: 8px; }

/* ---------- Prose (pages, descriptions) ---------- */

.prose { max-width: 72ch; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 52px); margin-bottom: 24px; }
.post-item { margin-bottom: 28px; }

/* ---------- Donations ---------- */

.donate {
	position: relative; overflow: hidden;
	margin-top: 24px;
	padding: clamp(40px, 6vw, 72px) 0 28px;
	background: var(--pink);
	border-top: var(--line) solid var(--ink);
}
.donate + .site-footer { margin-top: 0; border-top: var(--line) solid var(--ink); }
.donate-inner {
	position: relative; z-index: 1;
	display: grid; gap: clamp(24px, 4vw, 48px);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center;
}
.donate-big-heart { display: block; width: 64px; height: 64px; margin-bottom: 14px; }
.donate-big-heart svg {
	width: 100%; height: 100%; overflow: visible;
	fill: #fff; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round;
	transform-origin: center; animation: beat 2.4s ease-in-out infinite;
}
@keyframes beat {
	0%, 40%, 100% { transform: scale(1); }
	10% { transform: scale(1.14); }
	20% { transform: scale(1); }
	30% { transform: scale(1.1); }
}
.donate-title { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; max-width: 16ch; }
.donate-text { margin: 14px 0 0; max-width: 46ch; font-weight: 700; font-size: 18px; }

.donate-heart { position: absolute; z-index: 0; display: block; }
.donate-heart svg { width: 100%; height: 100%; overflow: visible; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.donate-heart.h1 { width: 46px; height: 46px; top: 18px; right: 6%; transform: rotate(14deg); }
.donate-heart.h1 svg { fill: var(--yolk); }
.donate-heart.h2 { width: 26px; height: 26px; top: 46%; left: 2%; transform: rotate(-18deg); }
.donate-heart.h2 svg { fill: #fff; }
.donate-heart.h3 { width: 34px; height: 34px; bottom: 30px; right: 3%; transform: rotate(-10deg); }
.donate-heart.h3 svg { fill: #fff; }
.donate-heart.h4 { width: 20px; height: 20px; top: 26px; left: 44%; transform: rotate(20deg); }
.donate-heart.h4 svg { fill: var(--yolk); }
.donate-heart.h5 { width: 30px; height: 30px; top: 62%; left: 44%; transform: rotate(8deg); }
.donate-heart.h5 svg { fill: #FF8FC6; }

.wallets { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.wallet {
	padding: 16px 18px;
	background: var(--paper);
	border: var(--line) solid var(--ink); border-radius: 18px;
	box-shadow: 5px 5px 0 var(--ink);
}
.wallet-head { display: flex; align-items: center; gap: 10px; }
.wallet-logo {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
	background: var(--coin); color: #fff; border: var(--line) solid var(--ink);
}
.wallet-name { font-weight: 900; font-size: 18px; }
.wallet-tick { color: var(--muted); font-weight: 800; }
.wallet-addr {
	margin: 12px 0;
	padding: 10px 12px;
	background: var(--lav); border-radius: 10px;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; font-weight: 600;
	line-height: 1.45; word-break: break-all; user-select: all; -webkit-user-select: all;
}
.wallet-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-copy { background: var(--yolk); }
.btn-copy.is-copied { background: #17B26A; color: #fff; }
.wallet-open { font-weight: 800; font-size: 14px; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.donate-note { position: relative; z-index: 1; margin-top: 22px; margin-bottom: 0; font-size: 14px; font-weight: 700; }

@media (max-width: 820px) {
	.donate-inner { grid-template-columns: 1fr; }
	.wallet-addr { font-size: 14px; }
	.donate-heart.h2 { display: none; }
}

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

.site-footer { background: var(--ink); color: var(--paper); padding: 44px 0 20px; margin-top: 24px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-mark { font-family: var(--display); font-size: 34px; color: var(--yolk); text-decoration: none; line-height: 1; }
.footer-grid p { margin: 10px 0 0; max-width: 40ch; color: #D9D6F2; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; max-width: 520px; }
.footer-list a { font-weight: 800; text-decoration: none; }
.footer-list a:hover { color: var(--yolk); text-decoration: underline; }
.footer-base { margin-top: 36px; padding-top: 16px; border-top: 2px solid rgba(255, 255, 255, .15); font-size: 14px; color: #B9B5DC; }

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
	body { font-size: 16px; }
	.header-row { flex-wrap: wrap; }
	.header-search { order: 3; width: 100%; }
	.btn-random { padding: 8px 14px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
	.cat-tiles { grid-template-columns: 1fr 1fr; gap: 14px; }
	.cat-tile { grid-template-columns: 1fr; padding: 14px; row-gap: 8px; }
	.cat-tile-icon { grid-row: auto; width: 50px; height: 50px; }
	.cat-tile-name { font-size: 19px; }
	.game-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.game-card-body { padding: 10px 12px 12px; }
	.game-title { font-size: 15px; }
	.thumb-gen-mono { font-size: 44px; left: 10px; }
	.thumb-gen-icon svg { width: 100px; height: 100px; }
	.listing-icon { width: 64px; height: 64px; border-radius: 18px; }
	.listing-icon svg { width: 30px; height: 30px; }
	.player { width: 100%; border-radius: 14px; box-shadow: 5px 5px 0 var(--c); }
	.player.is-fill { height: 70vh; }
}
@media (max-width: 380px) {
	.game-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
