/* Shared lab shell: tabs + panes */
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #07090f;
}

.lab-tabs {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(8, 10, 18, 0.96);
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(0, 229, 255, 0.12);
  font-family: Rajdhani, system-ui, sans-serif;
}

.lab-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.75rem;
  color: #dce6ff;
  text-decoration: none;
}

.lab-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  background: #0b1020;
}

.lab-brand strong {
  font-family: Orbitron, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.lab-tabs-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lab-home,
.lab-hub {
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
  color: #00e5ff;
  font: 700 0.82rem Rajdhani, system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

.lab-hub {
  border-color: rgba(109, 123, 255, 0.45);
  background: rgba(109, 123, 255, 0.12);
  color: #b8c0ff;
}

.lab-home:hover,
.lab-hub:hover {
  border-color: #00e5ff;
  background: rgba(0, 229, 255, 0.18);
  color: #fff;
}

.lab-hub:hover {
  border-color: #6d7bff;
  background: rgba(109, 123, 255, 0.22);
}

.lab-tabs .tab {
  appearance: none;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: transparent;
  color: #a8b4d0;
  font: 600 0.85rem Rajdhani, system-ui, sans-serif;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.lab-tabs .tab:hover {
  border-color: rgba(0, 229, 255, 0.55);
  color: #dce6ff;
}

.lab-tabs .tab.is-on {
  background: rgba(0, 229, 255, 0.16);
  border-color: #00e5ff;
  color: #00e5ff;
}

.game-pane {
  position: fixed;
  inset: 0;
  top: 40px;
  display: none;
}

.game-pane.is-on {
  display: block;
}

.game-pane[hidden] {
  display: none !important;
}

/* Phones / tablets: full-screen gate, no game chrome */
.desktop-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 122, 24, 0.18), transparent 45%),
    radial-gradient(ellipse at 70% 80%, rgba(0, 229, 255, 0.12), transparent 40%),
    #07090f;
}

html.is-mobile-blocked .desktop-gate {
  display: grid;
}

html.is-mobile-blocked .lab-tabs,
html.is-mobile-blocked .game-pane {
  display: none !important;
}

.desktop-gate-card {
  width: min(420px, 100%);
  padding: 1.5rem 1.35rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 122, 24, 0.45);
  background: linear-gradient(165deg, rgba(36, 10, 52, 0.96), rgba(12, 4, 22, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  font-family: Rajdhani, system-ui, sans-serif;
  color: #e8ecff;
  text-align: center;
}

.desktop-gate-card .eyebrow {
  margin: 0 0 0.4rem;
  color: #ff9a4a;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
}

.desktop-gate-card h1 {
  margin: 0 0 0.75rem;
  font-family: Orbitron, Rajdhani, sans-serif;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #fff;
}

.desktop-gate-card p {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: rgba(220, 230, 255, 0.82);
}

.desktop-gate-card .btn {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #ff7a18;
  background: rgba(255, 122, 24, 0.2);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.desktop-gate-card .btn:hover {
  background: rgba(255, 122, 24, 0.35);
}

/* City chrome sits under tabs */
#pane-city .chrome {
  top: 0;
}
