/* =====================================================================
   Thème LE SOUS-MARIN — éclairage rouge d'alerte, laiton et acier
   Tout est préfixé par body[data-universe="sousmarin"] ou par .sm-…
   ===================================================================== */

/* HUD, chrono, transitions, zones cliquables */
body[data-universe="sousmarin"] #screen-game { background: #070202; }
body[data-universe="sousmarin"] .hud,
body[data-universe="sousmarin"] .dock { background: #170707; border-color: #3d1512; }
body[data-universe="sousmarin"] .timer { color: #ff6a55; text-shadow: 0 0 10px rgba(255, 60, 40, .55); font-variant-numeric: tabular-nums; }
body[data-universe="sousmarin"] .timer.warn { color: #ffb03a; }
body[data-universe="sousmarin"] .timer.danger { color: #fff; text-shadow: 0 0 14px #ff2a1a; animation: sm-alert 1s ease-in-out infinite; }
body[data-universe="sousmarin"] .transition h2 { color: #ff6a55; letter-spacing: 3px; text-shadow: 0 0 18px rgba(255, 42, 26, .6); animation: sm-alert 2.6s ease-in-out infinite; }
body[data-universe="sousmarin"] .hotspot:hover,
body[data-universe="sousmarin"] .hotspot:focus-visible { border-color: #ff6a55; background: rgba(255, 90, 70, .08); }

@keyframes sm-alert { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* Boutons des serrures (volants de vannes) */
body[data-universe="sousmarin"] .keybtn { border-color: #d9a54a; background: #24120c; color: #ffe8c2; box-shadow: 0 4px 0 #6e4b1a; }
body[data-universe="sousmarin"] .keybtn:active { box-shadow: 0 1px 0 #6e4b1a; }
body[data-universe="sousmarin"] .seq-display .chip { background: #2a140e; border-color: #d9a54a; color: #ffe8c2; }

/* Serrure à couleurs : des voyants ronds au lieu de bougies */
body[data-universe="sousmarin"] .candle { border-radius: 14px; background: #15171b; border-color: #3a3d44; }
body[data-universe="sousmarin"] .candle::before {
  width: 34px; height: 34px; bottom: 34px; border-radius: 50%;
  border: 3px solid #0b0d10; opacity: .45;
}
body[data-universe="sousmarin"] .candle.lit::before { opacity: 1; box-shadow: 0 0 16px var(--c), 0 0 4px #fff inset; }
body[data-universe="sousmarin"] .candle.lit::after { display: none; }
/* Le bouton de remise à zéro dit « Réinitialiser » (et non « Souffler les bougies ») */
body[data-universe="sousmarin"] .lock-ui > .btn.ghost.small { font-size: 0; }
body[data-universe="sousmarin"] .lock-ui > .btn.ghost.small::after { content: 'Réinitialiser'; font-size: 14px; }

/* Plaque de laiton gravée */
.sm-plate.paper {
  background: linear-gradient(135deg, #e9c983, #c3954a 55%, #9c7130);
  color: #2a1a06; font-family: 'Courier New', monospace; font-weight: bold;
  border: 3px solid #6e4b1a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 24px rgba(60, 30, 0, .35);
  text-shadow: 0 1px 0 rgba(255, 240, 200, .5);
}
.sm-plate.paper td { border-bottom-color: rgba(42, 26, 6, .3); }

/* Écran phosphore (sonar, interphone) */
.sm-sonar.paper {
  background: radial-gradient(circle at 50% 40%, #0f3a22, #03120a);
  color: #7dffb0; font-family: 'Courier New', monospace; font-size: 16px;
  border: 2px solid #1e4d3a; box-shadow: inset 0 0 30px rgba(57, 255, 136, .15);
  text-shadow: 0 0 6px rgba(57, 255, 136, .5);
}
.sm-sonar.paper td { border-bottom-color: rgba(125, 255, 176, .2); }
.sm-sonar.paper .big { font-size: 20px; letter-spacing: 1px; }

/* Bande du télescripteur */
.sm-telex.paper { background: #f4efe2; }
.sm-morse {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px;
  background: #fffdf6; border: 1px dashed #b9ab8f; border-radius: 4px; padding: 10px 6px;
  font-family: 'Courier New', monospace; font-size: 20px; font-weight: bold; line-height: 1.6;
}
.sm-morse span { white-space: nowrap; }
.sm-morse i { font-style: normal; color: #b3261e; padding: 0 2px; }

/* Table du morse */
.sm-morse-table {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 16px;
  font-size: 16px; margin-top: 6px;
}
.sm-morse-table span { white-space: nowrap; border-bottom: 1px dashed rgba(42, 26, 6, .3); }
.sm-morse-table b { display: inline-block; width: 22px; }

/* Journal de bord : papier ligné, encre bleue */
.sm-log.paper {
  background: repeating-linear-gradient(#f7f1e1 0 27px, #c9d6e8 27px 28px);
  color: #1c2f5a; font-size: 15px;
}
.sm-log.paper td { border-bottom: none; vertical-align: top; }
.sm-log.paper td:first-child { white-space: nowrap; color: #7a2a1e; }

/* Pastille de couleur (voyants) */
.sm-dot {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  vertical-align: -2px; border: 2px solid #2a1a06; margin-right: 4px;
}
