/* Just Games Studio — shared styles. The palette is Plow Day's: night navy, plow orange, snow. */
:root {
  --navy: #12234a;
  --navy-2: #1c3266;
  --orange: #ff8a1f;
  --orange-d: #e06a00;
  --bg: #f4f7fc;
  --card: #ffffff;
  --ink: #12234a;
  --ink-2: #3c4f74;
  --muted: #6b7f9e;
  --line: #e1e8f3;
  --link: #1f5fbf;
  --shadow: 0 10px 30px rgba(18, 35, 74, 0.08), 0 2px 6px rgba(18, 35, 74, 0.05);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1324;
    --card: #131d33;
    --ink: #eef3fb;
    --ink-2: #c3d0e6;
    --muted: #8fa1c0;
    --line: #22304d;
    --link: #8ab8ff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16.5px/1.65 "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- top bar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 35, 74, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 900; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(160deg, #ffb057, var(--orange)); color: #fff; font-size: 15px; font-weight: 900;
  box-shadow: 0 3px 0 var(--orange-d);
}
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 800; font-size: 15px; }
.nav-links a:hover { color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 138, 31, 0.35), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(156, 196, 238, 0.28), transparent 60%),
    linear-gradient(170deg, var(--navy) 0%, #1a2c5c 55%, #2b3f78 100%);
}
.hero::after {
  /* falling snow */
  content: "";
  position: absolute; inset: -260px 0 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(2px 2px at 120px 80px, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(3px 3px at 200px 160px, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(2px 2px at 300px 40px, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(2px 2px at 380px 200px, rgba(255,255,255,.7), transparent 60%);
  background-size: 400px 260px;
  animation: snow 14s linear infinite;
  pointer-events: none;
  opacity: .7;
}
@keyframes snow { to { transform: translateY(260px); } }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } html { scroll-behavior: auto; } }
.hero .wrap { position: relative; z-index: 1; padding: 84px 0 92px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800; font-size: 13.5px; letter-spacing: .02em;
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; margin: 18px 0 14px; font-weight: 900; letter-spacing: -0.03em; max-width: 14ch; }
.hero h1 span { color: var(--orange); }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); max-width: 52ch; color: rgba(255, 255, 255, 0.82); margin: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px;
  font-weight: 900; text-decoration: none; font-size: 16px;
  background: linear-gradient(180deg, #ffa24a, var(--orange)); color: #fff;
  box-shadow: 0 4px 0 var(--orange-d), 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-d); }
