:root {
  --bg-0: #0a0303;
  --bg-1: #1a0606;
  --crimson: #c4121a;
  --crimson-dim: #8a0c12;
  --fire: #ff6a00;
  --orange: #ff8c1a;
  --gold: #f0c93d;
  --gold-2: #d4a017;
  --text: #fff5e8;
  --text-dim: #d4c4b0;
  --card: rgba(28, 8, 6, 0.82);
  --stroke: rgba(240, 201, 61, 0.35);
  --shadow: 0 20px 60px rgba(140, 20, 10, 0.45);
  --radius: 22px;
  --font: "Poppins", "Segoe UI", sans-serif;
  --display: "Orbitron", "Poppins", sans-serif;
}

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

html, body {
  min-height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(196, 18, 26, 0.42), transparent 60%),
    radial-gradient(800px 500px at 100% 20%, rgba(255, 106, 0, 0.18), transparent 55%),
    radial-gradient(700px 500px at 0% 80%, rgba(240, 201, 61, 0.10), transparent 50%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(40px);
}
body::before {
  width: 420px; height: 420px;
  left: -120px; top: 20%;
  background: rgba(255, 106, 0, 0.14);
}
body::after {
  width: 520px; height: 520px;
  right: -180px; bottom: -80px;
  background: rgba(196, 18, 26, 0.22);
}

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

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 10px 0 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

.site-wordmark {
  width: min(400px, 72vw);
  margin: 0 auto;
  line-height: 0;
}

.vegas-sign-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.welcome-letter {
  font-family: "Cinzel Decorative", "Times New Roman", serif;
  font-weight: 700;
  font-size: 28px;
  fill: #c4121a;
}

.sign-to {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.14em;
  fill: #0b1748;
}

.sign-fabulous {
  font-family: "Pacifico", "Georgia", cursive;
  font-weight: 400;
  font-size: 54px;
  fill: #12245c;
}

.sign-kirin {
  font-family: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  font-size: 168px;
  letter-spacing: 0.02em;
  fill: #c4121a;
}

.sign-download {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 52px;
  letter-spacing: 0.16em;
  fill: #0b1748;
}

.vegas-bulb-glow { filter: none; }
.vegas-bulb--0 { animation: vegas-chase 1.35s ease-in-out infinite; }
.vegas-bulb--1 { animation: vegas-chase 1.35s ease-in-out 0.45s infinite; }
.vegas-bulb--2 { animation: vegas-chase 1.35s ease-in-out 0.9s infinite; }

@keyframes vegas-chase {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.38; }
}

@media (prefers-reduced-motion: reduce) {
  .vegas-bulb--0, .vegas-bulb--1, .vegas-bulb--2 { animation: none; opacity: 1; }
}

a.hero-art {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.hero-art:focus-visible {
  outline: 2px solid #ffe08a;
  outline-offset: 4px;
}
a.hero-art::after {
  background: linear-gradient(180deg, transparent 78%, rgba(10, 3, 3, 0.18) 100%);
}

.logo {
  width: min(420px, 78vw);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(240, 201, 61, 0.28)) drop-shadow(0 8px 24px rgba(0,0,0,0.55));
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 40px;
  flex: 1;
}

.hero-art {
  width: 100%;
  max-width: 1080px;
  margin: 8px auto 18px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(240, 201, 61, 0.18),
    0 0 40px rgba(255, 106, 0, 0.28),
    0 24px 50px rgba(0, 0, 0, 0.55);
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(10, 3, 3, 0.35) 100%);
}

.arrows {
  width: 92px;
  height: 92px;
  margin: 6px auto 10px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(240, 201, 61, 0.35));
}

.click-download {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(2rem, 8.5vw, 5.4rem);
  line-height: 0.95;
  color: #fff;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.35),
    0 0 22px rgba(255, 106, 0, 0.55),
    0 0 48px rgba(240, 201, 61, 0.35);
  margin: 4px 0 22px;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
}

.click-download:hover,
.click-download:focus-visible {
  color: var(--gold);
  outline: none;
}

