*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

:root {
  --bg: #050505;
  --fg: #ffffff;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.1);
  --surface: #0a0a0a;
  --accent: #ff3e00;
  --accent-hover: #e03700;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "Chakra Petch", ui-monospace, monospace;
  --max: 80rem;
  --gutter: clamp(16px, 4vw, 32px);
}

html { background: var(--bg); color-scheme: dark; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-tag {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--accent);
  line-height: 1;
}
.brand-name {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  opacity: 0.6;
}
.nav-cluster { display: flex; align-items: center; gap: 16px; }
.nav-main {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.nav-main a {
  text-decoration: none;
  padding: 8px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d1d5db;
  white-space: nowrap;
}
.nav-main a:hover { color: var(--accent); }
.nav-main a.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 62, 0, 0.3);
}
.nav-account {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-account .btn-sm {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  line-height: 1;
}
.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: #d1d5db; }

.site-main {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
  flex: 1;
}

.site-footer {
  background: #000;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: auto;
}
.footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 48px var(--gutter) 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer h4 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}
.site-footer a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.site-footer a:hover { color: var(--accent); }
.footer-note { max-width: 36ch; line-height: 1.6; }
.footer-motto {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 12px;
}
.footer-bar {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

.btn, .btn-ghost, .btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid transparent;
  background: #fff;
  color: #000;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-link {
  background: none;
  border: 0;
  color: #d1d5db;
  padding: 14px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
.btn-link:hover { color: var(--accent); }
.btn-sm { padding: 10px 24px; }

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
  animation: ping 1.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  75%, 100% { transform: scale(1.8); opacity: 0; }
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.text-outline {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.4);
  color: transparent;
  display: block;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 48px;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; }
}
.hero-title {
  font-size: clamp(3.2rem, 8vw, 6.25rem);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  margin: 0 0 24px;
  line-height: 0.85;
}
.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
  line-height: 1.7;
  margin: 0 0 24px;
}
.stat-row { display: flex; flex-wrap: wrap; gap: 24px; margin: 8px 0; }
.stat { border-left: 2px solid rgba(255, 255, 255, 0.2); padding-left: 16px; }
.stat-accent { border-left-color: var(--accent); }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}
.stat-accent strong { color: var(--accent); }
.stat small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.65;
  margin-top: 4px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 16px; }

.side-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  display: grid;
  gap: 20px;
  overflow: hidden;
}
.side-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  background: rgba(255, 62, 0, 0.1);
  filter: blur(48px);
  pointer-events: none;
}
.status-card {
  background: var(--accent);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}
.status-card small {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 0.8;
}
.status-card strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.status-card span { font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.9; margin-top: 4px; }

