
  :root {
    --saf-green: #00b300;
    --saf-green-dark: #007a00;
    --saf-green-light: #00e600;
    --saf-green-glow: rgba(0,179,0,0.25);
    --bg: #030d03;
    --bg2: #071207;
    --card: #0c1e0c;
    --card2: #0f2410;
    --border: rgba(0,179,0,0.18);
    --text: #e8f5e8;
    --text-dim: #7aaa7a;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --radius: 16px;
    --tab-h: 64px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

  html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    overflow: hidden;
  }

  /* ── App Shell ── */
  #app {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    height: 100svh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--bg);
  }

  /* ── Pages ── */
  .page {
    flex: 1;
    overflow-y: auto;
    padding-bottom: calc(var(--tab-h) + 12px);
    scroll-behavior: smooth;
    display: none;
  }
  .page.active { display: block; }
  .page::-webkit-scrollbar { display: none; }

  /* ── Header ── */
  .header {
    background: linear-gradient(160deg, #051505 0%, #091509 100%);
    padding: 12px 18px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
  }

  .logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo-hg {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .logo-hg svg { width: 32px; height: 32px; }

  .logo-hg span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--saf-green-light);
    letter-spacing: 0.5px;
    line-height: 1;
  }

  .logo-divider {
    width: 1px;
    height: 28px;
    background: var(--border);
  }

  .logo-saf {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .logo-saf-icon {
    width: 28px;
    height: 28px;
    background: var(--saf-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 11px;
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: -0.5px;
  }

  .logo-saf span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    line-height: 1.1;
  }

  .logo-saf span em {
    display: block;
    font-style: normal;
    color: var(--saf-green);
    font-size: 14px;
    font-weight: 700;
  }

  .header-tag {
    background: rgba(0,179,0,0.12);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    color: var(--saf-green);
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  /* ── Hero / Tournament Card ── */
  .hero {
    margin: 14px 14px 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #061a06 0%, #0c2e0a 50%, #071a05 100%);
    border: 1px solid rgba(0,179,0,0.3);
    overflow: hidden;
    position: relative;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 40% at 80% 20%, rgba(0,230,0,0.12) 0%, transparent 60%),
      radial-gradient(ellipse 40% 60% at 10% 80%, rgba(0,100,0,0.15) 0%, transparent 60%);
    pointer-events: none;
  }

  .hero-inner {
    padding: 18px 18px 16px;
    position: relative;
    z-index: 1;
  }

  .tournament-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,179,0,0.15);
    border: 1px solid rgba(0,179,0,0.3);
    border-radius: 20px;
    padding: 3px 10px 3px 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--saf-green-light);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .tournament-badge span.dot {
    width: 6px; height: 6px;
    background: var(--saf-green-light);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
  }

  .tournament-badge.ended{
      background: rgba(255,0,0,0.15);
      border-color: rgba(255,0,0,0.3);
      color: #ff4d4d;
  }
  .tournament-badge.ended span.dot {
      background: #ff4d4d;
      animation: none;
  }

  .tournament-badge.upcoming{
      background: rgba(255,255,0,0.15);
      border-color: rgba(255,255,0,0.3);
      color: #ffff66;
  }
  .tournament-badge.upcoming span.dot {
      background: #ffff66;
      animation: none;
  }

  @keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
  }

  .hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 4px;
  }

  .hero-title em {
    font-style: normal;
    color: var(--saf-green-light);
  }

  .hero-subtitle {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 16px;
    line-height: 1.4;
  }

  .hero-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
  }

  .stat-pill {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
  }

  .stat-pill .val {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--saf-green-light);
    line-height: 1;
  }
  .stat-pill .val.ended {
    color: #ff4d4d;
  }
  .stat-pill .val.upcoming {
    color: #ffff66;
  }
  

  .stat-pill .lbl {
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
  }

  .play-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--saf-green) 0%, var(--saf-green-dark) 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,179,0,0.4);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
  }

  .play-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
  }

  .play-btn:active { transform: scale(0.97); box-shadow: 0 2px 10px rgba(0,179,0,0.3); }

  .play-btn svg { width: 20px; height: 20px; }

  /* ── Section Header ── */
  .section-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 14px 10px;
  }

  .section-hdr h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
  }

  .section-hdr a {
    font-size: 12px;
    font-weight: 700;
    color: var(--saf-green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
  }

  /* ── Podium ── */
  .podium-wrap {
    padding: 0 14px;
  }

  .podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 170px;
    margin-bottom: 0;
  }

  .podium-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  .podium-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    position: relative;
    font-size: 20px;
    flex-shrink: 0;
  }

  .podium-item.rank-1 .podium-avatar {
    width: 62px; height: 62px;
    background: radial-gradient(circle, #3a2a00, #1a1200);
    border: 2.5px solid var(--gold);
    box-shadow: 0 0 16px rgba(255,215,0,0.4);
  }

  .podium-item.rank-2 .podium-avatar {
    background: radial-gradient(circle, #1a1a1a, #0a0a0a);
    border: 2px solid var(--silver);
    box-shadow: 0 0 10px rgba(192,192,192,0.2);
  }

  .podium-item.rank-3 .podium-avatar {
    background: radial-gradient(circle, #2a1400, #130a00);
    border: 2px solid var(--bronze);
    box-shadow: 0 0 10px rgba(205,127,50,0.2);
  }

  .crown {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    filter: drop-shadow(0 0 4px rgba(255,215,0,0.8));
  }

  .rank-badge {
    position: absolute;
    bottom: -4px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    border: 1.5px solid var(--bg);
  }

  .rank-1 .rank-badge { background: var(--gold); color: #000; }
  .rank-2 .rank-badge { background: var(--silver); color: #000; }
  .rank-3 .rank-badge { background: var(--bronze); color: #000; }

  .podium-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .podium-score {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .rank-1 .podium-score { color: var(--gold); }
  .rank-2 .podium-score { color: var(--silver); }
  .rank-3 .podium-score { color: var(--bronze); }

  .podium-block {
    width: 100%;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
  }

  .rank-1 .podium-block {
    height: 70px;
    background: linear-gradient(180deg, rgba(255,215,0,0.2) 0%, rgba(255,215,0,0.05) 100%);
    border: 1px solid rgba(255,215,0,0.3);
    border-bottom: none;
  }

  .rank-2 .podium-block {
    height: 50px;
    background: linear-gradient(180deg, rgba(192,192,192,0.15) 0%, rgba(192,192,192,0.03) 100%);
    border: 1px solid rgba(192,192,192,0.2);
    border-bottom: none;
  }

  .rank-3 .podium-block {
    height: 36px;
    background: linear-gradient(180deg, rgba(205,127,50,0.15) 0%, rgba(205,127,50,0.03) 100%);
    border: 1px solid rgba(205,127,50,0.2);
    border-bottom: none;
  }

  .pos-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.5;
  }

  .rank-1 .pos-label { color: var(--gold); }
  .rank-2 .pos-label { color: var(--silver); }
  .rank-3 .pos-label { color: var(--bronze); }

  /* ── Leaderboard List ── */
  .lb-list {
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
  }

  .lb-row {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
  }

  .lb-row:active { background: var(--card2); }

  .lb-row.you {
    background: linear-gradient(135deg, rgba(0,179,0,0.12) 0%, rgba(0,90,0,0.1) 100%);
    border-color: rgba(0,179,0,0.4);
  }

  .lb-rank {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dim);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
  }

  .lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }

  .lb-row.you .lb-avatar {
    background: rgba(0,179,0,0.15);
    border-color: var(--saf-green);
  }

  .lb-info { flex: 1; min-width: 0; }

  .lb-info .name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lb-row.you .lb-info .name { color: var(--saf-green-light); }

  .lb-info .prize {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 1px;
  }

  .lb-score {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--saf-green-light);
    flex-shrink: 0;
  }

  .lb-row.you .lb-score { color: var(--saf-green-light); }

  /* ── See More Button ── */
  .see-more {
    margin: 14px 14px 0;
    padding: 13px;
    border: 1px dashed rgba(0,179,0,0.35);
    border-radius: 12px;
    background: transparent;
    color: var(--saf-green);
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    width: calc(100% - 28px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.3px;
    transition: background 0.2s;
  }

  .see-more:active { background: rgba(0,179,0,0.08); }

  /* ── Pinned My Position ── */
  .pinned-bar {
    margin: 10px 14px 0;
    background: linear-gradient(135deg, rgba(0,179,0,0.13) 0%, rgba(0,60,0,0.12) 100%);
    border: 1.5px solid rgba(0,179,0,0.35);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .pinned-bar .pin-icon {
    font-size: 13px;
    flex-shrink: 0;
    opacity: 0.7;
  }

  .pinned-bar .lb-rank { color: var(--saf-green-light); }
  .pinned-bar .lb-info .name { color: var(--saf-green-light); }
  .pinned-bar .lb-score { color: var(--saf-green-light); }

  .pinned-label {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--saf-green);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
    padding: 0 14px;
    margin-top: 6px;
    opacity: 0.8;
  }

  /* ── Bottom Nav ── */
  .bottom-nav {
    height: var(--tab-h);
    background: #040f04;
    border-top: 1px solid var(--border);
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
  }

  .nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-dim);
    transition: color 0.2s;
    padding: 0;
  }

  .nav-tab.active { color: var(--saf-green-light); }

  .nav-tab svg { width: 22px; height: 22px; }

  .nav-tab span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .nav-tab.active .tab-indicator {
    display: block;
  }

  .tab-indicator {
    display: none;
    width: 28px;
    height: 2px;
    background: var(--saf-green-light);
    border-radius: 2px;
    position: absolute;
    top: 0;
    box-shadow: 0 0 6px var(--saf-green);
  }

  /* ── Full Leaderboard Page ── */
  .lb-page-header {
    padding: 14px 14px 0;
    margin-bottom: 4px;
  }

  .lb-page-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .lb-page-title span.trophy { font-size: 22px; }

  .lb-page-sub {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
  }

  .lb-filter {
    display: flex;
    gap: 6px;
    padding: 10px 14px 6px;
    overflow-x: auto;
  }

  .lb-filter::-webkit-scrollbar { display: none; }

  .filter-chip {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
  }

  .filter-chip.active {
    background: var(--saf-green);
    color: #000;
    border-color: var(--saf-green);
  }

  /* ── Phone Sheet ── */
  .overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 100;
    backdrop-filter: blur(4px);
  }

  .overlay.show { display: block; animation: fade-in 0.2s ease; }

  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

  .bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 430px;
    background: #0c1e0c;
    border-radius: 20px 20px 0 0;
    border-top: 1px solid rgba(0,179,0,0.3);
    padding: 0 20px 32px;
    z-index: 101;
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
  }

  .bottom-sheet.show { transform: translateX(-50%) translateY(0); }

  .sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(0,179,0,0.3);
    border-radius: 2px;
    margin: 14px auto 20px;
  }

  .sheet-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
  }

  .sheet-sub {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .phone-input-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0,0,0,0.4);
    border: 1.5px solid rgba(0,179,0,0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    transition: border-color 0.2s;
  }

  .phone-input-wrap:focus-within {
    border-color: var(--saf-green);
    box-shadow: 0 0 0 3px rgba(0,179,0,0.1);
  }

  .phone-prefix {
    padding: 14px 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--saf-green);
    border-right: 1px solid var(--border);
    white-space: nowrap;
    background: rgba(0,179,0,0.06);
  }

  .phone-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 14px;
    letter-spacing: 2px;
  }

  .phone-input-wrap input::placeholder { color: var(--text-dim); letter-spacing: 1px; font-size: 14px; }

  .sheet-cta {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--saf-green) 0%, var(--saf-green-dark) 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,179,0,0.3);
    transition: all 0.2s;
  }

  .sheet-cta:active { transform: scale(0.97); }

  /* ── Game Modal (placeholder) ── */
  .game-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #030d03;
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .game-modal.show { display: flex; animation: fade-in 0.3s ease; }

  .game-modal .close-game {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
  }

  .game-frame {
    text-align: center;
  }

  .game-emoji { font-size: 80px; animation: float 2s ease-in-out infinite; }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }

  .game-modal h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--saf-green-light);
    letter-spacing: 1px;
  }

  .game-modal p {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    max-width: 260px;
  }

  /* Animate rows in */
  .lb-row { animation: slide-up 0.3s ease both; }
  @keyframes slide-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .lb-row:nth-child(1) { animation-delay: 0.05s; }
  .lb-row:nth-child(2) { animation-delay: 0.10s; }
  .lb-row:nth-child(3) { animation-delay: 0.15s; }
  .lb-row:nth-child(4) { animation-delay: 0.20s; }
  .lb-row:nth-child(5) { animation-delay: 0.25s; }
  .lb-row:nth-child(6) { animation-delay: 0.30s; }
  .lb-row:nth-child(7) { animation-delay: 0.35s; }
  .lb-row:nth-child(8) { animation-delay: 0.40s; }

  /* ── Game Banner ── */
  .game-banner {
    background: linear-gradient(90deg, #0a2200 0%, #0f3300 40%, #0a2200 100%);
    border-bottom: 1px solid rgba(0,230,0,0.25);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
  }

  .game-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(0,179,0,0.04) 60px,
      rgba(0,179,0,0.04) 61px
    );
    pointer-events: none;
  }

  .banner-bird {
    font-size: 28px;
    animation: bird-flap 0.6s ease-in-out infinite alternate;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(255,220,0,0.5));
  }

  @keyframes bird-flap {
    from { transform: translateY(0) rotate(-5deg); }
    to   { transform: translateY(-4px) rotate(5deg); }
  }

  .banner-text { flex: 1; min-width: 0; }

  .banner-text .top-line {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    line-height: 1.1;
  }

  .banner-text .top-line em {
    font-style: normal;
    color: var(--saf-green-light);
  }

  .banner-text .sub-line {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 2px;
    letter-spacing: 0.3px;
  }

  .banner-play-chip {
    flex-shrink: 0;
    background: var(--saf-green);
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(0,179,0,0.4);
    transition: transform 0.15s;
  }

  .banner-play-chip:active { transform: scale(0.95); }

  /* ── Pipes decoration (subtle) ── */
  .banner-pipes {
    position: absolute;
    right: 110px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0.12;
    pointer-events: none;
  }

  .banner-pipes span {
    display: block;
    width: 10px;
    background: var(--saf-green);
    border-radius: 2px;
  }

  /* Noise texture overlay */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.4;
  }

  /* ── Flappy Bird Banner ── */
  .game-banner {
    margin: 14px 14px 0;
    border-radius: var(--radius);
    border: 1px solid rgba(0,230,0,0.3);
    overflow: hidden;
    height: 88px;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #1a3a6e 0%, #2a5298 40%, #4a7c59 70%, #3d6b48 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,230,0,0.15);
  }

  /* Clouds */
  .banner-sky {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 30px 12px at 20% 30%, rgba(255,255,255,0.18) 0%, transparent 100%),
      radial-gradient(ellipse 20px 8px at 60% 20%, rgba(255,255,255,0.12) 0%, transparent 100%),
      radial-gradient(ellipse 25px 10px at 80% 35%, rgba(255,255,255,0.1) 0%, transparent 100%);
    animation: clouds-scroll 12s linear infinite;
    pointer-events: none;
  }

  @keyframes clouds-scroll {
    from { background-position: 0 0, 0 0, 0 0; }
    to   { background-position: -200px 0, -200px 0, -200px 0; }
  }

  /* Ground strip */
  .banner-ground-wrap {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 16px;
    overflow: hidden;
    pointer-events: none;
  }

  .banner-ground {
    height: 100%;
    background: repeating-linear-gradient(
      90deg,
      #5d8a3c 0px, #5d8a3c 18px,
      #4a7230 18px, #4a7230 36px
    );
    animation: ground-scroll 1.2s linear infinite;
    border-top: 2px solid #3a5c26;
  }

  @keyframes ground-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-36px); }
  }

  /* Pipes scene container */
  .banner-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .banner-pipe {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pipe-scroll 2.4s linear infinite;
    pointer-events: none;
  }

  /* Pair A: top pipe */
  .pipe-a { top: 0; right: -30px; animation-delay: 0s; }
  /* Pair A: bottom pipe */
  .pipe-b { bottom: 16px; right: -30px; animation-delay: 0s; }
  /* Pair B: top pipe */
  .pipe-c { top: 0; right: -30px; }
  /* Pair B: bottom pipe */
  .pipe-d { bottom: 16px; right: -30px; }

  @keyframes pipe-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-460px); }
  }

  .pipe-cap {
    width: 26px; height: 10px;
    background: linear-gradient(180deg, #5bc741 0%, #3a9e28 100%);
    border-radius: 3px;
    border: 1.5px solid #2a7a1a;
    flex-shrink: 0;
  }

  .pipe-body {
    width: 20px;
    background: linear-gradient(90deg, #4db533 0%, #3a9e28 50%, #2e8020 100%);
    border-left: 1.5px solid #2a7a1a;
    border-right: 1.5px solid #2a7a1a;
    flex-shrink: 0;
  }

  .top-body  { height: 38px; order: 2; }
  .top-cap   { order: 1; margin-bottom: -1px; }
  .bot-body  { height: 22px; order: 1; }
  .bot-cap   { order: 2; margin-top: -1px; }

  /* Bird */
  .banner-bird {
    position: absolute;
    left: 52px;
    font-size: 24px;
    animation: bird-flap 0.9s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    pointer-events: none;
    z-index: 4;
  }

  @keyframes bird-flap {
    0%   { transform: translateY(0px) rotate(-8deg); }
    30%  { transform: translateY(-14px) rotate(-20deg); }
    60%  { transform: translateY(-6px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(-8deg); }
  }

  /* Banner text */
  .banner-content {
    position: relative;
    z-index: 5;
    margin-left: 90px;
    flex: 1;
  }

  .banner-game-label {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    margin-bottom: 1px;
  }

  .banner-game-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  }

  .banner-game-sub {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.65);
    letter-spacing: 1px;
    margin-top: 2px;
  }

  /* Play chip */
  .banner-play-chip {
    position: relative;
    z-index: 5;
    margin-right: 14px;
    background: var(--saf-green);
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 7px 14px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 12px rgba(0,179,0,0.5);
    transition: transform 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .banner-play-chip:active { transform: scale(0.93); }

  /* Scrollable full lb */
  .full-lb-list {
    padding: 0 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
