/* mobile-touch.css — phones and tablets (2026-11-14); see mobile.js for the three screen kinds and their media queries:
   compact @media (max-width: 1099px) · phone @media (max-width: 699px), (max-height: 500px) · touch @media (pointer: coarse).
   Every rule here sits inside one of those, so a desktop with a mouse at 1100 px or wider is unchanged. */

/* ---- the town, the city and the map by finger (app.js: scenePts, the map's pts) */
@media (pointer: coarse) {
  /* the views belong to the finger: no grey flash on a tap, no long-press menu over a picture, no text picked up */
  #plots, #map-canvas, #edge-hint, .scene-zoom, .map-bar button { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  /* a finger leaves :hover behind on the last thing it tapped: no glow stuck on a building (the picked plot keeps its
     own highlight) */
  .scene .slot:hover { filter: none; }
  .scene .slot:not(.sel):hover .hl, #plots.moving .slot:not(.sel):hover .hl { opacity: 0; }
  /* nothing to hover with: the empty plots show their "+" all the time, so a finger finds where to build */
  .scene svg.town .plus, .scene svg.field .plus { opacity: .85; fill: rgba(255,240,205,.9); stroke: rgba(45,28,8,.75); stroke-width: 2.5px;
    paint-order: stroke; font-weight: 700; font-size: 22px; }
  /* the zoom buttons and the map bar's buttons finger-sized */
  .scene-zoom { gap: 6px; }
  .scene-zoom button, .map-bar button { min-width: 44px; min-height: 44px; }
  .scene-zoom button, #zoom-in, #zoom-out, #map-more { font-size: 22px; line-height: 1; }
  .map-bar { gap: 6px; }
  .map-bar input { min-height: 40px; font-size: 16px; }   /* (16 px: iOS zooms the page into a smaller input) */
  /* the Cancel on a Move's hint (the hint lets taps through to the town; its buttons take them) */
  .toast .move-cancel { pointer-events: auto; margin-left: 8px; min-height: 36px; vertical-align: middle; }
}
/* a phone: the map bar kept short, the rarely used ones (CL, Clear map, the state's name) behind "⋯" (app.js mapMore).
   Where it sits on the view (under the buff row) is the frame's: mobile-shell.css */
@media (max-width: 699px), (max-height: 500px) {
  .map-bar { flex-wrap: wrap; gap: 4px; padding: 4px 6px; }
  .map-bar .xy { white-space: nowrap; }
  .map-bar input { width: 54px; font-size: 16px; }
  .map-bar button { padding-left: 8px; padding-right: 8px; }
  .map-bar:not(.more) .mstate, .map-bar:not(.more) #map-cl, .map-bar:not(.more) #map-clear { display: none; }
  .map-bar.more .mstate { order: 10; flex-basis: 100%; min-width: 0; }
  #map-more[aria-expanded="true"] { filter: brightness(.85); }
}
/* a phone upright: one row is X, Y, Goto, My city and "⋯"; zoom by pinching, or with − + behind "⋯" */
@media (max-width: 699px) and (orientation: portrait) {
  .map-bar:not(.more) #zoom-in, .map-bar:not(.more) #zoom-out { display: none; }
  .map-bar { gap: 3px; }
  .map-bar input { width: 50px; }
}
