/* Home page only. The legal pages use style.css alone. Colours come from style.css's tokens, plus the dusk
   palette of the app icon (plum night, sunset orange) for the bar, hero and footer. */
:root {
  --dusk: #231f20;
  --dusk-2: #3a2a3f;
  --sun: #f5a524;
  --sun-deep: #e8662f;
  --on-dusk: #fbf1e4;
  --on-dusk-muted: #d6c6b4;
}
@media (prefers-color-scheme: dark) {
  :root { --dusk: #15121a; }
}

body.home { overflow-x: hidden; }
.home h1, .home h2, .home h3 { letter-spacing: -.01em; }

/* top bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--dusk) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.bar-in {
  max-width: 1120px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 16px;
}
.home .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dusk); font-size: 17px; }
.home .brand img { border-radius: 7px; }
.home .brand span { color: var(--sun); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--on-dusk-muted); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--on-dusk); background: rgba(255, 255, 255, .08); }
.home .lang { background: transparent; border-color: rgba(255, 255, 255, .18); }
.home .lang button { color: var(--on-dusk-muted); padding: 5px 11px; }
.home .lang button[aria-pressed="true"] { background: var(--sun); color: #2a1a0c; }

/* hero */
.hero { position: relative; isolation: isolate; color: var(--on-dusk); overflow: hidden; background: var(--dusk); }
.hero-bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(35, 31, 32, .35) 0%, rgba(35, 31, 32, .55) 45%, var(--dusk) 100%),
    linear-gradient(90deg, rgba(58, 42, 63, .75) 0%, rgba(58, 42, 63, 0) 70%);
}
.hero-in { max-width: 1120px; margin: 0 auto; padding: 72px 16px 64px; }
.hero-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.hero h1 {
  font-size: clamp(40px, 7vw, 72px); line-height: 1.02; margin: 20px 0 14px; font-weight: 800;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
}
.tagline { font-size: clamp(17px, 2.2vw, 21px); max-width: 620px; margin: 0 0 28px; color: var(--on-dusk); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-meta { margin: 16px 0 0; font-size: 14px; color: var(--on-dusk-muted); }
.age { display: inline-block; padding: 0 7px; border-radius: 6px; background: var(--sun-deep); color: #fff; font-weight: 700; font-size: 13px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn.primary { background: linear-gradient(180deg, var(--sun) 0%, var(--sun-deep) 100%); color: #2a1a0c; box-shadow: 0 6px 18px rgba(232, 102, 47, .35); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(232, 102, 47, .45); }
.btn.ghost { color: inherit; border-color: currentColor; background: transparent; }
.hero .btn.ghost { color: var(--on-dusk); border-color: rgba(255, 255, 255, .45); }
.btn.ghost:hover { background: rgba(127, 127, 127, .12); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn:focus-visible, .nav a:focus-visible, .gallery a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* sections */
.home main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0 8px; scroll-margin-top: 64px; }
.section h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 0 0 8px; padding: 0; }
.lead { color: var(--muted); max-width: 640px; margin: 0 0 28px; }

/* platforms */
.platforms { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plat {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
}
.plat.is-you { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plat.is-you::after {
  content: attr(data-you); position: absolute; top: 14px; right: 14px;
  font-size: 12px; font-weight: 700; color: var(--accent);
}
.glyph { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plat h3 { margin: 8px 0 0; font-size: 20px; }
.plat-sub { color: var(--muted); font-size: 14px; margin: 0; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-top: 4px; }
.badge.live { background: #dff3e4; color: #1d6b35; }
.badge.soon { background: var(--code); color: var(--muted); }
@media (prefers-color-scheme: dark) { .badge.live { background: #1f3a27; color: #9fe0b1; } }
.plat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.plat-actions[hidden] { display: none; }
.plat .btn.ghost { color: var(--accent); }
.plat-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* features */
.features { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; border-top: 4px solid var(--sun); }
.feat h3 { margin: 0 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 16px; }

/* gallery */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery a { display: block; border-radius: 12px; overflow: hidden; background: var(--code); aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* 18+ note */
.adult p {
  background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; margin: 0;
}

/* footer */
.foot { margin-top: 72px; background: var(--dusk); color: var(--on-dusk-muted); font-size: 14px; }
.foot-in { max-width: 1120px; margin: 0 auto; padding: 24px 16px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { color: var(--on-dusk-muted); }
.foot a:hover { color: var(--on-dusk); }

@media (max-width: 640px) {
  .nav { display: none; }
  .home .lang { margin-left: auto; }
  .hero-in { padding: 48px 16px 44px; }
  .hero-icon { width: 68px; height: 68px; border-radius: 16px; }
  .cta .btn { flex: 1 1 100%; }
  .section { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .gallery img { transition: none; }
}

/* gallery viewer */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(15, 12, 16, .97); color: #f3ece4;
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgba(15, 12, 16, .6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage:focus { outline: none; }
.lb-stage { display: flex; align-items: center; justify-content: center; padding: 56px 72px 8px; min-height: 0; touch-action: pan-y; }
.lb-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  user-select: none; -webkit-user-drag: none;
}
.lb-bar {
  display: flex; align-items: baseline; justify-content: center; gap: 14px;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); text-align: center;
}
.lb-cap { margin: 0; font-size: 16px; }
.lb-count { font-size: 13px; color: #b9ab9c; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.lb-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 14px; top: 12px; }
@media (max-width: 640px) {
  .lb-stage { padding: 60px 8px 4px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); transform: none; width: 44px; height: 44px; }
  .lb-bar { padding-left: 64px; padding-right: 64px; flex-direction: column; align-items: center; gap: 2px; min-height: 68px; justify-content: center; }
}
