/* The menu language (approved Menu-*.dc.html mockups): one dark-green glass
   surface over a blurred, darkened city; text navigation on the left, a list
   with a detail pane beside it; green only for what is selected or primary,
   red only for danger; big Bebas titles and negative space. Shared by the pause
   menu (pausemenu.js and the sections it hosts), the shop, the station
   machine, the main menu and the result screens.

   Everything inside a .gm-stage is laid out in the mockups' 1920x1080 px: the
   stage is zoomed by --mz (--ui / 1.2, uiscale.js), so a 1080p window shows it
   1:1, 720p at 0.83 and 4K at 2. */
.gm {
  --g: var(--ds-c-licht-groen); --g2: var(--ds-c-licht-groen); --gd: var(--ds-c-ink-bord); --ink: var(--ds-c-creme); --mut: color-mix(in srgb, var(--ds-c-creme) 68%, transparent);
  --line: color-mix(in srgb, var(--ds-c-creme) 8%, transparent); --line2: color-mix(in srgb, var(--ds-c-creme) 16%, transparent); --red: var(--ds-c-rood-glas); --redtx: var(--ds-c-rood-glas-tx);
  --mz: var(--mz-fit, calc(var(--ui, 1.2) / 1.2));
  /* #868: de menutekst wordt met --mz verkleind; deze vloer houdt kleine regels op
     12 schermpixels, net als --hud-min in de HUD. */
  --menu-min: calc(13px / var(--mz));
  --mt: 7.4%; --mb: 11.1%;
  font-family: var(--ds-font-tekst); font-size: 20px; line-height: 1.45; color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.gm-stage { position: absolute; left: 0; top: 0; width: calc(100vw / var(--mz)); height: calc(100vh / var(--mz)); zoom: var(--mz); }
.gm *, .gm *::before, .gm *::after { box-sizing: border-box; }
/* #889: menutekst is geen leesvoer. Slepen over een lijst selecteerde de regels en gaf
   een blauwe highlight over het menu heen; alleen een echt invoerveld (zoeken, een naam
   typen) houdt zijn selectie. Een code die je moet overschrijven zet `all` op zijn eigen
   regel (pausemenu.css, .coop-code), dus die blijft werken. */
.gm { -webkit-user-select: none; user-select: none; }
.gm :is(input, textarea, select, [contenteditable="true"]) { -webkit-user-select: text; user-select: text; }
:where(.gm) :is(h1, h2, h3, h4, p, dl, dd, ul, ol) { margin: 0; padding: 0; font-weight: normal; }
:where(.gm) li { list-style: none; }
:where(.gm) :is(button, input) { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; letter-spacing: inherit; }
:where(.gm) button:disabled { cursor: default; }
.gm :focus { outline: none; }
.gm :focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.gm .m-li:focus-visible, .gm .m-disc:focus-visible, .gm .m-tab:focus-visible, .gm .ra:focus-visible { outline-offset: -2px; }
.gm .mut, .gm .m-mut { color: var(--mut); }
/* Samen spelen (#636): één overlaycomponent voor wachten, wegvallen en overdragen */
.cp-overlay { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; background: color-mix(in srgb, var(--ds-c-ink-inkt) 55%, transparent); }
/* #1220: de kaart is een DS3-zeefdrukkaart (ds-z-kaart) met DS3-knoppen; hier alleen de maat en de plek van de knoppen */
.gm .cp-pane { box-sizing: border-box; width: min(640px, 92vw); max-height: 90vh; overflow-y: auto; gap: var(--ds-s-3); font-size: var(--ds-t-body); }
.gm .cp-title { margin: 0; }
.gm .cp-text { margin: 0; max-width: 56ch; }
.gm .cp-actions { display: flex; flex-wrap: wrap; gap: var(--ds-s-3); margin-top: var(--ds-s-2); }
/* #636: de "Meedoen?"-chip op de HUD-kaart, dezelfde tokens als de overlay */
.cp-meedoen { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 7000; max-width: min(560px, 92vw);
  padding: 8px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ds-c-inkt) 88%, transparent); color: var(--hud-fg, #f0ede4);
  font: 600 14px/1.35 var(--ds-font-tekst); text-align: center; pointer-events: none;
  box-shadow: var(--hud-card-ring, 0 0 0 1px rgba(240, 237, 228, 0.2)); }
