:root{--bg:#06131d;--panel:#0c2230;--line:#28536a;--text:#eefaff;--muted:#9fc5d8;--cyan:#69dcff;--ok:#8de7ad;--warn:#ffd166;--danger:#ff8888}
html,body{margin:0;min-height:100%;font-family:Inter,system-ui,Arial,sans-serif;background:#06131d;color:var(--text)}
.topbar{display:flex;gap:1rem;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#06131df2;border-bottom:1px solid #1e4256;position:sticky;top:0;z-index:30}.brand{font-weight:900;letter-spacing:.09em}.status{display:flex;gap:.55rem;flex-wrap:wrap}.chip{font-size:.86rem;background:#0a202d;border:1px solid #2c5266;border-radius:999px;padding:.32rem .55rem;color:var(--muted)}
main{width:min(1240px,100%);margin:auto;padding:1rem;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:1rem}.stage{position:relative;min-height:650px;border:1px solid #28536a;border-radius:20px;overflow:hidden;background:#0a2636;box-shadow:0 24px 70px #0008}.world{position:absolute;inset:0;overflow:hidden;transition:.5s}.world.title{background:radial-gradient(circle at 55% 18%,#1686aa 0,#0a4665 28%,#061b2b 65%,#040d14)}.world.boat{background:linear-gradient(#9cdbf3 0 39%,#e8f0ef 39% 40%,#2495be 40% 57%,#0d435d 57%)}.world.descent{background:linear-gradient(#47a7cb,#0b557b 38%,#07324f 70%,#061f35)}.world.seabed,.world.acoustic{background:linear-gradient(#0c6188 0,#073b5b 54%,#164650 54%,#102f36 100%)}
.card{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(680px,88%);background:#051520dc;border:1px solid #3a6d83;border-radius:20px;padding:1.7rem;text-align:center;backdrop-filter:blur(6px);box-shadow:0 16px 50px #0007}.card h1{font-size:clamp(2.5rem,7vw,5.2rem);margin:.15rem 0}.card h2{font-size:clamp(1.55rem,4vw,2.5rem);margin:.2rem 0 1rem}.card p{line-height:1.55;color:#d8edf7}.muted{color:var(--muted);font-size:.92rem}.primary,.secondary{border:0;border-radius:12px;padding:.8rem 1.08rem;font-weight:800;cursor:pointer;margin:.25rem}.primary{background:var(--cyan);color:#05212d}.secondary{background:#17394a;color:white;border:1px solid #356176}.primary:disabled{opacity:.35;cursor:not-allowed}
/* boat scenery */.sun{position:absolute;width:84px;height:84px;border-radius:50%;background:#fff7b1;right:10%;top:8%;box-shadow:0 0 50px #fff6a4aa}.deck{position:absolute;left:0;right:0;bottom:0;height:35%;background:linear-gradient(#c0b59f,#8e846f)}.rail{position:absolute;left:0;right:0;top:52%;height:8px;background:#dfe7e8;box-shadow:0 25px 0 #dfe7e8}.rail:before{content:"";position:absolute;left:8%;width:4px;height:75px;background:#dfe7e8;box-shadow:220px 0 #dfe7e8,440px 0 #dfe7e8,660px 0 #dfe7e8}.crate{position:absolute;bottom:12%;left:8%;width:145px;height:82px;background:#655846;border:5px solid #493f32;border-radius:5px}.tankRack{position:absolute;right:7%;bottom:11%;display:flex;gap:14px}.tank{width:43px;height:145px;border-radius:22px 22px 12px 12px;background:linear-gradient(90deg,#b7c5ca,#f3f6f7,#9caeb5);border:2px solid #60727a;position:relative}.tank:before{content:"";position:absolute;top:-14px;left:12px;width:16px;height:18px;background:#4f5d63;border-radius:4px}.console{position:absolute;left:44%;bottom:13%;width:120px;height:75px;background:#263840;border:4px solid #15252c;border-radius:9px;transform:rotate(-4deg)}.console:after{content:"20.0";position:absolute;inset:14px;background:#7fd9d0;color:#08262a;display:grid;place-items:center;font-weight:900}.lampObj{position:absolute;right:34%;top:24%;width:88px;height:28px;background:#1a2227;border:3px solid #05090b;border-radius:9px;transform:rotate(12deg)}.lampObj:after{content:"";position:absolute;right:-16px;top:3px;border-left:18px solid #c9d2d3;border-top:8px solid transparent;border-bottom:8px solid transparent}.mapObj{position:absolute;left:13%;top:23%;width:130px;height:95px;background:#e7e1c6;border:2px solid #695d47;transform:rotate(-5deg);box-shadow:0 8px 18px #0004}.mapObj:before{content:"B4  • 20 m\A ↘ pente SE";white-space:pre;position:absolute;inset:12px;color:#3b4e51;font-weight:800;font-size:.85rem}
.hotspot{position:absolute;border:2px solid transparent;background:transparent;cursor:pointer;border-radius:14px;z-index:8}.hotspot:hover,.hotspot:focus-visible{border-color:#89e8ff;background:#70ddff19;box-shadow:0 0 0 4px #70ddff18}.hintMode .hotspot{border:2px dashed #89e8ff88;background:#70ddff10}.tag{position:absolute;pointer-events:none;background:rgba(3,18,28,.96);color:#f4fbff;border:1px solid #65c7f0;border-radius:8px;padding:.32rem .48rem;font-size:.82rem;font-weight:800;opacity:0;transition:.2s;white-space:nowrap;box-shadow:0 5px 15px #0008;text-shadow:0 1px 1px #000}.hotspot:hover .tag{opacity:1}
/* underwater */.surfaceGlow{position:absolute;left:-10%;right:-10%;top:-25%;height:40%;background:radial-gradient(ellipse,#a4efff88 0,#6fdfff22 48%,transparent 72%)}.rope{position:absolute;left:49%;top:0;width:5px;height:77%;background:#dbc897;transform:rotate(3deg);box-shadow:0 0 3px #000}.bubble{position:absolute;border:2px solid #b7f0ff88;border-radius:50%;animation:rise 6s linear infinite}.b1{left:42%;bottom:5%;width:12px;height:12px}.b2{left:47%;bottom:10%;width:18px;height:18px;animation-delay:-2s}.b3{left:55%;bottom:7%;width:8px;height:8px;animation-delay:-4s}@keyframes rise{to{transform:translateY(-600px);opacity:.05}}.sand{position:absolute;left:-5%;right:-5%;bottom:-7%;height:42%;background:radial-gradient(ellipse at 40% 0,#506f65,#244849 45%,#153638 75%);transform:rotate(-1deg)}.rock{position:absolute;background:#253f3e;border-radius:50% 55% 15% 20%}.r1{width:190px;height:110px;right:7%;bottom:20%}.r2{width:135px;height:82px;left:8%;bottom:17%}.anchor{position:absolute;left:23%;bottom:25%;width:75px;height:55px;border:9px solid #556b6e;border-radius:10px;transform:rotate(-8deg)}.anchor:after{content:"";position:absolute;width:95px;height:8px;background:#4e6265;left:56px;top:20px;transform:rotate(18deg)}.cable{position:absolute;left:31%;bottom:27%;width:280px;height:105px;border-bottom:8px solid #262c2b;border-radius:50%;transform:rotate(-5deg)}.marker{position:absolute;right:12%;bottom:30%;width:105px;height:85px;background:#2d4a48;border-radius:60% 45% 20% 25%}.marker:after{content:"";position:absolute;right:12px;top:16px;width:18px;height:18px;border-radius:50%;background:#e2b83e;box-shadow:0 0 10px #ffd65f}
/* acoustic */.compass{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);width:240px;height:240px;border:2px solid #78c9df66;border-radius:50%;background:#02172266}.compass:before,.compass:after{content:"";position:absolute;background:#78c9df44}.compass:before{left:50%;top:0;bottom:0;width:1px}.compass:after{top:50%;left:0;right:0;height:1px}.dir{position:absolute;width:92px;height:58px;border:1px solid #5c9db3;background:#082c3bcc;color:#e8f9ff;border-radius:13px;font-weight:900;cursor:pointer}.dir:hover{background:#10495c}.north{left:50%;top:14%;transform:translateX(-50%)}.south{left:50%;bottom:12%;transform:translateX(-50%)}.west{left:13%;top:50%;transform:translateY(-50%)}.east{right:13%;top:50%;transform:translateY(-50%)}.signalbox{position:absolute;left:50%;bottom:5%;transform:translateX(-50%);width:min(600px,90%);background:#061923e8;border:1px solid #3d7388;border-radius:16px;padding:.85rem 1rem;text-align:center}.meter{height:12px;background:#193b49;border-radius:999px;overflow:hidden;margin:.55rem 0}.meter>div{height:100%;width:15%;background:linear-gradient(90deg,#79dfff,#e7fcff);transition:.35s}.pulse{display:inline-block;min-width:80px;font-weight:900;letter-spacing:.08em}
aside{background:#091d29;border:1px solid #28536a;border-radius:20px;padding:1rem;display:flex;flex-direction:column;gap:1rem}.panel{background:#0e2a39;border:1px solid #28536a;border-radius:14px;padding:.9rem}.panel h3{margin:.05rem 0 .6rem}.inventory{display:flex;flex-wrap:wrap;gap:.45rem}.item{font-size:.84rem;padding:.4rem .55rem;border-radius:9px;background:#173a4b;border:1px solid #37677c}.log{max-height:220px;overflow:auto;color:#c8e4f1;font-size:.86rem}.logLine{padding:.34rem 0;border-bottom:1px solid #204354}.actionrow{display:flex;gap:.5rem;flex-wrap:wrap}.tiny{font-size:.8rem;padding:.42rem .6rem}footer{text-align:center;color:#719cae;font-size:.82rem;padding:.6rem}.bigDepth{font-size:3.7rem;font-weight:900}.gauge{height:10px;background:#173744;border-radius:999px;overflow:hidden}.gauge div{height:100%;background:#69dcff;transition:.4s}.fade{animation:fade .35s ease}@keyframes fade{from{opacity:.25}to{opacity:1}}
@media(max-width:850px){main{grid-template-columns:1fr}.stage{min-height:570px}aside{order:-1}.status{display:none}.rail:before{box-shadow:180px 0 #dfe7e8,360px 0 #dfe7e8}.tankRack{right:3%}.mapObj{left:4%}.lampObj{right:20%}}

.answerMark{display:inline-flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;border-radius:50%;font-weight:900;margin-right:.35rem}.answerMark.ok{background:#173d2e;color:#7ff0b8}.answerMark.bad{background:#4a2323;color:#ff9d9d}

/* V8 — réponse choisie : état visuel explicite, feedback existant conservé */
.answer-choice-correct,
.answer-choice-wrong {
  position: relative !important;
  padding-left: 2.75rem !important;
  transition: background-color .18s ease, border-color .18s ease,
              box-shadow .18s ease, color .18s ease !important;
}

.answer-choice-correct {
  /* Bleu plus clair demandé */
  background: #2f789f !important;
  border-color: #78c8ef !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 2px rgba(120, 200, 239, .22) inset,
    0 0 14px rgba(72, 172, 220, .18) !important;
}

.answer-choice-wrong {
  background: #7d3945 !important;
  border-color: #e17b88 !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 2px rgba(225, 123, 136, .16) inset,
    0 0 12px rgba(180, 75, 90, .15) !important;
}

.answer-choice-correct::before,
.answer-choice-wrong::before {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.answer-choice-correct::before {
  content: "✓";
  color: #d8f4ff;
}

.answer-choice-wrong::before {
  content: "✕";
  color: #ffd7dc;
}


/* V15.8 — station de contrôle / sonar */
.sonar-console{max-width:760px;margin:0 auto;background:rgba(4,25,39,.92);border:1px solid rgba(115,198,233,.42);border-radius:18px;padding:1rem;box-shadow:inset 0 0 28px rgba(54,163,210,.08)}
.sonar-screen{position:relative;min-height:310px;border-radius:16px;overflow:hidden;background:linear-gradient(180deg,#061923 0%,#082d3c 68%,#133b46 100%);border:1px solid rgba(108,192,226,.38)}
.sonar-screen:before{content:"";position:absolute;inset:0;background:repeating-radial-gradient(circle at 50% 8%,transparent 0 38px,rgba(95,190,220,.10) 39px 40px);pointer-events:none}
.sonar-origin{position:absolute;left:50%;top:18px;transform:translateX(-50%);width:16px;height:16px;border-radius:50%;background:#9adfff;box-shadow:0 0 18px #71c8ee}
.sonar-beam{position:absolute;left:50%;top:30px;width:3px;height:240px;background:linear-gradient(#78d6ff,rgba(120,214,255,.06));transform-origin:50% 0;transform:rotate(0deg);box-shadow:0 0 14px rgba(120,214,255,.42)}


.sonar-readouts{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem;margin-top:.7rem}
.sonar-readout{padding:.65rem;border:1px solid rgba(110,190,225,.28);border-radius:12px;background:rgba(2,18,29,.54);text-align:center}
.sonar-readout span{display:block;font-size:.78rem;color:var(--muted);margin-bottom:.15rem}.sonar-readout strong{font-size:1.15rem;color:#d8f4ff}
.sonar-slider{width:100%;accent-color:#65bee7}.sonar-scale{display:flex;justify-content:space-between;font-size:.78rem;color:var(--muted)}
.calcbox{margin-top:.8rem;padding:.8rem;border-radius:12px;background:rgba(3,22,34,.68);border:1px solid rgba(115,198,233,.28)}
.calcbox input{width:110px;background:#071d2b;border:1px solid #3f7188;color:#fff;border-radius:9px;padding:.55rem .65rem;font:inherit}
@media(max-width:650px){.sonar-readouts{grid-template-columns:1fr}.sonar-screen{min-height:280px}.sonar-beam{height:215px}}


/* V15.8 — passage obligatoire par le plan et la salle sonar */
.plan-hotspot{
  position:absolute;
  right:22px;
  top:92px;
  z-index:6;
  padding:.8rem 1rem;
  border-radius:12px;
  border:1px solid rgba(127,197,235,.58);
  background:rgba(12,48,68,.94);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.plan-hotspot:hover{background:rgba(30,87,117,.98)}
.boat-plan-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.sonar-room-scene{
  min-height:560px;
  background:
    linear-gradient(rgba(5,25,37,.84),rgba(5,25,37,.90)),
    radial-gradient(circle at 70% 30%,rgba(65,145,180,.20),transparent 38%);
}
.control-console{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  margin-top:18px;
}
.console-screen{
  border:1px solid rgba(112,187,222,.45);
  background:rgba(0,20,31,.78);
  padding:22px;
  border-radius:14px;
}
.depth-error{
  font-size:2rem;
  font-weight:800;
  margin:.35rem 0;
}
@media(max-width:700px){
  .control-console,.boat-plan-grid{grid-template-columns:1fr}
  .plan-hotspot{position:static;margin:12px}
}


/* V15.8 — séquence lumière / RGB / récupération */
.dark-zone{
  background:
    linear-gradient(rgba(0,20,35,.76),rgba(0,18,28,.90)),
    radial-gradient(circle at 60% 28%,rgba(35,88,110,.16),transparent 35%);
}
.lit-zone{
  background:
    linear-gradient(rgba(0,38,55,.52),rgba(0,24,36,.78)),
    radial-gradient(circle at 58% 28%,rgba(220,245,255,.28),transparent 25%);
}
.rgb-preview-wrap{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:16px;
  align-items:center;
  margin:18px 0;
}
.rgb-preview{
  width:110px;
  height:110px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.35);
  box-shadow:0 0 28px rgba(255,255,255,.18);
}
.rgb-preview-wrap + label,
.rgb-preview-wrap ~ label{
  display:grid;
  grid-template-columns:70px minmax(0,1fr);
  gap:12px;
  align-items:center;
  margin:12px 0;
}
.rgb-preview-wrap input[type="range"],
.card input[type="range"]{
  width:100%;
}
.sim-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
@media(max-width:620px){
  .rgb-preview-wrap{grid-template-columns:1fr}
}




.station-box{position:absolute;left:38%;top:34%;width:180px;height:120px;display:grid;place-items:center;border:3px solid #7c9baa;border-radius:12px;background:#405865;font-weight:900}
.station-part{position:absolute;min-width:96px;padding:.65rem .8rem;border-radius:999px;border:2px solid rgba(155,220,245,.75);background:rgba(8,48,68,.94);color:#fff;font-weight:800}
.part-case{left:42%;top:20%}.part-cable{left:16%;top:58%}.part-anchor{right:8%;bottom:16%}
.station-part-seen{background:#2f789f!important;border-color:#9bdcff!important}
@media(max-width:760px){}


/* V15.8 — sonar compact, boutons toujours accessibles */
.sonar-console-compact{
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 16px !important;
  display: grid;
  gap: 10px;
}
.sonar-console-compact h2{
  margin: 0;
}
.sonar-console-compact p{
  margin: 0;
}
.sonar-screen-clean{
  position: relative;
  height: 180px !important;
  min-height: 180px !important;
  overflow: hidden;
  border-radius: 14px;
}
.sonar-controls-compact{
  display:grid;
  gap:4px;
}
.sonar-readouts-compact{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.sonar-readouts-compact .sonar-readout{
  padding:8px 10px !important;
}
.sonar-feedback-compact{
  min-height: 22px;
  margin: 0 !important;
}
.sonar-validate-btn{
  width:100%;
  margin:0 !important;
  min-height:44px;
}
.sonar-range-ring{
  position:absolute;
  left:50%;
  bottom:-10px;
  transform:translateX(-50%);
  border:1px solid rgba(120,205,235,.22);
  border-radius:50% 50% 0 0;
  pointer-events:none;
}
.sonar-range-ring.ring1{width:180px;height:90px}
.sonar-range-ring.ring2{width:300px;height:150px}
.sonar-range-ring.ring3{width:430px;height:215px}
.echo-weak{color:#c9d9e3}
.echo-medium{color:#f0d38b}
.echo-strong{color:var(--ok)}
/* Le conteneur principal ne doit jamais couper la partie basse du sonar. */
#world,
.world{
  overflow-y:auto !important;
  overflow-x:hidden;
}
@media(max-width:680px){
  .sonar-screen-clean{
    height:150px !important;
    min-height:150px !important;
  }
  .sonar-readouts-compact{
    grid-template-columns:1fr;
  }
}


/* V15.8 — même style de réponses partout */
.underwater .choice,
.descent-lit .choice,
.dark-zone .choice,
.lit-zone .choice {
  width: 100%;
  text-align: left;
  display: block;
  padding: 12px 14px;
  margin: 7px 0;
  border-radius: 12px;
  border: 1px solid rgba(120,190,220,.42);
  background: rgba(10,49,70,.88);
  color: #eef8fc;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.underwater .choice:hover,
.descent-lit .choice:hover,
.dark-zone .choice:hover,
.lit-zone .choice:hover {
  background: rgba(20,72,98,.96);
  border-color: rgba(139,211,240,.68);
}

/* Le feedback V8/V13 reste identique sous l'eau */
.underwater .answer-choice-correct,
.descent-lit .answer-choice-correct,
.dark-zone .answer-choice-correct,
.lit-zone .answer-choice-correct {
  background: #2f789f !important;
  border-color: #78c8ef !important;
  color: #fff !important;
}
.underwater .answer-choice-wrong,
.descent-lit .answer-choice-wrong,
.dark-zone .answer-choice-wrong,
.lit-zone .answer-choice-wrong {
  background: #7d3945 !important;
  border-color: #e17b88 !important;
  color: #fff !important;
}

/* V15.8 — lumière encore présente pendant la descente */
.descent-lit {
  background:
    linear-gradient(rgba(32,128,170,.18), rgba(6,78,112,.38)),
    radial-gradient(circle at 50% 0%, rgba(220,248,255,.70), rgba(110,200,230,.34) 28%, transparent 58%),
    linear-gradient(#1481ad, #075476 72%, #053c57) !important;
}
.descent-lit .surfaceGlow {
  opacity: .95 !important;
  background: radial-gradient(ellipse at center top, rgba(230,252,255,.82), rgba(135,219,239,.38) 38%, transparent 72%) !important;
}
.descent-lit .card {
  background: rgba(5,43,62,.78) !important;
  backdrop-filter: blur(3px);
}

/* À 31 m : ambiance nettement sombre */
.dark-zone {
  background:
    linear-gradient(rgba(0,14,28,.78), rgba(0,10,20,.94)),
    radial-gradient(circle at 50% 0%, rgba(25,80,105,.18), transparent 42%) !important;
}
.dark-zone .surfaceGlow {
  opacity: .18 !important;
}

/* Inspection : la scène reste visible, panneau d'information compact */


.station-report h2,
.station-report > p {
  display: none;
}
.station-report .muted {
  font-size: .82rem;
}
#partReport {
  margin: 2px 0 6px;
}
#partReport p {
  margin: 2px 0;
}
#damageConclusionBtn {
  width: auto;
  padding: 8px 12px;
  min-height: 38px;
}

@media(max-width:760px){
  
  
}


/* V15.8 — exploration de station dans le décor, inspirée de la V9 */
.station-body{
  position:absolute;
  left:52%;
  bottom:24%;
  width:165px;
  height:115px;
  background:linear-gradient(145deg,#536e72,#2c4448);
  border:5px solid #81989c;
  border-radius:14px;
  transform:rotate(-5deg);
  box-shadow:0 12px 24px #0006;
}
.station-body:before{
  content:"";
  position:absolute;
  left:18px;
  top:18px;
  width:42px;
  height:42px;
  border-radius:50%;
  background:#17313a;
  border:3px solid #93aeb4;
}
.station-label{
  position:absolute;
  right:12px;
  top:18px;
  font-weight:900;
  font-size:.9rem;
  letter-spacing:.08em;
}
.station-cable{
  position:absolute;
  left:30%;
  bottom:24%;
  width:310px;
  height:95px;
  border-bottom:9px solid #202a2c;
  border-radius:50%;
  transform:rotate(-8deg);
}
.station-cable:after{
  content:"";
  position:absolute;
  right:-10px;
  bottom:-12px;
  width:22px;
  height:20px;
  background:#9a633f;
  clip-path:polygon(0 20%,100% 0,76% 45%,100% 82%,20% 100%,38% 56%);
}
.station-anchor{
  position:absolute;
  right:12%;
  bottom:20%;
  width:90px;
  height:70px;
  border:10px solid #596c70;
  border-radius:12px;
  transform:rotate(13deg);
}
.station-anchor:after{
  content:"";
  position:absolute;
  left:-28px;
  top:20px;
  width:45px;
  height:9px;
  background:#596c70;
  transform:rotate(-28deg);
}
.explore-info{
  position:absolute;
  left:18px;
  bottom:18px;
  z-index:11;
  display:flex;
  gap:12px;
  align-items:center;
  max-width:58%;
  padding:8px 12px;
  border-radius:10px;
  background:rgba(4,26,38,.78);
  border:1px solid rgba(111,190,222,.32);
  font-size:.9rem;
  backdrop-filter:blur(3px);
}
#exploreCount{
  white-space:nowrap;
  color:var(--muted);
  font-weight:800;
}
@media(max-width:700px){
  .explore-info{
    max-width:calc(100% - 36px);
    right:18px;
    bottom:70px;
  }
}


/* V15.8 — fonds photo-réalistes */
.world.boat,
.world.descent,
.world.seabed,
.world.lit-zone,
.world.dark-zone{
  background-color:#082536;
}
.world .card{
  background:rgba(4,20,31,.86);
  border-color:rgba(105,178,210,.48);
  box-shadow:0 18px 54px rgba(0,0,0,.55);
}
.world .hotspot:hover,
.world .hotspot:focus-visible{
  border-color:#59c9ff;
  background:rgba(66,184,235,.12);
  box-shadow:0 0 0 4px rgba(70,190,240,.14),0 0 22px rgba(70,190,240,.25);
}
.world.hintMode .hotspot{
  border:2px dashed rgba(105,220,255,.8);
  background:rgba(70,190,240,.08);
}
.world.descent .surfaceGlow,
.world.seabed .surfaceGlow{
  opacity:.12;
}


/* V15.8 — photo backgrounds take precedence over legacy CSS scenery */
.world.boat{
  background-color:#071925 !important;
}
.world.boat::before,
.world.boat::after{
  content:none !important;
}
.world.descent,
.world.seabed,
.world.dark-zone,
.world.lit-zone{
  background-color:#041b28 !important;
}

/* On photographic seabed scenes, hide old drawn scenery. */
.world.seabed > .sand,
.world.seabed > .rock,
.world.seabed > .anchor,
.world.seabed > .cable,
.world.seabed > .marker,
.world.dark-zone > .sand,
.world.dark-zone > .rock,
.world.lit-zone > .sand,
.world.lit-zone > .rock{
  display:none !important;
}

/* During the descent, keep only useful depth cues over the photo. */
.world.descent .surfaceGlow{
  opacity:.16 !important;
}

/* At 31 m before the lamp, the station image itself is intentionally dark. */
.world.dark-zone .surfaceGlow{
  opacity:.04 !important;
}


/* V15.8 — nouveaux fonds sous-marins propres */
.world.descent .cable,
.world.seabed .cable,
.world.dark-zone .cable,
.world.lit-zone .cable,
.station-cable,
.anchor,
.marker {
  display:none !important;
}

/* Aucun décor CSS ne doit masquer les nouveaux fonds photo */
.world.descent > .sand,
.world.descent > .rock,
.world.seabed > .sand,
.world.seabed > .rock,
.world.dark-zone > .sand,
.world.dark-zone > .rock,
.world.lit-zone > .sand,
.world.lit-zone > .rock {
  display:none !important;
}

/* Le bout de descente de l'ancienne version est supprimé :
   les nouveaux visuels donnent déjà le contexte de profondeur. */
.world.descent > .rope {
  display:none !important;
}


/* V15.8 — salle sonar recentrée et texte non coupé */
.sonar-room-shell{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:24px;
  overflow:auto;
}
.sonar-room-card{
  width:min(620px,92%);
  max-height:calc(100% - 24px);
  overflow:auto;
  background:rgba(4,24,36,.90);
  border:1px solid rgba(104,189,225,.52);
  border-radius:18px;
  padding:22px 24px;
  box-shadow:0 18px 52px rgba(0,0,0,.48);
  backdrop-filter:blur(6px);
}
.sonar-room-card h2{
  margin:.25rem 0 .8rem;
  font-size:clamp(1.5rem,3vw,2rem);
}
.sonar-room-card p{
  line-height:1.5;
  margin:.55rem 0;
}
.sonar-room-readout{
  margin-top:16px;
  padding:16px 18px !important;
}
.sonar-room-actions{
  display:flex;
  gap:10px;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-top:16px;
}
.sonar-room-actions .primary,
.sonar-room-actions .secondary{
  flex:1 1 220px;
  min-height:44px;
}
@media(max-width:620px){
  .sonar-room-shell{padding:12px}
  .sonar-room-card{width:100%;padding:16px}
}

/* V15.8 — la descente utilise uniquement les images utilisateur, sans ancien câble */
.world.descent > .rope,
.world.descent > .cable,
.world.descent > .anchor,
.world.descent > .marker{
  display:none !important;
}
