/* Night Shift Games - one stylesheet for the studio site and its game pages. */
:root {
  --bg: #08090c;
  --panel: #12141a;
  --panel-2: #181b23;
  --line: #262a35;
  --text: #eef0f4;
  --dim: #a7adbb;
  --faint: #6f7686;
  --blood: #c8141e;
  --blood-hi: #ff3b3b;
  --amber: #ffb547;
  --radius: 14px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "Oswald", "Inter", sans-serif; font-weight: 600; letter-spacing: 0.02em; line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; }
h3 { font-size: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
p { margin: 0 0 1em; color: var(--dim); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font: 600 13px/1 "Inter", sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blood-hi); margin-bottom: 14px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 9, 12, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 600 18px/1 "Oswald", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--dim); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a.on { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font: 600 15px/1 "Inter", sans-serif; letter-spacing: 0.02em; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn-blood { background: var(--blood); color: #fff; box-shadow: 0 8px 30px rgba(200, 20, 30, 0.35); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.badge {
  display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 181, 71, 0.45);
  color: var(--amber); font: 600 13px/1 "Inter", sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
}

/* Sections */
section { padding: 88px 0; scroll-margin-top: 64px; }
.alt { background: linear-gradient(180deg, var(--panel), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.lead { font-size: 19px; color: var(--dim); max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card h3 { color: var(--text); }
.card p:last-child { margin-bottom: 0; }
.card .k { color: var(--blood-hi); font: 700 13px/1 "Inter", sans-serif; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 12px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0; color: var(--faint); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.foot a { color: var(--dim); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Studio home */
.studio-hero { position: relative; padding: 48px 0 80px; overflow: hidden; text-align: center; }
.studio-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 55% at 50% 40%, rgba(200, 20, 30, 0.22), transparent 70%);
}
.studio-hero .wrap { position: relative; }
.studio-hero img.logo { width: auto; height: min(46vh, 380px); max-width: 80vw; object-fit: contain; margin: 0 auto 22px; filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.7)); }
.studio-hero h1 { font-size: clamp(30px, 4.6vw, 48px); text-transform: uppercase; }
.game-card {
  display: grid; grid-template-columns: 340px 1fr; gap: 0; overflow: hidden; padding: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.game-card .body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.game-card .body img.title { width: min(380px, 100%); height: auto; margin: 4px 0 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Game page */
.game-hero {
  position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden;
  background: #05060a url("../assets/barricaded-key.webp") center 35% / cover no-repeat;
}
.game-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.15) 0%, rgba(8, 9, 12, 0.25) 45%, rgba(8, 9, 12, 0.92) 85%, var(--bg) 100%);
}
.game-hero .wrap { position: relative; z-index: 1; padding-bottom: 64px; width: 100%; }
.game-hero img.title { width: min(720px, 92vw); margin: 0 auto 18px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.8)); }
.game-hero .tag { text-align: center; font-size: clamp(18px, 2.4vw, 23px); color: var(--text); margin: 0 auto 26px; max-width: 760px; }
.game-hero .row { justify-content: center; }
.feature { position: relative; overflow: hidden; }
.feature .k { display: flex; align-items: center; gap: 10px; }
.feature .k::before { content: ""; width: 18px; height: 2px; background: var(--blood-hi); }
.wide-art { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--dim); display: flex; gap: 14px; }
.list li strong { color: var(--text); min-width: 150px; font-weight: 600; }

/* Long-form text (privacy) */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); text-transform: uppercase; }
.doc h2 { font-size: 21px; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-family: "Inter", sans-serif; font-weight: 700; color: var(--text); }
.doc .meta { color: var(--faint); font-size: 15px; margin-bottom: 30px; }
.doc ul { padding-left: 22px; color: var(--dim); }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .game-card { grid-template-columns: 1fr; }
  .game-card img { max-height: 360px; }
}
@media (max-width: 620px) {
  section { padding: 64px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }
  .list li { flex-direction: column; gap: 2px; }
  .game-card .body { padding: 24px; }
}
