/*
  Close the World: a theme for bunnyhop.lol custom CSS (https://bunnyhop.lol/custom-css) after Serial Experiments
  Lain. Every menu is a window from a late-90s desktop: platinum grey chrome, pinstriped title bars, close boxes and
  bevels, over a near-black screen with ordered dithering, scanlines and a little static. Utility poles and power
  lines stand behind the main menu. In game the HUD is a terminal readout with a blinking cursor, and the static
  thickens the faster you go. Pale bone text in a dot-matrix face; one deep red, used sparingly.
  Players paste a short file that imports this one and sets the options:

    @import url(https://bunnyhop.lol/custom-css/themes/lain.css);
    :root { --lain-red: #c8102e; --lain-crt: 1; --lain-art-on: 1; --lain-art: url(https://...png); --lain-art-size: 1; }

  Options:
    --lain-red       the accent: the cursor, the chosen entry, close boxes, badges: #c8102e, #e3243f brighter, #8e0c22 darker
    --lain-crt       scanlines, dither and static: 1 is normal, 0 turns them off, 1.5 for more
    --lain-art-on    1 shows the picture in the corner, 0 hides it
    --lain-art       the picture, any image link: url(https://...png). A transparent background looks best. Nothing shows
                     until one is set.
    --lain-art-size  1 is normal, above 1 makes the picture bigger (1.3)

  Fonts: DotGothic16 and DM Mono (SIL Open Font License,
  https://bunnyhop.lol/custom-css/themes/lain-dotgothic-OFL.txt and
  https://bunnyhop.lol/custom-css/themes/lain-dmmono-OFL.txt).
  Nothing from the show is hosted here: the poles, wires, dither and chrome are drawn in CSS and SVG; the picture is a
  link the player chooses. Everything here uses the hooks the guide promises unless a comment says the class names may
  change.
*/

