/* Tablet (iPad-like) and "desktop site on a phone" fixes, 2026-11-11. Loaded after remake.css by the classic pages and by the club panel (dev.html).
   The classic pages keep their fixed 930 px layout: the pages carry <meta viewport width=980> so the browser scales the whole page to the screen.
   Nothing here changes how a page looks at desktop width; rules that depend on touch use (pointer:coarse). */

/* ---------- classic game pages (css/style.css) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* iOS must not inflate text (it re-wraps lines and clips the footer) */
#gradientBG { min-width: 930px; }               /* never narrower than the art, so the orange never stops short of the right edge */
#footer { max-width: 100%; box-sizing: border-box; padding-left: 4px; padding-right: 4px; overflow-wrap: anywhere; } /* the "Más juegos" and "Proyecto de fans" lines wrap, never cut off */
@media (pointer: coarse) {
  /* bigger touch area without moving anything: the link keeps its look, an invisible border grows around it */
  .teamMenu a, .pagination a, #footer a, button.enlace, a.kick { position: relative; }
  .teamMenu a::after, .pagination a::after, #footer #links a::after, button.enlace::after, a.kick::after { content: ""; position: absolute; left: -5px; right: -5px; top: -12px; bottom: -12px; }
}

/* ---------- club panel (dev.html): fluid layout, not the classic art ---------- */
#main { overflow-wrap: break-word; }
#main .card { overflow-x: auto; }               /* a wide table scrolls inside its card; the page itself never gets wider than the screen */
#main td:last-child { min-width: 0; }
@media (pointer: coarse) {
  #tabs button, #main button.act, #main .sw button { min-height: 44px; }
  #main button.act { min-width: 44px; padding: 8px 14px; margin: 3px 6px 3px 0; }
  #main input[type=text], #main input[type=number], #main input[type=search], #main select { min-height: 44px; font-size: 16px; } /* 16 px: iOS does not zoom in when the field is tapped */
  #main td .act { margin-bottom: 6px; }
}
@media (max-width: 900px) {
  main { padding: 8px; }
  #main table { font-size: 14px; }
  #main td, #main th { padding: 6px 5px; }
}

/* ---------- phones in portrait (2026-11-12) ----------
   arene / ranking / cellule / clan carry a script that sets <meta viewport width=930> on screens under 700 px, so the 930 px page fits the phone exactly (before it was a 980 px page, a 5 % smaller picture with empty margins).
   Under that meta the CSS width is 930, so these rules test the real screen (max-device-width), not the page width. Nothing here applies at 700 px and above. */
@media (max-device-width: 700px) {
  .ranking table.list { zoom: 1.9; }                       /* the ranking table is only ~210 px wide in a 930 px frame: bigger text, same look */
  .ranking .rankingHelp { zoom: 1.6; }
  .ranking .pagination { zoom: 1.8; }
}
