/* =========================================
   BASE E TIPOGRAFIA
   ========================================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0e111a;
  color: #fff;
}

body.locked {
  overflow: hidden;
}

h1 {
  text-align: center;
  font-size: 18px;
  margin-top: 10px;
}

h2 {
  text-align: center;
  font-size: 14px;
  color: #ff7a00;
}

/* =========================================
   HEADER & MENU
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #161a2b;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #ff7a00;
}

.logo span {
  color: #fff;
}

.menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ff7a00;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-btn div {
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
}

.menu-btn div::before,
.menu-btn div::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 2px;
  background: #fff;
  left: 0;
}

.menu-btn div::before { top: -6px; }
.menu-btn div::after { top: 6px; }

.menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: #1b2035;
  padding: 20px;
  transform: translateX(100%);
  transition: 0.3s ease;
  z-index: 999;
}

.menu.active {
  transform: translateX(0);
}

.close {
  font-size: 22px;
  cursor: pointer;
  text-align: right;
  margin-bottom: 20px;
}

.menu a {
  display: block;
  padding: 12px;
  margin-bottom: 10px;
  background: #242a45;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: 0.2s;
}

.menu a:hover {
  background: #ff7a00;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   SLIDER
   ========================================= */
.slider {
  width: 100%;
  height: 190px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 1s;
  pointer-events: none;
  z-index: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* =========================================
   BUSCA E FILTROS (TABS)
   ========================================= */
.search-box {
  padding: 10px;
}

.search-box input {
  width: 90%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: #161a2b;
  color: #fff;
  font-size: 14px;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  background: #1b2035;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.tab.active {
  background: #ff7a00;
}

button {
  margin: 10px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #274079;
  color: #fff;
  cursor: pointer;
}

/* =========================================
   AVISOS E MARQUEE
   ========================================= */
.intro, .final-text, .aviso {
  background: #161a2b;
  margin: 10px;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #ccc;
}

.marquee-container {
  width: 90%;
  overflow: hidden;
  background: #1a2238;
  border-radius: 12px;
  margin: 15px auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  box-sizing: border-box;
}

.marquee-icon {
  font-size: 16px;
  animation: pulseSoft 2s infinite;
}

@keyframes pulseSoft {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.6; transform: scale(1); }
}

.marquee-wrapper {
  overflow: hidden;
  flex: 1;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  color: #cfd8ff;
  font-size: 18px;
  font-weight: 500;
  animation: marqueeMove 25s linear infinite;
}

.marquee-container:hover .marquee-text,
.marquee-container:active .marquee-text {
  animation-play-state: paused;
}

.marquee-text span {
  color: #ff8c00;
  font-weight: bold;
}

@keyframes marqueeMove {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* =========================================
   MELHORES DO MOMENTO
   ========================================= */
.melhores-box {
  padding: 10px;
}

.melhores-title {
  text-align: center;
  font-size: 18px;
  color: #ff8c00;
  margin-bottom: 15px;
  font-weight: bold;
}

.melhores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.melhor-card {
  background: #161a2b;
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.melhor-card img {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
}

.melhor-card span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: bold;
}

.top-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: linear-gradient(90deg, #ff8c00, #ff5100);
  color: #fff;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 8px;
  font-weight: bold;
}

/* =========================================
   GRID E CARDS (PLATAFORMAS)
   ========================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
}

.card {
  background: #161a2b;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.card.visited {
  filter: grayscale(100%) brightness(0.7);
}

.card img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 8px;
}

.caption {
  font-size: 12px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visited-label {
  position: absolute;
  top: 5px;
  right: 5px;
  background: #333;
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 6px;
  opacity: 0;
}

.card.visited .visited-label {
  opacity: 1;
}

/* BADGES DOS CARDS */
.badges-topo {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 4px;
  align-items: center;
  z-index: 5;
}

.novo-badge {
  background: #ff0000;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: bold;
  animation: pulse 1s infinite;
  box-shadow: 0 0 5px #ff0000;
}

.badge-cassino {
  display: flex;
  font-size: 9px;
  font-weight: bold;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.badge-cassino::before {
  content: "R$";
  background: #4da3ff;
  color: #fff;
  padding: 2px 4px;
}

.badge-cassino::after {
  content: "+99";
  background: #ff2b2b;
  color: #fff;
  padding: 2px 5px;
}

.badge-valor {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: #00c853;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: bold;
}

/* =========================================
   POPUP E OVERLAY
   ========================================= */
#popupOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 25, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#popupBox {
  background: #0b132b;
  color: #fff;
  padding: 25px;
  max-width: 380px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 25px rgba(255, 140, 0, 0.3);
  border: 1px solid rgba(255, 140, 0, 0.3);
}

#popupBox h2 {
  color: #ff8c00;
  margin-bottom: 10px;
}

#popupBox p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
}

.popupBtn {
  padding: 12px;
  margin-top: 10px;
  border: none;
  width: 100%;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.accept {
  background: linear-gradient(90deg, #ff8c00, #ff5e00);
  color: #fff;
}

.decline {
  background: #1c2541;
  color: #ccc;
}

/* =========================================
   RODAPÉ E BOTÃO TOPO
   ========================================= */
.footer {
  text-align: center;
  padding: 15px;
  background: #161a2b;
  color: #aaa;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 20px;
}

#btnTopo {
  position: fixed;
  bottom: 90px;
  right: 15px;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: #ff7a00;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}

#btnTopo:active {
  transform: scale(0.9);
}
