/* ============================================================
   SideQuest Collectibles & Games — pré-lançamento
   Paleta: fundo índigo profundo + dourado do emblema
   ============================================================ */

:root {
  --bg: #0f0b1a;
  --bg-2: #171128;
  --surface: #1d1533;
  --line: #322757;
  --gold: #f5a83b;
  --gold-soft: #ffd58a;
  --text: #efeaf7;
  --muted: #a89fc4;
  --poke: #ffcb05;
  --magic: #f0742f;
  --op: #e23744;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1100px 600px at 50% -10%, #2a1f45 0%, transparent 60%),
    radial-gradient(900px 500px at 85% 40%, #1d1338 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
}

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

/* ---------- faíscas flutuantes ---------- */
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.spark {
  position: absolute;
  left: var(--x);
  bottom: -3vh;
  width: calc(10px * var(--s, 1));
  height: calc(10px * var(--s, 1));
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0;
  animation: rise var(--d, 12s) linear infinite;
  animation-delay: var(--t, 0s);
}
@keyframes rise {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .55; }
  90%  { opacity: .15; }
  100% { transform: translateY(-105vh) rotate(200deg); opacity: 0; }
}

/* ---------- topbar ---------- */
.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 20px 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none;
  font-family: "Cinzel", serif; font-weight: 700; font-size: 1.15rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.pill {
  color: var(--gold); text-decoration: none; font-weight: 600; font-size: .9rem;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  transition: border-color .2s, background .2s;
}
.pill:hover { border-color: var(--gold); background: rgba(245, 168, 59, .08); }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto; padding: 48px 24px 96px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  background: rgba(29, 21, 51, .6);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(245, 168, 59, .5);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 168, 59, .5); }
  100% { box-shadow: 0 0 0 12px rgba(245, 168, 59, 0); }
}
.hero-logo {
  width: min(420px, 78vw);
  filter: drop-shadow(0 10px 40px rgba(245, 168, 59, .18));
}
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 700; }
.hero h1 em { color: var(--gold); font-style: normal; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 58ch; }
.lead strong { color: var(--text); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 12px;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  color: #241505;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  box-shadow: 0 8px 26px rgba(245, 168, 59, .3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(245, 168, 59, .42); }
.btn-ghost {
  color: var(--text); border: 1px solid var(--line);
  background: rgba(29, 21, 51, .5);
}
.btn-ghost:hover { border-color: var(--gold); }

.scroll-hint {
  margin-top: 18px; color: var(--muted); font-size: 1.4rem;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- seções ---------- */
.section { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 72px 24px; }
.kicker {
  color: var(--gold); font-weight: 700; font-size: .82rem;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 10px;
}
.center { text-align: center; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }

/* ---------- vending machine ---------- */
.vending-section {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.vending-copy p { color: var(--muted); margin-top: 16px; max-width: 52ch; }
.vending-copy strong { color: var(--text); }
.perks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.perks li {
  display: flex; align-items: center; gap: 12px;
  background: rgba(29, 21, 51, .55); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px; font-weight: 500;
}
.perk-ico { font-size: 1.2rem; }

.vending-stage { position: relative; display: flex; justify-content: center; }
.vm-glow {
  position: absolute; inset: 10% 15%; z-index: 0;
  background: radial-gradient(closest-side, rgba(245, 168, 59, .22), transparent 70%);
  filter: blur(10px);
  animation: glowpulse 4s ease-in-out infinite;
}
@keyframes glowpulse { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

.vm {
  position: relative; z-index: 1;
  width: min(300px, 80vw);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5));
}
.vm-top {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #3b2c66, #241a45);
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 12px;
  font-family: "Cinzel", serif; font-weight: 700; font-size: .8rem;
  letter-spacing: .18em; color: var(--gold-soft);
}
.vm-body {
  display: grid; grid-template-columns: 1.5fr .8fr; gap: 12px;
  background: linear-gradient(180deg, #2b2050, #1c1438);
  border: 1px solid var(--line);
  padding: 14px;
}
.vm-window {
  position: relative; overflow: hidden;
  background: linear-gradient(200deg, #171030, #0e0a1e);
  border: 2px solid #43356f; border-radius: 10px;
  padding: 12px 10px;
  display: grid; gap: 14px; align-content: space-evenly;
}
.vm-shine {
  position: absolute; top: -20%; left: -60%;
  width: 45%; height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .09), transparent);
  transform: skewX(-18deg);
  animation: shine 5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.vm-shelf {
  display: flex; gap: 8px; justify-content: center;
  padding-bottom: 6px; border-bottom: 2px solid #3a2d63;
}
.pack {
  width: 26px; height: 38px; border-radius: 4px;
  background: linear-gradient(180deg, var(--pc, #888) 0 30%, #241c44 30%);
  border: 1px solid rgba(255, 255, 255, .14);
}
.p-yellow { --pc: var(--poke); }
.p-blue   { --pc: #3b82f6; }
.p-red    { --pc: var(--op); }

.vm-panel { display: flex; flex-direction: column; gap: 10px; }
.vm-screen {
  background: #0c081a; border: 1px solid #43356f; border-radius: 8px;
  color: var(--gold); font-family: "Cinzel", serif; font-weight: 700;
  font-size: .62rem; letter-spacing: .14em; text-align: center;
  padding: 10px 4px;
  animation: blink 2.4s steps(1) infinite;
}
@keyframes blink { 0%, 70% { opacity: 1; } 85% { opacity: .35; } 100% { opacity: 1; } }
.vm-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vm-keys i {
  aspect-ratio: 1; border-radius: 4px;
  background: #352a5e; border: 1px solid #493b7a;
}
.vm-slot {
  margin-top: auto; height: 8px; border-radius: 4px;
  background: #0c081a; border: 1px solid #43356f;
}
.vm-tray {
  height: 34px;
  background: linear-gradient(180deg, #241a45, #191139);
  border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 14px 14px;
  position: relative;
}
.vm-tray::after {
  content: ""; position: absolute; inset: 8px 25%;
  background: #0c081a; border: 1px solid #43356f; border-radius: 6px;
}
.vm-feet { display: flex; justify-content: space-between; padding: 0 18px; }
.vm-feet i { width: 22px; height: 10px; background: #120d26; border-radius: 0 0 4px 4px; }

/* ---------- games ---------- */
.games-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px;
}
.game-card {
  --accent: var(--gold);
  position: relative;
  background: linear-gradient(180deg, var(--surface), #160f2b);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px 26px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.game-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45), 0 0 0 1px var(--accent);
}
.game-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .9;
}
.gc-symbol { font-size: 2rem; display: block; margin-bottom: 14px; }
.game-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.game-card p { color: var(--muted); font-size: .95rem; }
.gc-tag {
  display: inline-block; margin-top: 16px;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px; padding: 4px 12px;
}
.gc-poke  { --accent: var(--poke); }
.gc-magic { --accent: var(--magic); }
.gc-op    { --accent: var(--op); }

/* ---------- notify ---------- */
.notify-box {
  text-align: center;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(245, 168, 59, .12), transparent 70%),
    linear-gradient(180deg, var(--surface), #150e29);
  border: 1px solid var(--line); border-radius: 24px;
  padding: 56px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.notify-box p { color: var(--muted); max-width: 52ch; }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 1;
  text-align: center; padding: 48px 24px 40px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer img { opacity: .9; }
.footer p { color: var(--muted); font-size: .85rem; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */
@media (max-width: 860px) {
  .vending-section { grid-template-columns: 1fr; gap: 40px; }
  .games-grid { grid-template-columns: 1fr; }
  .topbar .pill { display: none; }
}

/* ---------- acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spark, .scroll-hint, .vm-shine, .vm-screen, .badge .dot, .vm-glow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
