/* ═══════════════════════════════════════════════════════════════════════════════════════════════════
   DESKTOP POLISH (2026-10-15). Loaded after desktop.css. Five things the audit of the first desktop
   tier still found phone-shaped, each measured at 1920x1080:
   - the landing scrolled 20px (body kept the rail's reservation) and started with nothing focused
   - the testimony step between two full-bleed films fell back to an 850px page with the site row on it
   - the Strengths allocation scrolled 1853px with six of seven sliders under the fold
   - the creation decks hid the chooser under a closed disclosure in a 688px column
   - the mouse-look hint was the only word about the pointer lock; this sheet dresses its indicator
   Every rule here is scoped to the screen it is for and overrides the older sheets by order.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════ */

/* ---- the landing is one still screen (SCR-13): body's padding-bottom is the phone rail's --------- */
body:has(.road-landing) { padding-bottom: 0; overflow: hidden; }
.road-landing { min-height: 100vh; height: 100vh; }

/* ---- the testimony and difficulty step is a screen (SCR-12) ------------------------------------- */
/* the prologue before it and the creation film after it are fixed full-bleed screens with the site row
   hidden (landing.css:26); this one was a centred 850px page between them with the topbar back on */
body:has(.opening-choice) { overflow: hidden; background: #0b1215; padding-bottom: 0; }
body:has(.opening-choice) .topbar, body:has(.opening-choice) .reflection { display: none !important; }
body:has(.opening-choice) .game { padding: 0; margin: 0; max-width: none; }
.opening-choice {
  position: fixed; inset: 0; z-index: 25; max-width: none; margin: 0; padding: 0; overflow: auto; box-sizing: border-box;
  display: grid; place-items: center; background: #14212a; color: #f4ebda;
}
/* the landing's own picture, at low light, so the step stands in the same country as the films either side */
.opening-choice::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url(opening/road-values-v3.png) center / cover no-repeat; opacity: 0.22;
}
.opening-choice::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(7,15,19,0.92), rgba(7,15,19,0.55) 30%, rgba(7,15,19,0.35) 70%, rgba(7,15,19,0.85)),
    radial-gradient(60% 70% at 50% 50%, rgba(7,15,19,0.6), rgba(7,15,19,0) 100%);
}
.opening-choice .oc-card { position: relative; z-index: 1; width: min(900px, 92vw); padding: 24px 0; box-sizing: border-box; }
.opening-choice > .oc-card > h1 { font-size: clamp(32px, 3.2vw, 46px); text-align: center; font-weight: 400; margin: 0 0 6px; letter-spacing: -0.02em; color: #f2e9d9; }
.opening-choice .tor-below { padding-top: 10px; }
.opening-choice .tor-passage { max-width: 640px; margin-left: auto; margin-right: auto; }
.opening-choice .diff-pick, .opening-choice .tor-ways { max-width: 640px; }
.opening-choice .opening-menu-back { display: block; margin: 22px auto 0; background: none; border: 0; color: var(--gold, #d4b77f); cursor: pointer; font: inherit; font-size: 13px; }
/* the doors and the difficulty name their keys */
.opening-choice .tor-way kbd.hk { position: absolute; left: 12px; top: 12px; margin: 0; }
.opening-choice .tor-way { position: relative; }
.opening-choice .diff-row kbd.hk { margin: 0 4px 0 0; vertical-align: 1px; }
.opening-choice .oc-keys { text-align: center; font-size: 11.5px; letter-spacing: 0.05em; color: #a9b4ad; margin: 14px 0 0; }
.opening-choice .oc-keys kbd.hk { margin-right: 4px; }

/* ---- the allocation fits 1920x1080 with no scroll (SCR-07) -------------------------------------- */
/* measured before: .allocation-screen scrollHeight 1853 in 1080; #stat-list 923px tall from y 784 under a
   fixed footer at y 1008. The verifier's arithmetic: a .stat-row was 573x119 with its description line,
   and seven of those under the budget line reach y 1210; without the line (the same text is in
   #allocationUse) a row is about 74px and seven of them with 8px gaps are about 566px. So: the study,
   the wheel and the seven rows side by side, the presets as one chip row over the wheel, and the budget
   fixed in the foot beside the actions. The two wrappers are flattened (display: contents) so the grid
   can place their children; nothing in the markup moved. */
/* a preset is a chip at every width: its sentence is the chip's title (app.js) and the study's label says it when chosen */
.allocation-screen .preset .preset-desc { display: none; }
.allocation-screen .preset { font-size: 12px; padding: 5px 9px; line-height: 1.3; white-space: nowrap; }
.allocation-screen .presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 0.8rem; }
@media (min-width: 1360px) {
  .allocation-title { max-width: min(1760px, 94vw); margin: 1rem auto 0.7rem; padding: 0 2rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 1.4rem; }
  .allocation-title .creation-eyebrow { margin: 0; }
  .allocation-title h1 { font-size: 1.65rem; margin: 0; }
  .allocation-title > p:last-child { margin: 0; flex: 1 1 520px; max-width: none; font-size: 0.88rem; line-height: 1.5; }
  .alloc-layout {
    max-width: min(1760px, 94vw); padding: 0 2rem 6rem; gap: 0 2rem; align-items: start;
    grid-template-columns: minmax(300px, 380px) minmax(400px, 1fr) minmax(460px, 560px); grid-template-rows: auto auto 1fr;
    grid-template-areas: "study wheel rows" "label wheel rows" "explain wheel rows";
  }
  .alloc-visual, .alloc-controls { display: contents; }
  .alloc-visual canvas { grid-area: study; height: 230px; border: 1px solid #7e805455; }
  .alloc-visual .creation-study-label { grid-area: label; margin: 0.6rem 0 0; }
  .allocation-explainer { grid-area: explain; padding: 0; }
  .allocation-explainer h2 { margin: 0.9rem 0 0.4rem; }
  .allocation-explainer p { min-height: 0; margin: 0.3rem 0; }
  .allocation-screen .wheel-wrap { grid-area: wheel; max-width: 460px; width: 100%; justify-self: center; display: flex; flex-direction: column; align-items: center; }
  .allocation-screen .alloc-wheel { max-width: 400px; width: 100%; }
  .allocation-screen .wheel-hint { text-align: center; }
  .allocation-screen .alloc-exact { grid-area: rows; margin: 0; }
  .allocation-screen .alloc-exact > summary { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c5b17e; pointer-events: none; list-style: none; }
  .allocation-screen .alloc-exact > summary::-webkit-details-marker { display: none; }
  .allocation-screen #stat-list { gap: 8px; margin-top: 0.5rem; }
  .allocation-screen .stat-row { padding: 6px 12px 8px; }
  .allocation-screen .stat-num { height: 30px; box-sizing: border-box; padding: 0 6px; }
  .allocation-screen .stat-desc { display: none; }
  .allocation-screen .stat-range { margin: 2px 0 0; }
  .allocation-tools { justify-content: center; margin-top: 0.4rem; }
  /* the budget stands in the foot beside the actions (the footer is fixed at the bottom, its buttons at the right) */
  .allocation-budget { position: fixed; left: 2rem; bottom: 0; top: auto; z-index: 5; margin: 0; padding: 0; height: 68px; display: flex; align-items: center; background: none; border: 0; font-size: 15px; }
}

/* ---- the decks' chooser stands beside the one held (SCR-08) ------------------------------------- */
/* measured before: .creation-reading 688px (min(43rem, 48vw)) at both 1920 and 2560, the list of choices
   behind a closed disclosure (open only for 12 or fewer) 771px tall when opened at y 837. Here the reading
   column is a two-column grid: the card, its sub-choices and the playback in the first, the chooser in
   the second, sticky, always open (creation-presentation.mjs), two columns of names past twelve. */
@media (min-width: 1500px) {
  .creation-film .creation-reading { width: min(66rem, 60vw); }
  .creation-film .cine-foot, .creation-film .deck-foot { width: min(66rem, 60vw); }
  .creation-film.deck .creation-reading { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 2.2rem; align-content: start; }
  .creation-film.deck .creation-reading > * { grid-column: 1; }
  /* (the reading keeps 7rem under it for the fixed foot, so the chooser's room is the viewport less 4.5rem over it, 7rem
     under it and the progress bar: at 1080 that is 816px, and the thirty gifts with their five group lines measure under it) */
  .creation-film.deck .creation-reading > .creation-options { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 4.5rem; align-self: start; margin: 0; max-height: calc(100vh - 16.5rem); overflow: auto; }
  .creation-film .cine-foot, .creation-film .deck-foot { width: min(66rem, 60vw); }
  .creation-options summary { pointer-events: none; list-style: none; margin: 0 0 0.6rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c5b17e; }
  .creation-options summary::-webkit-details-marker { display: none; }
  .creation-option-list { grid-template-columns: 1fr; gap: 4px; }
  .creation-option-list:has(> .deck-jump:nth-child(13)) { grid-template-columns: 1fr 1fr; }
  .creation-option-list:has(> .deck-jump-group) { grid-template-columns: 1fr 1fr; }
  .deck-jump { padding: 0.38rem 0.55rem; font-size: 0.8rem; line-height: 1.25; }
  .deck-jump-group { grid-column: 1 / -1; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a9b59f; margin: 0.4rem 0 0; }
  /* the cinema's words keep the old measure (a long line of prose is not a desktop gain) */
  .creation-film.cine .creation-reading { width: min(43rem, 48vw); }
  /* the study's shade follows the wider column */
  .creation-visual::after { background: linear-gradient(90deg, #17202300 20%, #172023b8 38%, #172023f5 54%); }
  .creation-film.cine ~ .creation-visual::after, .creation-film.cine .creation-visual::after { background: linear-gradient(90deg, #17202300 31%, #172023b8 51%, #172023f5 70%); }
}

/* ---- the pointer lock's indicator (IN-4) --------------------------------------------------------- */
/* before the first lock the element is the hint it was; after it (a localStorage flag, world3.mjs) it is a
   small persistent state line, "mouse: locked" or "mouse: free", and it stays on screen under the lock
   where the hint used to fade out (style.css .w3-stage.locked .w3-lock) */
.hub.place .w3-lock.w3-ind { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; }
/* under a card the mouse is the card's: the line would say "click to look" where a click cannot (the menu's hide is in desktop.css) */
.hub.place .place-stage.plated .w3-lock { display: none; }
.hub.place .w3-stage.locked .w3-lock.w3-ind { opacity: 0.6; }
.w3-lock.w3-ind::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #8a9a92; margin-right: 7px; vertical-align: 1px; }
.w3-stage.locked .w3-lock.w3-ind::before { background: #d9b866; }
.w3-lock.w3-ind kbd { font-size: 10px; padding: 0 3px; margin: 0 1px; text-transform: uppercase; }
