/* Vaultspin — main stylesheet (mobile-first, no framework) */
:root {
  --vx-bg: #0a0a0e;
  --vx-panel: #131318;
  --vx-panel-2: #1a1a22;
  --vx-line: #26262f;
  --vx-gold: #ffcc33;
  --vx-amber: #ffb020;
  --vx-text: #e8e8ec;
  --vx-muted: #a2a2ad;
  --vx-radius: 14px;
  --vx-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--vx-gold); }
a:hover { color: var(--vx-amber); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

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

.vx-skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--vx-gold); color: #111; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.vx-skip:focus { left: 0; }

/* ---- Ribbon ---- */
.vx-ribbon {
  background: var(--vx-gold); color: #17130a;
  text-align: center; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .75rem;
}

/* ---- Header / nav ---- */
.vx-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,14,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--vx-line);
}
.vx-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0;
}
.vx-logo {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--vx-gold);
  font-weight: 800; font-size: 1.25rem; letter-spacing: .06em;
}
.vx-logo svg { width: 34px; height: 34px; }
.vx-nav { display: none; }
.vx-nav--open {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--vx-panel); border-bottom: 1px solid var(--vx-line);
  padding: .5rem 1.25rem 1rem;
}
.vx-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.vx-nav a {
  display: block; padding: .55rem .75rem; border-radius: 8px;
  color: var(--vx-text); text-decoration: none; font-weight: 600;
}
.vx-nav a:hover, .vx-nav a[aria-current="page"] { background: var(--vx-panel-2); color: var(--vx-gold); }
.vx-nav__cta a { background: var(--vx-gold); color: #17130a; text-align: center; }
.vx-nav__cta a:hover { background: var(--vx-amber); color: #17130a; }
.vx-burger {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--vx-line); border-radius: 8px;
  padding: .6rem .55rem; cursor: pointer;
}
.vx-burger span { width: 20px; height: 2px; background: var(--vx-gold); }

@media (min-width: 820px) {
  .vx-burger { display: none; }
  .vx-nav { display: block; position: static; background: none; border: 0; padding: 0; }
  .vx-nav ul { flex-direction: row; align-items: center; gap: .35rem; }
  .vx-nav a { padding: .45rem .8rem; }
  .vx-nav__cta a { padding-inline: 1.1rem; border-radius: 999px; }
}

/* ---- Hero ---- */
.vx-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--vx-line);
  background: radial-gradient(1200px 400px at 50% -10%, #23200f 0%, var(--vx-bg) 70%);
}
.vx-hero__art { position: absolute; inset: 0; }
.vx-hero__art img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.vx-hero__inner {
  position: relative; text-align: center;
  padding: clamp(3rem, 9vw, 6.5rem) 0;
}
.vx-hero__kicker {
  color: var(--vx-gold); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: .8rem;
}
.vx-hero p { max-width: 46rem; margin-inline: auto; color: var(--vx-muted); font-size: 1.05rem; }

