@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@500;700&family=Archivo:wght@400;500;700&display=swap');

/* The page wears the game's clothes: the act-one palette, chunky bordered
   panels, hard drop shadows, and the game's own sprites as decoration. */

:root {
	--bg: #140a24;
	--panel: #251853;
	--panel-hi: #342278;
	--sunk: #120a2c;
	--ink: #fdf6ff;
	--muted: #a99cd0;
	--pink: #ff2e88;
	--cyan: #3cf0ff;
	--lime: #b6ff3c;
	--gold: #ffd23c;
	--violet: #b06bff;
	--pixel: 'Pixelify Sans', ui-monospace, monospace;
	--sans: 'Archivo', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.62;
}

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

.page { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------------------------------------------------------------- pixel type */

h1, h2, .pixel {
	font-family: var(--pixel);
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.1;
	text-shadow: 3px 3px 0 rgba(0, 0, 0, .55);
	margin: 0;
}
h1 { font-size: clamp(38px, 6.4vw, 68px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 18px; }
h2 .accent { color: var(--pink); }

p { margin: 0 0 16px; }
p.big { font-size: 19px; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- bar */

.bar { border-bottom: 3px solid var(--panel-hi); background: var(--sunk); }
.bar .page { display: flex; align-items: center; gap: 16px; height: 56px; }
.bar a { font-family: var(--pixel); font-size: 17px; color: var(--ink); text-decoration: none; }
.bar a:hover { color: var(--pink); }
.bar .right { margin-left: auto; font-size: 14px; font-family: var(--sans); color: var(--muted); }

/* ---------------------------------------------------------------- hero */

.hero { padding: 34px 0 22px; text-align: center; }
.hero h1 { color: var(--ink); }
.hero h1 .accent { color: var(--pink); }
.hero .tagline { font-size: clamp(17px, 2vw, 21px); color: var(--gold); margin: 14px 0 0; }

/* ---------------------------------------------------------------- carousel */

.carousel { position: relative; border: 3px solid var(--panel-hi); border-radius: 10px 10px 0 0; overflow: hidden; background: #000; }
.carousel img { width: 100%; aspect-ratio: 1400 / 820; }
.carousel .nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 46px; height: 72px; cursor: pointer;
	background: rgba(18, 10, 44, .82); border: 2px solid var(--panel-hi);
	border-radius: 8px; color: var(--ink); font-size: 18px;
	display: grid; place-items: center; transition: border-color .12s, background .12s;
}
.carousel .nav:hover { border-color: var(--cyan); background: rgba(18, 10, 44, .95); color: var(--cyan); }
.carousel .nav.prev { left: 12px; }
.carousel .nav.next { right: 12px; }
/* the caption sits under the frame: over the top it covered the game's own
   toolbar and read like a glitch */
.cap {
	border: 3px solid var(--panel-hi); border-top: 0;
	border-radius: 0 0 10px 10px; background: var(--sunk);
	padding: 10px 16px; font-size: 15px;
}
.cap b { color: var(--gold); font-weight: 700; }

.thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs img {
	width: 72px; flex: 0 0 auto; border: 2px solid var(--panel);
	border-radius: 5px; cursor: pointer; opacity: .5; transition: opacity .12s, border-color .12s;
}
.thumbs img.on, .thumbs img:hover { opacity: 1; border-color: var(--cyan); }

/* ---------------------------------------------------------------- icon strip */

.icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 26px 0 6px; }
.icons img { width: 46px; image-rendering: pixelated; animation: bob 3.4s ease-in-out infinite; }
.icons img:nth-child(2n) { animation-delay: -.5s; }
.icons img:nth-child(3n) { animation-delay: -1.1s; }
.icons img:nth-child(5n) { animation-delay: -1.9s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------------------------------------------------------------- blocks */

section { padding: 34px 0; }
.block { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.block > img { width: 46px; image-rendering: pixelated; margin-top: 4px; }
.block .body { max-width: 68ch; }

ul.feats { list-style: none; padding: 0; margin: 4px 0 0; }
ul.feats li {
	display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start;
	padding: 7px 0;
}
ul.feats img { width: 26px; image-rendering: pixelated; margin-top: 2px; }
ul.feats b { color: var(--lime); font-weight: 700; }

figure.shot { margin: 22px 0 0; }
figure.shot img { border: 3px solid var(--pink); border-radius: 8px; }
figure.shot figcaption { font-size: 14px; color: var(--muted); padding-top: 8px; }

.warn { border-left: 4px solid var(--gold); padding: 2px 0 2px 16px; }

/* ---------------------------------------------------------------- get */

.get {
	border: 3px solid var(--lime); border-radius: 12px; background: var(--panel);
	padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.get h2 { margin-bottom: 8px; }
.get p { margin: 0; color: var(--muted); font-size: 15px; }
.get .price { font-family: var(--pixel); font-size: 52px; color: var(--lime); text-align: center; line-height: 1; }
.get .price small { display: block; font-size: 13px; color: var(--muted); font-family: var(--sans); margin-top: 6px; }
.button {
	display: inline-block; font-family: var(--pixel); font-size: 20px;
	background: var(--panel-hi); color: var(--muted); border: 0; border-radius: 8px;
	padding: 12px 22px; text-decoration: none; box-shadow: 0 5px 0 #1c1244; cursor: not-allowed;
}
.button.live { background: var(--lime); color: #10230a; box-shadow: 0 5px 0 #6f9e24; cursor: pointer; }
.button.live:hover { transform: translateY(2px); box-shadow: 0 3px 0 #6f9e24; }

.buybox { text-align: center; }
.buybox .price { margin-bottom: 14px; }
.hero .button { text-decoration: none; }
.livenow { font-family: var(--pixel); font-size: 16px; color: var(--lime); margin: 14px 0 0; }
.livenow::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); margin-right: 8px; vertical-align: middle; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.facts { display: flex; flex-wrap: wrap; gap: 8px 26px; padding-top: 18px; font-size: 14px; color: var(--muted); }
.facts b { color: var(--ink); }

/* ---------------------------------------------------------------- hub */

.card {
	display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 26px; align-items: center;
	border: 3px solid var(--panel-hi); border-radius: 12px; background: var(--panel);
	padding: 22px; text-decoration: none; color: inherit;
}
.card:hover { border-color: var(--pink); }
.card img { border-radius: 6px; }
.card .tagline { color: var(--gold); margin: 8px 0 12px; }

footer { border-top: 3px solid var(--panel-hi); margin-top: 40px; background: var(--sunk); }
footer .page { display: flex; flex-wrap: wrap; gap: 16px; padding: 20px 0 34px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); }
footer .right { margin-left: auto; }

/* ---------------------------------------------------------------- lightbox */

.lightbox { position: fixed; inset: 0; z-index: 60; display: none; background: rgba(10, 5, 24, .95); padding: 3vh 3vw; cursor: zoom-out; }
.lightbox.on { display: grid; place-items: center; }
.lightbox img { max-height: 94vh; border: 3px solid var(--cyan); border-radius: 8px; }

@media (max-width: 760px) {
	body { font-size: 16px; }
	.get { grid-template-columns: 1fr; text-align: center; }
	.card { grid-template-columns: 1fr; }
	.carousel .nav { width: 44px; font-size: 22px; }
	.block { grid-template-columns: 34px 1fr; gap: 12px; }
	.block > img, .icons img { width: 34px; }
}