.cp-fade { position: fixed; inset: 0; z-index: 8000; background: color-mix(in srgb, var(--ds-c-ink-inkt) 92%, transparent); opacity: 0; pointer-events: none; transition: opacity 0.35s; } /* ds3-film: scene */
.gm .bebas, .gm .m-bebas { font-family: var(--ds-font-kop); letter-spacing: 0.04em; font-weight: normal; }
.gm .m-eb { font-family: var(--ds-font-kop); font-size: 20px; letter-spacing: 0.18em; color: var(--mut); text-transform: uppercase; }
.gm .m-h1 { font-family: var(--ds-font-kop); font-size: 80px; line-height: 0.9; letter-spacing: 0.02em; }
.gm .m-h2 { font-family: var(--ds-font-kop); font-size: 64px; line-height: 0.92; letter-spacing: 0.02em; }
.gm .m-num { font-family: var(--ds-font-kop); font-size: 44px; line-height: 1; letter-spacing: 0.03em; }

/* the surface */
.m-panel { position: absolute; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ds-c-glas-2) 80%, transparent), color-mix(in srgb, var(--ds-c-glas) 88%, transparent)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ds-c-creme) 7%, transparent), 0 32px 64px color-mix(in srgb, var(--ds-c-ink-inkt) 22%, transparent);
  animation: m-panel-in var(--ds-m-max) cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.m-head { flex: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding: 56px 64px 0; }
