/* ==========================================================================
   Symbiosa Games: shared site styles.
   Font URLs resolve relative to this file, so the same sheet works from the
   site root and from games/.
   ========================================================================== */

@font-face { font-family: "Geist"; src: url("assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #08090e; --bg-2: #0f1119; --bg-3: #161926;
  --ink: #f0f1f7; --ink-2: #a2a7bd; --ink-3: #6a7089;
  --line: #1c2030; --line-2: #2b3045;
  --hot: #7c80f9; --hot-2: #35d6c6;
  --kp: #34d39b; --kp-2: #9cecc8;
  --font: "Geist", -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f4f5f9; --bg-2: #ffffff; --bg-3: #e9ebf3;
    --ink: #14161f; --ink-2: #4c5167; --ink-3: #868ba3;
    --line: #e0e3ed; --line-2: #c9cddd;
    --hot: #4a4de0; --hot-2: #0d9c92;
    --kp: #0f9f6e; --kp-2: #58c69c;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f9; --bg-2: #ffffff; --bg-3: #e9ebf3;
  --ink: #14161f; --ink-2: #4c5167; --ink-3: #868ba3;
  --line: #e0e3ed; --line-2: #c9cddd;
  --hot: #4a4de0; --hot-2: #0d9c92;
  --kp: #0f9f6e; --kp-2: #58c69c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.62; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 26px; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- nav (overlays a full-bleed hero, solidifies on scroll) ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease; }
.nav.is-stuck { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 680; letter-spacing: -.016em; font-size: 16px; color: #fff; }
.nav.is-stuck .brand { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.nav.is-stuck .nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--hot-2); }
.nav.is-stuck .nav-links a:hover { color: var(--hot); }
@media (max-width: 740px) { .nav-links { display: none; } }
.nav-right { display: flex; align-items: center; gap: 10px; }
.ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.06); cursor: pointer; }
.nav.is-stuck .ico { border-color: var(--line-2); color: var(--ink-2); background: var(--bg-2); }
.ico:hover { color: var(--hot-2); border-color: var(--hot-2); }
.ico svg { width: 16px; height: 16px; }

