/* Touch screens: smooth scrolling (Claude Code 2026-11-17, owner: "test speed … if not 10/10 change it").
   Measured on the owner's phone (Xiaomi 2409BRN2CA, 343 px) and tablet: a live blur behind a bar that stays on screen while the
   page scrolls is redrawn on every frame — on the tablet it halved the frame rate in the Live Meeting lobby (66 → 119 fps without it).
   On touch screens the bottom bar and the word page's section tabs now use a solid tint of the theme instead of the blur; they look
   the same at rest. Computers (mouse) keep the glass. Loaded last. */
@media (pointer: coarse) {
  html body #bottomNav#bottomNav.bottom-nav, html body .bottom-nav.bottom-nav {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface, #23384A) 45%, var(--vt-base, #0D1821)), var(--vt-base, #0D1821)) !important;   /* solid: without the blur, text showed through */
  }
  html body .section-nav.jump-pills {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    background: color-mix(in srgb, var(--vt-base, #0D1821) 90%, transparent) !important;
  }
}

/* 2026-11-17 phone test, Home: 5 blurred cards over the moving waterfall (search box, My Space, Saved card, play key, photo chips)
   held Home at 36–39 fps while scrolling; with the blur off it ran at 58 fps (measured on the phone, finger-style scroll).
   Touch screens: no live blur on anything that scrolls with the page; the three most see-through pieces get a little more tint so
   they look the same at rest. Windows that float above the page (dialogs, menus) keep their glass. */
@media (pointer: coarse) {
  html body #main *, html body #main { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html body #v-home#v-home .card.myspace { background-color: color-mix(in srgb, var(--surface, #274355) 92%, transparent) !important; }
  html body #v-home#v-home .wotd-play { background-color: color-mix(in srgb, var(--vt-base, #0C1823) 80%, transparent) !important; }
  html body #v-home#v-home .ms-banner-chips { background-image: linear-gradient(180deg, color-mix(in srgb, var(--surface, #152531) 72%, transparent), color-mix(in srgb, var(--vt-base, #0D1821) 88%, transparent)) !important; }
}

/* 2026-11-17 phone (draws under Android's own buttons, 48 px): the page scrolled visibly behind those buttons and in the gap under
   the floating menu bar. Touch screens with such an area get a solid strip in the theme's colour there (none on other devices). */
@media (pointer: coarse) {
  html:not(:has(.mt-head-live)):not(:has(body[data-route="messenger"]))::after {   /* not in a meeting or Chat: their keys sit at the bottom */
    content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: 19; pointer-events: none;
    height: calc(env(safe-area-inset-bottom, 0px) + min(env(safe-area-inset-bottom, 0px), 8px));
    background: var(--vt-base, #0D1821);
  }
}
