/* ═══════════════════════════════════════════════════════════════════════════════════════════════════
   THE LAPTOP SWEEP (2026-10-15). Loaded after desktop-polish.css. The two desktop rounds were built and
   looked at mostly at 1920x1080 and 2560x1440; this sheet walks every screen at the commonest laptop
   sizes, 1366x768, 1440x900 and 1280x800, and fixes what overflowed, clipped, wrapped badly or covered
   the world for nothing. It sizes and wraps only; it redesigns nothing.
   EVERY RULE IS IN A MEDIA QUERY THAT CANNOT MATCH 1920x1080 OR 2560x1440 (a width under 1600, under 1700
   for the study label, or a height under 920), so the big-monitor layouts the earlier sheets measured stand
   exactly as they were;
   and every one has a floor of 1100 wide, so a narrow window keeps what the older sheets give it.
   Measured before this sheet (scripts/_desk-laptop-probe.mjs at 1366x768):
   - the landing put its last line ("You can start as a guest") at y 770 in a 768 window, overflow hidden
   - the creation decks (the polish's two-column chooser starts at 1500) stacked the chooser under the
     card: the film scrolled 1191/768 and 0 of 8 names were on screen
   - the allocation scrolled 991/768 and its seventh slider sat under the fixed foot at 696
   - the trade panel at clamp(760px, 46vw, 980px) is 760 of 1366 (56 percent), and the verse card that
     hangs beside it landed on the meters plate
   - the fight's one-bar deck wrapped into two ragged rows (stances alone on the second); the brink's list
     ran 660 wide over the kneeling man at 1280, and the verse card came down over its first way at 768
   - the perks' sideways row cut its second card at the panel's edge; the guide's way back sat 63px under
     the fold; belongings at 1440 ran three 225px columns
   After it, the probe reads every screen it walks at 1366x768, 1440x900 and 1280x800 with no control
   outside the viewport, cut, or overlapping another (the strike zones' own overlap aside, which is the
   same at 1920).
   ═══════════════════════════════════════════════════════════════════════════════════════════════════ */

/* ---- the landing fits a 768 or 800 window ----------------------------------------------------- */
/* measured at 1366x768: content padding-top 115, a 106px title on two lines, the account row ending at
   756 and the guest line at 770 to 784 with the page's overflow hidden (no way to reach it) */
@media (max-height: 919px) and (min-width: 1100px) {
  .landing-content { padding-top: clamp(84px, 11vh, 115px); padding-bottom: 24px; }
  .landing-content h1 { font-size: clamp(56px, 11vh, 116px); margin: 18px 0 22px; }
  .landing-description { line-height: 1.7; }
  .landing-menu { margin-top: 24px; }
  .landing-account { margin-top: 18px; padding-top: 14px; }
}

/* ---- the creation decks: the chooser beside the card at a laptop's width too ------------------- */
/* desktop-polish.css lays the deck in two columns at 1500 and up. Under it the reading column was
   min(43rem, 48vw), 656px at 1366, with the chooser stacked under the card: the film scrolled 1191 in
   768 (paths), 1154 (origins), 911 (purpose), 1880 (gifts) and no name was on screen. Here the same two
   columns from 1200: the reading column 64vw (874 at 1366, 819 at 1280), the chooser 272px, the card
   578px at 1366 and 523 at 1280. The right margin drops from 5vw to 3vw and the study's label and shade
   stop where the column starts. The cinema (the paths' intro) keeps its old measure, as the polish does.
   After: every name on screen beside the card at all three laptop sizes (8 of 8, 9 of 9, 31 of 31). */
