/* Winter Crest Studios — wintercreststudios.com
   Doom Seas brand palette (branding/README.md in the game repo):
   green is the world, yellow is what watches you; outlines are ink, never black. */

:root {
  --abyss: #03120d;
  --deep: #072a1f;
  --kelp: #0d4a33;
  --kelp-hi: #1a7a4f;
  --acid: #6ce84a;
  --acid-2: #2ea043;
  --lime: #b7f26a;
  --gold: #ffd23f;
  --amber: #f2a516;
  --glow: #fff3a0;
  --bone: #f2eedc;
  --ink: #06231a;

  --bg: var(--abyss);
  --bg-2: #051c15;
  --panel: #0a3326;
  --panel-2: #0d4a33;
  --line: rgba(108, 232, 74, 0.16);
  --text: var(--bone);
  --text-2: #bfd3c0;
  --muted: #86a88f;
  --radius: 16px;
  --wrap: 1120px;
  --font-head: "Titan One", "Arial Black", Impact, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--glow); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  background: linear-gradient(180deg, var(--lime) 0%, var(--acid) 55%, var(--acid-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
h3 { font-size: 1.15rem; color: var(--glow); }
p { margin: 0 0 1em; }
kbd {
  font-family: var(--font-body); font-size: 0.85em; font-weight: 800;
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 0 0.45em; color: var(--gold);
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
section[id] { scroll-margin-top: 72px; }
.muted { color: var(--muted); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--ink);
  padding: 8px 12px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 16px;
  background: rgba(3, 18, 13, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-size: 1rem; white-space: nowrap; letter-spacing: 0.02em; }
.brand img { border-radius: 10px; }
.brand em { font-style: normal; color: var(--acid); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--text-2); font-weight: 700; font-size: 0.95rem; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--glow); background: rgba(108, 232, 74, 0.1); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(26, 122, 79, 0.45) 0%, rgba(3, 18, 13, 0) 70%),
    linear-gradient(180deg, #02100b 0%, var(--abyss) 55%, var(--deep) 100%);
}
.hero-stars {
  position: absolute; inset: 0; z-index: -1; opacity: 0.7;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #cfe9d0 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, #cfe9d0 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 41% 30%, #fff3a0 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 12%, #cfe9d0 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 67% 75%, #cfe9d0 50%, transparent 51%),
    radial-gradient(1px 1px at 83% 22%, #fff3a0 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 92% 58%, #cfe9d0 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 80%, #cfe9d0 50%, transparent 51%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center;
  padding-top: 56px; padding-bottom: 130px;
}
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; font-weight: 800; margin-bottom: 0.4rem; }
.title { margin: 0 0 0.4rem -4%; max-width: 560px; }
.title img { width: 100%; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55)); }
.tagline { font-family: var(--font-head); font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--bone); margin-bottom: 0.6em; letter-spacing: 0.02em; }
.tagline strong { color: var(--gold); font-weight: 400; text-shadow: 0 0 22px rgba(255, 210, 63, 0.35); }
.lede { color: var(--text-2); max-width: 560px; font-size: 1.05rem; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2rem 0 1.4rem; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 800;
  padding: 6px 12px; border-radius: 999px; color: var(--text-2);
  background: rgba(10, 51, 38, 0.75); border: 1px solid var(--line);
}
.pill-live { color: var(--lime); border-color: rgba(183, 242, 106, 0.4); }
.pill-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(183, 242, 106, 0.18); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 800; font-size: 1rem;
  border: 2px solid transparent; transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold), var(--amber)); color: var(--ink); border-color: var(--ink); box-shadow: 0 10px 30px rgba(255, 210, 63, 0.25); }
.btn-primary:hover { color: #000; }
.btn-ghost { background: rgba(10, 51, 38, 0.6); color: var(--bone); border-color: rgba(108, 232, 74, 0.45); }
.btn-ghost:hover { border-color: var(--acid); color: #fff; }
.hero-art { margin: 0; position: relative; }
.hero-art img {
  width: 100%; aspect-ratio: 1040 / 960; object-fit: cover;
  border-radius: 22px; border: 3px solid var(--ink);
  box-shadow: 0 0 0 2px rgba(108, 232, 74, 0.25), 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 90px rgba(26, 122, 79, 0.35);
}
.hero-waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 110px; z-index: 1; }
.hero-waves svg { width: 100%; height: 100%; display: block; }
.hero-waves .w1 { fill: var(--kelp); opacity: 0.75; }
.hero-waves .w2 { fill: var(--bg); }

/* ---------- download ---------- */
.nav-dl { color: var(--gold) !important; }
.dl-intro { max-width: 760px; }
#dl-meta { color: var(--text-2); font-weight: 700; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 1.6rem 0 1.4rem; }
.dl-card {
  display: grid; gap: 6px; padding: 24px 24px 22px; color: var(--text);
  background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dl-card:hover { transform: translateY(-3px); color: var(--text); box-shadow: 0 0 0 1px rgba(255, 210, 63, 0.5), 0 16px 40px rgba(0, 0, 0, 0.35); }
.dl-os { color: var(--gold); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.74rem; font-weight: 800; }
.dl-name { font-family: var(--font-head); font-size: 1.35rem; color: var(--bone); }
.dl-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.dl-card .btn { justify-self: start; }
.dl-notes { display: grid; gap: 10px; max-width: 820px; }
.dl-notes details { background: var(--panel); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 16px; box-shadow: 0 0 0 1px var(--line); }
.dl-notes summary { cursor: pointer; font-weight: 800; color: var(--bone); }
.dl-notes ol, .dl-notes p { color: var(--text-2); margin: 10px 0 4px; font-size: 0.97rem; }
.dl-notes code { font-size: 0.85em; background: var(--ink); padding: 2px 6px; border-radius: 6px; color: var(--lime); }

/* ---------- dev log ---------- */
.devlog { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 12px; }
.devlog li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: start; background: var(--panel); border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); color: var(--text-2); font-size: 0.97rem; }
.devlog time { color: var(--gold); font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 3px; }
.devlog b { color: var(--bone); }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-dark { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.76rem; font-weight: 800; margin-bottom: 0.5rem; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.grid-2.reverse > :first-child { order: 2; }
.grid-2.reverse > :last-child { order: 1; }
.facts { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 10px; }
.facts li { padding-left: 26px; position: relative; color: var(--text-2); }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, var(--glow), var(--gold) 45%, var(--amber)); box-shadow: 0 0 0 2px var(--ink), 0 0 12px rgba(255, 210, 63, 0.4); }
.facts b { color: var(--bone); font-weight: 800; }

