/* The short rail (assets/js/map-rail.js): Popular as a two-column grid of tiles, every group ONE bar that loads folded
   with its own show / hide box, and the rest of the panel in bars under the layers. Every map but the base pickers
   (D101, 2026-10-22), from /valheim-seed-map/'s trial (D97), which Jason called "thats how all the maps should look".
   A little wider than the shared 292 so Popular's two columns hold a name each; tighter type. Desktop only: from 999px
   down the rail is the drawer and keeps map-app.css's width. */

@media (min-width: 1000px) { .oly-app.gomg-rail-on:not(.oly-folded) { grid-template-columns: 340px minmax(0, 1fr); } }
.gomg-rail > .sotf-block { padding: 0.55rem 0.6rem; }
.gomg-rail .oly-rail-head:not(.ark-topbar) { padding: 0.75rem 0.95rem 0.65rem; }
.gomg-rail .oly-rail-head:not(.ark-topbar) h1 { font-size: 1.08rem; margin-bottom: 0.2rem; }
.gomg-rail .oly-rail-head:not(.ark-topbar) p { font-size: 0.76rem; line-height: 1.45; }

/* the find box leads the rail: its label is for screen readers only, the placeholder says what it does */
.gomg-find :is(.sotf-label, .oly-label) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Share this map, in words under the find box (map-rail.js opt.share): the column's Share, where people look for it */
.gomg-share { display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%; min-height: 26px; box-sizing: border-box; margin: 0.4rem 0 0;
  padding: 0.2rem 0.6rem; cursor: pointer; background: var(--bg-surface); border: 1px solid var(--blue-border); border-radius: 6px;
  font: 700 0.74rem/1.2 'Manrope', sans-serif; color: var(--text); }
.gomg-share svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--blue); }
.gomg-share:hover, .gomg-share:focus-visible { border-color: var(--orange-ink); background: var(--orange-dim); outline: none; }
.gomg-share.is-ok { border-color: var(--orange-ink); color: var(--orange-ink); }
.oly-layers > .gomg-share { width: auto; margin: 0.4rem 0.45rem 0.1rem; }

/* the account box, one line (the base pickers' compact form): "Sync your saves: Discord Google" */
.gomg-rail > .gsync { margin: 6px 6px 0; padding: 0.38rem 0.6rem; border: 1px solid var(--border-hover); border-radius: 8px; background: var(--bg-card);
  display: flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; }
.gomg-rail > .gsync .gsync-t { display: none; }
.gomg-rail > .gsync .gsync-b { margin: 0; flex: 1 1 auto; flex-wrap: nowrap; gap: 0.3rem; }
.gomg-rail > .gsync .gsync-b::before { content: 'Sync your saves:'; color: var(--text-muted); font-size: 0.7rem; white-space: nowrap; }
.gomg-rail > .gsync .gsync-btn { padding: 0.12rem 0.42rem; font-size: 0.68rem; }
.gomg-rail > .gsync .gsync-more { font-size: 0.68rem; white-space: nowrap; }
.gomg-rail > .gsync .gsync-me { margin: 0; flex: 1 1 auto; min-width: 0; }
.gomg-rail > .gsync .gsync-me img { width: 20px; height: 20px; }
.gomg-rail > .gsync > .gsync-more { display: inline; }
/* a phone's drawer (267 px wide at a 360 px screen, 227 at 320) cannot take the line whole: "What is this?" goes under it
   rather than out past the drawer's edge (D101c, the drawer check in tools/map-rail/test/run.mjs) */
@media (max-width: 400px) { .gomg-rail > .gsync .gsync-b { flex-wrap: wrap; row-gap: 0.2rem; min-width: 0; } }