@media (min-width: 1200px) and (max-width: 1499.98px) {
  .creation-film.deck .creation-reading { width: 64vw; margin-right: 3vw; display: grid; grid-template-columns: minmax(0, 1fr) 272px; column-gap: 1.5rem; align-content: start; }
  .creation-film.deck .deck-foot { width: 64vw; right: 3vw; }
  .creation-film.deck .creation-reading > * { grid-column: 1; }
  /* (the chooser's room is the viewport less 107px over it and the 72px foot under it: 573 at 768, and the
     thirty gifts with their five group lines, one line each, measure about 560) */
  .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 - 107px - 76px); overflow: auto; }
  .creation-film.deck .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-film.deck .creation-options summary::-webkit-details-marker { display: none; }
  .creation-film.deck .creation-option-list { grid-template-columns: 1fr; gap: 4px; }
  .creation-film.deck .creation-option-list:has(> .deck-jump-group) { grid-template-columns: 1fr 1fr; }
  .creation-film.deck .deck-jump { padding: 0.32rem 0.45rem; font-size: 0.76rem; line-height: 1.22; }
  .creation-film.deck .creation-option-list:has(> .deck-jump-group) .deck-jump { font-size: 0.72rem; padding: 0.3rem 0.4rem; }
  /* the gifts' five kinds stay one row over the card (at 589px "Of fortune" wrapped alone onto a second row) */
  .creation-film.deck .deck-tab { font-size: 0.7rem; letter-spacing: 0.05em; padding: 4px 8px; }
  .creation-film.deck .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 study's label and shade end where the reading column begins (1366: x 451, 33 percent) */
  .creation-film.deck .creation-study-label { width: calc(33vw - 3.5vw - 1.5rem); }
  .creation-film.deck .creation-visual::after, .creation-film.deck ~ .creation-visual::after { background: linear-gradient(90deg, #17202300 14%, #172023b8 26%, #172023f5 34%); }
}
/* at a laptop's height the card's rhythm tightens (the paths card's column measured 969 in 768, the purpose 802) */
@media (min-width: 1200px) and (max-width: 1499.98px) and (max-height: 919px) {
  .creation-film.deck .creation-reading { padding-top: 2rem; padding-bottom: 5rem; }   /* (7rem kept 40px of air over the 72px foot) */
  .creation-film.deck .deck-name { font-size: 2.3rem; margin-bottom: 0.5rem; }
  .creation-film.deck .deck-sub { margin-bottom: 0.8rem; }
  .creation-film.deck .deck-line { margin: 0.7rem 0; line-height: 1.6; }
  .creation-film.deck .deck-verse { margin: 0.7rem 0; }
  .creation-film.deck .deck-chips { margin: 0.8rem 0; gap: 0.45rem; }
  .creation-film.deck .deck-chip { padding: 0.45rem 0.8rem; }
  .creation-film.deck .deck-jump-group { margin-top: 0.25rem; }
  .creation-film.deck .creation-option-list { gap: 3px; }
}
/* SKEPTIC (2026-10-15): the same label fault one band up. From 1500 the polish's reading column starts at 35vw
   (100vw less 5vw less 60vw, until 60vw reaches 66rem at 1760), and the label is 3.5vw plus its 32rem cap: measured
   on the paths and origins decks, the label's box lay 40x20 over the eyebrow at 1500x900, 28x20 at 1536x864 (a
   1920x1080 laptop at 125 percent scaling; "account." ran into "CHOOSE THE LIFE"), 8x20 at 1600 and 2x20 at 1620.
   Here the label stops 1.5rem short of the column, as it does under 1500; at 1700 the cap is 32rem again. */
@media (min-width: 1500px) and (max-width: 1699.98px) {
  .creation-film.deck .creation-study-label { max-width: calc(31.5vw - 1.5rem); }
}
/* the thirty gifts measured 656 in the chooser's 585 at 768 and 617 at 800 (names under its fold): the rows come in 3px */
@media (min-width: 1200px) and (max-width: 1499.98px) and (max-height: 859px) {
  .creation-film.deck .creation-option-list:has(> .deck-jump-group) { gap: 2px; }
  .creation-film.deck .creation-option-list:has(> .deck-jump-group) .deck-jump { padding-top: 0.2rem; padding-bottom: 0.2rem; }
  .creation-film.deck .creation-options summary { margin-bottom: 0.3rem; }
}

/* ---- the allocation fits the window from 1200 wide and 768 high -------------------------------- */
/* desktop-polish.css lays the study, the wheel and the seven rows side by side from 1360, so 1280 had the
   old single column. Measured at 1366x768 under the polish: scrollHeight 991 in 768, the title 56px from
   y 75, the presets four chip rows (144 to 272) over a 398px wheel ending at 683, and the seven rows 82px
   apart from y 184, the seventh slider's foot at 732 under the fixed foot at 696. Here the polish's three
   columns from 1200 (narrower, so they fit 1280), and at a laptop's height the wheel takes what the window
   gives (100vh less 450px: 318 at 768, 350 at 800) and a row is about 63px (the number box 26 high). */
@media (min-width: 1200px) and (max-width: 1359.98px) {
  .allocation-title { max-width: 96vw; margin: 1rem auto 0.7rem; padding: 0 1.5rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
  .allocation-title .creation-eyebrow { margin: 0; }
  .allocation-title h1 { font-size: 1.5rem; margin: 0; }
  .allocation-title > p:last-child { margin: 0; flex: 1 1 440px; max-width: none; font-size: 0.84rem; line-height: 1.45; }
  .alloc-layout {
    max-width: 96vw; padding: 0 1.5rem 6rem; gap: 0 1.5rem; align-items: start;
    grid-template-columns: minmax(220px, 270px) minmax(360px, 1fr) minmax(340px, 400px); 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: 200px; 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: 420px; width: 100%; justify-self: center; display: flex; flex-direction: column; align-items: center; }
  .allocation-screen .alloc-wheel { max-width: 380px; 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; }
  .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; }
}
@media (min-width: 1200px) and (max-height: 919px) {
  .allocation-title { margin-top: 0.7rem; margin-bottom: 0.5rem; }
  .allocation-title h1 { font-size: 1.45rem; }
  .allocation-title > p:last-child { font-size: 0.82rem; line-height: 1.45; }
  .alloc-visual canvas { height: 190px; }
  .allocation-screen .presets { margin-bottom: 0.5rem; }
  .allocation-screen .wheel-wrap { margin-top: 0; }
  .allocation-screen .alloc-wheel { max-width: min(400px, calc(100vh - 450px)); }
  /* the three tools on one row under the wheel (at 398px they wrapped "See the seven examples" under the foot) */
  .allocation-tools .btn { font-size: 0.72rem; padding: 0.42rem 0.55rem; }
  .allocation-screen #stat-list { gap: 5px; margin-top: 0.3rem; }
  .allocation-screen .stat-row { padding: 4px 10px 5px; }
  .allocation-screen .stat-num { height: 26px; font-size: 18px; }
  .allocation-screen .stat-range { height: 16px; }
  /* the screen's room for the fixed 72px foot is kept once, not twice (6rem on the screen and 6rem on the layout
     scrolled 143px of nothing at 768) */
  .alloc-layout { padding-bottom: 0; }
  .allocation-screen { padding-bottom: 76px; }
}

/* ---- the testimony step: 5px of scroll at 768 ----------------------------------------------------- */
/* measured at 1366x768: .oc-card 773 tall in a 768 screen (it scrolled 773/768, the way back at 727 to 749) */
@media (max-height: 819px) and (min-width: 1100px) {
  .opening-choice .oc-card { padding: 14px 0; }
  .opening-choice .opening-menu-back { margin-top: 12px; }
}

/* ---- the trade and kit panel below 1440: the exchange's width and one column -------------------- */
/* desktop-panelsa.css widens the panel for a kit to clamp(760px, 46vw, 980px). That floor is 760 of 1366
   (56 percent) and 760 of 1280 (59 percent), and the verse card that hangs beside the panel landed at x 262
   to 582, over the meters plate (24 to 294). The boards measured 320px cards in two columns, the sale and
   the asking 760 wide for a line or two. Below 1440 a kit takes the exchange's own width (520 at 1366 and
   1280) and its grids go to one column: a seller, a good or a belonging is one row across the panel with
   its key and price at the right, as the page's own list is. The lists' own 26/28px padding (desktop.css
   gives .shop and .ask the panel padding a second time) is dropped here so the rows align under the head. */
@media (min-width: 1100px) and (max-width: 1439.98px) {
  .hub.place .place-plate:has(> .kit:not(.leaving)) { width: clamp(520px, 34vw, 760px); }
  body:has(.hub.place .place-plate.open > .kit:not(.leaving)) .reflection { right: calc(clamp(520px, 34vw, 760px) + var(--hud-inset)); }
  .place-plate .kit .shop, .place-plate .kit .ask { padding: 0; }
  .place-plate .kit .mkt-row, .place-plate .kit .shop { grid-template-columns: minmax(0, 1fr); }
  .place-plate .kit .shop-row { flex-direction: row; align-items: center; gap: 14px; padding: 11px 14px; }
  .place-plate .kit .shop-row .buy, .place-plate .kit .shop-row .sell, .place-plate .kit .shop-row > .worn { align-self: center; flex: 0 0 auto; }
  .place-plate .kit .inv-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .place-plate .kit .inv-cols .inv-section + .inv-section { margin-top: 18px; }
}

/* from 1440 to 1599 the kit panel keeps its 760 (two columns of goods fit it: 320px cards, the whole board
   on screen at 1440x900), but belongings' three columns do not: measured at 1440x900 with a staff, a blade,
   beads, salve, dates and arrows, each column was 225px and a card's words ran 70 to 90px wide ("Ironshod
   staff" on two lines, "tireless defensive reach" on three, the blade's card 266 tall). Two columns there:
   worn and then provisions in the first, carried down the second (in plain grid order provisions waited
   under the taller carried column, 400px of nothing under "No armour on you"). */
@media (min-width: 1440px) and (max-width: 1599.98px) {
  .place-plate .kit .inv-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 18px 14px; }
  .place-plate .kit .inv-cols > .inv-section:nth-child(1) { grid-column: 1; grid-row: 1; }
  .place-plate .kit .inv-cols > .inv-section:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
  .place-plate .kit .inv-cols > .inv-section:nth-child(3) { grid-column: 1; grid-row: 2; }
}

