/* ROBOT ROBOT look: iliac.ai's CRT chain (scanlines, glow, flicker) with blue as the UI colour instead of red. */
:root { --ui: #4cc9ff; --ui-glow: #4cc9ff; --enemy: #ff2020; --bg: #000;
  /* ONE FONT (v141): Montserrat for every UI element, chat, terminal and overlay. Self-hosted below, so no Google Fonts request and no Arial on blocked networks. */
  --rr-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; }
/* Montserrat variable (wght 100-900), latin subset, SIL OFL 1.1 (public/fonts/OFL.txt). One file serves 500 for log text and 700 for labels. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; }
body { font-family: var(--rr-font); color: var(--ui); }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }   /* 2026-10-29: no flicker (the owner's CRT LAB settings: FLICKER 0) */
@keyframes glFlicker { 0% { opacity: 1; } 100% { opacity: 1; } }   /* kept for the pages that name it; does nothing now */
.crt-text { color: var(--ui); text-shadow: 0 0 5px var(--ui-glow); opacity: .85; }
/* The full-page scanlines are the glass now (js/crtglass.js #rrGlass, 2026-10-29: 3 px, 0.2, with mask, snow, vignette, RGB split). */

#title { position: fixed; left: 0; right: 0; bottom: 12vh; text-align: center; padding: 0 16px; pointer-events: none; }
#title h1 { margin: 0 0 12px; font-size: clamp(32px, 8vw, 72px); font-weight: 700; letter-spacing: .12em; }
#title p { margin: 4px 0; font-size: clamp(14px, 2.4vw, 18px); }
#title .dim { opacity: .6; }

/* ROBOT BUILDER, laid out like iliac.ai's galaxy page (shared/galaxybrain-page.js): left = square buttons of --tb-sq on a 48px
   step under the bar, right = .togglebox rows --tb-w wide, label left, --tb-sq toggle buttons right, lit = filled + glow. */
