/* Studio 3: one stylesheet, a theme per game (body.t-<slug>). Mobile first. Videos: see site.js. */
:root { color-scheme: dark; }
.t-studio          { --bg:#0e1014; --surface:#181b22; --fg:#f2f3f5; --muted:#a3a9b6; --accent:#7cc4ff; --accent-ink:#06121f; --line:#2a2f3a; }
.t-voidrunner     { --bg:#060a17; --surface:#0f1730; --fg:#e8f3ff; --muted:#93a6c4; --accent:#3fd0ff; --accent-ink:#021320; --line:#1e2b4d; }
.t-nextruler  { --bg:#1d1408; --surface:#2b1f0f; --fg:#fff6e3; --muted:#d3bf96; --accent:#ffc21a; --accent-ink:#2a1a00; --line:#4a3618; }
.t-runebound{ --bg:#140a1d; --surface:#21112e; --fg:#fbeeff; --muted:#c3a6d3; --accent:#ff58c0; --accent-ink:#2a0420; --line:#3b1f4f; }
.t-stormace       { --bg:#0b1118; --surface:#16202b; --fg:#e9eef3; --muted:#9aa8b8; --accent:#f2a93b; --accent-ink:#1d1200; --line:#273445; }
.t-100000cats     { --bg:#fff8ec; --surface:#ffffff; --fg:#3b2c35; --muted:#7a6670; --accent:#d9792a; --accent-ink:#ffffff; --line:#f0e1c9; color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h2 { font-size: 1.35rem; margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
.small, .meta { color: var(--muted); font-size: .9rem; }

.site-head, main, .site-foot { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.site-head { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { color: var(--fg); font-weight: 800; letter-spacing: .02em; text-decoration: none; font-size: 1.1rem; }
.site-head nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: .95rem; }
.site-head nav a:hover { color: var(--fg); }
.site-foot { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1rem; padding-bottom: 2rem; color: var(--muted); font-size: .9rem; }
.site-foot p { margin: .3rem 0; }
.site-foot .small { font-size: .78rem; }

/* Gameplay video (game pages and the home showreel). The play button becomes a small pause button while playing. */
.gv, .reel-stage { position: relative; background: #000; overflow: hidden; }
.gv-video { display: block; width: 100%; height: auto; background: #000; }
.gv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px;
  display: grid; place-items: center; padding: 0 0 0 4px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .85);
  background: rgb(0 0 0 / .5); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 6px 24px rgb(0 0 0 / .4); transition: background .15s ease; }
.gv-play:hover { background: rgb(0 0 0 / .7); }
.gv-play:focus-visible, .reel-thumb:focus-visible, .reel-cap:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.playing > .gv-play { left: auto; top: auto; right: 12px; bottom: 12px; transform: none; width: 44px; height: 44px; padding: 0;
  border-width: 1.5px; opacity: .75; }
.playing > .gv-play:hover, .playing > .gv-play:focus-visible { opacity: 1; }

/* Home: the showreel is the first thing on the page */
.reel { margin: 0 -16px; }
.reel-stage { width: 100%; aspect-ratio: 9 / 16; max-height: calc(100svh - 150px); min-height: 380px; }
.reel-stage::before { content: ""; position: absolute; inset: -20px; background: var(--poster) center / cover;
  filter: blur(18px) brightness(.55); }
.reel-stage .gv-video { position: absolute; inset: 0; height: 100%; object-fit: contain; background: transparent; }
.reel-cap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 84px); display: flex; gap: 10px; align-items: center;
  padding: 8px 14px 8px 8px; border-radius: 12px; background: rgb(0 0 0 / .6); color: #fff; text-decoration: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.reel-cap img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.reel-cap b { display: block; font-size: .95rem; line-height: 1.2; }
.reel-cap small { color: #ffd27a; font-weight: 600; font-size: .8rem; }
.reel-cap small::after { content: " →"; }
.reel-side { padding: 14px 16px 0; }
.reel-side h1 { font-size: clamp(2rem, 8vw, 3.2rem); margin: .4rem 0 .4rem; letter-spacing: -.02em; }
.lead { font-size: 1.2rem; margin: 0 0 .5rem; }
.intro-sub { color: var(--muted); margin: 0 0 1rem; }
.reel-thumbs { list-style: none; margin: 0 -16px; padding: 2px 16px 6px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.reel-thumb { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 82px; padding: 8px 6px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit;
  font-size: .78rem; font-weight: 600; line-height: 1.15; cursor: pointer; }
.reel-thumb img { width: 48px; height: 48px; border-radius: 11px; }
.reel-thumb[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.card a { display: block; height: 100%; background: var(--surface); color: var(--fg); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.card a:hover { transform: translateY(-2px); border-color: var(--accent); }
.card-media { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.card-art, .card-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tag { display: inline-block; margin-top: .4rem !important; padding: 2px 10px; border-radius: 99px; border: 1px dashed var(--muted);
  font-size: .8rem !important; }
.card-body { display: flex; gap: 14px; padding: 14px 16px 18px; align-items: flex-start; }
.card-icon { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.card h3 { margin: 0 0 .25rem; color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.contact p { margin: .25rem 0; }

/* Game page: the gameplay video comes first, full width on phones */
.hero .gv { margin: 0 -16px; }
.hero.portrait .gv-video { aspect-ratio: 9 / 16; max-height: calc(100svh - 120px); min-height: 380px; object-fit: contain; }
.hero.landscape .gv-video { aspect-ratio: 16 / 9; }
.title-row { display: flex; gap: 14px; align-items: center; margin: 18px 0 14px; }
.title-row .icon { width: 80px; height: 80px; border-radius: 18px; flex: none; box-shadow: 0 4px 18px rgb(0 0 0 / .3); }
.title-row h1 { font-size: clamp(1.5rem, 6vw, 2.4rem); margin: 0 0 .25rem; }
.tagline { margin: 0; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-play, .soon { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 14px;
  border-radius: 12px; font-weight: 700; font-size: 1.1rem; line-height: 1.1; text-decoration: none; }
.btn-play { background: var(--accent); color: var(--accent-ink); }
.btn-play:hover { filter: brightness(1.08); }
.soon { border: 1.5px dashed var(--muted); color: var(--muted); padding-left: 18px; }
.btn-play small, .soon small { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }

.shots { list-style: none; margin: 0 -16px; padding: 4px 16px 12px; display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots li { flex: none; scroll-snap-align: start; }
.shots img { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.shots.portrait img { width: 46vw; max-width: 240px; aspect-ratio: 9 / 16; object-fit: cover; }
.shots.landscape img { width: 82vw; max-width: 460px; aspect-ratio: 16 / 9; object-fit: cover; }

.about { max-width: 70ch; }
.about ul, .doc ul { padding-left: 1.25rem; }
.about li, .doc li { margin: .25rem 0; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.links a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--fg); text-decoration: none; font-weight: 600; }
.links a:hover { border-color: var(--accent); }

/* Privacy / support */
.doc { max-width: 720px; }
.doc h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin: .5rem 0 .25rem; }
.doc h2 { color: var(--accent); font-size: 1.15rem; margin-top: 2rem; }
.doc p { margin: 0 0 .8rem; }
.sub-head { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.sub-head img { width: 48px; height: 48px; border-radius: 11px; }
.sub-head p { margin: 0; line-height: 1.3; }
.sub-head p a { color: var(--fg); font-weight: 700; text-decoration: none; }
.sub-head span { color: var(--muted); font-size: .9rem; }
.btn-mail { display: inline-block; padding: 12px 18px; border-radius: 12px; background: var(--accent);
  color: var(--accent-ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }

@media (min-width: 720px) {
  .reel { margin: 8px 0 0; display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 40px; align-items: center; }
  .reel-stage { border-radius: 20px; max-height: calc(100vh - 90px); min-height: 0; }
  .reel-side { padding: 0; }
  .reel-thumbs { margin: 0; padding: 4px 0 8px; flex-wrap: wrap; }
  .hero .gv { margin: 4px 0 0; border-radius: 20px; }
  .hero.portrait { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 40px; align-items: center; }
  .hero.portrait .gv-video { max-height: calc(100vh - 90px); min-height: 0; }
  .cards { grid-template-columns: 1fr 1fr; gap: 22px; }
  .title-row .icon { width: 112px; height: 112px; border-radius: 24px; }
  .shots { margin: 0; padding-left: 0; padding-right: 0; }
  .shots.portrait img { width: 220px; }
}
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { .card a, .gv-play { transition: none; } }
.about h3.caps { font-size: .85rem; letter-spacing: .08em; color: var(--accent); margin-top: 1.75rem; }