/* ---- the perks below 1600: the offer wraps in two columns ---------------------------------------- */
/* desktop-panelsb.css sets the offer as one row of 236px cards scrolled sideways. In a 520px panel the
   second card was cut at the panel's edge (its key at x 1338 of 1366) and three of five stood off the side.
   Two columns of 226px show all five, the first nine still numbered. */
@media (min-width: 1100px) and (max-width: 1599.98px) {
  .place-plate .perk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
  .place-plate .perk-card { flex: none; min-width: 0; }
}

/* ---- the side panel's vertical rhythm at a laptop's height ---------------------------------------- */
/* measured at 1366x768: the guide's eight topics and its Esc step-back made the panel 831 tall, the way
   back 63px under the fold; the head, the scene's padding and the rows' padding give that back */
@media (min-width: 1100px) and (max-height: 819px) {
  .hub.place .place-plate { padding-top: 56px; }
  .place-plate .scene, .place-plate .outcome, .place-plate .nook-body, .place-plate .approach, .place-plate .simple, .place-plate .lesson,
  .place-plate .shop, .place-plate .ask, .place-plate .inventory, .place-plate .madrasa, .place-plate .panel { padding-top: 18px; padding-bottom: 20px; }
  .place-plate .scene-view > .panel-head { padding-top: 18px; }
  .place-plate .scene-view > .panel-head + .scene { padding-top: 10px; }
  .place-plate .panel-head { margin-bottom: 10px; }
  .place-plate .dialogue { margin-bottom: 12px; }
  .place-plate .choice { padding-top: 8px; padding-bottom: 8px; }
  .place-plate .panel-foot { margin-top: 10px; }
}

