/* Header */
#header {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  background: rgba(5, 5, 14, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.hdr-side { min-width: 70px; display: flex; align-items: center; gap: 6px; }
.hdr-side.left { justify-content: flex-end; }
.hdr-center { display: flex; align-items: center; gap: 9px; }
.hdr-logo {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--purple); box-shadow: var(--glow-p);
}
.hdr-title { font-size: 13px; font-weight: 700; }
.hdr-sub { font-size: 10px; color: var(--muted); }
.online-pill {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--muted);
  background: rgba(34, 197, 94, 0.12);
  padding: 3px 9px; border-radius: 20px;
}
.online-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 1.8s infinite;
}

/* Navbar */
#navbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(5, 5, 14, 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
  background: none; border: none; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; cursor: pointer; padding: 6px 14px; border-radius: 12px;
  transition: color 0.2s;
}
.nav-item.active { color: var(--purple2); }
.nav-item.active .nav-ico { filter: drop-shadow(0 0 6px var(--purple)); }
.nav-ico { font-size: 20px; }

/* Pages */
.page { display: none; padding: 12px; animation: page-in 0.28s ease; }
.page.active { display: block; }

/* Fullscreen game shells */
.fscreen {
  display: none; position: fixed; inset: 0;
  background: var(--bg); z-index: 100; flex-direction: column;
}
.fscreen.active { display: flex; }
.fs-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 14, 0.92);
}
.fs-back {
  width: 32px; height: 32px; border-radius: 9px; border: none;
  background: rgba(255, 255, 255, 0.08); color: var(--text);
  font-size: 16px; cursor: pointer;
}
.fs-chip {
  background: rgba(168, 85, 247, 0.2);
  padding: 4px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
