@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Bungee+Shade&family=Inter:wght@400;600;800;900&display=swap');

:root {
  --bg: #0b0716;
  --bg2: #160d2b;
  --velvet: #5a0d24;
  --gold: #ffd23f;
  --gold2: #ffb800;
  --red: #ff3b5c;
  --cyan: #29d3ff;
  --green: #1fc46a;
  --ink: #fff7e6;
  --muted: #b9a9d6;
  --card: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .12);
  --display: 'Bungee', 'Impact', 'Arial Black', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(255, 59, 92, .22), transparent 60%),
    radial-gradient(1000px 700px at 110% 110%, rgba(41, 211, 255, .14), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(90, 13, 36, .7), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
.display { font-family: var(--display); letter-spacing: .02em; }

/* faixa de conexão */
body.offline::before {
  content: 'Reconectando…';
  position: fixed; inset: 0 0 auto 0; z-index: 9999;
  background: var(--red); color: #fff; text-align: center; font-weight: 800; padding: 6px;
}

/* lâmpadas de letreiro */
.marquee {
  position: relative;
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(180deg, #2a0c1c, #14081f);
  box-shadow: 0 0 0 6px #3a1426, 0 0 0 10px #ffd23f22, 0 30px 80px rgba(0, 0, 0, .6);
}
.marquee::before {
  content: '';
  position: absolute; inset: 9px; border-radius: 20px; pointer-events: none;
  background:
    radial-gradient(circle, var(--gold) 0 4px, transparent 5px) 0 0 / 30px 30px repeat-x,
    radial-gradient(circle, var(--gold) 0 4px, transparent 5px) 0 100% / 30px 30px repeat-x,
    radial-gradient(circle, var(--gold) 0 4px, transparent 5px) 0 0 / 30px 30px repeat-y,
    radial-gradient(circle, var(--gold) 0 4px, transparent 5px) 100% 0 / 30px 30px repeat-y;
  filter: drop-shadow(0 0 6px var(--gold));
  animation: bulbs 1.2s steps(2) infinite;
}
@keyframes bulbs { 50% { opacity: .55; } }

.btn {
  border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 800;
  color: #1b0f00; background: linear-gradient(180deg, #ffe27a, var(--gold2));
  box-shadow: 0 5px 0 #a86f00, 0 10px 20px rgba(0, 0, 0, .35);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #a86f00; }
.btn:disabled { filter: grayscale(1) brightness(.6); cursor: not-allowed; }
.btn.red { color: #fff; background: linear-gradient(180deg, #ff6a83, var(--red)); box-shadow: 0 5px 0 #a3132e, 0 10px 20px rgba(0, 0, 0, .35); }
.btn.cyan { color: #00222e; background: linear-gradient(180deg, #8ee9ff, var(--cyan)); box-shadow: 0 5px 0 #0b7c99, 0 10px 20px rgba(0, 0, 0, .35); }
.btn.green { color: #002b13; background: linear-gradient(180deg, #6ff0a5, var(--green)); box-shadow: 0 5px 0 #0d7a40, 0 10px 20px rgba(0, 0, 0, .35); }
.btn.ghost { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:active { transform: translateY(1px); }

.confetti {
  position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 2px; z-index: 50;
  animation: fall linear forwards; pointer-events: none;
}
@keyframes fall { to { top: 110%; transform: translateX(80px) rotate(720deg); } }

@keyframes popIn { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } to { transform: scale(1); opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes stamp { from { transform: scale(3) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 1; } }
@keyframes pulse { 50% { transform: scale(1.06); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
