/* 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); text-decoration: none; font-weight: 600; }
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; }
nav { gap: 8px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--deep); border: 1px solid var(--line); color: var(--foam); text-decoration: none; font-weight: 700; font-size: .95rem; }
nav a:hover { border-color: var(--gold); color: var(--foam); }
nav a[aria-current="page"] { border-color: var(--gold); color: var(--gold); }
@media (max-width: 640px) {
  .top .wrap { flex-direction: column; align-items: stretch; gap: 12px; }
  nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  nav a { justify-content: center; padding: 0 4px; font-size: .9rem; }
}
@media (max-width: 350px) { nav { grid-template-columns: repeat(2, 1fr); } }

/* 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(--foam); }
footer a:hover { color: var(--gold); }

/* 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; font-weight: 400; }
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(--foam); }
.small { color: var(--muted); font-size: .95rem; }
.links-row { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0 0 56px; }
.links-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--deep); border: 1px solid var(--line); color: var(--foam); font-weight: 700; }
.links-row a:hover { border-color: var(--gold); color: var(--foam); }
.doc th { width: 30%; }

/* buttons: secondary style */
.btn.alt { background: var(--water); box-shadow: 0 4px 0 #123a3f; }

/* fireworks videos + venue pack */
.videos { padding: 40px 0; border-top: 1px solid var(--line); }
.videos h2 { font: 800 1.6rem/1.2 var(--font-display); margin: 0 0 8px; }
.videos .lead { color: #d5e3e1; max-width: 64ch; margin: 0 0 18px; }
.video-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
.card-video { display: flex; flex-direction: column; align-items: flex-start; background: var(--deep); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.card-video h3 { font: 800 1.2rem/1.15 var(--font-display); margin: 0 0 4px; }
.card-video .len { color: var(--gold); font-weight: 700; margin: 0; }
.card-video p { color: #d5e3e1; margin: 6px 0 14px; }
.card-video .btn { margin-top: auto; }
.pack { margin-top: 20px; background: var(--deep); border: 1px solid rgba(243,193,75,.55); border-radius: 18px; padding: 20px 22px; }
.pack h3 { font: 800 1.4rem/1.15 var(--font-display); margin: 0 0 6px; }
.pack p, .pack li { color: #d5e3e1; }
.pack ul { padding-left: 1.2em; }
.pack li { margin: 4px 0; }

/* game pages: extras */
.subtitle { color: var(--muted); font-weight: 600; margin: 2px 0 0; }
.warn { background: var(--deep); border: 1px solid var(--gold); border-radius: 14px; padding: 12px 16px; margin: 14px 0; }
.warn p { margin: 0; color: var(--foam); font-size: .95rem; }
.game:has(+ .more-shots) { padding-bottom: 20px; }
.more-shots { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 0 0 48px; }
.more-shots > div:empty { display: none; }
@media (min-width: 820px) { .more-shots { grid-template-columns: 1fr 1.15fr; } .more-shots > div:empty { display: block; } }

/* Shellburst: night sky, warm gold, serif */
.theme-shellburst {
  --ink: #070a1a; --deep: #10142c; --water: #1c2250; --foam: #eef0fb; --muted: #b4b9d6;
  --gold: #f7cd72; --line: rgba(200, 205, 240, 0.16);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background: radial-gradient(1000px 500px at 70% -10%, #1c1f4a, transparent 70%), var(--ink);
}
html:has(.theme-shellburst) { background: #070a1a; }
.theme-shellburst .game h1 { font-weight: 700; letter-spacing: 0; }
.theme-shellburst h1 em, .card-game.theme-shellburst h3 em { color: var(--gold); font-style: italic; }
.theme-shellburst .tag { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; }
.theme-shellburst .shots img { aspect-ratio: auto; }
.theme-shellburst .btn { background: transparent; color: var(--gold); border: 2px solid var(--gold); box-shadow: none; }
.theme-shellburst .btn:hover { color: var(--ink); background: var(--gold); }
.theme-shellburst .btn.soon { color: var(--foam); border-color: var(--line); }
.theme-shellburst .btn.soon:hover { background: transparent; color: var(--foam); }
.theme-shellburst a:not(.btn):not(.brand) { color: var(--gold); }
.theme-shellburst nav a, .theme-shellburst .links-row a { color: var(--foam); }
.theme-shellburst nav a[aria-current="page"] { color: var(--gold); }
.theme-shellburst .crumb a { color: var(--foam); }
.theme-shellburst footer a { color: var(--foam); }

/* Shellburst card on the home page */
.card-game.theme-shellburst { background: radial-gradient(400px 200px at 80% 0%, #1c1f4a, transparent 70%), #070a1a; border-color: rgba(247,205,114,.35); }
a.card-game.theme-shellburst:hover { border-color: #f7cd72; }
.card-game.theme-shellburst h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 700; color: #eef0fb; }
.card-game.theme-shellburst .tag, .card-game.theme-shellburst .more { color: #f7cd72; }
.card-game.theme-shellburst .tag { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-style: italic; }
.card-game.theme-shellburst p { color: #d6d9ee; }

/* asset packs */
.assets { padding: 40px 0; border-top: 1px solid var(--line); }
.assets h2 { font: 800 1.6rem/1.2 var(--font-display); margin: 0 0 8px; }
.assets .lead { color: #d5e3e1; max-width: 64ch; margin: 0 0 18px; }
.asset { display: grid; grid-template-columns: 1fr; gap: 20px; background: var(--deep); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
@media (min-width: 820px) { .asset { grid-template-columns: minmax(0, 420px) 1fr; align-items: start; } }
.asset video { display: block; width: 100%; height: auto; aspect-ratio: 630 / 500; border-radius: 12px; border: 1px solid var(--line); background: #070a1a; }
.asset h3 { font: 800 1.4rem/1.15 var(--font-display); margin: 0 0 4px; }
.asset .len { color: var(--gold); font-weight: 700; margin: 0 0 8px; }
.asset p, .asset li { color: #d5e3e1; }
.asset ul { padding-left: 1.2em; }
.asset li { margin: 4px 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