/* ---- the fight's deck: two tidy rows when one will not hold it ------------------------------------ */
/* measured at 1366x768 with a bow, two abilities, Spare him and Provision: fourteen controls about 2000px
   wide, so the bar wrapped, and it wrapped by accident: Guard and the distance row first, the verbs
   second, the three stances alone at the end of the second row. Here the stances join the first row
   (where you stand: guard, distance, circling, stance) and the verbs (spare, abilities, bow, provision,
   break away) take the second whole, wrapping inside themselves only if they must. When everything fits
   it is still one row. At a short window the bar's padding comes in so its top stays under the pair's
   feet: two rows 124px tall from y 632 at 1366x768 before, 106px from 654 after (the walker's feet at
   about 600 to 630 at close range). */
@media (min-width: 1100px) and (max-width: 1599.98px) {
  .combat.cb3 .combat-ctrl:not(.aiming) > .combat-stances { order: 1; }
  .combat.cb3 .combat-ctrl:not(.aiming) > .cbtn-row:not(.range-row) { order: 2; flex-wrap: wrap; justify-content: center; max-width: 100%; }
  .combat.cb3 .combat-ctrl:not(.aiming) { row-gap: 8px; }
}
/* the brink's ten ways stand on the right from y 230 at 768 (the list keeps 120px off the foot), and the verse
   card docked top right (64 down, 320 wide) came down over its first line and its first way: measured at
   1366x768, a 238px verse at 1024..1341 x 64..302 over "He is down, and he knows it" and "1 Finish him" at
   y 260..292. While the brink is up on a short window the card docks top left instead, under your own bar
   (which ends at 66), over the bystanders' side rather than the choice. */
@media (min-width: 1100px) and (max-height: 919px) {
  body:has(.combat.cb3 .brink-panel) .reflection { right: auto; left: var(--hud-inset); top: 84px; }
}
/* the brink list is 660 wide, not the 460 desktop.css asks for: style.css's `body[data-view="play"]:has(.combat)
   .brink-panel { width: 100%; max-width: 660px }` outranks `.combat.cb3 .brink-panel` (0,3,1 over 0,3,0). On a
   1920 frame 660 clears the pair; at 1280 it ran from x 596 over the kneeling man's right half (about 560 to 650),
   the one the ten ways are about. Below 1600 the list takes the 460 it was meant to have. */
@media (min-width: 1100px) and (max-width: 1599.98px) {
  body[data-view="play"]:has(.combat) .combat.cb3 .brink-panel { width: 460px; max-width: none; padding: 0; margin: 0; }
}
@media (min-width: 1100px) and (max-width: 1599.98px) and (max-height: 919px) {
  .combat.cb3 .cb3-deck { padding: 6px 0 8px; }
  .combat.cb3 .btn.cguard { padding: 7px 14px; }
  .combat.cb3 .cmove.small, .combat.cb3 .cmove.cability, .combat.cb3 .cmove.csubdue { padding-top: 5px; padding-bottom: 5px; }
  .combat.cb3 .carc { padding-top: 5px; padding-bottom: 5px; }
  .combat.cb3 .combat-ctrl:not(.aiming) { row-gap: 6px; }
}
