/* ==========================================================================
   Off-duty file (/off-duty)
   Builds on dossier.css (shared .dx-* parts: viewer bar, stamps, tape,
   buttons, redactions, terminal bar). Page-specific rules are scoped to
   .ox-root.
   ========================================================================== */

.dx-root.ox-root {
  --ox-room: #15110e;
  --ox-room-deep: #0f0c0a;
  --ox-card: #fbf8f1;
  --ox-uv: #d4bcff;
  --ox-uv-glow: #8f5bff;
  --ox-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --ox-news: Georgia, 'Times New Roman', serif;
  --ox-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 -0.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ox-cork-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.24 0 0 0 0 0.14 0 0 0 0 0.06 0 0 0 1.1 -0.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  --ox-cork-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.74 0 0 0 0 0.5 0 0 0 1 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E");

  background: var(--ox-room);
}

.ox-root .ox-viewer-link {
  margin-left: auto;
  padding: 10px 18px;
  border-left: 1px solid var(--dx-line);
  color: var(--dx-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ox-root .ox-viewer-link:hover { color: var(--dx-paper); }
.ox-root .dx-viewer > .dx-viewer-clock { margin-left: 0; }

/* ---------- hero: subject + camera still ---------- */
.ox-root .ox-hero {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 7vh, 88px) 0 clamp(120px, 15vh, 170px);
  background:
    radial-gradient(55% 70% at 80% 45%, rgba(143, 91, 255, 0.13), transparent 65%),
    radial-gradient(80% 70% at 0% 0%, rgba(244, 180, 0, 0.05), transparent 60%),
    var(--ox-room);
}
.ox-root .ox-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}
.ox-root .ox-title { font-size: clamp(88px, min(14vw, 23vh), 210px); }
.ox-root .ox-hero .dx-intro { max-width: 44ch; }

.ox-root .ox-cctv { position: relative; margin: 0; }
/* the agency stamped the camera still */
.ox-root .ox-stamp-cctv {
  right: -14px;
  bottom: 44px;
  z-index: 4;
  color: var(--dx-red-hot);
  font-size: clamp(24px, 2.6vw, 40px);
  transform: rotate(-8deg);
}
.ox-root .ox-cctv-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 640 / 420;
  border: 1px solid rgba(233, 226, 207, 0.16);
  background: #0b0d0d;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.55);
}
.ox-root .ox-cctv-svg { display: block; width: 100%; height: 100%; }
.ox-root .ox-cctv-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 3px),
    var(--ox-grain);
  opacity: 0.55;
}
.ox-root .ox-cctv-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.7) 100%);
}
.ox-root .ox-cctv-cam,
.ox-root .ox-cctv-rec,
.ox-root .ox-cctv-time,
.ox-root .ox-cctv-tag {
  position: absolute;
  z-index: 3;
  color: #e9efe9;
  font-family: var(--dx-type);
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 0.1em;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}
.ox-root .ox-cctv-cam { top: 4%; left: 3%; }
.ox-root .ox-cctv-rec { top: 4%; right: 3%; }
.ox-root .ox-cctv-rec > i {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: #ff3b30;
  vertical-align: -0.02em;
  animation: ox-rec 1.6s steps(1) infinite;
}
.ox-root .ox-cctv-time { bottom: 4%; left: 3%; }
.ox-root .ox-cctv-box { position: absolute; z-index: 3; left: 45%; top: 36%; width: 10.2%; height: 28.5%; }
.ox-root .ox-cctv-box > i { position: absolute; width: 22%; height: 12%; border: 0 solid #e9efe9; }
.ox-root .ox-cctv-box > i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.ox-root .ox-cctv-box > i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.ox-root .ox-cctv-box > i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.ox-root .ox-cctv-box > i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.ox-root .ox-cctv-tag { left: 45%; top: calc(64.5% + 5px); padding: 1px 5px; background: rgba(0, 0, 0, 0.6); color: #ffd36b; }
.ox-root .ox-cctv figcaption { margin-top: 12px; color: var(--dx-steel); font-size: 13px; }

.ox-root .ox-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: ox-blink 7s infinite;
}
@keyframes ox-blink {
  0%, 95.5%, 100% { transform: scaleY(1); }
  97% { transform: scaleY(0.1); }
}
@keyframes ox-rec { 50% { opacity: 0.15; } }

.ox-root .ox-tape-hero { --dx-tilt: -2.4deg; bottom: 26px; }

/* ---------- evidence board ---------- */
.ox-root .ox-evidence {
  position: relative;
  z-index: 1;
  padding: clamp(100px, 12vw, 150px) 0 clamp(80px, 9vw, 120px);
  background:
    radial-gradient(60% 45% at 50% 30%, rgba(255, 214, 150, 0.08), transparent 70%),
    var(--ox-room);
  scroll-margin-top: 0;
}
.ox-root .ox-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
}
.ox-root .ox-board-hint { max-width: 54ch; margin-top: 16px; color: var(--dx-paper-text); }
.ox-root .ox-board-hint.ox-fine-pointer { display: none; }
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  .ox-root .ox-board-hint.ox-fine-pointer { display: block; }
  .ox-root .ox-board-hint.ox-coarse-pointer { display: none; }
}
.ox-root .ox-board-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.ox-root .ox-board-tools [aria-pressed='true'] {
  border-color: var(--ox-uv-glow);
  background: var(--ox-uv-glow);
  box-shadow: 0 0 22px rgba(143, 91, 255, 0.6);
  color: #fff;
}

