/* Dusk Gilt letterbox bars (room ui-kit, 18 Nov 2026; docs/aspect/solution.md): the page area outside #frame, for every
   player, flag or not. Pure CSS: a navy gradient, and a 1 px gilt hairline just outside the frame edge with a bead at the middle
   of each edge that has a bar. No images, no animation, no blur, no transform: painted once, nothing composited.
   Needs <html class="k-bars"> (linked from <head>) and src/frame.js's --fx / --fy / --fw / --fh (the frame's left / top / width /
   height in CSS px, on :root). Without the vars only the gradient shows; without the class the page keeps frame.css's plain
   #0c1020. Uses ONE pseudo-element, body::after (body::before is hud.css's blurred map behind portrait battles). */
html.k-bars{background:#0c1020 linear-gradient(180deg,#14163a 0%,#0c1020 55%,#07061a 100%) no-repeat;background-size:100% 100%;min-height:100%}
html.k-bars body{background:transparent}
/* one box 5 px larger than the frame on every side, drawn behind #frame (z-index 1): its 4 hairlines sit 1 px outside the frame
   edge (4 px in from the box edge), and its 4 beads at the edges' midpoints. A bead whose side has no bar (the frame touches the
   screen there) is sized 0. */
html.k-bars body::after{content:"";position:fixed;pointer-events:none;z-index:0;
  left:calc(var(--fx,-99999px) - 5px);top:calc(var(--fy,0px) - 5px);width:calc(var(--fw,0px) + 10px);height:calc(var(--fh,0px) + 10px);
  --g:rgba(160,122,46,.5);--G:rgba(233,201,124,.85);
  --h:linear-gradient(90deg,transparent,var(--g) 16%,var(--G) 50%,var(--g) 84%,transparent);
  --v:linear-gradient(180deg,transparent,var(--g) 16%,var(--G) 50%,var(--g) 84%,transparent);
  --b:radial-gradient(circle,#fff0c4 0 1.4px,#e9c97c 1.6px 2.6px,rgba(233,201,124,0) 3.2px);
  --bv:min(9px,calc(var(--fy,0px) * 9));--bh:min(9px,calc(var(--fx,0px) * 9));
  background:
    var(--b) center top/var(--bv) var(--bv) no-repeat,var(--b) center bottom/var(--bv) var(--bv) no-repeat,
    var(--b) left center/var(--bh) var(--bh) no-repeat,var(--b) right center/var(--bh) var(--bh) no-repeat,
    var(--h) left 4px top 4px/calc(100% - 8px) 1px no-repeat,var(--h) left 4px bottom 4px/calc(100% - 8px) 1px no-repeat,
    var(--v) left 4px top 4px/1px calc(100% - 8px) no-repeat,var(--v) right 4px top 4px/1px calc(100% - 8px) no-repeat}
