/* GAMEBORN — shared site styles
   Design: warm parchment, high-contrast, generous type — built to be easy on the eyes. */

:root{
  --bg: #faf5e9;
  --bg-soft: #f2ead6;
  --panel: #fffdf8;
  --panel-border: #e6d9b8;
  --ink: #241d13;
  --ink-soft: #5b5340;
  --ink-faint: #837a63;
  --jade: #1f6b52;
  --jade-deep: #0f4433;
  --jade-tint: #e4f0ea;
  --gold: #a8781f;
  --gold-bright: #d79f2c;
  --red: #a3392c;
  --focus: #1f6b52;
  --shadow: 0 18px 40px -22px rgba(36, 29, 19, 0.35);
  --shadow-soft: 0 10px 24px -16px rgba(36, 29, 19, 0.28);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark){
  :root{
    --bg: #14110c;
    --bg-soft: #1b1712;
    --panel: #1f1b14;
    --panel-border: #3a3222;
    --ink: #f5efe0;
    --ink-soft: #cabf9f;
    --ink-faint: #9a8f72;
    --jade: #4fb894;
    --jade-deep: #2e7a5c;
    --jade-tint: #1c2e26;
    --gold: #e0aa42;
    --gold-bright: #f0c05e;
    --red: #d4695a;
    --focus: #4fb894;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
    --shadow-soft: 0 10px 24px -14px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: var(--jade); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection{ background: var(--gold-bright); color: #201a0c; }

h1, h2, h3, h4{
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

.wrap{
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

@media (max-width: 640px){
  body{ font-size: 1.0625rem; }
  .wrap{ padding: 0 20px; }
}

/* ---------- header ---------- */
header.site{
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}
header.site .bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  white-space: nowrap;
}
.brand img{ width: 36px; height: 36px; border-radius: 10px; }
.brand .sub{
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1px;
}
nav.site{
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
nav.site a{
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.site a:hover{ color: var(--jade); }
nav.site a.current{ color: var(--jade); }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary{ background: var(--jade); color: #fdfbf3; box-shadow: var(--shadow-soft); }
.btn-primary:hover{ background: var(--jade-deep); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--panel-border); }
.btn-ghost:hover{ border-color: var(--jade); color: var(--jade); }
.btn-sm{ padding: 10px 18px; font-size: 0.9rem; }
header.site .btn{ padding: 10px 20px; font-size: 0.92rem; }

/* ---------- hero ---------- */
.hero{
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero .grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--jade);
  font-weight: 700;
  margin: 0 0 16px;
}
.hero h1{
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  margin-bottom: 0.4em;
}
.hero .lede{
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero .cta-row{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.store-badge img{ height: 58px; width: auto; }
.trust-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}
.trust-row span{ display: inline-flex; align-items: center; gap: 7px; }
.trust-row .dot{ color: var(--panel-border); }

.hero-art{
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone{
  border-radius: 30px;
  border: 6px solid var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--panel);
  width: 240px;
}
.phone img{ display: block; width: 100%; }
.hero-art .phone.back{
  position: absolute;
  width: 210px;
  transform: rotate(8deg) translate(64px, 18px);
  opacity: 0.92;
  z-index: 1;
}
.hero-art .phone.front{
  position: relative;
  transform: rotate(-6deg) translate(-46px, -6px);
  z-index: 2;
}

/* ---------- sections ---------- */
section{ padding: 64px 0; }
section.alt{ background: var(--bg-soft); }
.section-head{
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p{ color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* ---------- feature grid ---------- */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card{
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
}
.feature-card .icon{
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--jade-tint);
  color: var(--jade);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}
.feature-card h3{ font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p{ color: var(--ink-soft); margin: 0; font-size: 1rem; }
.feature-card.wide{ grid-column: span 1; }

/* ---------- screenshots ---------- */
.shots-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.shot-card{ text-align: center; }
.shot-frame{
  border-radius: 22px;
  border: 5px solid var(--panel);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 16px;
}
.shot-frame img{ display: block; width: 100%; }
.shot-card strong{ display: block; font-size: 1rem; margin-bottom: 4px; }
.shot-card span{ color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- quote / audience ---------- */
.audience{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.audience ul{ list-style: none; margin: 0 0 0; padding: 0; display: grid; gap: 16px; }
.audience li{
  display: flex;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.audience li .mark{
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--jade);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  margin-top: 2px;
}
.stat-card{
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  box-shadow: var(--shadow-soft);
}
.stat-card .rating{
  font-family: "Fraunces", serif;
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-card .stars{ color: var(--gold-bright); font-size: 1.2rem; letter-spacing: 2px; margin: 10px 0 6px; }
.stat-card .stat-note{ color: var(--ink-soft); margin-bottom: 26px; }
.stat-card blockquote{
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
  font-style: italic;
  color: var(--ink);
  font-size: 1.05rem;
}
.stat-card blockquote cite{
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* ---------- ritual widget ---------- */
.ritual-card{
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.zodiac-picker{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 22px 0 8px;
}
.zodiac-picker button{
  border: 1px solid var(--panel-border);
  background: var(--bg-soft);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.zodiac-picker button:hover{ border-color: var(--jade); color: var(--jade); }
.zodiac-picker button[aria-pressed="true"]{ background: var(--jade); border-color: var(--jade); color: #fff; }
.ritual-result{
  margin-top: 22px;
  min-height: 32px;
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.6;
}
.ritual-result .lucky{ color: var(--gold); font-weight: 700; }
.ritual-hint{ color: var(--ink-faint); font-size: 0.88rem; margin-top: 18px; }

/* ---------- cta banner ---------- */
.cta-banner{
  background: var(--jade-deep);
  color: #fdfbf3;
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
}
.cta-banner h2{ color: #fdfbf3; }
.cta-banner p{ color: #d9e8e0; font-size: 1.1rem; max-width: 50ch; margin: 0 auto 28px; }
.cta-banner .btn-primary{ background: var(--gold-bright); color: #241d13; }
.cta-banner .btn-primary:hover{ background: #e6b64f; }

/* ---------- footer ---------- */
footer.site{
  padding: 48px 0 60px;
  border-top: 1px solid var(--panel-border);
}
footer.site .cols{
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
footer.site .links{ display: flex; gap: 22px; flex-wrap: wrap; }
footer.site a{ text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
footer.site a:hover{ color: var(--jade); }
footer.site address{ font-style: normal; color: var(--ink-faint); font-size: 0.9rem; }
footer.site .copy{ color: var(--ink-faint); font-size: 0.85rem; margin-top: 18px; }

/* ---------- studio / history page ---------- */
.timeline{
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--panel-border);
}
.timeline li{
  position: relative;
  padding: 0 0 40px 34px;
}
.timeline li::before{
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--jade);
  border: 3px solid var(--bg);
}
.timeline .year{ color: var(--gold); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.timeline h3{ margin: 4px 0 6px; font-size: 1.25rem; }
.timeline p{ color: var(--ink-soft); margin: 0; max-width: 60ch; }

.games-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.game-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  gap: 12px;
  transition: border-color .15s ease, transform .15s ease;
}
.game-card:hover{ border-color: var(--jade); transform: translateY(-3px); }
.game-card img{ width: 68px; height: 68px; border-radius: 16px; }
.game-card span{ font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.game-card small{ color: var(--ink-faint); font-size: 0.8rem; }

.oni-card{
  background: #14110c;
  color: #f2ede0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.oni-card img.banner{ width: 100%; height: 100%; object-fit: cover; }
.oni-body{ padding: 40px; align-self: center; }
.oni-body .eyebrow{ color: #9fd8bf; }
.oni-body h2{ color: #fdfbf3; font-size: 1.9rem; }
.oni-body p{ color: #c8c2b3; font-size: 1.02rem; }
.oni-body .btn-row{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn-steam{ background: #7c5cff; color: #fff; }
.btn-steam:hover{ background: #6a4ce6; }
.btn-discord{ background: transparent; color: #f2ede0; border-color: #3a3527; }
.btn-discord:hover{ border-color: #6a634e; }

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .hero .grid{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; min-height: 340px; margin-bottom: 8px; }
  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
  .shots-row{ grid-template-columns: repeat(2, 1fr); }
  .audience{ grid-template-columns: 1fr; }
  .games-grid{ grid-template-columns: repeat(3, 1fr); }
  .oni-card{ grid-template-columns: 1fr; }
  .oni-card img.banner{ max-height: 260px; }
}
@media (max-width: 620px){
  .feature-grid{ grid-template-columns: 1fr; }
  .shots-row{ grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .games-grid{ grid-template-columns: repeat(2, 1fr); }
  nav.site{ display: none; }
  .hero{ padding: 40px 0 40px; }
  .hero-art .phone{ width: 200px; }
  .hero-art .phone.back{ width: 175px; transform: rotate(8deg) translate(46px, 14px); }
  .cta-banner{ padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