/* Popular: a two-column grid of tiles. Orange = on */
.gomg-rail .oly-layers { padding: 0 0 0.25rem; }
.gomg-rail :is(.sotf-layers-head, .oly-layers-head) { margin-bottom: 0; padding: 0.35rem 0.5rem 0.3rem 0.6rem; }
.gomg-rail :is(.sotf-bulk, .oly-bulk) button { padding: 0.2rem 0.5rem; }
/* a translated Show all / Hide all pair too long to sit beside its heading in a phone's drawer (227 px at 320) goes under
   it whole, at the right, each label on one line: never wrapped inside its button or out past the drawer's edge (C68).
   An English head fits on one line, so nothing moves there */
.gomg-rail :is(.sotf-layers-head, .oly-layers-head) { flex-wrap: wrap; row-gap: 0.2rem; }
.gomg-rail :is(.sotf-layers-head, .oly-layers-head) > :is(.sotf-bulk, .oly-bulk) { margin-left: auto; }
.gomg-rail :is(.sotf-bulk, .oly-bulk) button { white-space: nowrap; }
.gomg-pop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 0 0.45rem; }
.gomg-pop[hidden] { display: none; }
/* a phone's drawer (227-297 px) halves a tile to ~100 px and cut "Fuel stations" to "Fuel sta…": one tile a line there, every
   name whole (D101c; the harness checks the names in the open drawer at 390 / 360 / 320) */
@media (max-width: 400px) { .gomg-pop { grid-template-columns: minmax(0, 1fr); } }
.gomg-tile { position: relative; display: flex; align-items: center; gap: 0.3rem; min-width: 0; min-height: 24px; box-sizing: border-box; padding: 0.1rem 0.3rem; cursor: pointer;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 6px; font: 600 0.73rem/1.2 'Urbanist', sans-serif; color: var(--text-muted); }
.gomg-tile[hidden] { display: none; }
.gomg-tile:hover { border-color: var(--blue-border); color: var(--text); }
.gomg-tile.is-on { border-color: var(--orange-border); background: var(--orange-dim); color: var(--text); }
.gomg-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.gomg-tile:focus-within { outline: 2px solid var(--orange-ink); outline-offset: 1px; }
.gomg-tile .gomg-tile-sw { flex: 0 0 auto; margin: 0; opacity: 0.5; }
.gomg-tile.is-on .gomg-tile-sw { opacity: 1; }
/* a name too long for its tile takes a second line, broken between words, instead of an ellipsis: the swatch, the gaps and a
   two-digit count leave ~101 px of a 153 px tile, and "Notebook unlocks" (103 px) was cut on the Green Hell map (11-18).
   A WORD too long to sit beside the count (Space Engineers' "(underground)", 85 px beside "10,772" in a 75 px gap, was cut
   to "(undergrou…") drops the count to a line of its own, at the right, so the name has the tile's width; a word too long
   even for that breaks inside the tile. Never cut. The name's flex base is its longest word (width: min-content), so the
   count only drops when that word cannot fit beside it: every name that fits keeps its one line (11-18) */