.m-head > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.m-head .m-hr { align-items: flex-end; text-align: right; gap: 4px; padding-bottom: 6px; flex: none; }
.m-tabs { flex: none; display: flex; align-items: center; gap: 40px; margin: 32px 64px 0; box-shadow: inset 0 -1px 0 var(--line); }
.m-tabs [role="tablist"], .m-tablist { display: flex; flex-wrap: wrap; gap: 0 40px; }
.m-tab { position: relative; white-space: nowrap; height: 56px; display: inline-flex; align-items: center; font-family: var(--ds-font-kop); font-size: 26px; letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--ds-c-creme) 66%, transparent); transition: color 0.2s, box-shadow 0.2s; }
.m-tab:hover { color: var(--ink); }
.m-tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--g); }
.m-tab small { margin-left: 8px; font-family: var(--ds-font-tekst); font-size: 18px; letter-spacing: 0; color: color-mix(in srgb, var(--ds-c-creme) 66%, transparent); }
.m-tab small:empty { display: none; }
.m-tab[data-new]::after { content: ''; width: 8px; height: 8px; margin: -14px 0 0 6px; border-radius: 50%; background: var(--g); }
.m-main { flex: 1; min-height: 0; display: flex; padding: 32px 64px 48px; }
.m-list { display: flex; flex-direction: column; margin-left: -24px; padding-right: 64px; flex: none; width: 600px; box-sizing: content-box; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; min-height: 0; }
.m-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-left: 64px; box-shadow: inset 1px 0 0 color-mix(in srgb, var(--ds-c-creme) 8%, transparent); overflow-y: auto; scrollbar-width: none; min-height: 0; }
.m-pane > * { animation: m-up var(--ds-m-max) cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.m-pane p { color: color-mix(in srgb, var(--ds-c-creme) 88%, transparent); max-width: 640px; }
.m-pane p.mut { color: var(--mut); }
.m-grow { flex: 1; }

/* list rows */
.m-li { position: relative; display: flex; align-items: center; gap: 24px; width: 100%; min-height: 56px; padding: 0 24px; border-radius: 8px; flex: none; transition: background 0.2s, box-shadow 0.2s; }
/* Alleen rijen die echt iets doen lichten op: een gewone div-rij (dode tekst) hoort niet te
   lijken op een knop. label.m-li is de schakelaar, button.m-li een actie. */
button.m-li:hover, label.m-li:hover { background: color-mix(in srgb, var(--ds-c-creme) 4%, transparent); }
.m-li.sel, .m-li[aria-current="true"], .m-li:focus-within { background: color-mix(in srgb, var(--ds-c-licht-groen) 12%, transparent); box-shadow: inset 4px 0 0 var(--g); }
.m-li:focus-visible { outline: 2px solid var(--ink); }
.m-li .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; padding: 8px 0; }
.m-li .nm > .mut { font-size: 18px; }
.m-li .nm.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.m-li .v { white-space: nowrap; font-family: var(--ds-font-kop); font-size: 24px; letter-spacing: 0.04em; }
.m-li .t { white-space: nowrap; font-size: 18px; color: var(--mut); }
.m-li.off { color: color-mix(in srgb, var(--ds-c-creme) 66%, transparent); }
.m-li svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-li .av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ds-font-kop); font-size: 24px; color: var(--g); background: color-mix(in srgb, var(--ds-c-licht-groen) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-c-licht-groen) 30%, transparent); padding-top: 2px; }
.m-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 24px 24px 8px; font-family: var(--ds-font-kop); font-size: 20px; letter-spacing: 0.18em; color: color-mix(in srgb, var(--ds-c-creme) 68%, transparent); text-transform: uppercase; flex: none; }
.m-gh:first-child { padding-top: 0; }
.m-gh span:last-child:not(:first-child) { letter-spacing: 0.04em; text-transform: none; font-family: var(--ds-font-tekst); font-size: 18px; }
.m-note { padding: 16px 24px; font-size: 18px; color: var(--mut); }
.m-rule { height: 1px; margin: 8px 24px; background: var(--line); flex: none; }
.m-disc { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; padding: 0 24px; border-radius: 8px; color: color-mix(in srgb, var(--ds-c-creme) 85%, transparent); transition: background 0.2s; flex: none; }
.m-disc:hover { background: color-mix(in srgb, var(--ds-c-creme) 4%, transparent); }
.m-disc > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.m-disc[aria-expanded="true"] > svg { transform: rotate(90deg); }
.m-disc b { font-family: var(--ds-font-kop); font-weight: normal; font-size: 24px; letter-spacing: 0.05em; color: var(--ink); }
.m-disc > .mut { font-size: 18px; flex: 1; min-width: 0; }
.m-disc > .m-bar { flex: 1; max-width: 200px; margin-left: auto; }
.m-fold { display: flex; flex-direction: column; flex: none; }
.m-fold[hidden] { display: none; }

