/**
 * ru7.one — shared mobile baseline (loaded after page <style>).
 * Do not delete this file or remove @media blocks from HTML without review.
 */
:root {
  --mob-nav-h: 0px;
}

@media (max-width: 768px) {
  html {
    overflow-x: clip;
    max-width: 100vw;
  }
  body {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overflow-x: clip;
    max-width: 100vw;
    font-size: 14px;
  }

  body.has-mob-nav {
    --mob-nav-h: calc(132px + env(safe-area-inset-bottom, 0px));
  }

  body.has-mob-nav .main {
    padding-bottom: var(--mob-nav-h) !important;
  }

  /* Subpages: hide link-style back only (not .tb2 / pause controls) */
  body.has-mob-nav a.back {
    display: none !important;
  }

  body.has-mob-nav .top,
  body.has-mob-nav .top-sticky > .top {
    min-height: 44px;
    padding: 8px 12px;
  }

  body.has-mob-nav .top-brand,
  body.has-mob-nav .logo-area {
    flex: 1;
    min-width: 0;
  }

  /* ── Shared bottom tab bar ── */
  .mob-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    background: var(--bg, #0a0a0a);
    border-top: 1px solid var(--border, #222);
    padding: 4px 2px calc(6px + env(safe-area-inset-bottom, 0px));
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  }

  .mob-nav button,
  .mob-nav a {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    min-width: 0;
    min-height: 40px;
    border: none;
    background: transparent;
    color: var(--text2, #777);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 2px;
    border-radius: 8px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mob-nav button.on,
  .mob-nav a.on {
    color: var(--mint, #7eeee6);
    background: var(--mint-dim, rgba(126, 238, 230, 0.08));
  }

  .mob-nav .mn-ico {
    font-size: 17px;
    line-height: 1;
  }

  .mob-nav .mn-lbl {
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* CoinAnk: section tabs stick below page top bar */
  body.has-mob-nav.coinank-page .top {
    z-index: 200;
    min-height: 44px;
  }

  body.has-mob-nav.coinank-page .tabs {
    position: sticky;
    top: 44px;
    z-index: 199;
  }

  body.has-mob-nav .top-sticky .top .top-credit,
  body.has-mob-nav .top-sticky .top .top-twitter {
    display: none;
  }

  body.has-mob-nav .top-sticky .top-brand .pg-title {
    font-size: 12px;
  }

  body.has-mob-nav .top-credit-mob-hide,
  body.has-mob-nav .top .top-credit,
  body.has-mob-nav .top .top-twitter {
    display: none !important;
  }

  body.has-mob-nav .coinank-page .pg-sub,
  body.has-mob-nav .top .pg-sub,
  body.has-mob-nav .logo-area .sub {
    display: none;
  }

  body.has-mob-nav .logo-area h1 {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  html,
  body {
    overflow-x: clip;
    max-width: 100vw;
  }

  .mob-nav .mn-lbl {
    font-size: 9px;
  }
}

/* coin.html / subpages: avoid unreadable 8px labels in top bar */
@media (max-width: 480px) {
  .top [style*='font-size:8px'],
  .top [style*='font-size: 8px'] {
    font-size: 10px !important;
  }
}