.gomg-tile { flex-wrap: wrap; }
.gomg-tile-n { flex: 1 1 auto; width: min-content; min-width: 0; overflow: hidden; white-space: normal; overflow-wrap: break-word; }
.gomg-tile-c { flex: 0 0 auto; margin-left: auto; font: 700 0.66rem 'Manrope', sans-serif; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.gomg-groups-head { margin: 0.45rem 0 0; padding: 0.35rem 0.6rem 0.25rem; border-top: 1px solid var(--border-hover);
  font: 700 0.66rem 'Manrope', sans-serif; letter-spacing: 0.07em; text-transform: uppercase; color: var(--orange-ink); }
.gomg-groups-head[hidden] { display: none; }

/* every group, and every section under the layers, is ONE BAR that reads as a header at a glance (Jason 05:40: "the
   sections like usual are hard to define"): its own band, a divider above it, a blue chevron that turns, the whole row
   clicks, the count on it, and a box at the end that shows and hides the group without opening it */
.gomg-rail details.gomg-group, .gomg-sec { margin: 0; border: 0; border-top: 1px solid var(--border-hover); border-radius: 0; background: none; overflow: visible; }
.gomg-rail details.gomg-group > summary, .gomg-sec > summary { display: flex; align-items: center; gap: 0.5rem; min-height: 25px; box-sizing: border-box;
  padding: 0.05rem 0.45rem 0.05rem 0.6rem; background: var(--bg-surface); border: 0; cursor: pointer; list-style: none;
  font: 800 0.76rem 'Manrope', sans-serif; letter-spacing: 0; text-transform: none; color: var(--text); }
.gomg-rail details.gomg-group > summary::-webkit-details-marker, .gomg-sec > summary::-webkit-details-marker { display: none; }
.gomg-rail details.gomg-group > summary::before, .gomg-sec > summary::before { content: '▸'; flex: 0 0 auto; width: 0.8rem; color: var(--blue); font-size: 0.9rem; line-height: 1;
  transition: transform 0.15s; text-align: center; }
.gomg-rail details.gomg-group[open] > summary::before, .gomg-sec[open] > summary::before { transform: rotate(90deg); }
.gomg-rail details.gomg-group > summary:hover, .gomg-sec > summary:hover { background: var(--blue-dim); }
.gomg-rail details.gomg-group[open] > summary, .gomg-sec[open] > summary { border-bottom: 1px solid var(--border); }
.gomg-gname { flex: 1 1 auto; min-width: 0; }
.gomg-rail details.gomg-group :is(.sotf-gcount, .oly-lgcount) { margin-left: 0; padding: 0; background: none; font: 700 0.68rem 'Manrope', sans-serif; letter-spacing: 0; }
/* the group's own all / none: empty, part-filled, ticked */
.gomg-gtog { flex: 0 0 auto; position: relative; width: 18px; height: 18px; margin: 0 0 0 0.1rem; padding: 0; cursor: pointer;
  background: var(--bg-card); border: 1.5px solid var(--blue-border); border-radius: 4px; }
.gomg-gtog:hover, .gomg-gtog:focus-visible { border-color: var(--orange-ink); outline: none; }
.gomg-gtog[data-state="some"]::after { content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px; background: var(--orange-ink); }
.gomg-gtog[data-state="all"] { background: var(--orange-ink); border-color: var(--orange-ink); }
.gomg-gtog[data-state="all"]::after { content: ''; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--bg-card); border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* the rows inside an opened group: tighter than the shared ones */
.gomg-rail details.gomg-group > .oly-layer-row { margin: 0; padding: 0.12rem 0.6rem 0.12rem 1.6rem; }
.gomg-rail details.gomg-group > .oly-layer-row:first-of-type { margin-top: 0.15rem; }
.gomg-rail details.gomg-group > :last-child { margin-bottom: 0.2rem; }
.gomg-rail details.gomg-group .oly-layer-name { font-size: 0.8rem; }

/* the sections under the layers: what was a stack of blocks, each folded to its bar */
.gomg-secs { flex: 0 0 auto; margin: 6px 6px 0; background: var(--bg-card); border: 1px solid var(--border-hover); border-radius: 8px; overflow: hidden; }
.gomg-secs[hidden] { display: none; }
.gomg-secs > .gomg-sec:first-child { border-top: 0; }
.gomg-sec-sum { margin-left: auto; font: 700 0.68rem 'Manrope', sans-serif; font-style: normal; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* a translated section hint too long for a phone's drawer (C68: «Непойманные, снасти, популяция», 184 px beside its title
   in a 227 px drawer at 320) ends in an ellipsis instead of being cut at the box's edge, and its title stays whole. Only
   where the map's own words are translated (map-ui-text.js marks the app), so no English bar moves */
.oly-app[data-ui-language]:not([data-ui-language="en"]) .gomg-sec > summary > span { flex-shrink: 0; }
.oly-app[data-ui-language]:not([data-ui-language="en"]) .gomg-sec-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gomg-sec-body { padding: 0.15rem 0 0.2rem; }
.gomg-sec-body > .sotf-block { padding: 0.4rem 0.65rem 0.5rem; border-bottom: 0; }
.gomg-sec-body > .sotf-block + .sotf-block { border-top: 1px solid var(--border); }
.gomg-sec-body > .oly-rail-links { padding: 0.4rem 0.75rem 0.5rem; border: 0; }

/* the hosting line and the fan notice, smaller: the rail ends here */
.gomg-rail .oly-rail-host { margin: 6px 6px 0; padding: 0.45rem 0.65rem; }
.gomg-rail .oly-rail-host b { margin-bottom: 0.1rem; font-size: 0.76rem; }
.gomg-rail .oly-rail-host span { font-size: 0.68rem; line-height: 1.4; }
.gomg-rail .oly-rail-foot { margin-top: 6px; padding: 0.5rem 0.75rem 0.4rem; font-size: 0.64rem; line-height: 1.45; border-top: 0; }

/* ChatGPT C50: one map-area row; original account/profile/group boxes open below it. */
.oly-app.gomg-account-on { grid-template-rows: 44px minmax(0, 1fr); }
.oly-app.gomg-account-on > .oly-rail { grid-row: 1 / -1; }
.oly-app.gomg-account-on > .oly-stage { grid-column: -2 / -1; grid-row: 2; min-width: 0; min-height: 0; }
/* ARK already has a full-width title/jump row. Keep it above the map's account row. */
.oly-app.gomg-account-on:has(> .ark-topbar) { grid-template-rows: auto 44px minmax(0, 1fr); }
.oly-app.gomg-account-on > .ark-topbar { grid-row: 1; }
.oly-app.gomg-account-on:has(> .ark-topbar) > .oly-rail { grid-row: 2 / -1; }
.oly-app.gomg-account-on:has(> .ark-topbar) > .gomg-account-bar { grid-row: 2; }
.oly-app.gomg-account-on:has(> .ark-topbar) > .oly-stage { grid-row: 3; }
.oly-app.gomg-account-on.oly-fs:has(> .ark-topbar) { grid-template-rows: 0 44px minmax(0, 1fr); }
/* THE ROW OVER THE MAP (gomg-sync.js mountMapBar; Jason 2026-11-21: "the save and sign in … should be on the left, and
   the map data line should be on the right"). The account first, loud: "Save your finds, free" (the one orange fill on
   the row) and a line saying what that gets you, or "Saved to your account ✓", Profile and Group map. The map's data line
   and orientation note last, small and muted. A phone keeps the order as pills; the row is a size container, so the
   labels shorten by the room the row has, not the window's (a desktop's rail takes a third of it). */
.gomg-account-bar { grid-column: -2 / -1; grid-row: 1; position: relative; z-index: 1500; min-width: 0; display: flex;
  align-items: center; gap: 12px; padding: 0 8px; background: var(--bg-card); color: var(--text); border-bottom: 1px solid var(--border);
  container: gacct / inline-size; }
/* the open drawer (999px down, z 1100) covers the row, as it covered the answer row: at 1500 the row hid the rail's title */
.oly-app:has(> .oly-rail.oly-rail-open) > .gomg-account-bar { z-index: 1050; }
.gomg-account-actions { display: flex; flex: 0 1 auto; align-items: center; gap: 6px; }
.gomg-account-bar button { font: 600 12.5px/1.3 Manrope, sans-serif; color: var(--text); cursor: pointer; background: transparent; border: 0; }
/* every control: a 40 px target (44 on a phone) whose visible pill is the padding box, so the pill can sit slimmer than
   what a thumb hits. The transparent top and bottom border is the difference; an inset shadow draws the pill's edge */
.gomg-account-actions > button { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 11px; border: 4px solid transparent; border-width: 4px 0; background-clip: padding-box;
  border-radius: 999px; white-space: nowrap; }
.gomg-account-actions > button svg { flex: 0 0 auto; }
.gomg-account-actions > button:hover, .gomg-account-actions > button[aria-expanded="true"] { background-color: var(--blue-dim); }
.gomg-account-bar .gomg-account-cta, .gomg-account-bar .gomg-account-mobile.is-out { background-color: var(--orange); color: var(--cta-ink); font-weight: 700; }
.gomg-account-bar .gomg-account-cta:hover, .gomg-account-bar .gomg-account-cta[aria-expanded="true"],
.gomg-account-bar .gomg-account-mobile.is-out:hover, .gomg-account-bar .gomg-account-mobile.is-out[aria-expanded="true"] { background-color: var(--orange); filter: brightness(1.08); }
.gomg-account-status.is-ok svg, .gomg-account-mobile.is-ok svg { color: var(--green); }
/* signed in, the phone's pill is an outline: saved, saving or not saved; only signing up is orange */
.gomg-account-bar .gomg-account-mobile:not(.is-out) { box-shadow: inset 0 0 0 1px var(--border-hover); }
/* Group map: its own button, the blue edge marks it as the thing to try; on a group map it names the group, live dot first */
.gomg-account-bar .gomg-account-group { box-shadow: inset 0 0 0 1px var(--blue-border); }
.gomg-account-group svg { color: var(--blue); }
.gomg-account-bar .gomg-account-group.is-on { background-color: var(--blue-dim); }
.gomg-account-group > span { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; }
.gomg-account-group > em { font-style: normal; font-weight: 600; color: var(--text-muted); }
.gomg-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.gomg-live.is-off { background: var(--text-muted); }
.gomg-live.is-err { background: var(--orange); }
.gomg-account-pitch { flex: 0 1 auto; min-width: 0; margin-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 12px/1.3 Manrope, sans-serif; color: var(--text-muted); }
.gomg-l-short { display: none; }
/* the map's own facts: last, small, muted */
.gomg-account-orientation { flex: 0 1 auto; min-width: 0; margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
/* ChatGPT C52: one source-version paragraph, followed by the existing full orientation note. */
/* the data line keeps its width while the orientation note gives up room (to its 4rem); only past that does it take its
   compact form (fitVersion), bounded by the max-width below rather than by shrinking */
.gomg-account-orientation > .map-version { flex: 0 0 auto; max-width: 100%; min-width: 0; margin: 0; color: var(--text-muted);
  font: 500 11.5px/1.3 Manrope, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gomg-account-orientation:has(> .gomg-account-hint) > .map-version { max-width: calc(100% - 4rem - 8px); }   /* the note's 4rem and the 8px gap */
.map-version-compact { display: none; }
.gomg-account-orientation .map-version.is-compact .map-version-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gomg-account-orientation .map-version.is-compact .map-version-compact { display: inline; }
.gomg-account-orientation .map-version.is-gone { display: none; }
.gomg-account-bar .gomg-account-hint { display: block; max-width: 100%; min-height: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 0 40 auto; min-width: 4rem; text-align: left; padding: 0 6px; border-radius: 6px; font: 500 11.5px/1.3 Manrope, sans-serif; color: var(--text-muted); }
.gomg-account-bar .gomg-account-hint:hover, .gomg-account-bar .gomg-account-hint[aria-expanded="true"] { background: var(--blue-dim); color: var(--text); }
.gomg-account-bar button:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.gomg-account-panel { position: absolute; top: calc(100% + 4px); left: 8px; width: min(420px, calc(100vw - 16px));
  max-height: min(600px, calc(100dvh - 170px)); overflow: auto; overscroll-behavior: contain;
  padding: 34px 0 4px; border: 1px solid var(--border-hover); border-radius: 10px; background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.gomg-account-panel.is-end { left: auto; right: 8px; }
.gomg-account-bar .gomg-account-close { position: absolute; top: 0; right: 0; width: 44px; height: 36px; font-size: 23px; }
.gomg-account-panel :is(.gsync, .gprof) { margin: 4px 10px 10px; }
.gomg-account-panel .oly-answer { display: block; padding: 0 14px 12px; border: 0; white-space: normal; }
.gomg-account-bar [hidden] { display: none !important; }
.gomg-account-actions > .gomg-account-mobile { display: none; }
/* a desktop row without the room: the pitch goes first (the panel says it all), then the long label */
@container gacct (max-width: 820px) { .gomg-account-pitch { display: none; } }
@container gacct (max-width: 520px) { .gomg-account-cta .gomg-l-long { display: none; } .gomg-account-cta .gomg-l-short { display: inline; } }
@media (max-width: 600px) {
  .gomg-account-bar { padding: 0 6px; gap: 6px; }
  .gomg-account-actions { gap: 5px; }
  .gomg-account-actions > :is(.gomg-account-cta, .gomg-account-status, .gomg-account-profile, .gomg-account-pitch) { display: none; }
  .gomg-account-actions > .gomg-account-mobile { display: inline-flex; }
  .gomg-account-actions > button { min-height: 44px; border-width: 6px 0; padding: 0 11px; }
  .gomg-account-panel { left: 4px; max-height: calc(100dvh - 150px); }
  .gomg-account-panel.is-end { right: 4px; }
}
/* a phone's pills by the row's own room: the long labels to 370 px of row, "Group" below it, "Save" below 345 */
@container gacct (max-width: 370px) {
  .gomg-account-group .gomg-l-long { display: none; }
  .gomg-account-group .gomg-l-short { display: inline; }
  .gomg-account-group > span:not([class]) { max-width: 6.5rem; }
}
@container gacct (max-width: 345px) {
  .gomg-account-mobile .gomg-l-long { display: none; }
  .gomg-account-mobile .gomg-l-short { display: inline; }
  .gomg-account-actions > button { padding: 0 9px; gap: 5px; }
  .gomg-account-group > span:not([class]) { max-width: 4.5rem; }
}

/* ── THE SPOILER CONTROL (map-spoiler.js; Jason 2026-11-21 19:02 "a nice feature to put in the bar, between the log in
   info, and the build info"). Only on a map that mounts it. A pill like Group map's, filled blue while something is hidden;
   its menu opens under it and stays inside the row. A phone keeps it as a pill ("Spoilers" / "Hidden" / "Up to…"); the
   app folds it into ⋮ More (map-fab.js), where its menu opens from the corner as the account's panel does ── */
.gomg-spoil { flex: 0 0 auto; display: flex; align-items: center; min-width: 0; }
.gomg-account-bar > .gomg-spoil { position: static; }
.gomg-spoil.in-rail { position: relative; margin-top: 4px; }
.gomg-spoil .gomg-spoil-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; max-width: 15rem;
  padding: 0 11px; border: 4px solid transparent; border-width: 4px 0; background-clip: padding-box; border-radius: 999px;
  white-space: nowrap; box-shadow: inset 0 0 0 1px var(--border-hover); background-color: transparent; color: var(--text);
  font: 600 12.5px/1.3 Manrope, sans-serif; cursor: pointer; }
.gomg-spoil-btn > span { overflow: hidden; text-overflow: ellipsis; }
.gomg-spoil-btn svg { flex: 0 0 auto; color: var(--text-muted); }
.gomg-spoil .gomg-spoil-btn:hover, .gomg-spoil .gomg-spoil-btn[aria-expanded="true"] { background-color: var(--blue-dim); }
.gomg-spoil .gomg-spoil-btn.is-on { background-color: var(--blue-dim); box-shadow: inset 0 0 0 1px var(--blue-border); }
.gomg-spoil-btn.is-on svg { color: var(--blue); }
.gomg-spoil .gomg-spoil-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.gomg-spoil-pop { position: absolute; top: calc(100% + 4px); left: 8px; z-index: 2; box-sizing: border-box; width: min(330px, calc(100vw - 8px));
  max-height: min(520px, calc(100dvh - 150px)); overflow: auto; overscroll-behavior: contain; padding: 10px 10px 8px;
  border: 1px solid var(--border-hover); border-radius: 10px; background: var(--bg-card-solid, var(--bg-card)); color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3); text-align: left; white-space: normal; }
.gomg-spoil-pop[hidden] { display: none; }
.gomg-spoil .gomg-spoil-x { position: absolute; top: 0; right: 0; width: 44px; height: 40px; padding: 0; border: 0; background: transparent;
  color: var(--text-muted); font: 400 23px/1 Manrope, sans-serif; cursor: pointer; }
.gomg-spoil-h { display: block; margin: 2px 40px 6px 6px; font: 800 13px/1.3 Manrope, sans-serif; letter-spacing: .02em; }
.gomg-spoil-opt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.gomg-spoil-opt:hover { background: var(--blue-dim); }
.gomg-spoil-opt > input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }
.gomg-spoil-opt > span { flex: 1 1 auto; min-width: 0; }
.gomg-spoil-opt b { display: block; font: 700 13px/1.3 Manrope, sans-serif; }
.gomg-spoil-opt small { display: block; margin-top: 1px; font: 500 12px/1.4 Manrope, sans-serif; color: var(--text-muted); }
.gomg-spoil-area { display: block; width: 100%; min-height: 36px; margin-top: 6px; padding: 0 6px; box-sizing: border-box;
  border: 1px solid var(--border-hover); border-radius: 6px; background: var(--bg-card); color: var(--text); font: 600 12.5px/1.3 Manrope, sans-serif; }
.gomg-spoil-foot { margin: 4px 6px 0; font: 500 11.5px/1.4 Manrope, sans-serif; color: var(--text-muted); }
/* the masked card (map-spoiler.js card()): the oly-card's own chrome, a "?" coin, Show this one in the accent */
.gomg-spoil-card .gomg-spoil-show svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
/* a find-box or list row made masked: its words in italics, so it reads as a cover, not a name */
.gomg-spoil-hit { font-style: italic; }
@container gacct (max-width: 520px) { .gomg-spoil .gomg-spoil-btn { max-width: 9rem; } }
@media (max-width: 600px) {
  .gomg-spoil .gomg-spoil-btn { min-height: 44px; border-width: 6px 0; }
  .gomg-spoil-pop { max-height: calc(100dvh - 150px); }
}
/* a phone's pills by the row's own room (the account's rules above): "Hidden" / "Up to…" below 400 px of row, the icon
   alone below 330 */
@container gacct (max-width: 400px) {
  .gomg-spoil-btn .gomg-l-long { display: none; }
  .gomg-spoil-btn .gomg-l-short { display: inline; }
}
@container gacct (max-width: 330px) {
  .gomg-spoil .gomg-spoil-btn { padding: 0 10px; }
  .gomg-spoil-btn .gomg-l-short { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* and wherever the orientation note after it cannot keep its 4rem beside the pill's word (measured: gomg-sync.js fitRow,
   2026-11-25; the note drew back over the pill at 390/360): the icon alone, its name still the tip and screen-reader label */
.gomg-account-bar.is-tight > .gomg-spoil > .gomg-spoil-btn { padding: 0 10px; }
.gomg-account-bar.is-tight > .gomg-spoil > .gomg-spoil-btn .gomg-l-long { display: none; }
.gomg-account-bar.is-tight > .gomg-spoil > .gomg-spoil-btn .gomg-l-short { display: inline; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* the app: the row folds into ⋮ More; the menu still opens, from the top right corner over the column */
html[data-app] .gomg-account-bar > .gomg-spoil { display: block; position: absolute; top: 0; right: 0; width: 0; height: 0; }
html[data-app] .gomg-account-bar > .gomg-spoil > .gomg-spoil-btn { display: none; }
html[data-app] .gomg-spoil-pop { top: 6px; right: 6px; left: auto; width: min(330px, calc(100vw - 12px)); max-height: calc(100dvh - 12px); }

/* ── a phone's drawer opens on its layers (phone-layers, 2026-11-18) ──
   From 999px down the rail is the drawer behind "☰ Layers", and on a 320 px phone it opened with no layer on its first
   screen (the map-rail harness, live: Moon Sweepers' layers began 677 px down a 680 px drawer, under Where am I, the find
   box and a 330 px save block; the Queen's Domain and Space Engineers rail heads ran 405 and 372 px of key points; the Rust
   seed map's began 1,200 px down, under a 632 px Base spots block, at every width). So in the drawer: the title, what
   leads the rail (its Where am I and the find box, or a seed map's world form), THE LAYERS, then the rest of the rail as
   it was, and a head's key points (a list, a facts card, a second line) last, all of them still there to scroll to. Order
   only: nothing is hidden or moved in the page, and the desktop rail (1000 px up) is as it was. The app hides those key
   points already (map-fab.css), so there the head stays whole. */
@media (max-width: 999px) {
  .gomg-rail > .gomg-find, .gomg-rail > .gomg-find ~ :has(.gomg-pop) { order: 1; }
  .gomg-rail > .gomg-find ~ :not(:has(.gomg-pop), .oly-rail-host, .oly-rail-foot) { order: 2; }
  /* no find box (the Rust seed map): the layers follow the rail's first block */
  .gomg-rail:not(:has(> .gomg-find)) > .oly-rail-head + *,
  .gomg-rail:not(:has(> .gomg-find)) > .oly-rail-head + * ~ :has(.gomg-pop) { order: 1; }
  .gomg-rail:not(:has(> .gomg-find)) > .oly-rail-head + * ~ :not(:has(.gomg-pop), .oly-rail-host, .oly-rail-foot) { order: 2; }
  /* the key points: the head keeps its title and first line, the rest goes to the foot of the drawer (display: contents
     makes the head's children the drawer's own, so the title and first line carry the head's look themselves) */
  html:not([data-app]) .gomg-rail > .oly-rail-head:not(.ark-topbar):has(> h1 ~ :is(ul, .hero-facts, p + p)) { display: contents; }
  html:not([data-app]) .gomg-rail > .oly-rail-head:not(.ark-topbar):has(> h1 ~ :is(ul, .hero-facts, p + p)) > :is(.gomg-showing, h1, h1 + p) {
    margin: 0; padding: 0 0.95rem; background: var(--bg-card); }
  html:not([data-app]) .gomg-rail > .oly-rail-head:not(.ark-topbar):has(> h1 ~ :is(ul, .hero-facts, p + p)) > :is(.gomg-showing, h1) { padding-top: 0.75rem; padding-bottom: 0.2rem; }
  html:not([data-app]) .gomg-rail > .oly-rail-head:not(.ark-topbar):has(> h1 ~ :is(ul, .hero-facts, p + p)) > :is(h1:not(:has(+ p)), h1 + p) {
    padding-bottom: 0.65rem; border-bottom: 1px solid var(--border); }
  html:not([data-app]) .gomg-rail > .oly-rail-head:not(.ark-topbar):has(> h1 ~ :is(ul, .hero-facts, p + p)) > h1 ~ :not(h1 + p) {
    order: 3; margin: 0.6rem 0.95rem 0.2rem; }
  .gomg-rail > :is(.oly-rail-host, .oly-rail-foot) { order: 4; }
}
/* the HUD's "N showing" line over the title under 480 px (map-fab.css, map-fab.js) leads the head there */
@media (max-width: 479px) {
  html:not([data-app]) .gomg-rail > .oly-rail-head:not(.ark-topbar):has(> h1 ~ :is(ul, .hero-facts, p + p)) > .gomg-showing:not([hidden]) + h1 { padding-top: 0; }
}
