/* ============================================================
   SIGNAL LOST — Player 2: Engine Room (hot rust + amber glow)
   ============================================================ */

.p2 .room {
  background:
    radial-gradient(1100px 480px at 50% -10%, rgba(255, 179, 71, 0.08), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 158px, rgba(0,0,0,.35) 158px 162px),
    linear-gradient(180deg, #241a12 0%, #1a120c 55%, #100b07 100%);
}

.p2 .plate-label { color: #a08a70; }

/* ---------- engine block ---------- */
.engine { left: 30px; top: 50px; width: 330px; }
.engine-label { display: block; text-align: center; margin-bottom: 8px; }
.engine-body {
  height: 360px;
  border-radius: 16px;
  background: linear-gradient(90deg, #2c2018 0%, #4a3626 18%, #3a2b1e 50%, #4a3626 82%, #2c2018 100%);
  border: 3px solid #120c07;
  box-shadow: 0 14px 34px rgba(0,0,0,.65), inset 0 2px 0 rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.engine-fins {
  position: absolute; inset: 14px 20px auto;
  height: 110px;
  background: repeating-linear-gradient(180deg, #16100a 0 8px, #574130 8px 18px);
  border-radius: 8px;
  box-shadow: inset 0 3px 12px rgba(0,0,0,.7);
}
.hull-glyphs {
  position: absolute; left: 24px; right: 24px; top: 150px;
  display: flex; justify-content: space-between;
}
.hull-glyphs .hg {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hull-glyphs .glyph {
  width: 52px; height: 52px;
  fill: none; stroke: #ffd9a0; stroke-width: 2.6;
  opacity: .92;
  filter: drop-shadow(0 0 4px rgba(255, 179, 71, 0.45));
}
.hull-glyphs .num {
  font-family: var(--font-mono); font-size: 13px; color: #cfa76a;
}
.engine-glow {
  position: absolute; left: 24px; right: 24px; bottom: 18px; height: 74px;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #0e0803 0 14px, #241205 14px 28px);
  box-shadow: inset 0 0 20px rgba(0,0,0,.8);
}
.engine-caption {
  margin-top: 8px; text-align: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  color: #85704f;
}

/* ---------- gauges ---------- */
.gauges { left: 395px; top: 40px; width: 500px; text-align: center; }
.gauge-row { display: flex; justify-content: center; gap: 26px; margin-top: 10px; }
.gauge {
  width: 132px; height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #1a130c 55%, #0c0805 100%);
  border: 6px solid #58452f;
  box-shadow: 0 10px 24px rgba(0,0,0,.6), inset 0 0 24px rgba(0,0,0,.9);
  position: relative;
}
.gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gauge .ticks text {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: #3a2f22;
}
.gauge .needle {
  stroke: #4a3a28; stroke-width: 3; stroke-linecap: round;
  transform-origin: 60px 60px;
  transform: rotate(-120deg);
  transition: transform 1.6s cubic-bezier(.3,.9,.3,1.1);
}
.gauge .hub { fill: #58452f; }
.gauge .gname {
  position: absolute; bottom: 17px; width: 100%;
  text-align: center;
  font-family: var(--font-mono); font-size: 10px;
  color: #5d4b33; letter-spacing: .2em;
}
.gauges.powered .gauge { border-color: #8a6a3c; }
.gauges.powered .gauge .ticks text { fill: #ffd9a0; }
.gauges.powered .gauge .needle { stroke: var(--glow-red); }
.gauges.powered .gauge .gname { color: #cfa76a; }
.gauges.powered .gauge::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  box-shadow: 0 0 26px rgba(255, 179, 71, 0.35), inset 0 0 30px rgba(255, 179, 71, 0.12);
  pointer-events: none;
}

/* ---------- fuse box ---------- */
.fusebox {
  left: 950px; top: 40px; width: 290px;
  background: linear-gradient(180deg, #3c2f22, #241a11);
  border: 2px solid #0f0a06;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  text-align: center;
}
.fuse-row { display: flex; justify-content: space-between; margin-top: 12px; }
.fuse { width: 36px; cursor: pointer; }
.fuse .body {
  width: 26px; height: 64px; margin: 0 auto;
  border-radius: 5px;
  background: #0d0905;
  border: 2px solid #4a3a28;
  box-shadow: inset 0 3px 8px rgba(0,0,0,.9);
  transition: background .15s ease, box-shadow .15s ease;
}
.fuse.on .body {
  background: linear-gradient(180deg, #ffb347, #b35c17);
  box-shadow: 0 0 14px rgba(255, 179, 71, 0.55), inset 0 1px 2px rgba(255,255,255,.35);
}
.fuse .roman {
  margin-top: 6px;
  font-family: var(--font-mono); font-size: 11px; color: #85704f;
}
.fuse.on .roman { color: var(--glow-amber); }
.fuse-status {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .18em;
  color: var(--glow-red);
}
.fuse-status.online { color: var(--glow-green); }

/* ---------- valves ---------- */
.valves {
  left: 395px; top: 268px; width: 370px;
  background: linear-gradient(180deg, #3c2f22, #241a11);
  border: 2px solid #0f0a06;
  border-radius: 10px;
  padding: 14px 18px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.55);
  text-align: center;
}
.valve-row { display: flex; justify-content: space-around; margin-top: 12px; }
.valve { cursor: pointer; width: 96px; }
.valve .wheel {
  width: 88px; height: 88px; margin: 0 auto;
  border-radius: 50%;
  border: 9px solid #7e6543;
  background:
    radial-gradient(circle, #241a11 26%, transparent 27%),
    conic-gradient(#7e6543 0 12deg, transparent 12deg 108deg, #7e6543 108deg 132deg, transparent 132deg 228deg, #7e6543 228deg 252deg, transparent 252deg 348deg, #7e6543 348deg 360deg);
  box-shadow: 0 8px 18px rgba(0,0,0,.6), inset 0 0 10px rgba(0,0,0,.6);
  transition: transform .35s cubic-bezier(.3,.7,.3,1.2);
}
.valve .vname {
  margin-top: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  color: #cfa76a;
}

/* ---------- stencil behind steam ---------- */
.stencil-panel {
  left: 800px; top: 268px; width: 190px; height: 208px;
  background: linear-gradient(180deg, #2c2118, #1c130c);
  border: 2px solid #0f0a06;
  border-radius: 10px;
  padding: 12px 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.55);
  text-align: center;
  overflow: hidden;
}
.stencil { margin-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px; }
.stencil .sgl { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stencil .sw {
  width: 18px; height: 40px; border-radius: 9px;
  background: #0d0905;
  position: relative;
  border: 1px solid #4a3a28;
}
.stencil .sw::after {
  content: "";
  position: absolute; left: 2px; width: 12px; height: 17px; border-radius: 7px;
  background: #6b5638;
}
.stencil .sw.up::after { top: 2px; background: var(--glow-amber); box-shadow: 0 0 8px rgba(255,179,71,.7); }
.stencil .sw.down::after { bottom: 2px; }
.stencil .srm { font-family: var(--font-mono); font-size: 10px; color: #cfa76a; }
.steam {
  position: absolute; inset: 0;
  background:
    radial-gradient(60px 46px at 30% 30%, rgba(226, 219, 205, 0.95), transparent 70%),
    radial-gradient(80px 60px at 70% 45%, rgba(203, 196, 182, 0.95), transparent 70%),
    radial-gradient(70px 55px at 40% 70%, rgba(226, 219, 205, 0.92), transparent 70%),
    radial-gradient(90px 70px at 65% 85%, rgba(203, 196, 182, 0.9), transparent 70%),
    rgba(180, 173, 160, 0.55);
  transition: opacity 1.4s ease;
  animation: steam-drift 6s ease-in-out infinite alternate;
}
.steam.cleared { opacity: 0; pointer-events: none; animation: none; }
@keyframes steam-drift {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-6px) scale(1.06); }
}

/* ---------- locker ---------- */
.locker { left: 1010px; top: 292px; width: 230px; height: 250px; perspective: 800px; }
.locker-body {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #1c130c, #120b06);
  border: 3px solid #0f0a06;
  border-radius: 8px;
  box-shadow: inset 0 0 34px rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
}
.locker-door {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #55412c, #38291a);
  border: 3px solid #0f0a06;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07);
  transform-origin: right center;
  transition: transform .9s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 16px;
  z-index: 2;
}
.locker-door.open { transform: rotateY(106deg); }
.combo-row { display: flex; gap: 10px; margin-top: 14px; }
.combo-dial {
  width: 48px; height: 66px;
  border-radius: 6px;
  background: #0d0905;
  border: 1px solid #000;
  box-shadow: inset 0 3px 10px rgba(0,0,0,.9);
  color: var(--glow-amber);
  text-shadow: 0 0 10px rgba(255,179,71,.8);
  font-family: var(--font-mono);
  font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.locker-hint {
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  color: #85704f;
}
.tape {
  width: 150px; padding: 12px;
  background: #d8d2c4;
  border-radius: 6px;
  transform: rotate(-2deg);
  box-shadow: 0 6px 16px rgba(0,0,0,.6);
  text-align: center;
  color: var(--paper-ink);
}
.tape-reels { display: flex; justify-content: space-around; margin-bottom: 8px; }
.tape-reels span {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle, #d8d2c4 28%, #322a20 30%, #322a20 60%, #d8d2c4 62%);
  border: 2px solid #322a20;
}
.tape-label { font-size: 12px; line-height: 1.5; }
.tape-label strong { font-size: 17px; letter-spacing: .2em; }

/* ---------- keypad position ---------- */
.p2 .keypad-wrap { left: 420px; top: 505px; width: 290px; }
.p2 .keypad .readout { color: var(--glow-amber); text-shadow: 0 0 8px rgba(255,179,71,.7); }

/* ---------- hazard stripe ---------- */
.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;
}
