/* Block Runner on phones (01.12.): every tap target at least 44 px (or a 44 px hit area around small chips),
   no text under 10.5 px, no iOS zoom on inputs, full title in the top bar. Loaded last. */

/* «Open in wallet» sheet (js/handy.js) */
.hw-apps { position: fixed; inset: 0; z-index: 2147483600; display: grid; place-items: end center; padding: 16px calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  background: rgba(3,5,10,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: hwIn .18s ease-out; }
.hw-box { position: relative; width: min(360px, 100%); display: grid; gap: 14px; justify-items: center; padding: 18px 16px 16px; border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14); background: linear-gradient(180deg, rgba(28,38,52,.92), rgba(12,17,24,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 48px rgba(0,0,0,.5); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.hw-t { font: 800 14px var(--disp); letter-spacing: .1em; text-transform: uppercase; color: var(--white, #fff); }
.hw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.hw-a { display: grid; justify-items: center; gap: 6px; padding: 14px 8px 10px; min-height: 96px; border-radius: 18px; text-decoration: none; color: var(--white, #fff);
  border: 1px solid rgba(255,255,255,.14); background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.hw-a svg { width: 46px; height: 46px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.hw-a small { font: 700 12px var(--disp); letter-spacing: .06em; }
.hw-a:active { transform: scale(.96); }
.hw-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--muted, #9aa); font-size: 18px; }
@keyframes hwIn { from { opacity: 0; } }
.w-net[data-st="none"]:not(:disabled) { cursor: pointer; border-color: rgba(255,179,71,.55); color: var(--white); }

/* top bar on narrow phones: the title never fits next to the four buttons (58 px at 360 px, cut to «BLOCK …»):
   Hub = arrow only, the title stays for screen readers, the buttons sit on the right */
@media (max-width: 480px) {
  .bar-hub span { display: none; }
  .bar-hub { padding: 0; width: 44px; margin-right: auto; }
  .bar-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* race screen: no long-press menu, no text pick-up on iPhones */
.stage { -webkit-touch-callout: none; overscroll-behavior: none; }

@media (pointer: coarse) {
  .rk-tabs button { min-height: 44px; }
  .win-x, #win-board .win-x { width: 44px; height: 44px; }
  .win a.btn-primary.sm, .win .btn-primary.sm { min-height: 44px; }
  .rk-info { width: 44px; height: 44px; padding: 12px; top: 0; right: 0; }
  .gp { width: 44px; height: 44px; }
  .spk, #nameEdit { min-height: 44px; }
  .gf { min-height: 44px; }
  .gg-more { display: inline-flex; align-items: center; min-height: 44px; }
  /* small chips keep their look, the hit area grows to 44 px */
  .w-net, .w-addr, .bzf-me, .bzf-ib, .bzf-x, .bzf-btn, .bzf-tab { position: relative; }
  .w-net::after, .w-addr::after, .bzf-ib::after, .bzf-x::after { content: ""; position: absolute; inset: -7px; }
  .bzf-tab, .bzf-btn { min-height: 44px; }
  /* readable labels */
  .chip span { font-size: 11px; }
}
@media (pointer: coarse) and (max-height: 520px) and (orientation: landscape) { .dock .tile b { font-size: 10.5px; letter-spacing: .03em; } #win-board .rk-tabs button { min-height: 38px; } }

/* inputs: 16 px or iOS zooms the page on focus */
input.bzf-in, .win input, .win select, .win textarea { font-size: 16px; }
