﻿:root {
  --bg: #0f1012;
  --bg-2: #15171a;
  --text: #e6e6e6;
  --muted: #9aa0a6;
  --accent: #d84b3f;
  --tape: #b1872a;
  --tape-text: #1b1203;
  --panel: #0a0b0c;
  --line: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

body {
  position: relative;
}

/* Vinheta pesada */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.10) 0%,
    rgba(0,0,0,0.75) 55%,
    rgba(0,0,0,0.95) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Noise / grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 2px
    );
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* Smoke / fog central */
.bg-smoke {
  position: fixed;
  inset: -30%;
  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.18),
    transparent 60%
  );
  filter: blur(140px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 48px 20px 72px;
}

.grain {
  position: absolute;
  inset: -100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E");
  opacity: 0.25;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero {
  width: min(520px, 92vw);
  text-align: left;
  position: relative;
  z-index: 2;
}

.kicker {
  margin: 0 0 18px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  font-family: "Bangers", "Inter", "Segoe UI", system-ui, sans-serif;
}

h1 span { display: block; }

.accent {
  color: var(--accent);
}

/* ================= WARNING BAND ================= */
.warning-band {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: #0e0e0e;
  color: #f5c400;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.85);
  margin: 10px 0 30px;
}

.warning-band::before,
.warning-band::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    45deg,
    #000,
    #000 8px,
    #f5c400 8px,
    #f5c400 16px
  );
}

.warning-band::before {
  top: 0;
}

.warning-band::after {
  bottom: 0;
}

.warning-band span {
  display: inline-block;
  white-space: nowrap;
  padding: 18px 0;
  font-size: 13px;
  letter-spacing: 3px;
  animation: band-scroll 22s linear infinite;
}

.rotator {
  margin: 15px 0 26px;
  font-size: 20px;
  color: #c8c8c8;
  min-height: 28px;
  transition: opacity 0.6s ease, transform 0.6s ease;
  font-family: "Rubik Dirt", "Bangers", "Inter", "Segoe UI", system-ui, sans-serif;
}

.rotator.fade {
  opacity: 0;
  transform: translateY(8px);
}

.code-wrap {
  margin-top: 8px;
}

.code-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  align-items: center;
}

.code-input input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  padding: 14px;
  outline: none;
}

.code-input button {
  background: #1f1f1f;
  color: #d9d9d9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.code-input[data-state="wrong"] {
  animation: shake 0.25s ease-in-out;
}

.code-input[data-state="near"] {
  box-shadow: 0 0 0 2px rgba(216, 75, 63, 0.3);
}

.micro {
  margin: 10px 0 0;
  color: #7b7f84;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.availability {
  margin-top: 30px;
  color: #9da3a8;
  text-align: center;
}

.flags {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  border-radius: 6px;
  background: #1a1d20;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 40;
}

.modal.open {
  display: grid;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  padding: 12px;
  width: min(520px, 90vw);
  text-align: center;
}

.modal__panel img {
  width: min(340px, 70vw);
  height: auto;
  display: block;
  margin: 8px auto 18px;
  animation: zoomIn 2.6s ease forwards;
}

.modal__close {
  position: absolute;
  top: -4px;
  right: -4px;
  background: transparent;
  border: none;
  color: #a9a9a9;
  font-size: 22px;
  cursor: pointer;
}

.modal__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #141414;
  color: #e6e6e6;
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes band-scroll {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

@keyframes zoomIn {
  from { transform: scale(0.92); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 520px) {
  .hero { text-align: left; }
  .warning-band span { font-size: 10px; }
  .rotator { font-size: 18px; }
}
