:root {
  --bg: #eef2f6;
  --ink: #10202f;
  --soft: rgba(16, 32, 47, 0.56);
  --line: rgba(16, 32, 47, 0.1);
  --accent: #1f6fff;
  --open: #12905a;
  --hold: #c97a00;
  --closed: rgba(16, 32, 47, 0.42);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 8px 14px;
}

.sl { width: min(322px, 100%); }
.sl__roll { display: block; overflow: hidden; }
.sl__roll > span { display: block; white-space: nowrap; }

.sl__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.sl__title b { display: block; font-size: clamp(20px, 6.400vh, 26px); line-height: 1.1; font-weight: 400; letter-spacing: -0.03em; font-variation-settings: "wght" 680, "wdth" 96; }
.sl__title .sl__roll { height: 17px; margin-top: 2px; font-size: 12px; line-height: 17px; font-weight: 600; color: var(--soft); }
.sl__wind { --tone: var(--soft); display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 9px; border-radius: 14px; background: #ffffff; box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; }
.sl__wind svg { width: 22px; height: 15px; overflow: visible; fill: none; stroke: var(--tone); stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; }
.sl__wind b { display: inline-block; min-width: 1.300em; text-align: right; font-weight: 720; color: var(--ink); }
.sl__wind.is-strong { --tone: var(--hold); }
.sl__wind.is-strong b { color: var(--hold); }

.sl__list { list-style: none; margin-top: clamp(6px, 2.200vh, 12px); border-radius: 18px; background: #ffffff; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -28px rgba(16, 32, 47, 0.45); overflow: hidden; }
.sl__lift { --tone: var(--open); position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr) 70px; align-items: center; gap: 4px; height: clamp(40px, 12.500vh, 48px); padding: 0 12px; outline: none; cursor: default; }
.sl__lift + .sl__lift { border-top: 1px solid var(--line); }
.sl__lift.is-hold { --tone: var(--hold); }
.sl__lift.is-closed { --tone: var(--closed); }
/* the highlight is a layer of its own, so the row never changes size */
.sl__lift::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--accent) 7%, transparent); opacity: 0; transition: opacity 0.25s ease; }
.sl__lift.is-seen::before, .sl__lift:focus-visible::before { opacity: 1; }
.sl__name { position: relative; min-width: 0; }
.sl__name b { display: block; font-size: 13px; line-height: 17px; font-weight: 680; white-space: nowrap; }
.sl__name span { display: block; font-size: 10.5px; line-height: 14px; font-weight: 560; color: var(--soft); white-space: nowrap; }
.sl__lift.is-closed .sl__name b { color: var(--soft); }

.sl__cable { position: relative; display: block; width: 100%; height: 100%; overflow: visible; fill: none; }
.sl__wire { stroke: rgba(16, 32, 47, 0.3); stroke-width: 1.100; stroke-linecap: round; }
.sl__lift.is-closed .sl__wire { stroke-dasharray: 3 3; stroke: rgba(16, 32, 47, 0.2); }
.sl__pylon { stroke: rgba(16, 32, 47, 0.22); stroke-width: 1.500; stroke-linecap: round; }
.sl__cab line { stroke: var(--ink); stroke-width: 1; stroke-linecap: round; }
.sl__cab rect { fill: var(--ink); }
.sl__cab path { stroke: var(--ink); stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }
.sl__lift.is-hold .sl__cab rect { fill: var(--hold); }
.sl__lift.is-hold .sl__cab line, .sl__lift.is-hold .sl__cab path { stroke: var(--hold); }
.sl__lift.is-seen:not(.is-hold) .sl__cab rect { fill: var(--accent); }
.sl__lift.is-seen:not(.is-hold) .sl__cab line, .sl__lift.is-seen:not(.is-hold) .sl__cab path { stroke: var(--accent); }

.sl__state { position: relative; text-align: right; font-size: 11.5px; font-weight: 700; color: var(--tone); }
.sl__state .sl__roll { height: 16px; line-height: 16px; }
.sl__state small { display: block; height: 14px; font-size: 10.5px; line-height: 14px; font-weight: 560; color: var(--soft); white-space: nowrap; }

.sl__foot { margin-top: clamp(4px, 1.800vh, 10px); font-size: 12px; font-weight: 600; color: var(--soft); text-align: center; }
.sl__foot .sl__roll { height: 17px; line-height: 17px; }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #10202f;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(16, 32, 47, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

/* on a large screen the scene is drawn bigger, so the poster and the preview video are not small in a big room */
@media (min-width: 900px) and (min-height: 680px) {
  .sl { zoom: 1.6; }
}
@media (min-width: 1100px) and (min-height: 800px) {
  .sl { zoom: 2; }
}
