/* ============================================
   MOBILE LEADERBOARD PAGE
   ============================================ */
@media (max-width: 1100px) {
  .event-mobile-shell .user-search-overlay,
  .gift-mobile-shell .user-search-overlay,
  .match-mobile-shell .user-search-overlay,
  .profile-mobile-shell .user-search-overlay,
  .home-mobile-shell .user-search-overlay,
  .events-mobile-shell .user-search-overlay,
  .leaderboard-mobile-shell .user-search-overlay,
  .scan-game-mobile-shell .user-search-overlay {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .event-mobile-shell .user-search-results,
  .gift-mobile-shell .user-search-results,
  .match-mobile-shell .user-search-results,
  .profile-mobile-shell .user-search-results,
  .home-mobile-shell .user-search-results,
  .events-mobile-shell .user-search-results,
  .leaderboard-mobile-shell .user-search-results,
  .scan-game-mobile-shell .user-search-results {
    max-height: min(54dvh, 440px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
  }

  .event-mobile-shell .user-search-close-icon,
  .gift-mobile-shell .user-search-close-icon,
  .match-mobile-shell .user-search-close-icon,
  .profile-mobile-shell .user-search-close-icon,
  .home-mobile-shell .user-search-close-icon,
  .events-mobile-shell .user-search-close-icon,
  .leaderboard-mobile-shell .user-search-close-icon,
  .scan-game-mobile-shell .user-search-close-icon {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 1.1rem;
  }

  .event-mobile-shell .user-search-overlay,
  .gift-mobile-shell .user-search-overlay,
  .match-mobile-shell .user-search-overlay,
  .profile-mobile-shell .user-search-overlay,
  .home-mobile-shell .user-search-overlay,
  .events-mobile-shell .user-search-overlay,
  .leaderboard-mobile-shell .user-search-overlay,
  .scan-game-mobile-shell .user-search-overlay {
    inset: 0;
    z-index: 1050;
    padding: calc(env(safe-area-inset-top) + 74px) 14px 16px 162px;
    place-items: start stretch;
    background: linear-gradient(180deg, rgba(6, 11, 19, 0.9) 0%, rgba(10, 16, 27, 0.92) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .event-mobile-shell .user-search-modal,
  .gift-mobile-shell .user-search-modal,
  .match-mobile-shell .user-search-modal,
  .profile-mobile-shell .user-search-modal,
  .home-mobile-shell .user-search-modal,
  .events-mobile-shell .user-search-modal,
  .leaderboard-mobile-shell .user-search-modal,
  .scan-game-mobile-shell .user-search-modal {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(18, 24, 31, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
  }

  .event-mobile-shell .user-search-tabs,
  .gift-mobile-shell .user-search-tabs,
  .match-mobile-shell .user-search-tabs,
  .profile-mobile-shell .user-search-tabs,
  .home-mobile-shell .user-search-tabs,
  .events-mobile-shell .user-search-tabs,
  .leaderboard-mobile-shell .user-search-tabs,
  .scan-game-mobile-shell .user-search-tabs {
    margin-top: 12px;
    gap: 8px;
  }

  .event-mobile-shell .user-search-tab,
  .gift-mobile-shell .user-search-tab,
  .match-mobile-shell .user-search-tab,
  .profile-mobile-shell .user-search-tab,
  .home-mobile-shell .user-search-tab,
  .events-mobile-shell .user-search-tab,
  .leaderboard-mobile-shell .user-search-tab,
  .scan-game-mobile-shell .user-search-tab {
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #d0d7de;
    font-size: 0.84rem;
    font-weight: 600;
  }

  .event-mobile-shell .user-search-tab.active,
  .gift-mobile-shell .user-search-tab.active,
  .match-mobile-shell .user-search-tab.active,
  .profile-mobile-shell .user-search-tab.active,
  .home-mobile-shell .user-search-tab.active,
  .events-mobile-shell .user-search-tab.active,
  .leaderboard-mobile-shell .user-search-tab.active,
  .scan-game-mobile-shell .user-search-tab.active {
    border-color: rgba(34, 197, 94, 0.26);
    background: rgba(34, 197, 94, 0.12);
    color: #8df2a2;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06);
  }

  .event-mobile-shell .user-search-tab .badge,
  .gift-mobile-shell .user-search-tab .badge,
  .match-mobile-shell .user-search-tab .badge,
  .profile-mobile-shell .user-search-tab .badge,
  .home-mobile-shell .user-search-tab .badge,
  .events-mobile-shell .user-search-tab .badge,
  .leaderboard-mobile-shell .user-search-tab .badge,
  .scan-game-mobile-shell .user-search-tab .badge {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #c9d2de;
  }

  .event-mobile-shell .user-search-tab.active .badge,
  .gift-mobile-shell .user-search-tab.active .badge,
  .match-mobile-shell .user-search-tab.active .badge,
  .profile-mobile-shell .user-search-tab.active .badge,
  .home-mobile-shell .user-search-tab.active .badge,
  .events-mobile-shell .user-search-tab.active .badge,
  .leaderboard-mobile-shell .user-search-tab.active .badge,
  .scan-game-mobile-shell .user-search-tab.active .badge {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.32);
    color: #9ff5ae;
  }

  .event-mobile-shell .user-search-form,
  .gift-mobile-shell .user-search-form,
  .match-mobile-shell .user-search-form,
  .profile-mobile-shell .user-search-form,
  .home-mobile-shell .user-search-form,
  .events-mobile-shell .user-search-form,
  .leaderboard-mobile-shell .user-search-form,
  .scan-game-mobile-shell .user-search-form {
    margin-top: 10px;
  }

  .event-mobile-shell .user-search-input,
  .gift-mobile-shell .user-search-input,
  .match-mobile-shell .user-search-input,
  .profile-mobile-shell .user-search-input,
  .home-mobile-shell .user-search-input,
  .events-mobile-shell .user-search-input,
  .leaderboard-mobile-shell .user-search-input,
  .scan-game-mobile-shell .user-search-input {
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #d0d7de;
    box-shadow: none;
  }

  .event-mobile-shell .user-search-input:focus,
  .gift-mobile-shell .user-search-input:focus,
  .match-mobile-shell .user-search-input:focus,
  .profile-mobile-shell .user-search-input:focus,
  .home-mobile-shell .user-search-input:focus,
  .events-mobile-shell .user-search-input:focus,
  .leaderboard-mobile-shell .user-search-input:focus {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(255, 255, 255, 0.05);
  }

  .event-mobile-shell .user-search-results,
  .gift-mobile-shell .user-search-results,
  .match-mobile-shell .user-search-results,
  .profile-mobile-shell .user-search-results,
  .home-mobile-shell .user-search-results,
  .events-mobile-shell .user-search-results,
  .leaderboard-mobile-shell .user-search-results,
  .scan-game-mobile-shell .user-search-results {
    margin-top: 12px;
    max-height: none;
    overflow: visible;
    gap: 8px;
  }

  .event-mobile-shell .user-search-result,
  .gift-mobile-shell .user-search-result,
  .match-mobile-shell .user-search-result,
  .profile-mobile-shell .user-search-result,
  .home-mobile-shell .user-search-result,
  .events-mobile-shell .user-search-result,
  .leaderboard-mobile-shell .user-search-result,
  .scan-game-mobile-shell .user-search-result {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
  }
}

@media (max-width: 1100px) {
  body.pwa-standalone.event-mobile-shell .user-search-overlay,
  body.pwa-standalone.gift-mobile-shell .user-search-overlay,
  body.pwa-standalone.match-mobile-shell .user-search-overlay,
  body.pwa-standalone.profile-mobile-shell .user-search-overlay,
  body.pwa-standalone.home-mobile-shell .user-search-overlay,
  body.pwa-standalone.events-mobile-shell .user-search-overlay,
  body.pwa-standalone.leaderboard-mobile-shell .user-search-overlay,
  body.pwa-standalone.analysis-mobile-shell .user-search-overlay {
    padding: calc(env(safe-area-inset-top) + 74px) 14px 16px 14px !important;
  }
}

/* Intermediate overlay drawer overrides removed.
   Canonical drawer styles now live in mobile-drawer.css. */

@media (max-width: 768px) {
  .mobile-leaderboard-page {
    padding: calc(env(safe-area-inset-top) + 66px) 10px 10px 126px;
    min-height: 100dvh;
    background: #0d1117;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
  }
  .mobile-leaderboard-section {
    background: rgba(22, 27, 34, 0.98);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 80vh;
    overflow: hidden;
  }
  .mobile-leaderboard-header {
    padding: 0 18px 8px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-leaderboard-header h2 {
    font-size: 1.18rem;
    font-weight: 800;
    color: #f0f6fc;
    margin: 0 0 2px 0;
    letter-spacing: -0.5px;
  }
  .mobile-leaderboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 2px;
  }
  .mobile-leaderboard-tabs button {
    flex: 1 1 0;
    background: none;
    border: none;
    color: #aeb8c8;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 7px 0 6px 0;
    border-bottom: 2.5px solid transparent;
    border-radius: 0;
    transition: color 0.18s, border-color 0.18s;
    cursor: pointer;
  }
  .mobile-leaderboard-tabs button.active {
    color: #7ee787;
    border-bottom: 2.5px solid #22c55e;
    background: none;
  }
  .mobile-leaderboard-table-wrap {
    overflow-x: auto;
    background: none;
    margin: 0 0 0 0;
  }
  .mobile-leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: none;
    font-size: 0.98rem;
    color: #f0f6fc;
    margin: 0;
  }
  .mobile-leaderboard-table thead th {
    font-size: 0.82rem;
    font-weight: 700;
    color: #8b949e;
    background: none;
    border: none;
    padding: 7px 0 7px 0;
    text-align: left;
    letter-spacing: 0.02em;
  }
  .mobile-leaderboard-table tbody tr {
    background: none;
    border: none;
    transition: background 0.18s;
  }
  .mobile-leaderboard-table tbody tr.user-row {
    background: rgba(34,197,94,0.10);
    border-left: 3px solid #22c55e;
  }
  .mobile-leaderboard-table td, .mobile-leaderboard-table th {
    padding: 7px 0 7px 0;
    border: none;
    vertical-align: middle;
  }
  .mobile-leaderboard-table td {
    font-size: 0.98rem;
    color: #f0f6fc;
    white-space: nowrap;
  }
  .mobile-leaderboard-table .avatar {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 7px;
    background: #181f2b;
  }
  .mobile-leaderboard-table .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }
  .mobile-leaderboard-table .player-name {
    font-weight: 700;
    color: #7ee787;
    vertical-align: middle;
  }
  .mobile-leaderboard-table .gm-badge {
    display: inline-block;
    background: #ffb800;
    color: #222;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 6px;
    padding: 2px 6px;
    margin-right: 5px;
    vertical-align: middle;
    letter-spacing: 0.04em;
  }
  .mobile-leaderboard-table .loading {
    text-align: center;
    color: #8b949e;
    font-size: 1rem;
    padding: 18px 0;
  }
  .mobile-leaderboard-user-meta {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    background: rgba(22, 27, 34, 0.98);
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 8px;
    padding: 12px 0 14px 0;
    border-radius: 0 0 16px 16px;
  }
  .mobile-leaderboard-user-meta .user-rank-meta {
    display: flex;
    gap: 32px;
    width: 100%;
    justify-content: center;
  }
  .mobile-leaderboard-user-meta .user-rank-meta > div {
    text-align: center;
    color: #aeb8c8;
    font-size: 0.92rem;
    font-weight: 600;
  }
  .mobile-leaderboard-user-meta .user-rank-meta b {
    color: #f0f6fc;
    font-size: 1.12rem;
    font-weight: 800;
    display: block;
    margin-top: 2px;
  }
}

@media (max-width: 768px) {
  /* Hide language switcher from navbar on all mobile shells */
  .event-mobile-shell .app-navbar .language-switcher,
  .gift-mobile-shell .app-navbar .language-switcher,
  .match-mobile-shell .app-navbar .language-switcher,
  .profile-mobile-shell .app-navbar .language-switcher,
  .home-mobile-shell .app-navbar .language-switcher,
  .events-mobile-shell .app-navbar .language-switcher,
  .leaderboard-mobile-shell .app-navbar .language-switcher,
  .analysis-mobile-shell .app-navbar .language-switcher {
    display: none !important;
  }

  .event-mobile-shell {
    background:
      radial-gradient(circle at top, rgba(34, 197, 94, 0.14), transparent 28%),
      linear-gradient(180deg, #060b11 0%, #0d1117 100%) !important;
    overflow-x: hidden;
    overflow-y: auto !important;
    min-height: 100dvh;
  }

  .event-mobile-shell .app-navbar-shell {
    left: 148px !important;
    right: 0 !important;
    top: 0 !important;
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.96) 0%, rgba(8, 12, 18, 0.78) 100%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    pointer-events: auto;
  }

  .event-mobile-shell .app-navbar,
  .event-mobile-shell .app-navbar.container {
    height: 58px !important;
    padding: 0 14px !important;
    justify-content: flex-end !important;
    gap: 10px;
  }

  .event-mobile-shell .app-navbar .hamburger-btn {
    display: none !important;
  }

  .event-mobile-shell .app-navbar .navbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
  }

  .event-mobile-shell .app-navbar .brand-block {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
  }

  .event-mobile-shell .app-navbar .brand-block strong {
    font-size: 1rem !important;
  }

  .event-mobile-shell .app-navbar .brand-block span {
    display: block;
    color: #7d8590;
    font-size: 0.68rem;
    margin-top: 2px;
  }

  .event-mobile-shell .mobile-nav-drawer {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 148px !important;
    padding: calc(env(safe-area-inset-top) + 18px) 12px calc(env(safe-area-inset-bottom) + 18px) !important;
    background: linear-gradient(180deg, rgba(9, 14, 21, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
    overflow-y: auto;
    z-index: 1012;
  }

  .event-mobile-shell .mobile-nav-links {
    margin-top: 0;
    gap: 10px;
  }

  .event-mobile-shell .mobile-nav-drawer .mobile-nav-links a,
  .event-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button {
    min-height: 48px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    color: #d0d7de !important;
  }

  .event-mobile-shell .mobile-nav-drawer .mobile-nav-links a.active {
    background: rgba(34, 197, 94, 0.13) !important;
    border-color: rgba(34, 197, 94, 0.24) !important;
    color: #8df2a2 !important;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06);
  }

  .event-mobile-shell .mobile-nav-actions {
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .event-mobile-shell .mobile-nav-actions .navbar-user-chip {
    display: none !important;
  }

  .event-mobile-shell .mobile-nav-actions .btn {
    display: inline-flex !important;
    width: 100%;
    justify-content: flex-start;
  }

  .event-mobile-shell .page-shell.auth-gated {
    padding: 0 !important;
    min-height: 100dvh;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  .event-mobile-shell .event-scroll-area {
    position: fixed;
    inset: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding: calc(env(safe-area-inset-top) + 74px) 14px 16px 162px;
    z-index: 1;
  }

  .event-mobile-shell .event-room-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 14px;
  }

  .event-mobile-shell .room-header,
  .event-mobile-shell .panel {
    margin-top: 0;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(18, 24, 31, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
    min-height: 0;
  }

  .event-mobile-shell .room-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .event-mobile-shell .room-heading h1 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .event-mobile-shell .room-actions,
  .event-mobile-shell .lobby-header-actions,
  .event-mobile-shell .challenge-actions,
  .event-mobile-shell .match-room-actions,
  .event-mobile-shell .player-item-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .event-mobile-shell .room-actions .btn,
  .event-mobile-shell .lobby-header-actions .btn,
  .event-mobile-shell .challenge-actions .btn,
  .event-mobile-shell .match-room-actions .btn,
  .event-mobile-shell .player-item-actions .btn {
    width: 100%;
    min-height: 38px;
    border-radius: 10px;
  }

  .event-mobile-shell .room-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 0;
  }

  .event-mobile-shell .players-panel-compact {
    order: 2;
    position: static;
    max-height: none;
    overflow: visible;
  }

  .event-mobile-shell .room-main-column,
  .event-mobile-shell .players-list,
  .event-mobile-shell .open-challenges-list,
  .event-mobile-shell .matches-list {
    gap: 8px;
  }

  .event-mobile-shell .player-item,
  .event-mobile-shell .open-challenge-card,
  .event-mobile-shell .match-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    padding: 12px;
    gap: 8px;
  }

  .event-mobile-shell .player-item {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .event-mobile-shell .player-link-compact {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .event-mobile-shell .player-name-compact {
    gap: 6px;
  }

  .event-mobile-shell .player-rating-chip {
    padding: 3px 8px;
    font-size: 0.7rem;
  }

  .event-mobile-shell .player-points-block {
    min-width: 42px;
    gap: 2px;
  }

  .event-mobile-shell .player-points-label {
    font-size: 0.6rem;
  }

  .event-mobile-shell .player-points-value {
    font-size: 0.9rem;
  }

  .event-mobile-shell .players-pager {
    margin-top: 4px;
  }

  .event-mobile-shell .players-page-btn {
    min-width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.92rem;
  }

  .event-mobile-shell .panel-header,
  .event-mobile-shell .lobby-header {
    margin-bottom: 12px;
    gap: 10px;
  }

  .event-mobile-shell .panel-header h2,
  .event-mobile-shell .lobby-title-block h2,
  .event-mobile-shell .match-room-head h2 {
    margin: 0;
    font-size: 1rem;
    color: #f8fafc;
  }

  .event-mobile-shell .panel-subtitle {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #8b949e;
    line-height: 1.45;
  }

  .event-mobile-shell .matchmaking-pill {
    width: fit-content;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
  }

  .event-mobile-shell .match-room-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .event-mobile-shell .match-room-cell {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
  }
}

@media (max-width: 768px) {
  .event-mobile-shell .user-search-overlay,
  .gift-mobile-shell .user-search-overlay,
  .match-mobile-shell .user-search-overlay,
  .profile-mobile-shell .user-search-overlay,
  .home-mobile-shell .user-search-overlay,
  .events-mobile-shell .user-search-overlay,
  .leaderboard-mobile-shell .user-search-overlay,
  .scan-game-mobile-shell .user-search-overlay {
    inset: 0;
    z-index: 1050;
    padding: calc(env(safe-area-inset-top) + 74px) 14px 16px 162px;
    place-items: start stretch;
    background: linear-gradient(180deg, rgba(6, 11, 19, 0.9) 0%, rgba(10, 16, 27, 0.92) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .event-mobile-shell .user-search-modal,
  .gift-mobile-shell .user-search-modal,
  .match-mobile-shell .user-search-modal,
  .profile-mobile-shell .user-search-modal,
  .home-mobile-shell .user-search-modal,
  .events-mobile-shell .user-search-modal,
  .leaderboard-mobile-shell .user-search-modal,
  .scan-game-mobile-shell .user-search-modal {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(18, 24, 31, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
  }

  .event-mobile-shell .user-search-header,
  .gift-mobile-shell .user-search-header,
  .match-mobile-shell .user-search-header,
  .profile-mobile-shell .user-search-header,
  .home-mobile-shell .user-search-header,
  .events-mobile-shell .user-search-header,
  .leaderboard-mobile-shell .user-search-header,
  .scan-game-mobile-shell .user-search-header {
    align-items: start;
    gap: 10px;
  }

  .event-mobile-shell .user-search-tabs,
  .gift-mobile-shell .user-search-tabs,
  .match-mobile-shell .user-search-tabs,
  .profile-mobile-shell .user-search-tabs,
  .home-mobile-shell .user-search-tabs,
  .events-mobile-shell .user-search-tabs,
  .leaderboard-mobile-shell .user-search-tabs,
  .scan-game-mobile-shell .user-search-tabs {
    margin-top: 12px;
    gap: 8px;
  }

  .event-mobile-shell .user-search-tab,
  .gift-mobile-shell .user-search-tab,
  .match-mobile-shell .user-search-tab,
  .profile-mobile-shell .user-search-tab,
  .home-mobile-shell .user-search-tab,
  .events-mobile-shell .user-search-tab,
  .leaderboard-mobile-shell .user-search-tab,
  .scan-game-mobile-shell .user-search-tab {
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #d0d7de;
    font-size: 0.84rem;
    font-weight: 600;
  }

  .event-mobile-shell .user-search-tab.active,
  .gift-mobile-shell .user-search-tab.active,
  .match-mobile-shell .user-search-tab.active,
  .profile-mobile-shell .user-search-tab.active,
  .home-mobile-shell .user-search-tab.active,
  .events-mobile-shell .user-search-tab.active,
  .leaderboard-mobile-shell .user-search-tab.active,
  .scan-game-mobile-shell .user-search-tab.active {
    border-color: rgba(34, 197, 94, 0.26);
    background: rgba(34, 197, 94, 0.12);
    color: #8df2a2;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06);
  }

  .event-mobile-shell .user-search-tab .badge,
  .gift-mobile-shell .user-search-tab .badge,
  .match-mobile-shell .user-search-tab .badge,
  .profile-mobile-shell .user-search-tab .badge,
  .home-mobile-shell .user-search-tab .badge,
  .events-mobile-shell .user-search-tab .badge,
  .leaderboard-mobile-shell .user-search-tab .badge,
  .scan-game-mobile-shell .user-search-tab .badge {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #c9d2de;
  }

  .event-mobile-shell .user-search-tab.active .badge,
  .gift-mobile-shell .user-search-tab.active .badge,
  .match-mobile-shell .user-search-tab.active .badge,
  .profile-mobile-shell .user-search-tab.active .badge,
  .home-mobile-shell .user-search-tab.active .badge,
  .events-mobile-shell .user-search-tab.active .badge,
  .leaderboard-mobile-shell .user-search-tab.active .badge,
  .scan-game-mobile-shell .user-search-tab.active .badge {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.32);
    color: #9ff5ae;
  }

  .event-mobile-shell .user-search-form,
  .gift-mobile-shell .user-search-form,
  .match-mobile-shell .user-search-form,
  .profile-mobile-shell .user-search-form,
  .home-mobile-shell .user-search-form,
  .events-mobile-shell .user-search-form,
  .leaderboard-mobile-shell .user-search-form,
  .scan-game-mobile-shell .user-search-form {
    margin-top: 10px;
  }

  .event-mobile-shell .user-search-input,
  .gift-mobile-shell .user-search-input,
  .match-mobile-shell .user-search-input,
  .profile-mobile-shell .user-search-input,
  .home-mobile-shell .user-search-input,
  .events-mobile-shell .user-search-input,
  .leaderboard-mobile-shell .user-search-input,
  .scan-game-mobile-shell .user-search-input {
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #d0d7de;
    box-shadow: none;
  }

  .event-mobile-shell .user-search-input:focus,
  .gift-mobile-shell .user-search-input:focus,
  .match-mobile-shell .user-search-input:focus,
  .profile-mobile-shell .user-search-input:focus,
  .home-mobile-shell .user-search-input:focus,
  .events-mobile-shell .user-search-input:focus,
  .leaderboard-mobile-shell .user-search-input:focus {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(255, 255, 255, 0.05);
  }

  .event-mobile-shell .user-search-results,
  .gift-mobile-shell .user-search-results,
  .match-mobile-shell .user-search-results,
  .profile-mobile-shell .user-search-results,
  .home-mobile-shell .user-search-results,
  .events-mobile-shell .user-search-results,
  .leaderboard-mobile-shell .user-search-results,
  .scan-game-mobile-shell .user-search-results {
    margin-top: 12px;
    max-height: none;
    overflow: visible;
    gap: 8px;
  }

  .event-mobile-shell .user-search-result,
  .gift-mobile-shell .user-search-result,
  .match-mobile-shell .user-search-result,
  .profile-mobile-shell .user-search-result,
  .home-mobile-shell .user-search-result,
  .events-mobile-shell .user-search-result,
  .leaderboard-mobile-shell .user-search-result,
  .scan-game-mobile-shell .user-search-result {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
  }

  .event-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button.active,
  .match-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button.active,
  .gift-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button.active,
  .home-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button.active,
  .events-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button.active,
  .leaderboard-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button.active,
  .profile-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button.active {
    background: rgba(34, 197, 94, 0.13) !important;
    border-color: rgba(34, 197, 94, 0.24) !important;
    color: #8df2a2 !important;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06);
  }

  .event-mobile-shell .app-toast-stack,
  .gift-mobile-shell .app-toast-stack,
  .match-mobile-shell .app-toast-stack,
  .profile-mobile-shell .app-toast-stack,
  .home-mobile-shell .app-toast-stack,
  .events-mobile-shell .app-toast-stack,
  .leaderboard-mobile-shell .app-toast-stack,
  .scan-game-mobile-shell .app-toast-stack {
    left: 162px;
    right: 12px;
    width: auto;
  }

  .match-mobile-shell {
    background:
      radial-gradient(circle at top, rgba(34, 197, 94, 0.14), transparent 28%),
      linear-gradient(180deg, #060b11 0%, #0d1117 100%) !important;
    overflow-x: hidden;
    overflow-y: auto !important;
    min-height: 100dvh;
  }

  .match-mobile-shell .app-navbar-shell {
    left: 148px !important;
    right: 0 !important;
    top: 0 !important;
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.96) 0%, rgba(8, 12, 18, 0.78) 100%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    pointer-events: auto;
  }

  .match-mobile-shell .app-navbar,
  .match-mobile-shell .app-navbar.container {
    height: 58px !important;
    padding: 0 14px !important;
    justify-content: flex-end !important;
    gap: 10px;
  }

  .match-mobile-shell .app-navbar .hamburger-btn {
    display: none !important;
  }

  .match-mobile-shell .app-navbar .navbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
  }

  .match-mobile-shell .app-navbar .brand-block {
    display: inline-flex !important;
    align-items: center;
    max-width: 170px;
  }

  .match-mobile-shell .app-navbar .brand-wordmark {
    font-size: 0.95rem;
  }

  .match-mobile-shell .app-navbar .navbar-center,
  .match-mobile-shell .app-navbar .navbar-right .navbar-user-chip,
  .match-mobile-shell .app-navbar .navbar-right .navbar-balance-chip {
    display: none !important;
  }

  .match-mobile-shell .app-navbar .navbar-right {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    gap: 8px;
  }

  .match-mobile-shell .mobile-nav-scrim {
    display: none !important;
  }

  .match-mobile-shell .mobile-nav-drawer {
    display: flex !important;
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: 148px !important;
    padding: calc(env(safe-area-inset-top) + 18px) 12px calc(env(safe-area-inset-bottom) + 18px) !important;
    background: linear-gradient(180deg, rgba(9, 14, 21, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
    overflow-y: auto;
    z-index: 1012;
  }

  .match-mobile-shell .mobile-nav-links {
    margin-top: 0;
    gap: 10px;
  }

  .match-mobile-shell .mobile-nav-drawer .mobile-nav-links a,
  .match-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button {
    min-height: 48px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    color: #d0d7de !important;
  }

  .match-mobile-shell .mobile-nav-drawer .mobile-nav-links a.active {
    background: rgba(34, 197, 94, 0.13) !important;
    border-color: rgba(34, 197, 94, 0.24) !important;
    color: #8df2a2 !important;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06);
  }

  .match-mobile-shell .mobile-nav-actions {
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .match-mobile-shell .mobile-nav-actions .navbar-user-chip {
    display: none !important;
  }

  .match-mobile-shell .mobile-nav-actions .btn {
    display: inline-flex !important;
    width: 100%;
    justify-content: flex-start;
  }

  .match-mobile-shell .page-shell.auth-gated {
    padding: 0 !important;
    min-height: 100dvh;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  .match-mobile-shell .match-scroll-area {
    position: fixed;
    inset: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding: calc(env(safe-area-inset-top) + 74px) 14px 16px 162px;
    z-index: 1;
  }

  .match-mobile-shell .match-page-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 14px;
  }

  .match-mobile-shell .room-header,
  .match-mobile-shell .panel {
    margin-top: 0;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(18, 24, 31, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
    min-height: 0;
  }

  .match-mobile-shell .room-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .match-mobile-shell .room-heading h1 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
  }

  .match-mobile-shell .room-actions,
  .match-mobile-shell .match-room-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .match-mobile-shell .room-actions .btn,
  .match-mobile-shell .match-room-actions .btn {
    width: 100%;
    min-height: 38px;
    border-radius: 10px;
  }

  .match-mobile-shell .match-room-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .match-mobile-shell .match-room-cell {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
  }

  .match-mobile-shell .match-page-header-row {
    margin-bottom: 12px;
    gap: 10px;
  }

  .match-mobile-shell .match-page-header-row h2 {
    margin: 0;
    font-size: 1rem;
    color: #f8fafc;
  }

  .match-mobile-shell .panel-subtitle {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #8b949e;
    line-height: 1.45;
  }

  .gift-mobile-shell {
    background:
      radial-gradient(circle at top, rgba(34, 197, 94, 0.14), transparent 28%),
      linear-gradient(180deg, #060b11 0%, #0d1117 100%) !important;
    overflow-x: hidden;
    overflow-y: auto !important;
    min-height: 100dvh;
  }

  .gift-mobile-shell .app-navbar-shell {
    left: 148px !important;
    right: 0 !important;
    top: 0 !important;
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.96) 0%, rgba(8, 12, 18, 0.78) 100%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    pointer-events: auto;
  }

  .gift-mobile-shell .app-navbar,
  .gift-mobile-shell .app-navbar.container {
    height: 58px !important;
    padding: 0 14px !important;
    justify-content: flex-end !important;
    gap: 10px;
  }

  .gift-mobile-shell .app-navbar .hamburger-btn {
    display: none !important;
  }

  .gift-mobile-shell .app-navbar .navbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
  }

  .gift-mobile-shell .app-navbar .brand-block {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
  }

  .gift-mobile-shell .app-navbar .brand-block strong {
    font-size: 1rem !important;
  }

  .gift-mobile-shell .app-navbar .brand-block span {
    display: block;
    color: #7d8590;
    font-size: 0.68rem;
    margin-top: 2px;
  }

  .gift-mobile-shell .app-navbar .navbar-actions {
    gap: 8px;
  }

  .gift-mobile-shell .mobile-nav-drawer {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 148px !important;
    padding: calc(env(safe-area-inset-top) + 18px) 12px calc(env(safe-area-inset-bottom) + 18px) !important;
    background: linear-gradient(180deg, rgba(9, 14, 21, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
    overflow-y: auto;
    z-index: 1012;
  }

  .gift-mobile-shell .mobile-sidebar-brand {
    margin-bottom: 18px;
    padding: 0;
  }

  .gift-mobile-shell .mobile-sidebar-brand .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .gift-mobile-shell .mobile-sidebar-brand strong {
    font-size: 1.02rem !important;
  }

  .gift-mobile-shell .mobile-nav-links {
    margin-top: 0;
    gap: 10px;
  }

  .gift-mobile-shell .mobile-nav-drawer .mobile-nav-links a,
  .gift-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button {
    min-height: 48px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    color: #d0d7de !important;
  }

  .gift-mobile-shell .mobile-nav-drawer .mobile-nav-links a.active {
    background: rgba(34, 197, 94, 0.13) !important;
    border-color: rgba(34, 197, 94, 0.24) !important;
    color: #8df2a2 !important;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06);
  }

  .gift-mobile-shell .mobile-nav-actions {
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .gift-mobile-shell .mobile-nav-actions .navbar-user-chip {
    display: none !important;
  }

  .gift-mobile-shell .mobile-nav-actions .btn {
    display: inline-flex !important;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .gift-mobile-shell .page-shell.gift-shop-page {
    padding: 0 !important;
    min-height: 100dvh;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  .gift-mobile-shell .gift-scroll-area {
    position: fixed;
    inset: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding: calc(env(safe-area-inset-top) + 74px) 14px 16px 162px;
    z-index: 1;
  }

  .gift-mobile-shell .gift-shop-page .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 14px;
  }

  .gift-mobile-shell .gift-tabs-wrap {
    margin-top: 0;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(18, 24, 31, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
    display: grid;
    gap: 8px;
  }

  .gift-mobile-shell .gift-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
  }

  .gift-mobile-shell .gift-tabs button {
    min-height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8b949e;
    font-size: 0.72rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .gift-mobile-shell .gift-tabs button.active {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.22) 0%, rgba(34, 197, 94, 0.12) 100%);
    color: #ecfdf3;
    box-shadow: 0 8px 16px rgba(34, 197, 94, 0.14);
  }

  .gift-mobile-shell .gift-tabs-refresh {
    width: 100%;
    min-height: 36px;
    border-radius: 10px;
  }

  .gift-mobile-shell .page-intro,
  .gift-mobile-shell .section-block {
    margin-top: 0;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(18, 24, 31, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
  }

  .gift-mobile-shell .page-intro {
    display: grid;
    gap: 12px;
  }

  .gift-mobile-shell .page-intro .eyebrow {
    font-size: 0.72rem;
  }

  .gift-mobile-shell .page-intro h1 {
    margin: 6px 0 0;
    font-size: 1.4rem;
  }

  .gift-mobile-shell .page-intro .muted {
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .gift-mobile-shell .page-intro-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gift-mobile-shell .page-intro-actions .btn {
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
  }

  .gift-mobile-shell .gift-shop-balance-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .gift-mobile-shell .gift-shop-balance-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    padding: 10px;
    gap: 4px;
  }

  .gift-mobile-shell .gift-shop-balance-label {
    font-size: 0.7rem;
    color: #8b949e;
  }

  .gift-mobile-shell .gift-shop-balance-value {
    font-size: 1.02rem;
    color: #f8fafc;
  }

  .gift-mobile-shell #gift-shop-balance-section .muted {
    font-size: 0.68rem;
  }

  .gift-mobile-shell .section-header {
    margin-bottom: 12px;
    gap: 8px;
  }

  .gift-mobile-shell .section-header h2 {
    margin: 0;
    font-size: 1rem;
    color: #f8fafc;
  }

  .gift-mobile-shell .section-header .panel-subtitle {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #8b949e;
  }

  .gift-mobile-shell .gift-shop-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .gift-mobile-shell .gift-item-card {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    padding: 6px;
    gap: 5px;
  }

  .gift-mobile-shell .gift-item-card h3 {
    margin: 0;
    font-size: 0.56rem;
    line-height: 1.2;
    color: #f3f4f6;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gift-mobile-shell .gift-item-image-wrap {
    border-radius: 8px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    aspect-ratio: 1 / 1;
  }

  .gift-mobile-shell .gift-item-price {
    color: #9ff5ae;
    font-size: 0.62rem;
    text-align: center;
    line-height: 1.2;
  }

  .gift-mobile-shell .gift-item-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .gift-mobile-shell .gift-item-actions .btn {
    width: 100%;
    min-height: 22px;
    border-radius: 7px;
    font-size: 0.56rem;
    line-height: 1;
    padding: 0 4px;
  }

  .gift-mobile-shell .gift-item-desc-hint {
    display: none;
  }

  .gift-mobile-shell .gift-shop-transactions {
    gap: 8px;
  }

  .gift-mobile-shell .gift-tx-row {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .gift-mobile-shell .gift-tx-right {
    width: 100%;
    text-align: left;
    gap: 3px;
  }

  .gift-mobile-shell .gift-item-modal-content,
  .gift-mobile-shell .gift-item-edit-modal-content {
    width: calc(100% - 24px);
    max-width: 460px;
    border-radius: 16px;
    padding: 20px 16px 16px;
  }

  .gift-mobile-shell .gift-item-modal {
    left: 148px;
    right: 0;
    width: auto;
    box-sizing: border-box;
    padding: calc(env(safe-area-inset-top) + 74px) 12px 12px;
    align-items: center;
    justify-content: center;
  }

  .gift-mobile-shell .gift-item-modal-content h2,
  .gift-mobile-shell .gift-item-edit-modal-content h2 {
    font-size: 1.05rem;
  }

  .gift-mobile-shell .gift-item-edit-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 768px) {
  html:has(body.events-mobile-shell),
  body.events-mobile-shell {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100dvh !important;
    -webkit-overflow-scrolling: touch;
  }

  body.events-mobile-shell.mobile-nav-open {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body.events-mobile-shell.mobile-nav-open::before {
    display: none !important;
    content: none !important;
  }

  body.events-mobile-shell .page-shell.events-dashboard,
  body.events-mobile-shell .events-scroll-area,
  body.events-mobile-shell .events-dashboard > .container,
  body.events-mobile-shell #active-events-section,
  body.events-mobile-shell #archived-events-section {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }
}
/* ================================================
   MATECHESS — MOBILE-FIRST PWA STYLES
   Only applies on screens ≤ 768px
   ================================================ */

/* ---- Mobile color overrides (green accent) ---- */
@media (min-width: 769px) {
  .mobile-home-page {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .desktop-only-home {
    display: none !important;
  }
  .mobile-home-page {
    display: grid;
  }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .mobile-home-page {
    display: none !important;
  }
}

/* Hide desktop home on mobile */
@media (max-width: 768px) {
  .desktop-only-home {
    display: none !important;
  }
  .mobile-home-page {
    display: grid;
  }
}

@media (max-width: 768px) {
  /* ============================================
     FINAL NAVBAR ALIGNMENT FIX
     ============================================ */
  .app-navbar-shell {
    display: block !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-bottom: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .app-navbar,
  .app-navbar.container {
    height: 54px;
    padding: 0 12px 0 150px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    align-items: center !important;
  }

  .app-navbar .navbar-left {
    flex: 1;
    min-width: 0;
  }

  .app-navbar .navbar-left .brand-block {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
  }

  .app-navbar .navbar-left .brand-block strong {
    color: #f2f6ff !important;
    font-size: 1.02rem !important;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .app-navbar .navbar-left .brand-block .brand-mark {
    width: 23px;
    height: 23px;
    border-radius: 6px;
  }

  .app-navbar .navbar-left .navbar-links {
    display: none !important;
  }

  .app-navbar .navbar-actions {
    margin-left: auto;
  }

  .mobile-nav-drawer {
    width: 136px !important;
    top: 0 !important;
    padding: calc(env(safe-area-inset-top) + 8px) 10px calc(env(safe-area-inset-bottom) + 10px) !important;
    overflow: hidden;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    box-shadow: none;
  }

  .mobile-home-page {
    padding: calc(env(safe-area-inset-top) + 66px) 12px 12px 150px !important;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    grid-template-rows: 1fr auto;
  }

  .hero-section {
    border-radius: 12px;
  }

  /* ============================================
     HAMBURGER BUTTON
     ============================================ */
  .hamburger-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }

  .hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }

  /* Mobile drawer link styling — green accent on active */
  .mobile-nav-links a.active {
    color: var(--primary);
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.18);
  }

  /* ============================================
     FINAL VISUAL OVERRIDE (match provided mock)
     ============================================ */
  .app-navbar-shell,
  .mobile-nav-drawer {
    background: linear-gradient(180deg, #0d1628 0%, #0b1424 100%) !important;
  }

  .mobile-nav-drawer {
    border-right: 1px solid rgba(255,255,255,0.06) !important;
  }

  .mobile-nav-drawer .mobile-nav-links a,
  .mobile-nav-drawer .mobile-nav-links .navbar-link-button {
    color: #aeb8c8 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 0.82rem !important;
    line-height: 1;
  }

  .mobile-nav-drawer .mobile-nav-links a.active {
    color: #7ee787 !important;
    background: rgba(126,231,135,0.08) !important;
    border-color: rgba(126,231,135,0.14) !important;
  }

  .mobile-nav-drawer .brand-block strong {
    color: #f2f6ff !important;
    font-size: 0.95rem !important;
    display: inline-block !important;
  }

  .mobile-nav-drawer .brand-block {
    min-height: 24px;
  }

  /* Top-right user chip: always show avatar + nickname */
  .app-navbar .navbar-actions {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }

  .app-navbar .navbar-user-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    max-width: 170px;
    padding: 4px 8px 4px 4px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    text-decoration: none;
  }

  .app-navbar .navbar-user-chip > * {
    display: inline-flex !important;
  }

  .app-navbar .navbar-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(126,231,135,0.18);
    color: #d5f8de;
    font-size: 0.78rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
  }

  .app-navbar .navbar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .app-navbar .navbar-user-name {
    display: inline-block !important;
    color: #eef4ff !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 104px;
  }

  .app-navbar .navbar-user-name::before {
    content: none !important;
  }

  .app-navbar .navbar-diamond-balance,
  .app-navbar .btn-danger {
    display: none !important;
  }

  .app-navbar .navbar-actions .btn-primary,
  .app-navbar .navbar-actions .btn-secondary {
    display: none !important;
  }

  .mobile-nav-drawer .mobile-nav-actions .btn-danger {
    display: inline-flex !important;
  }

  .mobile-nav-drawer .mobile-nav-actions .navbar-user-chip {
    display: none !important;
  }

  .install-matechess-btn {
    display: none !important;
  }

  /* ============================================
     SINGLE UNIFIED MOBILE NAVBAR (final)
     ============================================ */
  .app-navbar-shell {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 138px !important;
    right: 0 !important;
    z-index: 1003 !important;
  }

  .mobile-nav-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 138px !important;
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    z-index: 1002;
    padding: calc(env(safe-area-inset-top) + 14px) 10px calc(env(safe-area-inset-bottom) + 12px) !important;
    background: linear-gradient(180deg, #0d1628 0%, #0b1424 100%) !important;
    border-right: 1px solid rgba(255,255,255,0.07) !important;
    box-shadow: none !important;
    overflow: hidden;
  }

  .mobile-sidebar-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
    padding: 0 2px;
    text-decoration: none;
  }

  .mobile-sidebar-brand .brand-mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
  }

  .mobile-sidebar-brand strong {
    color: #f3f7ff;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .mobile-sidebar-brand span {
    display: none !important;
  }

  .mobile-nav-links {
    margin-top: 8px;
    gap: 7px;
  }

  .mobile-nav-links a,
  .mobile-nav-links .navbar-link-button {
    min-height: 38px !important;
    padding: 8px 9px !important;
    border-radius: 10px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
  }

  .mobile-nav-actions {
    margin-top: auto !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .mobile-home-page {
    padding: calc(env(safe-area-inset-top) + 76px) 12px 12px 152px !important;
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .leaderboard-mobile-shell {
    background:
      radial-gradient(circle at top, rgba(34, 197, 94, 0.14), transparent 28%),
      linear-gradient(180deg, #060b11 0%, #0d1117 100%) !important;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .leaderboard-mobile-shell .page-shell.leaderboard-page,
  .scan-game-mobile-shell .page-shell.leaderboard-page {
    display: none !important;
  }

  .leaderboard-mobile-shell .app-navbar-shell,
  .scan-game-mobile-shell .app-navbar-shell {
    left: 148px !important;
    right: 0 !important;
    top: 0 !important;
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.96) 0%, rgba(8, 12, 18, 0.78) 100%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    pointer-events: auto;
  }

  .leaderboard-mobile-shell .app-navbar,
  .leaderboard-mobile-shell .app-navbar.container,
  .scan-game-mobile-shell .app-navbar.container {
    height: 58px !important;
    padding: 0 14px !important;
    justify-content: flex-end !important;
    gap: 10px;
  }

  .leaderboard-mobile-shell .app-navbar .hamburger-btn,
  .scan-game-mobile-shell .app-navbar .hamburger-btn {
    display: none !important;
    order: 0;
  }

  .leaderboard-mobile-shell .app-navbar .navbar-left,
  .scan-game-mobile-shell .app-navbar .navbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
  }

  .leaderboard-mobile-shell .app-navbar .brand-block,
  .scan-game-mobile-shell .app-navbar .brand-block {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
  }

  .leaderboard-mobile-shell .app-navbar .brand-block strong,
  .scan-game-mobile-shell .app-navbar .brand-block strong {
    font-size: 1rem !important;
  }

  .leaderboard-mobile-shell .app-navbar .brand-block span,
  .scan-game-mobile-shell .app-navbar .brand-block span {
    display: block;
    color: #7d8590;
    font-size: 0.68rem;
    margin-top: 2px;
  }

  .leaderboard-mobile-shell .app-navbar .navbar-actions,
  .scan-game-mobile-shell .app-navbar .navbar-actions {
    gap: 8px;
  }

  .leaderboard-mobile-shell .mobile-nav-drawer,
  .scan-game-mobile-shell .mobile-nav-drawer {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 148px !important;
    padding: calc(env(safe-area-inset-top) + 18px) 12px calc(env(safe-area-inset-bottom) + 18px) !important;
    background: linear-gradient(180deg, rgba(9, 14, 21, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
    overflow-y: auto;
    z-index: 1012;
  }

  .leaderboard-mobile-shell .mobile-nav-drawer.open,
  .scan-game-mobile-shell .mobile-nav-drawer.open {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .leaderboard-mobile-shell .mobile-sidebar-brand,
  .scan-game-mobile-shell .mobile-sidebar-brand {
    margin-bottom: 18px;
    padding: 0;
  }

  .leaderboard-mobile-shell .mobile-sidebar-brand .brand-mark,
  .scan-game-mobile-shell .mobile-sidebar-brand .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .leaderboard-mobile-shell .mobile-sidebar-brand strong,
  .scan-game-mobile-shell .mobile-sidebar-brand strong {
    font-size: 1.02rem !important;
  }

  .leaderboard-mobile-shell .mobile-nav-links,
  .scan-game-mobile-shell .mobile-nav-links {
    margin-top: 0;
    gap: 10px;
  }

  .leaderboard-mobile-shell .mobile-nav-drawer .mobile-nav-links a,
  .leaderboard-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button,
  .scan-game-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button {
    min-height: 48px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    color: #d0d7de !important;
  }

  .leaderboard-mobile-shell .mobile-nav-drawer .mobile-nav-links a.active,
  .scan-game-mobile-shell .mobile-nav-drawer .mobile-nav-links a.active {
    background: rgba(34, 197, 94, 0.13) !important;
    border-color: rgba(34, 197, 94, 0.24) !important;
    color: #8df2a2 !important;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06);
  }

  .leaderboard-mobile-shell .mobile-nav-actions,
  .scan-game-mobile-shell .mobile-nav-actions {
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .leaderboard-mobile-shell .mobile-nav-actions .navbar-user-chip,
  .scan-game-mobile-shell .mobile-nav-actions .navbar-user-chip {
    display: none !important;
  }

  .leaderboard-mobile-shell .mobile-nav-actions .btn,
  .scan-game-mobile-shell .mobile-nav-actions .btn {
    display: inline-flex !important;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .leaderboard-mobile-shell .mobile-nav-scrim,
  .scan-game-mobile-shell .mobile-nav-scrim {
    display: none !important;
  }

  .leaderboard-mobile-shell.mobile-nav-open .mobile-nav-scrim {
    display: none !important;
  }

  .leaderboard-mobile-page {
    position: relative;
    display: grid;
    gap: 16px;
    min-height: 100dvh;
    padding: calc(env(safe-area-inset-top) + 74px) 14px 16px 162px;
  }

  .leaderboard-mobile-hero,
  .leaderboard-mobile-board {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(18, 24, 31, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
  }

  .leaderboard-mobile-hero {
    padding: 18px;
    display: grid;
    gap: 18px;
  }

  .leaderboard-mobile-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  .leaderboard-mobile-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7ee787;
  }

  .leaderboard-mobile-hero h1 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #f8fafc;
  }

  .leaderboard-mobile-hero p {
    margin: 8px 0 0;
    color: #95a1af;
    font-size: 0.94rem;
    line-height: 1.45;
    max-width: 22rem;
  }

  .leaderboard-mobile-refresh {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(34, 197, 94, 0.26);
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.12);
    color: #9ff5ae;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  .leaderboard-mobile-refresh:active {
    transform: scale(0.98);
  }

  .leaderboard-mobile-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .leaderboard-mobile-stat-card {
    min-height: 88px;
    padding: 14px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    align-content: space-between;
    gap: 12px;
  }

  .leaderboard-mobile-stat-card span {
    color: #8b949e;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .leaderboard-mobile-stat-card strong {
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .leaderboard-mobile-stat-card.is-highlight {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0.08) 100%);
    border-color: rgba(34, 197, 94, 0.24);
  }

  .leaderboard-mobile-stat-card.is-loading strong,
  .leaderboard-mobile-stat-card.is-loading span {
    color: rgba(255, 255, 255, 0.55);
  }

  .leaderboard-mobile-board {
    padding: 14px 0 6px;
    overflow: hidden;
  }

  .leaderboard-mobile-board-head {
    padding: 0 14px 14px;
    display: grid;
    gap: 10px;
  }

  .leaderboard-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .leaderboard-mobile-tabs button {
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #8b949e;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .leaderboard-mobile-tabs button.active {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.22) 0%, rgba(34, 197, 94, 0.12) 100%);
    color: #ecfdf3;
    box-shadow: 0 10px 18px rgba(34, 197, 94, 0.14);
  }

  .leaderboard-mobile-caption {
    color: #7d8590;
    font-size: 0.76rem;
    padding: 0 2px;
  }

  .leaderboard-mobile-list-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 0 14px 10px;
    color: #6e7681;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .leaderboard-mobile-list {
    display: grid;
    gap: 8px;
    padding: 0 10px 6px;
    max-height: calc(100dvh - 320px);
    overflow-y: auto;
  }

  .leaderboard-mobile-state {
    min-height: 240px;
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 24px;
    text-align: center;
    color: #8b949e;
  }

  .leaderboard-mobile-spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: #22c55e;
    animation: leaderboardSpin 0.9s linear infinite;
  }

  .leaderboard-mobile-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  }

  .leaderboard-mobile-row:active {
    transform: scale(0.985);
  }

  .leaderboard-mobile-row.is-top {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.03) 100%);
  }

  .leaderboard-mobile-row.is-current-user {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0.08) 100%);
    border-color: rgba(34, 197, 94, 0.24);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06);
  }

  .leaderboard-mobile-rank {
    display: grid;
    justify-items: start;
    gap: 4px;
    color: #f8fafc;
    font-weight: 800;
  }

  .leaderboard-mobile-rank-number {
    font-size: 1rem;
    letter-spacing: -0.02em;
  }

  .leaderboard-mobile-rank-medal {
    font-size: 0.88rem;
  }

  .leaderboard-mobile-player {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .leaderboard-mobile-avatar,
  .leaderboard-mobile-avatar-link {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
  }

  .leaderboard-mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .leaderboard-mobile-avatar-fallback {
    color: #dbe8f3;
    font-size: 0.84rem;
    font-weight: 800;
  }

  .leaderboard-mobile-player-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .leaderboard-mobile-player-name,
  .leaderboard-mobile-player-name-link {
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .leaderboard-mobile-player-subtitle {
    color: #8b949e;
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .leaderboard-mobile-player-subtitle .is-you {
    color: #9ff5ae;
    font-weight: 700;
  }

  .leaderboard-mobile-rating {
    display: grid;
    justify-items: end;
    gap: 4px;
  }

  .leaderboard-mobile-rating strong {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .leaderboard-mobile-rating span {
    color: #7ee787;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .leaderboard-bottom-nav {
    display: none !important;
  }

  .leaderboard-bottom-link {
    min-width: 0;
    min-height: 58px;
    padding: 8px 4px 6px;
    border-radius: 18px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 5px;
    color: #8b949e;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .leaderboard-bottom-link.active {
    color: #f0fdf4;
    background: rgba(34, 197, 94, 0.14);
  }

  .leaderboard-bottom-link:active {
    transform: scale(0.97);
  }

  .leaderboard-bottom-icon {
    font-size: 1.08rem;
    line-height: 1;
  }

  .leaderboard-bottom-link-play {
    position: relative;
    margin-top: -26px;
    color: #08110c;
  }

  .leaderboard-bottom-link-play .leaderboard-bottom-icon,
  .leaderboard-bottom-link-play span:last-child {
    position: relative;
    z-index: 1;
    color: #08110c;
  }

  .leaderboard-bottom-play-ring {
    position: absolute;
    inset: -2px 10px 6px;
    border-radius: 22px;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    box-shadow: 0 18px 30px rgba(34, 197, 94, 0.38);
  }

  @keyframes leaderboardSpin {
    to {
      transform: rotate(360deg);
    }
  }
}

@media (min-width: 769px) {
  .leaderboard-mobile-page,
  .mobile-nav-scrim {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .home-mobile-shell {
    background:
      radial-gradient(circle at top, rgba(34, 197, 94, 0.14), transparent 28%),
      linear-gradient(180deg, #060b11 0%, #0d1117 100%) !important;
    overflow-x: hidden;
    overflow-y: auto !important;
    min-height: 100dvh;
  }

  .home-mobile-shell .app-navbar-shell {
    left: 148px !important;
    right: 0 !important;
    top: 0 !important;
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.96) 0%, rgba(8, 12, 18, 0.78) 100%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    pointer-events: auto;
  }

  .home-mobile-shell .app-navbar,
  .home-mobile-shell .app-navbar.container {
    height: 58px !important;
    padding: 0 14px !important;
    justify-content: flex-end !important;
    gap: 10px;
  }

  .home-mobile-shell .app-navbar .hamburger-btn {
    display: none !important;
  }

  .home-mobile-shell .app-navbar .navbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
  }

  .home-mobile-shell .app-navbar .brand-block {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
  }

  .home-mobile-shell .app-navbar .brand-block strong {
    font-size: 1rem !important;
  }

  .home-mobile-shell .app-navbar .brand-block span {
    display: block;
    color: #7d8590;
    font-size: 0.68rem;
    margin-top: 2px;
  }

  .home-mobile-shell .app-navbar .navbar-actions {
    gap: 8px;
  }

  .home-mobile-shell .mobile-nav-drawer {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 148px !important;
    padding: calc(env(safe-area-inset-top) + 18px) 12px calc(env(safe-area-inset-bottom) + 18px) !important;
    background: linear-gradient(180deg, rgba(9, 14, 21, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
    overflow-y: auto;
    z-index: 1012;
  }

  .home-mobile-shell .mobile-sidebar-brand {
    margin-bottom: 18px;
    padding: 0;
  }

  .home-mobile-shell .mobile-sidebar-brand .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .home-mobile-shell .mobile-sidebar-brand strong {
    font-size: 1.02rem !important;
  }

  .home-mobile-shell .mobile-nav-links {
    margin-top: 0;
    gap: 10px;
  }

  .home-mobile-shell .mobile-nav-drawer .mobile-nav-links a,
  .home-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button {
    min-height: 48px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    color: #d0d7de !important;
  }

  .home-mobile-shell .mobile-nav-drawer .mobile-nav-links a.active {
    background: rgba(34, 197, 94, 0.13) !important;
    border-color: rgba(34, 197, 94, 0.24) !important;
    color: #8df2a2 !important;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06);
  }

  .home-mobile-shell .mobile-nav-actions {
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .home-mobile-shell .mobile-nav-actions .navbar-user-chip {
    display: none !important;
  }

  .home-mobile-shell .mobile-nav-actions .btn {
    display: inline-flex !important;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .home-mobile-shell .mobile-home-page {
    position: relative;
    display: grid;
    gap: 14px;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
    padding: calc(env(safe-area-inset-top) + 74px) 14px 16px 162px !important;
  }

  .home-mobile-shell .mobile-home-page .hero-section,
  .home-mobile-shell .mobile-home-page .mobile-next-event-wrap {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(18, 24, 31, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
  }

  .home-mobile-shell .mobile-home-page .hero-section {
    margin: 0;
    padding: 18px;
    border-radius: 24px;
    gap: 0;
  }

  .home-mobile-shell .mobile-home-page .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #7ee787;
  }

  .home-mobile-shell .mobile-home-page .hero-copy h1 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #f8fafc;
  }

  .home-mobile-shell .mobile-home-page .hero-subtitle {
    margin: 8px 0 0;
    color: #95a1af;
    font-size: 0.94rem;
    line-height: 1.45;
    max-width: 22rem;
  }

  .home-mobile-shell .mobile-home-page .hero-actions {
    margin-top: 18px;
  }

  .home-mobile-shell .mobile-home-page .hero-actions .btn-primary {
    min-height: 44px;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.26);
    color: #9ff5ae;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: none;
  }

  .home-mobile-shell .mobile-home-page .mobile-next-event-wrap {
    align-self: stretch;
    padding: 14px;
    gap: 12px;
  }

  .home-mobile-shell .mobile-home-page .mobile-section-header h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
  }

  .home-mobile-shell .mobile-home-page .mobile-next-event-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    min-height: 112px;
    padding: 14px;
    gap: 8px;
  }

  .home-mobile-shell .mobile-home-page .mobile-next-event-card .event-type {
    color: #7ee787;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .home-mobile-shell .mobile-home-page .mobile-next-event-card .event-title {
    color: #f8fafc;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .home-mobile-shell .mobile-home-page .mobile-next-event-card .event-meta,
  .home-mobile-shell .mobile-home-page .mobile-next-loading {
    color: #8b949e;
    font-size: 0.78rem;
  }

  .home-mobile-shell .mobile-home-page .mobile-next-event-card .event-cta {
    min-height: 34px;
    margin-top: 4px;
    border-radius: 10px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.24);
    color: #9ff5ae;
    font-weight: 700;
    font-size: 0.78rem;
  }
}

@media (max-width: 768px) {
  .events-mobile-shell {
    background:
      radial-gradient(circle at top, rgba(34, 197, 94, 0.14), transparent 28%),
      linear-gradient(180deg, #060b11 0%, #0d1117 100%) !important;
    overflow-x: hidden;
    overflow-y: auto !important;
    min-height: 100dvh;
    height: auto !important;
    overscroll-behavior-y: contain;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  html:has(body.events-mobile-shell) {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  body.events-mobile-shell {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .events-mobile-shell .app-navbar-shell {
    left: 148px !important;
    right: 0 !important;
    top: 0 !important;
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.96) 0%, rgba(8, 12, 18, 0.78) 100%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    pointer-events: auto;
  }

  .events-mobile-shell .app-navbar,
  .events-mobile-shell .app-navbar.container {
    height: 58px !important;
    padding: 0 14px !important;
    justify-content: flex-end !important;
    gap: 10px;
  }

  .events-mobile-shell .app-navbar .hamburger-btn {
    display: none !important;
  }

  .events-mobile-shell .app-navbar .navbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
  }

  .events-mobile-shell .app-navbar .brand-block {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
  }

  .events-mobile-shell .app-navbar .brand-block strong {
    font-size: 1rem !important;
  }

  .events-mobile-shell .app-navbar .brand-block span {
    display: block;
    color: #7d8590;
    font-size: 0.68rem;
    margin-top: 2px;
  }

  .events-mobile-shell .app-navbar .navbar-actions {
    gap: 8px;
  }

  .events-mobile-shell .mobile-nav-drawer {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 148px !important;
    padding: calc(env(safe-area-inset-top) + 18px) 12px calc(env(safe-area-inset-bottom) + 18px) !important;
    background: linear-gradient(180deg, rgba(9, 14, 21, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
    overflow-y: auto;
    z-index: 1012;
  }

  .events-mobile-shell .mobile-sidebar-brand {
    margin-bottom: 18px;
    padding: 0;
  }

  .events-mobile-shell .mobile-sidebar-brand .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .events-mobile-shell .mobile-sidebar-brand strong {
    font-size: 1.02rem !important;
  }

  .events-mobile-shell .mobile-nav-links {
    margin-top: 0;
    gap: 10px;
  }

  .events-mobile-shell .mobile-nav-drawer .mobile-nav-links a,
  .events-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button {
    min-height: 48px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    color: #d0d7de !important;
  }

  .events-mobile-shell .mobile-nav-drawer .mobile-nav-links a.active {
    background: rgba(34, 197, 94, 0.13) !important;
    border-color: rgba(34, 197, 94, 0.24) !important;
    color: #8df2a2 !important;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06);
  }

  .events-mobile-shell .mobile-nav-actions {
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .events-mobile-shell .mobile-nav-actions .navbar-user-chip {
    display: none !important;
  }

  .events-mobile-shell .mobile-nav-actions .btn {
    display: inline-flex !important;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .events-mobile-shell .page-shell.events-dashboard {
    padding: 0 !important;
    min-height: 100dvh;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  .events-mobile-shell .events-scroll-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding: calc(env(safe-area-inset-top) + 74px) 14px 16px 162px;
    z-index: 1;
  }

  .events-mobile-shell .events-dashboard > .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: grid;
    gap: 14px;
    padding: 0 !important;
    overflow: visible !important;
  }

  .events-mobile-shell .events-tabs-wrap {
    display: grid;
    gap: 10px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(18, 24, 31, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
    padding: 14px;
  }

  .events-mobile-shell .events-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 4px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
  }

  .events-mobile-shell .events-tabs button {
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #8b949e;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .events-mobile-shell .events-tabs button.active {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.22) 0%, rgba(34, 197, 94, 0.12) 100%);
    color: #ecfdf3;
    box-shadow: 0 10px 18px rgba(34, 197, 94, 0.14);
  }

  .events-mobile-shell .events-tabs-refresh {
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
  }

  .events-mobile-shell .events-dashboard .page-intro,
  .events-mobile-shell .events-dashboard .section-block,
  .events-mobile-shell .events-dashboard .create-event-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(18, 24, 31, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
  }

  .events-mobile-shell .events-dashboard .page-intro {
    margin: 0;
    padding: 18px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .events-mobile-shell .events-dashboard .page-intro .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #7ee787;
  }

  .events-mobile-shell .events-dashboard .page-intro h1 {
    margin: 0;
    font-size: 1.85rem;
    line-height: 1.06;
    letter-spacing: -0.03em;
    color: #f8fafc;
  }

  .events-mobile-shell .events-dashboard .page-intro .muted {
    margin-top: 8px;
    color: #95a1af;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .events-mobile-shell .events-dashboard .page-intro-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .events-mobile-shell .events-dashboard .page-intro-actions .btn {
    width: 100%;
    min-height: 42px;
    border-radius: 14px;
  }

  .events-mobile-shell .events-dashboard .page-intro-actions .btn-primary {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.26);
    color: #9ff5ae;
    box-shadow: none;
  }

  .events-mobile-shell .events-dashboard .create-event-section {
    margin-bottom: 0;
  }

  .events-mobile-shell .events-dashboard .create-event-card {
    padding: 16px;
  }

  .events-mobile-shell .events-dashboard .create-event-header {
    margin-bottom: 14px;
  }

  .events-mobile-shell .events-dashboard .create-event-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
  }

  .events-mobile-shell .events-dashboard .create-event-subtitle {
    font-size: 0.86rem;
    color: #95a1af;
    line-height: 1.4;
  }

  .events-mobile-shell .events-dashboard .create-event-form {
    gap: 12px;
  }

  .events-mobile-shell .events-dashboard .form-group-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .events-mobile-shell .events-dashboard .form-input {
    min-height: 40px;
    border-radius: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .events-mobile-shell .events-dashboard .btn-create-event {
    min-height: 42px;
    border-radius: 14px;
    padding: 10px 16px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.26);
    color: #9ff5ae;
    box-shadow: none;
  }

  .events-mobile-shell .events-dashboard .section-block {
    margin-top: 0;
    padding: 14px;
    overflow: visible;
  }

  .events-mobile-shell .events-dashboard .section-header {
    margin-bottom: 12px;
    align-items: flex-start;
    gap: 10px;
  }

  .events-mobile-shell .events-dashboard .section-header h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
  }

  .events-mobile-shell .events-dashboard .section-header .panel-subtitle {
    margin-top: 6px;
    color: #8b949e;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .events-mobile-shell .events-dashboard .badge.badge-info {
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.24);
    color: #b7fdc5;
    font-size: 0.72rem;
    font-weight: 700;
  }

  .events-mobile-shell .events-dashboard .event-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .events-mobile-shell .events-dashboard .event-card {
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
  }

  .events-mobile-shell .events-dashboard .event-card:hover {
    transform: none;
    border-color: rgba(34, 197, 94, 0.24);
  }

  .events-mobile-shell .events-dashboard .event-card-title h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1rem;
    line-height: 1.25;
  }

  .events-mobile-shell .events-dashboard .event-id {
    font-size: 0.76rem;
    color: #8b949e;
  }

  .events-mobile-shell .events-dashboard .tournament-card-summary {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #9aa5b1;
    gap: 8px;
  }

  .events-mobile-shell .events-dashboard .tournament-card-stats {
    gap: 6px;
  }

  .events-mobile-shell .events-dashboard .tournament-card-stats span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #b8f6c5;
    border: 1px solid rgba(34, 197, 94, 0.18);
    font-size: 0.74rem;
    font-weight: 700;
  }

  .events-mobile-shell .events-dashboard .tournament-card-footer {
    gap: 8px;
  }

  .events-mobile-shell .events-dashboard .tournament-card-footer .btn {
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
    min-width: 0;
  }

  .events-mobile-shell .events-dashboard .tournament-card-footer .btn-primary {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.24);
    color: #9ff5ae;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .profile-mobile-shell {
    background:
      radial-gradient(circle at top, rgba(34, 197, 94, 0.14), transparent 28%),
      linear-gradient(180deg, #060b11 0%, #0d1117 100%) !important;
    overflow-x: hidden;
    overflow-y: auto !important;
    min-height: 100dvh;
  }

  .profile-mobile-shell .app-navbar-shell {
    left: 148px !important;
    right: 0 !important;
    top: 0 !important;
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.96) 0%, rgba(8, 12, 18, 0.78) 100%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    pointer-events: auto;
  }

  .profile-mobile-shell .app-navbar,
  .profile-mobile-shell .app-navbar.container {
    height: 58px !important;
    padding: 0 14px !important;
    justify-content: flex-end !important;
    gap: 10px;
  }

  .profile-mobile-shell .app-navbar .hamburger-btn {
    display: none !important;
  }

  .profile-mobile-shell .app-navbar .navbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
  }

  .profile-mobile-shell .app-navbar .brand-block {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
  }

  .profile-mobile-shell .app-navbar .brand-block strong {
    font-size: 1rem !important;
  }

  .profile-mobile-shell .app-navbar .brand-block span {
    display: block;
    color: #7d8590;
    font-size: 0.68rem;
    margin-top: 2px;
  }

  .profile-mobile-shell .app-navbar .navbar-actions {
    gap: 8px;
  }

  .profile-mobile-shell .mobile-nav-drawer {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 148px !important;
    padding: calc(env(safe-area-inset-top) + 18px) 12px calc(env(safe-area-inset-bottom) + 18px) !important;
    background: linear-gradient(180deg, rgba(9, 14, 21, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
    overflow-y: auto;
    z-index: 1012;
  }

  .profile-mobile-shell .mobile-sidebar-brand {
    margin-bottom: 18px;
    padding: 0;
  }

  .profile-mobile-shell .mobile-sidebar-brand .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .profile-mobile-shell .mobile-sidebar-brand strong {
    font-size: 1.02rem !important;
  }

  .profile-mobile-shell .mobile-nav-links {
    margin-top: 0;
    gap: 10px;
  }

  .profile-mobile-shell .mobile-nav-drawer .mobile-nav-links a,
  .profile-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button {
    min-height: 48px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    color: #d0d7de !important;
  }

  .profile-mobile-shell .mobile-nav-drawer .mobile-nav-links a.active {
    background: rgba(34, 197, 94, 0.13) !important;
    border-color: rgba(34, 197, 94, 0.24) !important;
    color: #8df2a2 !important;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06);
  }

  .profile-mobile-shell .mobile-nav-actions {
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .profile-mobile-shell .mobile-nav-actions .navbar-user-chip {
    display: none !important;
  }

  .profile-mobile-shell .mobile-nav-actions .btn {
    display: inline-flex !important;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .profile-mobile-shell .page-shell.profile-page {
    padding: 0 !important;
    min-height: 100dvh;
    height: 100dvh !important;
    overflow: hidden !important;
  }

  .profile-mobile-shell .profile-scroll-area {
    position: fixed;
    inset: 0;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding: calc(env(safe-area-inset-top) + 74px) 14px 16px 162px;
    z-index: 1;
  }

  .profile-mobile-shell .profile-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    gap: 14px;
  }

  .profile-mobile-shell .section-header.profile-page-header {
    display: none;
  }

  .profile-mobile-shell .profile-card,
  .profile-mobile-shell .section-block,
  .profile-mobile-shell .profile-tabs-wrap {
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(18, 24, 31, 0.95) 0%, rgba(13, 17, 23, 0.98) 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
  }

  .profile-mobile-shell .profile-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  .profile-mobile-shell .profile-avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 0;
  }

  .profile-mobile-shell .profile-avatar-circle {
    width: 64px !important;
    height: 64px !important;
    font-size: 1.28rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #9ff5ae;
  }

  .profile-mobile-shell .profile-identity {
    display: grid;
    grid-template-rows: 64px auto;
    width: 100%;
    min-width: 0;
    gap: 0;
    align-items: start;
    text-align: left;
  }

  .profile-mobile-shell .profile-name-row,
  .profile-mobile-shell #profile-friend-btn-wrap {
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    width: 100%;
    height: 64px;
    min-width: 0;
  }

  .profile-mobile-shell .profile-role-controls {
    display: flex;
    flex-basis: 100%;
    margin-top: 2px;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .profile-mobile-shell .profile-display-name {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    font-size: 1.04rem;
    line-height: 1.05;
    color: #f8fafc;
  }

  .profile-mobile-shell #profile-role-badge {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    line-height: 1;
  }

  .profile-mobile-shell .profile-rating-badge {
    width: fit-content;
    margin-top: -8px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.24);
    border-radius: 10px;
    padding: 4px 9px;
    gap: 7px;
  }

  .profile-mobile-shell .rating-label {
    color: #8b949e;
    font-size: 0.62rem;
  }

  .profile-mobile-shell .rating-value {
    color: #9ff5ae;
    font-size: 0.98rem;
  }

  .profile-mobile-shell .profile-tabs-wrap {
    padding: 12px;
  }

  .profile-mobile-shell .profile-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 4px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
  }

  .profile-mobile-shell .profile-tabs button {
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #8b949e;
    font-size: 0.84rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .profile-mobile-shell .profile-tabs button.active {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.22) 0%, rgba(34, 197, 94, 0.12) 100%);
    color: #ecfdf3;
    box-shadow: 0 10px 18px rgba(34, 197, 94, 0.14);
  }

  .profile-mobile-shell .section-block {
    margin-top: 0;
    padding: 14px;
    overflow: visible;
  }

  .profile-mobile-shell .section-header {
    margin-bottom: 12px;
  }

  .profile-mobile-shell .section-header h2 {
    margin: 0;
    font-size: 1rem;
    color: #f8fafc;
  }

  .profile-mobile-shell .section-header .panel-subtitle {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #8b949e;
  }

  .profile-mobile-shell .profile-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .profile-mobile-shell .stat-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 10px;
  }

  .profile-mobile-shell .stat-value {
    font-size: 1.45rem;
  }

  .profile-mobile-shell .avatar-upload-panel {
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed rgba(34, 197, 94, 0.34);
    background: rgba(34, 197, 94, 0.08);
  }

  .profile-mobile-shell .avatar-upload-actions {
    display: grid;
    gap: 8px;
  }

  .profile-mobile-shell .avatar-upload-actions .btn {
    width: 100%;
    min-height: 40px;
    border-radius: 12px;
  }

  .profile-mobile-shell .profile-event-row {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    gap: 10px;
    padding: 12px;
  }

  .profile-mobile-shell .profile-event-row .btn,
  .profile-mobile-shell .profile-event-row .btn-sm {
    width: 100%;
  }

  .analysis-mobile-shell {
    background:
      radial-gradient(circle at top, rgba(34, 197, 94, 0.14), transparent 28%),
      linear-gradient(180deg, #060b11 0%, #0d1117 100%) !important;
    overflow-x: hidden;
    overflow-y: auto !important;
    min-height: 100dvh;
    height: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  html:has(body.analysis-mobile-shell) {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  body.analysis-mobile-shell {
    height: auto !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .analysis-mobile-shell .app-navbar-shell {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    padding-top: env(safe-area-inset-top);
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.96) 0%, rgba(8, 12, 18, 0.78) 100%) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    pointer-events: auto;
  }

  .analysis-mobile-shell .app-navbar,
  .analysis-mobile-shell .app-navbar.container {
    height: 58px !important;
    padding: 0 14px !important;
    justify-content: flex-end !important;
    gap: 10px;
  }

  .analysis-mobile-shell .app-navbar .hamburger-btn {
    display: inline-flex !important;
  }

  .analysis-mobile-shell .app-navbar .navbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
  }

  .analysis-mobile-shell .app-navbar .brand-block {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
  }

  .analysis-mobile-shell .app-navbar .brand-block strong {
    font-size: 1rem !important;
  }

  .analysis-mobile-shell .app-navbar .brand-block span {
    display: block;
    color: #7d8590;
    font-size: 0.68rem;
    margin-top: 2px;
  }

  .analysis-mobile-shell .app-navbar .navbar-actions {
    gap: 8px;
  }

  .analysis-mobile-shell .mobile-nav-drawer {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: var(--mc-final-drawer-width, min(84vw, 300px)) !important;
    padding: calc(env(safe-area-inset-top) + 12px) 12px calc(env(safe-area-inset-bottom) + 12px) !important;
    background: linear-gradient(180deg, rgba(9, 14, 21, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 16px 0 42px rgba(0, 0, 0, 0.52) !important;
    transform: translateX(-112%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: transform 0.24s ease, opacity 0.2s ease !important;
    overflow-y: auto;
    z-index: 1100;
  }

  .analysis-mobile-shell .mobile-nav-drawer.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .analysis-mobile-shell .mobile-sidebar-brand {
    margin-bottom: 18px;
    padding: 0;
  }

  .analysis-mobile-shell .mobile-sidebar-brand .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .analysis-mobile-shell .mobile-sidebar-brand strong {
    font-size: 1.02rem !important;
  }

  .analysis-mobile-shell .mobile-nav-links {
    margin-top: 0;
    gap: 10px;
  }

  .analysis-mobile-shell .mobile-nav-drawer .mobile-nav-links a,
  .analysis-mobile-shell .mobile-nav-drawer .mobile-nav-links .navbar-link-button {
    min-height: 48px !important;
    padding: 0 14px !important;
    border-radius: 14px !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    color: #d0d7de !important;
  }

  .analysis-mobile-shell .mobile-nav-drawer .mobile-nav-links a.active {
    background: rgba(34, 197, 94, 0.13) !important;
    border-color: rgba(34, 197, 94, 0.24) !important;
    color: #8df2a2 !important;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.06);
  }

  .analysis-mobile-shell .mobile-nav-actions {
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .analysis-mobile-shell .mobile-nav-actions .navbar-user-chip {
    display: none !important;
  }

  .analysis-mobile-shell .mobile-nav-actions .btn {
    display: inline-flex !important;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
  }

  .analysis-mobile-shell .analysis-scroll-area {
    min-height: 100%;
    height: auto;
    overflow: visible !important;
    padding: calc(env(safe-area-inset-top) + 72px) 12px 14px !important;
  }

  .analysis-mobile-shell .page-shell.auth-gated {
    min-height: 100%;
    height: auto;
    display: block;
    overflow: visible !important;
    padding: 0 !important;
  }

  .analysis-mobile-shell .analysis-page-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    gap: 12px;
  }

  .analysis-mobile-shell .analysis-page-header,
  .analysis-mobile-shell .analysis-board-section,
  .analysis-mobile-shell .analysis-eval-panel,
  .analysis-mobile-shell .analysis-moves-panel {
    border-radius: 20px;
  }

  .analysis-mobile-shell .analysis-page-header,
  .analysis-mobile-shell .analysis-board-section,
  .analysis-mobile-shell .analysis-eval-panel,
  .analysis-mobile-shell .analysis-moves-panel {
    padding: 12px;
  }

  .analysis-mobile-shell .analysis-heading h1 {
    font-size: 1.1rem;
    line-height: 1.15;
  }

  .analysis-mobile-shell .analysis-actions .btn {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
  }

  .analysis-mobile-shell .board-wrapper {
    padding: 8px;
  }

  .analysis-mobile-shell .analysis-controls {
    border-radius: 14px;
    padding: 10px;
  }

  .analysis-mobile-shell .ctrl-btn {
    min-width: 40px;
    min-height: 40px;
    border-radius: 10px;
  }
}

/* overlay drawer rules moved to mobile-drawer.css */