.btn.ghost { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

/* ---------- sections ---------- */
section.block { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin: 0; font-weight: 900; letter-spacing: -0.02em; }
.section-head p { margin: 0; color: var(--muted); }

.game-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--card);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
/* the game's wordmark, set in type: white PLOW over orange DAY, with the snow-road stripe */
.game-art {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(600px 260px at 80% 0%, rgba(255, 138, 31, 0.45), transparent 60%),
    linear-gradient(165deg, #2a3f78 0%, var(--navy) 70%);
}
.game-art::before {
  content: "";
  position: absolute; left: -10%; right: -10%; bottom: 18%;
  height: 34px; transform: rotate(-6deg);
  background: repeating-linear-gradient(90deg, rgba(255, 201, 60, .85) 0 46px, transparent 46px 86px);
  opacity: .5;
}
.game-art::after {
  content: "";
  position: absolute; left: -10%; right: -10%; bottom: -10%;
  height: 38%; transform: rotate(-6deg);
  background: linear-gradient(180deg, #eef4fc, #d9e6f5);
}
.wordmark {
  position: relative; z-index: 1;
  font-weight: 900; line-height: .86; text-align: center; letter-spacing: -0.02em;
  font-size: clamp(56px, 8vw, 92px);
  transform: rotate(-4deg) translateY(-8%);
}
.wordmark span { display: block; color: #fff; text-shadow: 0 5px 0 #9cc4ee, 0 9px 0 #12234a, 0 18px 30px rgba(0,0,0,.35); }
.wordmark span + span { color: var(--orange); text-shadow: 0 5px 0 var(--orange-d), 0 9px 0 #12234a, 0 18px 30px rgba(0,0,0,.35); }
.game-card .info { padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.game-card h3 { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.game-card .tag { color: var(--muted); font-weight: 700; font-size: 15px; margin-top: -8px; }
.game-card p { margin: 0; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 5px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
.game-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; font-weight: 800; }

.contact-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 30px; border-radius: 26px;
  background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: #fff;
  box-shadow: var(--shadow);
}
.contact-card h2 { margin: 0 0 4px; font-size: 28px; font-weight: 900; }
.contact-card p { margin: 0; color: rgba(255,255,255,.78); }

footer.site { padding: 34px 0 44px; color: var(--muted); font-size: 14.5px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
footer.site a { color: inherit; }

/* ---------- policy page ---------- */
.doc-hero .wrap { padding: 56px 0 76px; }
.doc-tabs { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.doc-tabs a { padding: 8px 14px; border-radius: 999px; color: rgba(255,255,255,.85); text-decoration: none; font-weight: 800; font-size: 14.5px; border: 1px solid rgba(255,255,255,.22); }
.doc-tabs a[aria-current] { background: #fff; color: var(--navy); border-color: #fff; }
.doc-hero h1 { font-size: clamp(32px, 5vw, 48px); margin: 6px 0 6px; max-width: none; }
.doc-hero .updated { color: rgba(255,255,255,.75); font-weight: 700; margin: 0; }

.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: -40px; position: relative; z-index: 2; }
.sum { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; box-shadow: var(--shadow); }
.sum .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px; }
.sum .ico svg { width: 22px; height: 22px; }
.sum h3 { margin: 0 0 4px; font-size: 17px; font-weight: 900; }
.sum p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.ico.blue { background: #e4efff; color: #1f5fbf; }
.ico.green { background: #e2f6e8; color: #1e7a3e; }
.ico.orange { background: #ffeedd; color: #c85d00; }
@media (prefers-color-scheme: dark) {
  .ico.blue { background: #1d3157; color: #8ab8ff; }
  .ico.green { background: #18382a; color: #7fe0a0; }
  .ico.orange { background: #3d2a14; color: #ffb36b; }
}

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 44px 0 24px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 14.5px; }
.toc b { display: block; color: var(--muted); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 8px; padding: 6px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 700; }
.toc a::before { content: counter(t); color: var(--muted); min-width: 1.2em; }
.toc a:hover { background: var(--card); color: var(--ink); }

.doc-body { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 6px 40px 34px; box-shadow: var(--shadow); counter-reset: s; }
.doc-body .intro { font-size: 17.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); padding: 26px 0 22px; margin: 0; }
.doc-body section { padding-top: 28px; counter-increment: s; }
.doc-body h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 22px; font-weight: 900; letter-spacing: -0.01em; }
.doc-body h2::before {
  content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 14px;
}
@media (prefers-color-scheme: dark) { .doc-body h2::before { background: var(--orange); } }
.doc-body h3 { margin: 16px 0 4px; font-size: 16.5px; font-weight: 900; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body p { margin: 0 0 10px; }
.doc-body ul { margin: 0 0 10px; padding-left: 20px; }
.doc-body li { margin: 4px 0; }
.doc-body li::marker { color: var(--orange); }
.callout { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 14px; padding: 14px 16px; margin: 12px 0; color: var(--ink-2); }
.callout b { color: var(--ink); }
.partners { display: grid; gap: 10px; margin: 8px 0 6px; }
.partner { display: flex; justify-content: space-between; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; }
.partner b { color: var(--ink); }
.partner span { color: var(--muted); font-size: 15px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .game-card { grid-template-columns: 1fr; }
  .game-art { min-height: 220px; }
  .doc { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .summary { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-links { gap: 14px; }
  .nav-links .hide-sm { display: none; }
  .hero .wrap { padding: 56px 0 64px; }
  .doc-hero .wrap { padding: 40px 0 68px; }
  .doc-body { padding: 2px 18px 24px; border-radius: 20px; }
  .doc-body h2 { font-size: 19.5px; }
  .game-card .info { padding: 22px 20px; }
  .contact-card { padding: 24px 20px; }
  section.block { padding: 52px 0; }
}