.btn {
  --btn-bg: linear-gradient(180deg, #f3d35c 0%, #e0ae12 48%, #c48a00 100%);
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: min(320px, 86vw);
  padding: 16px 36px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #1a1200;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.12) inset,
    0 8px 0 #8a6200,
    0 12px 28px rgba(240, 201, 61, 0.28),
    0 0 36px rgba(255, 106, 0, 0.25);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  outline: none;
}

.btn:active { transform: translateY(2px); box-shadow: 0 0 0 2px rgba(255,255,255,0.12) inset, 0 4px 0 #8a6200, 0 8px 18px rgba(240,201,61,0.25); }

.btn-ghost {
  --btn-bg: linear-gradient(180deg, rgba(58, 16, 10, 0.65), rgba(28, 8, 6, 0.85));
  color: var(--text);
  box-shadow:
    0 0 0 2px rgba(240, 201, 61, 0.7),
    0 0 18px rgba(255, 106, 0, 0.28),
    0 6px 0 rgba(120, 20, 10, 0.55);
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 36px 0 28px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer-logo {
  width: min(200px, 50vw);
  height: auto;
  display: block;
  margin: 0 auto 12px;
  opacity: 0.95;
  filter: drop-shadow(0 0 12px rgba(240, 201, 61, 0.35));
}

/* Platform picker */
.page-title {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  text-align: center;
  margin: 12px 0 8px;
  text-shadow: 0 0 22px rgba(255, 106, 0, 0.45);
}

.page-sub {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
}

.platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: min(920px, 100%);
  margin: 0 auto 40px;
}

@media (min-width: 720px) {
  .platforms { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 18px 24px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.platform-card:hover,
.platform-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(240, 201, 61, 0.55);
  box-shadow: 0 16px 40px rgba(255, 106, 0, 0.28);
  outline: none;
}

.platform-card img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  filter: invert(1) drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

.platform-card span {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.platform-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 12px 0 48px;
}

.platform-stage .platform-icon {
  width: min(220px, 58vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45));
}

/* Modal */
.modal-root[hidden] { display: none !important; }

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 2, 2, 0.78);
  backdrop-filter: blur(8px);
}

.modal {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: linear-gradient(180deg, rgba(58, 16, 10, 0.97), rgba(18, 6, 4, 0.97));
  border: 1px solid rgba(240, 201, 61, 0.4);
  border-radius: 24px;
  padding: 32px 26px 28px;
  box-shadow: 0 0 0 1px rgba(240, 201, 61, 0.08), 0 30px 70px rgba(0,0,0,0.55), 0 0 50px rgba(196, 18, 26, 0.35);
  text-align: center;
}

#modal-title,
.modal h2 {
  font-family: var(--display);
  font-size: clamp(1.05rem, 3.4vw, 1.2rem);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 18px;
  font-weight: 700;
  padding: 0 28px;
}

.modal label { display: block; width: 100%; }

.modal input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(240, 201, 61, 0.35);
  background: rgba(16, 6, 4, 0.85);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  margin-bottom: 16px;
}

.modal input[type="email"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240, 201, 61, 0.2);
}

.modal-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.modal-actions .btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding-left: 16px;
  padding-right: 16px;
  letter-spacing: 0.1em;
}
.btn-icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}
.modal .btn { width: 100%; min-width: 0; }
.modal .modal-actions .btn { width: auto; }
@media (max-width: 480px) {
  .modal-actions { flex-direction: column; }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible { color: #fff; outline: none; }

.modal-error {
  color: #ff8a8a;
  font-size: 0.85rem;
  min-height: 1.2em;
  margin: -8px 0 10px;
}

.thank-copy {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  margin-bottom: 20px;
}

.back-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.back-link:hover { color: var(--gold); }

@media (max-width: 480px) {
  .site-header { padding-top: 18px; }
  .hero-art { border-radius: 18px; }
  .modal { padding: 28px 18px 22px; }
}

.scroll-hint {
  margin: 10px auto 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.hero-credit {
  position: absolute;
  right: 2.2%;
  bottom: 3.5%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: clamp(9px, 1.1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2e8f0;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  background: rgba(10, 3, 3, 0.72);
  box-shadow: 0 0 0 1px rgba(240, 201, 61, 0.25);
  pointer-events: none;
}
.hero-credit img {
  height: clamp(22px, 3.6vw, 44px);
  width: auto;
  filter: drop-shadow(0 0 10px rgba(255, 106, 0, 0.45));
}

.footer-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  flex-wrap: wrap;
}
.footer-sign {
  height: 2.6em;
  width: auto;
}
