/* hub-mobile.css — shared across every HUB2006 page.
   Loaded LAST in <head> so it overrides page font stacks at equal specificity.
   Goals: one self-hosted font everywhere (same wrapping on every phone),
   no iOS zoom-on-focus, consistent form controls. */

/* Inter is (c) 2016 The Inter Project Authors, SIL Open Font License 1.1.
   Full license ships alongside the site as OFL.txt. */
@font-face{
  font-family:'Inter';
  src:url('inter.woff2') format('woff2');
  font-weight:100 900;         /* variable weight axis */
  font-style:normal;
  font-display:swap;
}

:root{
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}

html,body{ font-family:var(--font); }
button,input,select,textarea{ font-family:inherit; }

/* iOS never zooms when a control's text is >=16px. Baseline guard;
   page-specific larger controls keep their size via higher specificity. */
input,select,textarea{ font-size:16px; }

/* iPhone safe areas — viewport-fit=cover is set on every page.
   No fixed header/footer/bar exists (headers are in-flow/sticky, the
   disclaimer footer is in-flow), so the only edge to clear is the bottom. */
@supports (padding: max(0px)){
  body{ padding-bottom: env(safe-area-inset-bottom); }
}

/* ============================================================
   SHARED MOBILE NAV (hub-nav.js)
   Desktop (>640) keeps each page's own tabs. On phones the per-page .menu
   tabs are hidden everywhere and one injected hamburger menu is shown. The
   panel is a fixed overlay, so opening it never shifts page content.
   ============================================================ */
.hubnav-btn{ display:none; }
.hubnav-panel{ display:none; }
@media(max-width:640px){
  .menu{ display:none !important; }                 /* hide desktop tabs on phones, every page */
  .hubnav-btn{
    display:inline-flex; flex-direction:column; justify-content:center; gap:4px;
    width:42px; height:42px; min-height:42px; margin-right:8px; padding:0 10px;
    background:rgba(255,255,255,.06);
    border:1px solid var(--glass-br, var(--line, rgba(255,255,255,.14)));
    border-radius:11px; cursor:pointer; flex:0 0 auto; -webkit-tap-highlight-color:transparent;
  }
  .hubnav-btn span{ display:block; height:2px; width:100%; background:#fff; border-radius:2px; transition:transform .2s, opacity .2s; }
  .hubnav-btn.open span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
  .hubnav-btn.open span:nth-child(2){ opacity:0; }
  .hubnav-btn.open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
  .hubnav-panel{
    display:block; position:fixed; left:8px; right:8px; top:56px; z-index:3000;
    background:#0e1526; border:1px solid var(--glass-br, var(--line, rgba(255,255,255,.14)));
    border-radius:14px; box-shadow:0 22px 54px -14px rgba(0,0,0,.72);
    padding:6px; max-height:80vh; overflow-y:auto;
    opacity:0; transform:translateY(-8px); pointer-events:none; transition:opacity .15s, transform .15s;
  }
  .hubnav-panel.open{ opacity:1; transform:none; pointer-events:auto; }
  .hubnav-panel a{
    display:flex; align-items:center; min-height:44px; padding:0 14px; margin:1px 0;
    color:var(--text,#e8edf5); text-decoration:none; font-weight:700; font-size:15px; border-radius:9px;
  }
  .hubnav-panel a:active{ background:rgba(255,255,255,.07); }
  .hubnav-panel a.on{ background:var(--blue,#2f6fed); color:#fff; }
}

/* ============================================================
   CANONICAL COMPONENTS — one look on every page.
   This sheet loads LAST, so these win the cascade. !important is
   used on the identity-defining properties so a .btn / .card is the
   SAME size & shape on index, market, community, profile, myleagues,
   hub and admin. (league.html uses its own .lgbtn / .ktc-card widget
   system; terms.html has no buttons or cards — both untouched.)
   ============================================================ */

/* ---- Buttons ---- */
.btn, a.btn, button.btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  min-height:44px;
  padding:11px 18px !important;
  border:0;
  border-radius:12px !important;
  font-family:inherit !important;
  font-weight:800 !important;
  font-size:14px !important;
  line-height:1 !important;
  letter-spacing:normal !important;
  text-transform:none !important;
  white-space:nowrap;
  cursor:pointer;
  color:#fff;
  transition:.15s;
}
/* small variant — uniform everywhere */
.btn.sm, a.btn.sm, button.btn.sm{
  min-height:38px;
  padding:8px 13px !important;
  font-size:13px !important;
  border-radius:9px !important;
}
/* color variants */
.btn.blue{ background:var(--blue) !important; }
.btn.red{ background:var(--red) !important; }
.btn.win{ background:var(--win) !important; color:#06240f !important; }
.btn.ghost{
  background:rgba(255,255,255,.05) !important;
  border:1px solid var(--glass-br, var(--line, rgba(255,255,255,.12))) !important;
  color:#fff !important;
}

/* ---- Cards ---- */
/* Unify the box shape (corner radius + lift) across pages while leaving
   each page's own background/padding — glass vs gradient vs panel — intact. */
.card{
  border-radius:16px !important;
  box-shadow:0 18px 50px -20px rgba(0,0,0,.55);
}
