/* ==========================================================================
   SNK OFFICIAL THEME — camada visual inspirada em snk-corp.co.jp/official/kof98
   Fundo, placa metálica, logo e key arts oficiais da SNK.
   Os screenshots de gameplay continuam sendo os do port de SNES.
   ========================================================================== */

:root {
  --bg: #0b0b0b;
  --bg-deep: #050505;
  --bg-soft: #101010;
  --panel: #151515;
  --panel-2: #1d1d1d;
  --ink: #f5f3ec;
  --muted: #b9b6ad;
  --muted-2: #8e8b82;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.24);
  --gold: #ffd400;
  --gold-deep: #d9ab00;
  --red: #d81f26;
  --red-deep: #8f1116;
  --radius: 2px;
  --snk-paper: #f4f3ee;
  --snk-ink: #0d0d0d;
  --metal: url("../img/snk/metal.jpg");
}

/* --------------------------------------------------------------------------
   Fundo: textura de ruído tirada do background oficial da SNK
   -------------------------------------------------------------------------- */
body {
  background: var(--bg);
}

body::before {
  background: url("../img/snk/noise.jpg") repeat center / 240px 240px;
  opacity: 0.28;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  background: rgba(8, 8, 8, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold) 45%, var(--gold) 55%, var(--red));
  opacity: 0.9;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Hero — branco da SNK escurecendo para o preto
   -------------------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(180deg, #faf9f5 0%, var(--snk-paper) 55%, #eae8e0 100%);
  padding-bottom: clamp(6rem, 11vw, 9rem);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 16vw, 210px);
  background: linear-gradient(180deg, rgba(11, 11, 11, 0) 0%, #0b0b0b 94%);
  pointer-events: none;
  z-index: 0;
}

.hero-bg { display: none; }

.hero-inner {
  position: relative;
  z-index: 1;
  align-items: center;
}

.hero .eyebrow {
  color: var(--red);
  font-family: var(--font-pixel);
}

.hero .live-dot {
  background: var(--red);
}

.hero-title {
  margin: 1.1rem 0 0;
  line-height: 1;
}

