/* ================================================
   LAYOUT — Modern SPA Style (No Scroll-Snap)
   ================================================ */

/* Document level fix */
html, body {
  height: 100%;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Top area - inside homePage flow */
#topArea {
  position: relative;
  z-index: 100;
  width: 100%;
  flex-shrink: 0;
}

/* Main container */
.main {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Page panels - Show/Hide Logic */
.page-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  padding-bottom: calc(var(--bottom-h) + 20px);
}

.page-panel.active {
  display: flex;
}

/* Home page internal layout */
#homePage {
  flex-direction: column;
}

/* homeContent: column layout — tab bar on top, game grid below */
#homeContent {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  min-height: 0;
}



/* Bottom nav — fixed at bottom */
.bottom-nav {
  height: var(--bottom-h);
  background: #0a0820;
  border-top: 1px solid #201c44;
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.bnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: #5a5090;
  font-size: 9px;
  font-family: inherit;
  transition: color .2s;
  position: relative;
}

.bnav-btn.active {
  color: var(--accent);
}

.bnav-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}

.bnav-btn.active .bnav-icon {
  transform: scale(1.1);
}

/* ── Agent Hologram Orb Button ─────────────────────────────── */
.agent-orb-btn {
  position: relative;
  overflow: visible;
}
.agent-orb-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: radial-gradient(ellipse at 50% 35%, rgba(0,210,255,.07) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity .3s;
}
.agent-orb-btn.active::before {
  background: radial-gradient(ellipse at 50% 35%, rgba(0,210,255,.18) 0%, transparent 65%);
}
.agent-icon-wrap {
  width: 32px !important;
  height: 32px !important;
}
#agentOrb { display: block; }
.agent-orb-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #5a5090;
  transition: color .2s;
}
.agent-orb-btn.active .agent-orb-label {
  background: linear-gradient(90deg, #00d4ff, #00a8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scrollbar styling */
.page-panel::-webkit-scrollbar {
  width: 0px;
}