/* buttons: one primary, ghost, quiet text */
.m-bp, .m-bg, .m-bt { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--ds-font-kop); text-align: center; flex: none; }
.m-bp { height: 56px; padding: 0 32px; border-radius: 8px; background: var(--g); color: var(--ds-c-glas); font-size: 26px; letter-spacing: 0.06em; transition: background 0.2s; }
.m-bp:hover:not(:disabled) { background: var(--ds-c-licht-groen); }
.m-bp:disabled { background: color-mix(in srgb, var(--ds-c-creme) 14%, transparent); color: color-mix(in srgb, var(--ds-c-creme) 50%, transparent); }
.m-bp svg, .m-bg svg, .m-bt svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-bg { height: 56px; padding: 0 24px; border-radius: 8px; color: var(--ink); font-size: 24px; letter-spacing: 0.06em; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-c-creme) 24%, transparent); transition: background 0.2s; }
.m-bg:hover:not(:disabled) { background: color-mix(in srgb, var(--ds-c-creme) 6%, transparent); }
.m-bg:disabled { opacity: 0.45; }
.m-bt { height: 40px; gap: 8px; font-size: 22px; letter-spacing: 0.06em; color: color-mix(in srgb, var(--ds-c-creme) 72%, transparent); transition: color 0.2s; }
.m-bt:hover:not(:disabled) { color: var(--ink); }
.m-bt:disabled { opacity: 0.4; }
.m-bt.danger, .m-danger { color: var(--redtx); }
.m-bt.danger:hover { color: var(--ds-c-rood-glas-tx); }
.m-bp.danger { background: var(--red); color: var(--ds-c-wit); }
.m-bp.danger:hover { background: var(--ds-c-rood-glas); }
.m-bp, .m-bg { text-align: center; }
.m-acts { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* keycaps and the footer hints */
.m-kc { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 6px; background: var(--ds-c-toets-vlak); box-shadow: 0 2px 0 var(--ds-c-toets-rand); color: var(--ds-c-glas);
  font-family: var(--ds-font-kop); font-size: 19px; letter-spacing: 0.04em; line-height: 1; flex: none; padding-top: 2px; }
.m-kc svg { width: 1.15em; height: 1.15em; }
.m-kc.dark { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ds-c-glas) 50%, transparent); color: var(--ds-c-glas); }
.m-foot { position: absolute; right: 80px; bottom: 3.7%; height: 32px; display: flex; align-items: center; gap: 32px; }
.m-hint { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; color: color-mix(in srgb, var(--ds-c-creme) 75%, transparent); white-space: nowrap; text-shadow: 0 1px 6px color-mix(in srgb, var(--ds-c-ink-inkt) 60%, transparent); }
.m-hint:hover { color: var(--ink); }
.m-hint .pm-pad-g svg { width: 30px; height: 30px; }
.m-kgap { width: 0; }

/* controls: switch, slider, picker, search, bar, medal, fact */
.m-sw { position: relative; width: 56px; height: 32px; border-radius: 16px; background: color-mix(in srgb, var(--ds-c-creme) 18%, transparent); flex: none; transition: background 0.2s; appearance: none; -webkit-appearance: none; cursor: pointer; margin: 0; border: 0; }
.m-sw::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); transition: left 0.2s, background 0.2s; }
.m-sw:checked, .m-sw[aria-checked="true"] { background: var(--g); }
.m-sw:checked::after, .m-sw[aria-checked="true"]::after { left: 28px; background: var(--ds-c-glas); }
.m-sw:disabled { opacity: 0.45; cursor: default; }
.m-sl { position: relative; width: 280px; height: 28px; flex: none; appearance: none; -webkit-appearance: none; background: transparent; margin: 0; cursor: pointer; --fill: 50%; }
.m-sl::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--ds-c-creme) 85%, transparent) var(--fill), color-mix(in srgb, var(--ds-c-creme) 18%, transparent) var(--fill)); }
.m-sl::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 1px 4px color-mix(in srgb, var(--ds-c-ink-inkt) 50%, transparent); }
.m-li.sel .m-sl::-webkit-slider-runnable-track, .m-li:focus-within .m-sl::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--g) var(--fill), color-mix(in srgb, var(--ds-c-creme) 18%, transparent) var(--fill)); }
.m-sl:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 14px; }
.m-sl:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--g), 0 1px 4px color-mix(in srgb, var(--ds-c-ink-inkt) 50%, transparent); }
.m-pk { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.m-pk button { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--ds-c-creme) 72%, transparent); }
.m-pk button:hover:not(:disabled) { background: color-mix(in srgb, var(--ds-c-creme) 6%, transparent); color: var(--ink); }
.m-pk button:disabled { opacity: 0.3; }
.m-pk button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-pk output { min-width: 168px; text-align: center; font-family: var(--ds-font-kop); font-size: 24px; letter-spacing: 0.04em; }
.m-val { font-family: var(--ds-font-kop); font-size: 24px; letter-spacing: 0.04em; width: 64px; text-align: right; flex: none; }
.m-inp { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 20px; border-radius: 28px; background: color-mix(in srgb, var(--ds-c-glas) 60%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-c-creme) 16%, transparent); }
.m-inp svg { width: 22px; height: 22px; flex: none; color: var(--mut); fill: none; stroke: var(--mut); stroke-width: 2; stroke-linecap: round; }
.m-inp input { flex: 1; min-width: 0; height: 100%; font-size: 20px; outline: none; cursor: text; }
.m-inp input::placeholder { color: color-mix(in srgb, var(--ds-c-creme) 62%, transparent); }
.m-inp:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.m-bar { display: block; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ds-c-creme) 14%, transparent); overflow: hidden; flex: none; }
.m-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: color-mix(in srgb, var(--ds-c-creme) 85%, transparent); transition: width var(--ds-m-lang) var(--ds-m-uit); }
.m-bar.on i, .m-li.sel .m-bar i, .m-li[aria-current="true"] .m-bar i { background: var(--g); }
.m-medal { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.m-medal.m1 { background: var(--ds-c-amber); } .m-medal.m2 { background: var(--ds-c-creme-zacht); } .m-medal.m3 { background: var(--ds-c-ink-geel); }
.m-medal.m0 { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ds-c-creme) 40%, transparent); }
.m-medal.lg { width: 24px; height: 24px; }
.m-fact { display: flex; flex-direction: column; gap: 4px; }
.m-fact > span:first-child { font-size: 18px; color: var(--mut); }
.m-facts { display: flex; flex-wrap: wrap; gap: 24px 64px; padding: 8px 0; }
.m-row2 { display: flex; align-items: center; gap: 32px; font-size: 18px; flex-wrap: wrap; }
.m-row2 > span { display: inline-flex; align-items: center; gap: 8px; }
.m-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 14px; font-size: 18px; box-shadow: inset 0 0 0 1px var(--line2); color: var(--mut); white-space: nowrap; }
.m-pill.g { box-shadow: inset 0 0 0 1px var(--g); color: var(--g); }

