:root {
  --ink: #100E24;
  --ink-2: #1A1736;
  --ink-3: #26224A;
  --paper: #F4EEE2;
  --muted: #B9B3CC;
  --lantern: #FFB547;
  --lime: #D8F23A;
  --line: rgba(244, 238, 226, .12);
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
  --radius: 28px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Starfield: pixel stars in the brand colors */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(139,124,246,.22), transparent 60%),
    radial-gradient(50rem 30rem at -10% 40%, rgba(255,181,71,.08), transparent 60%),
    var(--ink);
}
.sky::before, .sky::after {
  content: ""; position: absolute; inset: 0;
  background-repeat: repeat;
}
.sky::before {
  background-image:
    linear-gradient(var(--paper), var(--paper)),
    linear-gradient(var(--paper), var(--paper)),
    linear-gradient(var(--lantern), var(--lantern)),
    linear-gradient(#8B7CF6, #8B7CF6),
    linear-gradient(var(--paper), var(--paper));
  background-size: 2px 2px, 2px 2px, 3px 3px, 3px 3px, 2px 2px;
  background-position: 12% 18%, 64% 8%, 82% 34%, 28% 62%, 92% 78%;
  background-repeat: no-repeat;
  opacity: .5;
}
.sky::after {
  background-image: radial-gradient(rgba(244,238,226,.35) 1px, transparent 1.5px);
  background-size: 140px 140px;
  background-position: 30px 50px;
  opacity: .35;
}

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 24px 24px 0;
}
.brand { display: flex; align-items: flex-end; gap: 10px; text-decoration: none; color: var(--paper); }
.wordmark { width: 92px; height: auto; }
.wordmark .pixel { fill: var(--lantern); }
.brand-games {
  font: 700 .75rem/1 var(--display); letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 7px;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--paper); }
.lang {
  font: 700 .8rem/1 var(--body); letter-spacing: .08em;
  color: var(--paper); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 14px; cursor: pointer; transition: border-color .2s, background .2s;
}
.lang:hover { border-color: var(--lantern); }

/* Sections */
.section-title {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 40px;
}
.pix { width: .5em; height: .5em; border-radius: 22%; background: var(--lantern); flex: none; }

.games, .also { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.games { padding-bottom: 32px; }
.games.first { padding-top: 64px; }
.eyebrow {
  font: 700 .8rem/1.2 var(--display); letter-spacing: .18em; text-transform: uppercase;
  color: var(--lantern); margin: 0 0 18px;
}
h1, h2, h3 { font-family: var(--display); margin: 0; }

.game {
  position: relative; display: grid; grid-template-columns: minmax(280px, 1fr) 1.4fr; gap: 40px; align-items: center;
  padding: 44px; margin-bottom: 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ink-2), var(--ink) 70%);
  border: 1px solid var(--line); overflow: hidden;
}
.game::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px;
  background: radial-gradient(circle, var(--glow), transparent 65%); pointer-events: none;
}
.game-info { position: relative; }
.game-icon { width: 84px; height: 84px; border-radius: 22%; box-shadow: 0 12px 30px -10px rgba(0,0,0,.7); margin-bottom: 22px; }
.game h3 { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; }
.tag { color: var(--accent); font-weight: 700; margin: 4px 0 14px; }
.game-info p:not(.tag) { color: var(--muted); margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; }
.chips li { font-size: .82rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--paper); }
.store {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 700; color: var(--ink); background: var(--paper);
  padding: 13px 20px; border-radius: 14px; transition: transform .2s, background .2s;
}
.store::after { content: "↗"; }
.store:hover { transform: translateY(-2px); background: #fff; }

.shots { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shots img { width: 100%; border-radius: 18px; background: var(--ink-3); aspect-ratio: 598 / 1300; object-fit: cover; }

/* Padzo */
.also { padding-bottom: 120px; }
.also-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 32px 36px; border-radius: var(--radius);
  background: #0B1A3A; border: 1px solid rgba(216,242,58,.25);
}
.also-card .game-icon { margin: 0; width: 76px; height: 76px; }
.also-card .eyebrow { color: var(--lime); margin-bottom: 6px; }
.also-card h3 { font-size: 1.8rem; font-weight: 800; }
.also-card p:not(.eyebrow) { color: var(--muted); margin: 6px 0 0; max-width: 40rem; }
.store-lime { background: var(--lime); }
.store-lime:hover { background: #E6FF5C; }

/* Footer */
.foot {
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 56px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; align-items: center;
}
.foot-brand { display: flex; align-items: center; gap: 12px; grid-row: span 2; }
.foot-brand img { border-radius: 10px; }
.foot-brand p { font: 800 1.1rem/1 var(--display); margin: 0; }
.foot p { margin: 0; }
.foot-mail { text-align: right; }
.foot-mail a { color: var(--lantern); font-weight: 700; text-decoration: none; }
.foot-legal { text-align: right; color: var(--muted); font-size: .88rem; }
.foot-legal a { color: var(--muted); }

a:focus-visible, button:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; }

/* Responsive */
@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; padding: 28px; }
  .also-card { grid-template-columns: auto 1fr; }
  .also-card .store { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 600px) {
  .top { padding: 16px 16px 0; }
  .nav { gap: 16px; }
  .games.first { padding-top: 40px; }
  .games, .also, .foot { padding-left: 16px; padding-right: 16px; }
  .game { padding: 22px; }
  .shots { gap: 8px; }
  .shots img { border-radius: 12px; }
  .also-card { padding: 24px; gap: 18px; }
  .foot { grid-template-columns: 1fr; }
  .foot-brand { grid-row: auto; }
  .foot-mail, .foot-legal { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
