/* =========================================================
   Caça-Níqueis Clássicos Online — Operator Style v6
   Burgundy · Brass gold · Retro lobby (≠ purple video lobby)
   ========================================================= */
:root {
  --bg: #140a0c;
  --panel: #1c1014;
  --panel-2: #26161c;
  --line: #3d242c;
  --text: #f5efe6;
  --muted: #a89090;
  --gold: #d4a84b;
  --gold-2: #f0c96a;
  --wine: #8b1e3d;
  --wine-2: #c42b55;
  --cream: #f3e6c8;
  --radius: 10px;
  --font: "Segoe UI", system-ui, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
ul { list-style: none; }

.wrap { width: min(1180px, calc(100% - 24px)); margin-inline: auto; }

/* Top bar */
.topstrip {
  background: linear-gradient(90deg, #3d1520, #1c1014 50%, #3d1520);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream);
}
.topstrip em { color: var(--gold); font-style: normal; }

/* Header */
.hdr {
  background: #12080aee;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(10px);
}
.hdr-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 10px 0;
}
.logo {
  font-weight: 900; font-size: 1.3rem; color: var(--cream);
  letter-spacing: -0.02em; white-space: nowrap;
}
.logo span { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.nav > li { position: relative; }
.nav a {
  display: block; padding: 8px 11px; border-radius: 6px;
  color: var(--muted); font-weight: 700; font-size: 0.85rem;
}
.nav a:hover, .nav .on > a { color: var(--gold); background: #ffffff08; }
.nav .sub {
  position: absolute; top: 100%; left: 0; min-width: 190px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px; box-shadow: 0 14px 36px #0008;
  opacity: 0; visibility: hidden; transform: translateY(5px); transition: .15s;
}
.nav > li:hover .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { color: var(--text); }
.nav .sub a:hover { color: var(--gold); background: #ffffff08; }

.acts { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 6px; font-weight: 800; font-size: 0.86rem;
  border: none; cursor: pointer; transition: .15s;
}
.btn-in {
  background: transparent; color: var(--cream); border: 1px solid var(--line);
}
.btn-in:hover { border-color: var(--gold); color: var(--gold); }
.btn-up {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #2a1a00;
}
.btn-up:hover { filter: brightness(1.06); color: #2a1a00; }
.btn-spin {
  background: linear-gradient(180deg, var(--wine-2), var(--wine));
  color: #fff;
  box-shadow: 0 4px 16px #8b1e3d55;
}
.btn-spin:hover { filter: brightness(1.08); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 0.8rem; }
.ham {
  display: none; background: none; border: 0; color: var(--cream);
  font-size: 1.4rem; cursor: pointer;
}

/* Hero classic */
.hero {
  padding: 32px 0 26px;
  background:
    radial-gradient(600px 280px at 50% -10%, #8b1e3d33, transparent),
    linear-gradient(180deg, #1a0c10, var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; align-items: center;
}
.hero h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.4rem);
  line-height: 1.12; margin-bottom: 10px; letter-spacing: -0.02em;
}
.hero h1 b { color: var(--gold); }
.hero p { color: var(--muted); max-width: 460px; margin-bottom: 16px; font-size: 0.98rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Machine promo */
.machine {
  background: linear-gradient(160deg, #2a1520, #1c1014);
  border: 2px solid #5c3a20;
  border-radius: 16px;
  padding: 18px;
  box-shadow: inset 0 0 0 1px #d4a84b33, 0 12px 40px #0006;
}
.machine .reels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px;
}
.machine .reel {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #0a0608, #1a1014);
  border: 2px solid #5c3a20;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 2rem;
}
.machine .title {
  text-align: center; font-weight: 900; color: var(--gold);
  font-size: 0.95rem; margin-bottom: 4px;
}
.machine .sub {
  text-align: center; color: var(--muted); font-size: 0.8rem; margin-bottom: 12px;
}

/* Filter chips */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); font-weight: 700; font-size: 0.82rem;
}
.chip:hover, .chip.on {
  border-color: var(--gold); color: var(--gold); background: #d4a84b14;
}

/* Game grid */
.sec { padding: 22px 0 32px; }
.sec-h {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-bottom: 12px;
}
.sec-h h2 { font-size: 1.15rem; }
.sec-h a { font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.sec-h a:hover { color: var(--gold); }

.grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: .15s;
}
.card:hover {
  border-color: #6a4030;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #0005;
}
.thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #3d1a28, #1a1218);
  display: grid; place-items: center;
  font-size: 2rem;
  position: relative;
}
.thumb::after {
  content: "GIRAR";
  position: absolute; inset: 0;
  background: #140a0cee;
  display: grid; place-items: center;
  font-weight: 900; font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--gold); opacity: 0; transition: .15s;
}
.card:hover .thumb::after { opacity: 1; }
.body { padding: 10px; }
.body h3 {
  font-size: 0.84rem; margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.body .m { font-size: 0.72rem; color: var(--muted); display: flex; justify-content: space-between; }
.tag {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  font-size: 0.62rem; font-weight: 900; padding: 2px 6px; border-radius: 4px;
  background: var(--wine); color: #fff;
}
.tag.gold { background: var(--gold); color: #2a1a00; }

/* Promo row */
.promos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.promo {
  background: linear-gradient(145deg, #2a1520, var(--panel));
  border: 1px solid var(--line);
  border-radius: 12px; padding: 16px;
}
.promo h3 { font-size: 0.95rem; color: var(--gold); margin-bottom: 4px; }
.promo p { color: var(--muted); font-size: 0.82rem; margin-bottom: 10px; }

/* Page */
.ptop {
  padding: 26px 0 18px; background: #1a0c10; border-bottom: 1px solid var(--line);
}
.bc { font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.bc a { color: var(--muted); }
.bc a:hover { color: var(--gold); }
.ptop h1 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin-bottom: 4px; }
.ptop p { color: var(--muted); font-size: 0.92rem; max-width: 520px; }

.split {
  display: grid; grid-template-columns: 1fr 260px; gap: 22px;
  padding: 22px 0 44px;
}
.prose h2 {
  font-size: 1.1rem; margin: 20px 0 8px; color: var(--cream);
  border-bottom: 1px solid var(--line); padding-bottom: 5px;
}
.prose p, .prose li { color: var(--muted); }
.prose p { margin-bottom: 10px; }
.prose ul, .prose ol { margin: 0 0 12px 1.1rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.side {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px; margin-bottom: 12px;
}
.side h3 {
  font-size: 0.86rem; color: var(--gold); margin-bottom: 8px;
  padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.side a {
  display: block; padding: 6px 0; color: var(--muted);
  font-size: 0.84rem; font-weight: 600;
}
.side a:hover { color: var(--gold); }

table {
  width: 100%; border-collapse: collapse; font-size: 0.86rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--panel-2); color: var(--gold); }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* Footer */
.ftr {
  background: #0c0608; border-top: 1px solid var(--line);
  padding: 32px 0 18px; margin-top: 10px;
}
.ftr-g {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 20px;
}
.ftr h4 { color: var(--cream); font-size: 0.86rem; margin-bottom: 8px; }
.ftr a { display: block; color: var(--muted); font-size: 0.8rem; padding: 3px 0; }
.ftr a:hover { color: var(--gold); }
.ftr-b {
  border-top: 1px solid var(--line); padding-top: 12px;
  text-align: center; color: #6a5050; font-size: 0.76rem;
}

.mbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: #1c1014ee; border-top: 1px solid var(--line);
  padding: 8px 10px; gap: 8px; backdrop-filter: blur(8px);
}
.mbar .btn { flex: 1; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .promos, .ftr-g { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .ham { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--panel); flex-direction: column; padding: 8px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; display: none; background: transparent;
  }
  .nav > li:hover .sub { display: block; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .promos, .ftr-g { grid-template-columns: 1fr; }
  .acts .btn-in { display: none; }
  .mbar { display: flex; }
  body { padding-bottom: 60px; }
}