.ox-root .ox-board-frame {
  width: min(1280px, 100% - 32px);
  margin: 34px auto 0;
  padding: 16px;
  border-radius: 3px;
  background: linear-gradient(160deg, #714a2a, #4b2f19);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.ox-root .ox-board {
  position: relative;
  height: 1160px;
  overflow: hidden;
  background-color: #a5774a;
  background-image: var(--ox-cork-dark), var(--ox-cork-light);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5), inset 0 2px 0 rgba(0, 0, 0, 0.35);
  color: var(--dx-ink);
}

.ox-root .ox-item {
  position: absolute;
  z-index: 1;
  margin: 0;
  color: var(--dx-ink);
  font-family: var(--dx-type);
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.36), 0 2px 5px rgba(0, 0, 0, 0.3);
  transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--r, 0deg));
}
.ox-root.ox-js .ox-item {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.ox-root .ox-item.is-dragging {
  cursor: grabbing;
  box-shadow: 0 28px 44px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.3);
  transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--r, 0deg)) scale(1.03);
}

/* desktop positions; everything collapses into a grid on smaller screens */
.ox-root .ox-item--photo     { --r: -5deg;   left: 2.5%; top: 48px;  width: 236px; }
.ox-root .ox-item--intake    { --r: 2deg;    left: 24%;  top: 34px;  width: 330px; }
.ox-root .ox-item--news      { --r: -2.5deg; left: 54%;  top: 46px;  width: 310px; }
.ox-root .ox-item--sticky    { --r: 6deg;    left: 83%;  top: 76px;  width: 170px; }
.ox-root .ox-item--lab       { --r: 1.5deg;  left: 3%;   top: 440px; width: 340px; }
.ox-root .ox-item--map       { --r: -1.4deg; left: 34%;  top: 404px; width: 440px; }
.ox-root .ox-item--abilities { --r: 3deg;    left: 74%;  top: 380px; width: 290px; }
.ox-root .ox-item--witness   { --r: -2.5deg; left: 4%;   top: 870px; width: 300px; }
.ox-root .ox-item--prints    { --r: 2deg;    left: 34%;  top: 900px; width: 350px; }
.ox-root .ox-item--weak      { --r: -3deg;   left: 69%;  top: 850px; width: 280px; }