.gm .one { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* #869: de actie-uitleg van Besturing is echte tekst, geen label: laat hem
   omslaan zodat de speler de hele regel leest (het lange stuk staat ernaast). */
#pause-menu .pm-cdesc .one, #pause-menu .pm-cgrid .one, #pause-menu .pm-bind .one { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
.m-li .t.g, .gm .g { color: var(--g); }
.m-note b { font-weight: normal; color: var(--ink); }
.m-ghbtn { width: 100%; text-align: left; cursor: pointer; padding-top: 32px; transition: color 0.2s; }
.m-ghbtn:hover { color: var(--ink); }
.m-ghbtn .cur { color: var(--ink); }
.m-more { display: block; width: 100%; padding: 12px 24px 16px; font-size: 18px; text-align: left; color: var(--mut); border-radius: 8px; flex: none; }
.m-more:hover { color: var(--ink); }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 16px 24px; flex: none; }
.m-chip { height: 40px; padding: 0 16px; border-radius: 20px; font-size: 18px; color: color-mix(in srgb, var(--ds-c-creme) 72%, transparent); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.m-chip:hover { color: var(--ink); }
.m-chip[aria-checked="true"] { background: color-mix(in srgb, var(--ds-c-creme) 12%, transparent); color: var(--ink); }
.m-chip span { opacity: 0.75; margin-left: 4px; }
.m-chip:focus-visible { outline-offset: 0; }

@keyframes m-panel-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes m-rail-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes m-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
.m-up { animation: m-up var(--ds-m-max) cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.m-d1 { animation-delay: 0.08s; } .m-d2 { animation-delay: 0.16s; } .m-d3 { animation-delay: 0.24s; } .m-d4 { animation-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .gm, .gm *, .gm *::before, .gm *::after { animation: none !important; transition: none !important; } }
html.reduce-motion .gm, html.reduce-motion .gm *, html.reduce-motion .gm *::before, html.reduce-motion .gm *::after { animation: none !important; transition: none !important; }

/* short windows (720p and Steam Deck): the same layout, tighter */
@media (max-height: 820px) {
  .gm { --mt: 5%; --mb: 10%; }
  .m-head { padding: 36px 56px 0; } .m-h1 { font-size: 64px; } .m-h2 { font-size: 52px; }
  .m-tabs { margin: 20px 56px 0; } .m-tab { height: 48px; }
  .m-main { padding: 24px 56px 32px; }
  .m-pane { padding-left: 48px; gap: 18px; } .m-list { padding-right: 48px; }
  .m-li { min-height: 48px; } .m-bp, .m-bg { height: 48px; }
}
.gm .m-tab:focus-visible { outline-offset: 8px; border-radius: 2px; }
.m-pane > .m-acts.td-acts { position: sticky; bottom: 0; padding-top: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--ds-c-glas) 0%, transparent), color-mix(in srgb, var(--ds-c-glas) 97%, transparent) 14px); }
@media (max-height: 820px) { .m-tablist { gap: 0 28px; } .m-tab { font-size: 24px; } }

