/* Emberplay Social — site stylesheet (mobile-first, no framework) */

:root {
  --ink: #140704;
  --ink-soft: #1f0e07;
  --panel: #271a13;
  --panel-line: rgba(255, 138, 60, 0.35);
  --flame-hi: #ff8a3c;
  --flame-lo: #ff5a2e;
  --flame: #ff6a2a;
  --amber: #ffb648;
  --text: #f7f2ee;
  --text-dim: #b8a99f;
  --bar: #ff6a2a;
  --radius: 10px;
  --wrap-max: 74rem;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(52rem 30rem at 88% -6rem, rgba(255, 106, 42, 0.28), transparent 65%),
    radial-gradient(40rem 26rem at -8rem 4rem, rgba(255, 106, 42, 0.22), transparent 62%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: 1.15rem;
}

@media (min-width: 48em) { .wrap { padding-inline: 2rem; } }

.block { padding-block: 2.75rem; }
@media (min-width: 62em) { .block { padding-block: 4.25rem; } }

/* ---------- compliance bar ---------- */
.notice-bar {
  background: var(--bar);
  color: #fff;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}

/* ---------- header ---------- */
.site-head { position: relative; z-index: 40; }

.site-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand__name small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--flame-hi);
}

.site-nav { display: none; }
.site-nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.site-nav__link {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease;
}
.site-nav__link:hover { color: var(--flame-hi); }
.site-nav__link[aria-current="page"] { border-bottom-color: var(--flame); }

.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
}

.drawer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink-soft);
}
.drawer[hidden] { display: none; }
.drawer__list { list-style: none; padding: 0.75rem 0; }
.drawer__list .site-nav__link { display: block; border-bottom: 0; padding: 0.65rem 0.4rem; }

@media (min-width: 62em) {
  .site-nav { display: block; }
  .nav-burger, .drawer { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0.85rem 1.9rem;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #fff;
  background-image: linear-gradient(180deg, var(--flame-hi), var(--flame-lo));
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--ghost {
  background: transparent;
  border: 2px solid var(--flame);
  color: var(--flame-hi);
}
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }

/* ---------- hero ---------- */
.hero { text-align: center; padding-block: 3.5rem 2.5rem; }
@media (min-width: 62em) { .hero { padding-block: 6rem 3.5rem; } }

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--panel-line);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flame-hi);
  background: rgba(255, 106, 42, 0.08);
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.06;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--flame); }

.hero__lead {
  max-width: 38rem;
  margin: 1rem auto 0;
  font-size: 1.1rem;
  color: var(--text-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

/* ---------- section headings ---------- */
.head-group { max-width: 46rem; margin-inline: auto; text-align: center; margin-bottom: 2.25rem; }
.head-group h2 {
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
}
.head-group p { margin-top: 0.7rem; color: var(--text-dim); }

/* ---------- perks ---------- */
.perk-grid {
  display: grid;
  gap: 1rem;
  list-style: none;
}
@media (min-width: 48em) { .perk-grid { grid-template-columns: repeat(3, 1fr); } }

.perk-panel {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.perk-panel__icon {
  flex: none;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 106, 42, 0.14);
  color: var(--flame-hi);
}
.perk-panel h3 {
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
}
.perk-panel p { margin-top: 0.25rem; font-size: 0.9rem; color: var(--text-dim); }

/* ---------- game tiles ---------- */
.tile-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  list-style: none;
}

.tile {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  border: 2px solid var(--flame-hi);
  box-shadow: 0 10px 24px rgba(255, 90, 46, 0.18);
}

.tile__media { position: relative; aspect-ratio: 414 / 504; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }

.tile__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem;
  text-align: center;
  flex: 1;
}
.tile__body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}
.tile__blurb { font-size: 0.88rem; color: var(--text-dim); }
.tile__body .btn { margin-top: auto; }

.spark-row { display: inline-flex; gap: 0.15rem; color: var(--amber); }
.spark-row svg { width: 1.15rem; height: 1.15rem; }

/* ---------- game overlay ---------- */
.playbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(8, 3, 1, 0.88);
}
.playbox.playbox--live { display: flex; }

.playbox__stage {
  position: relative;
  width: min(100%, 60rem);
  height: min(88vh, 42rem);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--flame-hi);
  background: var(--ink);
}
@media (min-width: 40em) {
  .playbox__stage { height: auto; aspect-ratio: 16 / 9; max-height: 88vh; }
}
.playbox__stage iframe { width: 100%; height: 100%; border: 0; }

.playbox__quit {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 5;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background-image: linear-gradient(180deg, var(--flame-hi), var(--flame-lo));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}
.playbox__quit:hover { filter: brightness(1.1); }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 14px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(30rem 16rem at 15% 0%, rgba(255, 138, 60, 0.35), transparent 70%),
    radial-gradient(26rem 14rem at 90% 100%, rgba(255, 90, 46, 0.3), transparent 70%),
    var(--ink-soft);
  border: 1px solid var(--panel-line);
}
.cta-band h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; text-transform: uppercase; }
.cta-band p { max-width: 40rem; margin: 0.8rem auto 1.4rem; color: var(--text-dim); }

