/* Three loaders (js/loader-options.js), round fifteen. Nothing here applies without ?loader=. */
.lx .loader > svg:not(.lx-lock), .lx .loader > p { display: none; }
.lx .loader { overflow: hidden; }
/* the lockup: the mark beside the word, hairlines that fill */
.loader svg.lx-lock { width: min(500px, 80vw); height: auto; overflow: visible; position: relative; z-index: 3; }
.lx-lock .lx-s, .lx-lock .lx-d { fill: none; stroke: #f4f1e9; stroke-width: 1.25; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 1; }
.lx-lock .lx-d { stroke: #c8372d; }
.lx-lock .lx-word { font-family: var(--caps); font-weight: 500; font-size: 64px; letter-spacing: 0; }
.lx-lock .lx-sub { font-family: var(--caps); font-weight: 400; font-size: 13px; letter-spacing: 0; }
.lx-lock .lx-wo { fill: none; stroke: #f4f1e9; stroke-width: .9; }
.lx-lock .lx-so { fill: rgba(244, 241, 233, .38); }
.lx-lock .lx-sf { fill: #f4f1e9; stroke: none; stroke-dasharray: none; }
.lx-lock .lx-df { fill: none; stroke: #c8372d; stroke-width: 3.2; stroke-linecap: square; stroke-dasharray: none; stroke-dashoffset: 0; }
.lx-lock .lx-wf { fill: #f4f1e9; }
.lx-lock .lx-sf2 { fill: var(--dim); }
.lx-lock .lx-pen { stroke: #c8372d; stroke-width: 1.6; opacity: 0; }
.lx-lock .lx-scan { stroke: #e4493b; stroke-width: 1.4; opacity: 0; filter: drop-shadow(0 0 3px rgba(228, 73, 59, .9)); }

/* Guides: hairlines across the screen through every edge, a red construction line at 45 degrees */
.lx-gd { position: absolute; inset: 0; z-index: 1; pointer-events: none; }   /* the guides layer (not .lx-guides, a body class too) */
.lx-g { position: absolute; display: block; background: rgba(244, 241, 233, .5); }
.lx-g.h { left: 0; width: 100%; height: 1px; transform: scaleX(0); }
.lx-g.v { top: 0; height: 100%; width: 1px; transform: scaleY(0); }
.lx-g.r { height: 1px; background: #c8372d; transform-origin: 50% 50%; }

/* Scan: a dimension line under the lockup with a counter, the scanner bed and its beam */
.lx-dim { position: relative; z-index: 3; width: min(500px, 80vw); display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 12px; margin-top: 6px;
  font-family: var(--caps); text-transform: uppercase; letter-spacing: .22em; font-size: 10.5px; color: var(--dim); opacity: 0; --k: 0; }
.lx-dim::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(244, 241, 233, .22); z-index: -1; }
.lx-dim::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #c8372d; transform: scaleX(var(--k)); transform-origin: left; z-index: -1; }
.lx-dim .lx-tk { width: 1px; height: 11px; background: rgba(244, 241, 233, .55); }
.lx-dim span, .lx-dim b { background: var(--desk); padding: 0 8px; }
.lx-dim .lx-l { justify-self: start; }
.lx-dim .lx-r { justify-self: end; }
.lx-dim b { justify-self: center; font-family: var(--sans); font-weight: 300; font-size: 22px; letter-spacing: .04em; color: var(--paper); }
.lx-beam { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; z-index: 4; background: #e4493b; box-shadow: 0 0 10px 1px rgba(228, 73, 59, .75); opacity: 0; }
.lx-bed { position: absolute; left: -22vw; top: 0; bottom: 0; width: 22vw; z-index: 2; background: linear-gradient(90deg, rgba(228, 73, 59, 0), rgba(228, 73, 59, .07) 70%, rgba(244, 241, 233, .1)); opacity: 0; }
@media (max-width: 760px) {
  .lx-dim { grid-template-columns: auto 1fr auto; } .lx-dim .lx-l, .lx-dim .lx-r { display: none; }
  .lx-lock .lx-sub { font-size: 15px; }
}

/* Nov 24: nothing of the old static loader before a loader is picked (its hidden strokes left square-cap dots) */
.loader > svg:not(.lx-lock), .loader > p { visibility: hidden; }
.lx-old .loader > svg, .lx-old .loader > p { visibility: visible; }
.lx-g { opacity: 0; }   /* until the first frame places them */
