/* Sanathan Games: the studio's shared look.
   Layout: one lamp-lit night. Full-width bands, each with an inner .wrap that carries the side gutter.
   Single dark look by choice (a night of lamps), so the colours are set once on :root. */
:root {
  color-scheme: dark;
  --night: #0b0d2a;      /* page */
  --night-2: #12143a;    /* raised bands */
  --panel: #1a1d4c;      /* cards, frames */
  --line: rgba(233, 185, 73, 0.22);
  --line-soft: rgba(244, 238, 221, 0.10);
  --gold: #e9b949;       /* lamp light: accents, links */
  --flame: #f2793b;      /* saffron: the one hot colour, buttons */
  --milk: #f4eedd;       /* text */
  --haze: #aba6cb;       /* quiet text, indigo-leaning grey */
  --sindoor: #e0533f;
  --teal: #4cc2b0;

  --display: 'Eczar', 'Tiro Devanagari Hindi', Georgia, serif;
  --body: 'Mukta', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --s-xs: 0.8125rem; --s-sm: 0.9375rem; --s-md: 1.0625rem; --s-lg: 1.25rem;
  --s-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --s-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --s-3xl: clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem);

  --wrap: 1180px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--milk);
  font: 400 var(--s-md)/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--milk); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap {
  width: 100%; max-width: calc(var(--wrap) + 2 * 32px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px), min(32px, 4vw));
  padding-right: max(16px, env(safe-area-inset-right, 0px), min(32px, 4vw));
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }

/* labels */
.eyebrow { font: 600 var(--s-xs)/1.3 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.deva { font-family: var(--display); font-weight: 500; color: var(--gold); }
.muted { color: var(--haze); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(11, 13, 42, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--milk); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name { font: 600 1.25rem/1 var(--display); letter-spacing: 0.01em; }
.brand-name small { display: block; font: 600 0.625rem/1 var(--body); letter-spacing: 0.32em; text-transform: uppercase; color: var(--haze); margin-top: 5px; }
.nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.nav a { color: var(--haze); text-decoration: none; font-weight: 500; font-size: var(--s-sm); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--milk); }
@media (max-width: 520px) { .nav .hide-sm { display: none; } .brand-name small { display: none; } }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 var(--s-md)/1 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--flame); color: #1a0d05; box-shadow: 0 8px 30px -8px rgba(242, 121, 59, 0.7); }
.btn-primary:hover { background: #ff8a4c; color: #1a0d05; }
.btn-ghost { border-color: var(--line); color: var(--milk); background: rgba(244, 238, 221, 0.03); }
.btn-ghost:hover { border-color: var(--gold); color: var(--milk); }
.btn svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* store buttons (not live yet) */
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 12px;
  background: #05061a; border: 1px solid var(--line-soft); color: var(--milk); text-decoration: none;
}
.store svg { width: 24px; height: 24px; flex: none; color: var(--gold); }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--haze); }
.store b { font-weight: 600; font-size: 1.0625rem; }
.store[aria-disabled="true"] { cursor: default; }
a.store:hover { border-color: var(--gold); color: var(--milk); }

/* ---------- sections ---------- */
.band { position: relative; padding-block: clamp(64px, 10vw, 128px); }
.band-raised { background: var(--night-2); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--s-2xl); }
.section-head p { color: var(--haze); font-size: var(--s-lg); max-width: 40rem; }
.section-head .eyebrow { color: var(--gold); font-size: var(--s-xs); }

