/* Velvet Ember — hand-rolled stylesheet, mobile-first, no framework */
:root {
  --ink: #14061d;
  --bg: #1b0a29;
  --panel: #251037;
  --panel-2: #2f1546;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f1e8fa;
  --muted: #b9a6cc;
  --ember: #ffa02e;
  --ember-hot: #ff6a1a;
  --gold: #ffd166;
  --grad-ember: linear-gradient(135deg, #ffd166 0%, #ffa02e 45%, #ff6a1a 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --wrap: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--gold); }
a:hover { color: #ffe19a; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

.flame-text {
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- notice ribbon ---------- */
.ribbon {
  background: #0e0416;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.45rem 1rem;
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(20, 6, 29, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.65rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 1.12rem; letter-spacing: 0.02em;
}
.brand__mark { width: 40px; height: 40px; }
.brand em { font-style: normal; color: var(--ember); }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.65rem 0.6rem; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

.site-nav {
  display: none;
  position: absolute; inset: 100% 0 auto 0;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.25rem 1.25rem;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--panel-2); color: var(--gold); }
.site-nav .nav-cta a { background: var(--grad-ember); color: var(--ink); text-align: center; margin-top: 0.4rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.78rem 1.7rem;
  border: 0; border-radius: 999px;
  font: 700 1rem var(--font);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--ember { background: var(--grad-ember); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 122, 26, 0.35); }
.btn--ember:hover { transform: translateY(-2px); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--ember); }
.btn--ghost:hover { background: rgba(255, 160, 46, 0.12); color: var(--gold); }
.btn--small { padding: 0.5rem 1.15rem; font-size: 0.9rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(255, 106, 26, 0.16), transparent 60%),
    radial-gradient(40rem 26rem at 5% 90%, rgba(120, 50, 160, 0.35), transparent 60%),
    linear-gradient(180deg, #1e0b2f 0%, var(--bg) 100%);
}
.hero__inner {
  display: grid; gap: 2rem;
  padding: 3rem 0 3.5rem;
  align-items: center;
}
.hero__kicker {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.1rem;
}
.hero__lead { color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.hero__art { margin-inline: auto; width: min(320px, 78vw); }

/* ---------- sections ---------- */
.section { padding: 3.2rem 0; }
.section--tint { background: linear-gradient(180deg, rgba(37, 16, 55, 0.65), rgba(37, 16, 55, 0)); }
.section__intro { max-width: 44rem; margin: 0 auto 2.2rem; text-align: center; }
.section__intro p { color: var(--muted); }

/* ---------- feature cards ---------- */
.perk-grid { display: grid; gap: 1rem; }
.perk {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.perk__icon {
  width: 46px; height: 46px; margin-bottom: 0.9rem;
  display: grid; place-items: center;
  background: rgba(255, 160, 46, 0.14);
  border-radius: 12px;
}
.perk h3 { margin-bottom: 0.35em; }
.perk p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- game cards ---------- */
.game-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: rgba(255, 160, 46, 0.45); }
.game-card__shot { aspect-ratio: 414 / 504; width: 100%; object-fit: cover; }
.game-card__body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.game-card__body h3 { margin: 0; font-size: 1.02rem; }
.game-card__tag { font-size: 0.78rem; color: var(--muted); }
.game-card .btn { margin-top: auto; }

/* game detail rows (games page) */
.game-detail {
  display: grid; gap: 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.6rem;
}
.game-detail__shot { border-radius: var(--radius); width: min(280px, 100%); margin-inline: auto; }
.game-detail h3 { font-size: 1.35rem; }
.game-detail__meta { font-size: 0.82rem; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.game-detail p { color: var(--muted); }

/* ---------- banner ---------- */
.banner {
  background: var(--grad-ember);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  text-align: center;
}
.banner h2 { color: var(--ink); }
.banner p { max-width: 36rem; margin: 0 auto 1.2rem; font-weight: 500; }
.banner .btn { background: var(--ink); color: var(--gold); }

/* ---------- steps ---------- */
.step-grid { display: grid; gap: 1rem; counter-reset: step; }
.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.5rem 4.4rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 1.2rem; top: 1.35rem;
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  background: var(--grad-ember);
  color: var(--ink);
  font-weight: 800;
  border-radius: 50%;
}
.step h3 { margin-bottom: 0.3em; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; gap: 1rem; }
.quote {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.quote blockquote { margin: 0 0 1rem; color: var(--muted); font-style: italic; }
.quote figcaption { font-weight: 700; }
.quote figcaption span { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 46rem; margin-inline: auto; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 2.6rem 1rem 1.2rem;
  font-weight: 700;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--ember); font-size: 1.3rem; font-weight: 800;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--muted); }

/* ---------- prose pages ---------- */
.page-hero {
  text-align: center;
  padding: 2.8rem 0 2.2rem;
  background:
    radial-gradient(46rem 20rem at 50% 0%, rgba(255, 106, 26, 0.13), transparent 65%),
    linear-gradient(180deg, #1e0b2f 0%, var(--bg) 100%);
}
.page-hero p { color: var(--muted); max-width: 40rem; margin-inline: auto; }
.crumbs { font-size: 0.82rem; margin-bottom: 0.9rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 0.35rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

.prose { max-width: 46rem; margin-inline: auto; }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; }
.prose strong { color: var(--text); }
.note-card {
  background: var(--panel);
  border-left: 4px solid var(--ember);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}
.note-card p { margin: 0; }

/* ---------- forms ---------- */
.form-card {
  max-width: 30rem; margin-inline: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  padding: 0.7rem 0.9rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--ember); outline-offset: 1px; }
.field--check { display: flex; gap: 0.6rem; align-items: flex-start; }
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex: none; accent-color: var(--ember); }
.field--check label { font-weight: 500; font-size: 0.9rem; color: var(--muted); margin: 0; }
.form-msg { border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1rem; font-size: 0.92rem; display: none; }
.form-msg.is-ok { display: block; background: rgba(80, 200, 120, 0.15); color: #9fe8b8; }
.form-msg.is-err { display: block; background: rgba(255, 90, 90, 0.14); color: #ffb3b3; }

/* ---------- game modal ---------- */
.play-modal {
  position: fixed; inset: 0; z-index: 120;
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(10, 3, 16, 0.88);
}
.play-modal.is-open { display: flex; }
.play-modal__frame {
  position: relative;
  width: min(1100px, 100%);
  background: #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.play-modal__ratio { aspect-ratio: 16 / 9; }
.play-modal__ratio iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.play-modal__close {
  position: absolute; top: -0.9rem; right: -0.9rem; z-index: 2;
  width: 2.4rem; height: 2.4rem;
  border: 0; border-radius: 50%;
  background: var(--grad-ember); color: var(--ink);
  font-size: 1.25rem; font-weight: 800; line-height: 1;
  cursor: pointer;
}
.play-modal__title {
  position: absolute; left: 0.4rem; top: -2rem;
  color: var(--text); font-weight: 700; font-size: 0.95rem;
}
@media (max-width: 640px) {
  .play-modal { padding: 0; align-items: stretch; }
  .play-modal__frame { width: 100%; border-radius: 0; display: flex; flex-direction: column; }
  .play-modal__ratio { aspect-ratio: auto; flex: 1; }
  .play-modal__ratio iframe { border-radius: 0; }
  .play-modal__close { top: 0.6rem; right: 0.6rem; }
  .play-modal__title { display: none; }
}

/* ---------- trust badges ---------- */
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.6rem;
  padding: 1.8rem 0 0.4rem;
}
.trust-badge { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; width: 108px; text-align: center; }
.trust-badge svg { width: 64px; height: 64px; }
.trust-badge span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- footer ---------- */
.site-foot {
  margin-top: 3rem;
  background: #0e0416;
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 2rem;
}
.site-foot__grid { display: grid; gap: 2rem; }
.site-foot h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.45rem; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.site-foot__brand p { color: var(--muted); font-size: 0.9rem; }
.disclaimer {
  border-top: 1px solid var(--line);
  margin-top: 2rem; padding-top: 1.6rem;
  font-size: 0.82rem; color: #8d7aa1;
}
.disclaimer strong { color: var(--muted); }
.copyright { margin-top: 1.2rem; font-size: 0.82rem; color: #8d7aa1; text-align: center; }

/* ---------- cookie notice ---------- */
.cookie-bar {
  position: fixed; inset: auto 0 0 0; z-index: 110;
  display: none;
  background: var(--panel-2);
  border-top: 1px solid var(--line);
  padding: 1rem 1.25rem;
}
.cookie-bar.is-visible { display: block; }
.cookie-bar__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.9rem;
  max-width: var(--wrap); margin-inline: auto;
}
.cookie-bar p { margin: 0; font-size: 0.86rem; color: var(--muted); }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 5rem 0; }
.lost h1 { font-size: clamp(3rem, 12vw, 5.5rem); }

/* ---------- larger screens ---------- */
@media (min-width: 700px) {
  .perk-grid, .quote-grid, .step-grid { grid-template-columns: repeat(3, 1fr); }
  .step { padding-top: 4.2rem; }
  .step::before { top: 1.3rem; }
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .game-detail { grid-template-columns: 280px 1fr; align-items: center; }
  .site-foot__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block; position: static;
    background: none; border: 0; padding: 0;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 0.2rem; }
  .site-nav a { padding: 0.5rem 0.85rem; }
  .site-nav .nav-cta a { margin: 0 0 0 0.5rem; padding: 0.5rem 1.2rem; border-radius: 999px; }
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; padding: 4.5rem 0 5rem; }
  .hero__art { width: min(400px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .game-card { transition: none; }
}
