/* "Install the app" (js/app.js). */
.lsx-install { position: fixed; z-index: 1045; left: 16px; bottom: 16px; right: auto; display: flex; align-items: stretch; max-width: calc(100vw - 32px); border-radius: 999px; background: #0b1026; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); overflow: hidden; }
.lsx-install__go { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; background: transparent; color: inherit; font-weight: 800; text-align: left; }
.lsx-install__go img { width: 26px; height: 26px; border-radius: 7px; }
.lsx-install__close { border: 0; padding: 0 14px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.3rem; }
/* Inside the installed app: room for the phone's notch / home bar. */
.lsx-in-app body { padding-bottom: env(safe-area-inset-bottom); }
.lsx-in-app .lsx-music-btn { bottom: calc(16px + env(safe-area-inset-bottom)); }

/* Phones: the game bar is a strip you swipe sideways, not two screens of
   buttons, and a big Roll button stays at the bottom. */
@media (max-width: 576px) {
  .node__content .game-hub-bar.flex-wrap,
  .node__content .left-group {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-top: 12px !important;
    -webkit-overflow-scrolling: touch;
  }
  .lsx-strip-menu { position: fixed !important; transform: none !important; overflow-y: auto; z-index: 1060; }
  .game-hub-bar::-webkit-scrollbar,
  .left-group::-webkit-scrollbar { display: none; }
  .game-hub-bar > *,
  .left-group > * { flex: none; }
  .left-group .btn,
  .game-hub-bar .btn { padding: 6px 12px; font-size: .9rem; white-space: nowrap; }
  #game-container > h1 { font-size: 2rem; }
  /* Room at the bottom for the Roll button. */
  body.lsx-has-roll { padding-bottom: 92px; }
  .lsx-install { bottom: 96px; }
  .lsx-music-btn { bottom: 96px; }
}
.lsx-roll-btn { display: none; }
@media (max-width: 576px) {
  .lsx-roll-btn {
    display: block;
    position: fixed;
    z-index: 1030;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    padding: 18px;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow: 0 10px 30px rgba(21, 128, 61, .45);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .lsx-roll-btn:active { transform: scale(.97); }
  .lsx-roll-btn:disabled { opacity: .55; }
}
.lsx-install__go { display: block; font-size: .9rem; line-height: 1.35; }
.lsx-install__go img { vertical-align: middle; margin-right: 6px; }

/* Bots on/off (see src/World.php). */
.lsx-world-toggle { border: 1px solid #64748b; color: #e2e8f0; }
.lsx-world-toggle:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lsx-world-toggle.is-on { background: linear-gradient(135deg, #0ea5e9, #6366f1); border-color: #7dd3fc; color: #fff; }
.lsx-world-banner { margin-bottom: 8px; padding: 8px 14px; border-radius: 12px; background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #fff; font-size: .9rem; }