.live-card {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--line);
  padding: 20px;
  position: relative;
  z-index: 1;
}
.live-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.chip-live {
  background: var(--accent);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
}
.live-card li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 0;
  list-style: none;
}
.live-card ul { margin: 0; padding: 0; }
.live-card li:last-child { border: 0; }
.live-card a { text-decoration: none; }
.live-card a:hover { color: var(--accent); }
.rank-mini {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.live-card strong {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  font-size: 1rem;
}
.id-mini { font-family: var(--font-mono); font-size: 0.62rem; color: #6b7280; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin: 48px 0 24px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-style: italic;
  text-transform: uppercase;
  margin: 4px 0 0;
}
.section-head .kicker { margin: 0; }
.section-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 700px) { .game-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s;
}
.game-card:hover { border-color: var(--accent); }
.game-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.game-card-fill,
.game-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.88;
  transition: transform 0.7s, opacity 0.3s;
}
.game-card:hover .game-card-fill,
.game-card:hover .game-card-media img { transform: scale(1.05); opacity: 1; }
.game-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, #0a0a0a, transparent);
}
.game-card-badges {
  position: absolute;
  inset: 12px 12px auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.pill {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--accent);
  color: #fff;
}
.pill-dark {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.game-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.game-card-body h3 {
  font-size: 1.25rem;
  font-style: italic;
  text-transform: uppercase;
  margin: 0;
}
.game-card:hover h3 { color: var(--accent); }
.game-card-body .cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.game-card-body p { font-size: 0.8rem; color: var(--muted); margin: 0; }
.game-card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.game-card-foot em { color: var(--accent); font-style: normal; font-weight: 800; }

.moments {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.moments-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--line);
}
.moments-bar h3 {
  font-size: 0.95rem;
  font-style: italic;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.moments-tools { display: flex; align-items: center; gap: 10px; }
.moments-stage {
  position: relative;
  aspect-ratio: 21 / 9;
  background: #000;
  overflow: hidden;
}
@media (max-width: 700px) { .moments-stage { aspect-ratio: 16 / 9; } }
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s;
}
.slide.is-active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.moments-stage::after {
  z-index: 1;
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.4) 45%, transparent 70%),
    linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent 50%);
  pointer-events: none;
}
.moments-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  max-width: 48rem;
}
.moments-caption h4 {
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-style: italic;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.moments-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.moments-nav:hover { background: var(--accent); }
.moments-nav.prev { left: 16px; }
.moments-nav.next { right: 16px; }
.moments-thumbs {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px;
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid var(--line);
}
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs button {
  width: 64px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  background: #111 center / cover no-repeat;
  cursor: pointer;
  opacity: 0.5;
  flex-shrink: 0;
}
.thumbs button.thumb-tabuleiro { background-image: url("../img/moments/tabuleiro.jpg"); }
.thumbs button.thumb-cartas { background-image: url("../img/moments/cartas.jpg"); }
.thumbs button.thumb-sala { background-image: url("../img/moments/sala.jpg"); }
.thumbs button.is-active { border-color: var(--accent); opacity: 1; }
.progress { flex: 1; min-width: 120px; height: 4px; background: rgba(255, 255, 255, 0.1); align-self: center; }
.progress > span { display: block; height: 100%; background: var(--accent); width: 0; }

.page-hero { padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  font-style: italic;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.page-intro { color: var(--muted); max-width: 42rem; font-size: 1rem; line-height: 1.6; }

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.toolbar input {
  flex: 1 1 280px;
  background: #000;
  border: 1px solid var(--line);
  color: #fff;
  padding: 12px 14px;
  font-size: 0.95rem;
}
.toolbar input:focus { outline: none; border-color: var(--accent); }
.toolbar button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.toolbar button:hover { background: rgba(255, 255, 255, 0.08); }

.ph-velha, .ph-a { background: radial-gradient(circle at 30% 40%, #1a3a4a, #050505 62%); }
.ph-damas { background: radial-gradient(circle at 70% 20%, #5a1a1a, #050505 62%); }
.ph-xadrez { background: radial-gradient(circle at 50% 50%, #2a2a38, #050505 62%); }
.ph-batalha { background: radial-gradient(circle at 20% 70%, #0a2a48, #050505 62%); }
.ph-ligue4 { background: radial-gradient(circle at 80% 30%, #123a6a, #050505 62%); }
.ph-reversi { background: radial-gradient(circle at 40% 40%, #1a1a1a, #111 50%, #050505 70%); }
.ph-dots { background: radial-gradient(circle at 60% 20%, #3a1a4a, #050505 62%); }
.ph-minas { background: radial-gradient(circle at 30% 80%, #3a2208, #050505 62%); }
.ph-domino { background: radial-gradient(circle at 70% 50%, #2a3a1a, #050505 62%); }
.ph-truco-menu { background: radial-gradient(circle at 40% 30%, #4a1a10, #050505 62%); }
.ph-blackjack { background: radial-gradient(circle at 60% 40%, #0a3a22, #050505 62%); }
.ph-uno { background: radial-gradient(circle at 25% 35%, #6a1010, #050505 62%); }
.ph-poker { background: radial-gradient(circle at 50% 20%, #0a2a1a, #050505 62%); }
.ph-detetive { background: radial-gradient(circle at 70% 60%, #1a1430, #050505 62%); }
.ph-b { background: radial-gradient(circle at 50% 50%, #221418, #050505 62%); }
.ph-c { background: radial-gradient(circle at 70% 30%, #2a1a10, #050505 62%); }

.how-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 700px) { .how-grid { grid-template-columns: 1fr 1fr 1fr; } }
.how-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
}
.how-card small {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 700;
}
.how-card h3 {
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin: 8px 0 10px;
}
.how-card p { color: var(--muted); font-size: 0.85rem; margin: 0; line-height: 1.6; }

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav-cluster {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    background: #050505;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .site-header.is-open .nav-cluster { display: flex; }
  .nav-main {
    flex-direction: column;
    border-radius: 0;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .nav-main a { padding: 12px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .slide { transition: none; }
  .game-card-fill { transition: none; }
}
