/* =========================================================
   Jogos de Slot 3D — Operator Client UI v7
   Left rail · Cyan / Indigo · Glass panels
   (Independent from all previous site layouts)
   ========================================================= */
:root {
  --bg: #070b16;
  --rail: #0b1224;
  --panel: #101a33;
  --panel-2: #162244;
  --line: #243356;
  --text: #e8eefc;
  --muted: #8b9bb8;
  --cyan: #2ee6ff;
  --cyan-2: #6ef0ff;
  --indigo: #5b6cff;
  --pink: #ff5cad;
  --ok: #3dffb0;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, 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;
  min-height: 100vh;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-2); }
ul { list-style: none; }

/* ===== APP SHELL: left rail + stage ===== */
.app {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

/* Left rail */
.rail {
  background: var(--rail);
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 16px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brand {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: #fff;
  padding: 8px 10px 16px;
}
.brand i { font-style: normal; color: var(--cyan); }
.rail a.item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
}
.rail a.item:hover,
.rail a.item.on {
  background: #ffffff0c;
  color: #fff;
}
.rail a.item.on { box-shadow: inset 3px 0 0 var(--cyan); }
.rail .group {
  margin-top: 14px;
  padding: 0 12px 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6a88;
}
.rail-cta {
  margin-top: auto;
  padding: 12px 8px 0;
  display: grid;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: .15s;
}
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), #1ab8e0);
  color: #041018;
}
.btn-cyan:hover { filter: brightness(1.08); color: #041018; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-pink {
  background: linear-gradient(135deg, var(--pink), #c43d8a);
  color: #fff;
}
.btn-sm { padding: 8px 12px; font-size: 0.8rem; }

/* Stage */
.stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: #0a1020cc;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.search {
  flex: 1;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
}
.search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}
.top-actions { display: flex; gap: 8px; align-items: center; }
.bal {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ok);
  padding: 6px 12px;
  border-radius: 999px;
  background: #3dffb014;
  border: 1px solid #3dffb033;
}

/* Banner 3D */
.banner {
  margin: 18px 20px 8px;
  border-radius: 18px;
  padding: 28px 28px 24px;
  background:
    radial-gradient(500px 220px at 80% 30%, #5b6cff44, transparent),
    radial-gradient(400px 200px at 10% 80%, #2ee6ff22, transparent),
    linear-gradient(135deg, #121c3a, #0c1428);
  border: 1px solid #2a3d6a;
  position: relative;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 40px;
  background: linear-gradient(135deg, #2ee6ff33, #5b6cff22);
  transform: rotate(25deg);
  filter: blur(2px);
}
.banner h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.banner h1 b { color: var(--cyan); }
.banner p {
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.banner .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

/* Content pad */
.pad { padding: 12px 20px 40px; }

/* Section */
.sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 12px;
}
.sec-h h2 { font-size: 1.1rem; }
.sec-h a { font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.sec-h a:hover { color: var(--cyan); }

/* 3D-ish game tiles */
.shelf {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transform: perspective(800px) rotateX(0deg);
  transition: .18s ease;
}
.tile:hover {
  transform: perspective(800px) rotateX(4deg) translateY(-4px);
  border-color: #3d5a9a;
  box-shadow: 0 16px 32px #0006, 0 0 0 1px #2ee6ff33;
}
.face {
  aspect-ratio: 1;
  background:
    linear-gradient(145deg, #1a2a55, #121c38 40%, #0e1830);
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  position: relative;
}
.face::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 12px;
  border: 1px solid #ffffff12;
  background: linear-gradient(180deg, #ffffff08, transparent);
}
.face::after {
  content: "▶ 3D";
  position: absolute;
  inset: 0;
  background: #070b16dd;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  opacity: 0;
  transition: .15s;
}
.tile:hover .face::after { opacity: 1; }
.meta { padding: 10px; }
.meta h3 {
  font-size: 0.84rem;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta .sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
}
.flag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--pink);
  color: #fff;
}
.flag.n { background: var(--indigo); }
.flag.j { background: var(--cyan); color: #041018; }

/* Glass promo cards */
.glass-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.glass {
  background: #ffffff08;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(8px);
}
.glass h3 { font-size: 0.95rem; margin-bottom: 4px; color: var(--cyan-2); }
.glass p { color: var(--muted); font-size: 0.84rem; margin-bottom: 10px; }

/* Inner pages */
.page-head {
  padding: 20px 20px 12px;
  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(--cyan); }
.page-head h1 { font-size: 1.45rem; margin-bottom: 4px; }
.page-head p { color: var(--muted); font-size: 0.92rem; max-width: 520px; }

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

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

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

.foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  color: #5a6a88;
  font-size: 0.76rem;
  text-align: center;
}

/* Mobile */
.menu-fab {
  display: none;
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--cyan);
  color: #041018;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px #2ee6ff44;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .shelf { grid-template-columns: repeat(4, 1fr); }
  .glass-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .rail {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    z-index: 40;
    transform: translateX(-105%);
    transition: .2s;
  }
  .rail.open { transform: none; }
  .menu-fab { display: grid; place-items: center; }
  .shelf { grid-template-columns: repeat(3, 1fr); }
  .cols { grid-template-columns: 1fr; }
  .bal { display: none; }
}
@media (max-width: 560px) {
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .glass-row { grid-template-columns: 1fr; }
  .banner { margin: 12px; padding: 20px; }
  .pad { padding: 8px 12px 32px; }
}