:root {
  --bg: #1d1a2d;        /* same ground as the Tuff Deathmatch lockup */
  --panel: #272340;
  --line: #3d3766;
  --ink: #0c0a14;       /* flat shadow ink */
  --text: #f4f1ff;
  --muted: #bdb7da;
  --yellow: #ffe000;
  --pink: #ff2d95;
  --cyan: #5ad2f0;
  --orange: #ffa300;
  --gutter: clamp(16px, 5vw, 48px);
  /* Riso look: flat ground, one spot ink at a time, printed as halftone dots, plates sit off register. */
  --dots-pink: radial-gradient(circle, var(--pink) 2px, transparent 2.6px);
  --dots-cyan: radial-gradient(circle, var(--cyan) 2px, transparent 2.6px);
  --dots-white: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.7px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg) var(--dots-white) 0 0 / 7px 7px;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--yellow); }
a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

img { max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: var(--gutter); isolation: isolate; }

/* header: flat bar, a strip of pink dots fading out under it */
.site-header { position: relative; z-index: 2; background: #14111f; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; background: var(--dots-pink) 0 0 / 8px 8px; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); pointer-events: none; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 900; font-size: 1.25rem; letter-spacing: 0.02em; text-decoration: none; }
.brand img { display: block; width: 44px; height: 44px; border-radius: 6px; }
.brand-name span { color: var(--orange); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 600; }
.site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav a:hover { color: var(--yellow); }

/* hero: headline on a field of pink dots */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero::before { content: ""; position: absolute; top: -20%; right: -8%; width: 62%; height: 140%; background: var(--dots-pink) 0 0 / 12px 12px; -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%); mask-image: radial-gradient(closest-side, #000 25%, transparent 100%); }
.hero .wrap { position: relative; padding-block: clamp(48px, 9vw, 112px); }
.hero h1 { max-width: 14em; margin: 0 0 16px; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; text-shadow: 4px 4px 0 var(--pink); }
.hero p { margin: 0; max-width: 40em; color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.25rem); }

/* sections */
section { padding-block: clamp(36px, 6vw, 64px); }
h2 { margin: 0 0 20px; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; font-weight: 900; letter-spacing: -0.01em; }
h2::after { content: ""; display: block; width: 88px; height: 8px; margin-top: 12px; background: var(--dots-pink) 0 0 / 11px 8px; }
h3 { margin: 0 0 6px; font-size: 1.3rem; line-height: 1.2; }
.lead { max-width: 38em; margin: 0 0 20px; color: var(--muted); }

.band { background: #151222 var(--dots-white) 3px 3px / 5px 5px; }

.tag { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 3px; background: var(--cyan); color: #14111f; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.tag.soon { background: var(--orange); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tags .tag { margin-bottom: 0; }

/* games: each card has a dotted plate printed off register behind it */
.feature { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; background: var(--panel); border-radius: 6px; }
.feature::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; z-index: -1; border-radius: 6px; background: var(--dots-pink) 0 0 / 9px 9px; }
.feature > img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 220px; border-radius: 6px 0 0 6px; }
.feature .text { padding: clamp(20px, 3vw, 32px); }
.feature p { margin: 0 0 16px; color: var(--muted); }
.feature + .feature { margin-top: 36px; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature > img { border-radius: 6px 6px 0 0; } }

.ranks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ranks img { display: block; width: 52px; height: 52px; }
.ranks-label { margin: 0 0 6px; color: var(--muted); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.btn { display: inline-block; margin-top: 14px; padding: 8px 18px; border-radius: 4px; background: var(--pink); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 4px 4px 0 var(--yellow); transition: transform 0.08s, box-shadow 0.08s; }
.btn:hover { color: #fff; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--yellow); }
.btn.off, .btn.off:hover { background: var(--line); color: var(--muted); box-shadow: none; transform: none; cursor: default; }

/* upcoming */
.proto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 18px; margin: 0 0 10px; padding: 0; list-style: none; }
.proto img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; box-shadow: 6px 6px 0 var(--ink); }

/* gallery (not on the page right now) */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.gallery img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; box-shadow: 6px 6px 0 var(--ink); }

/* characters: Kiki prints in pink dots, Moss in cyan */
.chars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px; }
.char { position: relative; display: flex; flex-direction: column; border-radius: 6px; background: var(--panel); }
.char::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; z-index: -1; border-radius: 6px; background: var(--dots-pink) 0 0 / 9px 9px; }
.char.moss::before { background: var(--dots-cyan) 0 0 / 9px 9px; }
.char figure { margin: 0; padding: 20px 20px 0; display: flex; align-items: flex-end; justify-content: center; height: 260px; border-radius: 6px 6px 0 0; }
.char.kiki figure { background: #ff7aa0; }
.char.moss figure { background: #58dde8; }
.char img { display: block; max-height: 100%; width: auto; }
.char .text { padding: 18px 22px 22px; }
.char p { margin: 0; color: var(--muted); }

/* about */
.about { display: grid; grid-template-columns: 200px 1fr; align-items: center; gap: 24px 36px; }
.about img { display: block; width: 200px; height: 200px; border-radius: 6px; box-shadow: 8px 8px 0 var(--pink); }
.about p { max-width: 38em; margin: 0 0 12px; color: var(--muted); }
.about strong { color: var(--yellow); }
@media (max-width: 640px) { .about { grid-template-columns: 1fr; } .about img { width: 140px; height: 140px; } }

/* policy pages */
.doc .wrap { max-width: 780px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; font-weight: 900; }
.doc .updated { margin: 0 0 28px; color: var(--muted); }
.doc h2 { margin: 36px 0 10px; font-size: 1.4rem; }
.doc h2::after { display: none; }
.doc p, .doc li { max-width: 40em; color: var(--text); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }

/* footer: flat bar with a strip of pink dots fading in above it */
.site-footer { position: relative; background: #14111f; padding-block: 28px; font-size: 0.95rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; background: var(--dots-pink) 0 0 / 8px 8px; -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); pointer-events: none; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-weight: 600; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--yellow); }
.site-footer p { margin: 0; color: var(--muted); }