.hero-logo {
  display: block;
  width: clamp(250px, 31vw, 400px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.hero-subtitle {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.45rem 0.9rem 0.4rem;
  background: var(--snk-ink);
  color: var(--gold);
  font-size: clamp(0.55rem, 1.1vw, 0.7rem);
  letter-spacing: 0.38em;
  box-shadow: 4px 4px 0 rgba(216, 31, 38, 0.85);
}

.hero-lede {
  color: #3d3c37;
  font-weight: 500;
}

.hero-actions .btn-gold {
  box-shadow: 5px 5px 0 rgba(13, 13, 13, 0.9);
}

.hero-actions .btn-ghost {
  color: var(--snk-ink);
  border-color: rgba(13, 13, 13, 0.55);
  background: rgba(255, 255, 255, 0.45);
}

.hero-actions .btn-ghost:hover {
  background: var(--snk-ink);
  border-color: var(--snk-ink);
  color: var(--snk-paper);
}

.hero-facts {
  border-top: 1px solid rgba(13, 13, 13, 0.18);
}

.hero-facts strong {
  color: var(--snk-ink);
}

.hero-facts span {
  color: #6a675e;
}

/* Key art oficial (Kyo) em moldura preta com sombra vermelha */
.hero-art {
  display: block;
  min-height: 0;
  perspective: none;
}

.hero-frame {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 9px;
  background: var(--snk-ink);
  border: 1px solid #000;
  border-radius: 2px;
  box-shadow: 14px 14px 0 rgba(216, 31, 38, 0.9), 0 26px 55px rgba(0, 0, 0, 0.28);
  transform: rotate(-1.4deg);
  transition: transform 0.35s ease;
}

.hero-frame:hover { transform: rotate(0deg); }

.hero-kyo {
  width: 100%;
  height: auto;
  border-radius: 1px;
}

.hero-art-tag {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: #6a675e;
}


/* Tarja "THE SNESFEST" redesenhada no cabeçalho */
.brand-sub {
  line-height: 0;
  font-size: 0;
}
.brand-sub img {
  display: block;
  width: 116px;
  height: auto;
}
@media (max-width: 720px) {
  .brand-sub img { width: 96px; }
}


/* Logo oficial no cabeçalho */
.brand {
  gap: 0;
  background: none;
  padding: 0;
}
.brand-logo {
  display: block;
  height: 54px;
  width: auto;
}
@media (max-width: 720px) {
  .brand-logo { height: 44px; }
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */
.ticker {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 25%, #ffe45c 55%, var(--gold));
  color: #0a0a0a;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

/* --------------------------------------------------------------------------
   Títulos com placa metálica do site da SNK
   -------------------------------------------------------------------------- */
.section-title {
  display: inline-block;
  max-width: 100%;
  margin-top: 1.1rem;
  padding: 0.22em 0.42em 0.26em;
  background: var(--metal) center / 100% 100% no-repeat;
  color: #f3f1e9;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0.012em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7), 0 0 22px rgba(0, 0, 0, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.section-alt {
  background: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.8);
}

.stat-band {
  background: #0c0c0c;
}

/* --------------------------------------------------------------------------
   Componentes: cantos retos e vidro fosco escuro
   -------------------------------------------------------------------------- */
.feature-card,
.mode-card,
.roster-card,
.screen-card,
.control-panel,
.build-panel,
.credits-card,
.bug-card {
  border-radius: 2px;
}

.feature-card {
  background: linear-gradient(170deg, #1b1b1b, #131313);
}

.feature-card:hover {
  border-color: rgba(255, 212, 0, 0.45);
}

.feature-icon {
  border-radius: 2px;
}

.badge,
.filter-chip,
.search-field input {
  border-radius: 2px;
}

.poster-frame {
  background: #141414;
  border-radius: 2px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 10px 10px 0 rgba(216, 31, 38, 0.28);
}

/* --------------------------------------------------------------------------
   Download — amarelo do logo SNK + marca d'água do logo oficial
   -------------------------------------------------------------------------- */
.download-panel {
  background:
    radial-gradient(700px 380px at 110% 10%, #ffe96b, transparent 60%),
    linear-gradient(130deg, #e8bb00, var(--gold) 55%, #ffe45c);
  border-radius: 0;
  box-shadow: 12px 12px 0 rgba(216, 31, 38, 0.95);
}

.download-panel::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -26px;
  width: clamp(220px, 34vw, 420px);
  height: 140px;
  background: url("../img/snk/logo-kof98.png") no-repeat center / contain;
  opacity: 0.12;
  transform: rotate(-7deg);
  pointer-events: none;
  z-index: 0;
}

.download-badge {
  border-radius: 0;
}


/* --------------------------------------------------------------------------
   Credits — key art oficial (elenco de KOF '98) como fundo discreto
   -------------------------------------------------------------------------- */
#credits {
  position: relative;
  isolation: isolate;
}

#credits::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/snk/cast-keyart.jpg") center / cover no-repeat;
  opacity: 0.42;
  filter: grayscale(0.35) contrast(1.05);
  z-index: -1;
  pointer-events: none;
}

#credits::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0b0b0b 0%, rgba(11, 11, 11, 0.55) 30%, rgba(11, 11, 11, 0.72) 55%, rgba(11, 11, 11, 0.55) 75%, #0b0b0b 100%);
  z-index: -1;
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   Vídeos: player principal + bloco "mais vídeos"
   -------------------------------------------------------------------------- */
.video-more {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.video-more-title {
  margin-bottom: 1rem;
  font-family: var(--font-pixel);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.video-frame-secondary {
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #060606;
  border-top: 1px solid #2b2b26;
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-art { margin-top: 2.5rem; }
  .hero-frame { max-width: 420px; }
  .section-title { font-size: clamp(1.6rem, 6.4vw, 2.4rem); }
}

/* --------------------------------------------------------------------------
   Aviso: versão Chapolin Colorado (8 lutadores sem MSU, sprites a 56%)
   -------------------------------------------------------------------------- */
.chapolin {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.3rem 1.5rem;
  background: linear-gradient(120deg, rgba(255, 212, 0, 0.14), rgba(216, 31, 38, 0.1));
  border: 1px solid rgba(255, 212, 0, 0.45);
  border-left: 4px solid var(--gold);
  border-radius: 2px;
}

.chapolin-badge {
  flex: none;
  padding: 0.4rem 0.6rem 0.35rem;
  background: var(--gold);
  color: #0a0a0a;
  font-family: var(--font-pixel);
  font-size: 0.46rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapolin h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.05;
  color: var(--ink);
}

.chapolin p {
  margin-top: 0.45rem;
  max-width: 70ch;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--muted);
}

.chapolin .text-link {
  display: inline-flex;
  margin-top: 0.85rem;
}

@media (max-width: 600px) {
  .chapolin { flex-direction: column; gap: 0.8rem; }
}