/* ---------- leaderboard ---------- */
.rank-list { list-style: none; display: grid; gap: 0.6rem; max-width: 36rem; margin-inline: auto; }
.rank-list__row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.7rem;
  border-radius: 99px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
}
.rank-list__pos {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}
.rank-list__row--gold .rank-list__pos { background: linear-gradient(120deg, #eea807, #f4c306); color: #241500; }
.rank-list__row--silver .rank-list__pos { background: linear-gradient(120deg, #b3c2c7, #ddecf1); color: #171b20; }
.rank-list__row--bronze .rank-list__pos { background: linear-gradient(120deg, #943e00, #cf892d); color: #fff; }
.rank-list__name { font-weight: 600; }
.rank-list__pts { margin-left: auto; font-weight: 700; color: var(--amber); }

/* ---------- testimonials ---------- */
.voice-grid { display: grid; gap: 1rem; list-style: none; }
@media (min-width: 48em) { .voice-grid { grid-template-columns: repeat(3, 1fr); } }

.voice-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.voice-card blockquote { font-size: 0.95rem; }
.voice-card blockquote p::before { content: "\201C"; color: var(--flame-hi); }
.voice-card blockquote p::after { content: "\201D"; color: var(--flame-hi); }
.voice-card footer { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.voice-card__avatar {
  flex: none;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--flame-hi), var(--flame-lo));
}
.voice-card__who b { display: block; line-height: 1.2; }
.voice-card__who span { font-size: 0.82rem; color: var(--flame-hi); }

/* ---------- FAQ ---------- */
.qa-stack { display: grid; gap: 0.8rem; max-width: 48rem; margin-inline: auto; }
.qa {
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.qa summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  font-weight: 700;
  font-size: 1.02rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--flame-hi);
  transition: transform 0.2s ease;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa__body { padding: 0 1.2rem 1.15rem; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- steps (how it works) ---------- */
.step-track { list-style: none; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 48em) { .step-track { grid-template-columns: repeat(3, 1fr); } }
.step-track li {
  counter-increment: step;
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.step-track li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--flame);
}
.step-track h3 { font-size: 1.05rem; text-transform: uppercase; }
.step-track p { margin-top: 0.35rem; font-size: 0.92rem; color: var(--text-dim); }

/* ---------- prose (policy pages, articles) ---------- */
.prose { max-width: 46rem; margin-inline: auto; }
.prose h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.prose h2 {
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 2.1rem 0 0.6rem;
}
.prose h3 { font-size: 1.12rem; font-weight: 700; margin: 1.5rem 0 0.4rem; }
.prose p { margin-bottom: 0.9rem; color: rgba(247, 242, 238, 0.88); }
.prose ul, .prose ol { margin: 0 0 1rem 1.35rem; color: rgba(247, 242, 238, 0.88); }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--flame-hi); }
.prose .note {
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--flame);
  border-radius: 6px;
  background: var(--panel);
  margin: 1.2rem 0;
}

/* ---------- forms ---------- */
.form-shell { max-width: 30rem; margin-inline: auto; }
.form-shell--wide { max-width: 40rem; }

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--flame);
  box-shadow: 0 0 0 3px rgba(255, 106, 42, 0.25);
}
.field textarea { min-height: 8rem; resize: vertical; }

.check-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.check-row input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--flame);
}
.check-row a { color: var(--flame-hi); }

.form-note { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.9rem; }

.form-done {
  padding: 1.6rem;
  border-radius: var(--radius);
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--panel-line);
}
.form-done[hidden] { display: none; }
.form-done h2 { font-size: 1.3rem; text-transform: uppercase; }
.form-done p { margin-top: 0.5rem; color: var(--text-dim); }

.form-error { color: #ff9c7a; font-size: 0.85rem; margin-bottom: 0.8rem; }
.form-error[hidden] { display: none; }

/* ---------- game detail rows ---------- */
.game-notes { display: grid; gap: 1rem; max-width: 48rem; margin-inline: auto; list-style: none; }
.game-notes li {
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.game-notes h3 { font-size: 1.08rem; text-transform: uppercase; color: var(--flame-hi); }
.game-notes p { margin-top: 0.3rem; font-size: 0.93rem; color: var(--text-dim); }

/* ---------- footer ---------- */
.site-foot {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(34rem 18rem at 82% 0%, rgba(255, 106, 42, 0.16), transparent 68%),
    var(--ink-soft);
  text-align: center;
}
.site-foot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding-block: 3rem 2rem;
}
.site-foot__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1.2rem;
  list-style: none;
}
.site-foot__nav a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.25rem 0.2rem;
}
.site-foot__nav a:hover { color: var(--flame-hi); }

.site-foot__legal {
  max-width: 44rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 99px;
  border: 1px solid var(--panel-line);
  background: rgba(255, 106, 42, 0.07);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.trust-badge svg { width: 1.35rem; height: 1.35rem; flex: none; }
a.trust-badge:hover { border-color: var(--flame-hi); }

.site-foot__fine { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }

/* ---------- misc ---------- */
.center-cta { display: flex; justify-content: center; margin-top: 2rem; }

.err-hero { text-align: center; padding-block: 5rem 3rem; }
.err-hero strong {
  display: block;
  font-size: clamp(4rem, 18vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--flame);
}

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

body.playbox-open { overflow: hidden; }
