/* Paleta tirada do logo oficial; fundo escuro no roxo-escuro da marca */
:root {
  --bg: #1a0712;
  --fg: #fbf8f4; /* mesmo off-white do texto de assets/player2-logo-white.png */
  --muted: #c2a9b6; /* texto secundário — AA sobre --bg */
  --yellow: #ffd400;
  --orange: #ee7a22;
  --red: #d9123f;
  --purple: #4a0a5e;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Manchas fixas suaves da marca */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(900px circle at 85% 110%, rgb(74 10 94 / 0.55), transparent 60%),
    radial-gradient(800px circle at 0% -10%, rgb(217 18 63 / 0.14), transparent 60%);
}

/* Glow do cursor: aura lenta + núcleo rápido, movidos por transform em main.js */
.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  will-change: transform;
  transition: opacity 1200ms ease;
}

.cursor-glow.aura {
  width: 920px;
  height: 920px;
  margin: -460px 0 0 -460px;
  background: radial-gradient(
    closest-side,
    rgb(238 122 34 / 0.2),
    rgb(217 18 63 / 0.09) 45%,
    rgb(74 10 94 / 0.04) 70%,
    transparent
  );
}

.cursor-glow.core {
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  background: radial-gradient(
    closest-side,
    rgb(255 212 0 / 0.16),
    rgb(238 122 34 / 0.07) 55%,
    transparent
  );
}

.glow-ready .cursor-glow {
  opacity: 1;
}

/* Grão fino: quebra o degradê em faixas (banding) dos gradientes no escuro */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: url('/assets/grain.svg');
  opacity: 0.05;
}

.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 6vw, 96px);
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  animation: pulse 2s ease-in-out infinite;
}

/* Logo: elemento principal */
.logo {
  margin: 0;
  line-height: 0;
}

.logo img {
  display: block;
  width: min(720px, 86vw);
  height: auto;
}

.logo img,
.enter {
  opacity: 0;
  transform: scale(0.94);
  filter: blur(14px);
  transform-origin: left center;
  animation: enter 1300ms cubic-bezier(0.2, 0.8, 0.2, 1) 150ms forwards;
}

/* Título em texto (só no 404) */
.title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(3.5rem, 15vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.accent {
  background: linear-gradient(110deg, var(--yellow), var(--orange), var(--yellow));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.tagline {
  margin: 2.5rem 0 0;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  max-width: 36ch;
  line-height: 1.4;
}

.contact {
  margin: 1rem 0 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--muted);
}

.logo + .contact {
  margin-top: 2.5rem;
}

.contact a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  transition: border-color 200ms;
}

.contact a:hover,
.contact a:focus-visible {
  border-color: var(--yellow);
}

.foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(24px, 6vw, 96px) calc(1.25rem + env(safe-area-inset-bottom));
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.press {
  animation: blink 1.2s steps(2, start) infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: fade 800ms ease-out forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes enter {
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes fade {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shimmer {
  to {
    background-position: 200% 0;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .logo img,
  .enter,
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 520px) {
  .foot {
    flex-direction: column;
    gap: 0.4rem;
  }
}
