:root {
	color-scheme: light;
	--paper: #f5f3ec;
	--ink: #20251f;
	--muted: #60665d;
	--line: #dcded5;
	--coral: #f16d50;
	--coral-ink: #9e3e2e;
	--lime: #d8f06c;
	--blue: #b9d8ee;
	--serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
	--sans: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.topbar, main, .footer { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

.topbar {
	height: 76px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 17px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; background: var(--ink); color: var(--lime); font-size: 12px; transform: rotate(-5deg); }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-name { line-height: 1; }
.brand-byline { color: var(--muted); font-size: 9px; font-weight: 650; line-height: 1; }
.studio-mark { width: 32px; height: 32px; flex: 0 0 auto; }
.brand-accent { color: var(--coral-ink); }
.feedback-link { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.feedback-link:hover { color: var(--ink); text-decoration: underline; }
.top-note, .eyebrow, .art-label, .card-meta, .footer, .stamp-top, .stamp-bottom, .snake-score { font-size: 10px; font-weight: 750; letter-spacing: 0.08em; }
.top-note { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #73a94d; }

.intro { display: flex; align-items: center; justify-content: space-between; padding: 66px 0 58px; }
.eyebrow { margin: 0 0 16px; color: var(--coral-ink); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 17px; font: 500 62px/0.98 var(--serif); letter-spacing: 0; }
h1 span { color: var(--muted); font-style: italic; }
.intro-text { margin: 0; color: var(--muted); font-size: 15px; }
.intro-stamp { width: 116px; height: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid #b2baaa; border-radius: 50%; color: #58674b; transform: rotate(9deg); }
.stamp-top, .stamp-bottom { font-size: 8px; }
.stamp-count { color: var(--coral-ink); font: 500 43px/1 var(--serif); }

.catalog { padding: 30px 0 72px; border-top: 1px solid var(--line); }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.catalog-heading .eyebrow { margin-bottom: 8px; }
h2 { margin-bottom: 0; font: 500 32px/1.1 var(--serif); letter-spacing: 0; }
.search-box { width: 244px; height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid #cfd2c8; background: #faf9f5; }
.search-icon { width: 14px; height: 14px; position: relative; border: 1.5px solid var(--muted); border-radius: 50%; flex: 0 0 auto; }
.search-icon::after { content: ""; position: absolute; right: -4px; bottom: -2px; width: 6px; border-top: 1.5px solid var(--muted); transform: rotate(45deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 13px var(--sans); }
.search-box input::placeholder { color: var(--muted); }
.search-box:focus-within { outline: 2px solid var(--coral-ink); outline-offset: 2px; }
kbd { min-width: 18px; padding: 2px 5px; border: 1px solid var(--line); color: var(--muted); font: 11px var(--sans); text-align: center; }

.catalog-tools { display: flex; justify-content: space-between; align-items: center; margin: 27px 0 17px; }
.filters { display: flex; gap: 7px; }
.filter-button { min-height: 32px; padding: 0 12px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 600 12px var(--sans); cursor: pointer; }
.filter-button span { margin-left: 4px; color: var(--muted); font-size: 10px; }
.filter-button:hover { color: var(--ink); }
.filter-button.is-active { border-color: #d4d7cc; background: #ebece4; color: var(--ink); }
.game-count { margin: 0; color: var(--muted); font-size: 11px; }

.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.game-card { min-width: 0; border: 1px solid #dedfd7; background: #fbfaf6; text-decoration: none; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.game-card:hover { transform: translateY(-4px); border-color: #b5b9ab; box-shadow: 0 9px 20px #28301b12; }
.game-card:focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 3px; }
.game-card[hidden] { display: none; }
.game-art { height: 224px; position: relative; display: grid; place-items: center; overflow: hidden; }
.mine-art { background: #e9a28a; }
.snake-art { background: var(--lime); }
.tic-art { background: var(--blue); }
.hangman-art { background: #c8d8a9; }
.art-label { position: absolute; top: 15px; left: 16px; color: #31382e; font-size: 9px; }
.art-scribble { position: absolute; right: 16px; bottom: 16px; color: #384038; font: italic 16px/0.95 var(--serif); text-align: right; transform: rotate(-7deg); }

.mine-board { display: grid; grid-template-columns: repeat(5, 29px); gap: 4px; transform: rotate(-6deg); }
.mine-board i { width: 29px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #303932; background: #f2c0ad; color: #357196; font: 700 13px var(--sans); font-style: normal; box-shadow: 2px 2px 0 #222a2340; }
.mine-board i.revealed { border-color: #d78d75; background: #f7d4c6; box-shadow: none; }
.mine-board i.mine { position: relative; background: #26352e; border-color: #26352e; }
.mine-board i.mine::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 -7px 0 -3px var(--coral), 0 7px 0 -3px var(--coral), 7px 0 0 -3px var(--coral), -7px 0 0 -3px var(--coral); }
.mine-board i.flag { color: #f9eee3; background: #d65d45; }

.snake-board { width: 164px; height: 120px; position: relative; border: 2px solid #29352a; background-image: linear-gradient(#23312316 1px, transparent 1px), linear-gradient(90deg, #23312316 1px, transparent 1px); background-size: 20px 20px; transform: rotate(4deg); }
.snake-pixel { width: 20px; height: 20px; position: absolute; background: #26382a; }
.snake-a { left: 40px; top: 60px; }.snake-b { left: 60px; top: 60px; }.snake-c { left: 80px; top: 60px; }.snake-d { left: 80px; top: 40px; }.snake-e { left: 100px; top: 40px; }
.snake-food { width: 11px; height: 11px; position: absolute; left: 120px; top: 80px; border-radius: 50%; background: var(--coral); box-shadow: 4px -4px 0 -2px #527044; }
.snake-score { position: absolute; bottom: 16px; left: 16px; color: #34412f; font-size: 9px; }
.snake-score b { margin-left: 4px; font-size: 12px; }

.tic-board { width: 142px; height: 142px; display: grid; grid-template-columns: repeat(3, 1fr); transform: rotate(-5deg); }
.tic-board i { display: grid; place-items: center; border-right: 2px solid #253944; border-bottom: 2px solid #253944; color: #253944; font: 500 32px var(--serif); font-style: normal; }
.tic-board i:nth-child(3n) { border-right: 0; }.tic-board i:nth-child(n+7) { border-bottom: 0; }
.tic-board .mark-x { color: #e65f47; }.tic-board .mark-o { color: #477491; }
.preview-hangman { width: 112px; height: 144px; position: relative; transform: rotate(-3deg); }
.preview-post, .preview-beam, .preview-rope, .preview-head, .preview-body, .preview-arm-left, .preview-arm-right, .preview-leg-left, .preview-leg-right { position: absolute; display: block; background: #344438; }
.preview-post { width: 4px; height: 126px; left: 19px; bottom: 2px; }.preview-beam { width: 70px; height: 4px; left: 19px; top: 14px; }.preview-rope { width: 3px; height: 18px; left: 86px; top: 16px; }
.preview-head { width: 25px; height: 25px; left: 75px; top: 34px; border: 3px solid #344438; border-radius: 50%; background: transparent; }.preview-body { width: 3px; height: 37px; left: 86px; top: 59px; }
.preview-arm-left, .preview-arm-right, .preview-leg-left, .preview-leg-right { width: 3px; height: 23px; transform-origin: top; }.preview-arm-left { left: 85px; top: 66px; transform: rotate(45deg); }.preview-arm-right { left: 87px; top: 66px; transform: rotate(-45deg); }.preview-leg-left { left: 85px; top: 94px; transform: rotate(35deg); }.preview-leg-right { left: 87px; top: 94px; transform: rotate(-35deg); }

.card-info { padding: 18px 18px 16px; }
.card-title-line { display: flex; align-items: center; justify-content: space-between; }
h3 { margin: 0; font: 500 22px/1.15 var(--serif); }
.card-arrow { color: var(--muted); font-size: 18px; transition: transform 180ms ease; }
.game-card:hover .card-arrow { color: var(--coral-ink); transform: translate(2px, -2px); }
.card-info > p { margin: 8px 0 19px; color: var(--muted); font-size: 12px; }
.card-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; }
.tag { padding: 5px 7px; color: #283129; }
.tag-puzzle { background: #f4d5ca; }.tag-arcade { background: #e3edb9; }
.empty-state { padding: 45px 0; color: var(--muted); text-align: center; }
.footer { min-height: 56px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0; text-decoration: none; white-space: nowrap; }
.feedback-main { display: grid; grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr); align-items: start; gap: clamp(36px, 6vw, 76px); padding: 64px 0 72px; }
.feedback-intro { max-width: 320px; margin: 30px 0 0; }
.feedback-intro .eyebrow { margin-bottom: 12px; }
.feedback-intro h1 { max-width: 9ch; margin-bottom: 12px; font-size: 44px; line-height: 1.04; }
.feedback-intro > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.feedback-form { min-width: 0; }
.feedback-embed { display: block; width: 100%; height: 960px; border: 1px solid var(--line); background: #fff; }
.feedback-open { margin: 0 0 13px; font-size: 12px; text-align: right; }
.feedback-open a { color: var(--muted); font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
	.topbar, main, .footer { width: min(100% - 40px, 560px); }
	.feedback-main { grid-template-columns: 1fr; gap: 26px; padding: 42px 0 52px; }
	.feedback-intro { max-width: none; margin: 0; }
	.intro { padding: 52px 0 43px; }
	h1 { font-size: 54px; }
	.intro-stamp { width: 92px; height: 92px; }
	.stamp-count { font-size: 35px; }
	.game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.game-art { height: 190px; }
}

@media (max-width: 520px) {
	.topbar, main, .footer { width: calc(100% - 32px); }
	.topbar { height: 64px; }
	.top-note { font-size: 8px; }
	.intro { align-items: flex-start; padding: 45px 0 37px; }
	h1 { font-size: 46px; }
	.intro-text { max-width: 220px; font-size: 13px; line-height: 1.5; }
	.intro-stamp { width: 70px; height: 70px; margin-top: 23px; }
	.stamp-top, .stamp-bottom { font-size: 6px; }
	.stamp-count { font-size: 27px; }
	.catalog { padding-top: 25px; }
	.catalog-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
	h2 { font-size: 29px; }
	.search-box { width: 100%; }
	.catalog-tools { margin: 20px 0 14px; }
	.filters { gap: 0; }
	.filter-button { padding-inline: 9px; font-size: 11px; }
	.game-grid { grid-template-columns: 1fr; gap: 14px; }
	.game-art { height: 204px; }
	.card-info { padding: 16px; }
	.footer { flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; padding-block: 10px; font-size: 8px; }
	.feedback-main { padding-top: 34px; }
	.feedback-intro h1 { font-size: 38px; }
	.feedback-embed { height: 960px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
