/* Untold Devotion Interactive — site styles
   Brand kit v1.1. Locked palette: purple + gold on midnight. */

:root {
  --midnight: #05050A;
  --disc-midnight: #0B0A13;
  --deep-violet: #361267;
  --purple: #A03DED;
  --lilac: #D468F9;
  --gold: #D7B925;
  --warm-gold: #F0D238;
  --antique-gold: #897708;
  --cream: #F7F2E8;
  --seam-cream: #F4E4C2;
  --ink: #20142F;

  --text: var(--cream);
  --text-dim: #b9b2c4;
  --hairline: rgba(247, 242, 232, 0.12);
  --surface: rgba(247, 242, 232, 0.035);

  --display: "EB Garamond", Georgia, "Times New Roman", serif;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--midnight);
  color: var(--text);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Ambient brand glow, purple top-left into gold bottom-right */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58rem 40rem at 12% -8%, rgba(160, 61, 237, 0.20), transparent 62%),
    radial-gradient(48rem 34rem at 92% 108%, rgba(215, 185, 37, 0.13), transparent 60%);
  pointer-events: none;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--lilac); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--warm-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--cream); color: var(--ink);
  padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 600; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 10, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--display);
  font-size: 21px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.1;
}
.brand-sub {
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; line-height: 1.1;
}

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--text-dim); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ui); font-size: 16px; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--deep-violet));
  color: #fff;
  box-shadow: 0 8px 26px rgba(160, 61, 237, 0.34);
}
.btn-primary:hover { box-shadow: 0 12px 34px rgba(160, 61, 237, 0.46); }

.btn-ghost { background: transparent; border-color: var(--hairline); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--warm-gold); }

.btn[aria-disabled="true"] {
  opacity: .45; cursor: not-allowed; pointer-events: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Play badge — text lockup, no third-party image dependency */
.badge-store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px 12px 20px; border-radius: 12px;
  background: var(--cream); color: var(--ink);
  border: 1px solid var(--seam-cream);
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 22px rgba(0,0,0,.4);
}
.badge-store:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.badge-store svg { width: 26px; height: 29px; flex: none; }
.badge-store .badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.badge-store .badge-small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.badge-store .badge-big { font-size: 18px; font-weight: 700; letter-spacing: .01em; }

.badge-soon {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px 12px 20px; border-radius: 12px;
  border: 1px dashed var(--hairline); color: var(--text-dim); background: transparent;
}
.badge-soon svg { width: 26px; height: 29px; flex: none; opacity: .5; }
.badge-soon .badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.badge-soon .badge-small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.badge-soon .badge-big { font-size: 18px; font-weight: 700; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; font-family: var(--ui); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--ui); font-size: 12px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px;
}
.lede { font-size: 1.18rem; color: var(--text-dim); max-width: 62ch; }
.gold { color: var(--warm-gold); }
.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { max-width: 62ch; margin-bottom: 44px; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(64px, 11vw, 132px); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 6vw, 72px); align-items: center;
}
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(340px, 78%); filter: drop-shadow(0 24px 60px rgba(160, 61, 237, .42)); }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); margin: 0; font-size: 15.5px; }
.card .num {
  font-family: var(--display); font-size: 2rem; color: var(--gold);
  line-height: 1; margin-bottom: 12px;
}

/* Route cards — homepage Games / Apps split */
.route-card { display: block; color: var(--text); transition: border-color .2s ease, transform .2s ease; }
.route-card:hover { text-decoration: none; border-color: rgba(215,185,37,.45); transform: translateY(-3px); }
.route-card p { color: var(--text-dim); }
.route-link { font-weight: 600; font-size: 15px; color: var(--lilac); }
.route-card:hover .route-link { color: var(--warm-gold); }

/* Game card */
.game-card {
  display: grid; grid-template-columns: 168px 1fr; gap: 30px; align-items: center;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 20px; padding: 32px;
  transition: border-color .2s ease, transform .2s ease;
}
.game-card:hover { border-color: rgba(215,185,37,.4); transform: translateY(-3px); }
.game-card .art {
  width: 168px; height: 168px; border-radius: 34px; overflow: hidden;
  background: linear-gradient(150deg, var(--deep-violet), var(--midnight));
  display: grid; place-items: center;
  border: 1px solid var(--hairline);
}
.game-card .art img { width: 100%; height: 100%; object-fit: cover; }
.game-card h3 { font-family: var(--display); font-size: 1.75rem; font-weight: 600; margin-bottom: 6px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.meta li {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--hairline); color: var(--text-dim);
}

/* Screenshots */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 1fr);
  gap: 20px; overflow-x: auto; padding-bottom: 14px;
  scroll-snap-type: x mandatory;
}
.shot {
  aspect-ratio: 9 / 19.5; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, var(--disc-midnight), #150d24);
  border: 1px solid var(--hairline);
  display: grid; place-items: center; text-align: center;
  color: var(--text-dim); font-size: 13px; padding: 20px;
  scroll-snap-align: start;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* Callout */
.callout {
  border: 1px solid var(--hairline); border-left: 3px solid var(--gold);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 26px 30px;
}
.callout p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Prose (privacy, legal) ---------- */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; }
.prose ul { padding-left: 1.3em; color: var(--text-dim); }
.prose li { margin-bottom: .5em; }
.prose .updated { color: var(--text-dim); font-size: 15px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 52px; margin-top: 40px;
  color: var(--text-dim); font-size: 14.5px;
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--cream); }
.footer-legal { margin-top: 28px; font-size: 13.5px; opacity: .72; max-width: 70ch; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; }
  .hero-art img { width: min(220px, 55%); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .game-card { grid-template-columns: 1fr; justify-items: start; }
  .nav { gap: 18px; font-size: 14px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 17px; white-space: nowrap; }
  .brand img { width: 28px; height: 28px; }
  .site-header .wrap { gap: 14px; min-height: 60px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .btn, .badge-store, .badge-soon { width: 100%; }
  .btn-row { gap: 10px; }
  .game-card .art { width: 128px; height: 128px; border-radius: 26px; }
  .card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
