/* The Graphics panel (js/hood/ui/gfxpanel.js) and the frame-rate readout (gfx.js), over the Neighborhood and the
   Map Editor alike. */
.gfx-panel { position: fixed; z-index: 70; right: calc(var(--m) + env(safe-area-inset-right)); top: calc(var(--m) * .8 + env(safe-area-inset-top) + 34px);
  width: min(340px, calc(100vw - 24px)); padding: 14px 16px 12px; border-radius: 14px; border: 1px solid var(--line-2, rgb(238 236 230 / .24));
  background: rgb(8 8 13 / .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 18px 50px rgb(0 0 0 / .45);
  font: 400 12px/1.45 var(--mono); color: var(--ink, #eeece6); }
.gfx-panel[hidden] { display: none; }
body.nb-editing .gfx-panel { top: 58px; right: 12px; }
.gfx-panel header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gfx-panel h3 { margin: 0; font: 400 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.gfx-panel header button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2, rgb(238 236 230 / .76)); font-size: 18px; cursor: pointer; }
.gfx-panel header button:hover { background: rgb(255 255 255 / .07); color: var(--ink, #fff); }
.gfx-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gfx-presets button, .gfx-seg button { height: 30px; border-radius: 7px; border: 1px solid rgb(238 236 230 / .14); background: rgb(255 255 255 / .03); color: var(--ink-2, rgb(238 236 230 / .76));
  font: 400 11px/1 var(--mono); letter-spacing: .06em; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.gfx-presets button { height: 34px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.gfx-presets button:hover, .gfx-seg button:hover { color: var(--ink, #fff); border-color: rgb(238 236 230 / .3); }
.gfx-presets button.on, .gfx-seg button.on { color: #0b0b10; background: var(--ink, #eeece6); border-color: var(--ink, #eeece6); }
body.nb-editing .gfx-presets button.on, body.nb-editing .gfx-seg button.on { background: #38d9ff; border-color: #38d9ff; color: #04121a; }
.gfx-note { margin: 8px 0 10px; font-size: 10.5px; color: var(--ink-3, rgb(238 236 230 / .56)); }
.gfx-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 8px; margin: 6px 0; }
.gfx-row > span { font-size: 11px; color: var(--ink-2, rgb(238 236 230 / .76)); }
.gfx-seg { display: flex; gap: 3px; }
.gfx-seg button { flex: 1; min-width: 0; height: 26px; padding: 0 4px; }
.gfx-fps { position: fixed; z-index: 65; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 3px 9px; border-radius: 6px; background: rgb(0 0 0 / .55);
  font: 400 10.5px/1.3 var(--mono); color: #b8ffcf; pointer-events: none; letter-spacing: .04em; }
body.nb-editing .gfx-fps { bottom: 32px; }

/* what the picture's stages cost (gfx.js statsMeter) */
.gfx-stats { left: 8px; top: 8px; bottom: auto; transform: none; white-space: pre; text-align: left; line-height: 1.5; pointer-events: none; max-width: calc(100vw - 16px); overflow: hidden; }
body.nb-editing .gfx-stats { bottom: auto; top: 58px; }