:root { --tb-sq: 39px; --tb-w: 268px; --tb: var(--ui); }
body.builder #gl { touch-action: none; }
body.builder, body.builder * { text-transform: uppercase; }   /* every letter on the builder page in capitals (2026-10-06) */
#rbLeft { position: fixed; left: 16px; top: 64px; display: flex; flex-direction: column; gap: 9px; z-index: 21; }
.rbSq { width: var(--tb-sq); height: var(--tb-sq); box-sizing: border-box; padding: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.8); border: 1px solid var(--ui); color: var(--ui); font: inherit; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; }
.rbSq svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.rbSq:hover, .rbSq[aria-pressed=true] { background: var(--ui); color: #000; }
#anaBtn:hover rect, #anaBtn[aria-pressed=true] rect { stroke: currentColor; }   /* card 85747cdd (the owner: "3d glasses button should switch to black glasses on blue BG when activated."): the lenses (anaglyph.js ANA_ICON, blue) go black with the rest */
/* VIEW shelf: the eye's three view buttons slide out to its right, in a row on the same 48px step */
.rbShelf { position: relative; width: var(--tb-sq); height: var(--tb-sq); }
.rbShelfItems { position: absolute; left: calc(var(--tb-sq) + 9px); top: 0; display: flex; gap: 9px; clip-path: inset(0 100% 0 0); transform: translateX(-12px);
  opacity: 0; pointer-events: none; transition: clip-path 180ms ease-out, transform 180ms ease-out, opacity 120ms; }
.rbShelf.open .rbShelfItems { clip-path: inset(0 0 0 0); transform: none; opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .rbShelfItems { transition: none; } }
#rbRight { position: fixed; right: 14px; top: 60px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; z-index: 20; }
.togglebox { box-sizing: border-box; width: var(--tb-w); display: flex; align-items: center; gap: 4px; padding: 5px 6px; background: rgba(0,0,0,.8);
  border: 1px solid color-mix(in srgb, var(--tb) 35%, transparent); }
.togglebox .tblabel { flex: 1 1 auto; min-width: 0; overflow: hidden; text-align: left; color: var(--tb); font-size: 10px; letter-spacing: .14em;
  font-weight: 700; text-transform: uppercase; white-space: nowrap; text-shadow: 0 0 5px var(--tb); }
.togglebox button { flex: 0 0 var(--tb-sq); box-sizing: border-box; width: var(--tb-sq); height: var(--tb-sq); padding: 0; margin: 0; display: flex;
  align-items: center; justify-content: center; background: transparent; border: 1px solid var(--tb); color: var(--tb); opacity: .75; font-family: inherit;
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.togglebox button:hover { opacity: 1; }
.togglebox button[aria-pressed=true], .togglebox button.flash { opacity: 1; background: var(--tb); border-color: var(--tb); color: #000; box-shadow: 0 0 10px var(--tb); }
.togglebox button.tb2 { font-size: 8px; letter-spacing: .06em; white-space: normal; line-height: 1.1; padding: 0 2px; text-align: center; }
/* ADD: two rows of two 60px squares, a turning shape in each (builder.js drawIcons) */
.rbAddGrid { display: grid; grid-template-columns: repeat(2, 60px); gap: 4px; }
#tb-add button { width: 60px; height: 60px; flex-basis: 60px; padding: 4px; cursor: grab; }
#tb-part .tblabel { white-space: normal; line-height: 1.3; }   /* PARTS over '2 OF 6', two lines like iliac.ai's SELECTION MODE: one line was 6-10px too wide (measured) */
#tb-part .tbcount { display: block; white-space: nowrap; }
.rbPartGrid { display: grid; grid-template-columns: repeat(3, 60px); gap: 4px; }   /* part types in rows of three (2026-10-08, user: "RB Pallete buttons are too small. Make them big enough to fit their text.": 60 x 30, 10px text) */
.togglebox .rbPartGrid button.tb2 { width: 60px; height: 30px; font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
#tb-part button { letter-spacing: 0; }
#tb-part button[data-type=transmitter] { padding: 0; }   /* TRANSMIT: 10px like the rest since the buttons are 60px wide (2026-10-08) */
#tb-part button[data-type=transponster] { padding: 0; }   /* TRANSPONSTER (v69): 12 letters in a 60px square */
#tb-add.full button { opacity: .25; cursor: not-allowed; }   /* the robot has all the polys it may have */
#tb-add.nope { animation: rbNope .35s ease-out; }
@keyframes rbNope { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.rbIcon { width: 100%; height: 100%; display: block; pointer-events: none; filter: drop-shadow(0 0 3px var(--ui-glow)); }
/* ROLL + CENTER: the big boxes at the bottom of the right column, like iliac.ai's REBUILD / ACTUALIZE GALAXY */
#rbRandRow { display: flex; gap: 4px; width: var(--tb-w); margin-top: 6px; flex: none; }   /* RANDOM + RESET under ADD */
#rbRandRow .rbBig { height: 44px; }
#rbBigRow { display: flex; gap: 4px; width: var(--tb-w); margin-top: 6px; }
.rbBig { flex: 1 1 0; box-sizing: border-box; height: 56px; background: rgba(0,0,0,.8); border: 1px solid var(--ui); color: var(--ui);
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .3em; padding-left: .3em; cursor: pointer; }
.rbBig:hover, .rbBig[aria-pressed=true] { background: var(--ui); color: #000; text-shadow: none; box-shadow: 0 0 12px var(--ui); }
/* the roll's result, under ROLL / CENTER */
#rbResult { box-sizing: border-box; width: var(--tb-w); margin-top: 3px; padding: 8px 6px; border: 1px solid var(--ui); background: rgba(0,0,0,.85);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; text-align: center; color: #fff; text-shadow: 0 0 6px var(--ui); }
#rbResult[hidden] { display: none; }
#rbResult.crit { color: #000; background: var(--ui); text-shadow: none; box-shadow: 0 0 16px var(--ui); }
/* each die's number, floating above it while the dice rest */
#rbLabels { position: fixed; inset: 0; pointer-events: none; z-index: 15; }
.rbDie { position: fixed; left: 0; top: 0; will-change: translate; transform: translate(-50%, -100%); padding: 2px 7px; border: 1px solid var(--tb); background: rgba(0,0,0,.85); color: var(--tb);
  font-size: 15px; font-weight: 700; letter-spacing: .06em; text-shadow: 0 0 6px var(--tb); white-space: nowrap; animation: rbPop .25s ease-out both; }
.rbDie.core { font-size: 19px; }
.rbDie.plain { opacity: .5; }
.rbDie.crit { background: var(--tb); color: #000; text-shadow: none; box-shadow: 0 0 16px var(--tb); }
@keyframes rbPop { 0% { transform: translate(-50%, -100%) scale(.4); opacity: 0; } 100% { transform: translate(-50%, -100%) scale(1); opacity: 1; } }
/* ODDS: the live stats, one row per scoring part type in its colour */
#rbOdds, #rbBody { flex-direction: column; align-items: stretch; gap: 3px; margin-top: 3px; }
#rbOdds[data-state=busy] { opacity: .75; }
#rbOdds .odHead, #rbBody .odHead { display: flex; justify-content: space-between; align-items: baseline; }
#rbOdds .odN, #rbBody .odN { font-size: 8px; letter-spacing: .1em; color: var(--ui); opacity: .7; }
#rbOdds .odRow, #rbBody .odRow { display: grid; grid-template-columns: 62px 1fr auto; column-gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--tb); text-shadow: 0 0 5px var(--tb); }
#rbOdds .odRow span:last-child, #rbBody .odRow span:last-child { text-align: right; }
#rbOdds .odRow { font-size: 9px; letter-spacing: .04em; white-space: nowrap; grid-template-columns: 50px 1fr auto; column-gap: 4px; }   /* long dice lines (2D12+2D6+2D4) stay on one line */
#rbOdds .odCock { opacity: .6; }
#rbBody .odRow { grid-template-columns: 92px 1fr 64px; }
#rbCount { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
@media (max-width: 768px) { :root { --tb-sq: 36px; --tb-w: 230px; } .togglebox .tblabel { font-size: 9px; letter-spacing: .1em; } .togglebox button { font-size: 8px; } .togglebox button.tb2 { font-size: 7px; } }
#enter { pointer-events: auto; display: inline-block; margin-top: 18px; padding: 10px 18px; border: 2px solid var(--ui); color: var(--ui);
  text-decoration: none; font-weight: 700; letter-spacing: .12em; background: rgba(0,0,0,.8); }
#enter:hover { background: var(--ui); color: #000; text-shadow: none; }
/* FACTORY BUILDER (2026-10-06): same columns as ROBOT BUILDER; START / EXIT names float over the map, ESCAPED across the top */
.togglebox[hidden] { display: none; }
.fbTag { position: fixed; left: 0; top: 0; will-change: translate; transform: translate(-50%, -100%); padding: 2px 7px; border: 1px solid var(--ui); background: rgba(0,0,0,.85);
  color: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-shadow: 0 0 6px var(--ui); white-space: nowrap; pointer-events: none; }
.fbTag.exit { color: #fff; border-color: #fff; text-shadow: 0 0 6px #fff; }
.fbTag.waypoint { border-style: dashed; opacity: .85; }
.fbTag.waypoint::before { content: '\25C7  '; }   /* WAYPOINT (2026-11-13): a DCB-only spot, dashed */
#fbMsg { box-sizing: border-box; width: var(--tb-w); margin-top: 3px; padding: 6px; border: 1px solid var(--enemy); background: rgba(0,0,0,.85); color: var(--enemy);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-shadow: 0 0 5px var(--enemy); }
/* v193 MODE WINDOWS: PLAY shows none of the top boxes; COMBAT.EXE / EXPLORE.EXE / ALERT.EXE / ESCAPED.EXE / YOU_DIED.EXE say it (modewin.js) */
body.play #fbBanner, body.play #fbMode, body.play #fbAlert, body.play #fbNarrate { display: none !important; }
#fbBanner { position: fixed; left: 50%; top: 22vh; transform: translateX(-50%); z-index: 22; padding: 14px 28px; border: 2px solid var(--ui); background: rgba(0,0,0,.85);
  font-size: clamp(22px, 5vw, 44px); font-weight: 700; letter-spacing: .2em; color: #fff; text-shadow: 0 0 12px var(--ui); box-shadow: 0 0 24px var(--ui); white-space: nowrap; pointer-events: none;
  animation: rbPop .3s ease-out both; }
body.factory #rbCount { text-align: right; line-height: 1.6; }
/* NARRATION line (top centre, in the top bar, over it) and the COMBAT / EXPLORE word (2026-10-08): blue chrome, an enemy's line red text; never take clicks */
#fbNarrate { position: fixed; left: 50%; top: 8px; transform: translateX(-50%); z-index: 2147482500; max-width: min(92vw, 760px); padding: 6px 16px; border: 1px solid var(--ui);
  background: rgba(0,0,0,.85); color: var(--ui); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-align: center; text-shadow: 0 0 6px var(--ui); pointer-events: none; }
#fbNarrate .foe { color: var(--enemy); text-shadow: 0 0 6px var(--enemy); }
#fbNarrate.fade { animation: fbNarr 6s ease-out both; }
@keyframes fbNarr { 0% { opacity: 0; } 4% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
/* AUDIT v35 ("COMBAT banner centred"): the COMBAT / EXPLORE banner sits at the middle of the screen (was 58vh) */
#fbMode { position: fixed; left: 50%; top: 50vh; transform: translate(-50%, -50%); z-index: 22; padding: 8px 30px; border: 2px solid var(--ui); background: rgba(0,0,0,.7);
  font-size: clamp(28px, 7vw, 64px); font-weight: 700; letter-spacing: .3em; color: #fff; text-shadow: 0 0 14px var(--ui); box-shadow: 0 0 24px var(--ui); pointer-events: none; }
#fbMode.fade { animation: fbMode 2.2s ease-out both; }
@keyframes fbMode { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 65% { opacity: 1; } 100% { opacity: 0; } }
/* ATTACK FX (act 34, user: "Use RED for combat, not blue. The box edges should animated in from the top, bottom, and sides of screen"; EXPLORE:
   "it just fades in and does a slight flash when it reaches 100% opactity and then fades out. quidkly.") */
#fbMode.combat { --ui: #ff2020; border-color: transparent; box-shadow: none; color: #fff; text-shadow: 0 0 14px #ff2020, 0 0 4px #ff2020; }
#fbMode.combat.fade { animation: fbModeCombat 2.2s ease-out both; }
@keyframes fbModeCombat { 0%, 22% { opacity: 1; background: rgba(0,0,0,0); } 30% { background: rgba(40,0,0,.75); } 75% { opacity: 1; } 100% { opacity: 0; background: rgba(40,0,0,.75); } }
#fbMode .edge { position: absolute; background: #ff2020; box-shadow: 0 0 12px #ff2020; animation: .45s cubic-bezier(.2,.8,.3,1) both; }
#fbMode .edge.t { left: 0; right: 0; top: -2px; height: 2px; animation-name: fbEdgeT; }
#fbMode .edge.b { left: 0; right: 0; bottom: -2px; height: 2px; animation-name: fbEdgeB; }
#fbMode .edge.l { top: -2px; bottom: -2px; left: -2px; width: 2px; animation-name: fbEdgeL; }
#fbMode .edge.r { top: -2px; bottom: -2px; right: -2px; width: 2px; animation-name: fbEdgeR; }
@keyframes fbEdgeT { from { transform: translateY(-60vh); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes fbEdgeB { from { transform: translateY(45vh); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes fbEdgeL { from { transform: translateX(-50vw); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes fbEdgeR { from { transform: translateX(50vw); opacity: .3; } to { transform: none; opacity: 1; } }
#fbMode:not(.combat).fade { animation: fbModeExplore 1s ease-in-out both; }
@keyframes fbModeExplore { 0% { opacity: 0; transform: translate(-50%, -50%); } 40% { opacity: 1; filter: brightness(1); } 48% { opacity: 1; filter: brightness(2.6); text-shadow: 0 0 30px #fff, 0 0 14px var(--ui); } 60% { opacity: 1; filter: brightness(1); } 100% { opacity: 0; transform: translate(-50%, -50%); } }
.fbHelp { font-size: 8px; letter-spacing: .1em; opacity: .7; }
#tb-build.nope, #tb-test.nope, .rbSq.nope { animation: rbNope .35s ease-out; }
.togglebox button.used { opacity: .25; }   /* FB: the turn's JUMP is spent */
/* FB help panel: opens to the right of the left column's ? (placeholder text, 2026-10-07) */
#fbHelpPanel { position: fixed; left: 70px; top: 64px; width: 280px; max-width: calc(100vw - 100px); box-sizing: border-box; padding: 10px 12px; z-index: 22;
  background: rgba(0,0,0,.9); border: 1px solid var(--ui); font-size: 11px; letter-spacing: .1em; line-height: 1.5; }
#fbHelpPanel p { margin: 6px 0 0; }
/* MOB BUILDER (2026-10-07): the name field in the first row, the library list, and a column that scrolls when it is taller than the window */
body.mob #rbRight { max-height: calc(100vh - 70px); overflow-y: auto; overflow-x: hidden; }
#mbName { width: 120px; box-sizing: border-box; background: transparent; border: none; border-bottom: 1px solid var(--ui); color: var(--ui);
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 2px 0; outline: none; }
#mbList { width: var(--tb-w); display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.mbRow { display: flex; gap: 3px; }
.mbRow button { background: rgba(0,0,0,.8); border: 1px solid color-mix(in srgb, var(--tb) 50%, transparent); color: var(--tb); font: inherit; font-size: 9px;
  font-weight: 700; letter-spacing: .06em; padding: 5px 6px; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbRow button:first-child { flex: 1 1 auto; min-width: 0; }
.mbRow button:last-child { flex: 0 0 auto; }
.mbRow.on button:first-child, .mbRow button:hover { border-color: var(--tb); box-shadow: 0 0 8px var(--tb); }
/* FB MOBS list (2026-10-07): one row per saved mob / NPC, in its kind's colour; lit = what the left button places */
#fbMobList[hidden] { display: none; }
#fbMobList { width: var(--tb-w); display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.fbMob { background: rgba(0,0,0,.8); border: 1px solid color-mix(in srgb, var(--tb) 50%, transparent); color: var(--tb); font: inherit; font-size: 9px;
  font-weight: 700; letter-spacing: .06em; padding: 6px; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbMob:hover { border-color: var(--tb); }
.fbMob[aria-pressed=true] { background: var(--tb); color: #000; box-shadow: 0 0 10px var(--tb); }
.fbMobEmpty { font-size: 9px; letter-spacing: .1em; opacity: .7; padding: 4px 6px; }
.fbTag.thing.mob { color: #ff2020; border-color: #ff2020; text-shadow: 0 0 5px #ff2020; }
/* NAMEPLATE (2026-10-27, nameplate.js): the plate is the bot's HP bar with "N/N NAME.BOT" inside it (v2: 2x the old bar, a little bigger
   text); the text over the empty part is the bar's colour, over the fill black; ??? where the player may not read it */
.fbTag.plate { padding: 0; font-size: 13px; text-shadow: none; }
.fbTag.plate .pb { position: relative; min-width: 140px; height: 22px; padding: 0 8px; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.75); }
.fbTag.plate .pb i { position: absolute; left: 0; top: 0; bottom: 0; background: currentColor; box-shadow: 0 0 8px currentColor; }
.fbTag.plate .pt { position: relative; z-index: 1; white-space: pre; text-shadow: 0 0 6px currentColor; }
.fbTag.plate .pt.over { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; color: #000; text-shadow: none; }
/* v215 SMALL TAGS (fpvrange.js sizedTagDy): a bot drawn smaller than its cube (SPIDER.BOT) wears a compact plate, so a pack's bodies show */
.fbTag.plate.small { font-size: 9px; letter-spacing: .04em; }
.fbTag.plate.small .pb { min-width: 0; height: 13px; padding: 0 3px; }
.fbTag.thing { white-space: pre; }   /* v68 SCAN INFO: a scanned mob's extra lines */
/* ITEM EDITOR (2026-10-07): the shapes in rows of four; the column scrolls like MOB BUILDER's */
.itGrid4 { display: grid; grid-template-columns: repeat(4, var(--tb-sq)); gap: 4px; }
body.item #rbRight { max-height: calc(100vh - 70px); overflow-y: auto; overflow-x: hidden; }
.togglebox button:disabled { opacity: .2; cursor: default; }
/* FB ITEMS list and TEST INVENTORY (2026-10-07): rows like the MOBS list; TEST notes in blue */
.fbList[hidden] { display: none; }
.fbList { width: var(--tb-w); display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
/* AUDIT v35: the FB ITEMS rows wrap their text (MORTAR · LOB A SHELL UP TO 12 CUBES ... spilled out of its box) */
.fbList .fbMob { white-space: normal; overflow-wrap: anywhere; }
#fbInvList .mbRow button:disabled { opacity: 1; cursor: default; }
#fbMsg.note { border-color: var(--ui); color: var(--ui); }
/* MOB BUILDER rules (2026-10-07): one row per rule, IF [when] -> [do] X */
#mbRules { width: var(--tb-w); display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.mbRule { display: grid; grid-template-columns: 16px 1fr 12px 1fr 24px; gap: 3px; align-items: center; font-size: 9px; font-weight: 700; letter-spacing: .06em; color: var(--ui); }
.mbSel { min-width: 0; background: #000; border: 1px solid color-mix(in srgb, var(--ui) 50%, transparent); color: var(--ui); font: inherit; font-size: 9px; font-weight: 700; padding: 4px 2px; }
.mbRule button { background: rgba(0,0,0,.8); border: 1px solid color-mix(in srgb, var(--ui) 50%, transparent); color: var(--ui); font: inherit; font-size: 9px; padding: 4px 0; cursor: pointer; }
#mbLine { width: 230px; box-sizing: border-box; background: transparent; border: none; border-bottom: 1px solid var(--ui); color: var(--ui); font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 0; outline: none; }
#tb-deal, #tb-knows, #tb-line { flex-wrap: wrap; }
#tb-aware { flex-wrap: wrap; }
.rbFov { flex: 1 0 100%; display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .08em; color: #4cc9ff; }   /* FOV (v68): the cone angle slider, MOB BUILDER */
.rbFov span { flex: 0 0 56px; white-space: nowrap; }
.rbFov input { flex: 1 1 auto; min-width: 0; accent-color: #4cc9ff; }
.rbFov.off { opacity: .5; }
#tb-deal button { flex: 0 0 auto; width: auto; padding: 0 8px; font-size: 9px; letter-spacing: .08em; }
#mbDeal, #mbKnows, #tb-line #mbLine { display: block; flex: 1 1 100%; width: 100%; box-sizing: border-box; background: transparent; border: 1px solid var(--ui); color: var(--ui); font: inherit; font-size: 10px; letter-spacing: .04em; padding: 3px; outline: none; resize: vertical; }
#tb-line #mbLine { text-transform: uppercase; }   /* v138: WHAT IT SAYS is a box like KNOWS (CAPS, as it is saved) */
#mbDealMsg { flex: 1 1 100%; font-size: 9px; letter-spacing: .1em; color: var(--ui); min-height: 22px; }
#mbDrops { width: var(--tb-w); display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
/* FB combat (round 5): the robot you play as, between < >; mobs you can ATTACK blink */
.fbAs { font-size: 9px; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
.fbTag.target { animation: fbTarget .6s steps(2) infinite; }
@keyframes fbTarget { 50% { background: #ff2020; color: #000; } }

/* THE CLASH (2026-10-07): the dice totals and the result over the defender */
.fbTag.clash { font-size: 15px; padding: 2px 8px; z-index: 16; }
.fbTag.clash.red { color: #ff3b4e; border-color: #ff3b4e; text-shadow: 0 0 6px #ff3b4e; }
.fbTag.clash.green { color: #4dff88; border-color: #4dff88; text-shadow: 0 0 6px #4dff88; }
.fbTag.clash.word { color: #fff; border-color: #fff; text-shadow: 0 0 8px #fff; font-size: 17px; }
.fbTag.clash.word.hit { color: #ffd23f; border-color: #ffd23f; text-shadow: 0 0 8px #ffd23f; }
.fbTag[hidden] { display: none; }
/* PLAY (2026-10-07): the robot pick screen */
#playPick { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 340px; max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); overflow-y: auto;
  box-sizing: border-box; padding: 14px 16px; z-index: 30; background: rgba(0,0,0,.92); border: 1px solid var(--ui); color: var(--ui); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
#playPick b { display: block; margin-bottom: 10px; font-size: 14px; }
#playPick p { margin: 8px 0 0; font-size: 11px; line-height: 1.5; }
#playPick button { display: block; width: 100%; margin-top: 6px; text-align: left; }
#playPick[hidden] { display: none; }
/* PLAY's action bar (2026-10-07): actions along the bottom, END TURN on the right (like BG3) */
#playBar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); z-index: 20; display: flex; align-items: stretch; gap: 0;
  background: rgba(0,0,0,.85); border: 1px solid var(--ui); box-shadow: 0 0 10px color-mix(in srgb, var(--ui) 35%, transparent); }
#playBar[hidden] { display: none; }
#playBar .acts { display: flex; gap: 0; }
#playBar .acts.items { min-width: 0; overflow-x: auto; }
#playBar .barBtn { --tb: var(--ui); flex: none; min-width: 76px; height: 48px; padding: 0 14px; box-sizing: border-box; background: transparent;
  border: 0; border-right: 1px solid color-mix(in srgb, var(--ui) 40%, transparent); color: var(--ui); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
#playBar .barBtn:hover { box-shadow: inset 0 0 10px var(--ui); }
#playBar .barBtn[aria-pressed=true] { background: var(--ui); color: #000; box-shadow: 0 0 12px var(--ui); }
#playBar .barBtn.used { opacity: .25; }
/* act 38: an ability's ENERGY cost on its face (data-cost), dim when you cannot pay for it */
#playBar .barBtn[data-cost]::after { content: attr(data-cost); margin-left: 6px; padding: 1px 3px; border: 1px solid currentColor; font-size: 9px; letter-spacing: .06em; }
#playBar .barBtn.noenergy { opacity: .25; border-bottom: 2px dashed var(--ui); }
#playBar .barBtn:disabled { cursor: default; }
#playBar .barBtn.item { --ui: #ffc840; color: #ffc840; }
/* WAIT / END TURN (user, 2026-10-08: "The WAIT/END TURN button should be on the right, but still connected to the bar.") */
#playBar #endTurnBtn { min-width: 140px; border-right: 0; border-left: 2px solid var(--ui); font-size: 14px; }
/* v33: END TURN glows when your MOVE and ACTION are spent */
#playBar #endTurnBtn.glow { animation: endGlow 1.1s ease-in-out infinite; color: #fff; }
@keyframes endGlow { 0%, 100% { box-shadow: 0 0 6px var(--ui), inset 0 0 6px var(--ui); background: rgba(76, 201, 255, 0.10); } 50% { box-shadow: 0 0 22px var(--ui), inset 0 0 14px var(--ui); background: rgba(76, 201, 255, 0.35); } }
#usePick { position: absolute; bottom: calc(100% + 6px); display: flex; flex-direction: column; gap: 0; background: rgba(0,0,0,.92); border: 1px solid #ffc840; }
#usePick[hidden] { display: none; }
#usePick button { background: transparent; border: 0; border-bottom: 1px solid rgba(255,200,64,.35); color: #ffc840; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 8px 12px; text-align: left; cursor: pointer; white-space: nowrap; }
#usePick button:hover { background: #ffc840; color: #000; }
/* CAMERA in the left column (2026-10-08): ORBIT / FREE / OVER VIEW stacked, as wide as the squares */
#camCol { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
#camCol[hidden] { display: none; }
#camCol .camBtn { width: max-content; min-width: var(--tb-sq); min-height: 30px; box-sizing: border-box; padding: 4px 10px; background: rgba(0,0,0,.8); border: 1px solid var(--ui); color: var(--ui);
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.1; white-space: nowrap; text-align: left; cursor: pointer; }
#camCol .camBtn:hover, #camCol .camBtn[aria-pressed=true] { background: var(--ui); color: #000; }
@media (max-width: 768px) { #playBar { bottom: 12px; } #playBar .barBtn { height: 42px; min-width: 60px; padding: 0 8px; font-size: 10px; } #playBar #endTurnBtn { min-width: 96px; font-size: 11px; } }
/* FLY (2026-10-07): the canyon minigame - readouts in the corners, a progress line, the ENHANCE brackets, the panels */
body.fly #gl { touch-action: none; cursor: crosshair; }
#flyHud { position: fixed; inset: 0; pointer-events: none; z-index: 15; }
#flyHud[hidden], #flyOver[hidden], .fLock[hidden] { display: none; }
.fRead { position: fixed; top: 60px; font-size: 11px; letter-spacing: .16em; line-height: 1.7; color: var(--ui); text-shadow: 0 0 6px var(--ui); }
.fRead.l { left: 70px; } .fRead.r { right: 16px; text-align: right; }
.fBar { position: fixed; left: 70px; right: 16px; bottom: 18px; height: 2px; background: rgba(76,201,255,.2); }
.fFill { height: 100%; width: 0; background: var(--ui); box-shadow: 0 0 8px var(--ui); }
.fPop { position: fixed; left: 50%; top: 30%; transform: translate(-50%, -50%); font-size: 22px; letter-spacing: .2em; opacity: 0; text-shadow: 0 0 10px currentColor; }
.fPop.go { animation: fPop .9s ease-out; }
@keyframes fPop { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1.25); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
.fLock { position: fixed; left: 0; top: 0; }
.fC { position: absolute; width: 14px; height: 14px; border: 0 solid #e8f6ff; filter: drop-shadow(0 0 4px #e8f6ff); }
.fC.tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; } .fC.tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.fC.bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; } .fC.br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.fLockTag { position: absolute; left: 0; top: 100%; margin-top: 6px; white-space: nowrap; font-size: 10px; letter-spacing: .16em; color: #e8f6ff; text-shadow: 0 0 6px #e8f6ff; }
#flyOver { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 360px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 16px 18px; z-index: 30;
  background: rgba(0,0,0,.88); border: 1px solid var(--ui); color: var(--ui); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
#flyOver b { display: block; font-size: 15px; margin-bottom: 8px; }
#flyOver p { margin: 0 0 10px; font-size: 11px; line-height: 1.6; }
#flyOver button { display: block; width: 100%; margin-top: 6px; padding: 9px 10px; text-align: left; background: rgba(0,0,0,.6); border: 1px solid var(--ui); color: var(--ui); font: inherit; letter-spacing: .14em; cursor: pointer; }
#flyOver button:hover, #flyOver button[aria-pressed=true] { background: var(--ui); color: #000; }
@media (max-width: 768px) { .fRead.l { left: 16px; top: 64px; } .fRead { font-size: 9px; } .fBar { left: 16px; } }
#flyBeam { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 14; pointer-events: none; }   /* FLY's laser beams (2D, iliac.ai EXPLORE style) */
/* RB TOTALS (2026-10-07; 2026-10-08, user: "Use ONE font size for TOTALS stat box in RB. The ones on the left look like the right size."
   and "separate the totals stat box"): a smaller card bottom left, every text at the left column's 12px; core stats (MASS, SIZE,
   STEALTH, HP) in their own group above the rest */
#rbTotals { --rbc: var(--ui); position: fixed; left: 16px; bottom: 16px; z-index: 20; width: 300px; box-sizing: border-box; padding: 8px 12px 6px;
  background: rgba(0,0,0,.82); border: 2px solid var(--rbc); box-shadow: 0 0 14px color-mix(in srgb, var(--rbc) 55%, transparent), inset 0 0 18px color-mix(in srgb, var(--rbc) 18%, transparent);
  opacity: 1; font-weight: 700; text-transform: uppercase; pointer-events: none; font-size: 12px; }
.rbtHead { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 5px; margin-bottom: 3px; border-bottom: 1px solid color-mix(in srgb, var(--rbc) 40%, transparent);
  font-size: 12px; letter-spacing: .14em; color: var(--rbc); text-shadow: 0 0 8px var(--rbc); }
.rbtNote { font-size: 12px; letter-spacing: .08em; opacity: .75; }
.rbtNote.bad { color: var(--enemy); text-shadow: 0 0 6px var(--enemy); opacity: 1; }
.rbtGroup + .rbtGroup { margin-top: 5px; padding-top: 5px; border-top: 1px solid color-mix(in srgb, var(--rbc) 40%, transparent); }
.rbtRow { display: grid; grid-template-columns: 74px 1fr auto; align-items: baseline; column-gap: 8px; padding: 1px 0; color: var(--tb); text-shadow: 0 0 6px var(--tb); }
.rbtK, .rbtV, .rbtS { font-size: 12px; letter-spacing: .1em; }
.rbtV { color: #fff; text-shadow: 0 0 8px var(--tb), 0 0 2px var(--tb); white-space: nowrap; }
.rbtS { letter-spacing: .06em; text-align: right; white-space: nowrap; opacity: .85; }
/* JUMP and JETS on one line (2026-10-10): two short rows side by side, each its key, value and a smaller note */
.rbtWide { grid-template-columns: auto 1fr; }   /* TRANSPONSTER (v69): name and note on one line, the dice under it */
.rbtWide .rbtV { grid-column: 1 / -1; grid-row: 2; }
.rbtPair { display: flex; column-gap: 10px; }
.rbtPair .rbtRow { flex: 1 1 auto; min-width: 0; grid-template-columns: auto auto 1fr; column-gap: 5px; }
.rbtPair .rbtS { font-size: 9px; letter-spacing: .02em; white-space: normal; }   /* wraps only when the dice list is very long */
@media (max-width: 768px) { #rbTotals { width: 270px; padding: 6px 8px; } .rbtRow { grid-template-columns: 66px 1fr auto; } }
/* 2026-10-23: TOTALS draws the sheet's DICE / STATS block (statgraphs.css), as wide as the sheet; the STATS boxes take the mouse for their formulas */
#rbTotals { width: 340px; max-height: calc(100vh - 140px); overflow: hidden; }
#rbTotals .msBlock { margin: 4px 0 0; }
#rbTotals .msSG { border-color: color-mix(in srgb, var(--rbc) 60%, transparent); }
#rbTotals .msGraph.msWide { pointer-events: auto; }
@media (max-height: 760px) { .rbtRow { padding: 0; } }
/* RB CALLOUT CARDS (2026-10-07): hover a part for its card, click to pin; a thin line from the card to the part's centre */
#rbCallouts { --rbc: var(--ui); position: fixed; inset: 0; pointer-events: none; z-index: 16; }
#rbCalloutLines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#rbCalloutLines line { stroke: var(--rbc); stroke-width: 1.25; opacity: .85; filter: drop-shadow(0 0 3px var(--rbc)); }
#rbCalloutLines circle { fill: #000; stroke: var(--rbc); stroke-width: 1.5; filter: drop-shadow(0 0 4px var(--rbc)); }
.rbCallout { position: absolute; left: 0; top: 0; will-change: translate; box-sizing: border-box; min-width: 190px; max-width: 300px; padding: 7px 10px 6px;
  background: rgba(2,10,16,.82); border: 1px solid var(--rbc); box-shadow: 0 0 10px color-mix(in srgb, var(--rbc) 60%, transparent), inset 0 0 12px color-mix(in srgb, var(--rbc) 15%, transparent);
  color: var(--rbc); font-weight: 700; text-transform: uppercase; text-shadow: 0 0 5px var(--rbc); animation: rbcIn .16s ease-out both;
  background-image: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(76,201,255,.05) 2px 3px); }
.rbCallout.pinned { border-width: 2px; box-shadow: 0 0 16px var(--rbc), inset 0 0 14px color-mix(in srgb, var(--rbc) 22%, transparent); }
.rbCallout.pinned::after { content: 'PINNED'; position: absolute; top: 6px; right: 8px; font-size: 8px; letter-spacing: .16em; opacity: .7; }
.rbcHead { font-size: 17px; letter-spacing: .12em; color: var(--tb); text-shadow: 0 0 8px var(--tb); margin-bottom: 3px; padding-right: 44px; }
.rbcLine { font-size: 11px; letter-spacing: .08em; line-height: 1.45; color: #e8f6ff; text-shadow: 0 0 5px var(--rbc); }
.rbcSub { margin-top: 4px; font-size: 8px; letter-spacing: .14em; opacity: .65; }
@keyframes rbcIn { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 100% { opacity: 1; clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .rbCallout { animation: none; } }
/* RB ADD shelf, bolder (2026-10-07): the shape nearly fills its square, glows in the part colour; the square lights up on hover */
#tb-add button { padding: 1px; opacity: 1; border-color: color-mix(in srgb, var(--icon, var(--ui)) 70%, transparent); background: rgba(0,0,0,.6); }
#tb-add button:hover { border-color: var(--icon, var(--ui)); box-shadow: 0 0 10px var(--icon, var(--ui)), inset 0 0 10px color-mix(in srgb, var(--icon, var(--ui)) 30%, transparent); }
#tb-add .rbIcon { filter: drop-shadow(0 0 3px var(--icon, var(--ui))); }
#tb-add button { position: relative; }
#tb-add .rbAddDie { position: absolute; right: 3px; bottom: 2px; font-size: 9px; letter-spacing: .04em; line-height: 1; color: var(--icon, var(--ui)); text-shadow: 0 0 3px #000, 0 0 2px #000; pointer-events: none; }   /* D4 .. D20 in the corner of each ADD square (v68) */
/* FACTORY BUILDER FLOOR: X × Y number fields (1-300), square-cornered, iliac.ai blue */
.fbSize { display: flex; align-items: center; gap: 4px; }
.fbSize span { color: var(--tb); font-size: 11px; }
.fbSize input { box-sizing: border-box; width: 52px; height: var(--tb-sq); padding: 0 4px; margin: 0; background: #000; border: 1px solid var(--tb); border-radius: 0;
  color: var(--tb); font-family: inherit; font-size: 12px; letter-spacing: .06em; text-align: center; -moz-appearance: textfield; }
.fbSize input::-webkit-outer-spin-button, .fbSize input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fbSize input:focus { outline: none; box-shadow: 0 0 8px var(--tb); }
/* FACTORY BUILDER PICKED (DAF v2 package 1): the picked SIGN's text, a mob / NPC's own LINE, KNOWS, HONESTY, a TRAP's DAMAGE */
#tb-pick { flex-wrap: wrap; }
#tb-pick .tblabel { flex: 1 1 100%; }
.fbPickRow { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--tb); font-size: 9px; letter-spacing: .12em; font-weight: 700; }
.fbPickRow[hidden] { display: none; }
.fbPickRow > span { flex: 0 0 52px; }
#tb-pick .fbPickRow button { flex: 0 0 auto; width: auto; min-width: var(--tb-sq); padding: 0 5px; }
.fbPickIn { flex: 1 1 0; min-width: 0; box-sizing: border-box; background: #000; border: 1px solid var(--tb); border-radius: 0; color: var(--tb); font: inherit; font-size: 10px; letter-spacing: .06em; padding: 3px 4px; outline: none; }
textarea.fbPickIn { flex: 1 1 100%; resize: vertical; }
.fbPickIn:focus { box-shadow: 0 0 8px var(--tb); }
/* FACTORY BUILDER TRAP: the short tag when one is sprung */
.fbTag.trap { color: #ff2020; border-color: #ff2020; text-shadow: 0 0 6px #ff2020; }
#tb-build button { letter-spacing: 0; }   /* TUNNEL fits its square */

/* BOOT (boot.js): the session's first visit to / or /play/ - blue CRT boot log over black, under the scanlines */
#rrBoot { position: fixed; inset: 0; z-index: 2147482000; background: #000; color: #4cc9ff; pointer-events: auto; cursor: default;
  font-family: var(--rr-font); font-weight: 500; font-variant-numeric: tabular-nums; font-size: clamp(12px, 2.2vw, 18px);
  letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 0 6px #4cc9ff, 0 0 14px rgba(76,201,255,.45);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 28px 64px; box-sizing: border-box; overflow: hidden;
  transition: opacity 400ms steps(4); }
#rrBoot .rrBootLog { white-space: pre-wrap; line-height: 1.55; max-height: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
#rrBoot .rrBootLine { min-height: 1.55em; }
#rrBoot .rrBootCursor::after { content: '_'; animation: rrBootBlink .5s steps(1) infinite; }
#rrBoot .rrBootSkip { position: absolute; right: 28px; bottom: 22px; font-size: 11px; opacity: .75; }
#rrBoot.rrBootOut { opacity: 0; }
@keyframes rrBootBlink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #rrBoot .rrBootCursor::after { animation: none; } #rrBoot { transition: none; } }
/* v140 G BOOT IN THE TERMINAL (boot.js runBootTerm, /play/): only the RR-DOS terminal (and the scanlines) while the log types, then the rest fades in */
body.rrBooting > :not(#rrTerm) { opacity: 0 !important; pointer-events: none !important; }
body.rrBooting #rrTerm[hidden] { display: flex !important; }
body.rrBootIn > :not(#rrTerm) { transition: opacity 700ms ease !important; }
@media (prefers-reduced-motion: reduce) { body.rrBootIn > * { transition: none !important; } }
/* PAINT (2026-10-07): ROBOT BUILDER's swatches, five to a row; each swatch is filled with its colour, lit when it is the brush */
.rbPaintGrid { display: grid; grid-template-columns: repeat(5, var(--tb-sq)); gap: 4px; }
.togglebox button.rbSwatch { background: color-mix(in srgb, var(--tb) 55%, transparent); }
.togglebox button.rbSwatch[aria-pressed=true] { background: var(--tb); outline: 2px solid #fff; outline-offset: 1px; }
/* TEXTURES (2026-10-08): the PAINT box's pattern brushes under the swatches */
.rbTexGrid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 2px; }
.togglebox .rbTexGrid button { width: auto; height: 30px; font-size: 10px; padding: 0 4px; }   /* bigger (2026-10-08, see .rbPartGrid) */
.togglebox .rbPaintGrid > button.tb2 { font-size: 9px; letter-spacing: .04em; white-space: nowrap; }
/* EYES (2026-10-19): ROBOT / MOB BUILDER's eye styles, three to a row; a MOB's MEAN styles in the enemy red */
.rbEyesGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.togglebox .rbEyesGrid button { width: auto; height: 30px; font-size: 9px; letter-spacing: .04em; padding: 0 4px; white-space: nowrap; }
.togglebox .rbEyesGrid button.rbMean { --tb: #ff3b3b; color: #ff3b3b; border-color: #ff3b3b; }
#tb-cosmetics { flex-wrap: wrap; }   /* COSMETICS (v225): a label and a chip grid per slot, one under the other */
#tb-cosmetics .tblabel, #tb-cosmetics .rbCosLabel, #tb-cosmetics .rbCosGrid { flex: 0 0 100%; }
.rbCosGrid { grid-template-columns: repeat(4, 1fr); margin-bottom: 2px; }
.togglebox .rbCosGrid button { font-size: 8px; letter-spacing: 0; padding: 0 2px; white-space: normal; line-height: 1.1; overflow: hidden; }
.rbCosLabel { display: block; font-size: 8px; letter-spacing: .14em; opacity: .7; margin: 4px 0 2px; }
.togglebox .rbEyesGrid button.rbMean[aria-pressed=true] { background: #ff3b3b; color: #000; }
/* EYES on the character sheet (DCB, WORKBENCH): the MEAN chips in the enemy red */
button.msMean { color: #ff3b3b !important; border-color: #ff3b3b !important; }
button.msMean.on { background: #ff3b3b !important; color: #000 !important; }
/* FB HIDE (2026-10-07): the HIDDEN tag over the player's robot - faint blue, blinking slowly */
.fbTag.hidden { color: var(--ui); border-style: dashed; opacity: .75; letter-spacing: .14em; animation: fbHiddenTag 1.6s ease-in-out infinite; }
@keyframes fbHiddenTag { 50% { opacity: .35; } }
/* FB SCAN (2026-10-07): the FOUND flash over each hidden block a SCAN finds - blue, dashed */
.fbTag.found { color: var(--ui); border-color: var(--ui); border-style: dashed; text-shadow: 0 0 6px var(--ui); }
/* FB CHARACTER CALLOUT (2026-10-07): ROBOT BUILDER's callout card on the map; --rbc blue for friends, red for enemies (factory.js) */
#rbCallouts[hidden] { display: none; }
.fbCallout { background-image: repeating-linear-gradient(to bottom, transparent 0 2px, color-mix(in srgb, var(--rbc) 6%, transparent) 2px 3px); }
/* DAMAGE TYPES (2026-10-07): MOB BUILDER's WEAK / RESIST buttons, three to a row; the ATTACK TYPE pick list fills its box */
#mbAff { width: var(--tb-w); display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 3px; }
#tb-dtype .mbSel { flex: 1; }
/* TECH (2026-10-08, was SPELLS): ITEM EDITOR hides the effects of the other kind; PLAY's bar marks TECH with TECH and its ENERGY cost */
.rbPartGrid button[hidden] { display: none; }
.skullIco { vertical-align: -2px; margin-right: 3px; flex: none; }   /* MINE (2026-10-24): the red skull before the word on its DCB palette button (skull.js skullSvg) */
#playBar .barBtn.item.tech { border-style: dashed; }
#playBar .barBtn.tech .cost { display: block; font-size: 9px; letter-spacing: .08em; opacity: .9; }
/* WORLD BUILDER's tabs (act 13): a tool page in /world/'s frame (?embed=1) has no menu bar above it */
body.rrEmbed #rbLeft { top: 12px; } body.rrEmbed.factory:not(.play) #rbLeft { display: none; } body.rrEmbed.factory:not(.play) #fbHelpPanel { left: 310px; top: 12px; }   /* v223 DCB AS RR-OS: the DATACENTERS frame's left bar lives in TOOLBAR.EXE on the desk (dcbos.js) */ body.rrEmbed #rbRight { top: 10px; }
body.rrEmbed.mob #rbRight, body.rrEmbed.item #rbRight { max-height: calc(100vh - 20px); }
/* v149 SHEET DOCK (sheetdock.js): inside DATACENTER BUILDER the builder's right panel docks under the character sheet (the EDITOR section):
   the right edge, from --dock-top down, --dock-w wide; off = hidden (the sheet above holds the controls, no second panel) */
body.rrEmbed.rrDock #rbRight { top: var(--dock-top, 0px); right: 0; bottom: 0; width: var(--dock-w, 250px); max-height: none; box-sizing: border-box; padding: 8px 10px 10px 12px;
  align-items: stretch; overflow-y: auto; overflow-x: hidden; background: #000; border-left: 1px solid var(--ui); border-top: 1px solid var(--ui); }
body.rrEmbed.rrDock #rbRight .togglebox, body.rrEmbed.rrDock #rbRight > * { width: 100%; max-width: 100%; }
body.rrEmbed.rrDockOff #rbRight { display: none !important; }
/* v150 ONE SHEET: inside DATACENTER BUILDER the mob's stats, talk, loot and combat live on the outer character sheet; the docked panel
   keeps only the body work (PART, ADD, SCALE, ROTATE, PAINT, RANDOM / RESET, ROLL, PART LIMIT, CORE DIE) */
body.rrEmbed.mob :is(#tb-who, #tb-hp, #tb-aware, #tb-rules, #mbRules, #tb-line, #tb-model, #tb-knows, #tb-deal, #tb-drops, #mbDrops, #tb-dtype, #tb-atypes, #mbAtkTypes, #tb-aff, #mbAff, #tb-lib, #mbList) { display: none !important; }
/* v152 ONE SHEET v2: inside DATACENTER BUILDER the MOB BUILDER frame is the 3D view only; every control is on the outer sheet (BUILD tab) */
body.rrEmbed.mob #rbRight { display: none !important; }
/* CHAPTER 1-8 DAMAGE TYPES: WEAK! / RESIST over a mob a typed hit lands on (factory.js affFlash) */
.fbTag.aff.weak { color: #fff04a; border-color: #fff04a; text-shadow: 0 0 6px #fff04a; }
.fbTag.aff.resist { color: var(--ui); border-color: var(--ui); border-style: dashed; text-shadow: 0 0 6px var(--ui); }
/* LEVELS LIST (act 15): FACTORY BUILDER's named levels under FILE, and the THIS REPLACES YOUR LEVEL / name panels */
body.factory:not([data-tool=play]) #rbRight { max-height: calc(100vh - 70px); overflow-y: auto; overflow-x: hidden; }
#fbLevelList { width: var(--tb-w); display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
#fbLevelList .mbRow button { font-size: 10px; letter-spacing: .08em; padding: 5px 6px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fbLevelList .mbRow.on button:first-child { background: var(--tb); color: #000; }
#fbLevelList .fbLvNone { font-size: 9px; letter-spacing: .1em; opacity: .6; padding: 2px 4px; }
#fbLvPanel { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.6); }
#fbLvPanel[hidden] { display: none; }
#fbLvPanel .fbLvBox { width: 340px; max-width: calc(100vw - 40px); box-sizing: border-box; padding: 16px; background: rgba(0,0,0,.94); border: 2px solid var(--ui);
  box-shadow: 0 0 18px color-mix(in srgb, var(--ui) 45%, transparent); color: var(--ui); text-transform: uppercase; }
#fbLvPanel h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: .14em; }
#fbLvPanel p { margin: 0 0 12px; font-size: 11px; letter-spacing: .1em; line-height: 1.5; }
#fbLvPanel input { width: 100%; box-sizing: border-box; margin: 0 0 12px; padding: 8px; background: #000; border: 1px solid var(--ui); color: var(--ui);
  font: inherit; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
#fbLvPanel .fbLvBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#fbLvPanel button { padding: 10px 6px; background: #000; border: 1px solid var(--ui); color: var(--ui); font: inherit; font-size: 12px; letter-spacing: .12em; cursor: pointer; }
#fbLvPanel button:hover, #fbLvPanel button.go { background: var(--ui); color: #000; box-shadow: 0 0 10px var(--ui); }
/* WORKSHOP (2026-10-08, user: "buttons at top of right panel in workshop RB are cut off by the nav. Move everything down so they're
   visible."): the play page's menu bar sits over the top of the full-screen WORKSHOP frame, so the panels start under it */
body.rrEmbed.workshop #rbRight { top: 62px; max-height: calc(100vh - 72px); overflow-y: auto; overflow-x: hidden; }
body.rrEmbed.workshop #rbLeft { top: 64px; }
#tb-workshop button { width: 64px; flex-basis: 64px; font-size: 10px; letter-spacing: .06em; }   /* DONE / CANCEL fit their text */
/* v148 WORKBENCH SHEET (workbench.js mountBenchSheet; the owner: "Robot builder in PLAY (workbench) should use the new character sheet, get
   rid of separate stat box in lower left, just use stat graphs in right bar like in DCB."): DCB's sheet (#wSheet, world.css) is the right
   bar, so the builder's own column and its lower-left TOTALS box go */
body.workshop.rrBench #rbRight, body.workshop.rrBench #rbTotals { display: none !important; }
/* WORKBENCH.EXE (2026-11-01, card 47932e6d5b0d): inside PLAY's bench window (?win=1) the window's bar is the top, so the sheet runs the frame's full height */
body.benchWin #wSheet { top: 0; }
#wSheet #benchExtra .togglebox { width: 100%; }
/* COMBINE SCRIPTS (v127 (2026-10-16, the owner: "let's remove COMBINE from inventory menu, and add a COMBINE SCRIPTS section in the workbench UI.")): the carried scripts and the recipes as rows under the box, as MY ROBOTS' list */
#rbCombineList { width: var(--tb-w); display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
#rbCombineList .mbRow button { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
#rbCombineList .rbRecipesHead { color: var(--tb); font-size: 8px; letter-spacing: .14em; font-weight: 700; padding: 4px 0 1px; text-shadow: 0 0 5px var(--tb); }
#rbCombineList button.off { opacity: .4; cursor: default; }
#rbCombineMsg { width: var(--tb-w); box-sizing: border-box; color: var(--tb); font-size: 8px; letter-spacing: .08em; padding: 2px 6px 0; min-height: 10px; }
#tb-combine.nope { animation: rbNope .35s ease-out; }
/* BACK TO FB (2026-10-08): FACTORY BUILDER's PLAY: back to editing; first in the action bar */
#playBar #fbBackBtn { border-right: 2px solid var(--ui); }
/* ROTATE ARROWS (2026-10-08): by a hovered STAIR / just-stamped ROOM or TUNNEL in FACTORY BUILDER's map */
#rotArrows { position: fixed; z-index: 25; transform: translate(-50%, -100%); display: flex; gap: 6px; }
#rotArrows[hidden] { display: none; }
#rotArrows .rotArrow { width: 34px; height: 34px; padding: 0; background: rgba(0,0,0,.7); border: 2px solid var(--ui); color: var(--ui); font-size: 20px; line-height: 1; cursor: pointer; }
#rotArrows .rotArrow:hover { box-shadow: 0 0 10px var(--ui); }
/* FB BOXES (2026-10-10, v34; user: "button text in factory builder is still spilling over the edges of boxes. Make the boxes bigger"):
   FACTORY BUILDER only: wider panels, palette buttons 72 wide, every panel button at least as wide as its text */
body.factory:not([data-tool=play]), body.world { --tb-w: 300px; }   /* v120: WORLD BUILDER's left panel is this wide too (user: "Make left panel in WB same width as right panel") */
body.factory:not([data-tool=play]) .togglebox button { flex: 0 0 auto; width: auto; min-width: var(--tb-sq); padding: 0 6px; }
body.factory:not([data-tool=play]) .togglebox .rbPartGrid { grid-template-columns: repeat(3, 72px); }
body.factory:not([data-tool=play]) .togglebox .rbPartGrid button { width: 72px; padding: 0 2px; font-size: 9px; letter-spacing: .06em; }
/* v87: a label wider than its 72px palette square (FLOOR STAIRS spilled 3px) breaks onto two lines at its space, inside the square */
body.factory:not([data-tool=play]) .togglebox .rbPartGrid button { white-space: normal; line-height: 1.15; }
/* FB BOXES II (2026-10-10, v36; same request; tools/check-fb-overflow.mjs measures every FB panel at 1280x720 and 1920x1080):
   a row that is full wraps onto a second line inside its box (TEST: END and RESET stuck out 37-90px); the long name boxes
   (SHOP STOCK, CHEST, VIRUS) put their label on its own lines across the box; LEVELS names wrap; the SAVE AS box fits 40 letters;
   the robot pick's TECH LOADOUT row wraps */
body.factory:not([data-tool=play]) .togglebox { flex-wrap: wrap; row-gap: 4px; }
body.factory:not([data-tool=play]) :is(#tb-shop, #tb-chest, #tb-virus) .tblabel { flex: 1 0 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
#fbLevelList .mbRow button:first-child { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; line-height: 1.3; }
#fbLevelList .mbRow button:not(:first-child) { min-width: 40px; text-align: center; }
#fbLvPanel .fbLvBox { width: 480px; }
#playPick #techLoadoutBtn { white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
/* PALETTE TABS (2026-10-11, user: "3, queue it after package 4": category tabs with a slide-out shelf like the ATTACK / MINI GAMES
   shelves, PLUS a search box and a RECENT row): WALL / ERASE pinned beside SEARCH; five tabs; a tab's shelf slides out to the LEFT
   of the panel (position: fixed, placed by factory.js palShow, kept on screen), the same 72px palette buttons in rows of three */
#tb-build > .fbPalPin, #tb-build > .fbPalFind, #tb-build > .fbPalTabs, #tb-build > .fbPalRecentCol { flex: 1 0 100%; }
/* 2026-10-11, user: "Make the WALL and ERASE buttons at the top, the same height as the search bar. Make the categories square buttons in
   two rows of three (with one blank for now). Move RECENT below the categories with a dividing line." */
#tb-build .fbPalRecentCol { min-width: 0; display: flex; flex-direction: column; gap: 4px; margin-top: 2px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--tb) 45%, transparent); }
body.factory:not([data-tool=play]) .togglebox .rbPartGrid.fbPalPin button { height: 30px; min-height: 0; }
#tb-build > [hidden] { display: none !important; }
body.factory:not([data-tool=play]) .togglebox .rbPartGrid.fbPalPin { grid-template-columns: 72px 72px minmax(0, 1fr); }
#fbPalSearch { min-width: 0; height: 30px; box-sizing: border-box; padding: 0 6px; background: #000; border: 1px solid color-mix(in srgb, var(--tb) 60%, transparent);
  color: var(--tb); font: inherit; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; outline: none; }
#fbPalSearch:focus { border-color: var(--tb); box-shadow: 0 0 8px color-mix(in srgb, var(--tb) 55%, transparent); }
#fbPalSearch::placeholder { color: var(--tb); opacity: .45; }
#tb-build .fbPalNone, #tb-build .fbPalHead { font-size: 9px; letter-spacing: .14em; opacity: .65; white-space: nowrap; }
#tb-build .fbPalNone { grid-column: 1 / -1; padding: 2px; }
#tb-build .fbPalHead { padding: 2px 0 0; color: var(--tb); }
body.factory:not([data-tool=play]) #tb-build .fbPalTabs .fbPalTab { width: 72px; height: 72px; padding: 0 2px; justify-content: center; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
#tb-build .fbPalBlank { width: 72px; height: 72px; box-sizing: border-box; border: 1px dashed color-mix(in srgb, var(--tb) 25%, transparent); }
#tb-build .fbPalTab.open { opacity: 1; box-shadow: 0 0 10px var(--tb), inset 0 0 8px color-mix(in srgb, var(--tb) 45%, transparent); }
.togglebox.fbPalShelf { position: fixed; z-index: 30; width: auto; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; padding: 5px 6px 6px; box-sizing: border-box;
  background: rgba(0,0,0,.92); border: 1px solid var(--tb); box-shadow: 0 0 12px color-mix(in srgb, var(--tb) 40%, transparent); animation: fbPalOut 160ms ease-out both; }
.togglebox.fbPalShelf[hidden] { display: none; }
.fbPalShelf .shelfHead { font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--tb); text-shadow: 0 0 5px var(--tb); white-space: nowrap; }
@keyframes fbPalOut { from { transform: translateX(12px); opacity: 0; } to { transform: none; opacity: 1; } }   /* no clip-path: a click mid-slide still lands */
@media (prefers-reduced-motion: reduce) { .togglebox.fbPalShelf { animation: none; } }
/* RETURN TO FACTORY (v34): FB PLAY's one factory control, at the foot of the left column, like the camera buttons */
#rbLeft #fbBackBtn { margin-top: 10px; }   /* v86: a square (.rbSq) with the three stacked cubes (fbback.js) */
#rbLeft #fbBackBtn svg { width: 24px; height: 24px; }
/* v34: the build-only FACTORY BUILDER boxes never show on the PLAY page (not even while it loads, before the robot picker) */
body[data-tool=play] :is(#tb-build, #tb-size, #tb-shaft, #tb-chest, #tb-shop, #tb-virus, #tb-mobs, #fbMobList, #tb-items, #fbItemList, #tb-scripts, #fbScriptList, #tb-file) { display: none !important; }   /* v127: SCRIPTS too */
/* WB (?embed=1, body.rrEmbed): the OUTER page holds the FILE / LEVELS / floors / palette now. v121 (wbright.js) hid the FILE / LEVELS boxes and
   list, the SHAFT SCENERY toggle, the MOBS/NPCS, ITEMS and SCRIPTS boxes and lists, DESCRIBE A FACTORY (fbstory.js, kept running);
   dcx134 BLOCKS: the whole PALETTE box too (pinned WALL / WALL CUBE, SEARCH, RECENT: the left panel's BLOCKS tree, wbright.js mountBlocks).
   The hidden shelves (#fbPalShelves, off <body>) and lists stay in the DOM: they are the tree's source and its click targets. */
body.rrEmbed :is(#tb-build, #tb-file, #tb-levels, #fbLevelList, #tb-shaft, #tb-mobs, #fbMobList, #tb-items, #fbItemList, #tb-scripts, #fbScriptList, #tb-story) { display: none !important; }
/* FREE LOOK (v34): one eye button in the left column instead of ORBIT / FREE / OVER VIEW */
#camCol .freeLook { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: var(--tb-sq); min-height: var(--tb-sq); padding: 4px 2px; text-align: center; }
#camCol .freeLook .flLbl { font-size: 7px; letter-spacing: .04em; line-height: 1.05; white-space: nowrap; }
#camCol .freeLook[aria-pressed=true] svg { stroke: #000; }
#camCol .freeLook[aria-pressed=true] svg circle:last-child { fill: #000; }
#camCol .freeLook svg { width: 28px; height: 20px; stroke-width: 1.6; }
/* v56 START GAME: a robot button only selects (lit); START GAME at the foot of the pick panel starts the level */
#playPick .robotPick[aria-pressed=true] { background: var(--ui); color: #000; box-shadow: 0 0 10px var(--ui); }
#playPick #startGameBtn { margin-top: 14px; height: 44px; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: .16em; border: 2px solid var(--ui); box-shadow: 0 0 12px var(--ui); }
/* v56 ATTACK SHELF (atkshelf.js): the attack types slide up out of ATTACK on hover, or while aiming an ATTACK */
#playBar .atkWrap { position: relative; display: flex; }
#atkShelf { position: absolute; left: -1px; bottom: 100%; min-width: calc(100% + 2px); display: flex; flex-direction: column; box-sizing: border-box; padding-bottom: 6px;
  background: rgba(0,0,0,.92); border: 1px solid var(--ui); border-bottom: 0; box-shadow: 0 -4px 12px color-mix(in srgb, var(--ui) 35%, transparent);
  transform: translateY(12px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .18s ease-out, opacity .18s ease-out, visibility 0s linear .18s; z-index: 21; }
#playBar .atkWrap:hover #atkShelf, #atkShelf.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform .18s ease-out, opacity .18s ease-out; }
#atkShelf .shelfHead { padding: 6px 10px 4px; font-size: 9px; letter-spacing: .14em; opacity: .7; white-space: nowrap; }
#atkShelf .atkType { height: 34px; padding: 0 12px; background: transparent; border: 0; border-top: 1px solid color-mix(in srgb, var(--ui) 30%, transparent); color: var(--ui);
  font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-align: left; white-space: nowrap; cursor: pointer; }
#atkShelf .atkType:hover { box-shadow: inset 0 0 10px var(--ui); }
#atkShelf .atkType[aria-pressed=true] { background: var(--ui); color: #000; }
#atkShelf .shelfNote { padding: 4px 10px 0; font-size: 8px; letter-spacing: .1em; opacity: .6; white-space: nowrap; }
/* v56: the item buttons live in the right panel (under INVENTORY), not the bar */
#playItems { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: 280px; }
#playItems:empty { display: none; }
#playItems .barBtn { --ui: #ffc840; min-height: 30px; padding: 4px 10px; background: rgba(0,0,0,.85); border: 1px solid #ffc840; color: #ffc840; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .1em; cursor: pointer; }
#playItems .barBtn:hover, #playItems .barBtn[aria-pressed=true] { background: #ffc840; color: #000; }
#playItems .barBtn.used { opacity: .25; }
#playItems .barBtn.item.tech { border-style: dashed; }
/* v56: the bar fits narrow windows: buttons shrink before anything leaves the screen */
@media (max-width: 1100px) { #playBar .barBtn { min-width: 0; padding: 0 9px; font-size: 11px; letter-spacing: .1em; } #playBar #endTurnBtn { min-width: 110px; } }
/* v56: in PLAY the inventory rows are the list; the USE buttons are the item strip under it (#playItems) */
body.play #fbInvList .mbRow button + button { display: none; }
/* v57 panel: PLAY's right panel (stats, INVENTORY, items) stays inside the window and scrolls its own content; its foot stays
   clear of the action bar (#playBar: 16px + 48px) and of the ALARM pill placed under it (factory.js: rbRight bottom + 6) */
@media (min-width: 769px) {
  body.play #rbRight { max-height: calc(100vh - 168px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }   /* its bar: chrome.js rrScrollStyle */
}
/* VITALS GRAPHS (act 69, vitals.js): HP / ENERGY / MOVE as three small square graph boxes under the HP box in PLAY, like iliac.ai's
   system stats; the HP box keeps its label in the DOM (hidden) and shows only its extras (ALLIES, status) when there are any */
#rrVitals { width: var(--tb-w); display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
#rrVitals[hidden] { display: none; }
.rrVital { position: relative; box-sizing: border-box; aspect-ratio: 1; min-width: 0; padding: 5px 6px 4px; display: flex; flex-direction: column;
  background: rgba(0,0,0,.8); border: 1px solid color-mix(in srgb, var(--tb) 35%, transparent); color: var(--tb); overflow: hidden; }
.rrVital .rrVitalK { font-size: 9px; font-weight: 700; letter-spacing: .14em; opacity: .75; white-space: nowrap; }
.rrVital .rrVitalV { font-size: 15px; font-weight: 700; letter-spacing: .04em; line-height: 1.15; white-space: nowrap; text-shadow: 0 0 5px var(--tb); }
.rrVital canvas { flex: 1 1 0; min-height: 0; width: 100%; display: block; margin-top: 2px; }
body[data-tool=play] #tb-me.rrVitalsHost .tblabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body[data-tool=play] #tb-me.rrVitalsHost:not(.hasExtra):not([hidden]) { display: none; }
#tb-me .rrVitalsExtra { flex: 1 1 auto; min-width: 0; color: var(--tb); font-size: 10px; letter-spacing: .14em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 5px var(--tb); }
#tb-me .rrVitalsExtra:empty { display: none; }
/* the opening film (intro/intro.js): the 3D letters are the title, so the page's h1 stays for screen readers only */
body.rrIntro #title h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.rrIntro #title { opacity: 0; bottom: 14vh; }
#introFlash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 5; mix-blend-mode: screen; }
#introSkip { position: fixed; right: 24px; bottom: 24px; z-index: 6; padding: 8px 16px; background: rgba(0,0,0,.6); border: 1px solid var(--ui);
  color: var(--ui); font: inherit; font-size: 14px; letter-spacing: .15em; cursor: pointer; }
#introSkip:hover { background: var(--ui); color: #000; text-shadow: none; }
#introSkip[hidden] { display: none; }
#introReplay { display: block; margin-top: 14px; font-size: 12px; letter-spacing: .15em; color: var(--ui); opacity: .7; pointer-events: auto; text-decoration: none; }
#introReplay:hover { opacity: 1; }
#introClock { position: fixed; left: 24px; bottom: 24px; z-index: 6; font-size: 13px; letter-spacing: .15em; padding: 6px 10px; background: rgba(0,0,0,.6); border: 1px solid var(--ui); pointer-events: none; }
#introClock[hidden] { display: none; }
/* the front page's question (card 3aa687276052): DO YOU WANT TO PLAY A GAME? YES / NO */
#playQ { font-size: clamp(16px, 2.6vw, 22px) !important; font-weight: 700; letter-spacing: .18em; min-height: 1.5em; }
/* the question types in terminal-style with a block cursor (intro/typeq.js, 2026-10-15 chat) */
#playQ .cur { display: inline-block; width: .62em; height: 1.05em; vertical-align: -.15em; background: var(--ui); box-shadow: 0 0 6px var(--ui-glow); margin-left: 2px; }
#playQ .cur.off { visibility: hidden; }
#playQ .qBox { position: relative; display: inline-block; white-space: nowrap; }   /* the whole question's width, centred */
#playQ .ghost { visibility: hidden; }
#playQ .typed { position: absolute; left: 0; top: 0; white-space: nowrap; text-align: left; }   /* what has typed so far, from the left */
#ynRow { display: flex; justify-content: center; gap: 18px; margin-top: 16px; }
#title .yn { pointer-events: auto; min-width: 96px; padding: 10px 18px; border: 2px solid var(--ui); color: var(--ui); background: rgba(0,0,0,.8);
  font: inherit; font-weight: 700; letter-spacing: .18em; cursor: pointer; }
#title .yn:hover { background: var(--ui); color: #000; text-shadow: none; }
/* MOB BUILDER CORE (v96 mobcore): the 8 kit deltahedra in two rows of four squares, a turning shape in each, its die in the corner */
.rbCoreGrid { display: grid; grid-template-columns: repeat(4, 42px); gap: 3px; flex: none; }
#tb-coredie .rbCoreGrid button { width: 42px; height: 42px; flex-basis: 42px; padding: 1px; position: relative; background: rgba(0,0,0,.6); opacity: .8; }
#tb-coredie .rbCoreGrid button[aria-pressed=true] { opacity: 1; background: color-mix(in srgb, var(--tb) 22%, #000); box-shadow: 0 0 10px var(--tb), inset 0 0 8px var(--tb); }
#tb-coredie .rbAddDie { position: absolute; right: 2px; bottom: 1px; font-size: 9px; letter-spacing: .04em; line-height: 1; color: var(--tb); text-shadow: 0 0 3px #000, 0 0 2px #000; pointer-events: none; }
/* PART SCALE (v112): ROBOT BUILDER's SCALE box, - X1.5 + for the selected part */
.rbScaleRow { display: flex; align-items: center; gap: 4px; }
.rbScaleVal { min-width: 76px; text-align: center; color: var(--tb, #4cc9ff); font-size: 10px; letter-spacing: .1em; }
#tb-scale.off .rbScaleRow button { opacity: .35; }
#tb-scale { position: relative; }
.rbScaleMsg { position: absolute; left: 0; right: 0; bottom: 1px; color: #ff5a5a; font-size: 9px; letter-spacing: .1em; text-align: center; pointer-events: none; }   /* v113 SCALE GAP: NO ROOM TO SCALE */
#tb-scale.nope { animation: rbNope .35s ease-out; }
#tb-rot.off .rbScaleRow button { opacity: .35; }   /* PART ROTATE (v113) */
#tb-rot { position: relative; }   /* v114 ROTGAP: NO ROOM TO ROTATE under the row, like SCALE's */
#tb-rot.nope { animation: rbNope .35s ease-out; }
body.builder:not(.mob) #rbRight { max-height: calc(100vh - 70px); overflow-y: auto; overflow-x: hidden; }   /* v113: ROTATE made the column taller: MY ROBOTS scrolls into view on short screens (as MOB BUILDER) */
/* v115's rule moving #rrAccount above the PLAY bar is gone: v121 nav puts the box at the top right, on the burger's centre line (account.js) */

/* v120 (the owner: "Move the status graphs to just below the blue line that sits below the nav with same padding as left side button
   bar."): in PLAY the HP / ENERGY / MOVE graphs (vitals.js #rrVitals) sit fixed under the nav's rule (the nav bar is 50px, its
   1px rule under it), left 16px as #rbLeft; the left button column moves down under them (the graphs are --tb-w wide, 3 squares) */
/* v127 (the owner, 2026-10-16: "move stat graphs (HP, ENERGY, MOVE) to upper right corner, just below blue line. Remove the LEVEL
   stats and tutorial text."): the graphs now sit fixed top RIGHT under the nav's rule, right 16px (the same padding #rbLeft has from
   the left); #rbLeft and #fbHelpPanel are back at their own top (64px, no longer pushed down). The #rrAccount sign-in box (account.js,
   fixed top right, its centre on the burger's 25px line, 27px tall: bottom at 39px) ends above the rule, so the graphs at 58px clear
   it. The right column #rbRight (top 60px, right 14px: ALLIES / messages in PLAY) moves down under the graphs instead; the LEVEL stats
   it held (#rbCount: level name, size, cube count, hints), the centred chapter label (#chapLabel: chapter name, title, HP COST) and
   the ALARM: QUIET / ALERT label (#fbAlarm) are hidden in PLAY (their elements stay: factory.js reads chapEl.hidden as the chapter flag) */
/* v153 (the owner: "add STEALTH and ACTIONS graphs to the live graphs at the top ... Make the graphs block the same width as the
   character sheet."): five squares in a block --sh-w (375px, world.css) wide at the right edge (right 0), so it lines up with the
   character sheet (#wSheet: right 0, --sh-w wide) under it; a square is (--sh-w - 4 gaps of 3px) / 5 */
body[data-tool=play] #rrVitals { position: fixed; right: 0; top: 58px; z-index: 21; width: var(--sh-w, 375px); grid-template-columns: repeat(5, 1fr); }
body[data-tool=play] #rbRight { top: calc(58px + (var(--sh-w, 375px) - 12px) / 5 + 10px); }
body[data-tool=play] #rbCount, body[data-tool=play] #chapLabel, body[data-tool=play] #fbAlarm { display: none; }
body.rrEmbed[data-tool=play] #rrVitals { top: 10px; } body.rrEmbed[data-tool=play] #rbRight { top: calc(10px + (var(--sh-w, 375px) - 12px) / 5 + 10px); }
/* v157 (the owner: "compass is being covered by char/stat sheet in PLAY. Move it left so it clears the right panel."): in PLAY the
   rose (compass.js, fixed bottom right) sits 16px left of the --sh-w (375px) right column (graphs + #wSheet) and 80px up, above the
   bottom #playBar (16px off the bottom, 50px tall, 932px wide centred: at 1400px wide it reaches under the rose) */
body[data-tool=play] #rrCompass { right: calc(var(--sh-w, 375px) + 16px); bottom: 80px; }
/* v120: RESET in the ? HELP box (the owner: "remove the EXPLORE - TURN n - RESET box from the top right in PLAY.") */
#fbHelpPanel #fbHelpReset { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }   /* v121: RESET, SAVE, QUICKSAVE, LOAD */
#fbHelpPanel #fbHelpReset button { background: rgba(0,0,0,.8); border: 1px solid var(--ui); color: var(--ui); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .14em; padding: 6px 12px; cursor: pointer; }
#fbHelpPanel #fbHelpReset button:hover { background: var(--ui); color: #000; }
/* v120: the refused action's shake on PLAY's bar (the TEST box it shook is hidden in PLAY); the bar keeps its translateX(-50%) centring */
#playBar.nope { animation: barNope .35s ease-out; }
@keyframes barNope { 0%, 100% { transform: translateX(-50%); } 25% { transform: translateX(calc(-50% - 5px)); } 75% { transform: translateX(calc(-50% + 5px)); } }
/* v120 CLICK CALLOUTS (the owner: "callout cards with lines that form up around the edges of the screen and slide to avoid overlapping other cards or UI elements"): one card per clicked bot, each with an X */
#rbCallouts .rbCallout { pointer-events: auto; }
.rbCallout .rbcX { position: absolute; top: 5px; right: 6px; background: none; border: 1px solid var(--rbc); color: var(--rbc); font: inherit; font-size: 10px; line-height: 1; padding: 2px 5px; cursor: pointer; }
.rbCallout .rbcX:hover { background: var(--rbc); color: #000; }
/* SERVERS ONLINE (v137, factory.js showServers): one line under the HP / ENERGY / MOVE graphs, the whole width of #rrVitals; the
   right column moves down a line while it shows */
#rrServers { grid-column: 1 / -1; box-sizing: border-box; padding: 3px 6px; background: rgba(0,0,0,.8); border: 1px solid color-mix(in srgb, var(--ui, #4cc9ff) 35%, transparent);
  color: var(--ui, #4cc9ff); font-size: 10px; font-weight: 700; letter-spacing: .14em; white-space: nowrap; text-shadow: 0 0 5px var(--ui, #4cc9ff); }
#rrServers[hidden] { display: none; }
body.rrHasServers[data-tool=play] #rbRight { top: calc(58px + (var(--sh-w, 375px) - 12px) / 5 + 34px); }
body.rrHasServers.rrEmbed[data-tool=play] #rbRight { top: calc(10px + (var(--sh-w, 375px) - 12px) / 5 + 34px); }
/* SOUND ON / OFF (v151, factory.js botvoice): was a line under the graphs; v153 (the owner: "sound on/off toggle should go in the left
   button bar, not under graphs at top right."): a .rbSq square in #rbLeft (speaker icon, lit while on), no rules of its own */

/* v153 SWOOP: DATACENTER BUILDER's level view flying onto one bot hides the name tags */
body.fbFocus .fbTag { display: none !important; }
/* v153c: inside DATACENTER BUILDER the sheet's stat block holds every total; the builder's TOTALS box goes */
body.rrEmbed.mob #rbTotals { display: none !important; }
/* v153f BULK BAR: inside DATACENTER BUILDER the SELECTED box is a bar of DELETE / GROUP / UNGROUP, centred at the top of the view
   just under the page's blue rule (the frame's top); its title, hint and the hidden MOVE / ROTATE buttons stay out of it */
body.rrEmbed #tb-select.fbBulkBar { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); z-index: 30; width: auto; display: flex; flex-wrap: nowrap; gap: 6px; padding: 5px 8px; background: rgba(0, 0, 0, .85); border: 1px solid var(--ui); box-sizing: border-box; }
body.rrEmbed #tb-select.fbBulkBar[hidden] { display: none; }
body.rrEmbed #tb-select.fbBulkBar > :not(#fbSelDel):not(#fbGroup):not(#fbUngroup) { display: none !important; }
body.rrEmbed #tb-select.fbBulkBar > button[hidden] { display: none !important; }
body.rrEmbed #tb-select.fbBulkBar > button { min-width: 72px !important; padding: 0 10px !important; height: 26px; }
/* v153g (the owner: "remove the "DATACENTER 1-1" stuff to the bottom of the viewer, and remove the tutorial tip"): inside
   DATACENTER BUILDER the level line (name · size · cubes) sits centred at the bottom of the view, without the mouse / key hint */
body.rrEmbed.factory #rbCount { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 20; margin: 0; text-align: center; white-space: nowrap; pointer-events: none; }
body.rrEmbed.factory #rbCount br, body.rrEmbed.factory #rbCount .fbHelp { display: none; }
