/* MyLila marketing — tokens from mylila.grok.me */
:root {
  --bg: #120c08;
  --surface: #1c140e;
  --surface-2: #241810;
  --fg: #f7ecd4;
  --muted: #c4a574;
  --primary: #62bd35;
  --primary-shadow: #1a4a0f;
  --gold: #d4a24a;
  --gold-soft: #d4a24a73;
  --deep: #7a4a1e;
  --ink: #2b1705;
  --border: #8a5a22;
  --parch-from: #f9ecd4;
  --parch-to: #f0d9a8;
  --parch-mid: #f6e4bf;
  --white: #fffaf0;
  --font-display: "Cinzel", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius-card: 22px;
  --radius-btn: 12px;
  --max: 70rem;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
html:focus-within { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--fg);
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(212, 162, 74, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(122, 74, 30, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 30% at 0% 80%, rgba(98, 189, 53, 0.06), transparent 55%),
    var(--bg);
  line-height: 1.55;
  min-height: 100dvh;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #e8c47a; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  font-weight: 800;
  border-radius: 8px;
}
.skip:focus { top: 0.6rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}
.header-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--fg);
}
.brand img {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.7rem;
  box-shadow: 0 0 0 1px var(--gold-soft);
  object-fit: cover;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
}
.nav a:hover { color: var(--gold); background: #ffffff0d; }
.nav a[aria-current="page"] { color: var(--gold); }

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: var(--radius-btn);
  box-shadow: 0 5px 0 var(--primary-shadow);
  padding: 0.55rem 1.15rem;
  font-size: 0.95rem;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.play-btn:hover { color: #fff !important; filter: brightness(1.06); }
.play-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--primary-shadow);
}
.play-btn--lg {
  width: 100%;
  padding: 0.85rem 1.2rem;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

/* Layout */
.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section { padding: 3.4rem 0; }
.section-tight { padding: 2.4rem 0 3.6rem; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deep);
  text-align: center;
  margin: 0 0 0.35rem;
}
.eyebrow--light { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg);
  margin: 0;
}
.ink { color: var(--ink); }

.lede {
  text-align: center;
  color: color-mix(in srgb, var(--fg) 78%, transparent);
  max-width: 38rem;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.85rem 0 0;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 800;
}
.ornament::before,
.ornament::after {
  content: "";
  width: 3.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Hero */
.hero {
  padding: 1.4rem 0 2.2rem;
}
.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2.4rem; }
}

.game-card {
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 5px solid var(--deep);
  background: var(--bg);
  box-shadow:
    0 25px 50px -12px #000000a6,
    0 0 36px var(--gold-soft);
}
.game-card video,
.game-card img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: #000;
}
.game-card-body {
  background: linear-gradient(to bottom, var(--parch-from), var(--parch-to));
  padding: 1.05rem 1.1rem 1.2rem;
  text-align: center;
}
.game-card-body h1 {
  color: var(--ink);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
}
.game-card-body .subhead {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--deep);
}
.game-card-body .tagline {
  margin: 0.45rem 0 0.85rem;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
  font-size: 0.95rem;
}

.hero-copy h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  color: var(--fg);
}
.hero-copy p {
  color: color-mix(in srgb, var(--fg) 82%, transparent);
  font-size: 1.08rem;
  margin: 0.85rem 0 1.2rem;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}
.link-quiet {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 0.2rem;
}
.link-quiet:hover { color: var(--gold); }

/* How it works */
.steps {
  display: grid;
  gap: 1rem;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.parch-card {
  background: linear-gradient(to bottom, var(--parch-from), var(--parch-to));
  color: var(--ink);
  border: 4px solid var(--deep);
  border-radius: 18px;
  padding: 1.2rem 1.15rem 1.3rem;
  box-shadow: 0 10px 0 #78350f59;
}
.parch-card h3 {
  color: var(--ink);
  font-size: 1.15rem;
  margin: 0.15rem 0 0.45rem;
}
.parch-card p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  font-size: 0.95rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid var(--deep);
}

.section-head {
  text-align: center;
  margin-bottom: 1.6rem;
}
.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

/* Mission */
.mission {
  background:
    linear-gradient(to bottom, transparent, color-mix(in srgb, var(--surface) 80%, transparent));
}
.mission-panel {
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, #000);
  border-radius: 20px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: 0 0 36px #d4a24a2e;
  text-align: center;
}
.mission-panel h2 { margin-bottom: 0.8rem; }
.mission-panel p {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1.12rem;
  color: var(--fg);
}

