/* =================================================================== */
/* 1. ESTRUTURA GERAL E FUNDO                                          */
/* =================================================================== */
.dashboard-container,
.sidebar,
.sidebar-header,
.sidebar-top {
  display: flex;
}

#game-view-container,
body {
  /* Cor de fundo que aparece enquanto a imagem carrega ou se falhar */
  background: #030c16;
  /* Faz a imagem não se repetir */
  background-repeat: no-repeat;
  /* Faz a imagem ficar fixa na tela durante a rolagem */
  background-attachment: fixed;
  /* Centraliza a imagem na tela */
  background-position: center;
  /* Redimensiona a imagem para cobrir todo o container */
  background-size: cover;
}

/* =================================================================== */
/* 2. MENU LATERAL (SIDEBAR)                                           */
/* =================================================================== */
.sidebar {
  width: 260px;
  background: linear-gradient(to left, #223e4a2b, #0c161a);
  padding: 15px;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  left: 0;
  z-index: 200;
  transition: transform 0.3s;
  top: 60px; /* Adicionado para descer o menu */
  height: calc(100dvh - 60px); /* Adicionado para ajustar a altura */
  border-right: 1px solid;
  border-image: linear-gradient(to bottom, #ffffff00, #00bfff, #ffffff00) 1;
}

.sidebar-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.logo img {
  margin: 0px auto;
}

.sidebar-top {
  flex-direction: column;
  flex-grow: 1;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  padding: 10px;
  color: #cbd5e1;
  font-weight: 400;
  border-radius: 8px;
  margin-bottom: 1px;
  transition: all 0.2s ease-in-out;
  border-left: 3px solid transparent; /* Evita 'pulo' do layout no hover */
  background: transparent;
}

.sidebar-nav li a svg {
  margin-right: 15px;
  stroke-width: 2.5px;
}

/* Efeito de hover do painel */
.sidebar-nav li a:hover {
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.1) 0%,
    transparent 100%
  );
  border-left: 3px solid #3b82f6; /* Borda azul do painel */
  color: #ffffff;
}

/* Efeito de item ativo do painel */
.sidebar-nav li.active a {
  background-color: #2563eb; /* Azul sólido do painel */
  color: #ffffff;
  border-left: 3px solid #2563eb;
}

/* =================================================================== */
/* 3. RODAPÉ DA SIDEBAR (SOCIAL E PERFIL)                              */
/* =================================================================== */
.social-media-links {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 5px; /* Espaçamento antes da seção do perfil */
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: rgba(165, 191, 233, 0);
  border: 1px solid #3e455300;
  border-radius: 8px;
  color: #cbd5e1;
  transition: all 0.2s ease-in-out;
}

.social-btn:hover {
  background-color: #3b83f699;
  border-color: #3b82f6;
  color: #ffffff;
  transform: scale(1.05);
}

.social-btn img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.sidebar-bottom {
  padding-top: 5px;
  border-top: 1px solid;
  border-image: linear-gradient(to right, #ffffff00, #00bfff, #ffffff00) 1;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.profile-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  font-weight: 600;
  color: #eaeaea;
}

.logout-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 5px 10px;
  justify-content: center;
  color: #868e96;
  font-weight: 600;
  transition: color 0.3s;
}

.logout-btn:hover {
  color: #e03131;
}

.logout-btn svg {
  margin-right: 10px;
}

.close-sidebar-btn {
  display: none;
  position: absolute;
  top: 1px;
  right: 15px;
  background: 0 0;
  border: none;
  color: #adb5bd;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  z-index: 201;
}

.close-sidebar-btn:hover {
  color: #fff;
}

/* =================================================================== */
/* 4. OVERLAYS E CONTAINERS                                            */
/* =================================================================== */
#game-view-container,
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.sidebar-overlay {
  background-color: rgba(10, 20, 30, 0.6);
  backdrop-filter: blur(5px);
  z-index: 199;
  opacity: 1;
  transition: opacity 0.3s, visibility 0.3s;
  visibility: visible;
}

.sidebar-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#game-view-container.hidden,
.mobile-header,
.mobile-menu-btn {
  display: none;
}

