/* UpStream Games: one stylesheet for the whole site. System fonts only (nothing to license). */
:root {
  --ink: #0d2227;
  --deep: #12333a;
  --water: #24646c;
  --foam: #e9f2ea;
  --muted: #a9c4c4;
  --gold: #f3c14b;
  --hull: #d4552c;
  --line: rgba(233, 242, 234, 0.14);
  --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0; color: var(--foam); background: var(--ink);
  font: 17px/1.6 var(--font-body);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--gold); }
a:hover { color: #ffd77a; }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 32px, 980px); margin-inline: auto; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--foam); font: 800 1.15rem/1 var(--font-display); letter-spacing: .01em; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--water); display: grid; place-items: center; overflow: hidden; }
.brand .mark svg { width: 26px; height: 26px; }
.brand > span:last-child { white-space: nowrap; }
.brand span b { color: var(--gold); font-weight: 800; }
nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 420px) { nav { gap: 12px; } nav a { font-size: .88rem; } .brand { font-size: 1rem; } }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--foam); }

/* home */
.hero { padding: 64px 0 40px; background:
  radial-gradient(1200px 400px at 70% -10%, rgba(36,100,108,.55), transparent 70%); }
.hero h1 { font: 800 clamp(2.2rem, 6vw, 3.6rem)/1.05 var(--font-display); margin: 0 0 14px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { max-width: 58ch; color: var(--muted); font-size: 1.1rem; margin: 0; }

.game { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 40px 0 64px; border-top: 1px solid var(--line); }
@media (min-width: 820px) { .game { grid-template-columns: 1fr 1.15fr; align-items: center; } }
.game-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.game-head img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.game h2 { font: 800 2.1rem/1 var(--font-display); margin: 0 0 6px; }
.tag { color: var(--gold); font-weight: 700; margin: 0; }
.game ul { padding-left: 1.1em; color: var(--muted); }
.game li { margin: 4px 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--hull); color: #fff; text-decoration: none; font-weight: 800; padding: 13px 20px; border-radius: 12px; box-shadow: 0 4px 0 #8f3218; }
.btn:hover { color: #fff; filter: brightness(1.06); }
.btn.soon { background: transparent; color: var(--foam); border: 2px solid var(--line); box-shadow: none; cursor: default; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shots img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.4); aspect-ratio: 9 / 16; object-fit: cover; }
.shots img:nth-child(2) { transform: translateY(-14px); }

/* text pages */
.doc { padding: 48px 0 72px; }
.doc .wrap { width: min(100% - 32px, 760px); }
.doc h1 { font: 800 clamp(1.9rem, 5vw, 2.6rem)/1.1 var(--font-display); margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font: 800 1.3rem/1.25 var(--font-display); margin: 36px 0 8px; color: var(--foam); }
.doc h3 { font-size: 1.02rem; margin: 22px 0 4px; }
.doc p, .doc li { color: #d5e3e1; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.box { background: var(--deep); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.box p { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--foam); font-weight: 700; background: rgba(255,255,255,.03); }
td { color: #d5e3e1; }
.scroll { overflow-x: auto; }
details { background: var(--deep); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 2px; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding: 22px 0 30px; }
footer a { color: var(--muted); }

/* studio home: game cards */
.games, .about { padding: 40px 0; border-top: 1px solid var(--line); }
.games h2, .about h2 { font: 800 1.6rem/1.2 var(--font-display); margin: 0 0 18px; }
.about p { color: #d5e3e1; max-width: 64ch; }
.game-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .game-grid { grid-template-columns: 1fr 1fr; } }
.card-game { display: flex; gap: 16px; align-items: flex-start; background: var(--deep); border: 1px solid var(--line); border-radius: 18px; padding: 18px; color: var(--foam); text-decoration: none; min-width: 0; }
a.card-game:hover { color: var(--foam); border-color: rgba(243,193,75,.55); }
.card-game img { width: 72px; height: 72px; border-radius: 17px; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.card-game h3 { font: 800 1.35rem/1.1 var(--font-display); margin: 0 0 4px; }
.card-game p { margin: 6px 0; color: #d5e3e1; }
.card-game .tag { color: var(--gold); margin: 0; }
.card-game .more { display: inline-block; margin-top: 6px; color: var(--gold); font-weight: 700; font-size: .95rem; }
.card-game.next { border-style: dashed; background: transparent; align-items: center; }
.card-game.next p { color: var(--muted); }

/* game pages */
.game h1 { font: 800 2.3rem/1 var(--font-display); margin: 0 0 6px; }
.crumb { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.crumb a { color: var(--muted); }
.small { color: var(--muted); font-size: .95rem; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0 0 56px; }
.links-row a { font-weight: 700; }
.doc th { width: 30%; }
