/* Dumitron: the studio's site. Big, bright and chunky in the way of the mobile studios it looks up to: bold rounded
   type (Lilita One), the games' own art large, cards that bounce. Light and dark follow the visitor's setting. */
:root {
  --ink: #111318;
  --paper: #ffffff;
  --soft: #f3f1ec;
  --muted: #5d6270;
  --line: #e4e1da;
  --sun: #ffc83d;
  --sun-ink: #2a1d00;
  --sky: #2f6fe4;
  --night: #0b1622;
  --cyan: #5fe8ff;
  --radius: 28px;
  --shadow: 0 14px 40px rgba(17, 19, 24, 0.14);
  --head: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #f4f2ee;
    --paper: #101217;
    --soft: #181b22;
    --muted: #a3a8b5;
    --line: #2a2e38;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme='dark'] {
  --ink: #f4f2ee;
  --paper: #101217;
  --soft: #181b22;
  --muted: #a3a8b5;
  --line: #2a2e38;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.02; letter-spacing: 0.01em; margin: 0; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- the bar along the top ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100% - 1180px) / 2));
  color: #fff;
  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
}
.bar.solid, .bar.page { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 28px/1 var(--head); letter-spacing: 0.02em; }
.logo img { width: 34px; height: 34px; flex: none; }
.bar nav { display: flex; gap: 6px; }
.bar nav a {
  text-decoration: none; font-weight: 800; font-size: 16px; padding: 8px 14px; border-radius: 999px;
}
.bar nav a:hover { background: rgba(127, 127, 127, 0.16); }
@media (max-width: 560px) {
  .logo { font-size: 23px; }
  .bar nav a { padding: 8px 9px; font-size: 15px; }
  .bar nav .wide { display: none; }
}

/* ---------- the big picture up top ---------- */
.hero {
  position: relative; min-height: min(100svh, 920px); display: grid; align-items: end;
  color: #fff; background: var(--night); overflow: hidden; isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0; z-index: -2;
  background: url(assets/shots/pixel-horde.jpg) center / cover no-repeat;
  image-rendering: pixelated;
  transform: scale(1.08);
  animation: drift 26s ease-in-out infinite alternate;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 10, 16, 0.78) 0%, rgba(8, 10, 16, 0.35) 55%, rgba(8, 10, 16, 0) 80%),
    linear-gradient(180deg, rgba(8, 10, 16, 0.55) 0%, rgba(8, 10, 16, 0.1) 35%, rgba(8, 10, 16, 0.86) 100%);
}
@keyframes drift { to { transform: scale(1.16) translate(-2%, 1.5%); } }
.hero-copy { padding: 140px 0 72px; }
.hero h1 { font-size: clamp(54px, 10.5vw, 148px); text-shadow: 0 6px 0 rgba(0, 0, 0, 0.35); max-width: 11ch; }
.hero p { font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; max-width: 34ch; margin: 18px 0 30px; opacity: 0.94; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  --bg: var(--sun); --fg: var(--sun-ink);
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 400 22px/1 var(--head); letter-spacing: 0.02em;
  padding: 16px 26px; border-radius: 18px; border: 0;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0, 0, 0, 0.28); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28); }
