/* Layout: a night-sky studio site. Moonlit hero → lantern-lit featured game card → upcoming projects → about → privacy → footer.
   Single deliberate dark world (the studio is named after a night inn), so no light theme. */
:root {
  --night: #141a33;        /* page ground: deep indigo night */
  --night-2: #1d2547;      /* raised surfaces */
  --night-3: #2a3463;      /* borders, quiet fills */
  --moon: #f3ecd2;         /* moonlight: main text */
  --mist: #a9b0d4;         /* secondary text, indigo-biased grey */
  --lantern: #ffb347;      /* warm accent: the inn's lantern / the orange fish */
  --lantern-deep: #e8772e;
  --lake: #3fb6c9;         /* lake water, used sparingly */
  --font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: clamp(3rem, 9vw, 5.5rem);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--night);
  color: var(--moon);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
a { color: var(--lantern); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 20px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--night-3);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--moon); text-decoration: none; font-family: var(--font-display); font-size: var(--step-1); }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav ul a { color: var(--mist); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav ul a:hover { color: var(--moon); }
@media (max-width: 560px) { .nav ul { gap: 14px; } .nav ul li.hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 32px; padding-block: 72px 88px; }
.hero h1 { font-size: var(--step-4); color: var(--moon); }
.hero h1 .glow { color: var(--lantern); }
.hero p.lede { margin-top: 18px; font-size: var(--step-1); color: var(--mist); max-width: 30ch; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.02em;
  padding: 12px 22px; border-radius: 14px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-primary { background: var(--lantern); color: var(--night); box-shadow: 0 5px 0 var(--lantern-deep); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--lantern-deep); }
.btn-ghost { color: var(--moon); border: 2px solid var(--night-3); }
.btn-ghost:hover { border-color: var(--mist); }
.moon-art { width: 100%; max-width: 320px; justify-self: center; }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 64px; }
  .moon-art { max-width: 200px; order: -1; }
}

/* ---------- sections ---------- */
section { padding-block: 72px; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lake); }
.section-head { display: grid; gap: 8px; margin-bottom: 32px; }
.section-head h2 { font-size: var(--step-3); }

/* featured game */
.featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--night-2); border: 2px solid var(--night-3); border-radius: 28px; overflow: hidden;
}
.featured .scene { background: #0f3b4a; min-height: 320px; }
.featured .scene svg { width: 100%; height: 100%; display: block; }
.featured .body { padding: 36px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.featured h3 { font-size: var(--step-3); color: var(--lantern); }
.status { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 0.8rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--night-3); color: var(--moon); }
.chip.live { background: color-mix(in srgb, var(--lake) 25%, var(--night-2)); color: var(--moon); }
.loop { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.loop li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; color: var(--mist); }
.loop li b { color: var(--moon); font-weight: 500; }
.loop .ico { width: 28px; height: 28px; border-radius: 8px; background: var(--night-3); display: grid; place-items: center; font-family: var(--font-display); color: var(--lantern); font-size: 0.9rem; }
.store-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.store {
  display: inline-flex; flex-direction: column; padding: 8px 16px; border-radius: 12px;
  border: 2px solid var(--night-3); color: var(--mist); font-size: 0.75rem; line-height: 1.2;
}
.store strong { color: var(--moon); font-size: 1rem; font-weight: 500; }
@media (max-width: 820px) {
  .featured { grid-template-columns: 1fr; }
  .featured .scene { min-height: 0; aspect-ratio: 4 / 3; max-width: 100%; }
  .featured .body { padding: 24px; }
}

/* rarity strip: a detail only this game has */
.rarity { display: flex; gap: 8px; flex-wrap: wrap; }
.rarity span { font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 8px; border: 2px solid; }
.r-common { color: #c9d2ee; border-color: #56608f; }
.r-epic { color: #d7a8ff; border-color: #8a4fc4; }
.r-legend { color: var(--lantern); border-color: var(--lantern-deep); }

/* upcoming */
.upcoming { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.teaser { background: var(--night-2); border: 2px dashed var(--night-3); border-radius: 22px; padding: 26px; display: grid; gap: 10px; min-width: 0; }
.teaser h3 { font-size: var(--step-2); }
.teaser p { color: var(--mist); }
.teaser .engine { font-size: 0.8rem; color: var(--mist); letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 640px) { .upcoming { grid-template-columns: 1fr; } }

/* about */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.about h2 { font-size: var(--step-3); }
.about .copy { display: grid; gap: 16px; color: var(--mist); max-width: 60ch; }
.about .copy strong { color: var(--moon); font-weight: 500; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 20px; } }

/* contact */
.contact { background: var(--night-2); border-radius: 28px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact h2 { font-size: var(--step-2); }
.contact p { color: var(--mist); margin-top: 6px; }
.mail { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mail code { font-family: var(--font-body); font-weight: 500; font-size: 1.05rem; background: var(--night); padding: 10px 14px; border-radius: 12px; border: 2px solid var(--night-3); user-select: all; word-break: break-all; }
.copy-btn { font-family: var(--font-body); font-weight: 500; font-size: 0.9rem; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--night-3); background: transparent; color: var(--moon); cursor: pointer; }
.copy-btn:hover { border-color: var(--mist); }
@media (max-width: 560px) { .contact { padding: 24px; } }

/* privacy */
.privacy { max-width: 70ch; display: grid; gap: 14px; color: var(--mist); }
.privacy h2 { font-size: var(--step-2); color: var(--moon); }
.privacy h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--moon); margin-top: 8px; }
.privacy .updated { font-size: 0.85rem; }

footer { border-top: 1px solid var(--night-3); padding-block: 28px; color: var(--mist); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--mist); }

.privacy-page { padding-block: 56px 72px; }
.back { display:inline-block; margin-bottom: 20px; color: var(--mist); text-decoration: none; font-weight: 500; }
.back:hover { color: var(--moon); }