.values-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}
.chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  min-width: 6.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: linear-gradient(to bottom, var(--parch-from), var(--parch-to));
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 0.4rem 0.7rem 0.38rem;
}
.chip-s {
  font-size: 0.82rem;
  line-height: 1.1;
}
.chip-en {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--deep);
  line-height: 1.15;
}
.mission-panel p + p { margin-top: 0.85rem; }

/* Featured callout (Wisdom help→KARMA) */
.feature-highlight {
  border: 2px solid color-mix(in srgb, var(--gold) 70%, transparent);
  background:
    radial-gradient(ellipse at top, color-mix(in srgb, var(--gold) 18%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 90%, #000);
  border-radius: 22px;
  padding: clamp(1.5rem, 4.5vw, 2.6rem);
  box-shadow: 0 0 48px #d4a24a40;
  text-align: center;
}
.feature-highlight h2 { margin-bottom: 0.35rem; }
.feature-highlight .feature-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: 1.05rem;
}
.feature-highlight p {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1.12rem;
  color: var(--fg);
}
.feature-highlight p + p { margin-top: 0.85rem; }

/* Avatars */
.hero-grid-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .hero-grid-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .hero-grid-cards.eight { grid-template-columns: repeat(4, 1fr); }
}

 .avatar-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, var(--parch-from), var(--parch-to));
  border: 3px solid var(--gold);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px #00000066;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.avatar-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
 .avatar-art {
  position: relative;
  height: 16rem;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, #c48a4a66, transparent 72%),
    linear-gradient(180deg, #4a321f, #24160e);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
 .avatar-art img {
  height: 15.2rem;
  width: auto;
  max-width: 92%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px #00000080);
}
.avatar-body {
  background: linear-gradient(to bottom, var(--parch-from), var(--parch-to));
  padding: 0.85rem 0.85rem 1rem;
  flex: 1;
}
.avatar-body h3 {
  color: var(--ink);
  font-size: 1.15rem;
}
.subtitle {
  margin: 0.15rem 0 0.4rem;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--deep);
  letter-spacing: 0.02em;
}
.unlock {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink);
}
.who {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
}
.quote {
  margin: 0.65rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--deep) 35%, transparent);
  font-style: italic;
  font-size: 0.86rem;
  color: var(--ink);
}

.avatar-card--wide .avatar-art { height: 16rem; }
.avatar-card--wide .avatar-art img { height: 15.2rem; }
@media (min-width: 700px) {
  .avatars-full {
    display: grid;
    gap: 1.1rem;
  }
  .avatars-full .avatar-card--wide {
    display: grid;
    grid-template-columns: 12.5rem 1fr;
  }
  .avatars-full .avatar-art {
    height: 100%;
    min-height: 16rem;
    border-radius: 15px 0 0 15px;
  }
}

.page-hero {
  padding: 2.2rem 0 0.4rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

/* Form */
.access {
  padding-bottom: 4rem;
}
.form-card {
  max-width: 32rem;
  margin: 0 auto;
  background: linear-gradient(to bottom, var(--parch-from), var(--parch-to));
  border: 5px solid var(--deep);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.2rem 1.3rem;
  box-shadow: 0 10px 0 #78350f59, 0 0 36px #d4a24a2e;
  color: var(--ink);
}
.form-card h2 { color: var(--ink); text-align: center; }
.form-card .hint {
  text-align: center;
  margin: 0.45rem 0 1rem;
  color: color-mix(in srgb, var(--ink) 75%, transparent);
  font-size: 0.95rem;
}
label {
  display: block;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin: 0.7rem 0 0.3rem;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
textarea { min-height: 6.5rem; resize: vertical; }
.optional { font-weight: 600; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit:disabled { opacity: 0.6; cursor: wait; }
.field-error {
  min-height: 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #8a1f12;
  margin: 0.2rem 0 0;
}
.submit {
  margin-top: 0.9rem;
  width: 100%;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  border: 2px solid var(--gold);
  border-radius: var(--radius-btn);
  box-shadow: 0 5px 0 var(--primary-shadow);
  padding: 0.8rem 1rem;
  cursor: pointer;
}
.submit:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--primary-shadow);
}
.form-note {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--ink) 62%, transparent);
}
.form-success {
  text-align: center;
  padding: 1.4rem 0.4rem 0.6rem;
}
.form-success p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0.3rem 0 0;
}

