/* ============================================================
   SIGNAL LOST — Player 1: Command Deck (cool steel + cyan glow)
   ============================================================ */

.p1 .room {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(75, 227, 255, 0.07), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 158px, rgba(0,0,0,.35) 158px 162px),
    linear-gradient(180deg, #18222d 0%, #101820 55%, #0a1016 100%);
}

/* ---------- poster (decor) ---------- */
.poster {
  left: 30px; top: 40px; width: 210px; height: 270px;
  background: linear-gradient(180deg, #0e1621, #0a111a);
  border: 6px solid #232f3d;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
  transform: rotate(-1.5deg);
  padding: 14px 12px;
}
.poster-title {
  font-size: 12px; letter-spacing: .3em; color: var(--glow-cyan);
  text-align: center; margin-bottom: 10px;
}
.poster-stars {
  height: 175px;
  background:
    radial-gradient(2px 2px at 18% 22%, #cfeaff 60%, transparent),
    radial-gradient(1.6px 1.6px at 66% 15%, #cfeaff 60%, transparent),
    radial-gradient(2.4px 2.4px at 82% 42%, #ffd9a0 60%, transparent),
    radial-gradient(1.4px 1.4px at 40% 38%, #cfeaff 60%, transparent),
    radial-gradient(2px 2px at 25% 62%, #cfeaff 60%, transparent),
    radial-gradient(1.6px 1.6px at 58% 55%, #ffd9a0 60%, transparent),
    radial-gradient(2.6px 2.6px at 74% 78%, #cfeaff 60%, transparent),
    radial-gradient(1.4px 1.4px at 34% 84%, #cfeaff 60%, transparent),
    #07101a;
  border: 1px solid #1d2a38;
}
.poster-caption {
  margin-top: 10px; text-align: center;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--steel-300); letter-spacing: .18em;
}

/* ---------- CRT monitor ---------- */
.monitor { left: 40px; top: 360px; width: 380px; }
.crt-frame {
  background: linear-gradient(180deg, #303c4c, #1a232e);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1);
}
.crt-screen {
  position: relative;
  height: 220px;
  border-radius: 8px;
  background: #020604;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0,0,0,.9);
}
.crt-off-glint {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(255,255,255,.05) 0%, transparent 35%);
}
.crt-content {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 22px;
  font-family: var(--font-mono);
  color: var(--glow-green);
  text-shadow: 0 0 10px rgba(89,255,156,.7);
}
.crt-screen.on { animation: crt-flicker 0.5s steps(3) 1; background: #041008; }
.crt-screen.on .crt-content { display: flex; }
.crt-line { font-size: 14px; letter-spacing: .1em; white-space: nowrap; }
.crt-line.big { font-size: 21px; letter-spacing: .22em; }
.crt-line.code { font-size: 34px; letter-spacing: .24em; color: #baffd6; }
.crt-line.dim { font-size: 12px; opacity: .55; }
@keyframes crt-flicker {
  0% { opacity: .2; } 50% { opacity: 1; } 70% { opacity: .4; } 100% { opacity: 1; }
}
.monitor-label { display: block; text-align: center; margin-top: 8px; }

/* ---------- switch panel ---------- */
.switchpanel {
  left: 470px; top: 490px; width: 400px;
  background: linear-gradient(180deg, var(--steel-600), var(--steel-700));
  border: 2px solid #0a0e13;
  border-radius: 10px;
  padding: 14px 18px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
  text-align: center;
}
.switch-row { display: flex; justify-content: space-between; margin-top: 12px; }
.toggle { width: 50px; cursor: pointer; }
.toggle .well {
  width: 26px; height: 62px; margin: 0 auto;
  border-radius: 13px;
  background: #05080c;
  box-shadow: inset 0 3px 8px rgba(0,0,0,.9);
  position: relative;
}
.toggle .lever {
  position: absolute; left: 3px; width: 20px; height: 30px;
  border-radius: 10px;
  background: linear-gradient(180deg, #8fa2b8, #4a5a6e);
  box-shadow: 0 2px 4px rgba(0,0,0,.7);
  top: 29px;
  transition: top 0.12s ease, background 0.12s ease;
}
.toggle.on .lever {
  top: 3px;
  background: linear-gradient(180deg, #9fe8ff, #2c94ad);
}
.toggle .roman {
  margin-top: 7px; text-align: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--steel-300);
}
.toggle.on .roman { color: var(--glow-cyan); }

/* ---------- cabinet + symbol lock ---------- */
.cabinet { left: 500px; top: 60px; width: 340px; height: 310px; perspective: 900px; }
.cab-body {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #1a222c, #10161d);
  border: 3px solid #0a0e13;
  border-radius: 8px;
  box-shadow: inset 0 0 40px rgba(0,0,0,.8);
  display: flex; align-items: center; justify-content: center;
}
.cab-door {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #3a4a5d, #26323f);
  border: 3px solid #0a0e13;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 20px;
  z-index: 2;
}
.cab-door.open { transform: rotateY(-104deg); }
.door-label { margin-bottom: 16px; }
.cab-handle {
  position: absolute; right: 12px; top: 50%;
  width: 10px; height: 54px; margin-top: -27px;
  border-radius: 5px;
  background: linear-gradient(90deg, #8fa2b8, #4a5a6e);
  box-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.door-hint {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  color: var(--steel-300);
}

.symbol-lock { display: flex; gap: 14px; }
.glyph-slot {
  width: 60px; height: 78px;
  border-radius: 6px;
  background: #05080c;
  box-shadow: inset 0 3px 10px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.07);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
}
.glyph-slot .glyph { width: 38px; height: 38px; fill: none; stroke: var(--glow-cyan); stroke-width: 2.4; filter: drop-shadow(0 0 5px rgba(75,227,255,.6)); }
.glyph-slot .idx { font-family: var(--font-mono); font-size: 10px; color: var(--steel-300); }
.symbol-lock.solved .glyph { stroke: var(--glow-green); filter: drop-shadow(0 0 6px rgba(89,255,156,.8)); }

/* fuse card revealed inside cabinet */
.fuse-card {
  width: 240px; padding: 16px 18px 12px;
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 3px;
  transform: rotate(2deg);
  box-shadow: 0 6px 16px rgba(0,0,0,.6);
  text-align: center;
}
.fuse-card-title { font-weight: 700; letter-spacing: .24em; font-size: 13px; margin-bottom: 10px; }
.fuse-diagram { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; }
.fuse-diagram .f {
  width: 26px; height: 52px; border-radius: 4px;
  border: 2px solid #6b5f45;
  display: flex; align-items: flex-end; justify-content: center;
  font-family: var(--font-mono); font-size: 9px;
  padding-bottom: 3px;
  color: #6b5f45;
  background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(107,95,69,.15) 4px 8px);
}
.fuse-diagram .f.hot {
  background: #c8412e; border-color: #7e2418; color: #ffe9d8;
  box-shadow: inset 0 0 8px rgba(0,0,0,.35);
}
.fuse-card-note { font-size: 11px; font-style: italic; opacity: .75; }

/* ---------- formula note ---------- */
.note-formula {
  left: 880px; top: 48px; width: 220px;
  background: var(--paper);
  color: var(--paper-ink);
  padding: 40px 18px 18px;
  transform: rotate(2.5deg);
  box-shadow: 0 8px 18px rgba(0,0,0,.55);
  font-size: 15px;
  text-align: center;
}
.note-pin {
  position: absolute; top: 12px; left: 50%; margin-left: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9d7a, #a33417 70%);
  box-shadow: 0 3px 4px rgba(0,0,0,.4);
}
.note-formula .formula { font-weight: 700; font-size: 19px; margin: 6px 0; }
.note-formula .small { font-size: 11px; font-style: italic; opacity: .7; }

/* ---------- radio ---------- */
.radio {
  left: 880px; top: 250px; width: 340px;
  background: linear-gradient(180deg, var(--steel-600), var(--steel-700));
  border: 2px solid #0a0e13;
  border-radius: 12px;
  padding: 14px 18px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
  text-align: center;
}
.freq-display {
  margin: 10px auto 12px;
  width: 150px;
  font-family: var(--font-mono);
  font-size: 46px;
  color: var(--glow-amber);
  text-shadow: 0 0 12px rgba(255,179,71,.8);
  background: #0d0703;
  border-radius: 6px;
  border: 1px solid #000;
  box-shadow: inset 0 3px 10px rgba(0,0,0,.9);
  padding: 4px 0;
  letter-spacing: .12em;
}
.radio-controls { display: flex; justify-content: center; gap: 12px; }
.radio-btn {
  font-family: var(--font-mono);
  font-size: 15px;
  width: 62px; padding: 8px 0;
  color: #dfe8f2;
  background: radial-gradient(circle at 35% 30%, #46586e, #16202b 80%);
  border: none; border-radius: 8px;
  box-shadow: 0 4px 0 #05080c, inset 0 1px 1px rgba(255,255,255,.15);
  cursor: pointer;
}
.radio-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #05080c; }
/* tape prints out of the radio's left side, onto the empty wall */
.ticker {
  position: absolute; left: -180px; top: 120px; transform: rotate(-4deg);
  width: 185px;
  background: #f4ecd7;
  color: var(--paper-ink);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.55);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 92% 100%, 84% calc(100% - 8px), 76% 100%, 68% calc(100% - 8px), 60% 100%, 52% calc(100% - 8px), 44% 100%, 36% calc(100% - 8px), 28% 100%, 20% calc(100% - 8px), 12% 100%, 4% calc(100% - 8px), 0 100%);
  display: none;
  z-index: 5;
}
.ticker.printed { display: block; animation: ticker-drop .5s ease-out; }
@keyframes ticker-drop {
  from { opacity: 0; transform: translateX(40px) rotate(-4deg); }
  to { opacity: 1; transform: translateX(0) rotate(-4deg); }
}

/* ---------- keypad position ---------- */
.p1 .keypad-wrap { left: 950px; top: 470px; width: 290px; }

/* ---------- hazard stripe decor ---------- */
.hazard-stripe {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  background: repeating-linear-gradient(45deg, #c79a2c 0 22px, #13100a 22px 44px);
  opacity: .5;
}