/* ---------- studio hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero .wrap { padding-block: clamp(72px, 13vw, 168px) clamp(64px, 10vw, 128px); }
.hero-text { max-width: 40rem; display: grid; gap: 22px; }
.hero h1 { font-size: var(--s-3xl); font-weight: 600; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); color: #d9d3e8; max-width: 34rem; }
.hero-note { display: flex; align-items: center; gap: 10px; color: var(--haze); font-size: var(--s-sm); margin-top: 6px; }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 12px 2px rgba(242, 121, 59, .8); flex: none; }
.hero-mark { font: 500 var(--s-lg)/1 var(--display); color: var(--gold); display: flex; gap: 12px; align-items: baseline; }
.hero-mark span { font: 600 var(--s-xs)/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--haze); }
@media (max-width: 760px) { .hero canvas { opacity: .55; } }

/* ---------- featured game ---------- */
.feature {
  position: relative; display: grid; grid-template-columns: 1.25fr 1fr; align-items: stretch;
  background: linear-gradient(135deg, #1d1f55 0%, #2a2366 55%, #3a2a5e 100%);
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
}
.feature-art { position: relative; min-height: 360px; overflow: hidden; }
.feature-art > img.shot { position: absolute; left: -34%; top: -6%; width: 140%; height: 118%; max-width: none; object-fit: cover; object-position: 50% 40%; }
.feature-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,31,85,0) 55%, #2a2366 100%); }
.feature-text { position: relative; padding: clamp(28px, 4vw, 52px); display: grid; align-content: center; gap: 18px; min-width: 0; }
.feature-obj { position: absolute; width: clamp(110px, 12vw, 160px); left: calc(-1 * clamp(70px, 8vw, 110px)); bottom: 24px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); pointer-events: none; }
.feature h3 { font: 400 clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem)/1 'Rozha One', var(--display); }
.feature h3 .deva { font-size: .55em; margin-left: .25em; }
.feature p { color: #ddd7ee; }
.pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border-radius: 999px; background: rgba(5, 6, 26, .5); border: 1px solid var(--line); font-size: var(--s-xs); font-weight: 600; letter-spacing: .04em; color: var(--milk); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--haze); font-size: var(--s-sm); padding: 0; margin: 0; list-style: none; }
.facts li::before { content: "◆"; color: var(--gold); font-size: .6em; margin-right: 8px; vertical-align: 2px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 0; aspect-ratio: 16 / 9; }
  .feature-art::after { background: linear-gradient(180deg, rgba(42,35,102,0) 55%, #2a2366 100%); }
  .feature-obj { left: auto; bottom: auto; top: -84px; right: 16px; width: 100px; }
  .feature-text { padding-top: 40px; }
}

.forge {
  margin-top: 20px; display: flex; align-items: center; gap: 22px; padding: 26px clamp(20px, 3vw, 32px);
  border: 1px dashed var(--line); border-radius: 18px; color: var(--haze);
}
.forge svg { width: 54px; height: 54px; flex: none; color: var(--gold); opacity: .8; }
.forge h3 { font-size: var(--s-lg); color: var(--milk); margin-bottom: 4px; }
.forge > div { min-width: 0; }

/* ---------- about ---------- */
.about { overflow: hidden; }
.about-word {
  position: absolute; right: -0.08em; top: 50%; transform: translateY(-50%);
  font: 600 clamp(8rem, 26vw, 22rem)/1 var(--display); color: rgba(233, 185, 73, 0.05); pointer-events: none; user-select: none; white-space: nowrap;
}
.statement { font: 500 clamp(1.6rem, 1.1rem + 2.2vw, 2.75rem)/1.25 var(--display); max-width: 52rem; position: relative; }
.statement em { font-style: normal; color: var(--gold); }
.vows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: clamp(48px, 7vw, 80px); position: relative; }
.vow { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.vow h3 { font: 600 var(--s-xs)/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.vow p { color: #d6d0e6; }
@media (max-width: 760px) { .vows { grid-template-columns: 1fr; } }

/* ---------- contact & footer ---------- */
.contact .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.contact h2 { font-size: var(--s-2xl); margin-bottom: 14px; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mail-addr { font: 500 clamp(1.15rem, 0.9rem + 1.3vw, 1.75rem)/1.2 var(--display); color: var(--milk); user-select: all; word-break: break-all; }
.copy { background: none; border: 1px solid var(--line); color: var(--gold); border-radius: 999px; padding: 8px 16px; font: 600 var(--s-sm)/1 var(--body); cursor: pointer; min-height: 40px; }
.copy:hover { border-color: var(--gold); }
@media (max-width: 760px) { .contact .wrap { grid-template-columns: 1fr; } }

.site-foot { border-top: 1px solid var(--line-soft); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--haze); font-size: var(--s-sm); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-foot a { color: var(--haze); text-decoration: none; }
.site-foot a:hover { color: var(--milk); }

/* reveal on scroll: visible at rest; only nudges in when JS and motion allow */
.js .rise { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rise.pending { opacity: .001; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { .js .rise, .js .rise.pending { opacity: 1; transform: none; transition: none; } }

/* ---------- plain document pages (privacy) ---------- */
.doc { max-width: 46rem; }
.doc h1 { font-size: var(--s-2xl); margin-bottom: 8px; }
.doc h2 { font-size: var(--s-lg); margin: 36px 0 8px; }
.doc p, .doc li { color: #ddd7ee; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; }
.doc .short { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 14px 18px; margin: 24px 0; background: rgba(244,238,221,.03); }
.table-scroll { overflow-x: auto; margin-top: 12px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: var(--s-sm); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line-soft); }
.doc th { color: var(--gold); font-weight: 600; }