/* Fotomodus (#199, fotomodusui.js) */
#foto-ui { position: fixed; inset: 0; z-index: 60; pointer-events: none; font-family: inherit; color: var(--ds-c-wit); }
#foto-ui .foto-dof { position: absolute; inset: 0; pointer-events: none; backdrop-filter: blur(var(--foto-dof, 0px)); -webkit-backdrop-filter: blur(var(--foto-dof, 0px)); -webkit-mask-image: radial-gradient(ellipse at center, transparent 35%, #000 100%); mask-image: radial-gradient(ellipse at center, transparent 35%, #000 100%); }
#foto-ui .foto-dof[hidden] { display: none; }
#foto-ui .foto-grid { position: absolute; inset: 0; background:
  linear-gradient(to right, transparent 33.2%, color-mix(in srgb, var(--ds-c-wit) 45%, transparent) 33.3%, transparent 33.5%, transparent 66.5%, color-mix(in srgb, var(--ds-c-wit) 45%, transparent) 66.6%, transparent 66.8%),
  linear-gradient(to bottom, transparent 33.2%, color-mix(in srgb, var(--ds-c-wit) 45%, transparent) 33.3%, transparent 33.5%, transparent 66.5%, color-mix(in srgb, var(--ds-c-wit) 45%, transparent) 66.6%, transparent 66.8%); }