/* ---- Buttons ---- */
.vx-btn {
  display: inline-block; background: var(--vx-gold); color: #17130a;
  font-weight: 800; text-decoration: none; border: 0; cursor: pointer;
  padding: .8rem 1.9rem; border-radius: 999px; font-size: 1rem;
  transition: transform .15s ease, background .15s ease;
}
.vx-btn:hover { background: var(--vx-amber); color: #17130a; transform: translateY(-2px); }
.vx-btn--ghost { background: none; color: var(--vx-gold); border: 2px solid var(--vx-gold); }
.vx-btn--ghost:hover { background: var(--vx-gold); color: #17130a; }

/* ---- Sections ---- */
.vx-section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.vx-section--alt { background: var(--vx-panel); border-block: 1px solid var(--vx-line); }
.vx-section__head { text-align: center; max-width: 46rem; margin: 0 auto 2.2rem; }
.vx-section__head p { color: var(--vx-muted); }

/* ---- Feature trio ---- */
.vx-feats { display: grid; gap: 1rem; }
.vx-feat {
  background: var(--vx-panel); border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius); padding: 1.4rem;
}
.vx-feat svg { width: 40px; height: 40px; margin-bottom: .75rem; }
.vx-feat p { color: var(--vx-muted); margin: 0; font-size: .95rem; }
@media (min-width: 700px) { .vx-feats { grid-template-columns: repeat(3, 1fr); } }

/* ---- Game grid ---- */
.vx-games { display: grid; gap: 1.2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .vx-games { grid-template-columns: repeat(4, 1fr); } }
.vx-game {
  background: var(--vx-panel); border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.vx-game:hover { transform: translateY(-4px); border-color: var(--vx-gold); }
.vx-game__media { position: relative; aspect-ratio: 414 / 504; }
.vx-game__media img { width: 100%; height: 100%; object-fit: cover; }
.vx-game__body { padding: .9rem 1rem 1.1rem; text-align: center; }
.vx-game__body h3 { margin-bottom: .35rem; font-size: 1.02rem; }
.vx-game__tag { color: var(--vx-muted); font-size: .8rem; display: block; margin-bottom: .7rem; }
.vx-game .vx-btn { padding: .55rem 1.4rem; font-size: .9rem; }

/* Detailed game rows (games page) */
.vx-gamerow {
  display: grid; gap: 1.4rem; align-items: center;
  background: var(--vx-panel); border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius); padding: 1.4rem; margin-bottom: 1.6rem;
}
.vx-gamerow img { border-radius: 10px; margin-inline: auto; }
.vx-gamerow h3 { font-size: 1.35rem; }
.vx-gamerow p { color: var(--vx-muted); }
.vx-gamerow ul { color: var(--vx-muted); margin: 0 0 1em; padding-left: 1.2em; }
@media (min-width: 760px) {
  .vx-gamerow { grid-template-columns: 240px 1fr; }
  .vx-gamerow--flip { grid-template-columns: 1fr 240px; }
  .vx-gamerow--flip img { order: 2; }
}

/* ---- Banner (no purchase) ---- */
.vx-banner { text-align: center; }
.vx-banner img { margin: 0 auto 1.4rem; border-radius: var(--vx-radius); }
.vx-banner p { max-width: 44rem; margin-inline: auto; color: var(--vx-muted); }

/* ---- Leaderboard ---- */
.vx-board { max-width: 34rem; margin-inline: auto; }
.vx-board ol { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.vx-board li {
  counter-increment: rank;
  display: flex; align-items: center; gap: 1rem;
  background: var(--vx-panel-2); border: 1px solid var(--vx-line);
  border-radius: 12px; padding: .8rem 1.1rem; margin-bottom: .6rem;
}
.vx-board li::before {
  content: counter(rank);
  font-weight: 800; color: var(--vx-gold); font-size: 1.2rem; min-width: 1.4rem;
}
.vx-board__name { font-weight: 700; flex: 1; }
.vx-board__pts { color: var(--vx-muted); font-variant-numeric: tabular-nums; }

/* ---- Testimonials ---- */
.vx-quotes { display: grid; gap: 1rem; }
@media (min-width: 760px) { .vx-quotes { grid-template-columns: repeat(3, 1fr); } }
.vx-quote {
  background: var(--vx-panel); border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius); padding: 1.3rem; margin: 0;
}
.vx-quote p { font-style: italic; color: var(--vx-text); }
.vx-quote footer { color: var(--vx-muted); font-size: .88rem; }
.vx-quote footer strong { color: var(--vx-gold); display: block; font-style: normal; }

/* ---- Steps (how it works) ---- */
.vx-steps { display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 760px) { .vx-steps { grid-template-columns: repeat(3, 1fr); } }
.vx-step {
  counter-increment: step; position: relative;
  background: var(--vx-panel); border: 1px solid var(--vx-line);
  border-radius: var(--vx-radius); padding: 1.6rem 1.3rem 1.3rem;
}
.vx-step::before {
  content: counter(step);
  position: absolute; top: -14px; left: 1.1rem;
  background: var(--vx-gold); color: #17130a; font-weight: 800;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
}
.vx-step p { color: var(--vx-muted); margin: 0; font-size: .95rem; }

/* ---- FAQ accordion ---- */
.vx-faq { max-width: 46rem; margin-inline: auto; }
.vx-faq details {
  background: var(--vx-panel); border: 1px solid var(--vx-line);
  border-radius: 12px; margin-bottom: .7rem; overflow: hidden;
}
.vx-faq summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 700;
  list-style: none; position: relative; padding-right: 2.6rem;
}
.vx-faq summary::-webkit-details-marker { display: none; }
.vx-faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%;
  transform: translateY(-50%); color: var(--vx-gold); font-size: 1.4rem; font-weight: 400;
}
.vx-faq details[open] summary::after { content: "\2212"; }
.vx-faq details > div { padding: 0 1.2rem 1.1rem; color: var(--vx-muted); }

/* ---- Prose pages ---- */
.vx-prose { max-width: 46rem; margin-inline: auto; }
.vx-prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.vx-prose h3 { margin-top: 1.4rem; }
.vx-prose p, .vx-prose li { color: var(--vx-muted); }
.vx-prose ul, .vx-prose ol { padding-left: 1.3em; }
.vx-prose strong { color: var(--vx-text); }
.vx-updated { font-size: .85rem; color: var(--vx-muted); font-style: italic; }

