/* ============================================================
   BOOM WORLD 4 // UI CLEANUP
   - Removes old trainer-skin bar from the live layout
   - Hides the old Golden Signal update stamp on WORLD only
   - Places WORLD / SOCIETY / MMORPG actions in telemetry row 2
   ============================================================ */

body.boom-world .boom-v400-stamp {
  display: none !important;
}

body.boom-world .sprite-bar {
  display: none !important;
}

/* The trainer-skin slot no longer reserves a right-hand grid cell. */
body.boom-world .dpad-wrap {
  grid-column: 1 / -1;
}

/* Desktop WORLD 4 telemetry actions. Existing telemetry is four columns:
   row 1 = Server / Zone / Trainers / Position
   row 2 = Abilities / WORLD / Society / MMORPG
*/
@media (min-width: 901px) and (pointer: fine) {
  body.boom-world .world-command {
    align-items: center !important;
  }

  body.boom-world .world-telemetry {
    grid-template-columns: repeat(4, minmax(100px, 1fr)) !important;
    align-items: stretch !important;
  }

  body.boom-world .world4-nav-chip {
    min-width: 0;
    min-height: 50px;
    padding: 8px 11px !important;
    border: 1px solid rgba(82,234,255,.20) !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, rgba(4,15,38,.78), rgba(4,9,24,.72)) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
    cursor: pointer;
    text-align: left;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
  }

  body.boom-world .world4-nav-chip > span {
    display: block;
    color: var(--w-muted, #8fa0c0);
    font: 700 9px Orbitron, sans-serif;
    letter-spacing: .10em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body.boom-world .world4-nav-chip > b {
    display: block;
    margin-top: 3px;
    color: #67efff;
    font: 800 13px Orbitron, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.boom-world .world4-nav-chip:hover,
  body.boom-world .world4-nav-chip.active {
    transform: translateY(-1px);
    border-color: rgba(82,234,255,.62) !important;
    background: linear-gradient(145deg, rgba(13,43,72,.86), rgba(7,19,42,.82)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 18px rgba(61,231,255,.11) !important;
  }

  body.boom-world #world4-action-society > b {
    color: #73efbd;
  }

  body.boom-world #world4-action-mmorpg > b {
    color: #d398ff;
  }

  /* The old floating launchers stay alive as functional targets for the
     WORLD 4 proxy buttons, but they are no longer visible on desktop. */
  body.boom-world #boom-region-switch,
  body.boom-world #boom-society-toggle {
    display: none !important;
  }

  body.boom-world #boom-mmo6-journal > .m6btn {
    display: none !important;
  }

  /* With its original button hidden, keep the MMORPG popup anchored cleanly. */
  body.boom-world #boom-mmo6-journal {
    pointer-events: none;
  }

  body.boom-world #boom-mmo6-journal .m6panel {
    pointer-events: auto;
    margin-top: 0 !important;
  }
}

/* Mobile keeps the existing compact WORLD controls. WORLD 4 desktop
   telemetry buttons must not enter the already tight mobile HUD. */
@media (max-width: 900px), (pointer: coarse) {
  body.boom-world .world4-nav-chip {
    display: none !important;
  }
}