#foto-ui .foto-bar { position: absolute; left: 50%; bottom: calc(16px * var(--ui, 1)); transform: translateX(-50%); display: grid; grid-template-columns: 1fr auto; column-gap: 20px; row-gap: 6px; align-items: center; width: min(94vw, calc(1060px * var(--ui, 1))); box-sizing: border-box; padding: 10px 16px; border-radius: 14px; background: color-mix(in srgb, var(--ds-c-inkt) 80%, transparent); pointer-events: auto; font-size: calc(14px * var(--ui, 1)); }
#foto-ui .foto-info { grid-column: 1; opacity: .9; font-weight: 700; letter-spacing: .02em; }
#foto-ui .foto-row { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
#foto-ui .foto-row-move { opacity: .8; }
#foto-ui .foto-lbl { min-width: 4.4em; font-size: max(13px, .78em); text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
#foto-ui .foto-key { white-space: nowrap; }
#foto-ui .foto-acts { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 8px; }
#foto-ui .foto-acts kbd { margin-left: 6px; font-size: max(13px, .8em); background: color-mix(in srgb, var(--ds-c-inkt) 14%, transparent); box-shadow: none; }
#foto-ui .foto-go { background: var(--ds-c-licht-groen); }
@media (max-width: 760px) { #foto-ui .foto-bar { grid-template-columns: 1fr; } #foto-ui .foto-acts { grid-column: 1; grid-row: auto; flex-direction: row; } #foto-ui .foto-acts .foto-btn { flex: 1; } #foto-ui .foto-lbl { display: none; } }
#foto-ui .foto-look { position: absolute; inset: 0; pointer-events: auto; touch-action: none; }
#foto-ui .foto-pad { position: absolute; left: 50%; bottom: calc(190px * var(--ui, 1)); transform: translateX(-50%); display: none; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 94vw; }
#foto-ui .foto-mv { background: color-mix(in srgb, var(--ds-c-wit) 88%, transparent); touch-action: none; user-select: none; }
@media (pointer: coarse) { #foto-ui .foto-pad { display: flex; } }
#foto-ui .foto-info { opacity: .85; margin-right: 6px; }
#foto-ui kbd { display: inline-block; min-width: 1.6em; padding: 2px 7px; border-radius: 6px; background: var(--ds-c-wit); color: var(--ds-c-inkt); font: inherit; font-weight: 700; text-align: center; box-shadow: 0 2px 0 color-mix(in srgb, var(--ds-c-ink-inkt) 35%, transparent); }
#foto-ui .foto-btn { pointer-events: auto; border: 0; border-radius: 10px; padding: 8px 14px; min-height: 44px; font: inherit; font-weight: 700; background: var(--ds-c-wit); color: var(--ds-c-inkt); cursor: pointer; }
#foto-ui .foto-note { position: absolute; top: calc(18px * var(--ui, 1)); left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ds-c-inkt) 72%, transparent); font-size: calc(15px * var(--ui, 1)); }
#foto-ui .foto-note:empty { display: none; }
.foto-panel { padding: 24px 40px 32px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.foto-panel .foto-lead { margin: 0; max-width: 62ch; line-height: 1.5; color: color-mix(in srgb, var(--ds-c-creme) 85%, transparent); }
.foto-panel h3 { margin: 12px 0 0; font-family: var(--ds-font-kop); font-size: 30px; letter-spacing: 0.05em; font-weight: 400; }
.foto-gal { align-self: stretch; }
.foto-gal .m-bg { height: 36px; font-size: 18px; padding: 0 16px; margin-top: 6px; }
.foto-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.foto-gal figure { margin: 0; }
.foto-gal img, .foto-leeg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: color-mix(in srgb, var(--ds-c-creme-zacht) 20%, transparent); display: grid; place-items: center; }
.foto-gal figcaption { font-size: .85em; margin-top: 4px; }

#windwijzer { position: fixed; right: calc(20px * var(--ui, 1)); bottom: calc(150px * var(--ui, 1)); z-index: 40; display: grid; grid-template-columns: auto auto; gap: 4px 10px; align-items: center; padding: 8px 12px; border-radius: 14px; background: color-mix(in srgb, var(--ds-c-inkt) 72%, transparent); color: var(--ds-c-wit); font-size: calc(14px * var(--ui, 1)); pointer-events: none; }
#windwijzer[hidden] { display: none; }
#windwijzer svg { width: calc(44px * var(--ui, 1)); height: calc(44px * var(--ui, 1)); grid-row: span 2; }
#windwijzer .ww-ring { fill: none; stroke: color-mix(in srgb, var(--ds-c-wit) 50%, transparent); stroke-width: 1.5; }
#windwijzer .ww-pijl { fill: var(--ds-c-wit); transform-origin: 0 0; }
#windwijzer .ww-trim { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ds-c-wit) 25%, transparent); overflow: hidden; }
#windwijzer .ww-trim i { display: block; height: 100%; background: var(--ds-c-wit); }
#windwijzer .ww-keys { grid-column: 1 / -1; font-size: .85em; opacity: .9; }
#windwijzer .hud-key { border-radius: 5px; background: var(--ds-c-ink-papier); color: var(--ds-c-ink-inkt); font-weight: 700; text-align: center; }

/* a phone held sideways (360-460 px tall, #227): the same layout, much tighter */
@media (max-height: 460px) {
  .gm { --mt: 3%; --mb: 4%; }
  .m-head { padding: 12px 28px 0; } .gm .m-h1, .m-h1 { font-size: 38px; } .m-h2 { font-size: 30px; }
  .m-tabs { margin: 8px 28px 0; } .m-tab { height: 34px; font-size: 18px; }
  .m-tablist { gap: 0 18px; }
  .m-main { padding: 10px 28px 14px; }
  .m-pane { padding-left: 20px; gap: 10px; } .m-list { padding-right: 20px; }
  .m-li { min-height: 44px; } .m-bp, .m-bg { height: 44px; }
}