/* =================================================================== */
/* 5. CONTEÚDO PRINCIPAL (DASHBOARD)                                   */
/* =================================================================== */
.dashboard-main-content {
  margin-left: 260px;
  flex: 1;
  padding: 80px 0 40px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #223e4a, #0c161a);
  padding: 0px 40px;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, #ffffff00, #00bfff, #ffffff00) 1;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 150;
  height: 60px;
  box-sizing: border-box;
}

.header-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 15px 20px;
}

.welcome-message h1 {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
}

.welcome-message p {
  color: #adb5bd;
}

/* Seção de Saldo */
.balance-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.balance-display {
  text-align: right;
}

.balance-display span {
  font-size: 14px;
  color: #adb5bd;
}

.balance-display strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 4px #59b9f9; /* brilho azul claro */
}

.btn-deposit {
  background-color: #00bfff;
  text-shadow: 1px 1px 1px rgb(4 4 4 / 71%);
  font-size: 18px;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 800;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.btn-deposit:hover {
  background-color: #009acd;
}

/* Ícones Desktop do Header */
.header-icons-desktop {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-btn-desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.icon-btn-desktop:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.icon-btn-desktop img {
  width: 24px;
  height: 24px;
}

/* =================================================================== */
/* 6. SEÇÃO DE JOGOS (LAYOUT CARDS TIPO INDEX)                         */
/* =================================================================== */
.fundo-titulo {
  width: 97%;
  background: linear-gradient(to right, #016e92, #012d3700);
  border-radius: 9px;
  padding: 10px 0px;
  margin: 40px auto 0px;
  box-sizing: border-box;
}

.fundo-titulo h2 {
  font-size: 20px;
  font-weight: 600;
  margin-left: 2%;
  margin: 0;
  margin-left: 2%;
}

.games-section {
  padding: 10px 20px;
  width: 100%;
  max-width: none;
  margin: 5px auto;
  margin-bottom: 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
  gap: 10px;
}

/* Wrapper que define o tamanho na Grid */
.game-card-wrapper {
  width: 100%;
  aspect-ratio: 220/300;
  position: relative;
}

/* Estilo Base do Card */
.game-card {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 9px;
  border: 1px solid #2e6098;
  box-shadow: none;
  background: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  z-index: 1;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 9px;
}

.game-card:hover {
  transform: scale(1.05);
  /* Remove a borda azul sólida original para o degradê assumir */
  border-color: transparent;
  /* Sombra dourada focada mais na parte de baixo para combinar com o degradê */
  box-shadow: 0 10px 20px -5px #0077ff66, 0 0 8px transparent;
  z-index: 10;
}

/* Cria a borda degradê Ouro usando pseudo-elemento e máscara */
.game-card:hover::after {
  content: "";
  position: absolute;
  inset: 0; /* Ocupa todo o card */
  border-radius: 9px; /* Mesma curvatura do card */
  padding: 1px; /* Espessura da borda */

  /* O Degradê: Transparente em cima -> Ouro embaixo */
  background: linear-gradient(to bottom, transparent 10%, #0077ff 100%);

  /* A Mágica: Máscara que deixa apenas a borda visível */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  z-index: 11; /* Fica acima da imagem e do overlay */
  pointer-events: none; /* Deixa o clique passar */
}

/* Overlay do Texto (Fundo degradê na parte inferior) */
.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, #050a14f2 50%, transparent);
  padding: 30px 8px 2px;
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
  text-align: left;
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

/* Título do Jogo no Card */
.card-overlay h3 {
  color: #fff;
  font-size: 1.2em;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Tags (Categorias) */
.card-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Cores das Tags */
.tag-fast {
  color: #00ff8896;
}
.tag-battle {
  color: #8157ff96;
}
.tag-strategy {
  color: #00bfff96;
}
.tag-arcade {
  color: #ff660096;
}

/* Cards "Em Breve" */
.game-card-coming-soon img {
  opacity: 0.7;
}

/* =================================================================== */
/* 7. MODAIS (GERAL E DEPÓSITO)                                        */
/* =================================================================== */
.modal-content {
  width: 800px;
  max-width: 98%;
  max-height: 95dvh;
  padding: 30px;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: #1a1d23; /* Cor de fundo padrão para modais */
  color: #eaeaea;
}

.modal-content p {
  margin-bottom: 10px;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-secondary {
  background-color: #3e4553;
}
.btn-secondary:hover {
  background-color: #505866;
}

/* Inputs nos Modais */
.modal-content .input-group {
  margin-bottom: 15px;
}

.modal-content input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  background-color: #1a1d23;
  border: 1px solid #3d4a5c;
  border-radius: 8px;
  color: #ffffff;
  font-size: 18px;
  box-sizing: border-box;
}

.modal-content input[type="text"] {
  width: 100%;
  padding: 12px 45px;
  background-color: #1a1d23;
  border: 1px solid #3d4a5c;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  box-sizing: border-box;
}

.modal-content input:focus {
  outline: none;
  border-color: #00bfff;
  box-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
}

/* Estilos de Depósito (Pix) */
.fee-calculation {
  background-color: #121418;
  border: 1px solid #3e4553;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #adb5bd;
  margin-bottom: 10px;
}

.fee-row.total {
  color: #fff;
  font-weight: 600;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #3e4553;
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pix-logo {
  height: 120px;
}

.countdown-timer {
  text-align: center;
  font-size: 14px;
  color: #e03131;
  font-weight: 600;
  margin-bottom: 20px;
}

.qr-code-img {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto 20px;
  border-radius: 2px;
}

.pix-code-area {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.pix-code-area input {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: #121418;
  border: 1px solid #3e4553;
  border-radius: 8px;
  padding: 10px;
  color: #adb5bd;
  font-size: 12px;
}

#copy-pix-code-btn {
  padding: 0 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  color: #fff;
  cursor: pointer;
  background-color: #3e4553;
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  display: block;
  margin: 10px auto 20px;
}

/* =================================================================== */
/* 9. ESTILO "MOBILE FORCE"                                            */
/* =================================================================== */
.modal-content.game-info-content-new.mobile-style-force {
  flex-direction: column !important;
  max-width: 600px !important;
  max-height: 97vh;
  overflow-y: auto;
}

.mobile-style-force .game-modal-left {
  width: 100%;
  height: 220px;
  flex-shrink: 0;
}

.mobile-style-force .game-modal-right {
  width: 100%;
  height: auto;
  padding: 5px 25px 10px 25px;
  overflow: visible;
}

.mobile-style-force .game-desc-text {
  max-height: 200px;
  overflow-y: auto;
  flex: none;
  margin: 10px 0px;
  padding-right: 5px;
}

.mobile-style-force .game-modal-right h2 {
  font-size: 24px;
  text-align: center;
}

/* =================================================================== */
/* 10. MODAL DE RANKING                                                */
/* =================================================================== */
.modal-content.ranking-modal-content {
  background: #1a1d2ad1;
  border: 1px solid #3e4553;
  border-radius: 12px;
  width: 800px;
  height: 90%;
  max-width: 95%;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.ranking-header {
  padding: 20px 25px;
  border-bottom: 1px solid #3e4553;
  justify-items: center;
}

.ranking-header h2 {
  margin: 0 0 5px 0;
  text-align: left;
}
.ranking-header p {
  margin: 0;
  color: #adb5bd;
  font-size: 14px;
  text-align: left;
}

.ranking-search-bar {
  position: relative;
  padding: 20px 25px;
}

.ranking-search-bar input {
  width: 100%;
  background: #121418;
  border: 1px solid #3e4553;
  border-radius: 8px;
  padding: 12px 45px;
  color: #ffffff;
  font-size: 15px;
  box-sizing: border-box;
}

.ranking-search-bar svg {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: #868e96;
  stroke-width: 2;
  fill: none;
}

.ranking-list-container {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0 25px 20px 25px;
}

.ranking-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #393838;
  transition: background-color 0.2s;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item.ranking-item-current-user {
  background-color: rgba(255, 215, 0, 0.08);
  border-left: 3px solid #ffd700;
  border-right: 3px solid #ffd700;
  margin: 0 -25px;
  padding-left: 22px;
  padding-right: 22px;
}
.ranking-item.ranking-item-current-user .ranking-nickname {
  color: #ffd700;
}

.ranking-position {
  font-size: 16px;
  font-weight: 600;
  color: #adb5bd;
  width: 40px;
  text-align: left;
}
.ranking-position.gold {
  color: #ffd700;
}
.ranking-position.silver {
  color: #c0c0c0;
}
.ranking-position.bronze {
  color: #cd7f32;
}

.ranking-player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.ranking-player-info {
  flex: 1;
}
.ranking-nickname {
  font-weight: 600;
  color: #eee;
  font-size: 15px;
}
.ranking-profit {
  font-size: 16px;
  font-weight: 700;
  color: #00e05a;
}

.ranking-list-container::-webkit-scrollbar {
  width: 8px;
}
.ranking-list-container::-webkit-scrollbar-track {
  background: #1e222d;
  border-radius: 4px;
}
.ranking-list-container::-webkit-scrollbar-thumb {
  background-color: #3e4553;
  border-radius: 4px;
  border: 2px solid #1e222d;
}
.ranking-list-container::-webkit-scrollbar-thumb:hover {
  background-color: #555e70;
}

/* =================================================================== */
/* 11. ESTILOS ESPECÍFICOS DE MINI-BANNER (MENU LATERAL)               */
/* =================================================================== */
.minibanner-container {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.minibanner-prize {
  position: absolute;
  bottom: 19%;
  left: 51%;
  width: 45%;
  text-align: center;
  padding: 5px 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  color: #ffd700;
  font-size: 1em;
  font-weight: 400;
  text-shadow: 0px 0px 5px #000;
  box-sizing: border-box;
  display: none;
}

.minibanner-prize span {
  display: block;
}

/* =================================================================== */
/* 12. RESPONSIVIDADE (MEDIA QUERIES)                                  */
/* =================================================================== */
@media (max-width: 1000px) {
  .body {
    height: 100dvh;
  }
  .dashboard-main-content {
    padding: 0px;
    margin-left: 0;
    max-width: 100%;
  }

  .dashboard-header {
    display: none;
  }

  .mobile-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 101;
    padding: 1px 10px;
    background: linear-gradient(180deg, #223e4a, #00070e);
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, #ffffff00, #00bfff, #ffffff00) 1;
  }

  .dashboard-logo img {
    margin-top: 5px;
    width: 100px;
    height: auto;
  }

  .close-sidebar-btn,
  .mobile-menu-btn {
    display: block;
    background: 0 0;
    border: none;
    color: #fefeff;
    cursor: pointer;
  }

  .sidebar {
    padding: 30px 15px 15px 15px;
    transform: translateX(-100%);
    justify-content: space-between;
    position: fixed;
    background: linear-gradient(to left, #223e4a, #0c161a);
    top: 0;
    height: 100dvh;
  }

  .sidebar.visible {
    transform: translateX(0);
  }
  .sidebar .logo {
    height: 40px;
    display: block;
  }

  .welcome-message {
    display: none;
  }

  .mobile-header .header-left {
    display: flex;
    justify-content: flex-start;
  }
  .mobile-header .header-center {
    display: flex;
    justify-content: center;
  }
  .mobile-header .header-right {
    display: flex;
    justify-content: flex-end;
  }

  .icon-btn {
    background: 0 0;
    border: none;
    color: #e5eef7;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
  }
  .icon-btn:hover {
    color: #fff;
  }

  .games-grid {
    width: 98vw;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
    gap: 7px;
    margin: auto 0px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
  .game-modal-left::after {
    display: block;
  }

  .game-card-wrapper {
    width: 100%;
    aspect-ratio: 220/300;
  }
  .btn-play-green {
    font-size: 1em;
  }

  .fundo-titulo {
    width: 100vw;
    background: linear-gradient(to right, #012d3700, #016e92, #012d3700);
    border-radius: 0px;
    padding: 3px;
    margin: 20px 0 15px;
  }
  .fundo-titulo h2 {
    font-size: 20px;
    text-align: center;
    margin: 0 auto;
  }
  .close-button-custom {
    top: 0px;
  }

  .card-overlay h3 {
    font-size: 0.85em;
  }
  .card-tag {
    font-size: 9px;
  }

  .balance-section {
    width: 95%;
    padding: 30px;
    border-radius: 7px;
    background: linear-gradient(180deg, #016e92, #0c161a);
    border: 1px solid #8bb7f587;
    display: flex;
    margin: 30px auto 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .balance-display {
    text-align: center;
    width: 100%;
  }
  .balance-display span {
    font-size: 25px;
    color: #deecf9;
  }
  .balance-display strong {
    font-size: 35px;
    margin-top: 4px;
  }

  .btn-deposit {
    width: 50%;
    margin-top: 10px;
    padding: 8px;
    font-size: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #b9d4fa;
  }

  .modal-content.game-info-content-new {
    flex-direction: column;
    max-height: 95dvh;
    max-width: 95%;
  }
  .game-modal-left {
    width: 100%;
    height: 220px;
  }
  .game-modal-right {
    width: 100%;
    height: auto;
    padding: 20px;
    overflow: visible;
  }

  .game-desc-text {
    overflow-y: auto;
    flex: none;
    max-height: 200px;
    margin-bottom: 20px;
    padding-right: 5px;
  }
  .game-modal-right h2 {
    font-size: 24px;
    margin-bottom: 0;
  }

  .ranking-list-container {
    max-height: 70vh;
    padding: 0 5px 20px 10px;
  }
  .ranking-position {
    width: 30px;
  }

  #mobile-event-image,
  #mobile-ranking-image {
    height: 24px;
    width: auto;
    display: block;
  }
  #mobile-event-btn,
  #open-ranking-btn-mobile {
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* =================================================================== */
/* 13. ELEMENTOS AUXILIARES                                            */
/* =================================================================== */
#game-view-container {
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

#game-iframe-wrapper {
  flex-grow: 1;
  width: 100%;
  height: 100%;
}

#game-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-game-button {
  background-color: #223e4a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  position: absolute;
  top: 15px;
  left: 20px;
  z-index: 1001;
  transition: background-color 0.3s;
}

.close-game-button:hover {
  background-color: #00bfff;
}

/* =================================================================== */
/* 14. ESTRATÉGIA "KTO": TRAVA DE 1920PX E CENTRALIZAÇÃO               */
/* =================================================================== */
@media (min-width: 1921px) {
  /* Centraliza o Header */
  .dashboard-header {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    /* Mantém alinhamento visual com o corpo (Sidebar + Padding) */
    padding-left: 30px;
    box-sizing: border-box;
    /* Linha sutil nas laterais para definir a área em telas muito grandes */
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }
  .sidebar {
    width: 360px;
    top: 60px !important;
    justify-content: space-between !important; /* Exibe o topo e o bottom */
    padding-top: 0px !important;
    padding-bottom: 30px !important;
  }

  .sidebar-top {
    flex-grow: 1 !important; /* Faz o conteúdo ocupar o meio */
  }

  .sidebar-bottom {
    margin-top: 20px !important;
  }
  /* Centraliza o Conteúdo Principal */
  .dashboard-main-content {
    margin: 0;
    width: calc(100% - 360px);
    padding-left: 60px;
    box-sizing: border-box;
  }
  .fundo-titulo {
    width: 100%;
    background: linear-gradient(to right, #016e92, #012d3700);
    border-radius: 9px;
    padding: 10px 0px;
    margin: 40px 0 0px;
    box-sizing: border-box;
  }
  /* Mantém o grid denso (8 colunas) para aproveitar o espaço */
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 15px;
  }
  .modal-content.game-info-content-new {
    width: 1300px;
    max-width: 50%; /* Menos largo para manter proporção */
    height: 50%; /* Altura fixa para caber tudo confortavelmente */
    max-height: 90vh;
    display: flex; /* Garante layout lado a lado */
    flex-direction: row;
    padding: 0; /* Remove padding padrão do container para imagem colar na borda */
    overflow: hidden;
  }

  .game-modal-left {
    width: 55%; /* Área da imagem um pouco maior */
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .game-modal-left img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* O SEGREDO: Mostra a imagem inteira sem cortar */
  }

  .game-modal-right {
    width: 78%;
    height: 100%;
    padding: 50px; /* Espaçamento interno para o texto não colar nas bordas */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza o conteúdo verticalmente */
  }
  .modal-content.game-info-content-new.mobile-style-force {
    flex-direction: column !important;
    max-width: 1000px !important;
    height: 70vh;
    align-content: center;
    overflow-y: auto;
  }
  .mobile-style-force .game-modal-left {
    width: 100%;
    height: auto;
  }
  .minibanner-prize {
    bottom: 22%;
    font-size: 1.2em;
    font-weight: 400;
  }
}
