/* ============================================================
   11-bottom-nav.css — Bottom navigation
   ============================================================ */

/* Bottom nav removed per product request — no extra bottom padding needed for nav */
body { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Top header bar (✕ / Jo Bingo / 🌓🔊🌐🔄) removed per product request */
.header { display: none !important; }

/* "የወጣው እጣ" label and the AUTO pause/running status line, removed per product request */
.current-ball-label,
.auto-drawing-status { display: none !important; }

/* "ቁጥር ይምረጡ (ቀይ ይሆናል) / 0 ተመርጧል" bar above the number board, removed per product request */
.board-info { display: none !important; }

.bottom-nav {
  display: none !important;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 150;
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  pointer-events: none;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.nav-btn {
  flex: 1;
  position: relative;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 9px 2px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto;
}

.nav-btn svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
  pointer-events: none; /* clicks hit the button, not the SVG shadow tree */
}

.nav-btn span { pointer-events: none; }

.nav-btn:active svg { transform: scale(0.88); }

.nav-btn:active { background: rgba(240,193,75,.16); }

.nav-btn.active { color: #f0c14b; }

.nav-btn.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #f0c14b;
}

[data-theme="light"] .nav-btn.active { color: #9a6700; }

[data-theme="light"] .nav-btn.active::before { background: #9a6700; }

.tab-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tab-empty { text-align: center; color: var(--text-muted); }

.tab-empty-icon {
  width: 64px;
  height: 64px;
  stroke: #f0c14b;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  margin-bottom: 14px;
}

.tab-empty-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 6px; }

.tab-empty-sub { font-size: 13px; }

/* ------------------------------------------------------------------
   Away from Home (Wallet / Support / Profile): unlock document scroll.
   body.in-select / body.in-game lock overflow for the game screen;
   without this override Profile etc. cannot scroll and bottom taps fail
   after a drag (especially inside Telegram WebView).
   ------------------------------------------------------------------ */
body.tab-away {
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: auto !important;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
}

body.tab-away #tab-home {
  display: none !important;
}

/* Safety net: Wallet/Support/Profile must never show (or be scrolled into)
   while Home is the active tab, no matter how they got left visible. */
body:not(.tab-away) .tab-page {
  display: none !important;
}

body.tab-away .tab-page {
  display: block !important;
  min-height: calc(100dvh - env(safe-area-inset-bottom, 0px));
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  align-items: initial;
  justify-content: initial;
  padding: 12px 12px 24px;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
}