/* ---- Forms ---- */
.vx-form { max-width: 30rem; margin-inline: auto; }
.vx-form--wide { max-width: 40rem; }
.vx-field { margin-bottom: 1.1rem; }
.vx-field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .35rem; }
.vx-field input, .vx-field textarea, .vx-field select {
  width: 100%; background: var(--vx-panel-2); color: var(--vx-text);
  border: 1px solid var(--vx-line); border-radius: 10px;
  padding: .7rem .9rem; font: inherit;
}
.vx-field input:focus, .vx-field textarea:focus, .vx-field select:focus {
  outline: 2px solid var(--vx-gold); outline-offset: 1px; border-color: var(--vx-gold);
}
.vx-check { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; margin-bottom: 1.1rem; }
.vx-check label { flex: 1; min-width: 200px; }
.vx-check .vx-error { width: 100%; margin-top: 0; }
.vx-check input { width: 18px; height: 18px; margin-top: .25rem; flex: none; accent-color: var(--vx-gold); }
.vx-check label { font-size: .9rem; color: var(--vx-muted); }
.vx-form .vx-btn { width: 100%; }
.vx-form__note { font-size: .85rem; color: var(--vx-muted); text-align: center; margin-top: 1rem; }
.vx-error { color: #ff8080; font-size: .85rem; margin-top: .3rem; display: none; }
.vx-field--invalid .vx-error { display: block; }
.vx-field--invalid input { border-color: #ff8080; }
.vx-success {
  display: none; background: #12240f; border: 1px solid #2f5b28; color: #b7e3ad;
  border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.2rem;
}
.vx-success--show { display: block; }
.vx-grid2 { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .vx-grid2 { grid-template-columns: 1fr 1fr; } }

/* ---- Game modal ---- */
.vx-modal {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  background: rgba(5,5,8,.88); padding: 1rem;
}
.vx-modal--open { display: flex; }
.vx-modal__box {
  position: relative; width: min(1060px, 100%);
  background: #000; border: 1px solid var(--vx-line); border-radius: 12px;
  overflow: hidden;
}
.vx-modal__frame { aspect-ratio: 16 / 9; }
.vx-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vx-modal__close {
  position: absolute; top: .5rem; right: .5rem; z-index: 2;
  background: var(--vx-gold); color: #17130a; border: 0; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; font-weight: 800;
  display: grid; place-items: center;
}
@media (max-width: 640px) {
  .vx-modal { padding: 0; align-items: stretch; }
  .vx-modal__box { width: 100%; border-radius: 0; border: 0; display: flex; flex-direction: column; }
  .vx-modal__frame { aspect-ratio: auto; flex: 1; }
}

/* ---- Footer ---- */
.vx-footer { background: var(--vx-panel); border-top: 1px solid var(--vx-line); padding: 2.6rem 0 1.6rem; }
.vx-footer__nav ul {
  list-style: none; margin: 0 0 1.8rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; justify-content: center;
}
.vx-footer__nav a { color: var(--vx-text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.vx-footer__nav a:hover { color: var(--vx-gold); }
.vx-trust {
  display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap;
  margin-bottom: 1.8rem; text-align: center;
}
.vx-trust__item { display: flex; flex-direction: column; align-items: center; gap: .4rem; width: 108px; }
.vx-trust__item svg { width: 52px; height: 52px; }
.vx-trust__item span { font-size: .72rem; color: var(--vx-muted); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.vx-footer__legal { max-width: 52rem; margin-inline: auto; text-align: center; }
.vx-footer__legal h2 { font-size: .85rem; letter-spacing: .12em; color: var(--vx-gold); }
.vx-footer__legal p { color: var(--vx-muted); font-size: .84rem; }
.vx-footer__copy { text-align: center; color: var(--vx-muted); font-size: .82rem; margin-top: 1.4rem; }

/* ---- Cookie notice ---- */
.vx-cookie {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 250;
  background: var(--vx-panel-2); border: 1px solid var(--vx-line);
  border-radius: 12px; padding: 1rem 1.2rem; max-width: 30rem; margin-inline: auto;
  display: none;
}
.vx-cookie--show { display: block; }
.vx-cookie p { font-size: .85rem; color: var(--vx-muted); margin-bottom: .8rem; }
.vx-cookie__row { display: flex; gap: .6rem; }
.vx-cookie .vx-btn { padding: .5rem 1.2rem; font-size: .85rem; }

/* ---- 404 ---- */
.vx-404 { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.vx-404 .vx-code { font-size: clamp(4rem, 15vw, 7rem); font-weight: 800; color: var(--vx-gold); line-height: 1; }

/* ---- Utility ---- */
.vx-center { text-align: center; }
.vx-mt { margin-top: 1.6rem; }

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