/* The game’s UI (from the 25 Nov options): 02 Stamped steel, with the start screen, the menu, the controls card, the mouse and scroll prompts,
   the phone stick and the crosshair from 03 in white and red. The E / Click prompt keeps its plain look (landing.css). ?ui=old turns it off.

   Steel: The TV set's control box, everywhere: bolted steel plates with stamped legends,
   dark displays in steel bezels, inset key-caps that go down when pressed, small lamps. */
html[data-ui="game"] { --u-st: #8d897f; --u-hi: #b9b4a6; --u-lo: #5c5950; --u-dk: #1b1a18; --u-ink: #141414; --u-pale: #d8d4c6;
  --u-bolt: linear-gradient(#1b1a18, #1b1a18) 4px 4px / 3px 3px no-repeat, linear-gradient(#1b1a18, #1b1a18) calc(100% - 4px) 4px / 3px 3px no-repeat, linear-gradient(#1b1a18, #1b1a18) 4px calc(100% - 5px) / 3px 3px no-repeat, linear-gradient(#1b1a18, #1b1a18) calc(100% - 4px) calc(100% - 5px) / 3px 3px no-repeat;
  --u-plate: inset 0 2px 0 #b9b4a6, inset 0 -3px 0 #5c5950, inset 2px 0 0 #a19d93, inset -2px 0 0 #6f6c64, 0 0 0 1px #141414;
  --u-bezel: 0 0 0 1px #000, 0 0 0 6px #8d897f, 0 -2px 0 6px #b9b4a6, 0 3px 0 6px #5c5950, 0 1px 0 7px #141414;
  --u-cap: inset 0 -3px 0 #000, inset 0 1px 0 #44423d; --u-capp: inset 0 -4px 0 #9a968e, inset 0 1px 0 #f3f0e6; }

/* keys: a dark cap in a steel bezel */
html[data-ui="game"] .uk, html[data-ui="game"] .rm-back { background: var(--u-dk); color: #e3e1db; outline: 0; padding-bottom: 3px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; box-shadow: var(--u-cap), var(--u-bezel); }
html[data-ui="game"] .rm-back:not(.uk) { padding: 9px 12px 12px; }
html[data-ui="game"] .uk::after { display: none; }
html[data-ui="game"] .uk:hover, html[data-ui="game"] .uk:focus-visible, html[data-ui="game"] .rm-back:hover, html[data-ui="game"] .rm-back:focus-visible { background: #33312d; color: #e3e1db; }
html[data-ui="game"] .uk:active, html[data-ui="game"] .rm-back:active { transform: none; padding-top: 2px; padding-bottom: 0; box-shadow: inset 0 -1px 0 #000, var(--u-bezel); }
html[data-ui="game"] .rm-menu { box-sizing: border-box !important; height: 40px !important; line-height: 37px !important; padding: 0 14px 3px !important; background: var(--u-dk) !important; color: #e3e1db !important; font-size: 13px !important; letter-spacing: .04em !important; text-transform: uppercase !important; box-shadow: var(--u-cap), var(--u-bezel) !important; }
html[data-ui="game"] .rm-menu:active { line-height: 41px !important; box-shadow: inset 0 -1px 0 #000, var(--u-bezel) !important; }


/* achievement: a small display in a bezel */
html[data-ui="game"] .tst-card { outline: 0; box-shadow: var(--u-bezel); }
html[data-ui="game"] .tst-card::after { left: -5px; top: -5px; right: -5px; bottom: -5px; z-index: 1; -webkit-mask: none; mask: none; background: linear-gradient(#1b1a18, #1b1a18) 0 0 / 3px 3px no-repeat, linear-gradient(#1b1a18, #1b1a18) 100% 0 / 3px 3px no-repeat, linear-gradient(#1b1a18, #1b1a18) 0 100% / 3px 3px no-repeat, linear-gradient(#1b1a18, #1b1a18) 100% 100% / 3px 3px no-repeat; }
html[data-ui="game"] .tst-k { color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
html[data-ui="game"] .tst-ic { box-shadow: 0 0 0 4px #0d0d0c, 0 -1px 0 5px #000, 0 0 0 5px #44423d; }
html[data-ui="game"] .tst-card { column-gap: 18px; padding-left: 16px; }

/* windows: displays in bezels; the bar is a plate with a ribbed grip */
html[data-ui="game"] .ct-win, html[data-ui="game"] .iw, html[data-ui="game"] .xp-win { outline: 0; box-shadow: var(--u-bezel); }
html[data-ui="game"] .ct-win::after, html[data-ui="game"] .xp-win::after { left: -5px; top: -5px; right: -5px; bottom: -5px; z-index: 4; clip-path: none; -webkit-mask: none; mask: none; background: linear-gradient(#1b1a18, #1b1a18) 0 0 / 3px 3px no-repeat, linear-gradient(#1b1a18, #1b1a18) 100% 0 / 3px 3px no-repeat, linear-gradient(#1b1a18, #1b1a18) 0 100% / 3px 3px no-repeat, linear-gradient(#1b1a18, #1b1a18) 100% 100% / 3px 3px no-repeat; }
html[data-ui="game"] .ct-bar, html[data-ui="game"] .iw .ct-bar { height: 32px; background: var(--u-st); border-bottom: 1px solid #141414; box-shadow: inset 0 2px 0 var(--u-hi), inset 0 -2px 0 var(--u-lo); }
html[data-ui="game"] .ct-bar::before { left: 34px; right: 8px; top: 9px; bottom: 9px; -webkit-mask: none; mask: none; background: repeating-linear-gradient(#5c5950 0 1px, #b9b4a6 1px 2px, transparent 2px 4px); }
html[data-ui="game"] .ct-title { background: var(--u-st); color: var(--u-ink); padding: 0 10px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
html[data-ui="game"] .ct-close { width: 14px; height: 14px; background: var(--u-dk); outline: 0; box-shadow: var(--u-cap), 0 0 0 4px var(--u-st); }
html[data-ui="game"] .ct-close i { inset: 3px 3px 4px; }
html[data-ui="game"] .ct-close:active { box-shadow: inset 0 -1px 0 #000, 0 0 0 4px var(--u-st); }
html[data-ui="game"] .ct-l, html[data-ui="game"] .ct-foot, html[data-ui="game"] .iw-tag { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
html[data-ui="game"] .ct-f { outline: 0; background: #0d0d0c; box-shadow: inset 0 3px 0 #000, 0 0 0 1px #44423d; }
html[data-ui="game"] .ct-f > span { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 4px; border: 0; background: var(--u-st); color: var(--u-ink); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; box-shadow: inset 0 1px 0 var(--u-hi), inset 0 -2px 0 var(--u-lo); }
html[data-ui="game"] .ct-f > span::after { content: ""; width: 6px; height: 6px; background: #1b1a18; }
html[data-ui="game"] .ct-f:focus-within > span { color: var(--u-ink); }
html[data-ui="game"] .ct-f:focus-within > span::after { background: #dc3418; animation: ts-blink 1.06s steps(1, end) infinite; }
html[data-ui="game"] .ct-in { padding-top: 2px; }
html[data-ui="game"] .ct-sub, html[data-ui="game"] .xp-keys button:last-child { height: 36px; padding: 0 10px 4px; background: var(--u-pale); color: var(--u-ink); outline: 0; box-shadow: var(--u-capp), 0 0 0 1px #000; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
html[data-ui="game"] .ct-sub:hover, html[data-ui="game"] .ct-sub:focus-visible, html[data-ui="game"] .xp-keys button:last-child:hover, html[data-ui="game"] .xp-keys button:last-child:focus-visible { background: #f3f0e6; color: var(--u-ink); outline: 0; }
html[data-ui="game"] .ct-sub:active, html[data-ui="game"] .xp-keys button:last-child:active { padding: 3px 10px 0; box-shadow: inset 0 -1px 0 #9a968e, 0 0 0 1px #000; }
html[data-ui="game"] .ct-leave, html[data-ui="game"] .xp-keys button:first-child { height: 36px; padding: 0 10px 3px; background: var(--u-dk); color: #e3e1db; outline: 0; box-shadow: var(--u-cap), 0 0 0 1px #000, 0 0 0 2px #44423d; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
html[data-ui="game"] .ct-leave:hover, html[data-ui="game"] .ct-leave:focus-visible, html[data-ui="game"] .xp-keys button:first-child:hover, html[data-ui="game"] .xp-keys button:first-child:focus-visible { background: #33312d; color: #e3e1db; }
html[data-ui="game"] .ct-leave:active, html[data-ui="game"] .xp-keys button:first-child:active { padding: 2px 10px 0; box-shadow: inset 0 -1px 0 #000, 0 0 0 1px #000, 0 0 0 2px #44423d; }
html[data-ui="game"] .iw-view { border-right-color: #44423d; box-shadow: inset 0 3px 0 #000; }
html[data-ui="game"] .iw .ct-foot { border-top-color: #44423d; }
@media (max-width: 860px) { html[data-ui="game"] .iw-view { border-bottom-color: #44423d; } }
@media (prefers-reduced-motion: reduce) { html[data-ui="game"] .ct-f:focus-within > span::after { animation: none; } }

/* the menu's footer */
html[data-ui="game"] .ts-hint kbd { display: inline-block; min-width: 9px; padding: 2px 5px 4px; margin-right: 8px; text-align: center; opacity: 1; background: var(--u-dk); color: #e3e1db; box-shadow: var(--u-cap), 0 0 0 1px var(--u-lo); }
html[data-ui="game"] .ts-hint kbd + kbd { margin-left: -4px; }
html[data-ui="game"] .ts-foot { text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
@media (max-width: 860px) { html[data-ui="game"] .ts-foot { font-size: 11px; letter-spacing: 0; text-transform: none; } }


/* ---- from 03, in white: "> text" lines with a red block cursor, the menu's pick in inverse video, the stick, the crosshair ---- */
html[data-ui="game"] { --t-fg: #e3e1db; --t-dim: #8d8b84; --t-sh: #44423d; --t-bg: #141414; }
html[data-ui="game"] .rm-ask, html[data-ui="game"] .rm-say { background: var(--t-bg); color: var(--t-fg); outline: 1px solid var(--t-fg); box-shadow: 4px 4px 0 var(--t-sh); text-transform: uppercase; letter-spacing: .04em; }
html[data-ui="game"] .rm-ask { padding: 6px 12px; font-size: 13px; }
html[data-ui="game"] .rm-ask::before, html[data-ui="game"] .rm-say::before { content: ">"; margin-right: 8px; color: var(--t-dim); }
html[data-ui="game"] .rm-ask::after, html[data-ui="game"] .rm-say::after { content: ""; display: inline-block; width: .55em; height: 1em; margin-left: 6px; vertical-align: -.16em; background: #dc3418; animation: ts-blink 1.06s steps(1, end) infinite; }
html[data-ui="game"] .rm-say { padding: 9px 18px; font-size: 20px; animation: none; }
html[data-ui="game"] .rm-stick { color: var(--t-fg); opacity: .7; background: radial-gradient(currentColor 22%, transparent 24%) 0 0 / 6px 6px, #14141499; }
html[data-ui="game"] .rm-stick i { background: var(--t-fg); outline: 1px solid var(--t-bg); }
html[data-ui="game"] .rm-x { background: var(--t-fg); outline: 1px solid #141414; }
html[data-ui="game"] .rm-x::before { background: linear-gradient(#e3e1db, #e3e1db) 0 0 / 8px 2px, linear-gradient(#e3e1db, #e3e1db) 0 0 / 2px 8px, linear-gradient(#e3e1db, #e3e1db) 100% 0 / 8px 2px, linear-gradient(#e3e1db, #e3e1db) 100% 0 / 2px 8px, linear-gradient(#e3e1db, #e3e1db) 0 100% / 8px 2px, linear-gradient(#e3e1db, #e3e1db) 0 100% / 2px 8px, linear-gradient(#e3e1db, #e3e1db) 100% 100% / 8px 2px, linear-gradient(#e3e1db, #e3e1db) 100% 100% / 2px 8px; background-repeat: no-repeat; filter: drop-shadow(1px 1px 0 #141414); }
html[data-ui="game"] .rm-x.on { background: #dc3418; }
html[data-ui="game"] .ts-start, html[data-ui="game"] .ts-mi { text-transform: uppercase; letter-spacing: .02em; }
html[data-ui="game"] .ts-start { font-size: 22px; }
html[data-ui="game"] .ts-mi { font-size: 22px; }
html[data-ui="game"] .ts-mi.on .ts-t { padding: 0 8px; margin: 0 -8px; background: var(--t-fg); color: var(--t-bg); }
html[data-ui="game"] .ts-mi .ts-note { margin-left: 6px; text-transform: none; }
html[data-ui="game"] .ts-cur { background: #dc3418; }
html[data-ui="game"] .ts-menu.opts .ts-cur { background: none; border-left-color: var(--t-fg); }
html[data-ui="game"] .ts-mi.sub::before { border-color: var(--t-dim); }
html[data-ui="game"] .ts-mi.mk::before { background: #dc3418; border-color: #dc3418; }
html[data-ui="game"] .rm-card { background: var(--t-bg); color: var(--t-fg); outline: 1px solid var(--t-fg); box-shadow: 4px 4px 0 var(--t-sh); padding: 0 14px 12px; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
html[data-ui="game"] .rm-card::before { content: "Controls"; margin: 0 -14px 4px; padding: 5px 14px 4px; background: var(--t-fg); color: var(--t-bg); }
html[data-ui="game"] .rm-card p { background: radial-gradient(circle, var(--t-dim) 0 1px, transparent 1px) 0 calc(50% + 5px) / 6px 2px repeat-x; }
html[data-ui="game"] .rm-card span { background: var(--t-bg); padding-right: 8px; }
html[data-ui="game"] .rm-card b { background: var(--t-bg); padding-left: 8px; }
html[data-ui="game"] .rm-card kbd { outline: 0; background: var(--t-fg); color: var(--t-bg); letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { html[data-ui="game"] .rm-ask::after, html[data-ui="game"] .rm-say::after { animation: none; } }

/* ---- one hover for every link: the menu's pick (black on white, the red block beside it) ---- */
html[data-ui="game"] .ct-links { gap: 2px; }
html[data-ui="game"] .ct-links a { position: relative; padding: 1px 6px; margin: 0 -6px; }
html[data-ui="game"] .ct-links a::before { content: ""; position: absolute; left: -12px; top: 2px; width: 7px; height: 14px; background: #dc3418; visibility: hidden; }
html[data-ui="game"] .ct-links a:hover, html[data-ui="game"] .ct-links a:focus-visible, html[data-ui="game"] button.tvs-x:hover, html[data-ui="game"] button.tvs-x:focus-visible, html[data-ui="game"] .ts-start:hover .ts-stk, html[data-ui="game"] .ts-start:focus-visible .ts-stk { background: var(--t-fg); color: var(--t-bg); outline: 0; }
html[data-ui="game"] .ct-links a:hover::before, html[data-ui="game"] .ct-links a:focus-visible::before { visibility: visible; animation: ts-blink 1.06s steps(1, end) infinite; }
html[data-ui="game"] .ts-start .ts-stk { padding: 0 8px; margin: 0 -8px; }
@media (prefers-reduced-motion: reduce) { html[data-ui="game"] .ct-links a::before { animation: none !important; } }

/* ---- keys in windows: their own size, bottom right, as in a game's dialogs (not stretched) ---- */
html[data-ui="game"] .ct-form .ct-sub { align-self: flex-end; min-width: 120px; gap: 24px; }
html[data-ui="game"] .ct-trip .ct-pill { display: flex; flex-direction: row; justify-content: flex-end; gap: 10px; }
html[data-ui="game"] .ct-pill .ct-sub { align-self: auto; justify-content: center; }
html[data-ui="game"] .xp-keys { display: flex; justify-content: flex-end; gap: 10px; }
html[data-ui="game"] .xp-keys button { flex: none; min-width: 120px; box-sizing: border-box; }

/* the close box shows its X all the time */
.ct-close i::before { opacity: 1 !important; }
.ct-h .wd { display: inline-block; }

/* ---- About as a window (phones): heading, the paragraphs, then the two lists side by side ---- */
.ct-ab, .ct-about .ct-cols { display: none; } .ct-about .ct-ab { display: block; }
.ct-about .ct-win { height: auto; } .ct-about .ct-h { white-space: normal; } .ct-about .ct-body { padding-bottom: 20px; } .ct-about .ct-foot { justify-content: flex-end; }
html[data-ui="game"] .ct-about .ct-p { font-size: 15px; line-height: 20px; letter-spacing: -.02em; max-width: none; }
.ct-ls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; } .ct-ls .ct-f { cursor: default; } .ct-ls ul { list-style: none; margin: 0; padding: 8px 8px 10px; display: grid; gap: 4px; }
.ct-trip .ct-h { white-space: normal; }

/* the note in hand: its prompt goes under it */
body.note-on .rm-use { top: auto; bottom: 24px; } body.note-on.touch .rm-use { bottom: 150px; }
body.note-on .rm-card { display: none !important; }

body:has(.rm-note:not([hidden])) .rm-ask:not(.rm-note) { visibility: hidden; }
html[data-ui="game"] .ct-news .ct-p { max-width: 436px; }

/* ---- 25 Nov, night: three small sizes only (11 labels, 13 text and keys, 15 reading); window headings 32 (26 on phones) ---- */
html[data-ui="game"] .tst-n { color: #e3e1db; font-size: 11px; }
html[data-ui="game"] .tst-card { padding: 11px 12px 21px 16px; } html[data-ui="game"] .tst-ic { margin-top: 1px; } html[data-ui="game"] .tst-bar { bottom: 8px; }
html[data-ui="game"] .iw .item-title, html[data-ui="game"] .xp-h { font-size: 32px !important; line-height: 1.1; }
html[data-ui="game"] .iw .item-text, html[data-ui="game"] .xp-p { font-size: 15px !important; line-height: 20px !important; }
html[data-ui="game"] .iw-tag:not(.iw-low) { justify-content: flex-start; }
.ct-fx { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 0; }
.ct-fx dt { font-size: 11px; line-height: 14px; letter-spacing: .04em; text-transform: uppercase; color: #a8a8a8; } .ct-fx dd { margin: 1px 0 0; font-size: 15px; line-height: 20px; letter-spacing: -.02em; } .ct-fx .st::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; background: #dc3418; }
html[data-ui="game"] .ct-about .ct-body > .ct-p { color: #a8a8a8; margin-top: 8px; }
html[data-ui="game"] .ct-mail .ct-p { max-width: 322px; }

@media (max-width: 860px) {
  html[data-ui="game"] .iw .item-title, html[data-ui="game"] .xp-h, html[data-ui="game"] .ct-h { font-size: 26px !important; }
  /* everything you tap is 44 high; what is drawn grows with it only as far as it needs to */
  html[data-ui="game"] .ct-bar, html[data-ui="game"] .iw .ct-bar { height: 44px; grid-template-columns: 44px 1fr 44px; }
  html[data-ui="game"] .ct-bar::before { left: 44px; right: 12px; top: 13px; bottom: 13px; }
  html[data-ui="game"] .ct-close { width: 44px; height: 44px; background: none; box-shadow: none; }
  html[data-ui="game"] .ct-close i { inset: 12px; background: var(--u-dk); box-shadow: var(--u-cap), 0 0 0 5px var(--u-st); }
  html[data-ui="game"] .ct-close i::before { inset: 4px 4px 4px; width: 12px; height: 12px; background: linear-gradient(#e3e1db, #e3e1db) 0 0 / 3px 3px no-repeat, linear-gradient(#e3e1db, #e3e1db) 9px 0 / 3px 3px no-repeat, linear-gradient(#e3e1db, #e3e1db) 3px 3px / 6px 6px no-repeat, linear-gradient(#e3e1db, #e3e1db) 0 9px / 3px 3px no-repeat, linear-gradient(#e3e1db, #e3e1db) 9px 9px / 3px 3px no-repeat; }
  html[data-ui="game"] .ct-close:active { box-shadow: none; } html[data-ui="game"] .ct-close:active i { box-shadow: inset 0 -1px 0 #000, 0 0 0 5px var(--u-st); }
  html[data-ui="game"] .ct-sub, html[data-ui="game"] .ct-leave, html[data-ui="game"] .xp-keys button:first-child, html[data-ui="game"] .xp-keys button:last-child { height: 44px; padding-left: 14px; padding-right: 14px; }
  html[data-ui="game"] .ct-links { gap: 0; } html[data-ui="game"] .ct-links a { display: flex; align-items: center; min-width: 44px; height: 44px; box-sizing: border-box; padding: 0 6px; }
  html[data-ui="game"] .ct-links a::before { top: 15px; }
  html[data-ui="game"] .ct-in:not(.ct-ta) { height: 36px; }
  html[data-ui="game"] .rm-menu { height: 44px !important; line-height: 41px !important; } html[data-ui="game"] .rm-menu:active { line-height: 45px !important; }
  html[data-ui="game"] .rm-back:not(.uk), html[data-ui="game"] .uk { min-height: 44px; box-sizing: border-box; }
  body.touch button.tvs-x { height: 44px; }
  html[data-menu="facility"] .ts-start, html[data-menu="facility"] .ts-mi { min-height: 44px; box-sizing: border-box; align-items: center; } html[data-menu="facility"] .ts-start { display: flex; } html[data-menu="facility"] .ts-start[hidden] { display: none; }
  html[data-menu="facility"] .ts-menu { gap: 0; } html[data-menu="facility"] .ts-mi .ts-note { font-size: 13px; }
  html .ct-mail .ct-body { grid-template-columns: 1fr; } html .ct-mail .ct-cols > div:first-child { grid-area: 3 / 1; padding-top: 20px; } html[data-ui="game"] .ct-mail .ct-p { max-width: none; }
  html[data-ui="game"] .ct-mail .ct-links { flex-direction: row; gap: 20px; margin-top: 0; } html .ct-mail .ct-msgf { grid-row: 4; margin-top: 16px !important; } html[data-ui="game"] .ct-links a { justify-content: flex-start; font-size: 15px; letter-spacing: -.02em; }
}
/* the lists as on the About screen: a small label over plain lines */
html[data-ui="game"] .ct-ls { gap: 16px; } html[data-ui="game"] .ct-ls .ct-f { background: none; box-shadow: none; } html[data-ui="game"] .ct-ls .ct-f > span { display: block; padding: 0; background: none; box-shadow: none; color: #a8a8a8; line-height: 14px; } html[data-ui="game"] .ct-ls .ct-f > span::after { display: none; } html[data-ui="game"] .ct-ls ul { padding: 6px 0 0; gap: 3px; }
@media (max-width: 860px) { .iw .xp-keys { margin-top: auto !important; } .iw-low span + span { display: none; } }
@media (max-width: 860px) {
  html[data-ui="game"] .ct-mail .ct-links { gap: 0; } html[data-ui="game"] .ct-mail .ct-links a { padding: 0 18px; margin: 0 -1px; } html[data-ui="game"] .ct-mail .ct-links a:first-child { margin-left: -18px; } html[data-ui="game"] .ct-mail .ct-links a::before { left: 5px; }
  html[data-ui="game"] .ct-pill .ct-sub { flex: 1; min-width: 0; padding-left: 6px; padding-right: 6px; }
  .tst-host { top: 190px !important; }
}
.ct-about .ct-ab > .ct-p:first-child { margin-top: 24px; }
html[data-ui="game"] .ct-fx dd { font-size: 13px; line-height: 16px; letter-spacing: -.03em; margin-top: 6px; }

/* ---- 26 Nov: on desktop no Menu / Map keys (Esc, M); on phones Map top left, Menu top right, the same square key with a
   centred pixel icon (default) or the words (?hud=text) ---- */
html[data-ui="game"] body:not(.touch) .rm-menu, html[data-ui="game"] body:not(.touch) .uxm-btn { display: none !important; }
html[data-ui="game"] body.touch:not(.on-title):not(.on-scr):not(.in-proj):not(.docked):not(.in-about):not(.ct-open):not(.note-on) .rm-menu { all: unset; display: grid !important; place-items: center; box-sizing: border-box !important; position: fixed; z-index: 4; cursor: pointer;
  right: calc(16px + env(safe-area-inset-right, 0px)) !important; left: auto !important; top: calc(16px + env(safe-area-inset-top, 0px)) !important; }
html[data-ui="game"] body.touch .uxm-btn { left: calc(16px + env(safe-area-inset-left, 0px)) !important; right: auto !important; top: calc(16px + env(safe-area-inset-top, 0px)) !important; }
html[data-hud="icon"][data-ui="game"] body.touch .rm-menu, html[data-hud="icon"] body.touch .uxm-btn { display: grid !important; place-items: center !important; width: 40px !important; min-width: 0 !important; height: 40px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; font-size: 0 !important; line-height: 0 !important; letter-spacing: 0 !important; gap: 0 !important; text-indent: 0 !important; }
html[data-hud="icon"] .uxm-btn > * { display: none !important; }
html[data-hud="icon"][data-ui="game"] body.touch .rm-menu::before, html[data-hud="icon"] body.touch .uxm-btn::before { content: ""; display: block; width: 18px; height: 18px; background: #e3e1db; -webkit-mask: var(--ico) center / 18px 18px no-repeat; mask: var(--ico) center / 18px 18px no-repeat; }
html[data-hud="icon"][data-ui="game"] .rm-menu { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' shape-rendering='crispEdges'%3E%3Cpath d='M2 3h14v2H2zM2 8h14v2H2zM2 13h14v2H2z'/%3E%3C/svg%3E"); }
html[data-hud="icon"] .uxm-btn { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' shape-rendering='crispEdges'%3E%3Cpath d='M1 3l5-2 6 2 5-2v14l-5 2-6-2-5 2zM3 4.4v10.1l2-.8V3.6zM7 3.6v10.1l4 1.3V4.9zM13 4.9v10.1l2-.8V4.1z' fill-rule='evenodd'/%3E%3C/svg%3E"); }
html[data-hud="icon"] body.touch .rm-menu::after, html[data-hud="icon"] body.touch .uxm-btn::after { content: ""; position: absolute; inset: -4px; }
html[data-ui="game"] body.note-on .uxm-btn { display: none !important; }
body.note-on .rm-ask:not(.rm-note) { display: none !important; }      /* (27 Nov: the note has the screen) */
/* (27 Nov) the icon HUD forces the map key on: it still steps aside for anything open (an object, the rig, a window, the note) */
html[data-hud="icon"][data-ui="game"] body.touch:is(.on-title, .on-scr, .in-proj, .docked, .in-about, .ct-open, .picked, .note-on) .uxm-btn { display: none !important; }
/* (27 Nov) the CCTV look's caption, bottom left: recording, which camera, where, the time */
.cctv-cap { position: fixed; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 3; display: flex; flex-wrap: wrap; gap: 4px 14px; max-width: calc(100vw - 32px); pointer-events: none;
  font-size: 13px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; color: #dfe8de; font-variant-numeric: tabular-nums; }
.cctv-cap[hidden], body.ct-open .cctv-cap, body.docked .cctv-cap { display: none; }
.cctv-cap i { display: inline-block; width: 8px; height: 8px; margin: 0 6px 1px 0; background: #dc3418; vertical-align: middle; animation: cctv-rec 1s steps(1) infinite; }
@keyframes cctv-rec { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cctv-cap i { animation: none; } }
/* (27 Nov) phones: every window's close (X) at the top right */
@media (max-width: 860px) {
  html[data-ui="game"] .ct-bar .ct-close { grid-column: 3; grid-row: 1; justify-self: end; }
  html[data-ui="game"] .ct-bar .ct-title { grid-column: 2; grid-row: 1; }
  html[data-ui="game"] .ct-bar > span:last-child:not(.ct-title) { grid-column: 1; grid-row: 1; }
  html[data-ui="game"] .ct-bar::before { left: 12px; right: 44px; }
}
/* (27 Nov) the Menu key: only the icon takes part in the centring (its hidden label used to push the icon up) */
html[data-hud="icon"][data-ui="game"] body.touch .rm-menu > * { display: none !important; }
html[data-hud="icon"][data-ui="game"] body.touch .rm-menu { position: fixed; } html[data-hud="icon"][data-ui="game"] body.touch .rm-menu::before { position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -9px; }      /* (27 Nov) the icon pinned to the key's centre, like the map key's */