@font-face { font-family: "Lain Dot"; src: url(https://bunnyhop.lol/custom-css/themes/lain-dotgothic.woff2) format("woff2"); }
@font-face { font-family: "Lain Mono"; font-weight: 100 449; src: url(https://bunnyhop.lol/custom-css/themes/lain-dmmono-400.woff2) format("woff2"); }
@font-face { font-family: "Lain Mono"; font-weight: 450 1000; src: url(https://bunnyhop.lol/custom-css/themes/lain-dmmono-500.woff2) format("woff2"); }

:root {
  /* Options (the pasted file sets these). No picture unless one is set: a transparent pixel. */
  --lain-red: #c8102e;
  --lain-crt: 1;
  --lain-art-on: 1;
  --lain-art: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
  --lain-art-size: 1;

  --ln-red: var(--lain-red);
  --ln-red-hi: color-mix(in srgb, var(--lain-red) 78%, #fff);
  --ln-red-deep: color-mix(in srgb, var(--lain-red) 62%, #000);
  --ln-void: #0a0a0b;
  --ln-void-2: #121214;
  --ln-void-3: #1c1c1f;
  --ln-bone: #e3ded0;
  --ln-bone-2: #aaa596;
  --ln-bone-3: #6e6b62;
  /* The platinum chrome: face, highlight, shadow, and the ink on it. */
  --ln-plat: #bcbbb4;
  --ln-plat-hi: #efeee9;
  --ln-plat-lo: #7a7973;
  --ln-plat-ink: #111;
  --ln-dot: "Lain Dot", "MS Gothic", "Osaka-Mono", monospace;
  --ln-mono: "Lain Mono", "Courier New", monospace;
  /* Bevels: raised (buttons, frames) and sunk (wells, fields). */
  --ln-raised: inset 1px 1px 0 var(--ln-plat-hi), inset -1px -1px 0 var(--ln-plat-lo), 0 0 0 1px #000;
  --ln-sunk: inset 1px 1px 0 var(--ln-plat-lo), inset -1px -1px 0 var(--ln-plat-hi);
  /* The close box: a small square sunk into the chrome. */
  --ln-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13' shape-rendering='crispEdges'%3E%3Crect width='13' height='13' fill='%23bcbbb4'/%3E%3Cpath d='M0 0h12v1H1v11H0z' fill='%23000'/%3E%3Cpath d='M12 0h1v13H0v-1h12z' fill='%23efeee9'/%3E%3Cpath d='M1 1h10v1H2v9H1z' fill='%23efeee9'/%3E%3Cpath d='M11 1h1v11H1v-1h10z' fill='%237a7973'/%3E%3C/svg%3E");
  /* A title bar: a box at each end, pinstripes between them. Each window puts its title on a face-coloured block
     (a layer of its own, or the title's own background) over the stripes. */
  --ln-bar:
    var(--ln-close) 0.5rem 50% / 0.8rem 0.8rem no-repeat,
    var(--ln-close) right 0.5rem top 50% / 0.8rem 0.8rem no-repeat,
    repeating-linear-gradient(180deg, var(--ln-plat-lo) 0 1px, var(--ln-plat-hi) 1px 2px) 50% 50% / calc(100% - 3.4rem) 0.7rem no-repeat,
    var(--ln-plat);
  --ln-bar-edge: inset 1px 1px 0 var(--ln-plat-hi), inset -1px -1px 0 var(--ln-plat-lo), 0 0 0 1px #000;
  /* A window: the platinum frame round a black well, and a hard shadow. */
  --ln-window: 0 0 0 0.4rem var(--ln-plat), 0 0 0 calc(0.4rem + 1px) #000, 0.95rem 0.95rem 0 rgba(0, 0, 0, 0.5);
  /* Ordered dither (Bayer 4x4) tiles, white dots on clear, for masks: 2 and 4 of 16 dots lit. */
  --ln-shade-2: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAEAQMAAACTPww9AAAABlBMVEVMaXH///+a4ocPAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAD6AAAA+gBtXtSawAAABBJREFUCNdjaGBgYFBgYAAAA+gAoRKK458AAAAASUVORK5CYII=");
  --ln-shade-4: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAEAQMAAACTPww9AAAABlBMVEVMaXH///+a4ocPAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAD6AAAA+gBtXtSawAAABBJREFUCNdjWMDAwLCAgQEABkgBQbX6rtYAAAAASUVORK5CYII=");
  /* The night sky behind the main menu: an ordered-dither ramp, bone dots thinning out downwards (4 x 300). */
  --ln-sky: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAEsAQMAAADet4DSAAAABlBMVEXW0cNMaXFb0LQcAAAAAnRSTlN4AJF1PsYAAAAJcEhZcwAAA+gAAAPoAbV7UmsAAAAiSURBVCjPYwhg2MAQwPCAgTr0ByrStMMXaEgX0JH+MHhpACB101GW7Qo9AAAAAElFTkSuQmCC");
  /* Utility poles and power lines, black silhouettes (viewBox 1600 x 900, the poles run off the bottom). */
  --ln-poles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cg fill='none' stroke='%23000'%3E%3Cpath d='M509 73.6Q756.7 163.4 1004.5 164' stroke-width='1.6'/%3E%3Cpath d='M-60 143.6Q224.5 148.4 509 73.6' stroke-width='1.8'/%3E%3Cpath d='M596.3 73.6Q822.2 159.5 1048.2 164' stroke-width='1.6'/%3E%3Cpath d='M-60 152.6Q268.2 159 596.3 73.6' stroke-width='1.8'/%3E%3Cpath d='M683.7 73.6Q887.8 155.5 1091.8 164' stroke-width='1.6'/%3E%3Cpath d='M-60 161.6Q311.8 169.7 683.7 73.6' stroke-width='1.8'/%3E%3Cpath d='M771 73.6Q953.3 151.6 1135.5 164' stroke-width='1.6'/%3E%3Cpath d='M-60 170.6Q355.5 180.3 771 73.6' stroke-width='1.8'/%3E%3Cpath d='M546.8 143.6Q785.1 215.6 1023.4 201.8' stroke-width='1.6'/%3E%3Cpath d='M-60 213.6Q243.4 221.1 546.8 143.6' stroke-width='1.8'/%3E%3Cpath d='M608.9 143.6Q831.7 212.8 1054.5 201.8' stroke-width='1.6'/%3E%3Cpath d='M-60 222.6Q274.5 229.9 608.9 143.6' stroke-width='1.8'/%3E%3Cpath d='M671.1 143.6Q878.3 210 1085.5 201.8' stroke-width='1.6'/%3E%3Cpath d='M-60 231.6Q305.5 238.8 671.1 143.6' stroke-width='1.8'/%3E%3Cpath d='M733.2 143.6Q924.9 207.2 1116.6 201.8' stroke-width='1.6'/%3E%3Cpath d='M-60 240.6Q336.6 247.6 733.2 143.6' stroke-width='1.8'/%3E%3Cpath d='M1004.5 164Q1194.6 133.5 1384.8 27' stroke-width='1.5'/%3E%3Cpath d='M1048.2 164Q1284.9 142.8 1521.6 27' stroke-width='1.5'/%3E%3Cpath d='M1091.8 164Q1375.1 152.2 1658.4 27' stroke-width='1.5'/%3E%3Cpath d='M1135.5 164Q1465.4 161.5 1795.2 27' stroke-width='1.5'/%3E%3Cpath d='M1023.4 201.8Q1229.7 208.9 1436.1 133.4' stroke-width='1.5'/%3E%3Cpath d='M1054.5 201.8Q1296.6 216 1538.7 133.4' stroke-width='1.5'/%3E%3Cpath d='M1085.5 201.8Q1363.4 223.2 1641.3 133.4' stroke-width='1.5'/%3E%3Cpath d='M1116.6 201.8Q1430.3 230.3 1743.9 133.4' stroke-width='1.5'/%3E%3Cpath d='M1384.8 27Q1542.4 75.9 1700 87' stroke-width='2.2'/%3E%3Cpath d='M1521.6 27Q1610.8 69.7 1700 91' stroke-width='2.2'/%3E%3Cpath d='M1658.4 27Q1679.2 63.5 1700 95' stroke-width='2.2'/%3E%3Cpath d='M1795.2 27Q1747.6 68.7 1700 99' stroke-width='2.2'/%3E%3Cpath d='M1436.1 133.4Q1568.1 179.2 1700 193.4' stroke-width='2.2'/%3E%3Cpath d='M1538.7 133.4Q1619.4 175.1 1700 197.4' stroke-width='2.2'/%3E%3Cpath d='M1641.3 133.4Q1670.7 170.9 1700 201.4' stroke-width='2.2'/%3E%3Cpath d='M1743.9 133.4Q1722 172 1700 205.4' stroke-width='2.2'/%3E%3Cpath d='M640 418Q855 451.6 1070 339' stroke-width='3.2'/%3E%3Cpath d='M-60 508Q290 547 640 418' stroke-width='3'/%3E%3Cpath d='M640 460Q855 483.1 1070 360' stroke-width='2.2'/%3E%3Cpath d='M-60 564Q290 596 640 460' stroke-width='2'/%3E%3Cpath d='M1070 339Q1330 484.7 1590 464' stroke-width='2.2'/%3E%3Cpath d='M1070 360Q1330 495.2 1590 464' stroke-width='1.6'/%3E%3C/g%3E%3Cg%3E%3Cpath d='M624.6 960L630.2 40h19.6L655.4 960z'/%3E%3Crect x='628.1' y='34.4' width='23.8' height='7'/%3E%3Crect x='494.4' y='87.6' width='291.2' height='8.4'/%3E%3Cpath d='M559.9 96L640 135.2M720.1 96L640 135.2' fill='none' stroke='%23000' stroke-width='3.4'/%3E%3Crect x='504.5' y='72.2' width='9' height='15.4' rx='2.8'/%3E%3Crect x='502.5' y='77.8' width='12.9' height='3.1'/%3E%3Crect x='591.8' y='72.2' width='9' height='15.4' rx='2.8'/%3E%3Crect x='589.9' y='77.8' width='12.9' height='3.1'/%3E%3Crect x='679.2' y='72.2' width='9' height='15.4' rx='2.8'/%3E%3Crect x='677.2' y='77.8' width='12.9' height='3.1'/%3E%3Crect x='766.6' y='72.2' width='9' height='15.4' rx='2.8'/%3E%3Crect x='764.6' y='77.8' width='12.9' height='3.1'/%3E%3Crect x='536.4' y='157.6' width='207.2' height='8.4'/%3E%3Cpath d='M583 166L640 205.2M697 166L640 205.2' fill='none' stroke='%23000' stroke-width='3.4'/%3E%3Crect x='542.3' y='142.2' width='9' height='15.4' rx='2.8'/%3E%3Crect x='540.3' y='147.8' width='12.9' height='3.1'/%3E%3Crect x='604.4' y='142.2' width='9' height='15.4' rx='2.8'/%3E%3Crect x='602.5' y='147.8' width='12.9' height='3.1'/%3E%3Crect x='666.6' y='142.2' width='9' height='15.4' rx='2.8'/%3E%3Crect x='664.6' y='147.8' width='12.9' height='3.1'/%3E%3Crect x='728.8' y='142.2' width='9' height='15.4' rx='2.8'/%3E%3Crect x='726.8' y='147.8' width='12.9' height='3.1'/%3E%3Crect x='649.8' y='261.2' width='11.2' height='5.6'/%3E%3Crect x='649.8' y='311.6' width='11.2' height='5.6'/%3E%3Crect x='658.2' y='250' width='36.4' height='81.2' rx='4.2'/%3E%3Crect x='654.7' y='245.8' width='43.4' height='8.4' rx='2.8'/%3E%3Crect x='655.4' y='269.6' width='42' height='4.2'/%3E%3Crect x='655.4' y='303.2' width='42' height='4.2'/%3E%3Cpath d='M668 245.8C668 208 682 199.6 702.2 157.6M684.8 245.8C687.6 194 743.6 213.6 733.2 157.6' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3Crect x='640' y='362' width='18.2' height='3.6'/%3E%3Crect x='621.8' y='395.6' width='18.2' height='3.6'/%3E%3Crect x='640' y='429.2' width='18.2' height='3.6'/%3E%3Crect x='621.8' y='462.8' width='18.2' height='3.6'/%3E%3Crect x='640' y='496.4' width='18.2' height='3.6'/%3E%3Crect x='621.8' y='530' width='18.2' height='3.6'/%3E%3Crect x='640' y='563.6' width='18.2' height='3.6'/%3E%3Crect x='621.8' y='597.2' width='18.2' height='3.6'/%3E%3Crect x='640' y='630.8' width='18.2' height='3.6'/%3E%3Crect x='621.8' y='664.4' width='18.2' height='3.6'/%3E%3Crect x='640' y='698' width='18.2' height='3.6'/%3E%3Crect x='621.8' y='731.6' width='18.2' height='3.6'/%3E%3Crect x='640' y='765.2' width='18.2' height='3.6'/%3E%3Crect x='621.8' y='798.8' width='18.2' height='3.6'/%3E%3Crect x='640' y='832.4' width='18.2' height='3.6'/%3E%3Crect x='621.8' y='866' width='18.2' height='3.6'/%3E%3Crect x='640' y='899.6' width='18.2' height='3.6'/%3E%3Crect x='624.6' y='415.2' width='30.8' height='7'/%3E%3Crect x='624.6' y='457.2' width='30.8' height='7'/%3E%3Cpath d='M1062.3 960L1065.1 150h9.8L1077.7 960z'/%3E%3Crect x='1064.1' y='147.2' width='11.9' height='3.5'/%3E%3Crect x='997.2' y='171' width='145.6' height='4.2'/%3E%3Cpath d='M1030 175.2L1070 194.8M1110 175.2L1070 194.8' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3Crect x='1002.2' y='163.3' width='4.5' height='7.7' rx='1.4'/%3E%3Crect x='1001.3' y='166.1' width='6.4' height='1.5'/%3E%3Crect x='1045.9' y='163.3' width='4.5' height='7.7' rx='1.4'/%3E%3Crect x='1044.9' y='166.1' width='6.4' height='1.5'/%3E%3Crect x='1089.6' y='163.3' width='4.5' height='7.7' rx='1.4'/%3E%3Crect x='1088.6' y='166.1' width='6.4' height='1.5'/%3E%3Crect x='1133.3' y='163.3' width='4.5' height='7.7' rx='1.4'/%3E%3Crect x='1132.3' y='166.1' width='6.4' height='1.5'/%3E%3Crect x='1018.2' y='208.8' width='103.6' height='4.2'/%3E%3Cpath d='M1041.5 213L1070 232.6M1098.5 213L1070 232.6' fill='none' stroke='%23000' stroke-width='1.7'/%3E%3Crect x='1021.1' y='201.1' width='4.5' height='7.7' rx='1.4'/%3E%3Crect x='1020.2' y='203.9' width='6.4' height='1.5'/%3E%3Crect x='1052.2' y='201.1' width='4.5' height='7.7' rx='1.4'/%3E%3Crect x='1051.2' y='203.9' width='6.4' height='1.5'/%3E%3Crect x='1083.3' y='201.1' width='4.5' height='7.7' rx='1.4'/%3E%3Crect x='1082.3' y='203.9' width='6.4' height='1.5'/%3E%3Crect x='1114.4' y='201.1' width='4.5' height='7.7' rx='1.4'/%3E%3Crect x='1113.4' y='203.9' width='6.4' height='1.5'/%3E%3Crect x='1074.9' y='260.6' width='5.6' height='2.8'/%3E%3Crect x='1074.9' y='285.8' width='5.6' height='2.8'/%3E%3Crect x='1079.1' y='255' width='18.2' height='40.6' rx='2.1'/%3E%3Crect x='1077.4' y='252.9' width='21.7' height='4.2' rx='1.4'/%3E%3Crect x='1077.7' y='264.8' width='21' height='2.1'/%3E%3Crect x='1077.7' y='281.6' width='21' height='2.1'/%3E%3Cpath d='M1084 252.9C1084 234 1091 229.8 1101.1 208.8M1092.4 252.9C1093.8 227 1121.8 236.8 1116.6 208.8' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3Crect x='1070' y='311' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='327.8' width='9.1' height='1.8'/%3E%3Crect x='1070' y='344.6' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='361.4' width='9.1' height='1.8'/%3E%3Crect x='1070' y='378.2' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='395' width='9.1' height='1.8'/%3E%3Crect x='1070' y='411.8' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='428.6' width='9.1' height='1.8'/%3E%3Crect x='1070' y='445.4' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='462.2' width='9.1' height='1.8'/%3E%3Crect x='1070' y='479' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='495.8' width='9.1' height='1.8'/%3E%3Crect x='1070' y='512.6' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='529.4' width='9.1' height='1.8'/%3E%3Crect x='1070' y='546.2' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='563' width='9.1' height='1.8'/%3E%3Crect x='1070' y='579.8' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='596.6' width='9.1' height='1.8'/%3E%3Crect x='1070' y='613.4' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='630.2' width='9.1' height='1.8'/%3E%3Crect x='1070' y='647' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='663.8' width='9.1' height='1.8'/%3E%3Crect x='1070' y='680.6' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='697.4' width='9.1' height='1.8'/%3E%3Crect x='1070' y='714.2' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='731' width='9.1' height='1.8'/%3E%3Crect x='1070' y='747.8' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='764.6' width='9.1' height='1.8'/%3E%3Crect x='1070' y='781.4' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='798.2' width='9.1' height='1.8'/%3E%3Crect x='1070' y='815' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='831.8' width='9.1' height='1.8'/%3E%3Crect x='1070' y='848.6' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='865.4' width='9.1' height='1.8'/%3E%3Crect x='1070' y='882.2' width='9.1' height='1.8'/%3E%3Crect x='1060.9' y='899' width='9.1' height='1.8'/%3E%3Crect x='1062.3' y='337.6' width='15.4' height='3.5'/%3E%3Crect x='1062.3' y='358.6' width='15.4' height='3.5'/%3E%3Cpath d='M1569.1 960L1576.7 -30h26.6L1610.9 960z'/%3E%3Crect x='1573.9' y='-37.6' width='32.3' height='9.5'/%3E%3Crect x='1362' y='46' width='456' height='11.4'/%3E%3Cpath d='M1464.6 57.4L1590 110.6M1715.4 57.4L1590 110.6' fill='none' stroke='%23000' stroke-width='4.6'/%3E%3Crect x='1378.7' y='25.1' width='12.2' height='20.9' rx='3.8'/%3E%3Crect x='1376.1' y='32.7' width='17.5' height='4.2'/%3E%3Crect x='1515.5' y='25.1' width='12.2' height='20.9' rx='3.8'/%3E%3Crect x='1512.9' y='32.7' width='17.5' height='4.2'/%3E%3Crect x='1652.3' y='25.1' width='12.2' height='20.9' rx='3.8'/%3E%3Crect x='1649.7' y='32.7' width='17.5' height='4.2'/%3E%3Crect x='1789.1' y='25.1' width='12.2' height='20.9' rx='3.8'/%3E%3Crect x='1786.5' y='32.7' width='17.5' height='4.2'/%3E%3Crect x='1419' y='152.4' width='342' height='11.4'/%3E%3Cpath d='M1496 163.8L1590 217M1684.1 163.8L1590 217' fill='none' stroke='%23000' stroke-width='4.6'/%3E%3Crect x='1430' y='131.5' width='12.2' height='20.9' rx='3.8'/%3E%3Crect x='1427.4' y='139.1' width='17.5' height='4.2'/%3E%3Crect x='1532.6' y='131.5' width='12.2' height='20.9' rx='3.8'/%3E%3Crect x='1530' y='139.1' width='17.5' height='4.2'/%3E%3Crect x='1635.2' y='131.5' width='12.2' height='20.9' rx='3.8'/%3E%3Crect x='1632.6' y='139.1' width='17.5' height='4.2'/%3E%3Crect x='1737.8' y='131.5' width='12.2' height='20.9' rx='3.8'/%3E%3Crect x='1735.2' y='139.1' width='17.5' height='4.2'/%3E%3Crect x='1590' y='350' width='24.7' height='4.9'/%3E%3Crect x='1565.3' y='395.6' width='24.7' height='4.9'/%3E%3Crect x='1590' y='441.2' width='24.7' height='4.9'/%3E%3Crect x='1565.3' y='486.8' width='24.7' height='4.9'/%3E%3Crect x='1590' y='532.4' width='24.7' height='4.9'/%3E%3Crect x='1565.3' y='578' width='24.7' height='4.9'/%3E%3Crect x='1590' y='623.6' width='24.7' height='4.9'/%3E%3Crect x='1565.3' y='669.2' width='24.7' height='4.9'/%3E%3Crect x='1590' y='714.8' width='24.7' height='4.9'/%3E%3Crect x='1565.3' y='760.4' width='24.7' height='4.9'/%3E%3Crect x='1590' y='806' width='24.7' height='4.9'/%3E%3Crect x='1565.3' y='851.6' width='24.7' height='4.9'/%3E%3Crect x='1590' y='897.2' width='24.7' height='4.9'/%3E%3Crect x='1569.1' y='460.2' width='41.8' height='9.5'/%3E%3Cpath transform='translate(748 97.1) scale(1.7 1.7)' d='M0-1C-2-6 2-11 6-11c1-3 5-3 6 0l3 1-3 1c0 4-2 8-6 10l-2 1 1 3h-1l-1-3-2 0 1 3h-1l-1-3C-1 1-5 3-9 6c2-3 5-6 9-7z'/%3E%3Cpath transform='translate(800 113.8) scale(-1.55 1.55)' d='M0-1C-2-6 2-11 6-11c1-3 5-3 6 0l3 1-3 1c0 4-2 8-6 10l-2 1 1 3h-1l-1-3-2 0 1 3h-1l-1-3C-1 1-5 3-9 6c2-3 5-6 9-7z'/%3E%3Cpath transform='translate(915 142.4) scale(1.65 1.65)' d='M0-1C-2-6 2-11 6-11c1-3 5-3 6 0l3 1-3 1c0 4-2 8-6 10l-2 1 1 3h-1l-1-3-2 0 1 3h-1l-1-3C-1 1-5 3-9 6c2-3 5-6 9-7z'/%3E%3Cpath transform='translate(1300 173.7) scale(-1.8 1.8)' d='M0-1C-2-6 2-11 6-11c1-3 5-3 6 0l3 1-3 1c0 4-2 8-6 10l-2 1 1 3h-1l-1-3-2 0 1 3h-1l-1-3C-1 1-5 3-9 6c2-3 5-6 9-7z'/%3E%3C/g%3E%3C/svg%3E");
  /* Static: grain in bone, mostly clear. */
  --ln-static: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='1' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .89 0 0 0 0 .87 0 0 0 0 .82 0 0 0 3 -1.55'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  /* CRT scanlines: one dark line every three pixels. */
  --ln-scan: repeating-linear-gradient(180deg, transparent 0 2px, rgba(0, 0, 0, calc(0.2 * var(--lain-crt))) 2px 3px);

  --ink-0: var(--ln-void);
  --ink-1: var(--ln-void-2);
  --ink-2: var(--ln-void-3);
  --ink-3: #26262a;
  --ink-4: #34343a;
  --cream: var(--ln-bone);
  --cream-2: var(--ln-bone-2);
  --cream-3: var(--ln-bone-3);
  --amber: var(--lain-red);
  --amber-hi: var(--ln-red-hi);
  --amber-deep: var(--ln-red-deep);
  --amber-ink: var(--ln-bone);
  --amber-wash: color-mix(in srgb, var(--lain-red) 14%, transparent);
  --accent: var(--lain-red);
  --carrot: #d9673a;
  --wr: #e8d9a0;
  --gain: #86d99c;
  --loss: #ff4b5f;
  --sync-ok: #d9cf9a;
  --zone-start: #9fd6b0;
  --ghost: #9fb8d6;
  --scrim: rgba(6, 6, 7, 0.86);
  --font-ui: var(--ln-dot);
  --font-text: var(--ln-mono);
  --hud-font: var(--ln-dot);
  --mono: var(--ln-mono);
  --r-1: 0; --r-2: 0; --r-3: 0;

  /* Variables that aren't in the reference (they may change). */
  --panel: rgba(10, 10, 11, 0.97);
  --panel-solid: var(--ln-void);
  --raise: rgba(227, 222, 208, 0.04);
  --raise-2: rgba(227, 222, 208, 0.08);
  --raise-3: rgba(227, 222, 208, 0.13);
  --line: rgba(227, 222, 208, 0.1);
  --line-2: rgba(227, 222, 208, 0.2);
  --ring: 0 0 0 1px #000, 0 0 0 3px var(--lain-red);
  --radius: 0; --radius-sm: 0; --radius-lg: 0;
  --lean: 0px;
  /* DotGothic16 has one weight: no smeared fake bold. */
  font-synthesis: none;
  scrollbar-color: var(--ln-plat) var(--ln-void);
}
::selection { background: var(--lain-red); color: var(--ln-bone); }
@keyframes ln-blink { 50% { opacity: 0; } }
@keyframes ln-jitter {
  0% { transform: translate(0, 0); } 17% { transform: translate(-61px, 23px); } 33% { transform: translate(37px, -48px); }
  50% { transform: translate(-19px, 71px); } 67% { transform: translate(83px, 11px); } 83% { transform: translate(-44px, -29px); }
}

/* ------------------------------------------------------------------ the CRT: scanlines and static over everything */

/* #custom-art covers the screen; above the menus it carries the scanlines (its background), the static (::before) and
   the picture (::after). Clicks go through it. The static thickens with the live speed in game. */
#custom-art { z-index: 30; background: var(--ln-scan); }
#custom-art::before {
  content: ""; position: absolute; inset: -120px; pointer-events: none;
  background: var(--ln-static) 0 0 / 220px 220px;
  opacity: calc(var(--lain-crt) * 0.07);
  animation: ln-jitter 0.42s steps(1) infinite;
}
body.in-game:not(.menu-open) #custom-art::before { opacity: calc(var(--lain-crt) * (0.025 + min(var(--hud-speed, 0), 1600) / 1600 * 0.13)); }
/* Potato graphics: no full-screen layers over the game. Reduced motion: no jitter, no blinking. */
body.potato #custom-art { background: none !important; }
body.potato #custom-art::before { display: none; }
@media (prefers-reduced-motion: reduce) { #custom-art::before, #hud .hud-speed::after, :is(.mb-title, .ri-label)::after { animation: none !important; } }

/* ------------------------------------------------------------------ main menu: windows under the power lines */

/* The scene behind the menu: a dithered night sky, the poles and wires in black. The live map behind it is hidden.
   (#overlay and its ::before / ::after, #grid-bg: not in the reference; they may change.) */
body[data-screen="home"] #game { visibility: hidden; }
body[data-screen="home"] #overlay::before {
  opacity: 1 !important;
  background: var(--ln-poles) right bottom / auto 100% no-repeat, var(--ln-sky) 0 0 / 8px 600px repeat-x, var(--ln-void) !important;
}
body[data-screen="home"] #overlay::after { opacity: 0 !important; }
body[data-screen="home"] #grid-bg { display: none; }

/* The name in the dot face, .lol in red, then PRESENT DAY / PRESENT TIME in place of the tagline. (.home-brand,
   .wordmark, .wm-*, .tagline, .hop-trail: class names that may change.) */
body[data-screen="home"] .hop-trail { display: none; }
body[data-screen="home"] .wordmark { font-size: 2.7rem; gap: 0.38em; color: var(--ln-bone); }
body[data-screen="home"] .wordmark .logo-mark { width: 1em; height: 1em; color: var(--ln-bone); }
body[data-screen="home"] .wordmark .wm-text { font-family: var(--ln-dot); font-weight: 400; letter-spacing: 0; text-shadow: none; }
body[data-screen="home"] .wordmark .wm-name { color: var(--ln-bone); }
body[data-screen="home"] .wordmark .wm-tld { margin-left: -0.22em; color: var(--ln-red); }
body[data-screen="home"] .tagline { margin-top: 1.05rem; font-size: 0; line-height: 0; text-shadow: none; }
body[data-screen="home"] .tagline::before {
  content: "PRESENT DAY\A PRESENT TIME"; white-space: pre; display: block;
  font: 400 1.05rem/1.6 var(--ln-dot); letter-spacing: 0.42em; color: var(--ln-bone);
}
body[data-screen="home"] .tagline::after { content: "ahahahahahaha"; display: block; margin-top: 0.35rem; font: 400 1.1rem/1.2 var(--ln-dot); letter-spacing: 0.06em; color: var(--ln-red); }
body[data-screen="home"] .tagline-sub { display: none; }

/* The menu: a window. Platinum frame, a pinstriped title bar with its boxes, a black well inside; each entry is a
   Layer, numbered. The one you point at goes inverse with a red cursor. (.home-menu, .mb-*, .hop-ind: class names
   that may change.) */
body[data-screen="home"] .hop-ind { display: none; }
body[data-screen="home"] .home-menu {
  position: relative; counter-reset: ln-layer; gap: 0; max-width: 25rem; margin: calc(clamp(1.2rem, 4.5vh, 2.8rem) + 1.75rem) 0 0; padding: 0.45rem 0.4rem;
  background: var(--ln-void); box-shadow: var(--ln-sunk), var(--ln-window);
}
body[data-screen="home"] .home-menu::before {
  content: "NAVI"; position: absolute; left: -0.4rem; right: -0.4rem; top: -1.75rem; height: 1.75rem; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  font: 400 0.95rem/1 var(--ln-dot); letter-spacing: 0.24em; color: var(--ln-plat-ink); text-indent: 0.24em;
  background: linear-gradient(var(--ln-plat), var(--ln-plat)) 50% 50% / 5.4rem 100% no-repeat, var(--ln-bar);
  box-shadow: var(--ln-bar-edge); pointer-events: none;
}
body[data-screen="home"] [data-item] { counter-increment: ln-layer; padding: 0.34rem 0.7rem 0.3rem 0.55rem; color: var(--ln-bone); background: none; transform: none; transition: none; }
body[data-screen="home"] [data-item] .mb-label { align-items: baseline; gap: 0.9rem; }
body[data-screen="home"] [data-item] .mb-label::before {
  content: "Layer:" counter(ln-layer, decimal-leading-zero); flex: none; width: 4.6rem;
  font: 400 0.78rem/1 var(--ln-mono); letter-spacing: 0.04em; color: var(--ln-bone-3);
}
body[data-screen="home"] [data-item] .mb-title { font: 400 1.3rem/1.2 var(--ln-dot); letter-spacing: 0.08em; text-transform: uppercase; text-shadow: none; }
body[data-screen="home"] [data-item] small, body[data-screen="home"] [data-item] small b { font: 400 0.8rem/1 var(--ln-mono); letter-spacing: 0.02em; color: var(--ln-bone-2); }
body[data-screen="home"] [data-item] small span:not(.cont-sub) { color: var(--ln-bone-3); }
body[data-screen="home"] [data-item]:not(:is([data-item="play"], [data-item="play-online"])):is(:hover:not(:disabled), :focus-visible) { color: var(--ln-void); background: var(--ln-bone); transform: none; box-shadow: none; }
body[data-screen="home"] [data-item]:not(:is([data-item="play"], [data-item="play-online"])):is(:hover:not(:disabled), :focus-visible) .mb-label::before { color: var(--ln-red); }
body[data-screen="home"] [data-item]:not(:is([data-item="play"], [data-item="play-online"])):is(:hover:not(:disabled), :focus-visible) :is(small, small b, small span:not(.cont-sub)) { color: #3a3934; }
body[data-screen="home"] [data-item]:is(:hover:not(:disabled), :focus-visible) .mb-title::after {
  content: ""; display: inline-block; width: 0.55em; height: 0.92em; margin-left: 0.3em; vertical-align: -0.12em;
  background: var(--ln-red); animation: ln-blink 1.06s steps(1) infinite;
}
/* Play: the default button, platinum with the heavy ring, inside the well; red when pointed at. Keyboard focus
   draws the old dotted focus box. */
body[data-screen="home"] :is([data-item="play"], [data-item="play-online"]) {
  margin: 0.5rem 0.5rem 0.9rem; padding: 0.55rem 0.8rem 0.5rem 0.5rem; color: var(--ln-plat-ink); background: var(--ln-plat); clip-path: none; transform: none;
  box-shadow: inset 1px 1px 0 var(--ln-plat-hi), inset -1px -1px 0 var(--ln-plat-lo), 0 0 0 1px #000, 0 0 0 3px var(--ln-void), 0 0 0 5px var(--ln-plat);
}
body[data-screen="home"] :is([data-item="play"], [data-item="play-online"]) .mb-label::before { color: #4f4e48; }
body[data-screen="home"] :is([data-item="play"], [data-item="play-online"]) .mb-title { font-size: 1.7rem; letter-spacing: 0.16em; }
body[data-screen="home"] :is([data-item="play"], [data-item="play-online"]) .mb-hint {
  margin-left: auto; padding: 0.18rem 0.35rem 0.12rem; font: 400 0.72rem/1 var(--ln-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ln-plat-ink); background: none; box-shadow: var(--ln-sunk);
}
body[data-screen="home"] :is([data-item="play"], [data-item="play-online"]):focus-visible {
  outline: 1px dotted var(--ln-plat-ink); outline-offset: -5px; background: var(--ln-plat); color: var(--ln-plat-ink); transform: none;
  box-shadow: inset 1px 1px 0 var(--ln-plat-hi), inset -1px -1px 0 var(--ln-plat-lo), 0 0 0 1px #000, 0 0 0 3px var(--ln-void), 0 0 0 5px var(--ln-plat);
}
body[data-screen="home"] :is([data-item="play"], [data-item="play-online"]):hover {
  color: var(--ln-bone); background: var(--ln-red); outline-color: var(--ln-bone); transform: none;
  box-shadow: inset 1px 1px 0 var(--ln-red-hi), inset -1px -1px 0 var(--ln-red-deep), 0 0 0 1px #000, 0 0 0 3px var(--ln-void), 0 0 0 5px var(--ln-plat);
}
body[data-screen="home"] :is([data-item="play"], [data-item="play-online"]):hover .mb-label::before { color: var(--ln-bone); }
body[data-screen="home"] :is([data-item="play"], [data-item="play-online"]):hover .mb-hint { color: var(--ln-bone); box-shadow: inset 1px 1px 0 var(--ln-red-deep), inset -1px -1px 0 var(--ln-red-hi); }
body[data-screen="home"] :is([data-item="play"], [data-item="play-online"]) .mb-title::after { background: var(--ln-plat-ink); }
body[data-screen="home"] :is([data-item="play"], [data-item="play-online"]):hover .mb-title::after { background: var(--ln-bone); }
body[data-screen="home"] :is([data-item="play"], [data-item="play-online"]):active { transform: none; box-shadow: inset 1px 1px 0 var(--ln-red-deep), inset -1px -1px 0 var(--ln-red-hi), 0 0 0 1px #000, 0 0 0 3px var(--ln-void), 0 0 0 5px var(--ln-plat); }
/* Play online: the label fills the window's row, so no player count or key beside it. */
body[data-screen="home"] [data-item="play-online"] :is(small, .mb-hint) { display: none; }

/* Footer: platinum push buttons; links in small mono. (.home-foot, .home-act, .home-link, .account: class names that
   may change.) */
/* The footer's buttons wrap under the name before they reach the picture in the corner (a guest's name with Save
   progress is long), so the picture never covers one. */
body[data-screen="home"] .home-foot { gap: 0.7rem; max-width: calc(37.9rem + (91vw - 70rem - clamp(9rem, 91vw - 71.5rem, 26rem)) / 2); }
body[data-screen="home"] .home-foot-row { gap: 0.6rem 1.1rem; }
body[data-screen="home"] .home-acts { gap: 0.55rem; }
body[data-screen="home"] .home-act {
  height: 2.2rem; padding: 0 0.85rem; gap: 0.45rem; border-radius: 0; color: var(--ln-plat-ink); background: var(--ln-plat); box-shadow: var(--ln-raised);
  font: 400 0.95rem/1 var(--ln-dot); letter-spacing: 0.08em; text-transform: uppercase;
}
body[data-screen="home"] .home-act svg { width: 1rem; height: 1rem; }
body[data-screen="home"] .home-act:hover, body[data-screen="home"] .home-act:focus-visible { color: var(--ln-plat-ink); background: var(--ln-plat-hi); box-shadow: var(--ln-raised); }
body[data-screen="home"] .home-act:active { transform: none; box-shadow: inset 1px 1px 0 var(--ln-plat-lo), inset -1px -1px 0 var(--ln-plat-hi), 0 0 0 1px #000; }
body[data-screen="home"] :is(.act-support svg path:last-child, .act-discord svg) { color: currentColor; fill: currentColor; }
body[data-screen="home"] .home-links { gap: 0.2rem 0.95rem; }
body[data-screen="home"] .home-link { padding: 0.2rem 0; font: 400 0.74rem var(--ln-mono); letter-spacing: 0.02em; color: var(--ln-bone-3); }
body[data-screen="home"] .home-link:hover { color: var(--ln-bone); text-decoration: underline; }
body[data-screen="home"] .account .name-btn { font: 400 1rem var(--ln-dot); letter-spacing: 0.06em; }

/* Map tiles: another window, the snapshots grey and dithered until pointed at. (.home-right, .home-grid, .home-tile*:
   class names that may change.) */
body[data-screen="home"] .home-right { padding-bottom: 2.6rem; }
body[data-screen="home"] .home-right::before {
  content: "WIRED // maps"; position: absolute; z-index: 1; inset: -2.35rem -0.6rem auto; height: 1.75rem; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  font: 400 0.95rem/1 var(--ln-dot); letter-spacing: 0.14em; color: var(--ln-plat-ink); white-space: pre;
  background: linear-gradient(var(--ln-plat), var(--ln-plat)) 50% 50% / 10.2rem 100% no-repeat, var(--ln-bar);
  box-shadow: var(--ln-bar-edge);
}
/* With the Daily Challenge on top the window is named for the day. */
body[data-screen="home"] .home-right:has(> * > #home-daily, > #home-daily)::before { content: "WIRED // today"; }
body[data-screen="home"] .home-right::after {
  content: ""; position: absolute; z-index: -1; inset: -0.6rem -0.6rem 2rem; pointer-events: none;
  background: var(--ln-void); box-shadow: var(--ln-sunk), var(--ln-window);
}
body[data-screen="home"] .home-grid { gap: 0.8rem 0.7rem; padding: 0.35rem; }
body[data-screen="home"] .home-tile { gap: 0.2rem; }
body[data-screen="home"] .home-tile-art { border-radius: 0; box-shadow: 0 0 0 1px var(--ln-bone-3); filter: grayscale(1) contrast(1.15) brightness(0.8); transition: filter 0.1s; }
body[data-screen="home"] .home-tile-art::after {
  display: block; content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(10, 10, 11, 0.55); -webkit-mask: var(--ln-shade-4) 0 0 / 4px 4px; mask: var(--ln-shade-4) 0 0 / 4px 4px; opacity: var(--lain-crt);
}
body[data-screen="home"] .home-tile:is(:hover, :focus-visible) .home-tile-art { transform: none; filter: none; box-shadow: 0 0 0 1px #000, 0 0 0 3px var(--ln-red); }
body[data-screen="home"] .home-tile:is(:hover, :focus-visible) .home-tile-art::after { opacity: 0; }
body[data-screen="home"] .home-tile-text { padding: 0.15rem 0.1rem 0.2rem; text-shadow: none; }
body[data-screen="home"] .home-tile-name b { font: 400 0.95rem/1.2 var(--ln-dot); letter-spacing: 0.03em; color: var(--ln-bone); }
body[data-screen="home"] .home-tile-tier { font: 400 0.8rem/1 var(--ln-mono); }
body[data-screen="home"] .home-tile-times { font: 400 0.82rem/1.1 var(--ln-mono); }
body[data-screen="home"] .home-tile-times small { font: 400 0.7rem var(--ln-mono); letter-spacing: 0.06em; color: var(--ln-bone-3); }
body[data-screen="home"] .home-tile-times b, body[data-screen="home"] .home-tile-times b.wr { font-weight: 400; color: var(--ln-bone-2); }

/* ------------------------------------------------------------------ the picture */

/* On the main menu it stands on the bottom of the screen in the gap between the footer and the map window (both sized
   in rem), under the wires, with a hairline of red. Pictures with a transparent background look best. --ln-gap is
   that gap, --ln-w the picture's width. */
#custom-art::after {
  content: ""; position: absolute; pointer-events: none;
  --ln-gap: calc(91vw - 70rem);
  --ln-w: calc(clamp(9rem, var(--ln-gap) - 1.5rem, 26rem) * var(--lain-art-size));
  left: calc(4.5vw + 38.5rem + (var(--ln-gap) - var(--ln-w)) / 2); bottom: 0; width: var(--ln-w); height: min(calc(var(--ln-w) * 1.7), 80vh);
  background: var(--lain-art) bottom center / contain no-repeat;
  opacity: var(--lain-art-on);
  filter: drop-shadow(1px 0 0 color-mix(in srgb, var(--lain-red) 75%, transparent)) drop-shadow(-1px 0 0 rgba(0, 0, 0, 0.7));
}
/* In game it stands small in the lower right; over the other menus it steps out. */
body.in-game:not(.menu-open) #custom-art { background: repeating-linear-gradient(180deg, transparent 0 2px, rgba(0, 0, 0, calc(0.11 * var(--lain-crt))) 2px 3px); }
body.in-game:not(.menu-open) #custom-art::after { --ln-w: calc(8.5vw * var(--lain-art-size)); left: calc(99vw - var(--ln-w)); height: calc(var(--ln-w) * 1.7); }
body:not([data-screen="home"]).menu-open #custom-art::after { display: none; }

/* ------------------------------------------------------------------ every other menu: one window each */

/* Behind them the screen goes nearly black, with a 25% dither. (The #overlay background and its ::before / ::after
   are not in the reference; they may change.) */
body:not(.in-game):not([data-screen="home"]):not([data-screen="loading"]) #overlay::before { opacity: 1 !important; background: var(--ln-void) !important; }
body:not(.in-game):not([data-screen="home"]):not([data-screen="loading"]) #overlay::after,
body.in-game:not([data-screen="pause"]):not([data-screen="loading"]) #overlay { background: rgba(8, 8, 9, 0.94) !important; }
body:not(.in-game):not([data-screen="home"]):not([data-screen="loading"]) #overlay::after { opacity: 1 !important; }
body:not([data-screen="home"]):not([data-screen="loading"]) #grid-bg {
  inset: 0; opacity: 0.09 !important; background: var(--ln-bone); -webkit-mask: var(--ln-shade-2) 0 0 / 4px 4px; mask: var(--ln-shade-2) 0 0 / 4px 4px;
}

/* The panel is the window: a black well in a platinum frame. Its header is the title bar: the back arrow becomes the
   close box, the title sits on its own block over the stripes. (.panel, .screen-head, .screen-title, .screen-back:
   class names that may change.) */
#overlay .panel { padding: 0 1.1rem 1.1rem; background: var(--ln-void); box-shadow: var(--ln-window); }
#overlay .panel > .screen-head {
  position: relative; min-height: 0; height: 1.85rem; margin: 0 -1.1rem 1.1rem; padding: 0 0.5rem; gap: 0;
  background: var(--ln-bar); box-shadow: var(--ln-bar-edge);
}
#overlay .screen-title { justify-content: center; align-items: center; gap: 0.5rem; padding: 0 1.4rem; }
#overlay .screen-title h2 {
  padding: 0 0.75em; font: 400 1rem/1.85rem var(--ln-dot); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ln-plat-ink);
  background: var(--ln-plat); text-shadow: none;
}
#overlay .screen-title small { padding: 0 0.6em 0 0; font: 400 0.75rem/1.85rem var(--ln-mono); color: #3d3c37; background: var(--ln-plat); }
#overlay .screen-back {
  position: absolute; left: 0.5rem; top: 50%; z-index: 1; width: 0.8rem; height: 0.8rem; margin: -0.4rem 0 0; border-radius: 0;
  background: var(--ln-close) 0 0 / 100% 100%; color: transparent; transform: none;
}
#overlay .screen-back svg { display: none; }
#overlay .screen-back:hover, #overlay .screen-back:focus-visible { transform: none; background: var(--ln-red); box-shadow: inset 0 0 0 1px #000; }
#overlay .screen-back:active { transform: none; background: var(--ln-red-deep); }

/* Shared parts in every menu: push buttons, tabs, fields, switches, sliders. (.btn, .seg, .select, .switch, .range,
   .num-input, kbd: class names that may change.) */
#overlay .btn, dialog .btn { border-radius: 0; font: 400 0.95rem/1 var(--ln-dot); letter-spacing: 0.06em; }
#overlay .btn:not(.btn-ghost):not(.primary), dialog .btn:not(.btn-ghost):not(.primary):not(.danger) { color: var(--ln-plat-ink); background: var(--ln-plat); border: 0; box-shadow: var(--ln-raised); }
#overlay .btn:not(.btn-ghost):not(.primary):hover:not(:disabled), dialog .btn:not(.btn-ghost):not(.primary):not(.danger):hover:not(:disabled) { color: var(--ln-plat-ink); background: var(--ln-plat-hi); }
#overlay .btn:not(.btn-ghost):active, dialog .btn:not(.btn-ghost):active { box-shadow: inset 1px 1px 0 var(--ln-plat-lo), inset -1px -1px 0 var(--ln-plat-hi), 0 0 0 1px #000; transform: none; }
#overlay .btn-ghost, dialog .btn-ghost { color: var(--ln-bone-2); }
#overlay .btn-ghost:hover, dialog .btn-ghost:hover { color: var(--ln-bone); background: var(--raise-2); }
#overlay .btn.primary, dialog .btn.primary {
  color: var(--ln-bone); background: var(--ln-red); border: 0;
  box-shadow: inset 1px 1px 0 var(--ln-red-hi), inset -1px -1px 0 var(--ln-red-deep), 0 0 0 1px #000, 0 0 0 3px var(--ln-void), 0 0 0 4px var(--ln-plat);
}
#overlay .btn.primary:hover, dialog .btn.primary:hover { background: var(--ln-red-hi); }
#overlay .seg { gap: 0; padding: 0; background: var(--ln-plat); border: 0; border-radius: 0; box-shadow: var(--ln-raised); }
#overlay .seg button { border-radius: 0; font: 400 0.9rem/1 var(--ln-dot); letter-spacing: 0.05em; color: var(--ln-plat-ink); box-shadow: inset -1px 0 0 var(--ln-plat-lo); }
#overlay .seg button:hover { color: #000; background: var(--ln-plat-hi); }
#overlay .seg button.on, #overlay .seg.has-ind > button.on, #overlay .seg.has-ind > button.on:hover {
  color: var(--ln-bone); background: var(--ln-void); box-shadow: inset 1px 1px 0 #000, inset -1px -1px 0 var(--ln-plat-lo), inset 0 2px 0 var(--ln-red);
}
#overlay .seg-ind { display: none; }
#overlay :is(.select, select, .num-input, input[type="text"], input[type="search"], textarea) {
  border-radius: 0; border-color: transparent; color: var(--ln-bone); background-color: #050506; font-family: var(--ln-mono);
  box-shadow: inset 1px 1px 0 var(--ln-plat-lo), inset -1px -1px 0 var(--ln-plat-hi), inset 2px 2px 0 #000;
}
#overlay :is(.select, select, .num-input, input[type="text"], input[type="search"], textarea):focus-visible { outline: 1px dotted var(--ln-bone); outline-offset: 2px; }
#overlay kbd, dialog kbd { border-radius: 0; color: var(--ln-plat-ink); background: var(--ln-plat); border: 0; box-shadow: var(--ln-raised); font: 400 0.82em/1.15 var(--ln-mono); }
input.switch { border-radius: 0; background: #050506; box-shadow: inset 1px 1px 0 var(--ln-plat-lo), inset -1px -1px 0 var(--ln-plat-hi); }
input.switch::after { border-radius: 0; background: var(--ln-plat); box-shadow: inset 1px 1px 0 var(--ln-plat-hi), inset -1px -1px 0 var(--ln-plat-lo), 0 0 0 1px #000; }
input.switch:checked { background: var(--ln-red); box-shadow: inset 1px 1px 0 var(--ln-red-deep), inset -1px -1px 0 var(--ln-red-hi); }
input.switch:checked::after { background: var(--ln-plat); }
input[type="range"]::-webkit-slider-thumb { border-radius: 0; background: var(--ln-plat); box-shadow: inset 1px 1px 0 var(--ln-plat-hi), inset -1px -1px 0 var(--ln-plat-lo), 0 0 0 1px #000; }
input[type="range"]::-moz-range-thumb { border-radius: 0; background: var(--ln-plat); box-shadow: inset 1px 1px 0 var(--ln-plat-hi), inset -1px -1px 0 var(--ln-plat-lo), 0 0 0 1px #000; }
#overlay .account .btn.save-progress { padding: 0.3rem 0.75rem 0.25rem; color: var(--ln-plat-ink); background: var(--ln-plat); box-shadow: var(--ln-raised); }
#overlay .account .btn.save-progress:hover { color: var(--ln-plat-ink); background: var(--ln-plat-hi); }
/* Dialogs (Custom CSS, confirmations...): a window too. (Class names inside dialogs may change.) */
dialog { border-radius: 0 !important; border: 0 !important; background: var(--ln-void) !important; box-shadow: var(--ln-window) !important; }
dialog :is(h2, h3) { font: 400 1.15rem/1.2 var(--ln-dot); letter-spacing: 0.1em; text-transform: uppercase; }

/* ------------------------------------------------------------------ settings */

/* The rail: a list in a sunk well; the open section inverse, with a red marker. (.set-*: class names that may change.) */
.set-rail { padding: 0.3rem; background: #060607; box-shadow: var(--ln-sunk); }
.set-rail-item { border-radius: 0; color: var(--ln-bone-2); background: none !important; }
.set-rail-item::before { display: none; }
.set-rail-label { font: 400 0.92rem/1.2 var(--ln-dot); letter-spacing: 0.04em; }
.set-rail-item:hover { color: var(--ln-bone); background: var(--raise-2) !important; }
.set-rail-item.on { color: var(--ln-void); background: var(--ln-bone) !important; box-shadow: inset 0.3rem 0 0 var(--ln-red); }
.set-rail-item.on .set-rail-icon { color: var(--ln-void); }
.set-sec-title h3 { font: 400 1.35rem/1.1 var(--ln-dot); letter-spacing: 0.1em; text-transform: uppercase; }
.set-sec-title h3::before { content: "> "; color: var(--ln-red); }
.set-sec-head { border-bottom: 1px dotted var(--ln-bone-3); }
.set-group-title { font: 400 0.85rem/1 var(--ln-dot); letter-spacing: 0.18em; color: var(--ln-bone-3); text-transform: uppercase; }
.set-group-title::before { content: "// "; }
.settings .set-row, .quick-set .set-row { border-radius: 0; background: none; box-shadow: inset 0 -1px 0 rgba(227, 222, 208, 0.07); }
.settings .set-row:hover, .quick-set .set-row:hover { background: var(--raise); box-shadow: inset 0.2rem 0 0 var(--ln-red), inset 0 -1px 0 rgba(227, 222, 208, 0.07); }
.set-name { font-family: var(--ln-mono); font-weight: 500; }
.set-q { border-radius: 0 !important; }
.settings .set-stat { border-radius: 0; background: #060607; box-shadow: var(--ln-sunk); }
.settings .set-stat b, .settings .set-stats b { font-family: var(--ln-dot); font-weight: 400; }
.set-adv-sum { font: 400 0.9rem var(--ln-dot); letter-spacing: 0.08em; text-transform: uppercase; }

/* ------------------------------------------------------------------ maps and leaderboards */

/* (.mb-*, .mbd-*, .rb-*, .ranks: class names that may change.) */
.mb-head, .rb-table th { font: 400 0.8rem/1 var(--ln-dot); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ln-bone-3); }
.mb-row { border-radius: 0 !important; background: none; box-shadow: inset 0 -1px 0 rgba(227, 222, 208, 0.07); }
.mb-row:hover { background: var(--raise); }
.mb-row::before { border-radius: 0; background: var(--ln-red); }
.mb-thumb { border-radius: 0 !important; filter: grayscale(1) contrast(1.1); }
.mb-row:hover .mb-thumb, .mb-row[aria-selected="true"] .mb-thumb { filter: none; }
.mb-row[aria-selected="true"] { color: var(--ln-void); background: var(--ln-bone); }
.mb-row[aria-selected="true"] :is(.mb-title b, .mb-c-wr, .mb-c-pb) { color: var(--ln-void); }
.mb-row[aria-selected="true"] small { color: #4a4943; }
.mb-row[aria-selected="true"] .mb-c-tier { filter: brightness(0.55) saturate(1.3); }
.mb-row[aria-selected="true"]:focus-visible { outline: 1px dotted var(--ln-void); outline-offset: -3px; box-shadow: none; }
.mb-title b { font: 400 1rem/1.2 var(--ln-dot); letter-spacing: 0.03em; }
.mb-c-wr, .mb-c-pb { font: 400 0.9rem/1 var(--ln-mono); }
.mb-detail { border-radius: 0; background: #060607; box-shadow: var(--ln-sunk); }
.mbd-art { border-radius: 0 !important; }
.mbd-main { background: none; }
.mbd-title h3 { font: 400 1.4rem/1.15 var(--ln-dot); letter-spacing: 0.04em; }
.mbd-head h4 { font: 400 0.85rem/1 var(--ln-dot); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ln-bone-3); }
.mbd-head h4::before { content: "// "; }

.rb-table td { background: none !important; border-radius: 0 !important; box-shadow: inset 0 -1px 0 rgba(227, 222, 208, 0.07); font-family: var(--ln-mono); }
.rb-table tr.rb-row:hover td { background: var(--raise-2) !important; }
.rb-table tr.me td { background: color-mix(in srgb, var(--ln-red) 20%, transparent) !important; }
.rb-table td.rb-rank { font: 400 1rem/1 var(--ln-dot); }
.rb-table .rb-strong, .rb-table .rb-wr { font-family: var(--ln-dot); font-weight: 400; }
.rb-table .num { font-variant-numeric: tabular-nums; }
/* The podium: first place on red, second and third in bone outlines. */
.rb-table tr:is(.top1, .top2, .top3) td.rb-rank { color: var(--ln-bone) !important; box-shadow: none !important; border: 0 !important; }
.rb-table tr.top1 td.rb-rank { background: var(--ln-red) !important; }
.rb-table tr:is(.top2, .top3) td.rb-rank { box-shadow: inset 0 0 0 1px var(--ln-bone-3) !important; }
.ranks .rb-rows tr:is(.top1, .top2, .top3) td { border: 0 !important; }

/* ------------------------------------------------------------------ profile and loadout */

/* (.pf-*, .lo-*: class names that may change.) */
.pf-tab { font: 400 0.95rem/1 var(--ln-dot); letter-spacing: 0.06em; }
#overlay .pf-tab.on { color: var(--ln-void); background: var(--ln-bone); border: 0; box-shadow: inset 0 -2px 0 var(--ln-red); }
/* Tabs that live in a title bar are small platinum buttons; the open one is pressed in. */
#overlay .screen-head :is(.pf-tab, .pf-tab.on) { height: 1.3rem; padding: 0 0.6rem; font: 400 0.85rem/1.3rem var(--ln-dot); color: var(--ln-plat-ink); background: var(--ln-plat); box-shadow: var(--ln-raised); }
#overlay .screen-head .pf-tab.on { background: #a9a8a1; box-shadow: inset 1px 1px 0 var(--ln-plat-lo), inset -1px -1px 0 var(--ln-plat-hi), 0 0 0 1px #000; }
#overlay .pf-tab.on::after { display: none; }
.lo-tab { border-radius: 0; font: 400 0.95rem/1 var(--ln-dot); letter-spacing: 0.04em; color: var(--ln-bone-2); }
.lo-tab:hover { color: var(--ln-bone); }
.lo-tab.on { color: var(--ln-void); background: var(--ln-bone); box-shadow: inset 0 -2px 0 var(--ln-red); }
.lo-tab.on::after { display: none; }
/* The Loadout's slot list down the left (the Support page's too): the Settings list's look, the open slot inverse.
   (.lo-frame[data-layout="rail"] is how the game lays the list out; it may change.) */
.lo-frame[data-layout="rail"] .lo-tabs { padding: 0.3rem; background: #060607; box-shadow: var(--ln-sunk); }
.lo-frame[data-layout="rail"] .lo-tab { border-radius: 0; }
.lo-frame[data-layout="rail"] .lo-tab:hover { background: var(--raise-2); }
.lo-frame[data-layout="rail"] .lo-tab.on { color: var(--ln-void); background: var(--ln-bone); box-shadow: inset 0.3rem 0 0 var(--ln-red); }
.lo-frame[data-layout="rail"] .lo-tab::after { display: none; }
.lo-tab small { font: 400 0.68rem/1 var(--ln-mono); }
.lo-tab.on small { color: var(--ln-bone-3); }
/* The options under the items (wear, pattern, colours, sliders): labels in the dot type. */
.lo-opts { border-top-color: var(--ln-bone-3); }
.lo-set-h { font: 400 0.95rem/1.2 var(--ln-dot); letter-spacing: 0.06em; }
.lo-stage { border-radius: 0 !important; box-shadow: var(--ln-sunk), 0 0 0 0.3rem var(--ln-plat), 0 0 0 calc(0.3rem + 1px) #000 !important; }
.lo-cap-name { font: 400 1.6rem/1.1 var(--ln-dot); letter-spacing: 0.04em; }
.lo-tile { border-radius: 0; background: #060607; box-shadow: inset 0 0 0 1px rgba(227, 222, 208, 0.1); }
.lo-tile:hover { background: var(--ln-void-3); }
.lo-tile.on { background: var(--ln-void-3); box-shadow: inset 0 0 0 1px var(--ln-bone), 0 0 0 2px var(--ln-red); }
.lo-thumb { border-radius: 0 !important; }
.lo-name { font: 400 0.85rem/1.2 var(--ln-dot); letter-spacing: 0.03em; }
.lo-sub { font: 400 0.72rem/1.1 var(--ln-mono); }

/* ------------------------------------------------------------------ pause menu: two windows */

/* (.pause-rail, .pause-panel, .pause-head, .pause-map, .rail-item, .hop-ind: class names that may change.) */
body[data-screen="pause"] .hop-ind { display: none; }
body[data-screen="pause"] #overlay { background: rgba(8, 8, 9, 0.62) !important; }
body[data-screen="pause"] .pause-rail, body[data-screen="pause"] .pause-panel {
  position: relative; border-radius: 0; background: var(--ln-void); box-shadow: var(--ln-sunk), var(--ln-window);
}
body[data-screen="pause"] .pause-rail { margin-top: 1.75rem; }
body[data-screen="pause"] .pause-panel { margin-top: 1.75rem; }
body[data-screen="pause"] :is(.pause-rail, .pause-panel)::before {
  content: "NAVI // pause"; position: absolute; left: -0.4rem; right: -0.4rem; top: -1.75rem; height: 1.75rem; box-sizing: border-box; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font: 400 0.95rem/1 var(--ln-dot); letter-spacing: 0.16em; color: var(--ln-plat-ink); white-space: pre;
  background: linear-gradient(var(--ln-plat), var(--ln-plat)) 50% 50% / 10.4rem 100% no-repeat, var(--ln-bar);
  box-shadow: var(--ln-bar-edge); pointer-events: none;
}
body[data-screen="pause"] .pause-panel::before { content: "WIRED // this map"; background: linear-gradient(var(--ln-plat), var(--ln-plat)) 50% 50% / 13rem 100% no-repeat, var(--ln-bar); }
body[data-screen="pause"] .pause-head .wordmark { color: var(--ln-bone); }
body[data-screen="pause"] .pause-head .wm-text { font-family: var(--ln-dot); font-weight: 400; letter-spacing: 0; }
body[data-screen="pause"] .pause-head .wm-tld { color: var(--ln-red); }
body[data-screen="pause"] .pause-map { font: 400 1.3rem/1.2 var(--ln-dot); letter-spacing: 0.02em; color: var(--ln-bone); }
body[data-screen="pause"] .pause-map::before { content: "> "; color: var(--ln-red); }
body[data-screen="pause"] [data-item] { border-radius: 0; background: none; color: var(--ln-bone); box-shadow: none; transform: none; }
body[data-screen="pause"] [data-item] .ri-label { font: 400 1rem/1.2 var(--ln-dot); letter-spacing: 0.06em; }
body[data-screen="pause"] [data-item] .ri-label small { font: 400 0.74rem/1.2 var(--ln-mono); letter-spacing: 0; color: var(--ln-bone-3); }
body[data-screen="pause"] [data-item] .ri-icon { color: var(--ln-bone-3); }
body[data-screen="pause"] [data-item]:not(.primary):is(:hover:not(:disabled), :focus-visible) { color: var(--ln-void); background: var(--ln-bone); box-shadow: none; transform: none; }
body[data-screen="pause"] [data-item]:not(.primary):is(:hover:not(:disabled), :focus-visible) :is(.ri-icon, small, kbd) { color: #3a3934; }
body[data-screen="pause"] [data-item]:is(:hover:not(:disabled), :focus-visible) .ri-label::after {
  content: ""; display: inline-block; width: 0.55em; height: 0.9em; margin-left: 0.3em; vertical-align: -0.1em;
  background: var(--ln-red); animation: ln-blink 1.06s steps(1) infinite;
}
body[data-screen="pause"] [data-item].primary {
  margin: 0.35rem 0.4rem 0.7rem; color: var(--ln-plat-ink); background: var(--ln-plat); clip-path: none;
  box-shadow: inset 1px 1px 0 var(--ln-plat-hi), inset -1px -1px 0 var(--ln-plat-lo), 0 0 0 1px #000, 0 0 0 3px var(--ln-void), 0 0 0 5px var(--ln-plat);
}
body[data-screen="pause"] [data-item].primary .ri-label { font-size: 1.25rem; letter-spacing: 0.12em; text-transform: uppercase; }
body[data-screen="pause"] [data-item].primary :is(.ri-icon, kbd) { color: var(--ln-plat-ink); }
body[data-screen="pause"] [data-item].primary .ri-label::after { background: var(--ln-plat-ink); }
body[data-screen="pause"] [data-item].primary:focus-visible { outline: 1px dotted var(--ln-plat-ink); outline-offset: -5px; }
body[data-screen="pause"] [data-item].primary:hover { color: var(--ln-bone); background: var(--ln-red); box-shadow: inset 1px 1px 0 var(--ln-red-hi), inset -1px -1px 0 var(--ln-red-deep), 0 0 0 1px #000, 0 0 0 3px var(--ln-void), 0 0 0 5px var(--ln-plat); }
body[data-screen="pause"] [data-item].primary:hover :is(.ri-icon, kbd) { color: var(--ln-bone); }
body[data-screen="pause"] [data-item].primary:hover .ri-label::after { background: var(--ln-bone); }
body[data-screen="pause"] [data-item].primary kbd { background: none; box-shadow: var(--ln-sunk); color: inherit; }
body[data-screen="pause"] [data-item="main-menu"] { color: var(--ln-plat-ink); background: var(--ln-plat); box-shadow: var(--ln-raised); border: 0; }
body[data-screen="pause"] [data-item="main-menu"] :is(.ri-icon, kbd) { color: var(--ln-plat-ink); }
body[data-screen="pause"] .rail-sep { background: none; border-top: 1px dotted var(--ln-bone-3); }
body[data-screen="pause"] :is(.pause-support, .menu-legal a) { font-family: var(--ln-mono); color: var(--ln-bone-3); }

/* ------------------------------------------------------------------ HUD: a terminal readout */

/* Each readout on a dim, scanned plate; labels in small type after a prompt; the speed ends in a blinking cursor.
   (.hud-speed, .speed-num, .unit, .hud-timer, .hud-stats: class names that may change.) */
#hud [data-el] { --shadow-text: 0 1px 0 rgba(0, 0, 0, 0.85); }
#hud :is([data-el="speed"], [data-el="timer"], [data-el="stats"], [data-el="map"], [data-el="pb"])::before {
  content: ""; position: absolute; inset: -0.22em -0.55em; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 2px, rgba(0, 0, 0, 0.28) 2px 3px), rgba(9, 9, 10, 0.78);
  box-shadow: inset 0 0 0 1px rgba(227, 222, 208, 0.16);
}
#hud [data-el="speed"] * { font-weight: 400 !important; }
#hud [data-el="speed"] .hud-speed { gap: 0.2em; letter-spacing: 0; }
#hud [data-el="speed"] .hud-speed::before { content: "> velocity"; align-self: baseline; margin-right: 0.15em; font-size: 0.4em; letter-spacing: 0.04em; color: #cdc8b9; }
#hud [data-el="speed"] .hud-speed:not(.gain):not(.loss) { color: var(--ln-bone); }
#hud [data-el="speed"] .unit { font-size: 0.36em; opacity: 1; color: var(--ln-bone-2); }
#hud [data-el="speed"] .hud-speed::after {
  content: ""; align-self: baseline; width: 0.32em; height: 0.62em; margin-left: 0.04em;
  background: var(--ln-red); animation: ln-blink 1.06s steps(1) infinite;
}
#hud [data-el="timer"] * { font-weight: 400 !important; }
#hud [data-el="timer"] .hud-timer::before { content: "> time "; font-size: 0.62em; letter-spacing: 0.04em; color: #cdc8b9; }
#hud [data-el="timer"] .t-lead { opacity: 0.55; }
#hud [data-el="timer"] .zone-line { box-shadow: none; }
#hud [data-el="stats"] .hud-stats { gap: 0.95em; color: #cdc8b9; }
#hud [data-el="stats"] .hud-stats::before { content: ">"; }
#hud [data-el="stats"] .hud-stats > span { display: inline-flex; flex-direction: row-reverse; gap: 0.4em; }
#hud [data-el="stats"] b { font-weight: 400; color: var(--ln-bone); }
#hud [data-el="map"] { font-family: var(--ln-dot); letter-spacing: 0.03em; }
#hud [data-el="map"] * { font-weight: 400 !important; }
#hud [data-el="map"] .hud-map::before { content: "> "; color: var(--ln-red); }
#hud [data-el="map"] b { color: var(--ln-bone); }
#hud [data-el="pb"] * { font-weight: 400 !important; }
#hud [data-el="pb"] small { color: var(--ln-bone-3) !important; }
#hud [data-el="pb"] small::before { content: "> "; }
#hud [data-el="split"] { font-family: var(--ln-dot); }
/* The keys overlay sets its colours from Settings on .keys itself (a class that may change); the theme wins with
   !important. Keys are dim plates with a bone edge; held keys go inverse. (.keys .k: class names that may change.) */
#hud [data-el="keys"] .keys { --k-on: var(--ln-void) !important; --k-idle: var(--ln-bone) !important; }
#hud [data-el="keys"] { font-family: var(--ln-dot); }
#hud [data-el="keys"] .k { border-radius: 0; background: rgba(8, 8, 9, 0.55); border: 1px solid rgba(227, 222, 208, 0.45); }
#hud [data-el="keys"] .k.on { background: var(--ln-bone); border-color: var(--ln-bone); color: var(--ln-void); }

/* Chat: terminal lines; the input is a sunk field with a prompt. (.chat-*: class names that may change.) */
#hud [data-el="chat"] .hud-chat { font-family: var(--ln-mono); }
#hud [data-el="chat"] .chat-line { border-radius: 0; background: rgba(8, 8, 9, 0.6); text-shadow: none; width: fit-content; max-width: 100%; box-sizing: border-box; }
#hud [data-el="chat"] .chat-line.old { opacity: 0; }
#hud [data-el="chat"] .chat-open .chat-line.old { opacity: 0.85; }
#hud [data-el="chat"] .chat-name { font: 400 1.02em/1 var(--ln-dot); letter-spacing: 0.02em; }
#hud [data-el="chat"] .chat-tag { border-radius: 0; font-family: var(--ln-dot); color: var(--ln-bone); background: none; box-shadow: inset 0 0 0 1px var(--ln-bone-3); }
#hud [data-el="chat"] .chat-line.announce { color: var(--ln-bone); background: color-mix(in srgb, var(--ln-red) 55%, rgba(8, 8, 9, 0.7)); box-shadow: none; }
#hud [data-el="chat"] .chat-open .chat-lines { border-radius: 0; background: rgba(8, 8, 9, 0.5); }
#hud [data-el="chat"] .chat-form { border-radius: 0; background: #050506; border: 0; box-shadow: inset 1px 1px 0 var(--ln-plat-lo), inset -1px -1px 0 var(--ln-plat-hi), 0 0 0 0.25em var(--ln-plat), 0 0 0 calc(0.25em + 1px) #000; }
#hud [data-el="chat"] .chat-input { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: none !important; color: var(--ln-bone); font-family: var(--ln-mono); }
#hud [data-el="chat"] .chat-prompt { font: 400 1em/1 var(--ln-dot); letter-spacing: 0.04em; color: var(--ln-red); }
#hud [data-el="chat"] .chat-prompt::after { content: " >"; color: var(--ln-bone-3); }
#hud [data-el="chat"] .chat-hint { border-radius: 0; font-family: var(--ln-mono); background: rgba(8, 8, 9, 0.8); }

/* The map vote (#mp-menu[data-menu="vote"]) and the other numbered menus: a terminal list on a solid plate, the keys
   in red, your vote inverse. (.mm-title, .mm-label, .mm-detail: class names that may change.) */
#hud #mp-menu {
  border: 0; border-radius: 0; color: var(--ln-bone); font-family: var(--ln-mono); text-shadow: none;
  background: repeating-linear-gradient(180deg, transparent 0 2px, rgba(0, 0, 0, 0.28) 2px 3px), rgba(9, 9, 10, 0.9);
  box-shadow: inset 0 0 0 1px rgba(227, 222, 208, 0.2), inset 0.25em 0 0 var(--ln-red);
}
#hud #mp-menu .mm-title { font: 400 1.1em/1.2 var(--ln-dot); letter-spacing: 0.08em; color: var(--ln-bone); }
#hud #mp-menu .mm-title::before { content: "> "; color: var(--ln-red-hi); }
#hud #mp-menu .mm-item { border-radius: 0; }
#hud #mp-menu .mm-key { font: 400 1em/1 var(--ln-dot); color: var(--ln-red-hi); }
#hud #mp-menu .mm-label { font-family: var(--ln-dot); letter-spacing: 0.03em; }
#hud #mp-menu :is(.mm-detail, .mm-footer, .mm-item.exit) { color: var(--ln-bone-2); }
#hud #mp-menu .mm-hint { color: var(--ln-bone); }
#hud #mp-menu .mm-item.sel { color: var(--ln-void); background: var(--ln-bone); }
#hud #mp-menu .mm-item.sel :is(.mm-key, .mm-detail) { color: var(--ln-void); }

/* Scoreboard (hold Tab in a room): a window, the room in its title bar; you're the inverse row. (#mp-scoreboard,
   .sb-*: names that may change.) */
#mp-scoreboard { border: 0; border-radius: 0; background: var(--ln-void); box-shadow: var(--ln-window); font-family: var(--ln-mono); }
#mp-scoreboard .sb-head { position: relative; margin: -1em -1.2em 0.7em; padding: 0.45em 2em; border: 0; align-items: center; background: var(--ln-bar); box-shadow: var(--ln-bar-edge); color: var(--ln-plat-ink); }
#mp-scoreboard .sb-head :is(b, span, div) { position: relative; color: var(--ln-plat-ink) !important; text-shadow: none; }
#mp-scoreboard .sb-room b { padding: 0 0.5em; font: 400 1.1em/1.2 var(--ln-dot); letter-spacing: 0.12em; text-transform: uppercase; background: var(--ln-plat); }
#mp-scoreboard .sb-room .dim, #mp-scoreboard .sb-map { padding: 0 0.4em; font-family: var(--ln-mono); background: var(--ln-plat); }
#mp-scoreboard th { font: 400 0.85em/1 var(--ln-dot); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ln-bone-3); }
#mp-scoreboard td { border-radius: 0 !important; box-shadow: inset 0 -1px 0 rgba(227, 222, 208, 0.07); }
#mp-scoreboard .sb-pos { font: 400 1.05em/1 var(--ln-dot); }
#mp-scoreboard .sb-pname { font: 400 1em/1 var(--ln-dot); letter-spacing: 0.03em; }
#mp-scoreboard .sb-pb { color: var(--ln-bone-2); }
#mp-scoreboard tr.you td { color: var(--ln-void) !important; background: var(--ln-bone) !important; box-shadow: none !important; }
#mp-scoreboard tr.you td * { color: var(--ln-void) !important; }
#mp-scoreboard .sb-hint { font-family: var(--ln-mono); color: var(--ln-bone-3); }

/* ------------------------------------------------------------------ finish: a message from the Wired */

/* The end card is a window. A line from the Wired first (::after, moved to the top), then the time, the run's numbers
   in a sunk well. (#hud-endcard, .ec-*, .endcard-*: names that may change; .slow, .pb, .wr, .wr-prov are the card's
   states.) */
#hud-endcard { padding: 2.55em 1.4em 1.05em; background: var(--ln-void); box-shadow: var(--ln-window); text-shadow: none !important; }
#hud-endcard::before {
  content: "message"; position: absolute; left: 0; right: 0; top: 0; height: 1.9em; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  font: 400 1em/1 var(--ln-dot); letter-spacing: 0.24em; color: var(--ln-plat-ink);
  background: linear-gradient(var(--ln-plat), var(--ln-plat)) 50% 50% / 7.5em 100% no-repeat, var(--ln-bar);
  box-shadow: var(--ln-bar-edge);
}
#hud-endcard::after { content: "close the world, open the nExt"; order: -1; margin-bottom: 0.7em; font: 400 1.15em/1.2 var(--ln-dot); letter-spacing: 0.1em; color: var(--ln-red); }
#hud-endcard.pb::after { content: "Let's all love Lain"; }
#hud-endcard:is(.wr, .wr-prov)::after { content: "No matter where you go, everyone's connected."; }
#hud-endcard .ec-time { font: 400 3.3em/1.05 var(--ln-dot); letter-spacing: 0.02em; color: var(--ln-bone); text-shadow: none !important; }
#hud-endcard .ec-time .t-lead { opacity: 0.45; }
#hud-endcard.wr .ec-time, #hud-endcard.wr-prov .ec-time { color: var(--wr); }
#hud-endcard .ec-delta { margin-top: 0.35em; gap: 0.6em; font: 400 1.15em/1 var(--ln-dot); text-shadow: none !important; }
#hud-endcard .ec-word { padding: 0.15em 0.45em 0.1em; color: var(--ln-plat-ink); background: var(--ln-plat); box-shadow: var(--ln-raised); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
#hud-endcard.wr .ec-word { color: var(--ln-bone); background: var(--ln-red); }
#hud-endcard .ec-card { margin-top: 0.85em; padding: 0.6em 1em; border: 0; border-radius: 0; background: #060607; box-shadow: var(--ln-sunk); }
#hud-endcard .ec-stats { font: 400 0.95em/1.3 var(--ln-mono); color: var(--ln-bone-3); }
#hud-endcard .ec-stats b { font: 400 1.08em var(--ln-dot); color: var(--ln-bone); }
#hud-endcard .endcard-sub { font: 400 1em/1.3 var(--ln-mono); color: var(--ln-bone-2); }
#hud-endcard .endcard-sub.ok { color: var(--ln-bone); }
#hud-endcard .ec-rank { padding: 0.05em 0.35em; color: var(--ln-bone); background: var(--ln-red); font: 400 1.05em/1.1 var(--ln-dot); }
#hud-endcard .ec-n { font-family: var(--ln-dot); color: var(--ln-bone); }
#hud-endcard .ec-hint { margin-top: 0.8em; font: 400 0.9em/1 var(--ln-mono); letter-spacing: 0.04em; color: var(--ln-bone-3); opacity: 1; text-shadow: none !important; }
#hud-endcard .ec-hint::before { content: "> "; color: var(--ln-red); }
#hud-endcard .ec-track { padding: 0.1em 0.5em; color: var(--ln-plat-ink); background: var(--ln-plat); font: 400 0.95em var(--ln-dot); text-shadow: none !important; }
#hud-endcard .ec-note { font-family: var(--ln-mono); color: var(--ln-bone-2); }

/* ------------------------------------------------------------------ the corner buttons (friends, inbox bell, sound) */

/* (.fd-btn, #audio-btn: names that may change.) */
.fd-btn, #audio-btn { border-radius: 0; color: var(--ln-plat-ink); background: var(--ln-plat); box-shadow: var(--ln-raised); }
.fd-btn { font: 400 0.95rem/1 var(--ln-dot); letter-spacing: 0.06em; }
.fd-btn:hover, .fd-btn.on, #audio-btn:hover { color: var(--ln-plat-ink); background: var(--ln-plat-hi); }
.fd-badge { border-radius: 0; background: var(--ln-red); color: var(--ln-bone); }