/* push pins */
.ox-root .ox-pin {
  position: absolute;
  top: -9px;
  left: 50%;
  z-index: 3;
  width: 17px;
  height: 17px;
  margin-left: -8.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9a9a 0, #d01c26 45%, #7a0d13 100%);
  box-shadow: 1px 4px 4px rgba(0, 0, 0, 0.45);
}
.ox-root .ox-pin--blue { background: radial-gradient(circle at 35% 30%, #a9cbff 0, #2a6fd6 45%, #133b78 100%); }
.ox-root .ox-pin--yellow { background: radial-gradient(circle at 35% 30%, #fff1b0 0, #e3b100 45%, #8a6a00 100%); }
.ox-root .ox-pin--green { background: radial-gradient(circle at 35% 30%, #b8f0c0 0, #2f9a4b 45%, #155526 100%); }

.ox-root .ox-card-h {
  margin: 0 0 6px;
  color: var(--dx-ink);
  font-family: var(--dx-type);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.ox-root .ox-hand {
  margin: 0;
  color: #24324f;
  font-family: var(--ox-hand);
  font-weight: 600;
  line-height: 1.05;
}

/* polaroid */
.ox-root .ox-polaroid { padding: 12px 12px 0; background: #f7f4ec; }
.ox-root .ox-polaroid-img { background: #0d0e0f; }
.ox-root .ox-photo-svg { display: block; width: 100%; height: auto; }
.ox-root .ox-polaroid figcaption { padding: 10px 2px 14px; font-size: 21px; }

/* index cards: red header line, blue rules */
.ox-root .ox-index {
  padding: 9px 18px 16px;
  background:
    linear-gradient(rgba(214, 72, 72, 0.6), rgba(214, 72, 72, 0.6)) 0 36px / 100% 1.5px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0, transparent 23px, rgba(78, 120, 190, 0.32) 23px, rgba(78, 120, 190, 0.32) 24px) 0 37px / 100% calc(100% - 37px) no-repeat,
    var(--ox-card);
}
.ox-root .ox-index .ox-card-h { height: 27px; margin-bottom: 4px; }
.ox-root .ox-index dl,
.ox-root .ox-index ul,
.ox-root .ox-index ol { margin: 0; padding: 0; list-style: none; line-height: 24px; }
.ox-root .ox-kv > div { display: flex; gap: 12px; }
.ox-root .ox-kv dt { flex: 0 0 5.4em; color: var(--dx-ink-soft); font-weight: 400; }
.ox-root .ox-kv dd { margin: 0; }

.ox-root .ox-checks > li { position: relative; padding-left: 26px; }
.ox-root .ox-checks > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 6px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--dx-ink);
}
.ox-root .ox-checks > li.is-yes::after {
  content: '\2715';
  position: absolute;
  left: 3px;
  top: -1px;
  color: var(--dx-red);
  font-family: var(--ox-hand);
  font-size: 21px;
  font-weight: 700;
  line-height: 24px;
}
.ox-root .ox-checks > li.is-no { color: var(--dx-ink-soft); text-decoration: line-through; text-decoration-color: rgba(179, 20, 31, 0.7); }
.ox-root .ox-note-abilities { position: absolute; right: 14px; bottom: -8px; color: var(--dx-red); font-size: 30px; transform: rotate(-9deg); }

.ox-root .ox-weak { counter-reset: weak; }
.ox-root .ox-weak > li { counter-increment: weak; }
.ox-root .ox-weak > li::before { content: counter(weak) '. '; color: var(--dx-ink-soft); }

/* newspaper clipping with torn edges */
.ox-root .ox-clipping {
  padding: 16px 18px 20px;
  background: #e9e3d3;
  box-shadow: none;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.38));
  clip-path: polygon(0 1%, 6% 0, 13% 1.4%, 21% 0.2%, 30% 1.2%, 38% 0, 47% 1%, 55% 0.3%, 64% 1.3%, 72% 0, 81% 1.1%, 90% 0.2%, 100% 1%,
    99.4% 12%, 100% 26%, 99.2% 41%, 100% 57%, 99.3% 72%, 100% 86%, 99.5% 99%,
    92% 100%, 84% 98.8%, 75% 100%, 66% 99%, 57% 100%, 48% 98.9%, 39% 100%, 30% 99%, 21% 100%, 12% 98.8%, 3% 100%,
    0.6% 88%, 0 74%, 0.8% 60%, 0 45%, 0.7% 30%, 0 16%);
}
.ox-root .ox-news-mast {
  padding-bottom: 6px;
  border-bottom: 3px double rgba(35, 33, 29, 0.75);
  font-family: var(--ox-news);
  font-size: 13px;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  text-align: center;
}
.ox-root .ox-news-h {
  margin: 10px 0 4px;
  color: #161512;
  font-family: var(--ox-news);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.ox-root .ox-news-sub { font-family: var(--ox-news); font-size: 14px; font-style: italic; }
.ox-root .ox-news-body {
  margin-top: 10px;
  column-count: 2;
  column-gap: 14px;
  font-family: var(--ox-news);
  font-size: 12.5px;
  line-height: 1.4;
  text-align: justify;
  hyphens: auto;
}

/* sticky note */
.ox-root .ox-sticky {
  padding: 26px 18px 30px;
  background: linear-gradient(160deg, #f8e27a, #edcd4b);
  box-shadow: 0 14px 18px rgba(0, 0, 0, 0.32), 0 2px 4px rgba(0, 0, 0, 0.25);
  color: #3a2f12;
  font-family: var(--ox-hand);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

/* lab report */
.ox-root .ox-sheet { padding: 16px 20px 22px; background: #fbfaf5; }
.ox-root .ox-lab { width: 100%; border-collapse: collapse; font-size: 14px; }
.ox-root .ox-lab th,
.ox-root .ox-lab td { padding: 6px 8px 6px 0; border-bottom: 1px dotted rgba(35, 33, 29, 0.4); text-align: left; vertical-align: top; }
.ox-root .ox-lab th { color: var(--dx-ink-soft); font-weight: 400; }
.ox-root .ox-lab td { font-weight: 700; }
.ox-root .ox-stamp-lab { right: 8px; bottom: 16px; color: var(--dx-red); font-size: 30px; opacity: 0.85; transform: rotate(-14deg); mix-blend-mode: multiply; }

/* map */
.ox-root .ox-map { padding: 10px 10px 14px; background: #f2ecdd; }
.ox-root .ox-map-svg { display: block; width: 100%; height: auto; border: 1px solid rgba(35, 33, 29, 0.25); }
.ox-root .ox-map figcaption { padding: 10px 6px 0; }
.ox-root .ox-sightings { margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.45; }
.ox-root .ox-sightings > li { display: flex; gap: 8px; padding: 2px 0; }
.ox-root .ox-sightings b {
  flex: 0 0 auto;
  padding: 0 4px;
  background: var(--dx-red);
  color: #fff;
  font-weight: 700;
}

/* witness statement */
.ox-root .ox-strip { padding: 18px 20px 16px; border: 0; background: #f4f0e6; font-size: 15.5px; }
.ox-root .ox-strip > p { margin: 0; }
.ox-root .ox-strip .ox-cite { margin-top: 10px; color: var(--dx-ink-soft); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }

/* fingerprint card */
.ox-root .ox-card { padding: 14px 18px 20px; background: #efe5cc; }
.ox-root .ox-prints {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.ox-root .ox-prints > li {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 72px;
  padding-bottom: 4px;
  border: 1.5px solid rgba(35, 33, 29, 0.7);
  color: var(--dx-ink-soft);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ox-root .ox-stamp-prints { left: 50%; top: 52%; color: var(--dx-red); font-size: 22px; opacity: 0.88; transform: translate(-50%, -50%) rotate(-8deg); mix-blend-mode: multiply; }
.ox-root .ox-note-prints { position: absolute; right: 18px; top: 6px; color: var(--dx-red); font-size: 28px; transform: rotate(8deg); }

/* loose note on the cork */
.ox-root .ox-cork-note {
  position: absolute;
  left: 51%;
  top: 330px;
  z-index: 0;
  color: #f8f1e0;
  font-size: 34px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transform: rotate(-7deg);
}

/* red string (drawn by JS). Multiplied, so text it crosses stays readable;
   the pin heads sit on a second, normal layer above it. */
.ox-root .ox-strings {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  overflow: visible;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.ox-root .ox-strings.ox-pinheads { z-index: 21; mix-blend-mode: normal; }
.ox-root .ox-string { fill: none; stroke: #d42a33; stroke-width: 2.2; stroke-linecap: round; }
.ox-root .ox-string-shadow { fill: none; stroke: rgba(0, 0, 0, 0.22); stroke-width: 3; transform: translate(2px, 5px); }
.ox-root .ox-pinhead-shadow { fill: rgba(0, 0, 0, 0.4); }

/* invisible ink + UV torch
   Under the torch everything is darkened to violet except the ink: the cork
   gets a board-level layer, each card its own ::after (so ink written on a
   card can sit above it), and the string fades back. */
.ox-root .ox-uv {
  position: absolute;
  z-index: 5;
  opacity: 0;
  color: #f1e8ff;
  font-family: var(--ox-hand);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 4px #b48cff, 0 0 12px var(--ox-uv-glow), 0 0 26px rgba(143, 91, 255, 0.85);
  pointer-events: none;
  transition: opacity 0.12s linear;
  transform: rotate(-6deg);
}
.ox-root .ox-uv-cork1,
.ox-root .ox-uv-cork2 { z-index: 0; }
.ox-root .ox-item--photo .ox-uv { right: 18px; top: 60%; }
.ox-root .ox-item--intake .ox-uv { left: 32%; top: 44%; transform: rotate(-12deg); font-size: 34px; }
.ox-root .ox-item--sticky .ox-uv { right: 16px; bottom: 6px; }
.ox-root .ox-item--lab .ox-uv { left: 42%; top: 22%; transform: rotate(-4deg); }
.ox-root .ox-item--map .ox-uv { left: 54%; top: 46%; transform: rotate(10deg); }
.ox-root .ox-uv-cork1 { left: 26%; top: 360px; font-size: 38px; }
.ox-root .ox-uv-cork2 { left: 36%; top: 1100px; font-size: 36px; transform: rotate(-2deg); }

.ox-root .ox-uv-overlay,
.ox-root .ox-board.is-uv .ox-item::after {
  background: radial-gradient(circle 170px at var(--ux, 50%) var(--uy, 50%),
    rgba(72, 30, 165, 0.45) 0%, rgba(58, 24, 140, 0.55) 62%, rgba(9, 4, 20, 0.88) 100%);
}
.ox-root .ox-uv-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.ox-root .ox-board.is-uv .ox-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background-position: calc(0px - var(--ix, 0px)) calc(0px - var(--iy, 0px));
  background-size: var(--bw, 100%) var(--bh, 100%);
  background-repeat: no-repeat;
}
.ox-root .ox-board.is-uv .ox-uv-overlay { opacity: 1; }
.ox-root .ox-board.is-uv .ox-strings { opacity: 0.3; }
.ox-root .ox-board.is-uv { touch-action: none; cursor: crosshair; }

/* ---------- the console ---------- */
.ox-root .ox-console {
  position: relative;
  padding: clamp(84px, 10vw, 130px) 0;
  border-top: 1px solid var(--dx-line);
  background: var(--ox-room-deep);
}
.ox-root .ox-console-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}
.ox-root .ox-console-copy > p { max-width: 34ch; margin-top: 20px; color: var(--dx-paper-text); }
.ox-root kbd {
  padding: 0 0.35em;
  border: 1px solid rgba(244, 180, 0, 0.45);
  border-radius: 2px;
  background: rgba(244, 180, 0, 0.1);
  box-shadow: none;
  color: var(--dx-amber);
  font-family: var(--dx-type);
  font-size: 0.95em;
}
.ox-root .ox-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ox-root .ox-chip {
  padding: 7px 13px;
  border: 1px solid rgba(244, 180, 0, 0.5);
  border-radius: 0;
  background: transparent;
  color: var(--dx-amber);
  font-family: var(--dx-type);
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}
.ox-root .ox-chip:hover { background: var(--dx-amber); color: var(--dx-night-deep); }

.ox-root .ox-term {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--dx-line);
  background: #0d1013;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.ox-root .ox-screen {
  height: clamp(300px, 46vh, 430px);
  overflow-y: auto;
  padding: 18px 20px 10px;
  color: var(--dx-paper);
  font-family: var(--dx-type);
  font-size: 14.5px;
  line-height: 1.6;
  scrollbar-color: rgba(141, 154, 171, 0.4) transparent;
  scrollbar-width: thin;
}
.ox-root .ox-line { margin: 0; white-space: pre-wrap; word-break: break-word; }
.ox-root .ox-line--dim { color: var(--dx-steel); }
.ox-root .ox-line--cmd { margin-top: 10px; color: var(--dx-amber); }
.ox-root .ox-line--bad { color: var(--dx-red-hot); font-weight: 700; }
.ox-root .ox-line--good { color: var(--dx-amber); font-weight: 700; }
.ox-root .ox-line--big { color: var(--dx-red-hot); font-family: var(--dx-stencil); font-size: 46px; font-weight: 900; line-height: 1; }
.ox-root .ox-line a { color: var(--dx-amber); text-decoration: underline; text-underline-offset: 3px; }
.ox-root .ox-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--dx-line);
}
.ox-root .ox-prompt:focus-within { box-shadow: inset 0 0 0 1px rgba(244, 180, 0, 0.55); }
.ox-root .ox-ps1 { margin: 0; color: var(--dx-amber); font-family: var(--dx-type); font-size: 14.5px; white-space: nowrap; }
.ox-root .ox-input {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  caret-color: var(--dx-amber);
  color: var(--dx-paper);
  font-family: var(--dx-type);
  font-size: 14.5px;
}
.ox-root .ox-input:focus,
.ox-root .ox-input:focus-visible { outline: none; }

.ox-root .dx-eof { background: var(--ox-room-deep); }

/* self-destruct */
.ox-root.ox-alarm::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  box-shadow: inset 0 0 140px 40px rgba(255, 40, 40, 0.5);
  animation: ox-pulse 0.8s ease-in-out infinite;
}
.ox-root.ox-alarm .ox-term { border-color: var(--dx-red-hot); animation: ox-shake 0.4s linear infinite; }
@keyframes ox-pulse { 50% { opacity: 0.35; } }
@keyframes ox-shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 1px); }
  50% { transform: translate(2px, -2px); }
  75% { transform: translate(-1px, 2px); }
}

/* ==========================================================================
   Smaller screens: the board becomes a pinned stack (no string, no drag)
   ========================================================================== */
@media (max-width: 1099px) {
  .ox-root .ox-hero-inner { grid-template-columns: 1fr; }
  .ox-root .ox-cctv { max-width: 720px; }
  .ox-root .ox-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 46px 30px;
    height: auto;
    padding: 52px 30px 64px;
  }
  .ox-root .ox-board { grid-auto-flow: dense; }
  .ox-root .ox-item { position: relative; left: auto; top: auto; width: auto; }
  .ox-root.ox-js .ox-item { cursor: default; -webkit-user-select: text; user-select: text; }
  .ox-root .ox-item--map { grid-column: span 2; justify-self: center; width: min(100%, 640px); }
  .ox-root .ox-reset { display: none; }
  .ox-root .ox-item--photo,
  .ox-root .ox-item--sticky { justify-self: center; width: min(100%, 250px); }
  .ox-root .ox-strings,
  .ox-root .ox-cork-note { display: none; }
  .ox-root .ox-uv-cork1 { top: 40%; left: 30%; }
  .ox-root .ox-uv-cork2 { top: auto; bottom: 18px; left: 12%; font-size: 30px; }
  .ox-root .ox-console-inner { grid-template-columns: 1fr; }
  .ox-root .ox-console-copy > p { max-width: 50ch; }
}

@media (max-width: 680px) {
  .ox-root .ox-viewer-link { padding: 9px 12px; }
  .ox-root .ox-title { font-size: clamp(80px, 26vw, 140px); }
  .ox-root .ox-stamp-cctv { right: -6px; bottom: 52px; font-size: 22px; }
  .ox-root .ox-board-frame { width: calc(100% - 20px); padding: 10px; }
  .ox-root .ox-board { grid-template-columns: 1fr; gap: 40px; padding: 40px 18px 70px; }
  .ox-root .ox-item--map { grid-column: auto; width: auto; }
  .ox-root .ox-news-h { font-size: 22px; }
  .ox-root .ox-screen { padding: 14px 14px 8px; font-size: 13.5px; }
  .ox-root .ox-prompt { padding: 10px 14px 14px; }
  .ox-root .ox-ps1,
  .ox-root .ox-input { font-size: 16px; }
  .ox-root .ox-line--big { font-size: 38px; }
}