.tt-moon { display: none; } .tt-sun { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .tt-moon { display: block; }
  :root:not([data-theme="dark"]) .tt-sun { display: none; }
}
:root[data-theme="light"] .tt-moon { display: block; }
:root[data-theme="light"] .tt-sun { display: none; }
:root[data-theme="dark"] .tt-moon { display: none; }
:root[data-theme="dark"] .tt-sun { display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 10px;
  font-size: 14.5px; font-weight: 640; letter-spacing: -.008em; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-hot { background: var(--hot); color: #fff; box-shadow: 0 16px 44px -18px var(--hot); }
.btn-hot:hover { box-shadow: 0 0 28px -6px var(--hot), 0 18px 48px -16px var(--hot); }
.btn-light { background: #fff; color: #14161f; }
.btn-light:hover { box-shadow: 0 18px 44px -18px rgba(0,0,0,.7); }
.btn-wire { border-color: var(--line-2); color: var(--ink); background: var(--bg-2); }
.btn-wire:hover { border-color: var(--hot); color: var(--hot); }
.btn-onart { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.09); backdrop-filter: blur(6px); }
.btn-onart:hover { border-color: #fff; background: rgba(255,255,255,.16); }

/* ==========================================================================
   Hero carousel
   ========================================================================== */
.hero { position: relative; height: min(100dvh, 940px); min-height: 560px; overflow: hidden; background: #05060b; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s;
  display: flex; align-items: flex-end; }
.slide.is-on { opacity: 1; visibility: visible; }
.slide-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-shade { position: absolute; inset: 0;
  background: linear-gradient(to top, #05060b 3%, rgba(5,6,11,.84) 28%, rgba(5,6,11,.26) 60%, rgba(5,6,11,.52) 100%); }
.slide-in { position: relative; width: 100%; padding: 0 0 122px; }
@media (max-width: 640px) { .slide-in { padding-bottom: 104px; } }

.slide-state { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.26); background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.slide-state .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hot-2); box-shadow: 0 0 10px var(--hot-2); }
.slide-state.is-dev .dot { background: rgba(255,255,255,.7); box-shadow: none; }

.slide-logo { width: min(520px, 74vw); margin: 18px 0 0 -14px; filter: drop-shadow(0 8px 40px rgba(0,0,0,.6)); }
.slide-title { margin-top: 18px; color: #fff; font-size: clamp(38px, 6vw, 74px); line-height: .98; font-weight: 720;
  letter-spacing: -.042em; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.slide-hook { margin-top: 12px; max-width: 520px; color: rgba(255,255,255,.9); font-size: clamp(16px, 1.7vw, 18.5px); }
.slide-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; position: relative; z-index: 3; }

/* the whole slide is a link to the game page; the buttons sit above it */
.slide-link { position: absolute; inset: 0; z-index: 1; }
.slide-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* The visible bar is small, so the button itself is a generous transparent
   hit target around it and the row never swallows clicks meant for the slide. */
.dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 5;
  display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.dot-btn {
  pointer-events: auto; cursor: pointer;
  width: 64px; height: 44px; padding: 0; border: 0; background: transparent;
  display: grid; place-items: center; border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.dot-btn::after {
  content: ""; display: block; width: 46px; height: 7px; border-radius: 999px;
  background: rgba(255,255,255,.34);
  box-shadow: 0 1px 6px rgba(0,0,0,.5);
  transition: background .2s ease, height .2s ease, width .2s ease;
}
.dot-btn:hover::after { background: rgba(255,255,255,.7); height: 9px; }
.dot-btn[aria-current="true"]::after { background: #fff; height: 9px; width: 58px; }
.dot-btn:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }

/* ==========================================================================
   Game page
   ========================================================================== */
.gp-hero { position: relative; height: min(84dvh, 760px); min-height: 480px; overflow: hidden; display: flex; align-items: flex-end; background: #05060b; }
.gp-hero .slide-art { position: absolute; inset: 0; }
.gp-hero-in { position: relative; width: 100%; padding: 0 0 60px; }

.section { padding: 80px 0; }
.section + .section { padding-top: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.sec-head h2 { font-size: clamp(22px, 2.8vw, 30px); letter-spacing: -.03em; font-weight: 660; line-height: 1.1; }

.prose { max-width: 680px; }
.prose p { color: var(--ink-2); font-size: 17px; }
.prose p + p { margin-top: 14px; }
.feature-list { margin-top: 22px; display: grid; gap: 10px; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.feature-list li::before { content: "\203A"; color: var(--hot); font-family: var(--mono); }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .modes { grid-template-columns: 1fr; } }
.mode { border: 1px solid var(--line); border-radius: 13px; background: var(--bg-2); padding: 20px 22px; }
.mode h3 { font-size: 17px; font-weight: 680; letter-spacing: -.018em; }
.mode p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 800px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .shots { grid-template-columns: 1fr; } }
.shots a { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-3);
  transition: border-color .16s ease, transform .16s ease; }
.shots a:hover { border-color: var(--hot); transform: translateY(-2px); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--bg-2); }
@media (max-width: 760px) { .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { padding: 18px 20px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
@media (max-width: 760px) { .fact:nth-child(2n) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.fact dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.fact dd { margin-top: 5px; font-size: 14.5px; font-weight: 560; }

.pending { border: 1px dashed var(--line-2); border-radius: 13px; padding: 30px; text-align: center; }
.pending .mono { display: block; margin-bottom: 8px; color: var(--ink-3); }
.pending p { color: var(--ink-3); font-size: 15px; max-width: 520px; margin: 0 auto; }

.linkbar { display: flex; gap: 11px; flex-wrap: wrap; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: 96px 0 104px; border-top: 1px solid var(--line); }
.contact-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-in h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.06; letter-spacing: -.034em; font-weight: 680; margin-top: 12px; }
.contact-in .lede { margin-top: 14px; color: var(--ink-2); max-width: 430px; }

.contact-mail {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; margin-top: 34px;
  font-size: clamp(22px, 3.4vw, 38px); font-weight: 680; letter-spacing: -.032em;
  padding: 16px 30px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2);
  transition: border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.contact-mail svg { width: .82em; height: .82em; color: var(--hot); flex: none; }
.contact-mail:hover {
  color: var(--hot); border-color: var(--hot); transform: translateY(-2px);
  box-shadow: 0 20px 50px -26px var(--hot);
}
@media (max-width: 460px) { .contact-mail { padding: 14px 18px; gap: 10px; } }

.contact-or { margin-top: 22px; color: var(--ink-3); font-size: 15px; }
.contact-or a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.contact-or a:hover { color: var(--hot); border-color: var(--hot); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: 52px 0 60px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 34px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.foot-col h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.foot-col ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.foot-col a { font-size: 14.5px; color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
.foot-brand .brand { color: var(--ink); }
.foot-brand p { margin-top: 12px; font-size: 15.5px; color: var(--ink-2); max-width: 290px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--ink-2); }
.socials a:hover { color: var(--hot); border-color: var(--hot); }
.socials svg { width: 16px; height: 16px; }
.foot-base { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .slide { transition: none; }
}
