/* ==========================================================================
   Nekosekai — marketing site
   Palette and type are pulled from the cover key art: parchment cream,
   the deep calligraphic blue of the wordmark, and its warm gold accents.
   No external fonts, no CDN, no build step — this folder is the website.
   ========================================================================== */

:root {
	--cream:      #f8f4ea;
	--cream-deep: #f0e9d9;
	--paper:      #fffdf8;
	--ink:        #241f1b;
	--ink-soft:   #5b5147;
	--blue:       #2b5ca8;
	--blue-deep:  #1c3f7a;
	--blue-pale:  #dfe8f5;
	--gold:       #c39a46;
	--gold-pale:  #f0e3c4;
	--rule:       #e2d8c4;

	--maxw: 1180px;
	--radius: 14px;
	--shadow-sm: 0 1px 2px rgba(36, 31, 27, .06), 0 4px 12px rgba(36, 31, 27, .05);
	--shadow-md: 0 2px 6px rgba(36, 31, 27, .08), 0 18px 44px rgba(36, 31, 27, .10);

	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
/* Keep the sticky header from covering the top of a jumped-to section. */
.section, .march { scroll-margin-top: 84px; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--cream-deep); }
.eyebrow {
	font: 600 .74rem/1 var(--sans);
	letter-spacing: .18em; text-transform: uppercase;
	color: var(--gold); margin-bottom: .9rem;
}
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* --------------------------------------------------------------- buttons */
.btn {
	display: inline-flex; align-items: center; gap: .55rem;
	padding: .82rem 1.5rem;
	border-radius: 999px;
	font: 600 1rem/1 var(--sans);
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-deep); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--blue-deep); border-color: #c9d6ea; }
.btn--ghost:hover { background: var(--blue-pale); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.06rem; }
.btn .icon { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

/* ------------------------------------------------------------------- nav */
.nav {
	position: sticky; top: 0; z-index: 50;
	background: rgba(248, 244, 234, .88);
	backdrop-filter: saturate(150%) blur(10px);
	border-bottom: 1px solid var(--rule);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.nav__brand {
	font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
	color: var(--blue-deep); text-decoration: none; letter-spacing: .01em;
	display: flex; align-items: center; gap: .55rem;
}
.nav__brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav__links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav__links a {
	color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500;
	padding: .3rem 0; border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--gold); }
.nav__cta { display: flex; align-items: center; gap: .6rem; }
.nav__icon {
	display: grid; place-items: center; width: 38px; height: 38px;
	border-radius: 50%; color: var(--ink-soft); border: 1px solid var(--rule);
}
.nav__icon:hover { color: var(--ink); background: var(--paper); }
.nav__icon svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 860px) {
	.nav__links { display: none; }
	.nav__cta .btn span { display: none; }
}

/* ----------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding-top: 2rem; }
/* The key art carries the wordmark, so it is shown as a banner rather than whole —
   at full 4:3 it filled the entire fold and pushed the tagline and the wishlist
   button below it.
   The frame's ratio matches whichever file is served (see the <picture> in the
   markup): a 1.90:1 banner crop on desktop, the complete 4:3 artwork on phones.
   Because the file already has the right shape, the image fills the frame exactly
   — nothing is cropped by CSS and no margin bars appear at any width. If you
   change the crop, change this ratio to match it. */