.btn.ghost { --bg: rgba(255, 255, 255, 0.16); --fg: #fff; backdrop-filter: blur(6px); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.btn.dark { --bg: var(--ink); --fg: var(--paper); }
.btn.cyan { --bg: var(--cyan); --fg: #04121a; }
.btn.soon { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 2px currentColor; cursor: default; opacity: 0.85; }
.btn.soon:hover, .btn.soon:active { transform: none; box-shadow: inset 0 0 0 2px currentColor; }
.btn svg { width: 22px; height: 22px; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.kicker { font: 800 14px/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.title { font-size: clamp(40px, 6vw, 76px); margin-bottom: 18px; }
.lede { font-size: 20px; color: var(--muted); max-width: 46ch; margin: 0; }

/* ---------- the games ---------- */
.games { display: grid; gap: 28px; margin-top: 48px; }
.game {
  position: relative; display: grid; grid-template-columns: 1.25fr 1fr; min-height: 460px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  color: #fff; text-decoration: none; isolation: isolate;
  transition: transform 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.game:hover { transform: translateY(-6px) rotate(-0.4deg); }
.game .art { position: relative; min-height: 300px; background: center / cover no-repeat; }
.game .art.pixel { image-rendering: pixelated; }
.game .info { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 44px; }
.game .icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.game h3 { font-size: clamp(38px, 4.6vw, 60px); }
.game p { margin: 0; font-size: 18px; font-weight: 600; opacity: 0.92; }
.game .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.game .tags span { font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.game.isle { background: linear-gradient(135deg, #1e4fbf, #2f6fe4 55%, #3fa0ff); }
.game.star { background: radial-gradient(120% 120% at 100% 0%, #13344a 0%, #08151f 60%); }
.game.star h3 { color: var(--cyan); }
@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; }
  .game .info { padding: 28px; }
  .game .art { min-height: 240px; }
}

/* ---------- the heroes lined up ---------- */
.cast { background: var(--sun); color: var(--sun-ink); overflow: hidden; }
.cast .title { color: var(--sun-ink); }
.cast .lede { color: rgba(42, 29, 0, 0.75); }
.lineup { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 3vw, 40px); margin-top: 48px; flex-wrap: wrap; }
.lineup figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.lineup img { height: clamp(96px, 14vw, 168px); width: auto; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.18)); transition: transform 0.2s; }
.lineup figure:hover img { transform: translateY(-10px) scale(1.06); }
.lineup figcaption { font: 400 20px/1 var(--head); }
.lineup .big img { height: clamp(140px, 20vw, 240px); }

/* ---------- about ---------- */
.about { background: var(--soft); }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { background: var(--paper); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.fact b { display: block; font: 400 44px/1 var(--head); margin-bottom: 6px; }
.fact span { color: var(--muted); font-weight: 700; font-size: 15px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- a game's own page, and the plain pages ---------- */
.page-head { padding: 140px 0 40px; }
.page-head h1 { font-size: clamp(46px, 8vw, 96px); }
.doc { padding: 0 0 96px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 32px; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--ink); }
.doc .muted { color: var(--muted); }
.doc a { color: var(--sky); font-weight: 700; }
.card { background: var(--soft); border-radius: 22px; padding: 26px 28px; margin: 22px 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 30px 0; }
.shots img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; list-style: none; margin: 30px 0; }
.feature-list li { background: var(--soft); border-radius: 20px; padding: 22px; font-weight: 600; }
.feature-list b { display: block; font: 400 24px/1.1 var(--head); margin-bottom: 6px; }
.game-hero { color: #fff; padding: 150px 0 70px; position: relative; isolation: isolate; overflow: hidden; }
.game-hero .icon { width: 108px; height: 108px; border-radius: 26px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); margin-bottom: 22px; }
.game-hero h1 { font-size: clamp(52px, 9vw, 112px); }
.game-hero p { font-size: 21px; font-weight: 700; max-width: 40ch; margin: 16px 0 28px; }
.game-hero .bg { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; }
.game-hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 14, 0.88), rgba(5, 8, 14, 0.35)); }

/* ---------- the foot ---------- */
footer { background: #0b0d12; color: #c9ccd4; padding: 56px 0 40px; font-size: 16px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
footer .logo { color: #fff; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { text-decoration: none; font-weight: 700; }
footer nav a:hover { color: #fff; }
footer small { display: block; margin-top: 12px; color: #858b98; }

/* ---------- arriving ---------- */
.rise { opacity: 0; transform: translateY(28px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 1, 0.3, 1); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-art { animation: none; }
  .rise { opacity: 1; transform: none; transition: none; }
}