.hidden { display: none !important; }

/* Footer */
.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
  padding: 1.4rem var(--pad) 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-nav {
  display: flex;
  gap: 0.9rem;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}
.footer-nav a:hover { color: var(--gold); }

.ig-note {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  text-align: center;
}
.ig-note .ig-link,
.ig-link {
  color: var(--deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.ig-note .ig-link:hover { color: var(--gold); }

@media (max-width: 520px) {
  .nav a:not(.play-btn) { padding: 0.4rem 0.45rem; font-size: 0.86rem; }
  .brand-sub { display: none; }
  .avatar-art { height: 11.2rem; }
  .avatar-art img { height: 10.4rem; }
  .play-btn { padding: 0.48rem 0.75rem; font-size: 0.82rem; }
}

.avatar-card[id] { scroll-margin-top: calc(var(--header-h) + 0.8rem); }
#early-access, #how, #mission, #avatars { scroll-margin-top: calc(var(--header-h) + 0.6rem); }

/* Rate-the-app stars */
.rate-card .hint { margin-bottom: 0.55rem; }
.star-row {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  margin: 0.2rem 0 0.15rem;
}
.star {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.15rem 0.2rem;
  margin: 0;
  font-size: 2.55rem;
  line-height: 1;
  color: #c9b089;
  cursor: pointer;
  text-shadow: 0 1px 0 #fff8e6;
  transition: color 0.12s ease, transform 0.12s ease;
}
.star:hover,
.star.is-hover,
.star.is-on {
  color: var(--gold);
  transform: translateY(-2px) scale(1.06);
}
.star:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}
.star-caption {
  text-align: center;
  margin: 0.1rem 0 0.35rem;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--deep);
  min-height: 1.2rem;
}
.rate-card textarea { min-height: 5.2rem; }

.tenets-grid { margin-top: 0.5rem; }
@media (min-width: 720px) {
  .tenets-grid { grid-template-columns: repeat(2, 1fr); }
}

.live-board-wrap { margin: 0 auto 1.6rem; }
.live-board-panel {
  background: linear-gradient(180deg, #f9ecd4, #f0d9a8);
  border: 3px solid var(--gold);
  border-radius: 1.1rem;
  padding: 1rem 1rem 0.85rem;
  color: var(--ink);
  box-shadow: 0 10px 0 color-mix(in srgb, var(--deep) 35%, transparent);
}
.live-board-panel h2 {
  font-family: var(--font-display);
  text-align: center;
  margin: 0.2rem 0 0.25rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  color: var(--ink);
}
.live-board-sub {
  text-align: center;
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}
.live-board-meta {
  text-align: center;
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep);
}
.board-head, .board-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.5rem 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
}
.board-head {
  position: sticky;
  top: 0;
  background: #f6e4bf;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--deep);
  z-index: 1;
}
.board-body {
  max-height: min(52vh, 26rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 2px solid var(--gold);
  border-radius: 0.85rem;
  background: color-mix(in srgb, #fff 50%, transparent);
}
.board-row {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}
.board-row:nth-child(even) { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.board-rank { font-weight: 800; color: var(--deep); }
.board-name { min-width: 0; }
.board-name strong { display: inline; margin-right: 0.25rem; }
.board-badges { display: inline; }
.board-badge {
  display: inline-flex;
  align-items: center;
  margin: 0.1rem 0.2rem 0.1rem 0;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: #f6e4bf;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--deep);
  white-space: nowrap;
}
.board-stats { text-align: right; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.board-empty { text-align: center; padding: 1.2rem 0.8rem; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.board-play-note { text-align: center; margin: 0.75rem 0 0; font-size: 0.88rem; }
@media (max-width: 520px) {
  .board-badge { font-size: 0.58rem; padding: 0.1rem 0.32rem; }
  .board-stats { font-size: 0.75rem; }
}


/* How-it-works 4-up when space */
@media (min-width: 900px) {
  .how-grid-4 { grid-template-columns: repeat(4, 1fr); }
}


.board-updated {
  text-align: center;
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--gold);
}
.board-updated[hidden] { display: none; }
