/* ═══════════════════════════════════════════════════════════════════════════════════════════════════
   SETTINGS FOR A PC PLAYER (2026-10-15). Audit IN-13, CH-11, IN-9, IN-8. Loaded after desktop-polish.css.
   Same rules as desktop.css: one px scale, nothing sized for a thumb, every control names its key.

   - The sheet is two columns at a monitor's width: the choices on the left (Reading & comfort, The world,
     Controls), the Keys on the right. The Keys list is read-only and written by app.js from the one table
     the place's legend and the pause sheet's line are written from (KEYS), so it cannot disagree with them.
   - Every control is a mouse's size: 32px rows, 32px selects, the range 32px high, an 18px checkbox, 32px
     buttons. style.css drew them as phone targets (44px selects and buttons, 12px of padding round every row);
     desktop.css had brought the selects alone to 32px. Measured after: all seven rows 32px at 1920 and 2560.
   - The new Interface size choice writes --ui on :root (preferences.mjs); this sheet only draws the row.
   - The lock indicator takes the mouse so its title can be read (style.css gave it pointer-events: none);
     a click on it still reaches the stage under it, which asks for the lock as the stage itself does.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════ */

/* ---- the sheet ----------------------------------------------------------------------------------- */
#settings .modal-card { max-width: 1120px; padding-top: 24px; padding-bottom: 22px; }
#settings .modal-card h2 { margin-bottom: 2px; }
#settings .settings-intro { margin: 0 0 4px; }
/* (two columns where a 430px and a 500px column fit beside each other, one under the other where they do not: by the
   card's own width, with no media query, so a window resized under an open sheet is never laid out by the last
   width's rules. Measured: Chrome headless answered a check made the moment after a 1280 to 390 resize with the
   1280 rules' padding and column count still applied, 5px wider than the card; the same check 1.5s later was clean) */
#settings .settings-cols { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: flex-start; }
#settings .settings-main { flex: 1 1 430px; min-width: 0; }
#settings .settings-keys { flex: 1.3 1 500px; min-width: 0; box-sizing: border-box; background: rgba(0,0,0,0.16); border: 1px solid var(--gold-dim, rgba(232,214,170,0.18)); border-radius: 8px; padding: 2px 16px 4px; }
#settings .settings-h {
  font: 500 11px/1.3 var(--sans, system-ui, sans-serif); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin: 14px 0 6px;
}
#settings form > .settings-h:first-child { margin-top: 10px; }
/* the world detail row keeps its own heading now, so its hairline (desktop-render.css) stands down */
#settings .reading-row.detail { border-top: 0; margin-top: 0; padding-top: 0; }

/* ---- every row a mouse's size --------------------------------------------------------------------- */
#settings .reading-row { min-height: 32px; padding: 0; margin: 0 0 5px; gap: 18px; }
#settings .reading-row select { height: 32px; min-height: 32px; padding: 0 8px; box-sizing: border-box; min-width: min(190px, 100%); }
#settings .reading-row input[type="checkbox"] { width: 18px; height: 18px; margin: 0 7px 0 0; }
#settings .reading-help { font-size: 12.5px; line-height: 1.5; margin: 0 0 8px; }
#settings .reading-actions { align-items: center; }
#settings .reading-actions .btn, #settings .reading-actions button { height: 32px; min-height: 32px; padding: 0 16px; display: inline-flex; align-items: center; margin: 0; }
/* (the World detail select names what Automatic came to on this machine: 60% of the row cut it off at 282px) */
#settings .reading-row select { max-width: 70%; }
#settings .reading-sample { margin: 12px 0 6px; padding: 9px 14px; }

/* the sensitivity: a 200px range on a 32px hit area, its value read beside it */
#settings .ctl-range { display: inline-flex; align-items: center; gap: 10px; flex: 0 1 252px; min-width: 0; justify-content: flex-end; }
#settings .reading-row input[type="range"] { width: auto; flex: 1 1 200px; min-width: 80px; max-width: 200px; height: 32px; margin: 0; accent-color: var(--gold); cursor: pointer; }
#settings .ctl-range output { min-width: 42px; text-align: right; font: 500 13px/1 var(--sans, system-ui, sans-serif); font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---- the Keys list --------------------------------------------------------------------------------- */
#settings .settings-keys > .settings-h { margin-top: 10px; }
/* (at most two columns, each at least 200px: the list is one column wherever two would not fit) */
#settings .keys-cols { columns: 200px 2; column-gap: 26px; }
#settings .keys-group { break-inside: avoid; margin: 0 0 12px; }
#settings .keys-group h4 { font: 500 12px/1.3 var(--serif); color: var(--gold); margin: 0 0 3px; letter-spacing: 0.01em; }
/* (one grid per group, its rows' cells laid in it: the key column is as wide as that group's widest keys) */
#settings .keys-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 1px 10px; }
#settings .keys-list li { display: contents; }
#settings .keys-list .kk { white-space: nowrap; display: flex; gap: 2px; padding-top: 1px; }
#settings .keys-list .kv { font-size: 12.5px; line-height: 19px; color: var(--ink-dim); }
#settings .keys-list kbd.hk { margin: 0; min-width: 17px; }

/* ---- the pause sheet's line, written from the same table ----------------------------------------- */
#system .fineprint kbd.hk { margin: 0 2px 0 0; }
#system .fineprint kbd.hk:last-of-type { margin-right: 6px; }
#system .fineprint .kl { white-space: nowrap; }

/* ---- the take buttons in creation carry their key ------------------------------------------------- */
.creation-film .deck-take kbd.hk, .creation-film .cine-foot kbd.hk, .road-opening #openingNext kbd.hk, .road-opening #openingBack kbd.hk, .creation-film .deck-foot kbd.hk { margin-right: 8px; }

/* ---- a stock row answers the mouse as the menu's tiles and the map's cards already do (IN-9's note) -- */
.shop .shop-row { transition: border-color 0.15s, background-color 0.15s; }
.shop .shop-row:hover { border-color: var(--gold-dim, rgba(217,184,102,0.45)); background-color: rgba(217,184,102,0.05); }
@media (prefers-reduced-motion: reduce) { .shop .shop-row { transition: none; } }

/* ---- the lock indicator can be hovered for its title ---------------------------------------------- */
.hub.place .w3-lock { pointer-events: auto; cursor: pointer; }
.hub.place .w3-stage.locked .w3-lock { cursor: none; }

/* ---- the site row in a narrow window (2026-10-15, the settings skeptic) ----------------------------- */
/* (Interface size reaches 140% in any window now; desktop.css reached it only at 3600px and up. Zoomed by it the site
   row is 1040px wide with the guest's Sign in, and it ran into the title block: at Larger its Sign in sat 13px over the
   coin at 1366x768 and 84px at 1280x720; with the longest place name (Qasr al-Daftar, the House of the Ledger) the
   name's top touched it at Large from 1280 to 1440 and at Larger at 1600; Normal was clear at every width measured,
   1280 to 1920. So the row stops at 120% under 1700px and at 100% under 1450px, where the title block, a size larger,
   sits clear below it (measured clear at 1280, 1366, 1440, 1450, 1600, 1699, 1700 and 1920 at every size); the
   corners and the fight's bar keep the size chosen) */
@media (max-width: 1699px) { body[data-view="play"] .topbar { zoom: min(var(--ui), 1.2); } }
@media (max-width: 1449px) { body[data-view="play"] .topbar { zoom: min(var(--ui), 1); } }
