:root {
  --border: #7f848a;
  --info: #21416380;
  --card: #15233c66;
  --card-solid: #0f182bcc;
  --muted: #c9ceda;
  --footer: #756f98;
  --teal: #10cfc9;
  --red: #ef4444;
  --red-dark: #b91c1c;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: #fff;
  background-color: #0b1020;
  background-image: url("/assets/background-mobile.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
}
@media (min-width: 768px) {
  body { background-image: url("/assets/background-desktop.jpg"); }
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; }

.shell {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: 56px;
}
.pad { margin-inline: 16px; }
@media (min-width: 768px) { .pad { margin-inline: 32px; } }
@media (min-width: 1024px) { .pad { margin-inline: 80px; } }
.content { max-width: 800px; margin-inline: auto; }

.header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 16px;
}
.brand-lockup { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-lockup img { width: 32px; height: 32px; }
.brand-lockup span { font-size: 18px; font-weight: 700; }
.info-btn, .ghost-btn, .pay-btn, .mode-btn, .region-chip {
  border: 0.5px solid var(--border);
  cursor: pointer;
}
.info-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--info);
  color: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 500;
}
.rule {
  height: 0;
  border-top: 1px solid var(--border);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.search {
  position: relative;
  margin: 16px 0;
}
.search input {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.3);
  color: #f1f5f9;
  padding: 6px 12px 6px 36px;
  outline: none;
}
.search input::placeholder { color: #f1f5f9; }
.search svg { position: absolute; left: 10px; top: 10px; }

.banner {
  display: block;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 40 / 21;
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.08);
}
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 768px) { .banner { aspect-ratio: 8 / 3; } }

.starter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  padding: 16px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: var(--card);
}
.starter img { width: 50px; height: 50px; object-fit: contain; }
.starter strong { display: block; font-size: 16px; }
.starter span { color: var(--muted); font-size: 14px; }
.arrow {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0.5px solid var(--border);
  background: #a3a3a333;
  display: grid;
  place-items: center;
  flex: none;
}

h1, h2 { margin: 0; }
.section-title { margin: 48px 0 16px; font-size: 20px; }
.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  padding-bottom: 32px;
}
@media (min-width: 640px) { .games { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .games { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.game-card { min-width: 0; cursor: pointer; }
.game-art {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.game-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-art em {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  margin: 0;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  background: linear-gradient(to top, #0a0a0a, #0a0a0a80 40%, #0a0a0a00);
}
.hidden { display: none !important; }
.footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  text-align: center;
  padding-bottom: 12px;
  color: var(--footer);
  font-size: 14px;
}

.back-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
}
.back-row a, .text-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: #fff;
}
.page-title { font-size: 18px; font-weight: 700; }

.hero {
  position: relative;
  min-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 0.5px solid var(--border);
}
.hero img { width: 100%; height: 280px; object-fit: cover; filter: blur(0); display: block; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,12,24,.92), rgba(8,12,24,.35) 55%, rgba(8,12,24,.2));
}
.hero-copy { position: absolute; left: 16px; right: 16px; bottom: 16px; }
.hero-copy h1 { font-size: 28px; }

.panel {
  background: var(--card-solid);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
}
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
input[type="text"], input[type="email"], input[type="number"], select {
  width: 100%;
  border-radius: 12px;
  border: 0.5px solid var(--border);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 12px 14px;
  outline: none;
}
select option { color: #111; }
.modes, .regions { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-btn, .region-chip {
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}
.mode-btn.active, .region-chip.active {
  border-color: var(--teal);
  background: linear-gradient(to right, #10cfc94d, #10cfc900);
}
.products { display: grid; gap: 10px; }
.product {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 0.5px solid var(--border);
  background: rgba(255,255,255,.04);
}
.product strong { display: block; }
.product small, .price { color: #fff; font-weight: 700; }
.price { white-space: nowrap; }
.pay-btn, .ghost-btn {
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
}
.pay-btn {
  width: 100%;
  color: #fff;
  background: linear-gradient(to right, var(--red-dark), var(--red));
  border-color: transparent;
}
.ghost-btn { background: transparent; color: #fff; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 36px; height: 36px; border-radius: 10px;
  border: 0.5px solid var(--border); background: rgba(255,255,255,.08); color: #fff;
}
.note { color: var(--muted); font-size: 13px; line-height: 1.5; }
.error { color: #fecaca; background: #7f1d1d99; border-radius: 12px; padding: 10px 12px; }

.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.62);
  display: none;
  place-items: center;
  padding: 16px;
  z-index: 20;
}
.modal.open { display: grid; }
.modal .panel { width: min(440px, 100%); }

.qr { width: min(280px, 100%); border-radius: 12px; background: #fff; padding: 8px; }
.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  background: #214163;
}
.status-pill.completed { background: #047857; }
.success-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
  line-height: 1.5;
}
.success-note[hidden] { display: none; }
.status-pill.failed, .status-pill.cancelled { background: #991b1b; }
.prose h1 { font-size: 22px; margin: 18px 0 8px; }
.prose p, .prose li { color: #e5e7eb; line-height: 1.6; }
.prose a { color: #93c5fd; text-decoration: underline; }
.info-list { display: grid; gap: 10px; margin-top: 12px; }
.info-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 16px;
  border: 0.5px solid var(--border); background: var(--card);
}
.info-link img { width: 40px; height: 40px; object-fit: contain; }
details { border-top: 0.5px solid var(--border); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 650; }
details p, details li { color: #e5e7eb; line-height: 1.55; }
.steps { margin: 8px 0 0; padding-left: 18px; }
.steps li { margin: 6px 0; }
