/* Bottom navigation + games menu overlay */

/* ── Bottom nav bar ────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 800;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: linear-gradient(180deg, #5a0808 0%, #3a0404 100%);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -6px 24px rgba(0,0,0,.5);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.nav-item {
  flex: 1;
  background: none;
  border: none;
  color: #ffd9a0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  font-family: inherit;
}

.nav-item:hover { background: rgba(255,193,7,.12); }
.nav-item:active { transform: scale(0.94); }

.nav-item.active {
  color: var(--gold);
  background: rgba(255,193,7,.18);
}

.nav-ico { font-size: 22px; line-height: 1; }
.nav-lbl { font-size: 11px; font-weight: 700; line-height: 1.15; text-align: center; }
.nav-lbl small { font-size: 9px; opacity: .75; font-weight: 500; }

/* Give pages room so content isn't hidden behind the fixed nav */
body { padding-bottom: 76px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }

/* ── Games menu overlay ────────────────────────── */
.games-menu-box { max-width: 460px; position: relative; }

.game-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.game-card {
  background: linear-gradient(180deg, rgba(255,193,7,.12), rgba(255,193,7,.04));
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 18px 10px;
  cursor: pointer;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
  position: relative;
  font-family: inherit;
  min-height: 120px;
  justify-content: center;
}

.game-card:hover:not(.locked) {
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(255,193,7,.2), rgba(255,193,7,.08));
  box-shadow: 0 10px 28px rgba(255,193,7,.22);
}

.game-card:active:not(.locked) { transform: translateY(0); }

.game-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #997;
}

.game-card-emoji { font-size: 40px; line-height: 1; }

.game-card-name { line-height: 1.25; }
.game-card-name .vi { display: block; font-weight: 800; font-size: 14px; color: var(--gold); }
.game-card-name .en { display: block; font-size: 11px; opacity: .8; }

.game-card-soon {
  position: absolute;
  top: 8px; right: 8px;
  background: #444;
  color: #ffd9a0;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
}

/* ── Top games-bar (quick switch on game pages) ── */
.games-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 14px;
  max-width: 960px;
  margin: 0 auto;
  scrollbar-width: none;
}
.games-bar::-webkit-scrollbar { display: none; }

.games-bar-item {
  flex: 0 0 auto;
  background: rgba(0,0,0,.25);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 6px 14px;
  color: #ffd9a0;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: inherit;
}

.games-bar-item:hover:not(.locked) { background: rgba(255,193,7,.15); }
.games-bar-item.active {
  background: linear-gradient(180deg, var(--gold), #ff8f00);
  color: #7a0c0c;
  border-color: #fff;
}
.games-bar-item.locked { opacity: .45; cursor: not-allowed; }

/* ── Shared game "rules" footer note ───────────────
   loto.html & wheel.html use .bc-rules but don't load baicao.css,
   so define it here (nav.css is on every game page) to keep it centered. */
.bc-rules {
  text-align: center;
  font-size: 11px;
  color: #ffd9a0;
  opacity: .7;
  line-height: 1.6;
  margin: 18px auto 8px;
  max-width: 480px;
  padding: 0 12px;
}
.bc-rules em { font-style: italic; }

/* ── Shop legal note ───────────────────────────── */
.shop-legal {
  text-align: center;
  font-size: 11px;
  color: #ffd9a0;
  opacity: .65;
  line-height: 1.5;
  max-width: 420px;
  margin: 24px auto 8px;
  padding: 0 12px;
}
.shop-legal .en { font-style: italic; }
