/* Security-office monitor wall theme for live-player (pairs with themes/security.js).
   Black Friday at a department store after hours: a wall of CCTV monitors, the program on the big one.
   Tokens: ink #07080a · panel #0e1211 · phosphor #b8f5c4 · doorbuster red #ff2a1f · sale yellow #ffd400
           receipt paper #f2efe6 · mute #8a918c.  Fonts: Anton (display), IBM Plex Mono (everything else);
   the page declares the @font-face rules, the theme only names the families (with fallbacks). */
.sec-room, .lp--security {
  --sec-ink: #07080a;
  --sec-panel: #0e1211;
  --sec-green: #b8f5c4;
  --sec-red: #ff2a1f;
  --sec-yellow: #ffd400;
  --sec-paper: #f2efe6;
  --sec-mute: #8a918c;
  --sec-display: "Anton", Impact, "Arial Narrow Bold", "Helvetica Neue", sans-serif;
  --sec-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sec-glow: 0 0 6px rgba(184, 245, 196, .5), 0 1px 2px rgba(0, 0, 0, .95);
  --sec-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .82 0 0 0 0 .8 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- the room: housing around the grid ---------- */
.sec-room {
  container: sec / inline-size;
  position: relative; isolation: isolate;
  padding: clamp(6px, 1.3vw, 16px);
  border-radius: clamp(10px, 1.2vw, 16px);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(184, 245, 196, .06), transparent 60%),
    linear-gradient(180deg, #131817, #0b0e0d 70%, #090b0b);
  border: 1px solid rgba(184, 245, 196, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 50px 110px -50px #000, 0 0 0 1px #000;
  font-family: var(--sec-mono);
  color: var(--sec-paper);
}
.sec-grid {
  display: grid; gap: clamp(5px, .8vw, 10px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr)) auto;
}
.sec-main { grid-column: 1 / 4; grid-row: 1 / 4; }

/* strip across the top of the wall: system name, status, recorder (never recording: live only) */
.sec-rack {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2em; margin: 0 2px clamp(6px, .8vw, 10px);
  font: 600 clamp(8px, .95cqw, 11px)/1.2 var(--sec-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--sec-mute);
}
.sec-rack > span { display: inline-flex; align-items: center; gap: .8em; white-space: nowrap; }
.sec-rack__st { color: var(--sec-green); text-shadow: 0 0 6px rgba(184, 245, 196, .4); }
.sec-room[data-state="reconnecting"] .sec-rack__st { color: #ff8a80; text-shadow: 0 0 6px rgba(255, 42, 31, .5); }
.sec-room[data-state="upcoming"] .sec-rack__st, .sec-room[data-state="ended"] .sec-rack__st { color: var(--sec-yellow); text-shadow: none; }
@container sec (max-width: 560px) { .sec-rack > .sec-rack__hdd { display: none; } .sec-rack { letter-spacing: .14em; } }

/* ---------- monitor housings ---------- */
.sec-main, .sec-mon {
  position: relative; min-width: 0;
  border-radius: clamp(6px, .7vw, 10px);
  background: linear-gradient(165deg, #242a28 0%, #151a19 38%, #0c0f0e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .55), 0 10px 24px -14px #000, 0 0 0 1px #050606;
}
.sec-main { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: clamp(5px, .75vw, 10px); }
.sec-main__screen { position: relative; border-radius: 5px; box-shadow: 0 0 0 1px #000, 0 0 0 3px #1b201f; }
.sec-main__plate {
  display: flex; align-items: center; gap: 1.2em; padding: 0 2px;
  font: 600 clamp(8px, .95cqw, 11px)/1 var(--sec-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--sec-mute);
}
.sec-main__ch { margin-right: auto; }
.sec-led { width: 7px; height: 7px; border-radius: 50%; background: #26302b; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .6); flex: none; }
.sec-led--pwr { background: #59d67a; box-shadow: 0 0 6px rgba(89, 214, 122, .7); }
.sec-room.is-rec .sec-led--rec { background: var(--sec-red); box-shadow: 0 0 8px var(--sec-red); }

.sec-mon {
  display: block; width: 100%; aspect-ratio: 16 / 10.4; margin: 0; padding: 0; border: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left; -webkit-tap-highlight-color: transparent;
  --p: clamp(3px, .55vw, 8px);
}
/* the three beside the main monitor share its height */
.sec-mon[data-i="0"], .sec-mon[data-i="1"], .sec-mon[data-i="2"] { aspect-ratio: auto; min-height: 0; height: auto; }
.sec-mon:focus-visible { outline: 2px solid var(--sec-yellow); outline-offset: 2px; }
.sec-mon__screen {
  position: absolute; inset: var(--p); overflow: hidden; container: mon / inline-size;
  border-radius: 6px / 9px; background: #020303;
  box-shadow: 0 0 0 1px #000, 0 0 0 2px rgba(255, 255, 255, .04);
}
.sec-mon__cv, .sec-mon__poster, .sec-mon__shutter { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sec-mon__poster { display: none; }
/* CRT glass on every screen: scanlines, vignette, a soft reflection */
.sec-mon__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 28%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px),
    radial-gradient(110% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, .85);
}
.sec-mon:hover .sec-mon__screen::after { background-color: rgba(184, 245, 196, .04); }
.sec-mon.is-on-main { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 2px var(--sec-yellow), 0 0 24px -6px rgba(255, 212, 0, .55); }
.sec-mon.is-on-main .sec-mon__screen::before {
  content: "ON MAIN"; position: absolute; z-index: 4; right: 6%; bottom: 8%; padding: .15em .45em;
  font: 600 clamp(7px, 5.4cqw, 11px)/1.2 var(--sec-mono); letter-spacing: .14em; color: var(--sec-ink); background: var(--sec-yellow);
}

/* on-screen display of a small monitor */
.sec-mon__osd {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; align-items: start;
  padding: 5.5cqw 6.5cqw;
  font: 600 clamp(7px, 5.3cqw, 12px)/1.15 var(--sec-mono); letter-spacing: .02em; color: #eefcf0; text-shadow: var(--sec-glow);
}
.sec-mon__cam { grid-column: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-mon__rec { grid-column: 2; display: inline-flex; align-items: center; margin-left: .5em; font-size: 0; color: var(--sec-mute); }
.sec-mon__rec i { width: 7px !important; height: 7px !important; }
.sec-mon__rec i, .sec-rec i { width: .62em; height: .62em; border-radius: 50%; background: #3a403d; flex: none; }
.sec-room.is-rec .sec-mon__rec { color: #ffd9d6; }
.sec-room.is-rec .sec-mon__rec i { background: var(--sec-red); box-shadow: 0 0 6px var(--sec-red); animation: sec-rec 2.4s ease-in-out infinite; }
@keyframes sec-rec { 50% { opacity: .35; } }
.sec-mon__ts { grid-column: 1 / -1; grid-row: 3; font-weight: 400; font-variant-numeric: tabular-nums; opacity: .92; white-space: nowrap; overflow: hidden; }
@container mon (max-width: 150px) { .sec-mon__osd { font-size: 7px; padding: 5cqw 5.5cqw; letter-spacing: 0; } .sec-mon__rec i { width: 5px !important; height: 5px !important; } }

/* NO SIGNAL / SIGNAL LOST / STANDBY / CLOSED */
.sec-mon__msg {
  position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; white-space: nowrap; pointer-events: none;
  padding: .3em .7em; font: 600 clamp(8px, 7.4cqw, 15px)/1 var(--sec-mono); letter-spacing: .2em;
  color: var(--sec-green); background: rgba(7, 8, 10, .82); box-shadow: 0 0 0 1px rgba(184, 245, 196, .35); text-shadow: var(--sec-glow);
}
.sec-mon__msg:empty { display: none; }
.sec-mon[data-mode="bars"] .sec-mon__msg { color: var(--sec-paper); background: rgba(7, 8, 10, .7); }
.sec-mon[data-mode="lost"] .sec-mon__msg, .sec-mon[data-mode="nosignal"] .sec-mon__msg { color: #ffe3e0; box-shadow: 0 0 0 1px rgba(255, 42, 31, .55); }

/* store shutter gates (ended) */
.sec-mon__shutter, .sec-shutter {
  z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 30%, rgba(0, 0, 0, .35)),
    repeating-linear-gradient(180deg, #3a403e 0 7px, #2a2f2d 7px 9px, #4a514e 9px 10px, #232826 10px 12px);
  transform: translateY(-101%); transition: transform 1.8s cubic-bezier(.5, 0, .2, 1);
}
.sec-mon__shutter::after, .sec-shutter::after {   /* bottom rail with the lock */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9%; min-height: 6px;
  background: linear-gradient(180deg, #5b625f, #2a2f2d); box-shadow: 0 -1px 0 rgba(0, 0, 0, .5);
}
.sec-room[data-state="ended"] .sec-mon__shutter, .lp--security[data-state="ended"] .sec-shutter { transform: none; }
.sec-room[data-state="ended"] .sec-mon__msg { z-index: 3; color: var(--sec-ink); background: var(--sec-paper); box-shadow: 0 2px 0 rgba(0, 0, 0, .5); text-shadow: none; }
.sec-mon:nth-of-type(odd) .sec-mon__shutter { transition-delay: .25s; }
.sec-mon:nth-of-type(3n) .sec-mon__shutter { transition-delay: .5s; }

/* CSS-only tiles (the picture can't be drawn into a canvas): static over a poster */
.sec-room--css .sec-mon__cv { display: none; }
.sec-room--css .sec-mon__poster {
  display: block;
  background: var(--sec-noise) 0 0 / 180px 180px, var(--sec-poster, none) center / cover no-repeat, #0b0d0c;
  background-blend-mode: screen, normal, normal; filter: grayscale(1) brightness(.6) contrast(1.2);
  animation: sec-snow .45s steps(4) infinite;
}
.sec-room--css .sec-mon:nth-of-type(3n) .sec-mon__poster { filter: grayscale(1) sepia(.5) hue-rotate(70deg) saturate(2) brightness(.55); }
@keyframes sec-snow { 25% { background-position: -50px 30px, center; } 50% { background-position: 40px -70px, center; } 75% { background-position: -90px -20px, center; } }

/* ---------- the main monitor (the player) ---------- */
.lp--security {
  --lp-bg: #000;
  --lp-fg: var(--sec-paper);
  --lp-mute: var(--sec-mute);
  --lp-accent: var(--sec-red);
  --lp-accent-2: var(--sec-yellow);
  --lp-grad: linear-gradient(90deg, var(--sec-red), #ff4a2a);
  --lp-font: var(--sec-mono);
  --lp-display: var(--sec-display);
  --lp-radius: 5px;
  --lp-glass: rgba(7, 8, 10, .8);
  --lp-glass-line: rgba(184, 245, 196, .16);
  --lp-pad: clamp(8px, 2cqw, 20px);
}
.lp--security .lp-frame, .lp--security .lp-ambient { display: none; }
.lp--security .lp-stage { box-shadow: none; background: #020303; }
.lp--security .lp-video { transform-origin: 50% 50%; transition: opacity .9s var(--lp-ease), transform .5s var(--lp-ease), filter .5s; }
.lp--security.is-fs .lp-stage { border-radius: 0; }

/* CRT glass over the program: light scanlines + vignette (kept light so the set stays watchable) */
.sec-glass {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; border-radius: inherit;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, .13) 0 1px, transparent 1px 3px),
    radial-gradient(130% 110% at 50% 50%, transparent 60%, rgba(0, 0, 0, .42) 100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .55);
}
.sec-glass::after {   /* slow rolling refresh band */
  content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 20%;
  background: linear-gradient(180deg, transparent, rgba(184, 245, 196, .045) 50%, transparent);
  animation: sec-roll 11s linear infinite;
}
@keyframes sec-roll { to { transform: translateY(600%); } }

/* OSD strip above the picture: REC + camera on the left, tape counter + date/time on the right */
.sec-main__screen { overflow: hidden; background: #020303; }
.sec-osd {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1em;
  min-height: clamp(26px, 3.3cqw, 44px); padding: 0 clamp(8px, 1.3cqw, 18px);
  background: linear-gradient(180deg, #050807, #020303); border-bottom: 1px solid rgba(184, 245, 196, .1);
  font: 600 clamp(9.5px, 1.2cqw, 16px)/1 var(--sec-mono); letter-spacing: .06em; color: #f4fff6; text-shadow: var(--sec-glow);
}
.sec-osd::after {   /* the strip is part of the same CRT: scanlines over it too */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px 3px);
}
.sec-osd__l, .sec-osd__r { display: flex; align-items: center; gap: 1.1em; min-width: 0; }
.sec-osd__r { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sec-rec { display: inline-flex; align-items: center; gap: .45em; flex: none; padding: .3em .55em; color: var(--sec-mute); box-shadow: inset 0 0 0 1px rgba(138, 145, 140, .35); border-radius: 2px; }
.sec-room.is-rec .sec-rec { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 42, 31, .7); }
.sec-room.is-rec .sec-rec i { background: var(--sec-red); box-shadow: 0 0 6px var(--sec-red); animation: sec-rec 2.4s ease-in-out infinite; }
.sec-cam { font-size: 1.2em; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sec-tape { font-weight: 400; color: var(--sec-green); }
.sec-tape[hidden] { display: none; }
.sec-ts__d { color: #b9c7bc; font-weight: 400; }

/* back to the full program after picking a camera */
.sec-back {
  position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: .5em; padding: .45em .8em; cursor: pointer;
  border: 0; border-radius: 2px; color: var(--sec-ink); background: var(--sec-yellow); text-shadow: none;
  font: 600 clamp(9.5px, 1cqw, 12.5px)/1 var(--sec-mono); letter-spacing: .14em; text-transform: uppercase;
}
.sec-back[hidden] { display: none; }

/* control chrome, security-console style */
.lp--security .lp-bar { border-radius: 4px; background: rgba(7, 8, 10, .84); border-color: rgba(184, 245, 196, .14); }
.lp--security .lp-btn { border-radius: 3px; }
.lp--security .lp-btn:hover { background: rgba(184, 245, 196, .1); }
.lp--security .lp-live {
  height: 26px; border-radius: 3px; margin-left: 6px; padding: 0 .75em 0 .6em;
  color: #fff; background: var(--sec-ink); box-shadow: inset 0 0 0 1px rgba(255, 42, 31, .7);
  font: 600 11px var(--sec-mono); letter-spacing: .18em;
}
.lp--security .lp-live .lp-dot { background: var(--sec-red); box-shadow: 0 0 8px var(--sec-red); }
.lp--security.is-behind .lp-live { background: var(--sec-yellow); color: var(--sec-ink); box-shadow: none; }
.lp--security.is-behind .lp-live .lp-dot { background: var(--sec-ink); box-shadow: none; }
.lp--security .lp-title { font: 600 12px var(--sec-mono); letter-spacing: .16em; text-transform: uppercase; }
.lp--security .lp-viewers, .lp--security .lp-q__now { font-family: var(--sec-mono); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.lp--security .lp-q__menu { border-radius: 4px; background: rgba(7, 8, 10, .95); }
.lp--security .lp-q__menu button { font-family: var(--sec-mono); border-radius: 3px; }
.lp--security input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--sec-green) calc(var(--v, 0) * 100%), rgba(255, 255, 255, .2) 0); }
.lp--security .lp-seek { display: none !important; }   /* live only: never a seek bar */

/* doorbuster tags: Watch (autoplay blocked) and Tap for sound; only while there is something to hear */
.lp--security:not([data-state="live"]) .lp-sound, .lp--security:not([data-state="live"]) .lp-big { display: none; }
.lp--security .lp-big {
  border-radius: 4px; padding: .8em 1.4em .8em 1.1em; color: #fff; background: var(--sec-red);
  font: 400 clamp(16px, 2.4cqw, 26px)/1 var(--sec-display); letter-spacing: .06em;
  box-shadow: 0 0 0 3px var(--sec-ink), 0 0 0 4px rgba(255, 42, 31, .6), 0 18px 40px -12px rgba(255, 42, 31, .6);
}
.lp--security .lp-sound {
  left: auto; right: var(--lp-pad); border: 0; border-radius: 3px; padding: .55em .9em .55em .7em;
  color: var(--sec-ink); background: var(--sec-yellow); -webkit-backdrop-filter: none; backdrop-filter: none;
  font: 600 clamp(10px, 1.2cqw, 12.5px) var(--sec-mono); letter-spacing: .12em;
  padding-left: 1.5em; clip-path: polygon(.8em 0, 100% 0, 100% 100%, .8em 100%, 0 50%);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6));
}
.lp--security .lp-sound::before { content: ""; position: absolute; left: .75em; top: 50%; width: .38em; height: .38em; margin-top: -.19em; border-radius: 50%; background: var(--sec-ink); }
.lp--security .lp-spin i { background: conic-gradient(from 0deg, transparent 0 25%, var(--sec-green)); }

/* ---------- status cards on the main monitor ---------- */
.lp--security .lp-card { background: radial-gradient(80% 90% at 50% 50%, #101614 0%, #050707 80%); }
.sec-snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity .6s; pointer-events: none; }
.lp--security[data-state="upcoming"] .sec-snow, .lp--security[data-state="offline"] .sec-snow { opacity: .05; }
.lp--security[data-state="waiting"] .sec-snow { opacity: .09; }
.lp--security[data-state="connecting"] .sec-snow { opacity: .22; }
.lp--security[data-state="reconnecting"] .sec-snow { opacity: .62; }
.lp--security .lp-card__inner { z-index: 1; gap: clamp(6px, 1.5cqw, 16px); }
.lp--security .lp-card__kicker { font: 600 clamp(9px, 1.25cqw, 13px) var(--sec-mono); letter-spacing: .26em; color: var(--sec-mute); }
.lp--security .lp-card__title {
  font: 400 clamp(30px, 8.4cqw, 104px)/.92 var(--sec-display); letter-spacing: .015em; text-transform: uppercase; color: var(--sec-paper);
}
.lp--security .lp-card__title .sec-x {   /* a redaction bar over part of a word */
  position: relative; display: inline-block; color: var(--sec-paper);
}
.lp--security .lp-card__status {
  border-radius: 3px; padding: .5em .9em .5em .75em; background: rgba(7, 8, 10, .85);
  border-color: rgba(184, 245, 196, .28); -webkit-backdrop-filter: none; backdrop-filter: none;
  font: 600 clamp(9.5px, 1.3cqw, 13px) var(--sec-mono); letter-spacing: .2em; color: var(--sec-green); text-shadow: 0 0 6px rgba(184, 245, 196, .45);
}
.lp--security[data-state="upcoming"] .lp-card__status .lp-dot { background: var(--sec-red); box-shadow: 0 0 8px var(--sec-red); }
.lp--security[data-state="reconnecting"] .lp-card__status { color: #ffe3e0; border-color: rgba(255, 42, 31, .6); text-shadow: 0 0 8px rgba(255, 42, 31, .6); }
.lp--security[data-state="reconnecting"] .lp-card__status .lp-dot { background: var(--sec-red); }
.lp--security .lp-card__body { font: 400 clamp(10.5px, 1.4cqw, 15px)/1.5 var(--sec-mono); color: #b9c2bc; }
.lp--security .lp-card__when { font: 600 clamp(9.5px, 1.25cqw, 13px) var(--sec-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sec-mute); }
/* alarm-panel countdown: LCD cells with phosphor digits */
.lp--security .lp-count { gap: clamp(5px, 1cqw, 12px); }
.lp--security .lp-count > div {
  min-width: clamp(50px, 10.5cqw, 128px); padding: clamp(6px, 1.3cqw, 16px) 0 clamp(5px, 1cqw, 12px); border-radius: 4px;
  background: linear-gradient(180deg, #0c1610, #070c09); border: 1px solid rgba(184, 245, 196, .22);
  box-shadow: inset 0 0 18px rgba(184, 245, 196, .07), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.lp--security .lp-count b {
  font: 600 clamp(22px, 5.8cqw, 70px)/1 var(--sec-mono); letter-spacing: -.02em; color: var(--sec-green);
  text-shadow: 0 0 12px rgba(184, 245, 196, .55);
}
.lp--security .lp-count span { font: 600 clamp(8px, 1cqw, 11px) var(--sec-mono); letter-spacing: .24em; color: var(--sec-mute); }

/* ended: the shutter comes down and a paper sign hangs on it */
.sec-shutter { position: absolute; inset: 0; z-index: 4; }
.lp--security[data-state="ended"] .lp-card { background: transparent; z-index: 5; }
.lp--security[data-state="ended"] .lp-card__inner {
  padding: clamp(14px, 3cqw, 36px) clamp(18px, 4.2cqw, 52px); background: var(--sec-paper); color: var(--sec-ink);
  border-radius: 2px; rotate: -1.6deg; box-shadow: 0 2px 0 rgba(0, 0, 0, .2), 0 24px 50px -16px rgba(0, 0, 0, .9);
  border-top: clamp(5px, .9cqw, 9px) solid var(--sec-red);
  animation: sec-sign 1s 1.2s cubic-bezier(.3, 1.4, .5, 1) both;
}
.lp--security[data-state="ended"] .lp-card__inner::before {   /* the hanging string */
  content: ""; position: absolute; left: 50%; bottom: 100%; width: 34%; height: clamp(14px, 3cqw, 34px); translate: -50% 0;
  border: 1.5px solid #1b1f1e; border-bottom: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: none;
}
@keyframes sec-sign { from { opacity: 0; transform: translateY(-14px) rotate(4deg); } }
.lp--security[data-state="ended"] .lp-card__label { font: 400 clamp(26px, 6.4cqw, 76px)/.95 var(--sec-display); letter-spacing: .02em; color: var(--sec-ink); text-transform: uppercase; }
.lp--security[data-state="ended"] .lp-card__status { padding: 0; border: 0; background: none; color: var(--sec-ink); text-shadow: none; letter-spacing: 0; }
.lp--security[data-state="ended"] .lp-card__status .lp-dot,
.lp--security[data-state="ended"] .lp-card__title,
.lp--security[data-state="ended"] .lp-card__kicker,
.lp--security[data-state="ended"] .lp-card__when { display: none; }
.lp--security[data-state="ended"] .lp-card__body { color: #2b302e; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.lp--security[data-state="ended"] .sec-glass { z-index: 6; }

/* ---------- layouts ---------- */
/* tablets / narrow columns: main full width, two rows of three */
@container sec (max-width: 860px) {
  .sec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
  .sec-main { grid-column: 1 / -1; grid-row: auto; }
  .sec-mon[data-i] { aspect-ratio: 16 / 10.4; }
  .sec-mon[data-i="6"] { display: none; }
}
/* phones: main full width, one row of three below */
@container sec (max-width: 560px) {
  .sec-mon:nth-of-type(n+4) { display: none; }
  .sec-main { padding: 4px; gap: 4px; }
  .sec-main__plate { font-size: 7.5px; letter-spacing: .16em; gap: .9em; }
}
/* small main monitor: keep the card to the essentials */
@container lp (max-width: 560px) {
  .lp--security .lp-card { padding: 30px 8px 8px; }
  .lp--security .lp-card__kicker, .lp--security .lp-card__body:not(:empty) { display: none; }
  .lp--security[data-state="ended"] .lp-card__body { display: block; font-size: 9px; }
  .lp--security .lp-card__title { font-size: clamp(26px, 10cqw, 44px); }
  .lp--security .lp-count > div { min-width: 46px; padding: 5px 0 4px; }
  .lp--security .lp-count b { font-size: clamp(18px, 6.6cqw, 28px); }
  .lp--security .lp-card__inner { gap: 6px; }
}
@container lp (max-width: 420px) {
  .lp--security .lp-card__when { display: none; }
}
@container sec (max-width: 560px) {
  .sec-osd { gap: .6em; padding: 0 7px; }
  .sec-osd__l, .sec-osd__r { gap: .6em; }
  .sec-ts__d, .sec-tape { display: none; }
  .sec-cam { font-size: 1.05em; }
}

/* ---------- reduced motion: no static, flicker, roll, blinking or sliding ---------- */
@media (prefers-reduced-motion: reduce) {
  .sec-glass::after { animation: none; display: none; }
  .sec-room.is-rec .sec-mon__rec i, .sec-room.is-rec .sec-rec i { animation: none; }
  .sec-room--css .sec-mon__poster { animation: none; }
  .sec-mon__shutter, .sec-shutter { transition: none; }
  .lp--security[data-state="ended"] .lp-card__inner { animation: none; }
  .lp--security .lp-video { transition: opacity .01ms; }
}
