/* Cold Slip app shell (2026-10-22): loaded last on every page, so it wins over per-page header rules.
   Phones get what PrizePicks and Underdog users expect: a one-line top bar, a bottom tab bar, and chip rows that swipe
   sideways instead of stacking. Desktop keeps the top nav. Motion: transform/opacity only. */
:root{--tab-h:64px}
/* The hidden attribute always wins (the Lab paywall showed to paying users because .gate set display:flex). */
[hidden]{display:none!important}
.logo{white-space:nowrap;flex:0 0 auto}

/* team logos in the games strip; a live game card keeps its block layout (the global .live pill rule used to flatten it) */
#games .gs.live{display:block;font-size:inherit;font-weight:inherit;color:inherit}
.gs .tm{display:flex;align-items:center;gap:6px}.gs .tm img{width:18px;height:18px;object-fit:contain;flex:0 0 18px}

/* chip rows (marked by ui.js when a row holds 4+ chips) */
.ui-scroll{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:8px}
.ui-scroll::-webkit-scrollbar{display:none}
.ui-scroll>*{flex:0 0 auto}

/* bottom tab bar (phones only) */
.ui-tabs{display:none}
@media(max-width:720px){
  header{flex-wrap:nowrap!important;padding:12px 0!important;gap:10px}
  header nav{display:none!important}
  .logo{font-size:18px}
  .ui-top-cta{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;font-weight:700;font-size:13px;background:linear-gradient(135deg,var(--sig),var(--sigd));color:var(--ink);white-space:nowrap}
  body{padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px)}
  .ui-tabs{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:40;height:calc(var(--tab-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);
    background:rgba(5,8,11,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid var(--line)}
  .ui-tabs a,.ui-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--steel);font:600 11px/1 Inter,system-ui,sans-serif;background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .ui-tabs svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .ui-tabs .on{color:var(--ice)}.ui-tabs .on svg{stroke:var(--sig)}
  .ui-scroll{margin-right:-16px;padding-right:16px;mask-image:linear-gradient(90deg,#000 88%,transparent);-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent)}
  .ui-sheet{position:fixed;left:0;right:0;bottom:0;z-index:41;background:var(--ink2);border-top:1px solid var(--line);border-radius:20px 20px 0 0;padding:10px 16px calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px);
    transform:translate3d(0,100%,0);transition:transform .26s cubic-bezier(.2,.8,.2,1)}
  .ui-sheet.open{transform:none}
  .ui-sheet .grab{width:40px;height:4px;border-radius:2px;background:var(--line);margin:4px auto 12px}
  .ui-sheet a{display:flex;justify-content:space-between;align-items:center;padding:14px 4px;border-top:1px solid var(--line);font-weight:600}
  .ui-sheet a:first-of-type{border-top:0}.ui-sheet a small{color:var(--steel);font-weight:500}
  .ui-dim{position:fixed;inset:0;z-index:39;background:rgba(0,0,0,.45);opacity:0;pointer-events:none;transition:opacity .2s}
  .ui-dim.open{opacity:1;pointer-events:auto}
}
@media(prefers-reduced-motion:reduce){.ui-sheet{transition:none}}

/* Home-screen app (standalone): clear the iPhone status bar and the home indicator */
@media (display-mode: standalone){header{padding-top:calc(12px + env(safe-area-inset-top))!important}}

/* Shared upgrade dialog: native modal keeps the background inert. */
.cold-pro{box-sizing:border-box;width:calc(100% - 32px);max-width:460px;max-height:calc(100dvh - 32px);margin:auto;padding:32px;border:1px solid #34434b;border-radius:24px;background:#0c141a;color:#edf5f7;box-shadow:0 24px 90px #0008;overflow:auto;overscroll-behavior:contain;font:400 14px/1.5 Inter,system-ui,sans-serif}
.cold-pro[open]{animation:cold-pro-enter .28s ease-out}
.cold-pro::backdrop{background:rgba(0,4,8,.76);animation:cold-pro-dim .28s ease-out}
.cold-pro *{box-sizing:border-box}.cold-pro h2{font-size:30px;line-height:1.15;letter-spacing:-1px;margin:12px 0}.cold-pro p{margin:12px 0;overflow-wrap:anywhere}
.cold-pro-eyebrow{color:#b8ecab;font-weight:700}.cold-pro-close{float:right;background:transparent;border:1px solid #52626b;border-radius:20px;color:inherit;padding:7px 12px;cursor:pointer;font:inherit}
.cold-pro-proof{margin:24px 0 16px;border-top:1px solid #34434b}.cold-pro-proof>div{padding:14px 0;border-bottom:1px solid #34434b;display:grid;gap:4px}.cold-pro-proof span{color:#adbdc7;font-size:13px}.cold-pro-proof strong{font-size:21px;font-weight:700;font-variant-numeric:tabular-nums}
.cold-pro .cold-pro-note{font-size:12px;color:#adbdc7}.cold-pro a{color:inherit;text-decoration:underline}.cold-pro form{margin-top:10px}.cold-pro .btn{width:100%;min-height:48px;justify-content:center;font:700 15px/1.4 Inter,system-ui,sans-serif;cursor:pointer}.cold-pro :focus-visible{outline:3px solid #b8ecab;outline-offset:3px}
@keyframes cold-pro-enter{from{transform:translateY(36px)}to{transform:translateY(0)}}
@keyframes cold-pro-dim{from{opacity:0}to{opacity:1}}
@media(max-width:720px){.cold-pro{width:100%;max-width:none;margin:auto 0 0;max-height:calc(100dvh - 16px);border-radius:24px 24px 0 0;padding:24px 24px calc(24px + env(safe-area-inset-bottom))}@keyframes cold-pro-enter{from{transform:translateY(100%)}to{transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){.cold-pro[open],.cold-pro::backdrop{animation:none}}
