/* Mobile shell — TOP GAINERS (see mshell/gainers.js). */
@media (max-width: 979px) {
  html.web-shell .mwl { gap: 12px; }
  html.web-shell .mwl-per { flex-shrink: 0; }
  html.web-shell .mwl-per .s { min-height: 28px; padding: 4px 12px; }
  html.web-shell .mwl-cap { display: flex; flex-direction: column; gap: 4px; margin: 0 2px; }
  html.web-shell .mwl-cap .mws-lbl { font-size: 9.5px; letter-spacing: 0.1em; }
  html.web-shell .mwl-cap .s { font-size: 11.5px; color: var(--mws-ink-3); line-height: 1.45; }
  html.web-shell .mwl-sec { margin-top: 2px; min-height: 32px; }
  html.web-shell .mwl-coinpill {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--mws-line); color: var(--mws-ink-3);
    font-family: var(--mws-mono); font-size: 11px; cursor: pointer;
  }
  html.web-shell .mwl-coinpill .car { font-size: 9px; }
  html.web-shell .mwl-coinpill.on {
    color: var(--mws-gold); border-color: rgba(240, 185, 11, 0.35); background: rgba(240, 185, 11, 0.08);
  }
  html.web-shell .mwl-selnative {
    position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px;
  }
  html.web-shell .mwl-row { padding: 15px; gap: 12px; border-radius: 16px; }
  html.web-shell .mwl-row.first {
    background: linear-gradient(180deg, #1a1508, var(--mws-card)); border-color: rgba(240, 185, 11, 0.3);
  }
  html.web-shell .mwl-row.me { border-color: rgba(240, 185, 11, 0.4); }
  html.web-shell .mwl-rank {
    width: 30px; flex-shrink: 0;
    font-family: var(--mws-mono); font-size: 15px; font-weight: 600; color: var(--mws-ink-2);
  }
  html.web-shell .mwl-rank.g { color: var(--mws-gold); }
  html.web-shell .mwl-rank.big { font-size: 17px; width: auto; min-width: 30px; }
  html.web-shell .mwl-av {
    position: relative; overflow: hidden; flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 13px; background: #4a5568;
  }
  html.web-shell .mwl-av.you {
    background: linear-gradient(135deg, #fcd535, #f0b90b); color: #1a1206; font-size: 11px;
  }
  html.web-shell .mwl-av > .tfx-avpreset { position: absolute; inset: 0; border-radius: 50%; }
  html.web-shell .mwl-av .tfx-avpreset-em { font-size: 21px; }
  html.web-shell .mwl-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  html.web-shell .mwl-nick { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  html.web-shell .mwl-row .nm .mws-badge { flex-shrink: 0; }
  html.web-shell .mwl-row .sub, html.web-shell .mwl-mine .sub { font-family: var(--font); font-size: 11px; }
  html.web-shell .mwl-row .right .v, html.web-shell .mwl-mine .right .v { font-size: 15px; }
  html.web-shell .mwl-mine {
    border-color: rgba(240, 185, 11, 0.35);
    background: linear-gradient(180deg, #16130a, var(--mws-card));
  }
  html.web-shell .mwl-minehd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  html.web-shell .mwl-minerow { display: flex; align-items: center; gap: 12px; min-width: 0; }
  html.web-shell .mwl-minerow .meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
  html.web-shell .mwl-minerow .nm { font-weight: 800; font-size: 14.5px; display: flex; min-width: 0; }
  html.web-shell .mwl-minerow .sub { color: var(--mws-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html.web-shell .mwl-minerow .right { margin-left: auto; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
  html.web-shell .mwl-minerow .right .v { font-family: var(--mws-mono); font-weight: 600; }
  html.web-shell .mwl-minerow .right .cap { font-family: var(--mws-mono); font-size: 10px; color: var(--mws-ink-3); }
  html.web-shell .mwl-qual { display: flex; flex-direction: column; gap: 6px; }
  html.web-shell .mwl-bar { height: 5px; border-radius: 999px; background: var(--mws-well); overflow: hidden; }
  html.web-shell .mwl-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f0b90b, #fcd535); border-radius: 999px; }
  html.web-shell .mwl-priv { cursor: pointer; min-height: 40px; padding-top: 10px; border-top: 1px solid var(--mws-line-2); }
  html.web-shell .mwl-priv .l { display: flex; flex-direction: column; gap: 2px; }
  html.web-shell .mwl-priv .l .s { font-size: 11px; color: var(--mws-ink-3); }
  html.web-shell .mwl-join { font-size: 13px; color: var(--mws-ink-2); line-height: 1.5; }
  html.web-shell .mwl-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  html.web-shell .mwl-empty svg { color: var(--mws-gold); }
  html.web-shell .mwl-empty .t { font-weight: 800; color: var(--mws-ink); font-size: 14px; }
  html.web-shell .mwl-cta { margin-top: 6px; }
  html.web-shell .mwl-disc { font-size: 11.5px; padding: 4px 6px 0; }
}

/* ---- podium + celebration (the web app's fun bits, phone-sized) ---- */
@media (max-width: 979px) {
  html.web-shell .mwl-party {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px; border-radius: 16px;
    border: 1px solid rgba(240, 185, 11, 0.35);
    background: linear-gradient(135deg, rgba(240,185,11,0.16), rgba(240,185,11,0.04));
  }
  html.web-shell .mwl-party.p2 {
    border-color: rgba(199, 206, 216, 0.38);
    background: linear-gradient(135deg, rgba(199,206,216,0.16), rgba(199,206,216,0.04));
  }
  html.web-shell .mwl-party.p3 {
    border-color: rgba(205, 127, 50, 0.38);
    background: linear-gradient(135deg, rgba(205,127,50,0.18), rgba(205,127,50,0.04));
  }
  html.web-shell .mwl-party .m { font-size: 26px; line-height: 1; flex-shrink: 0; }
  html.web-shell .mwl-party .t { font-size: 15px; font-weight: 800; }
  html.web-shell .mwl-party .s { font-size: 11.5px; color: var(--mws-ink-2); margin-top: 3px; }

  html.web-shell .mwl-podium {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px; align-items: end;
  }
  html.web-shell .mwl-pod {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 14px 6px 12px; min-width: 0;
    background: var(--mws-card); border: 1px solid var(--mws-line); border-radius: 16px;
  }
  html.web-shell .mwl-pod.p1 {
    padding-top: 18px; padding-bottom: 16px;
    border-color: rgba(240, 185, 11, 0.45);
    background: linear-gradient(180deg, rgba(240,185,11,0.12), var(--mws-card) 60%);
    box-shadow: 0 10px 30px -14px rgba(240, 185, 11, 0.6);
  }
  html.web-shell .mwl-pod.me { border-color: rgba(240, 185, 11, 0.6); }
  html.web-shell .mwl-pod .medal { font-size: 22px; line-height: 1; }
  html.web-shell .mwl-pod.p1 .medal { font-size: 26px; }
  html.web-shell .mwl-pod .mwl-av { width: 40px; height: 40px; font-size: 13px; }
  html.web-shell .mwl-pod.p1 .mwl-av { width: 48px; height: 48px; }
  html.web-shell .mwl-pod .nick {
    font-size: 12.5px; font-weight: 800; max-width: 100%;
    display: flex; align-items: center; gap: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  html.web-shell .mwl-pod .nick .mws-badge { font-size: 8px; padding: 1px 5px; }
  html.web-shell .mwl-pod .roi { font-family: var(--mws-mono); font-size: 15px; font-weight: 600; }
  html.web-shell .mwl-pod.p1 .roi { font-size: 17px; }
  html.web-shell .mwl-pod .coin {
    font-family: var(--mws-mono); font-size: 9.5px; color: var(--mws-ink-3);
    max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}

/* Earlier-month picker (2026-10-03) */
@media (max-width: 979px) {
  html.web-shell .mwl-mpick { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  html.web-shell .mwl-msel {
    appearance: none; -webkit-appearance: none; min-height: 36px; padding: 0 30px 0 12px; border-radius: 999px;
    background: var(--mws-well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b93a7' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--mws-line); color: var(--mws-ink-2);
    font-family: var(--font); font-size: 12.5px; font-weight: 700;
  }
  html.web-shell .mwl-msel.on { color: var(--mws-gold); border-color: rgba(240, 185, 11, 0.45); background-color: rgba(240, 185, 11, 0.12); }
}