.hero__frame {
	aspect-ratio: 1180 / 620;
	overflow: hidden;
	background: #f7ede3;
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	border: 1px solid var(--rule);
	margin-bottom: 2.2rem;
}
.hero__frame picture { display: contents; }
.hero__art {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.hero__copy { text-align: center; }
/* The name is set in the art itself; the text h1 stays for search engines and
   screen readers without repeating it on screen. */
.sr-only {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.hero__tag {
	font-family: var(--serif);
	font-size: clamp(1.7rem, 3.6vw, 2.6rem);
	color: var(--blue-deep); margin-bottom: .9rem;
}
.hero__sub { max-width: 60ch; margin: 0 auto 2rem; color: var(--ink-soft); font-size: 1.1rem; }
.hero__actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 1.1rem; font-size: .88rem; color: var(--ink-soft); }
.hero__note b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------- desktop mockup band */
.desktop {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid #cdd6e4;
	box-shadow: var(--shadow-md);
	background: linear-gradient(170deg, #cddcf0 0%, #b9cbe6 45%, #a9bcda 100%);
}
.desktop__glow {
	position: absolute; inset: 0;
	background: radial-gradient(120% 80% at 78% 8%, rgba(255,255,255,.55), transparent 60%);
}
.win {
	position: absolute;
	background: #fdfdfd;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 9px;
	box-shadow: 0 10px 34px rgba(20, 30, 50, .22);
	overflow: hidden;
}
.win__bar {
	height: 26px; background: #f0f0f3; border-bottom: 1px solid #e2e2e6;
	display: flex; align-items: center; gap: 5px; padding: 0 9px;
}
.win__dot { width: 8px; height: 8px; border-radius: 50%; background: #cfcfd6; }
.win__body { padding: 12px 14px; }
.win__line { height: 7px; border-radius: 4px; background: #e8e8ee; margin-bottom: 8px; }
.win__line--code { background: #dfe6f4; }
.win--a { left: 5%;  top: 9%;  width: 46%; height: 52%; }
.win--b { right: 6%; top: 22%; width: 40%; height: 46%; }
@media (max-width: 700px) { .win--b { display: none; } .win--a { width: 70%; } }

.desktop__strip {
	position: absolute; left: 50%; transform: translateX(-50%);
	bottom: 6.5%;
	width: min(78%, 900px);
	filter: drop-shadow(0 6px 14px rgba(15, 25, 45, .3));
	image-rendering: pixelated;
}
.taskbar {
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 6.2%; min-height: 26px;
	background: rgba(28, 32, 40, .93);
	display: flex; align-items: center; justify-content: center; gap: 10px;
}
.taskbar__ico { width: 13px; height: 13px; border-radius: 3px; background: #6d7787; }
.taskbar__ico--live { background: var(--gold); }
.taskbar__clock {
	position: absolute; right: 12px; color: #c7cdd8;
	font: 500 9px/1 var(--sans); letter-spacing: .02em;
}
.mock-caption { margin-top: 1rem; font-size: .9rem; color: var(--ink-soft); text-align: center; }

/* -------------------------------------------------------------- features */
.features { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); margin-top: 3rem; }
.feature {
	background: var(--paper); border: 1px solid var(--rule);
	border-radius: var(--radius); padding: 1.7rem 1.5rem;
	box-shadow: var(--shadow-sm);
}
.feature__mark {
	width: 38px; height: 38px; border-radius: 10px;
	background: var(--blue-pale); color: var(--blue-deep);
	display: grid; place-items: center; margin-bottom: 1rem;
	font-size: 1.15rem;
}
.feature h3 { margin-bottom: .45rem; }
.feature p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* ------------------------------------------------------ pixel sprite kit */
.sprite {
	background-repeat: no-repeat;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}
/* Frame geometry mirrors CatEntity/EnemyEntity SPRITE_CONFIGS in the game,
   scaled 2x. Each sheet is a single row read left to right. */
.sprite--pawladin   { width: 252px; height: 252px; background-image: url("assets/sprites/pawladin-run.png");   background-size: 2268px 252px; animation: run-pawladin 1.1s steps(9) infinite; }
.sprite--purrserker { width: 256px; height: 256px; background-image: url("assets/sprites/purrserker-run.png"); background-size: 7424px 256px; animation: run-purrserker 1.6s steps(18) infinite; }
.sprite--cateye     { width: 240px; height: 240px; background-image: url("assets/sprites/cateye-run.png");     background-size: 6480px 480px; background-position-y: -240px; animation: run-cateye 1.6s steps(18) infinite; transform: scaleX(-1); }
.sprite--magical    { width: 210px; height: 210px; background-image: url("assets/sprites/magicalcat-run.png"); background-size: 1260px 210px; animation: run-magical 0.8s steps(6) infinite; }
.sprite--rat        { width: 150px; height: 150px; background-image: url("assets/sprites/rat-walk.png");       background-size: 600px 150px;  animation: run-rat 0.6s steps(4) infinite; }
.sprite--boss       { width: 128px; height: 128px; background-image: url("assets/sprites/boss-walk.png");      background-size: 1152px 128px; animation: run-boss 1.1s steps(9) infinite; }

@keyframes run-pawladin   { to { background-position-x: -2268px; } }
@keyframes run-purrserker { to { background-position-x: -4608px; } }
@keyframes run-cateye     { to { background-position-x: -4320px; } }
@keyframes run-magical    { to { background-position-x: -1260px; } }
@keyframes run-rat        { to { background-position-x: -600px; } }
@keyframes run-boss       { to { background-position-x: -1152px; } }

/* ---------------------------------------------------------- class cards */
.classes { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 3rem; }
.class {
	background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
	padding: 1.2rem 1.4rem 1.5rem; text-align: center; box-shadow: var(--shadow-sm);
}
.class__stage {
	height: 200px; display: grid; place-items: center; overflow: hidden;
	background: linear-gradient(180deg, #eef3fb 0%, #e4ecf7 100%);
	border-radius: 10px; margin-bottom: 1rem; border: 1px solid #e6ecf5;
}
.class__role {
	display: inline-block; font: 600 .68rem/1 var(--sans);
	letter-spacing: .14em; text-transform: uppercase;
	color: var(--blue-deep); background: var(--blue-pale);
	padding: .34rem .6rem; border-radius: 999px; margin-bottom: .6rem;
}
.class h3 { margin-bottom: .35rem; }
.class p { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.class--wip { opacity: .72; }
.class--wip .class__stage { background: repeating-linear-gradient(45deg, #eee9dd, #eee9dd 9px, #e7e1d2 9px, #e7e1d2 18px); }
.class--wip .class__role { background: var(--gold-pale); color: #8a6a1e; }
.class__soon { font: 600 .95rem/1 var(--sans); color: #9b8a63; }

/* ------------------------------------------------------------ march band */
.march {
	overflow: hidden; border-block: 1px solid var(--rule);
	background: linear-gradient(180deg, #eaf1fa, #dde7f5);
	padding: .4rem 0 0;
}
.march__row { display: flex; align-items: flex-end; gap: 2.2rem; width: max-content; animation: march 26s linear infinite; }
.march__row > * { flex: none; }
@keyframes march { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------- screenshots */
.shots { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 2.8rem; }
.shot {
	background: #16130f; border: 1px solid #cfc6b2; border-radius: 12px;
	overflow: hidden; box-shadow: var(--shadow-sm);
	margin: 0;
}
.shot img { width: 100%; image-rendering: pixelated; }
.shot figcaption {
	padding: .7rem .95rem; font-size: .87rem; color: var(--ink-soft);
	background: var(--paper); border-top: 1px solid var(--rule);
}
.shot--wide { grid-column: 1 / -1; }

/* --------------------------------------------------------------- trailer */
.trailer {
	aspect-ratio: 16 / 9; border-radius: var(--radius);
	background: linear-gradient(160deg, #26313f, #161d27);
	display: grid; place-items: center; text-align: center;
	color: #e6ecf5; border: 1px solid #cfc6b2; box-shadow: var(--shadow-md);
	margin-top: 2.5rem;
}
.trailer__play {
	width: 66px; height: 66px; border-radius: 50%;
	background: rgba(255, 255, 255, .1); border: 2px solid rgba(255,255,255,.35);
	display: grid; place-items: center; margin: 0 auto 1rem;
}
.trailer__play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.trailer p { margin: 0; opacity: .75; font-size: .95rem; }
.trailer strong { font-family: var(--serif); font-size: 1.3rem; display: block; margin-bottom: .3rem; }

/* ------------------------------------------------------------ wishlist cta */
.cta {
	background: linear-gradient(165deg, var(--blue) 0%, var(--blue-deep) 100%);
	color: #fff; text-align: center;
	padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta h2 { color: #fff; margin-bottom: .8rem; }
.cta p { color: rgba(255, 255, 255, .82); max-width: 52ch; margin: 0 auto 2rem; }
.cta .btn--primary { background: #fff; color: var(--blue-deep); }
.cta .btn--primary:hover { background: var(--gold-pale); }
.cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.cta .btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--cream-deep); border-top: 1px solid var(--rule); padding: 3rem 0 2.2rem; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer__brand { font-family: var(--serif); font-size: 1.35rem; color: var(--blue-deep); margin-bottom: .35rem; }
.footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer__links a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.footer__links a:hover { color: var(--ink); text-decoration: underline; }
.footer__legal {
	margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--rule);
	font-size: .84rem; color: var(--ink-soft);
	display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ------------------------------------------------------------ press page */
.press-hero { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--rule); }
.facts { width: 100%; border-collapse: collapse; margin-top: 1.6rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.facts th, .facts td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--rule); font-size: .97rem; vertical-align: top; }
.facts th { width: 220px; color: var(--ink-soft); font-weight: 600; background: #fbf8f1; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.dl-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1.8rem; }
.dl {
	display: block; text-decoration: none; color: inherit;
	background: var(--paper); border: 1px solid var(--rule); border-radius: 12px;
	overflow: hidden; box-shadow: var(--shadow-sm);
}
.dl:hover { box-shadow: var(--shadow-md); }
.dl img { aspect-ratio: 4/3; object-fit: cover; background: #efe9dc; }
.dl span { display: block; padding: .75rem .95rem; font-size: .92rem; }
.dl b { display: block; font-weight: 600; }
.dl em { font-style: normal; color: var(--ink-soft); font-size: .85rem; }

.note {
	background: var(--gold-pale); border: 1px solid #e3d3a8; border-left: 4px solid var(--gold);
	border-radius: 10px; padding: 1rem 1.2rem; font-size: .93rem; color: #6b5620;
}
.note p:last-child { margin: 0; }

.bullets { padding-left: 1.15rem; color: var(--ink-soft); }
.bullets li { margin-bottom: .5rem; }
.bullets b { color: var(--ink); }

/* ------------------------------------------------------------- narrow ---
   Phone widths. The desktop mockup gets a taller box (the strip has to stay
   legible), and the press fact table stops being a two-column grid, which
   would otherwise force a horizontal scrollbar on the whole page. */
@media (max-width: 640px) {
	body { font-size: 16px; }
	/* Phones are served the complete artwork (see the <picture> source), so the
	   frame switches to its 4:3 ratio to match. */
	.hero__frame { aspect-ratio: 4 / 3; }
	.desktop { aspect-ratio: 4 / 3; }
	.desktop__strip { width: 92%; bottom: 9%; }
	.win--a { left: 6%; top: 7%; width: 78%; height: 42%; }
	.facts th, .facts td { display: block; width: auto; }
	.facts th { border-bottom: 0; padding-bottom: .15rem; background: none; }
	.facts td { padding-top: 0; }
	.footer__grid { flex-direction: column; gap: 1.4rem; }
	.class__stage { height: 168px; }
	.sprite--pawladin   { width: 168px; height: 168px; background-size: 1512px 168px; animation-name: run-pawladin-sm; }
	.sprite--purrserker { width: 192px; height: 192px; background-size: 5568px 192px; animation-name: run-purrserker-sm; }
	.sprite--cateye     { width: 168px; height: 168px; background-size: 4536px 336px; background-position-y: -168px; animation-name: run-cateye-sm; }
	.sprite--magical    { width: 150px; height: 150px; background-size: 900px 150px;  animation-name: run-magical-sm; }
}
@keyframes run-pawladin-sm   { to { background-position-x: -1512px; } }
@keyframes run-purrserker-sm { to { background-position-x: -3456px; } }
@keyframes run-cateye-sm     { to { background-position-x: -3024px; } }
@keyframes run-magical-sm    { to { background-position-x: -900px; } }

/* Links whose real destination does not exist yet (the X account). They keep
   their shape so the layout is final, but they do not navigate — pointing an
   investor-facing page at an unowned handle is a real risk if someone else
   registers it. Delete this rule and restore the hrefs once the account exists. */
.is-placeholder {
	pointer-events: none;
	opacity: .5;
	cursor: default;
}
