/* Loadout builder, laid out the way the game's own "Modify weapon" screen is: the weapon fills the page; the picked part's
   name and what it changes stand top left; the places a part can go are tabs along the bottom, with the parts as a row of
   cards under them. Every stat of the build stands on the right, next to the weapon. On a narrow screen the weapon takes the
   top and the rest follows below it. Uses the site's tokens (style.css); the accent is the game's. */
.lo-page { overflow: hidden; }
.lo { flex: 1; min-height: 0; position: relative; overflow: hidden; --iw: 330px; --sw: 360px; --gap: 16px; --dock: 204px;
  background: radial-gradient(ellipse 62% 56% at 46% 46%, #2b2c31 0%, #17181a 46%, #0a0a0b 100%); }
.lo button { font: inherit; color: inherit; cursor: pointer; }
.lo h2 { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 0; }
.lo-side, .lo-costbox { background: color-mix(in srgb, #0d0d0f 80%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--paper) 12%, transparent); border-radius: var(--r); }
.up { color: #5fd47a; } .down { color: #ff6b5e; } .same { color: var(--faint); }
.rar { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--rc, #9aa0a6); vertical-align: 1px; }
.r-Common { --rc: #a7adb4; } .r-Uncommon { --rc: #58c26c; } .r-Rare { --rc: #4a9bff; } .r-Epic { --rc: #b06cff; } .r-Legendary { --rc: #ffb62e; } .r-Mythic { --rc: #ff5a4a; } .r-BlackMarket { --rc: #c2185b; }

/* the stage */
.lo-stage { position: absolute; inset: 0; }
.lo-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(8, 8, 9, .92) 0, rgba(8, 8, 9, .55) calc(var(--dock) - 30px), transparent calc(var(--dock) + 90px)); }
.lo-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.lo-stage canvas:active { cursor: grabbing; }
/* a browser without 3D (WebGL 2 switched off, as some privacy browsers do): the weapon's picture stands in. Its black
   background is dropped against the stage, and a line says why the weapon cannot be turned or shown with its parts. */
.lo-stage.flat #gunflat { mix-blend-mode: screen; }
.lo-stage.flat::before { content: "This browser has 3D (WebGL) switched off, so this is the weapon's picture, not the build. Everything else works; turn WebGL on or use another browser to see the build in 3D."; position: absolute; left: 50%; top: calc(44% + min(170px, 24%)); transform: translateX(-50%); width: min(420px, 80%); text-align: center; font-size: 12.5px; line-height: 1.45; color: var(--faint); z-index: 1; }
.lo-stage #gunflat { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); max-width: min(620px, 60%); max-height: 46%; object-fit: contain; }
/* a marker on every place a part can go */
#pins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
/* a place with nothing on the weapon to point at: a small ring, there only while the pointer is over the weapon */
.lopin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; width: 15px; height: 15px; padding: 0; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .8); background: rgba(10, 10, 11, .35);
  opacity: 0; transition: opacity .2s, transform .12s, background .12s; }
.lopin::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.lopin::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font: 600 11px/1 var(--mono); color: #fff; }
.lopin.has { border-style: solid; } .lopin.has::after { content: ""; }
.lo-stage:hover .lopin { opacity: .75; }
.lopin:hover, .lopin.on, .lopin.hot, .lo-stage:hover .lopin:hover { opacity: 1; transform: translate(-50%, -50%) scale(1.25); background: var(--accent); border-color: #fff; border-style: solid; z-index: 3; }
.lopin span, .parttip { position: absolute; white-space: nowrap; padding: 4px 8px 5px; border-radius: 4px; background: rgba(10, 10, 11, .92); border: 1px solid rgba(255, 255, 255, .18);
  font: 600 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; pointer-events: none; }
.lopin span { left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); opacity: 0; transition: opacity .12s; }
.lopin span em, .parttip em { display: block; font-style: normal; letter-spacing: 0; text-transform: none; color: var(--dim); font-family: var(--text); font-size: 11.5px; font-weight: 400; margin-top: 1px; }
.parttip em:empty { display: none; }
.parttip { z-index: 2; } .parttip[hidden] { display: none; } .parttip b { font-weight: 600; }
.lopin:hover span, .lopin.on span, .lopin.hot span { opacity: 1; }
@media (hover: none) { .lopin { opacity: .75; } }
/* a marker and the pointer's name tag start at the stage's corner and are moved from there by `translate` (loadout.js: slide),
   which lays nothing out again; `transform` stays free for the marker's own centring and its growing under the pointer */
.lopin, .parttip { left: 0; top: 0; }

/* top: the weapon, a rule, and what the build costs */
.lo-head { position: absolute; left: calc(var(--gap) + 10px); right: calc(var(--sw) + var(--gap) * 2); top: var(--gap); display: flex; align-items: center; gap: 22px; pointer-events: none; z-index: 2; }
.lo-head > * { pointer-events: auto; }
.lo-rule { flex: 1; height: 1px; background: color-mix(in srgb, var(--accent) 80%, transparent); pointer-events: none; }
.lo-gunbtn { text-align: left; background: none; border: 0; padding: 4px 0; }
.lo-gunbtn .h { font: 600 15px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: .6em; white-space: nowrap; }
.lo-gunbtn .h i { font: 500 10.5px/1 var(--mono); font-style: normal; letter-spacing: .08em; color: var(--dim); border: 1px solid var(--rule-strong); border-radius: 2px; padding: 5px 7px; margin-left: 6px; }
.lo-gunbtn:hover .h i { color: var(--paper); border-color: var(--paper); }
.lo-actions { display: flex; gap: 8px; align-items: stretch; }
.lo-actions button, .lo-foot button { padding: .5rem .9rem; border: 1px solid color-mix(in srgb, var(--paper) 24%, transparent); border-radius: 3px; background: color-mix(in srgb, #0d0d0f 72%, transparent); font-size: 13px; backdrop-filter: blur(10px); }
.lo-actions button:hover, .lo-foot button:hover { border-color: var(--paper); }
.lo-cost { display: flex; align-items: baseline; gap: 7px; }
.lo-cost b { font: 700 1.25rem/1 var(--display); letter-spacing: .02em; }
.lo-cost span { color: var(--dim); font-size: 12px; }
.lo-costbox { position: absolute; right: calc(var(--sw) + var(--gap) * 2); top: 66px; width: min(380px, 92vw); max-height: calc(100% - 90px); overflow: auto; padding: 14px 16px; z-index: 6; }
.lo-costbox[hidden], .lo-gunsheet[hidden] { display: none; }
.cost-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; }
.cost-list li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--rule); }
.cost-list li span:last-child { font-family: var(--mono); white-space: nowrap; }
.cost-list .inc span:last-child { color: var(--faint); }
.lo label.chk { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--dim); }

/* top left: the part in hand: its name, its rarity and price, what it changes, the places it adds or takes away */
.lo-info { position: absolute; left: calc(var(--gap) + 10px); top: 70px; width: var(--iw); bottom: calc(var(--dock) + 8px); overflow: auto; pointer-events: none; z-index: 2; scrollbar-width: none; }
.lo-info > * { pointer-events: auto; }
.lo-info .slotname { font: 500 11px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.lo-info h1 { font: 700 clamp(1.6rem, 2.5vw, 2.5rem)/1.04 var(--display); letter-spacing: .01em; text-transform: uppercase; margin: 4px 0 10px; text-wrap: balance; color: color-mix(in srgb, var(--paper) 88%, transparent); }
.lo-info h1.small { font-size: clamp(1.15rem, 1.5vw, 1.45rem); color: var(--dim); margin-top: 14px; }
.lo-info h1.none { color: var(--faint); }
.tagline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.tag { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 2px; background: color-mix(in srgb, var(--paper) 10%, transparent); }
.tag.rarity { background: color-mix(in srgb, var(--rc) 24%, transparent); color: color-mix(in srgb, var(--rc) 70%, #fff); box-shadow: inset 2px 0 0 var(--rc); }
.tag.price { background: none; border: 1px solid var(--rule-strong); }
.lo-info p { margin: 0 0 10px; font-size: 13px; color: var(--dim); max-width: 34ch; }
.lo-info p.fine { font-size: 11.5px; color: var(--faint); margin-top: 8px; }
.pch { font: 600 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin: 12px 0 5px; color: var(--dim); }
.pch.up { color: #5fd47a; } .pch.down { color: #ff6b5e; }
.mods.rest { margin-top: 6px; }
.tag.na { color: #ffb62e; background: color-mix(in srgb, #ffb62e 14%, transparent); }
.prof { display: grid; gap: 3px; width: min(100%, 300px); font-size: 12.5px; }
.prof span { padding: 5px 10px; background: color-mix(in srgb, #0d0d0f 62%, transparent); border-left: 2px solid currentColor; backdrop-filter: blur(8px); }
.prof b { font: 600 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-right: 6px; }
.kill.pen td:first-child { font-size: 12px; color: var(--dim); } .kill.pen tr.stop td { color: var(--faint); }
.lo-side p.fine { font-size: 11.5px; color: var(--faint); margin: 8px 0 0; }
/* the builds the page works out for this weapon */
.builds { display: grid; gap: 4px; width: min(100%, 300px); }
.build { display: grid; gap: 5px; padding: 7px 10px 8px; text-align: left; border: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); border-left: 2px solid var(--paper); background: color-mix(in srgb, #0d0d0f 66%, transparent); backdrop-filter: blur(8px); border-radius: 2px; }
.build:hover { border-color: var(--paper); }
.build.on { border-color: var(--accent); border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, #0d0d0f); }
.build b { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 600 13px var(--text); }
.build b small { font: 500 11px var(--mono); color: var(--dim); margin-left: auto; }
.build .star { font-style: normal; color: #ffb62e; margin-right: 5px; }
.build .sum { margin: 0; gap: 4px; } .build .sum i { font-size: 11.5px; padding: 3px 6px; white-space: nowrap; } .build .sum i.same, .sum i.same { border-color: transparent; } .build .sum > i:only-child:not(.up):not(.down) { border: 0; padding: 0; color: var(--faint); font-weight: 400; }
.sum { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; }
.sum i { font: 600 12px/1.1 var(--text); font-style: normal; padding: 4px 7px; border-radius: 2px; border: 1px solid currentColor; }
.mods { display: grid; gap: 3px; width: min(100%, 300px); }
.mod { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 11px; font-size: 13px; background: color-mix(in srgb, #0d0d0f 62%, transparent); border-left: 2px solid currentColor; backdrop-filter: blur(8px); }
.mod::before { content: "▲"; font-size: 9px; line-height: 1; }
.mod.dec::before { content: "▼"; }
.mod.set::before { content: "■"; font-size: 7px; }
.mod span { color: var(--paper); }
.mod b { font: 600 13px var(--mono); }
.mod.cos { color: #00cdff; } .mod.cos::before { content: "◆"; }
.socks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.socks .tag.add { color: #5fd47a; } .socks .tag.rem { color: #ff6b5e; }

/* right: the stats, next to the weapon */
.lo-side { position: absolute; right: var(--gap); top: var(--gap); bottom: var(--gap); width: var(--sw); padding: 14px 16px 16px; overflow: auto; z-index: 3; }
.lo-side h2 { margin: 2px 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lo-side h2 small { letter-spacing: .04em; text-transform: none; color: var(--accent); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* a fitted flashlight or laser: its switch, and (on) the spot it throws on a wall */
.lo-lights { position: absolute; left: calc(var(--iw) + var(--gap) + 46px); bottom: calc(var(--dock) + 14px); z-index: 2; display: flex; gap: 8px; align-items: flex-end; pointer-events: none; }
.lo-lights[hidden] { display: none; }
.lt { pointer-events: auto; display: flex; flex-direction: row-reverse; gap: 8px; align-items: flex-end; }
.lt-sw { display: flex; align-items: center; gap: 9px; padding: 7px 11px 7px 10px; border: 1px solid color-mix(in srgb, var(--paper) 24%, transparent); border-radius: 3px; background: rgba(10, 10, 11, .78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: left; }
.lt-sw:hover { border-color: var(--paper); }
.lt-sw > i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--dim); flex: none; }
.lt.on .lt-sw > i { background: var(--lc); border-color: var(--lc); box-shadow: 0 0 10px 1px var(--lc); }
.lt-sw span { display: grid; gap: 2px; } .lt-sw b { font: 600 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; } .lt-sw small { font-size: 12px; color: var(--dim); }
.lt-sw em { font: 600 10px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-left: 4px; padding: 4px 6px; border: 1px solid var(--rule-strong); border-radius: 2px; }
.lt.on .lt-sw em { color: #0a0a0b; background: var(--lc); border-color: var(--lc); }
.lt-card { display: grid; grid-template-columns: 108px minmax(0, 204px); gap: 11px; padding: 10px; border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); border-radius: 3px; background: rgba(10, 10, 11, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lt-card canvas { width: 108px; height: 108px; border-radius: 2px; background: #000; display: block; }
.lt-card > div { display: grid; align-content: space-between; gap: 8px; min-width: 0; }
.lt-n { display: grid; gap: 4px; font-size: 12px; color: var(--dim); } .lt-n b { color: var(--paper); font-family: var(--mono); font-weight: 600; } .lt-n i { font-style: normal; color: var(--faint); }
.lt-card label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; font-size: 11.5px; color: var(--dim); white-space: nowrap; } .lt-card label b { color: var(--paper); font-family: var(--mono); }
.lt-card input[type=range] { width: 100%; accent-color: var(--accent); }
.lt-card.laser { grid-template-columns: 26px minmax(0, 220px); align-items: center; } .lt-card.laser > i { width: 12px; height: 12px; border-radius: 50%; background: var(--lc); box-shadow: 0 0 12px 3px var(--lc); justify-self: center; }
/* parts a loaded build asked for that the game would not let on */
.lo-drop { position: relative; display: grid; gap: 3px; margin: 0 0 12px; padding: 9px 30px 10px 12px; border-left: 2px solid #ff6b5e; background: color-mix(in srgb, #ff6b5e 13%, rgba(10, 10, 11, .85)); font-size: 12.5px; pointer-events: auto; }
.lo-drop.warn { border-left-color: #f0b23c; background: color-mix(in srgb, #f0b23c 12%, rgba(10, 10, 11, .85)); padding-right: 12px; } .lo-drop.warn b { color: #f6cf7c; }
.lo-drop b { font: 600 10.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #ff9a90; }
.lo-drop span { color: var(--paper); } .lo-drop i { font-style: normal; color: var(--dim); }
.lo-drop button { position: absolute; right: 6px; top: 4px; border: 0; background: none; color: var(--dim); font-size: 18px; line-height: 1; padding: 2px 6px; }
.lo-count.warn { color: #ff9a90; }
/* the shape of the build against every weapon */
.radar { display: block; width: 100%; max-width: 400px; height: auto; margin: 2px auto 0; overflow: visible; }
.radar .ring { fill: none; stroke: color-mix(in srgb, var(--paper) 11%, transparent); stroke-width: 1; } .radar .ring:last-of-type { stroke: color-mix(in srgb, var(--paper) 26%, transparent); }
.radar .spoke { stroke: color-mix(in srgb, var(--paper) 9%, transparent); stroke-width: 1; }
.radar .was { fill: none; stroke: color-mix(in srgb, var(--paper) 46%, transparent); stroke-width: 1.2; stroke-dasharray: 3 3; }
.radar .is { fill: color-mix(in srgb, #6fb1ff 22%, transparent); stroke: #8cc2ff; stroke-width: 1.8; stroke-linejoin: round; }
.radar circle { fill: #cfe4ff; } .radar circle.up { fill: #5fd47a; } .radar circle.down { fill: #ff6b5e; }
.radar text { font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--dim); cursor: help; }
.radar .sc { font-size: 12px; font-weight: 700; letter-spacing: 0; fill: var(--paper); } .radar .sc.up { fill: #5fd47a; } .radar .sc.down { fill: #ff6b5e; }
.radar-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 12px; font-size: 11px; color: var(--faint); }
.radar-key .k-is::before, .radar-key .k-was::before { content: ""; display: inline-block; width: 14px; height: 0; margin-right: 5px; vertical-align: middle; border-top: 2px solid #8cc2ff; }
.radar-key .k-was::before { border-top: 1.5px dashed color-mix(in srgb, var(--paper) 55%, transparent); }
/* the four numbers everyone asks for, each with where it ranks among the weapons */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tile { display: grid; gap: 5px; padding: 9px 10px 8px; border: 1px solid var(--rule); border-radius: 3px; background: color-mix(in srgb, var(--paper) 3%, transparent); min-width: 0; }
.tile span { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.tile b { font: 700 1.18rem/1 var(--mono); white-space: nowrap; } .tile b small { font-size: 11px; margin-left: 6px; font-weight: 600; }
.tile u { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--paper) 10%, transparent); overflow: hidden; text-decoration: none; } .tile s { display: block; height: 100%; border-radius: 3px; text-decoration: none; transition: width .3s; }
.tile > small { font-size: 10.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* what the parts change: only what they change */
.lo-side h3 { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 16px 0 6px; }
.chg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 6px 0 7px; border-top: 1px solid var(--rule); font-size: 13.5px; }
.chg .v { font-family: var(--mono); text-align: right; white-space: nowrap; } .chg .v small { font-size: 11.5px; margin-left: 6px; font-weight: 600; }
.chg .bar { grid-column: 1 / -1; position: relative; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--paper) 8%, transparent); }
.chg .bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: color-mix(in srgb, var(--paper) 40%, transparent); }
.chg .bar u { position: absolute; top: 0; bottom: 0; min-width: 3px; border-radius: 3px; background: var(--dim); } .chg.up .bar u { background: #5fd47a; } .chg.down .bar u { background: #ff6b5e; }
.lo-side p.nochg { margin: 0 0 4px; font-size: 12.5px; color: var(--dim); }
.stat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 13.5px; }
.stat .v { font-family: var(--mono); text-align: right; white-space: nowrap; }
.stat .v small { font-size: 11.5px; margin-left: 6px; }
.stat .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--paper) 10%, transparent); position: relative; overflow: hidden; }
.stat .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--paper); opacity: .6; }
.stat .bar u { position: absolute; top: 0; bottom: 0; }
.stat .bar u.up { background: #5fd47a; } .stat .bar u.down { background: #ff6b5e; }
.stat .sn { grid-column: 1 / -1; color: var(--faint); font-size: 11.5px; }
.lo-fold { border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 2px; }
.lo-fold summary { cursor: pointer; padding: 8px 0 6px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.kill { width: 100%; border-collapse: collapse; font-size: 13px; }
.kill th { text-align: left; font-weight: 500; color: var(--dim); font-size: 11.5px; padding: 4px 6px 4px 0; }
.kill td { padding: 4px 6px 4px 0; border-top: 1px solid var(--rule); font-family: var(--mono); }
.kill td:first-child { font-family: inherit; }
.kill-opts { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; font-size: 12.5px; color: var(--dim); flex-wrap: wrap; }
.kill-opts input[type=number] { width: 5.2em; padding: .25rem .4rem; background: var(--canvas); color: var(--paper); border: 1px solid var(--rule-strong); border-radius: 4px; font: 13px var(--mono); }
.lo-notes { font-size: 12.5px; color: var(--dim); }
.lo-notes p { margin: 0 0 .5rem; }

/* bottom: a tab for every place a part can go, the parts for the open tab as a row of cards, and the buttons under it */
.lo-dock { position: absolute; left: calc(var(--gap) + 10px); right: calc(var(--sw) + var(--gap) * 2); bottom: var(--gap); height: calc(var(--dock) - var(--gap)); display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.lo-tabrow { display: flex; align-items: flex-end; gap: 12px; min-height: 0; }
.lo-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; border-bottom: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); }
/* a row wider than its space: its ends fade where more is hidden, and the places row gets an arrow there */
.lo-tabs, .lo-subs { --fl: #000; --fr: #000; -webkit-mask-image: linear-gradient(90deg, var(--fl) 0, #000 30px, #000 calc(100% - 30px), var(--fr) 100%); mask-image: linear-gradient(90deg, var(--fl) 0, #000 30px, #000 calc(100% - 30px), var(--fr) 100%); }
.fade-l { --fl: transparent; } .fade-r { --fr: transparent; }
.tabarrow { flex: none; align-self: flex-end; width: 26px; height: 29px; margin: 0 -6px; padding: 0 0 2px; border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); border-radius: 2px; background: color-mix(in srgb, #0d0d0f 80%, transparent); color: var(--paper); font: 600 16px/1 var(--mono); }
.tabarrow:hover { border-color: var(--paper); background: color-mix(in srgb, var(--paper) 12%, transparent); } .tabarrow[hidden] { display: none; }
.lo-tab { flex: none; padding: 7px 10px 8px; border: 0; background: none; font: 600 11.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--dim); position: relative; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.lo-tab::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; opacity: .7; }
.lo-tab.has::before { background: currentColor; }
.lo-tab.build::before { display: none; }
.lo-tab.sub { padding-left: 6px; }
.lo-tab.sub::after { content: "›"; order: -1; color: var(--faint); margin-right: 1px; }
.lo-tab:hover, .lo-tab.hot { color: var(--paper); background: color-mix(in srgb, var(--paper) 7%, transparent); }
.lo-tab.on { color: var(--paper); background: color-mix(in srgb, var(--paper) 10%, transparent); box-shadow: inset 0 -2px 0 var(--accent); }
/* the open tab's sub-categories, as the game's own tags name them, and the parts that are not in the game right now */
.lo-subs { display: flex; gap: 4px; flex: none; padding-bottom: 6px; max-width: 62%; overflow-x: auto; scrollbar-width: none; }
.lo-subs button { padding: .3rem .6rem; border: 1px solid color-mix(in srgb, var(--paper) 20%, transparent); border-radius: 2px; background: color-mix(in srgb, #0d0d0f 70%, transparent); font: 600 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; backdrop-filter: blur(10px); }
.lo-subs button small { font-size: 10px; color: var(--faint); margin-left: 3px; }
.lo-subs button:hover { color: var(--paper); border-color: var(--paper); }
.lo-subs button.on { color: var(--paper); border-color: var(--paper); background: color-mix(in srgb, var(--paper) 14%, transparent); }
.lo-subs button.na { border-style: dashed; margin-left: 8px; }
.lo-subs button.na.on { color: #ffb62e; border-color: #ffb62e; background: color-mix(in srgb, #ffb62e 12%, transparent); }
.lo-cards { flex: 1; min-height: 0; display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 8px; scroll-behavior: smooth; }
.locard { flex: none; width: 172px; position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 7px 9px 8px; text-align: left; border: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); border-radius: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper) 7%, #0d0d0f) 0%, color-mix(in srgb, #0d0d0f 88%, transparent) 100%); overflow: hidden; }
.locard::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--rc, transparent); }
.locard:hover, .locard.hot { border-color: color-mix(in srgb, var(--paper) 60%, transparent); }
.locard.on { border-color: var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 26%, #0d0d0f) 0%, color-mix(in srgb, var(--accent) 8%, #0d0d0f) 100%); }
.locard .ct { display: flex; justify-content: space-between; gap: 6px; font: 500 9.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.locard .ct span:first-child { overflow: hidden; text-overflow: ellipsis; }
.locard .ct .p { color: var(--paper); }
.locard img, .locard .noimg { width: 100%; height: 100%; min-height: 0; object-fit: contain; align-self: center; }
.locard.na { border-style: dashed; } .locard.na img { opacity: .55; filter: grayscale(.6); } .locard.na .ct .p { color: #ffb62e; }
.locard .pc { display: block; height: 29px; overflow: hidden; margin-top: 3px; }
.locard .pc i { display: block; font: 500 10.5px/1.36 var(--mono); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* a magnified sight's rating: five pips, filled as far as it holds its picture, in a colour from red to green */
.pips { display: inline-flex; gap: 3px; flex: none; } .pips i { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--h) 70% 50%); } .pips i.o { background: color-mix(in srgb, var(--paper) 16%, transparent); }
.locard .pc i.sgt { display: flex; align-items: center; gap: 7px; color: var(--paper); overflow: visible; font-style: normal; }
.sight { display: grid; gap: 5px; font-size: 12.5px; color: var(--dim); } .sight p { margin: 0; } .sight b { color: var(--paper); font-family: var(--mono); font-weight: 600; }
.sight .sg-rate { display: flex; align-items: center; gap: 9px; } .sight .sg-rate b { font-family: inherit; font-size: 14px; } .sight .sg-rate small { color: var(--faint); font-size: 11.5px; }
.sight .fine { font-size: 11.5px; color: var(--faint); line-height: 1.45; }
.locard .pc i.rng { display: flex; align-items: center; gap: 6px; color: var(--paper); overflow: visible; }
.locard .pc i.rng u { flex: 1; height: 5px; border-radius: 3px; text-decoration: none; background: linear-gradient(to right, var(--lc) var(--w), color-mix(in srgb, var(--paper) 13%, transparent) var(--w)); }
.locard .pc i.cos { color: #00cdff; } .locard .pc i.add { color: var(--paper); }
.locard .noimg { display: grid; place-items: center; color: var(--faint); font-size: 24px; font-weight: 300; }
.locard b { font: 600 13px/1.2 var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.locard.empty b { color: var(--faint); font-weight: 500; }
.locard .more { position: absolute; right: 6px; top: 24px; font: 500 9.5px/1 var(--mono); color: var(--dim); background: rgba(10, 10, 11, .7); padding: 3px 5px; border-radius: 2px; }
.locard .eq { position: absolute; right: 6px; top: 24px; font: 700 9px/1 var(--mono); letter-spacing: .1em; color: var(--accent-ink); background: var(--accent); padding: 3px 5px; border-radius: 2px; }
.cards-none { align-self: center; color: var(--dim); font-size: 13.5px; padding: 0 6px; }
.lo-actions button { white-space: nowrap; }
.lo-foot { display: flex; align-items: center; gap: 8px; flex: none; }
.lo-foot .grow { flex: 1; }
.lo-foot button { padding: .3rem .8rem; }
.lo-foot button.red { background: color-mix(in srgb, var(--accent) 80%, #000); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.lo-foot button.arrow { padding: .1rem .6rem .22rem; font-size: 17px; line-height: 1; }
.lo-count { font: 12px var(--mono); color: var(--faint); margin-left: 4px; }
/* 3D quality: a small picker at the left of the dock's bottom row (the right is the light switches'); and what the lower settings switch off on the page itself */
.lo-q { display: flex; align-items: center; gap: 6px; flex: none; font: 11px var(--mono); letter-spacing: .04em; color: var(--faint); white-space: nowrap; margin-left: 8px; text-transform: uppercase; }
.lo-q[hidden] { display: none; }
.lo-q select { appearance: none; -webkit-appearance: none; padding: .28rem 1.5rem .28rem .6rem; border: 1px solid color-mix(in srgb, var(--paper) 24%, transparent); border-radius: 3px; background: color-mix(in srgb, #0d0d0f 72%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23aaa' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .5rem center / 8px 5px; font: 600 12px var(--text); letter-spacing: 0; color: var(--paper); cursor: pointer; }
.lo-q select:hover, .lo-q select:focus-visible { border-color: var(--paper); }
.lo-q option { background: #151516; color: var(--paper); }
.lo-q0 .lo *, .lo-q1 .lo * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }      /* blurring what is behind a panel is the page's dearest effect on a slow computer */
.lo-q0 .lo-side, .lo-q0 .lo-costbox, .lo-q1 .lo-side, .lo-q1 .lo-costbox { background: rgba(13, 13, 15, .95); }
:is(.lo-q0, .lo-q1) :is(.lo-actions button:not(.red), .lo-foot button:not(.red), .lo-q select, .prof span, .build, .mod, .lt-sw, .lo-subs button, .lo-sugg, .lo-detbtn) { background-color: rgba(13, 13, 15, .9); }
.lo-q0 .lo *, .lo-q0 .lo *::before, .lo-q0 .lo *::after { transition: none !important; animation: none !important; }
/* The view in motion (.lo-moving on the root: loadout.js puts it there while the weapon turns, glides or zooms, and takes it
   off a quarter of a second after it has come to rest). A blurred panel over a picture that changes is blurred afresh in
   every frame, each panel of them, so the blur is let go for as long as the view moves; each panel is a little more solid
   meanwhile, so that what is behind it does not suddenly show sharp. At rest nothing here applies: the look is the one above.
   (Minimal and Low have no blur to let go and are left as they are. A selected build or sub-category keeps its own colour.) */
.lo-moving:not(.lo-q0, .lo-q1) .lo * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.lo-moving:not(.lo-q0, .lo-q1) :is(.lo-side, .lo-costbox) { background-color: color-mix(in srgb, #0d0d0f 88%, transparent); }
.lo-moving:not(.lo-q0, .lo-q1) :is(.lo-actions, .lo-foot) button:not(.red) { background-color: color-mix(in srgb, #0d0d0f 80%, transparent); }
.lo-moving:not(.lo-q0, .lo-q1) :is(.lo-subs button:not(.on), .lo-sugg, .lo-detbtn) { background-color: color-mix(in srgb, #0d0d0f 78%, transparent); }
.lo-moving:not(.lo-q0, .lo-q1) .build:not(.on) { background-color: color-mix(in srgb, #0d0d0f 76%, transparent); }
.lo-moving:not(.lo-q0, .lo-q1) :is(.prof span, .mod) { background-color: color-mix(in srgb, #0d0d0f 74%, transparent); }
.lo-moving:not(.lo-q0, .lo-q1) .lt-sw { background-color: rgba(10, 10, 11, .85); }
.lo-moving:not(.lo-q0, .lo-q1) .lt-card { background-color: rgba(10, 10, 11, .92); }
/* Share build: the row's one red button, and the note that drops from it (the short link it copied; once, a pointer to it) */
.lo-actions { position: relative; }
.lo-actions button.red { background: color-mix(in srgb, var(--accent) 80%, #000); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.lo-actions button.red:hover { background: var(--accent); border-color: var(--accent); }
.sharebtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .sharebtn svg { width: 14px; height: 14px; flex: none; }
.lo-sharetip { position: absolute; right: 0; top: calc(100% + 10px); z-index: 7; box-sizing: border-box; width: max-content; max-width: min(310px, 88vw); display: grid; gap: 7px; padding: 10px 12px 11px; border: 1px solid var(--accent); border-radius: 3px; background: #131315; box-shadow: 0 10px 28px rgba(0, 0, 0, .55); font-size: 12.5px; line-height: 1.42; color: var(--dim); pointer-events: auto; }
.lo-sharetip[hidden] { display: none; }
.lo-sharetip::before { content: ""; position: absolute; right: 30px; top: -6px; width: 10px; height: 10px; background: #131315; border-left: 1px solid var(--accent); border-top: 1px solid var(--accent); transform: rotate(45deg); }
.lo-sharetip b { font: 600 13px var(--mono); color: var(--paper); overflow-wrap: anywhere; }
.lo-sharetip button { justify-self: end; padding: .25rem .7rem; font-size: 12px; }
.stage-hint { font: 11px var(--mono); letter-spacing: .04em; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 6px; }
.stage-hint[hidden] { display: none; }

/* choosing a weapon */
.lo-gunsheet { position: absolute; inset: 0; z-index: 8; background: rgba(0, 0, 0, .68); display: flex; justify-content: center; align-items: flex-start; padding: 5vh 16px; overflow: auto; }
.lo-gunsheet-box { width: min(1040px, 100%); background: #0d0d0f; border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 18px 20px 22px; }
.lo-gunsheet header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.lo-gunsheet header h2 { font: 700 1.45rem/1.1 var(--display); letter-spacing: .01em; text-transform: uppercase; color: var(--paper); }
#gunx { border: 0; background: none; font-size: 26px; line-height: 1; padding: 0 6px; color: var(--dim); }
#guns h3 { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 16px 2px 8px; }
#guns .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.lo-gun { display: grid; grid-template-rows: 70px auto auto; gap: 4px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 3px; background: color-mix(in srgb, var(--paper) 3%, transparent); text-align: left; }
.lo-gun:hover { border-color: var(--paper); }
.lo-gun.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.lo-gun img { width: 100%; height: 70px; object-fit: contain; }
.lo-gun b { font-size: 14.5px; font-weight: 600; }
.lo-gun small { color: var(--dim); font: 12px var(--mono); margin-left: 8px; }
.lo-gun em { display: block; font-style: normal; font-size: 11px; color: var(--faint); }
#guns .row.na .lo-gun { border-style: dashed; opacity: .8; }
/* the two weapons of the loadout */
.lo-hands { display: flex; gap: 4px; }
.lo-hands button { display: grid; text-align: left; padding: 4px 10px 5px; border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); border-radius: 2px; background: color-mix(in srgb, #0d0d0f 60%, transparent); min-width: 104px; }
.lo-hands small { font: 500 9.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.lo-hands b { font: 600 13px/1.25 var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.lo-hands button.on { border-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.lo-hands button.none b { color: var(--faint); font-weight: 500; }
.lo-hands button:hover { border-color: var(--paper); }
/* ---- the area's own navigation, and the pages around the builder ---- */
.lo-nav { flex: none; display: flex; align-items: stretch; gap: 2px; padding: 0 var(--gut); border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 3%, var(--canvas)); overflow-x: auto; scrollbar-width: none; position: relative; z-index: 19; }
.lo-nav button { flex: none; padding: 8px 14px 9px; border: 0; background: none; color: var(--dim); font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.lo-nav button small { font: 600 10px/1 var(--mono); letter-spacing: 0; color: var(--paper); background: color-mix(in srgb, var(--paper) 14%, transparent); border-radius: 9px; padding: 3px 6px; }
.lo-nav button small:empty { display: none; }
.lo-nav button:hover { color: var(--paper); } .lo-nav button.on { color: var(--paper); box-shadow: inset 0 -2px 0 var(--accent); }
.lo-nav .grow { flex: 1; }
.lo-nav .back { display: none; flex: none; align-items: center; padding: 0 12px 0 6px; font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-decoration: none; white-space: nowrap; border-right: 1px solid var(--rule); }
.lo-who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); white-space: nowrap; padding-left: 12px; }
.lo-who a, .lo-list a, .lo-form a, .lo-view a { color: var(--paper); }
.lo-who button { padding: .22rem .6rem; font: 12px var(--text); letter-spacing: 0; text-transform: none; border: 1px solid var(--rule-strong); border-radius: 3px; color: var(--paper); }
.lo.viewing > :not(.lo-view):not(.lo-gunsheet) { display: none; }
.lo-view { position: absolute; inset: 0; overflow: auto; background: var(--canvas); z-index: 4; }
.lo-view[hidden] { display: none; }
.v-wrap { max-width: 1080px; margin: 0 auto; padding: 28px var(--gut) 56px; } .v-wrap.wide { max-width: 1560px; }
.v-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 20px; }
.v-head h1 { font: 700 clamp(1.7rem, 3vw, 2.4rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 8px; }
.v-head p { margin: 0; color: var(--dim); font-size: 14.5px; max-width: 70ch; }
.v-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lo-view button, .lo-form .acts button { padding: .5rem .9rem; border: 1px solid color-mix(in srgb, var(--paper) 24%, transparent); border-radius: 3px; background: none; font: 13px var(--text); color: var(--paper); cursor: pointer; }
.lo-view button:hover, .lo-form .acts button:hover { border-color: var(--paper); }
.lo-view button.red, .lo-form .acts .red { background: color-mix(in srgb, var(--accent) 80%, #000); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 3px; overflow: hidden; }
.lo-view .seg button { border: 0; border-radius: 0; padding: .5rem .9rem; color: var(--dim); } .lo-view .seg button.on { background: color-mix(in srgb, var(--paper) 14%, transparent); color: var(--paper); }
.lo .v-sub { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 28px 0 10px; } .v-sub small { color: var(--faint); margin-left: 4px; }
.v-empty { border: 1px dashed var(--rule-strong); border-radius: 4px; padding: 26px 24px; max-width: 640px; }
.v-empty h3 { font: 700 1.15rem/1.2 var(--display); text-transform: uppercase; margin: 0 0 8px; } .v-empty p { margin: 0 0 12px; color: var(--dim); font-size: 14px; }
.st-row { display: flex; gap: 8px; margin-bottom: 10px; } .st-row input { flex: 1; min-width: 0; padding: .55rem .7rem; background: var(--canvas); color: var(--paper); border: 1px solid var(--rule-strong); border-radius: 3px; font: 14px var(--text); }
.lo-list { display: grid; gap: 10px; } .lo-list .lead { margin: 0 0 4px; font-size: 14px; color: var(--dim); max-width: 78ch; }
.lo-view .fine, .lo-list .fine { font-size: 12px; color: var(--faint); margin: 8px 0 0; max-width: 90ch; }
.lo-note { margin: 0 0 4px; padding: 9px 12px; font-size: 13px; border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.lo-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px; border: 1px solid var(--rule); border-radius: 4px; background: color-mix(in srgb, var(--paper) 3%, transparent); }
.lo-item.hid { opacity: .6; }
.lo-item h3 { font: 700 1.1rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .01em; display: flex; gap: 8px 10px; align-items: baseline; flex-wrap: wrap; margin: 0; }
.lo-item .tagx { font: 500 10px/1 var(--mono); letter-spacing: .1em; color: var(--dim); border: 1px solid var(--rule-strong); padding: 3px 6px; border-radius: 2px; }
.lo-item p { margin: 5px 0 0; font-size: 13.5px; color: var(--dim); max-width: 70ch; }
.lo-item .by { display: block; color: var(--faint); font-size: 12px; margin-top: 10px; }
.lo-item .acts { display: grid; gap: 5px; min-width: 104px; }
.lo-item .vote { display: grid; justify-items: center; gap: 1px; padding: 7px 0 8px; border: 1px solid var(--rule-strong); border-radius: 3px; background: none; }
.lo-item .vote i { font-style: normal; font-size: 12px; color: var(--dim); } .lo-item .vote b { font: 700 16px/1 var(--mono); }
.lo-item .vote.on { border-color: #5fd47a; color: #5fd47a; } .lo-item .vote.on i { color: #5fd47a; } .lo-item .vote.none { border: 0; }
.lo-item .rank { font: 700 1.9rem/1 var(--display); color: var(--accent); text-align: center; padding-top: 4px; }
.lo-item .sum { margin: 8px 0 0; }
/* one build of a loadout: picture, name and cost, the four bars */
.lo-bs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin-top: 12px; }
.lo-b { max-width: 480px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 3px; background: color-mix(in srgb, #000 30%, transparent); }
.lo-b img { width: 120px; height: 50px; object-fit: contain; }
.lo-b > div { display: grid; min-width: 0; } .lo-b small { font: 10.5px/1.35 var(--mono); color: var(--faint); letter-spacing: .05em; text-transform: uppercase; } .lo-b b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars { display: grid; gap: 3px; margin-top: 4px; } .lo-b .bars { grid-column: 1 / -1; margin-top: 6px; }
.bars > span { display: grid; grid-template-columns: 62px minmax(0, 1fr) 62px; align-items: center; gap: 6px; }
.bars i { font: 500 9.5px/1 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.bars u { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--paper) 9%, transparent); overflow: hidden; text-decoration: none; }
.bars s { display: block; height: 100%; border-radius: 3px; text-decoration: none; }
.bars em { font: 500 10.5px/1 var(--mono); font-style: normal; color: var(--dim); text-align: right; margin: 0; display: block; }
/* the shared links (editors) */
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-top: 10px; }
.sh-card { display: grid; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--paper) 3%, transparent); }
.sh-card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: #000; }
.sh-card > div { display: grid; gap: 4px; padding: 10px 12px 12px; } .sh-card b { font-size: 14.5px; } .sh-card small { font-size: 12px; color: var(--faint); }
.sh-card .acts { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; } .sh-card .acts code { font: 11.5px var(--mono); color: var(--dim); margin-right: auto; }
.sh-card .acts button { padding: .32rem .7rem; }
/* the inventory */
.inv-sum { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 4px; font-size: 13.5px; color: var(--dim); align-items: baseline; }
.inv-sum b { font: 700 1.3rem/1 var(--display); color: var(--paper); margin-right: 5px; }
.inv-guns { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.inv-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.inv-part { display: grid; grid-template-rows: 46px auto auto; gap: 2px; padding: 8px 10px; border: 1px solid var(--rule); border-left: 2px solid var(--rc, var(--rule)); border-radius: 3px; background: color-mix(in srgb, var(--paper) 3%, transparent); }
.inv-part img { width: 100%; height: 46px; object-fit: contain; } .inv-part b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-part small { font: 10px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.own-note { margin: 10px 0 0; } .linkish { border: 0; background: none; padding: 0; color: var(--paper); text-decoration: underline; text-underline-offset: 3px; font: inherit; }
/* the save form (a dialog over the page) */
.lo-gunsheet-box.small { width: min(600px, 100%); }
.lo-gunsheet header { gap: 12px; } .lo-gunsheet header .grow { flex: 1; }
.lo-gunsheet .closex { border: 0; background: none; font-size: 26px; line-height: 1; padding: 0 6px; color: var(--dim); }
.lo-form { display: grid; gap: 12px; margin-top: 8px; }
.lo-form label { display: grid; gap: 5px; font-size: 12.5px; color: var(--dim); } .lo-form label small { color: var(--faint); }
.lo-form label.chk { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--paper); font-size: 13.5px; } .lo-form label.chk .lo-b { flex: 1; }
.lo-form input[type=text], .lo-form textarea { padding: .55rem .7rem; background: var(--canvas); color: var(--paper); border: 1px solid var(--rule-strong); border-radius: 3px; font: 14px var(--text); resize: vertical; }
.lo-form .sv-builds { display: grid; gap: 8px; }
.lo-form .acts { display: flex; gap: 8px; }
.lo-form p { margin: 0; font-size: 12.5px; }
/* two builds head to head */
.h2h { border-collapse: collapse; font: 13px var(--mono); margin: 4px 0 14px; min-width: min(720px, 100%); }
#h2h { overflow-x: auto; }
.h2h th, .h2h td { padding: 5px 14px 5px 0; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.h2h thead th { font: 700 13.5px var(--text); vertical-align: bottom; } .h2h thead th small { display: block; font: 10.5px var(--mono); color: var(--faint); font-weight: 400; }
.h2h tbody th { text-align: left; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.h2h td.best { color: #5fd47a; font-weight: 700; }
#h2h > p { margin: 0 0 10px; }
.cmp-add { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; max-width: 760px; }
.cmp-add input { flex: 1 1 220px; min-width: 0; padding: .5rem .7rem; background: #16161a; color: var(--paper); border: 1px solid var(--rule-strong); border-radius: 3px; font: 13px var(--mono); }
.cmp-add .fine { flex: 1 1 100%; margin: 0; color: #ff9a90; }
/* two builds head to head: a picture and a score each, then who is ahead at what */
.duo { margin: 0 0 26px; --ca: #4a9bff; --cb: #ffb62e; }
.duo-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: stretch; }
.duo-vs { align-self: center; font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.duo-side { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; border: 1px solid var(--rule); border-top: 2px solid var(--c); background: #111114; min-width: 0; }
.duo-side.s0 { --c: var(--ca); } .duo-side.s1 { --c: var(--cb); }
.duo-side.won { border-color: color-mix(in srgb, #5fd47a 55%, transparent); border-top-color: var(--c); }
.duo-side select { width: 100%; padding: .45rem .6rem; background: #16161a; color: var(--paper); border: 1px solid var(--rule-strong); border-radius: 3px; font: 13px var(--text); }
.duo-pic { flex: 1; min-height: 150px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--paper) 9%, transparent), transparent 70%); }
.duo-pic img { max-width: 100%; max-height: 230px; width: auto; height: auto; object-fit: contain; opacity: .9; } .duo-pic img.d3 { width: 100%; opacity: 1; }
.duo-pic.none { color: var(--faint); font-size: 13.5px; text-align: center; padding: 0 12%; }
.duo-id { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.duo-id b { display: block; font: 700 1.05rem/1.2 var(--text); overflow-wrap: anywhere; } .duo-id small { font: 11px var(--mono); color: var(--faint); }
.duo-id em { font: 700 2.6rem/.9 var(--display); font-style: normal; color: var(--dim); text-align: right; }
.duo-side.won em { color: #5fd47a; } .duo-id em i { display: block; font: 600 10px/1 var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.duo-verdict { margin: 16px 0 14px; font-size: 15px; color: var(--dim); max-width: 95ch; } .duo-verdict b { color: var(--paper); }
.duo-cats { display: grid; gap: 7px; max-width: 980px; }
.duo-cat { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) 11.5em minmax(0, 1fr) 2.4em; gap: 10px; align-items: center; font: 600 13px var(--mono); }
.duo-cat > b { color: var(--dim); } .duo-cat > b:first-child { text-align: right; }
.duo-cat.wa > b:first-child, .duo-cat.wb > b:last-child { color: #5fd47a; }
.duo-cat u { display: flex; height: 8px; background: color-mix(in srgb, var(--paper) 8%, transparent); text-decoration: none; } .duo-cat u.l { justify-content: flex-end; }
.duo-cat u i { display: block; height: 100%; background: var(--ca); opacity: .45; } .duo-cat u.r i { background: var(--cb); }
.duo-cat.wa u.l i, .duo-cat.wb u.r i { opacity: 1; }
.duo-cat span { text-align: center; font: 600 12.5px var(--text); } .duo-cat span small { display: block; font: 10.5px var(--mono); color: var(--faint); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duo .fine { margin: 12px 0 0; }
.duo-more { margin-top: 16px; } .duo-more summary { cursor: pointer; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
@media (max-width: 700px) {
  .duo-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; } .duo-vs { display: none; }
  .duo-side { padding: 8px 8px 10px; } .duo-pic { min-height: 90px; } .duo-id { flex-direction: column; align-items: flex-start; gap: 6px; } .duo-id em { font-size: 2rem; text-align: left; }
  .duo-cat { grid-template-columns: 2em minmax(0, 1fr) 7.5em minmax(0, 1fr) 2em; gap: 6px; }
}
.cmp tr.pinned th, .cmp tr.pinned td { background: color-mix(in srgb, var(--paper) 9%, #111114); cursor: pointer; }
.cmp .unpin { float: right; border: 0; background: none; color: var(--dim); font-size: 16px; line-height: 1; padding: 0 2px; } .cmp .unpin:hover { color: var(--paper); }
.lo-gun.off { opacity: .6; cursor: default; } .lo-gun.off:hover { border-color: var(--rule); }
/* every weapon side by side */
.lo-gunsheet-box.wide { width: min(1500px, 100%); }
.lo-gunsheet-box > p { margin: 2px 0 12px; }
.cmp-wrap { overflow: auto; max-height: 78vh; min-height: 220px; border: 1px solid var(--rule); }
.cmp { border-collapse: collapse; width: 100%; font: 12.5px var(--mono); white-space: nowrap; }
.cmp thead th { position: sticky; top: 0; z-index: 2; background: #16161a; padding: 8px 9px; text-align: right; font: 600 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); cursor: pointer; border-bottom: 1px solid var(--rule-strong); }
.cmp thead th:first-child, .cmp tbody th { text-align: left; position: sticky; left: 0; background: #111114; z-index: 1; }
.cmp thead th:first-child { z-index: 3; background: #16161a; }
.cmp thead th:hover, .cmp thead th.on { color: var(--paper); }
.cmp tbody th { padding: 6px 12px 6px 10px; font: 600 13px var(--text); border-bottom: 1px solid var(--rule); }
.cmp tbody th small { display: block; font: 10.5px var(--mono); color: var(--faint); font-weight: 400; }
.cmp td { position: relative; padding: 6px 9px; text-align: right; border-bottom: 1px solid var(--rule); min-width: 58px; }
.cmp td i { position: absolute; left: 6px; bottom: 2px; height: 2px; max-width: calc(100% - 12px); background: color-mix(in srgb, var(--paper) 34%, transparent); }
.cmp td.best { color: #5fd47a; font-weight: 700; } .cmp td.best i { background: #5fd47a; }
.cmp tbody tr[data-w] { cursor: pointer; } .cmp tbody tr[data-w]:hover th, .cmp tbody tr[data-w]:hover td { background: color-mix(in srgb, var(--paper) 7%, #111114); }
.cmp tr.me th, .cmp tr.me td { background: color-mix(in srgb, var(--accent) 16%, #111114); position: sticky; top: 31px; z-index: 1; }
.cmp tr.me th { z-index: 2; box-shadow: inset 2px 0 0 var(--accent); }
.cmp tr.cur th { box-shadow: inset 2px 0 0 var(--paper); }

@media (max-height: 800px) and (min-width: 1101px) { .lo { --dock: 180px; } .locard .pc { height: 15px; } }
@media (max-width: 1100px) {
  .lo-page { overflow: auto; height: auto; }
  .lo { overflow: visible; display: flex; flex-direction: column; --gap: 10px; background: #0d0d0f; }
  .lo-head { position: static; order: 0; padding: 10px 12px 6px; flex-wrap: wrap; gap: 10px; }
  .lo-rule { display: none; }
  .lo-actions { margin-left: auto; }
  .lo-stage { position: relative; inset: auto; height: 44vh; min-height: 260px; order: 1; background: radial-gradient(ellipse 80% 70% at 50% 50%, #2b2c31 0%, #17181a 50%, #0d0d0f 100%); }
  .lo-stage::after { display: none; }
  .lo-dock { position: static; order: 2; height: auto; padding: 8px 10px 4px; }
  .lo-tabrow { flex-wrap: wrap; }
  .lo-cards { height: 196px; flex: none; }
  .lo-subs { max-width: 100%; }
  .stage-hint, .lo-foot .arrow { display: none; }
  .lo-info { position: static; order: 3; width: auto; padding: 10px 12px; overflow: visible; }
  .lo-side { position: static; width: auto; margin: var(--gap); order: 4; }
  .lo-costbox { right: var(--gap); top: 110px; }
  .lo-view { position: static; overflow: visible; }
  .lo-gunsheet { position: fixed; z-index: 30; }           /* the page scrolls here: a dialog stays on the screen, wherever it was opened from */
  .lo-stage canvas { touch-action: pan-y; }                /* a finger moving up or down the weapon scrolls the page; sideways turns it, two fingers zoom */
  .lo-nav { position: sticky; top: 54px; padding: 0 8px; }
  .lo-who span { display: none; }
  .v-wrap { padding: 20px 14px 40px; }
  .lo-item { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .lo-item .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; } .lo-item .acts button { flex: 1 1 auto; }
  .lo-bs { grid-template-columns: minmax(0, 1fr); } .lo-b { grid-template-columns: 92px minmax(0, 1fr); } .lo-b img { width: 92px; height: 40px; }
  .lo-hands { order: 3; width: 100%; } .lo-hands button { flex: 1; min-width: 0; }
  .lo-actions { flex-wrap: wrap; } .lo-actions button { flex: 1 1 auto; }
  .inv-guns { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); } .inv-parts { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
  #guns .row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .lo-gunsheet { padding: 12px 8px; } .lo-gunsheet-box { padding: 14px 12px 18px; }
  .cmp-wrap { max-height: none; }
}
/* Phones: the builder works like the game's screen instead of one long page. The weapon stays on screen under the navigation;
   under it a strip of the numbers that matter while fitting parts, and a switch between Parts, Stats and Kill & cover, which
   show one at a time. The head above the weapon is three tight rows and scrolls away. */
.lo-mbar { display: none; }
@media (max-width: 760px) {
  .lo { --mtop: 90px; --mst: clamp(176px, 29svh, 264px); }          /* --mtop: the site's bar and the loadout navigation, both of which stay */
  .lo-head { padding: 8px 10px 6px; gap: 6px; }
  .lo-gunbtn { flex: 1 1 100%; min-width: 0; padding: 2px 0; } .lo-gunbtn .h { font-size: 13px; letter-spacing: .1em; } .lo-gunbtn .h i { margin-left: auto; }
  .lo-hands { order: 1; gap: 6px; } .lo-hands button { padding: 3px 8px 4px; min-width: 0; } .lo-hands b { max-width: none; }
  .lo-actions { order: 2; width: 100%; margin: 0; flex-wrap: nowrap; gap: 5px; } .lo-actions button { flex: 1 1 auto; min-width: 0; padding: .5rem .3rem; font-size: 12px; }
  .lo-cost { justify-content: center; gap: 4px; } .lo-cost b { font-size: 1.05rem; } .lo-cost span { font-size: 10.5px; }
  .lo-costbox { z-index: 8; top: 150px; left: var(--gap); width: auto; }
  .lo-stage { position: sticky; top: var(--mtop); height: var(--mst); min-height: 0; z-index: 6; }
  .lo-mbar { display: block; order: 1; position: sticky; top: calc(var(--mtop) + var(--mst)); z-index: 6; background: #0d0d0f; border-bottom: 1px solid var(--rule); }
  .lo-mstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 6px 5px; border-top: 1px solid var(--rule); }
  .lo-mstrip span { display: grid; justify-items: center; gap: 3px; min-width: 0; color: var(--paper); }
  .lo-mstrip i { font: 500 9px/1 var(--mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
  .lo-mstrip b { font: 700 13.5px/1 var(--mono); white-space: nowrap; }
  .lo-mstrip small { font: 600 9.5px/1 var(--mono); min-height: 10px; color: var(--faint); } .lo-mstrip .up small { color: #5fd47a; } .lo-mstrip .down small { color: #ff6b5e; }
  .lo-mseg { display: flex; border-top: 1px solid var(--rule); }
  .lo-mseg button { flex: 1; padding: 11px 4px 12px; border: 0; background: none; color: var(--dim); font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
  .lo-mseg button.on { color: var(--paper); box-shadow: inset 0 -2px 0 var(--accent); }
  .lo[data-m="stats"] > .lo-dock, .lo[data-m="stats"] > .lo-info, .lo[data-m="kill"] > .lo-dock, .lo[data-m="kill"] > .lo-info, .lo[data-m="parts"] > .lo-side { display: none; }
  .lo[data-m="stats"] .lo-side > .lo-fold, .lo[data-m="kill"] #statcard { display: none; }
  .lo-side { margin: 0; padding: 12px 12px 32px; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .lo[data-m="kill"] #killfold { border-top: 0; margin-top: 0; }
  .lo-dock { padding: 6px 10px 2px; } .lo-cards { height: 180px; }
  /* the places get the whole width of their row; the open place's sub-categories go on a row of their own under them
     (side by side, a short list of sub-categories squeezed the places down to one and a half) */
  .lo-tabrow { gap: 6px 12px; } .lo-subs { flex: 1 1 100%; max-width: 100%; padding-bottom: 2px; } .lo-subs:empty { display: none; }
  .lo-info { padding: 6px 12px 32px; }
  @media (max-height: 520px) { .lo-stage, .lo-mbar { position: static; } }      /* a phone on its side: nothing is pinned, there is no room */
}
@media (max-width: 520px) {
  .lo-nav .back { display: flex; }
  /* a weapon card is a row across the screen: picture, name, then the bars at a width they can be read at */
  #guns .row, .inv-guns { grid-template-columns: minmax(0, 1fr); }
  .lo-gun { grid-template-rows: none; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 4px 12px; }
  .lo-gun img { width: 104px; height: 48px; } .lo-gun .bars { grid-column: 1 / -1; }
  .h2h { font-size: 12px; min-width: 0; width: 100%; } .h2h th, .h2h td { padding-right: 8px; } .h2h thead th { font-size: 12px; white-space: normal; }
}   /* the site's own links are folded away at this width: the way back to the game's maps */
/* the light switches where the builder is one column: in the corner of the weapon's own box, the card smaller */
@media (max-width: 1100px) {
  .lo-lights { left: 8px; bottom: 8px; right: 8px; flex-wrap: wrap; }
  .lt-card { grid-template-columns: 84px minmax(0, 176px); gap: 8px; padding: 7px; } .lt-card canvas { width: 84px; height: 84px; } .lt-n { font-size: 11px; gap: 2px; } .lt-n span:nth-child(4) { display: none; }
}
/* on a phone the weapon's box is short: the card is one strip beside the switch (the spot, the beam's angle and its width) */
@media (max-width: 760px) {
  .lo-lights { gap: 6px; flex-wrap: nowrap; } .lt { gap: 6px; align-items: stretch; min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
  .lt-sw { padding: 5px 8px; gap: 7px; flex: none; } .lt-sw small { font-size: 11px; }
  .lt-card { grid-template-columns: 44px minmax(0, 1fr); gap: 7px; padding: 5px 7px 5px 5px; align-items: center; min-width: 0; flex: 0 1 auto; }
  .lt-card canvas { width: 44px; height: 44px; } .lt-card > div { align-content: center; }
  .lt-card label, .lt-n span:nth-child(n+3), .lt-card.laser { display: none; }
  .lt-n { font-size: 10.5px; gap: 1px; }
}
/* On a wide screen the light switches sit in the dock's bottom row, left of its arrows, so the strip above the dock is the
   weapon's; a switched-on light's card opens above the dock. (The row's hint makes way for them.) */
@media (min-width: 1101px) {
  .lo-lights { left: auto; right: calc(var(--sw) + var(--gap) * 2 + 76px); bottom: var(--gap); gap: 6px; align-items: center; z-index: 3; }
  .lt { position: relative; flex-direction: row; align-items: center; }
  .lt-sw { padding: 3px 8px 3px 9px; gap: 7px; } .lt-sw span { display: flex; align-items: baseline; gap: 6px; } .lt-sw small { font-size: 11.5px; } .lt-sw em { padding: 3px 5px; }
  .lt-card { position: absolute; right: 0; bottom: calc(var(--dock) - var(--gap) + 12px); width: 344px; } .lt-card.laser { width: 290px; }
  .lo:has(#lights:not([hidden])) .stage-hint { display: none; }
  /* a lower dock: a part's card lies on its side - the picture on the left, as tall as the card allows, its name and what
     it changes beside it - so the picture is no smaller than it was in the taller card */
  .locard { width: 212px; grid-template-columns: 66px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 9px; }
  .locard .ct { grid-column: 1 / -1; margin-bottom: 3px; }
  .locard img, .locard .noimg { grid-column: 1; grid-row: 2 / 4; }
  .locard > b { grid-column: 2; grid-row: 2; margin-top: 1px; }
  .locard .pc { grid-column: 2; grid-row: 3; height: auto; min-height: 0; }
  .locard .more, .locard .eq { right: auto; left: 6px; top: auto; bottom: 6px; }
}
/* ---- a simpler first look (asked for after visitors called the page overwhelming) ----------------------------------------
   Left: one line saying what to do, strong and weak, and one button for the worked-out builds. Right: the four numbers and
   what the parts change, the rest behind "Details". The dock at the build: a tile per place, all of them in view. */
.lo-info p.lo-start { font-size: 14px; color: var(--paper); margin: 2px 0 12px; max-width: 30ch; }
.lo-sugg, .lo-detbtn { display: flex; align-items: center; gap: 8px; width: min(100%, 300px); margin: 10px 0 0; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--paper) 26%, transparent); border-radius: 3px; background: color-mix(in srgb, #0d0d0f 70%, transparent); backdrop-filter: blur(8px); font: 600 13px var(--text); color: var(--paper); text-align: left; pointer-events: auto; cursor: pointer; }
.lo-sugg:hover, .lo-detbtn:hover { border-color: var(--paper); }
.lo-sugg span, .lo-detbtn span { flex: 1; } .lo-sugg small { font: 600 10.5px/1 var(--mono); color: var(--paper); background: color-mix(in srgb, var(--paper) 14%, transparent); border-radius: 9px; padding: 3px 7px; } .lo-sugg i, .lo-detbtn i { font-style: normal; color: var(--dim); }
.lo-sugglist { margin-top: 2px; } .lo-sugglist[hidden] { display: none; }
.lo-detbtn { width: 100%; margin: 12px 0 2px; }
.lo-pick { align-self: center; padding: 6px 2px 9px; font: 500 12.5px var(--text); color: var(--dim); white-space: nowrap; } .lo-pick b { font: 600 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-right: 12px; }
.lo-tab.build { position: sticky; left: 0; z-index: 2; margin-right: 8px; padding-left: 9px; padding-right: 11px; border: 1px solid color-mix(in srgb, var(--paper) 26%, transparent); border-bottom: 0; border-radius: 3px 3px 0 0; color: var(--paper); background: #131315; }
.lo-tab.build:hover { background: #222226; }
.lo-tabs.fade-l:has(.lo-tab.build) { --fl: #000; }      /* (the way back stays in view while the places scroll under it) */
.locard.slot { width: 118px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 0; text-align: center; }
.locard.slot .ct { justify-content: center; } .locard.slot > b { font-size: 12px; }
@media (min-width: 761px) {                /* (a phone has its own Stats and Kill & cover sections: nothing is folded away there) */
  .lo-side:not(.det) .lo-det, .lo-side:not(.det) > .lo-fold { display: none; }
}
@media (max-width: 760px) { .lo-detbtn { display: none; } }
@media (min-width: 1101px) {
  .lo-cards.slots { gap: 5px; }
  .locard.slot { flex: 1 1 0; width: auto; min-width: 62px; max-width: 168px; padding: 6px 5px 7px; }
  .locard.slot .ct { letter-spacing: .04em; }
  .lo-side:not(.det) { bottom: auto; }      /* (the panel is as tall as what is in it) */
  .locard.slot .ct { grid-column: 1; margin-bottom: 2px; }
  .locard.slot img, .locard.slot .noimg { grid-column: 1; grid-row: 2; }
  .locard.slot > b { grid-column: 1; grid-row: 3; margin-top: 2px; }
}
/* a flashlight's card, second part: the lamp seen from the front at five distances (bars in the lamp's colour) */
.lt-front { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: end; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); }
.lt-front > b { align-self: start; font: 600 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--paper); max-width: 9ch; }
.lt-bars { display: flex; gap: 6px; height: 58px; align-items: stretch; }
.lt-bars span { flex: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; justify-items: center; gap: 2px; min-width: 0; }
.lt-bars u { align-self: end; width: 100%; max-width: 30px; border-radius: 2px 2px 0 0; background: var(--lc); text-decoration: none; box-shadow: 0 0 8px -2px var(--lc); }
.lt-bars i { font: 600 10.5px/1 var(--mono); font-style: normal; color: var(--paper); } .lt-bars em { font: 500 10px/1 var(--mono); font-style: normal; color: var(--faint); }
.lt-front small { grid-column: 1 / -1; font-size: 10.5px; line-height: 1.4; color: var(--faint); }
/* A phone: the card stays one strip beside the switch, so the weapon is still seen. The bars are left out (".lt-card > div"
   above would show them again: hence the longer selector) and the lamp is one more line of the strip. */
@media (max-width: 760px) { .lt-card > .lt-front { display: none; } .lt-n span.lamp:nth-child(n) { display: block; } }
/* (the one-column layout between a phone and a wide screen has a short weapon box too: the bars stay out there, the lamp's line stays in) */
@media (min-width: 761px) and (max-width: 1100px) { .lt-card > .lt-front { display: none; } }
@media (min-width: 1101px) {                /* on a wide screen the card grows sideways, not upwards: the weapon keeps its height */
  .lt-card:not(.laser) { width: 566px; grid-template-columns: 108px minmax(0, 204px) minmax(0, 1fr); }
  .lt-front { grid-column: 3; grid-row: 1; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 6px; padding: 0 0 0 12px; border-top: 0; border-left: 1px solid color-mix(in srgb, var(--paper) 14%, transparent); }
  .lt-front > b { max-width: none; } .lt-bars { height: 74px; }
}
/* a part's effect the game's own screen does not list (instability, kick through a scope): kept, a shade quieter */
.mod.ours > span { opacity: .72; font-style: italic; }
