/**
 * FORRE_DARK — Mobile premium shell (≤768px only).
 * Desktop: no effect. No linear-gradient backgrounds — flat surfaces + borders only.
 */

.tw-mob-play-strip {
  display: none;
}

@media (max-width: 768px) {
  body.tw-mob-premium-v1 {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  }

  /* Global play-strip off: bottom nav only (+ safe area). Desktop unchanged (strip never shown ≥769px). */
  body.tw-mob-premium-v1.tw-mob-no-play-strip {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body.tw-mob-premium-v1.tw-mob-no-play-strip .tw-mob-play-strip {
    display: none !important;
  }

  body.tw-mob-premium-v1.tw-mob-no-play-strip.tw-page-messenger .tw-mob-view--chat {
    min-height: calc(100vh - 72px);
  }

  body.builder-edit-mode.tw-mob-premium-v1 .tw-mob-play-strip {
    display: none !important;
  }

  body.tw-mob-premium-v1 .tw-mob-play-strip {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    z-index: 955;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    min-height: 48px;
    background: var(--surface-1, #121212);
    border-top: 1px solid var(--border, #2a2a2a);
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
  }

  body.tw-mob-premium-v1 .tw-mob-play-strip__btn {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 12px;
    font-family: var(--font-family, Roboto, sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-secondary, #b8b8b8);
    background: var(--surface-2, #1a1a1a);
    border: none;
    border-right: 1px solid var(--border, #2a2a2a);
    transition: color 0.15s ease, background 0.15s ease;
  }

  body.tw-mob-premium-v1 .tw-mob-play-strip__btn:last-child {
    border-right: 0;
  }

  body.tw-mob-premium-v1 .tw-mob-play-strip__btn:active {
    background: var(--surface-3, #222);
    color: var(--text-primary, #fff);
  }

  body.tw-mob-premium-v1 .tw-mob-play-strip__btn.is-active {
    color: var(--text-primary, #fff);
    background: var(--surface-1, #121212);
    box-shadow: inset 0 3px 0 0 var(--primary, #2796f2);
  }

  body.tw-mob-premium-v1 .tw-mob-play-strip__btn--lfg.is-active {
    box-shadow: inset 0 3px 0 0 var(--success, #22c55e);
  }

  body.tw-mob-premium-v1 .tw-mob-play-strip__ico {
    font-size: 15px;
    color: var(--primary, #2796f2);
  }

  body.tw-mob-premium-v1 .tw-mob-play-strip__btn--lfg .tw-mob-play-strip__ico {
    color: var(--success, #22c55e);
  }

  body.tw-mob-premium-v1 .tw-mob-play-strip__label {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.tw-mob-premium-v1 .tw-mob-play-strip__pill {
    margin-left: 4px;
    padding: 2px 7px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--primary, #2796f2);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  body.tw-mob-premium-v1 .tw-mob-play-strip__btn--lfg .tw-mob-play-strip__pill {
    background: var(--success, #22c55e);
    color: #06140a;
    border-color: rgba(0, 0, 0, 0.15);
  }

  /* Bottom dock: calmer surface, clearer active state (no gradients) */
  body.tw-mob-premium-v1 .tw-mobile-bottom-nav {
    background: var(--surface-1, #121212);
    border-top: 1px solid var(--border, #2a2a2a);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  }

  body.tw-mob-premium-v1 .tw-mobile-bottom-item {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.62);
  }

  body.tw-mob-premium-v1 .tw-mobile-bottom-item i {
    color: rgba(226, 232, 240, 0.55);
    font-size: 17px;
  }

  body.tw-mob-premium-v1 .tw-mobile-bottom-item.is-active {
    color: rgba(248, 250, 252, 0.96);
    /* Fullbredd top-markör (ingen kort “ö”-linje med luft i kant) */
    box-shadow: inset 0 3px 0 0 var(--primary, #2796f2);
    background: rgba(39, 150, 242, 0.06);
  }

  body.tw-mob-premium-v1 .tw-mobile-bottom-item.is-active i {
    color: rgba(147, 197, 253, 0.98);
  }

  body.tw-mob-premium-v1 .tw-mob-hub-btn {
    border: 1px solid var(--border, #333);
    background: var(--surface-2, #1a1a1a);
    box-shadow: none;
  }

  body.tw-mob-premium-v1 .tw-mob-hub-btn.is-open {
    border-color: var(--primary, #2796f2);
    background: var(--surface-3, #222);
  }

  /* Hub sheet: first play items read as primary (LFG / Event) */
  body.tw-mob-premium-v1 .tw-mob-hub-item.tw-mob-hub-item--play {
    border-left: 3px solid var(--primary, #2796f2);
    background: rgba(39, 150, 242, 0.06);
  }

  body.tw-mob-premium-v1 .tw-mob-hub-item.tw-mob-hub-item--play-lfg {
    border-left-color: var(--success, #22c55e);
    background: rgba(34, 197, 94, 0.07);
  }

  /* Chat lives in bottom nav — hide duplicate corner FAB on mobile */
  body.tw-mob-premium-v1.has-mobile-nav #messengerFabBtn,
  body.tw-mob-premium-v1.has-mobile-nav .messenger-fab-btn,
  body.tw-mob-premium-v1.has-mobile-nav #messengerLauncherBtn {
    display: none !important;
  }

  /* Profile: calmer stack, readable type */
  body.tw-mob-premium-v1.tw-page-profile.has-mobile-nav .tw-widget,
  body.tw-mob-premium-v1.tw-page-profile.has-mobile-nav-guest .tw-widget {
    border: 1px solid var(--border, #2a2a2a);
    background: var(--surface-2, #1a1a1a);
  }

  body.tw-mob-premium-v1.tw-page-profile.has-mobile-nav .tw-widget-title,
  body.tw-mob-premium-v1.tw-page-profile.has-mobile-nav-guest .tw-widget-title {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted, #9ca3af);
  }

  /* Leaderboard mobile view: slightly larger tap targets in premium shell */
  body.tw-mob-premium-v1.tw-page-leaderboard.has-mobile-nav .tw-mob-list-row--lb {
    border: 1px solid var(--border, #2a2a2a);
  }
}

@media (min-width: 769px) {
  body.tw-mob-premium-v1 .tw-mob-play-strip {
    display: none !important;
  }
}
