/* ============================================================================
   BUSÃO VR — Layout Responsivo (Desktop + Mobile)
   ============================================================================ */

/* --- TELA INICIAL --- */
.landing-screen {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 75% 45% at 50% -10%, rgba(255, 176, 0, 0.12), transparent 65%),
    radial-gradient(ellipse 60% 45% at 15% 90%, rgba(31, 209, 139, 0.07), transparent 65%),
    var(--bg);
  padding: 36px 20px 44px;
  overflow-y: auto;
}

.landing-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.landing-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.led-marquee {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: #07090B;
  border: 1px solid #2A3138;
  border-radius: var(--radius-md);
  box-shadow: 0 0 24px rgba(255, 176, 0, 0.14), inset 0 0 18px rgba(0, 0, 0, 0.85);
}

.led-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 6px rgba(255, 176, 0, 0.45));
}

.led-title {
  font-family: var(--font-led);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(255, 176, 0, 0.52);
  line-height: 1;
}

.led-sub {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--ink-dim);
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
}

.landing-tagline {
  max-width: 740px;
  margin: 0;
  font-size: 15px;
  color: var(--ink-dim);
}

.landing-tagline strong {
  color: var(--ink);
}

.landing-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-dim);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 99px;
}

.meta-pill-green {
  border-color: rgba(31, 209, 139, 0.35);
  color: var(--electric);
  background: rgba(31, 209, 139, 0.08);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-footer {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* --- TELA DO JOGO --- */
.game-screen {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.appbar {
  height: 54px;
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 20;
}

.appbar-left, .appbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 416px;
}

.map-pane {
  position: relative;
  overflow: hidden;
  background: #0D1116;
}

#mapa {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
  border-left: 1px solid var(--line);
}

.sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line);
  background: #101419;
  flex-shrink: 0;
}

.sidebar-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-only {
  display: none !important;
}

/* --- RESPONSIVO (TABLET / MOBILE) --- */
@media (max-width: 960px) {
  .company-grid {
    grid-template-columns: 1fr;
  }

  .game-screen {
    width: 100%;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .appbar {
    height: auto;
    width: 100%;
    padding: 8px 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .appbar-left, .appbar-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
  }

  .clock-block {
    padding: 3px 8px;
    gap: 6px;
  }

  .led-clock {
    font-size: 18px;
    min-width: 56px;
  }

  .speed-btn {
    padding: 5px 7px;
    font-size: 11px;
  }

  .hud-stat-val {
    font-size: 12.5px;
  }

  .event-pill {
    display: none !important;
  }

  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: 56vh auto;
  }

  .sidebar {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .mobile-only {
    display: inline-flex !important;
  }

  .layers-group {
    display: none !important;
    position: absolute;
    top: 38px;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(15, 19, 25, 0.96);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 8px;
    z-index: 15;
  }

  .layers-group.open {
    display: flex !important;
  }

  .map-legend {
    display: none !important;
  }
}
