/* CounterStorm Mobile Pages V2 - Salas / Ranking / Perfil */
@media (min-width: 901px) {
  #cs-mobile-pages-v2 { display: none !important; }
}

@media (max-width: 900px) {
  #cs-mobile-pages-v2 {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 14px 92px;
    background:
      radial-gradient(circle at 18% 4%, rgba(69, 170, 255, .16), transparent 34%),
      radial-gradient(circle at 82% 18%, rgba(130, 255, 70, .10), transparent 28%),
      linear-gradient(180deg, #07111f 0%, #03101b 60%, #02070d 100%);
    color: #eaf4ff;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  }

  #cs-mobile-pages-v2.csmp-active { display: block; }

  body.csmp-open {
    overflow: hidden !important;
  }

  .csmp-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 76px;
    padding: 14px 0 12px;
    background: linear-gradient(180deg, rgba(7, 17, 31, .98), rgba(7, 17, 31, .82));
    backdrop-filter: blur(14px);
  }

  .csmp-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .csmp-logo {
    color: #ffd11a;
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 0 16px rgba(255, 209, 26, .22));
  }

  .csmp-brand-title {
    color: #fff;
    font-weight: 950;
    font-size: 17px;
    letter-spacing: .08em;
    line-height: 1.05;
    white-space: nowrap;
  }

  .csmp-brand-sub {
    color: #9fb6d0;
    font-size: 11px;
    margin-top: 2px;
    white-space: nowrap;
  }

  .csmp-create {
    border: 0;
    border-radius: 13px;
    padding: 12px 14px;
    color: #06111f;
    font-weight: 950;
    background: linear-gradient(180deg, #9cff38, #5cbd20);
    box-shadow: 0 0 22px rgba(156, 255, 56, .23);
    white-space: nowrap;
  }

  .csmp-card {
    border: 1px solid rgba(115, 165, 220, .22);
    background: linear-gradient(180deg, rgba(13, 29, 49, .94), rgba(4, 14, 25, .96));
    border-radius: 20px;
    box-shadow: 0 22px 55px rgba(0,0,0,.28);
  }

  .csmp-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 16px;
  }

  .csmp-page-title {
    margin: 0;
    color: #fff;
    font-size: 30px;
    letter-spacing: -.035em;
    line-height: 1;
  }

  .csmp-page-kicker {
    margin: 0 0 6px;
    color: #9cff38;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .csmp-refresh {
    height: 36px;
    border: 1px solid rgba(115, 165, 220, .28);
    border-radius: 12px;
    color: #dcecff;
    background: rgba(12, 30, 52, .86);
    font-weight: 900;
    padding: 0 12px;
  }

  .csmp-search {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(115, 165, 220, .25);
    background: rgba(3, 12, 22, .82);
    color: #fff;
    padding: 0 14px;
    outline: none;
    font-weight: 800;
    margin-bottom: 14px;
  }

  .csmp-tabs {
    display: flex;
    gap: 8px;
    padding: 5px;
    border-radius: 16px;
    background: rgba(2, 10, 18, .72);
    border: 1px solid rgba(115, 165, 220, .16);
    margin-bottom: 14px;
  }

  .csmp-tab {
    flex: 1;
    height: 38px;
    border: 0;
    border-radius: 12px;
    color: #b7cadf;
    background: transparent;
    font-weight: 950;
  }

  .csmp-tab.active {
    color: #06111f;
    background: linear-gradient(180deg, #9cff38, #5cbd20);
    box-shadow: 0 0 20px rgba(156,255,56,.22);
  }

  .csmp-room-list, .csmp-map-list, .csmp-rank-list, .csmp-kill-list {
    display: grid;
    gap: 12px;
  }

  .csmp-room-card {
    overflow: hidden;
  }

  .csmp-room-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
  }

  .csmp-room-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4,14,25,.94), transparent 55%);
  }

  .csmp-room-body {
    padding: 13px;
  }

  .csmp-room-title {
    color: #9cff38;
    font-weight: 950;
    text-transform: uppercase;
    font-size: 17px;
    line-height: 1.1;
  }

  .csmp-room-map {
    color: #9fb7d1;
    font-size: 12px;
    margin-top: 3px;
  }

  .csmp-room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #c6d9ee;
    font-size: 12px;
    margin: 10px 0 12px;
  }

  .csmp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .csmp-btn {
    height: 42px;
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 950;
    color: #06111f;
    background: linear-gradient(180deg, #9cff38, #5cbd20);
  }

  .csmp-btn.secondary {
    color: #eaf4ff;
    background: rgba(18, 40, 67, .96);
    border: 1px solid rgba(115, 165, 220, .22);
  }

  .csmp-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  .csmp-stat {
    padding: 13px;
    min-height: 88px;
  }

  .csmp-stat-num {
    color: #fff;
    font-size: 26px;
    font-weight: 950;
    line-height: 1;
  }

  .csmp-stat-label {
    color: #a5bdd5;
    font-size: 12px;
    margin-top: 4px;
  }

  .csmp-stat-note {
    color: #9cff38;
    font-size: 11px;
    font-weight: 900;
    margin-top: 3px;
  }

  .csmp-rank-row {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
  }

  .csmp-pos {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #06111f;
    font-weight: 950;
    background: linear-gradient(180deg,#9cff38,#5cbd20);
  }

  .csmp-rank-name {
    color: #fff;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .csmp-rank-meta {
    color: #8fa9c4;
    font-size: 11px;
    margin-top: 2px;
  }

  .csmp-rank-score {
    color: #9cff38;
    font-weight: 950;
    text-align: right;
  }

  .csmp-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -.02em;
  }

  .csmp-mini-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(115,165,220,.12);
  }

  .csmp-mini-row:last-child { border-bottom: 0; }
  .csmp-mini-row strong { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .csmp-mini-row span { color: #9cff38; font-weight: 950; white-space: nowrap; }

  .csmp-profile-hero {
    padding: 18px;
    text-align: center;
  }

  .csmp-avatar {
    width: 82px;
    height: 82px;
    border-radius: 28px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    color: #06111f;
    font-size: 34px;
    font-weight: 950;
    background: linear-gradient(180deg,#9cff38,#36d9ff);
    box-shadow: 0 0 34px rgba(156,255,56,.18);
  }

  .csmp-input {
    width: 100%;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(115,165,220,.24);
    background: rgba(2, 10, 18, .78);
    color: #fff;
    padding: 0 14px;
    outline: none;
    font-weight: 800;
  }

  .csmp-empty {
    padding: 18px;
    text-align: center;
    color: #9fb7d1;
  }

  .csmp-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 99991;
    height: 70px;
    border-radius: 22px;
    border: 1px solid rgba(115,165,220,.22);
    background: rgba(5, 17, 30, .92);
    backdrop-filter: blur(18px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 20px 70px rgba(0,0,0,.45);
  }

  .csmp-nav-btn {
    border: 0;
    background: transparent;
    color: #aac1d8;
    font-weight: 850;
    font-size: 11px;
    display: grid;
    place-items: center;
    gap: 3px;
  }

  .csmp-nav-btn b {
    font-size: 22px;
    line-height: 1;
  }

  .csmp-nav-btn.active {
    color: #9cff38;
  }

  .csmp-toast {
    position: fixed;
    left: 50%;
    bottom: 92px;
    z-index: 99999;
    transform: translateX(-50%);
    padding: 12px 16px;
    border-radius: 14px;
    color: #06111f;
    background: linear-gradient(180deg,#9cff38,#5cbd20);
    font-weight: 950;
    box-shadow: 0 20px 70px rgba(0,0,0,.4);
  }
}