.shot-card { margin: 0; background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.45); }
.shot-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot-card figcaption { padding: 14px 16px; color: var(--text-2); font-size: 0.92rem; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 2rem; }
.feature {
  background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px 22px 18px; box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(108, 232, 74, 0.45), 0 16px 40px rgba(0, 0, 0, 0.35); }
.feature .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(160deg, rgba(108, 232, 74, 0.22), rgba(108, 232, 74, 0.05)); border: 2px solid var(--ink);
}
.feature .icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-family: var(--font-body); font-weight: 800; color: var(--bone); font-size: 1.08rem; }
.feature p { color: var(--text-2); font-size: 0.97rem; margin: 0; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 1.6rem; }
.shot { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 2px solid var(--ink); background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.35s ease; }
.shot:hover img { transform: scale(1.04); }
.shot span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-size: 0.9rem; color: var(--bone); font-weight: 700;
  background: linear-gradient(180deg, rgba(3, 18, 13, 0) 0%, rgba(3, 18, 13, 0.92) 100%);
}

/* ---------- play together ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 12px; }
.steps li { position: relative; padding-left: 52px; color: var(--text-2); min-height: 38px; }
.steps li b { color: var(--bone); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); color: var(--ink);
  background: linear-gradient(180deg, var(--gold), var(--amber)); border: 2px solid var(--ink);
}
.safety { margin-top: 1.4rem; background: var(--panel); border: 2px solid var(--ink); border-left: 6px solid var(--acid); border-radius: var(--radius); padding: 18px 20px 8px; box-shadow: 0 0 0 1px var(--line); }
.safety h3 { font-family: var(--font-body); font-size: 1rem; color: var(--bone); font-weight: 800; margin-bottom: 0.5rem; }
.safety ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 0.97rem; }
.safety li { margin-bottom: 6px; }
.safety b { color: var(--bone); }
.code-card {
  margin: 0; text-align: center; padding: 42px 28px;
  background: radial-gradient(120% 120% at 50% 0%, var(--panel-2) 0%, var(--panel) 70%);
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.45);
}
.code-label { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.76rem; color: var(--muted); font-weight: 800; margin-bottom: 0.4rem; }
.code {
  font-family: var(--font-head); font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: 0.18em; color: var(--gold); margin: 0 0 0.6rem; padding-left: 0.18em;
  text-shadow: 0 0 30px rgba(255, 210, 63, 0.45), 0 3px 0 var(--ink);
}
.code-note { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- roadmap ---------- */
.roadmap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 1.6rem; }
.road-col { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 0 0 1px var(--line); }
.road-col h3 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 800; color: var(--bone); display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.road-col ul { margin: 0; padding-left: 18px; color: var(--text-2); }
.road-col li { margin: 7px 0; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 2px solid var(--ink); }
.dot.done { background: var(--acid); box-shadow: 0 0 0 3px rgba(108, 232, 74, 0.2); }
.dot.next { background: var(--gold); box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.2); }

/* ---------- key art band ---------- */
.keyart { background: var(--ink); border-top: 1px solid var(--line); }
.keyart img { width: 100%; max-width: 1920px; margin: 0 auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.studio-logo { border-radius: 24px; border: 3px solid var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.studio p { color: var(--text-2); }
.studio strong { color: var(--bone); }

/* ---------- footer ---------- */
.footer { padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--text-2); }
.footer-inner { display: flex; gap: 18px; align-items: center; }
.footer-kraken { border-radius: 14px; border: 2px solid var(--ink); flex: none; }
.footer p { margin: 0 0 6px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 110px; gap: 28px; }
  .hero-art { order: -1; }
  .hero-art img { aspect-ratio: 16 / 11; object-position: 60% 40%; }
  .title { margin-left: -2%; max-width: 420px; }
  .grid-2, .grid-2.reverse { grid-template-columns: 1fr; gap: 28px; }
  .grid-2.reverse > :first-child { order: 1; }
  .grid-2.reverse > :last-child { order: 2; }
  .features, .gallery, .roadmap, .dl-grid { grid-template-columns: 1fr; }
  .devlog li { grid-template-columns: 1fr; gap: 4px; }
  .studio { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .studio-logo { width: 160px; height: 160px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature, .shot img { transition: none; }
}
