:root {
  --bg: #0f172a;
  --frame: #d4b483;
  --accent: #e4572e;
  --text: #e8dcc2;
  --green: #6fbf7a;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Silkscreen', monospace;
  overflow: hidden;
}
body {
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('assets/texture_16px-178.png') repeat;
  background-size: 256px 256px;
  image-rendering: pixelated;
  filter: brightness(0.5);
  z-index: 0;
  pointer-events: none;
}
#app {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px;
}

/* ── Card wrapper (holds card + glow behind it) ────────────────── */
.card-wrap {
  position: relative;
}
.card {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #0b0f1a 0%, #0f172a 60%, #111827 100%);
  border: 2px solid var(--frame);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  padding: 20px 20px 24px;
  max-width: 440px;
  width: min(92vw, 440px);
  text-align: center;
}

/* ── Torch inside card (above logo) ────────────────────────────── */
.torch-canvas {
  display: block;
  margin: 0 auto 6px;
  image-rendering: pixelated;
  width: 110px;
}

/* ── Bitmap font logo ──────────────────────────────────────────── */
.logo-canvas {
  display: block;
  margin: 0 auto 10px;
  image-rendering: pixelated;
  height: 84px;
  width: auto;
}

/* ── Pitch text ────────────────────────────────────────────────── */
.pitch {
  margin: 20px 0;
  font-family: 'Silkscreen', monospace;
  font-size: clamp(13px, 3.5vw, 16px);
  line-height: 1.4;
  color: #e8dcc2;
}

/* ── CTA buttons ───────────────────────────────────────────────── */
.cta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--frame);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}
.cta img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
.cta.ios { border-color: var(--frame); }
.cta.android { border-color: var(--green); }
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
.cta.ios:hover { background: rgba(212, 180, 131, 0.12); }
.cta.android:hover { background: rgba(111, 191, 122, 0.12); }
.cta.steam {
  grid-column: 1 / -1;
  border-color: #1b9fff;
}
.cta.steam:hover { background: rgba(27, 159, 255, 0.12); }

/* ── Glow circles behind the card ──────────────────────────────── */
.glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.glow-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(228, 87, 46, 0.24) 0%, transparent 70%);
  animation: pulse1 0.9s ease-in-out infinite alternate;
}
.glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
  animation: pulse2 1.1s ease-in-out infinite alternate;
  animation-delay: 120ms;
}
.glow-3 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
  animation: pulse3 1.3s ease-in-out infinite alternate;
  animation-delay: 240ms;
}
.glow-4 {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.09) 0%, transparent 70%);
  animation: pulse4 1.5s ease-in-out infinite alternate;
  animation-delay: 320ms;
}
.glow-5 {
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(253, 230, 138, 0.06) 0%, transparent 70%);
  animation: pulse5 1.7s ease-in-out infinite alternate;
  animation-delay: 420ms;
}

@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes pulse1 {
  from { transform: translateX(-50%) scale(1); opacity: 0.8; }
  to   { transform: translateX(-50%) scale(1.08, 0.9); opacity: 0.4; }
}
@keyframes pulse2 {
  from { transform: translateX(-50%) scale(1); opacity: 0.7; }
  to   { transform: translateX(-50%) scale(0.92, 1.06); opacity: 0.35; }
}
@keyframes pulse3 {
  from { transform: translateX(-50%) scale(1); opacity: 0.6; }
  to   { transform: translateX(-50%) scale(1.04, 0.96); opacity: 0.3; }
}
@keyframes pulse4 {
  from { transform: translateX(-50%) scale(1); opacity: 0.55; }
  to   { transform: translateX(-50%) scale(0.98, 1.04); opacity: 0.28; }
}
@keyframes pulse5 {
  from { transform: translateX(-50%) scale(1); opacity: 0.5; }
  to   { transform: translateX(-50%) scale(1.02, 0.98); opacity: 0.25; }
}
