/* ===== DEMOLITION MAN (1993) ===== */
.os.dm { font-family: 'Rajdhani', 'Arial Narrow', sans-serif; font-weight: 600; }

/* ---------- terminal select ---------- */
.dm-select { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, #ffffff, #c4d6ee 75%); color: #1d3557; text-align: center; }
.dm-select .logo { width: 78px; height: 78px; margin: 44px auto 10px; }
.dm-select h1 { margin: 0; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 30px; letter-spacing: .2em; }
.dm-select .yr { font-size: 22px; letter-spacing: .4em; color: #4a6a96; margin: 4px 0 34px; }
.dm-choice {
  width: 420px; height: 74px; margin: 0 auto 16px; border-radius: 37px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(#ffffff, #d5e2f3); border: 3px solid #7f9cc4; box-shadow: 0 4px 0 #7f9cc4;
  font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: .12em;
}
.dm-choice small { display: block; font-family: 'Rajdhani', sans-serif; font-size: 17px; letter-spacing: .1em; color: #4a6a96; font-weight: 600; }
.dm-choice.police { border-color: #c23b3b; box-shadow: 0 4px 0 #c23b3b; color: #8f1d1d; }
.dm-choice.sel { background: linear-gradient(#2b5ea8, #1d3557); color: #fff; border-color: #1d3557; }
.dm-choice.sel small { color: #cfe2ff; }
.dm-choice.police.sel { background: linear-gradient(#d24b4b, #8f1d1d); border-color: #8f1d1d; }
.dm-select .help { position: absolute; left: 0; right: 0; bottom: 22px; font-size: 19px; color: #4a6a96; }

/* ---------- CitiNet public terminal ---------- */
.dm-city { position: absolute; inset: 0; background: linear-gradient(#f6f9fd, #c4d6ee); color: #1d3557; }
.dm-head { display: flex; align-items: center; gap: 12px; height: 66px; padding: 0 22px; background: linear-gradient(#ffffff, #dfe9f6); border-bottom: 3px solid #7f9cc4; }
.dm-logo { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9fd4ff, #2b5ea8); position: relative; overflow: hidden; box-shadow: inset 0 -3px 6px #0003; flex: none; }
.dm-logo::after { content: ''; position: absolute; left: -6px; right: -6px; top: 20px; height: 14px; border-top: 3px solid #fff; border-radius: 50%; }
.dm-head h2 { margin: 0; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 21px; letter-spacing: .16em; }
.dm-head .date { margin-left: auto; font-size: 18px; color: #4a6a96; text-align: right; line-height: 1.1; }
.dm-side { position: absolute; left: 18px; top: 82px; width: 200px; display: flex; flex-direction: column; gap: 8px; }
.dm-btn {
  height: 52px; border-radius: 26px; display: flex; align-items: center; padding: 0 18px; cursor: pointer;
  background: linear-gradient(#ffffff, #c9d9ee); border: 2px solid #7f9cc4; box-shadow: 0 3px 0 #7f9cc4;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: .06em; line-height: 1;
}
.dm-btn.sel { background: linear-gradient(#2b5ea8, #1d3557); color: #fff; border-color: #1d3557; box-shadow: 0 3px 0 #0d1a2c; }
.dm-btn.police { border-color: #c23b3b; box-shadow: 0 3px 0 #c23b3b; color: #8f1d1d; }
.dm-btn.police.sel { background: linear-gradient(#d24b4b, #8f1d1d); color: #fff; }
.dm-panel {
  position: absolute; left: 236px; right: 18px; top: 82px; bottom: 74px;
  background: #fff; border: 2px solid #7f9cc4; border-radius: 18px; padding: 20px 24px;
  overflow: hidden;
}
.dm-panel .kicker { font-family: 'Orbitron', sans-serif; font-weight: 500; font-size: 14px; letter-spacing: .25em; color: #4a6a96; margin-bottom: 12px; }
.dm-panel .big { font-size: 34px; font-weight: 700; line-height: 1.15; color: #1d3557; }
.dm-panel .soft { font-size: 32px; font-weight: 500; line-height: 1.2; color: #2b5ea8; font-style: italic; }
.dm-panel .small { margin-top: 14px; font-size: 20px; font-weight: 500; line-height: 1.3; color: #4a6a96; }
.dm-panel .plain { font-size: 21px; font-weight: 600; }
.dm-panel .fine { position: absolute; left: 24px; bottom: 12px; font-size: 15px; color: #7f9cc4; }
.dm-field { margin-top: 10px; min-height: 110px; padding: 8px 12px; border: 2px solid #7f9cc4; border-radius: 10px; background: #f6f9fd; font-size: 22px; line-height: 1.2; word-break: break-word; }
.dm-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #c4d6ee; font-size: 22px; }
.dm-row b { font-weight: 700; color: #1d3557; }
.dm-row b.neg { color: #c23b3b; }
.dm-ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; background: #1d3557; color: #e3eeff; overflow: hidden; font-size: 20px; line-height: 32px; white-space: nowrap; }
.dm-ticker span { display: inline-block; padding-left: 100%; animation: dmTick 40s linear infinite; }
@keyframes dmTick { to { transform: translateX(-100%); } }
.dm-status { position: absolute; left: 18px; right: 18px; bottom: 38px; display: flex; justify-content: space-between; font-size: 18px; color: #4a6a96; }
.dm-status b { color: #c23b3b; }

/* ---------- Verbal Morality Statute ticket ---------- */
.dm-ticket {
  position: absolute; left: 50%; bottom: 0; z-index: 20; width: 340px; margin-left: -170px;
  padding: 16px 18px 20px; background: #fffdf2; color: #222; text-align: center;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 19px; line-height: 1.15;
  box-shadow: 0 -4px 20px #0006;
  -webkit-mask: radial-gradient(circle 5px at 50% 0, #0000 98%, #000) 0 0 / 14px 100%;
          mask: radial-gradient(circle 5px at 50% 0, #0000 98%, #000) 0 0 / 14px 100%;
  animation: dmPrint 1.1s steps(14) both;
}
.dm-ticket .h { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .18em; color: #c23b3b; margin: 4px 0 8px; }
.dm-ticket .amt { font-size: 30px; font-weight: 700; margin: 6px 0; }
.dm-ticket .stamp { display: inline-block; margin-top: 8px; padding: 2px 10px; border: 2px solid #c23b3b; color: #c23b3b; transform: rotate(-6deg); letter-spacing: .15em; font-weight: 700; }
.dm-ticket.out { animation: dmTear .4s ease-in both; }
@keyframes dmPrint { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes dmTear { to { transform: translateY(-30px); opacity: 0; } }

/* ========== SAPD police screens ========== */
.pd { position: absolute; inset: 0; overflow: hidden; font-family: 'Rajdhani', sans-serif; font-weight: 700; }
.pd-logo { position: absolute; left: 18px; top: 16px; width: 46px; height: 56px; z-index: 4; background: #1b2a4a; border: 2px solid #0d1626; display: grid; place-items: center; }
.pd-logo svg { width: 30px; height: 40px; }
.pd-step {
  position: absolute; right: 22px; bottom: 18px; z-index: 6; padding: 2px 10px;
  background: #000c; color: #fff; font-size: 17px; letter-spacing: .12em; cursor: pointer;
}
.pd-back { position: absolute; left: 22px; bottom: 18px; z-index: 6; padding: 2px 10px; background: #000c; color: #fff; font-size: 17px; letter-spacing: .12em; cursor: pointer; }

/* police menu */
.pd-menu { background: radial-gradient(ellipse at 50% 30%, #2a3439, #12171a); color: #d6f3ef; }
.pd-menu .bar { position: absolute; left: 80px; right: 0; top: 22px; font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: .2em; color: #3fb8af; }
.pd-menu .bar small { display: block; font-family: 'Rajdhani', sans-serif; font-size: 18px; letter-spacing: .15em; color: #8fb3ae; font-weight: 600; }
.pd-alert {
  position: absolute; left: 40px; right: 40px; top: 96px; padding: 10px 16px;
  background: repeating-linear-gradient(45deg, #ffcf00 0 14px, #111 14px 28px); color: #111;
}
.pd-alert span { display: block; background: #fff; text-align: center; font-size: 26px; letter-spacing: .1em; color: #c23b3b; padding: 4px; animation: hkBlink 1s steps(1) infinite; }
.pd-items { position: absolute; left: 70px; right: 70px; top: 196px; display: flex; flex-direction: column; gap: 14px; }
.pd-items div {
  height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 18px; cursor: pointer;
  background: linear-gradient(#25363a, #172124); border: 2px solid #2d6b66; border-radius: 4px;
  font-size: 25px; letter-spacing: .1em;
}
.pd-items div i { font-style: normal; width: 34px; height: 34px; display: grid; place-items: center; background: #3fb8af; color: #0b0f11; font-size: 22px; border-radius: 3px; }
.pd-items div.sel { border-color: #3fb8af; background: linear-gradient(#2f6b66, #1d4a46); color: #fff; }

/* 1. DATALINK SEARCH */
.pd-search { background: #c9d1cd; }
.pd-search .strip { position: absolute; left: 14px; top: 0; bottom: 0; width: 56px; background: linear-gradient(90deg, #2b8f88, #3fb8af); }
.pd-search .strip i { display: block; width: 30px; height: 14px; margin: 10px auto 0; background: #9af0e8; opacity: .5; }
.pd-search .strip i.red { background: #d24b4b; opacity: 1; }
.pd-search .panel { position: absolute; left: 96px; top: 34px; width: 520px; }
.pd-search .t { height: 26px; background: #1b2a4a; color: #cfe; font-size: 20px; letter-spacing: .5em; padding-left: 12px; line-height: 26px; margin-bottom: 10px; }
.pd-grid { display: grid; grid-template-columns: repeat(10, 46px); gap: 6px; }
.pd-grid i {
  height: 37px; border-radius: 2px;
  background: linear-gradient(135deg, #b6fff6, #3fb8af 45%, #1d6f69);
  box-shadow: inset -3px -3px 0 #0004, inset 3px 3px 0 #fff6;
}
.pd-grid i.red { background: linear-gradient(135deg, #ffb3a8, #d24b4b 45%, #7a1d1d); }
.pd-grid i.hot { outline: 3px solid #fff; animation: hkBlink .4s steps(1) infinite; }
.pd-search .msg { margin-top: 10px; height: 30px; font-size: 26px; letter-spacing: .25em; color: #1b2a4a; }

/* 2. MDK */
.pd-mdk { background: #c9d1cd; }
/* the 11 numbers end above the PREV button */
.pd-mdk .nums { position: absolute; left: 14px; top: 84px; width: 66px; bottom: 48px; background: #1d4a46; border: 2px solid #3fb8af; text-align: center; color: #7ef0e4; font-size: 24px; line-height: 31px; padding-top: 2px; }
.pd-mdk .nums span { display: block; }
.pd-mdk .nums span.hit { background: #7ef0e4; color: #0b0f11; }
.pd-mdk .card { position: absolute; left: 96px; right: 16px; top: 16px; bottom: 16px; background: radial-gradient(#5a1f18 1.2px, transparent 1.6px) 0 0 / 6px 6px, #33100c; border: 3px solid #1a0705; box-shadow: inset 0 0 0 2px #7a3b30; text-align: center; padding-top: 18px; }
.pd-mdk .card::before { content: ''; position: absolute; inset: 8px; border: 1px solid #a0706a; pointer-events: none; }
.pd-mdk .code { display: inline-block; padding: 0 30px; background: #3fb8af; color: #0b0f11; font-family: 'Share Tech Mono', monospace; font-size: 26px; letter-spacing: .5em; line-height: 34px; }
.pd-mdk .tiles { display: flex; justify-content: center; gap: 20px; margin: 14px 0 8px; }
/* each letter: a dark chamfered band behind (::before), a bevelled red face (::after), the letter on top */
.pd-mdk .tiles b {
  position: relative; z-index: 0; width: 112px; height: 92px; padding-top: 12px; box-sizing: border-box; display: grid; place-items: center;
  font: 900 54px/1 'Arial Black', Arial, sans-serif; color: #f6e2c8; text-shadow: 3px 3px 0 #3a0a05;
  opacity: 0; animation: dmIn .3s ease-out forwards;
}
.pd-mdk .tiles b::before { content: ''; position: absolute; inset: 0; z-index: -2; background: #4a0d08; clip-path: polygon(0 0, 100% 0, 86% 28%, 86% 100%, 14% 100%, 14% 28%); }
.pd-mdk .tiles b::after {
  content: ''; position: absolute; left: 14%; right: 14%; top: 12px; bottom: 0; z-index: -1;
  background: linear-gradient(#c24a38, #7a1d12); border-top: 6px solid #e8806a; border-left: 6px solid #d8705a; border-bottom: 6px solid #3a0a05; border-right: 6px solid #4a0f08;
}
.pd-mdk .tiles b:nth-child(2) { animation-delay: .3s; }
.pd-mdk .tiles b:nth-child(3) { animation-delay: .6s; }
@keyframes dmIn { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: none; } }
.pd-mdk .words { font: 700 40px/1 'Arial Rounded MT Bold', 'Arial Black', Arial, sans-serif; color: #f6e2c8; opacity: 0; animation: dmFade .4s .9s forwards; }
.pd-mdk .words i { font-style: normal; color: #d9a07e; }
/* only the chalk outline: a bare "svg" here also caught the logo's svg and blew it up over the card */
.pd-mdk .chalk { display: block; margin: 6px auto 0; width: 400px; height: 173px; opacity: 0; animation: dmFade .5s 1.2s forwards; }

/* 3. LOCATION · EMERGENCY CODE 187 */
.pd-loc { background: radial-gradient(#0000000f 1px, transparent 1.4px) 0 0 / 5px 5px, #dfe3e1; }
.pd-loc h2 { position: absolute; left: 0; right: 60px; top: 26px; margin: 0; text-align: center; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 58px; letter-spacing: .04em; color: #1b2f73; }
.pd-haz { position: absolute; left: 110px; top: 128px; width: 380px; height: 236px; padding: 30px; background: repeating-linear-gradient(-45deg, #f2c200 0 26px, #111 26px 52px); }
.pd-haz div { height: 100%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #b3202a; line-height: 1; }
.pd-haz b { font-size: 46px; letter-spacing: .02em; }
.pd-haz strong { font-size: 66px; margin-top: 6px; }
.pd-letters { position: absolute; right: 22px; top: 20px; width: 46px; }
.pd-letters span { display: block; height: 50px; margin-bottom: 5px; background: #c7ccc9; border: 2px solid #8a908d; text-align: center; font-size: 36px; line-height: 46px; color: #555; }
.pd-letters span.on { background: #1b2a4a; color: #fff; border-color: #1b2a4a; }
.pd-arrows { position: absolute; left: 26px; top: 120px; bottom: 30px; width: 56px; overflow: hidden; border-left: 2px solid #8a908d; }
.pd-arrows i { position: absolute; width: 2px; height: 60px; background: #333; animation: pdUp 1.6s linear infinite; }
.pd-arrows i::before { content: ''; position: absolute; left: -5px; top: -4px; border: 6px solid transparent; border-bottom: 9px solid #333; border-top: 0; }
@keyframes pdUp { from { transform: translateY(380px); } to { transform: translateY(-80px); } }

/* 4. MAP 247 */
.pd-map { background: #050505; }
.pd-map canvas { position: absolute; left: 80px; top: 40px; width: 480px; height: 400px; }
.pd-map .side { position: absolute; top: 90px; writing-mode: vertical-rl; font-size: 34px; letter-spacing: .3em; }
.pd-map .side.l { left: 26px; color: #2f6cff; }
.pd-map .side.r { right: 20px; color: #ffd84a; }
.pd-map .code { position: absolute; left: 120px; bottom: 60px; font-size: 52px; color: #2f6cff; text-shadow: 0 0 2px #fff, 0 0 10px #9fd4ff; }
.pd-map .hbar { position: absolute; left: 0; right: 0; top: 220px; height: 6px; background: #2f6cff; opacity: .7; }

/* 5. MURDER DEATH KILL dossier */
.pd-dossier { background: #4a2626; }
.pd-dossier .plan { position: absolute; inset: 0; width: 640px; height: 480px; }
.pd-dossier .box { position: absolute; left: 150px; top: 34px; width: 300px; height: 210px; background: linear-gradient(#b35a2a, #7a3418); border: 5px solid #f6e2c8; }
.pd-dossier .box .t { position: absolute; left: -5px; right: -5px; top: -34px; height: 34px; font-size: 30px; line-height: 34px; color: #e8a34a; letter-spacing: .02em; }
.pd-dossier .box .t b { color: #ffd84a; font-size: 36px; }
.pd-dossier .box svg { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
.pd-dossier .num { position: absolute; left: 462px; top: 30px; font-size: 64px; line-height: .95; color: #f6e2c8; text-align: center; }
.pd-dossier .code { position: absolute; right: 50px; bottom: 82px; font-size: 58px; color: #ff4a3a; letter-spacing: .02em; }

/* 6. PARKING */
.pd-park { background: #0b1428; }
.pd-park .lot { position: absolute; left: 90px; top: 10px; width: 460px; height: 460px; }
.pd-park .missing { position: absolute; left: 250px; top: 252px; font-size: 32px; color: #ff8a1a; text-shadow: 0 0 6px #000; letter-spacing: .02em; }
.pd-park .lbl { position: absolute; left: 0; right: 0; top: 296px; text-align: center; font-size: 40px; color: #e8eef8; letter-spacing: .06em; text-shadow: 0 0 6px #000; }
.pd-park canvas { position: absolute; left: 210px; top: 130px; width: 220px; height: 220px; border-radius: 50%; }

/* 7. UNIT SRCH */
.pd-unit { background: #2a0f6a; }
.pd-unit canvas { position: absolute; inset: 0; width: 640px; height: 480px; }
.pd-unit .hd { position: absolute; left: 150px; top: 30px; padding: 4px 18px; background: #2a2626; border: 3px solid #555; color: #f6e2c8; font-size: 34px; letter-spacing: .08em; }
.pd-unit .dir { position: absolute; left: 34px; top: 124px; width: 196px; padding: 10px 12px; background: #000d; border: 2px solid #444; color: #f6e2c8; font-size: 22px; line-height: 1.1; }
.pd-unit .dir p { margin: 0 0 14px; }
.pd-unit .dir p:last-child { margin: 0; }

/* MUSEUM, after the film's Magnetic Accelerator screen (markup in demolition-museum.js) */
.pd-mus { background: #cfe2f5; }
.mu-defs { position: absolute; }
/* the archive grid: 6 rows of photos, the top row cut off by the glass as in the film */
.mu-grid { position: absolute; left: 4px; right: 4px; top: -66px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 100px; gap: 6px; }
.mu-cell { position: relative; background: radial-gradient(ellipse at 45% 40%, #e9f0f7, #bdd0e3 70%, #a5bdd6); box-shadow: inset 1px 1px 0 #f4f9ff, inset -1px -1px 0 #7f9fc4; }
.mu-cell svg { position: absolute; left: 6%; top: 9%; width: 88%; height: 66%; overflow: visible; filter: drop-shadow(1px 2px 1.5px #0005); }
.mu-cell .m { fill: url(#muBlued); stroke: #0b0c0e; stroke-width: .5; }
.mu-cell .chrome .m { fill: url(#muChrome); stroke: #4a5058; }
.mu-cell .d { fill: #0d0e10; }
.mu-cell .g { fill: #1c1d20; stroke: #0b0c0e; stroke-width: .5; }
.mu-cell .k { fill: none; stroke: #0b0c0e; stroke-width: .8; }
.mu-cell .h { fill: none; stroke: #e2e8ee; stroke-width: .8; opacity: .75; }
.mu-cell .s { fill: none; stroke: #26292e; stroke-width: 2.2; }
.mu-cell em {
  position: absolute; right: 10px; bottom: 2px; padding: 1px 8px 1px 11px;
  background: #2346a8; color: #fff; font: italic 700 12px/1.25 Arial, sans-serif;
  clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%);
}
.mu-logo { position: absolute; left: 18px; top: 16px; z-index: 3; width: 124px; height: 96px; box-shadow: 0 2px 8px #0006; }
.mu-logo svg { display: block; width: 100%; height: 100%; }
/* the feature panel: black frame, pale inner card, dark red corner squares, caption */
.mu-panel { position: absolute; left: 163px; top: 92px; width: 399px; height: 271px; z-index: 3; background: #060606; box-shadow: 0 3px 12px #0007; }
.mu-inner { position: absolute; left: 11px; top: 11px; width: 377px; height: 206px; background: radial-gradient(ellipse at 50% 45%, #f2f7fa, #d3e2ec 75%, #bfd3e1); }
.mu-inner svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mu-mark { position: absolute; z-index: 1; width: 32px; height: 32px; background: linear-gradient(135deg, #8e2222, #5e1010); box-shadow: inset 0 0 0 2px #a83434; }
.mu-mark.tl { left: -9px; top: -4px; }
.mu-mark.tr { right: -9px; top: -4px; }
.mu-mark.bl { left: -9px; bottom: -4px; }
.mu-mark.br { right: -9px; bottom: -4px; }
.mu-ol { fill: none; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: dmDraw 1.6s ease-out forwards; }
.mu-ol.dk { stroke: #7a1e0e; stroke-width: 4; }
.mu-ol.lt { stroke: #f08a3a; stroke-width: 1.6; }
.mu-fill { fill: #ec8a5a; fill-opacity: .32; stroke: none; opacity: 0; animation: dmFade .6s .8s forwards; }
.mu-int { opacity: 0; animation: dmFade .5s 1.1s forwards; }
.mu-cap { position: absolute; left: 0; right: 0; top: 217px; padding: 7px 44px 0; color: #f4f4f4; font: 700 20px/1 Arial, Helvetica, sans-serif; letter-spacing: -.01em; text-align: center; }
.mu-cap small { display: flex; justify-content: space-between; margin-top: 5px; font-size: 13px; }
/* callouts: red boxes with white right-angle leader lines, drawn over the panel */
.mu-call {
  position: absolute; z-index: 5; box-sizing: border-box; height: 41px; padding: 3px 10px;
  background: #b1262e; border: 1px solid #e9a3a7; color: #fff; text-shadow: 0 1px 0 #5a0d12;
  font: 700 15px/1.05 'Arial Rounded MT Bold', Arial, sans-serif;
  opacity: 0; animation: dmFade .4s 1.5s forwards;
}
.mu-line { position: absolute; z-index: 4; background: #f4f8ff; box-shadow: 0 0 2px #0005; opacity: 0; animation: dmFade .4s 1.4s forwards; }
@keyframes dmDraw { to { stroke-dashoffset: 0; } }
@keyframes dmFade { to { opacity: 1; } }
