/* ════════════════════════════════════════
   assets/pages/orion.css
   CSS isolé pour dactylo/station-orion.php
   Sélecteurs préfixés avec .dactylo pour éviter les conflits
   Généré automatiquement — ne pas éditer manuellement
   ════════════════════════════════════════ */

:root { color-scheme: light; }

/* ══════════════════════════════════════
   STARFIELD CANVAS
   ══════════════════════════════════════ */
.dactylo #starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ══════════════════════════════════════
   INTRO SCREEN
   ══════════════════════════════════════ */
.dactylo .orion-intro {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.8s ease;
}
.dactylo .orion-intro.fade-out {
  opacity: 0;
  pointer-events: none;
}

.dactylo .orion-logo {
  font-family: var(--fd);
  font-size: 3.5rem;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.6);
  animation: glitch 0.15s infinite;
}

@keyframes glitch {
  0%, 100% { text-shadow: 0 0 20px rgba(57, 255, 20, 0.6); }
  50% { text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
}

.dactylo .orion-status {
  font-family: var(--fm);
  font-size: 0.85rem;
  color: var(--amber);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.dactylo .aria-box {
  background: rgba(0, 229, 255, 0.08);
  border: 2px solid var(--cyan);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  max-width: 600px;
  min-height: 160px;
  font-family: var(--fm);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin: 2rem 0;
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.1);
}

.dactylo .aria-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--cyan);
  margin-left: 2px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  51%, 99% { opacity: 0; }
}

.dactylo .orion-btn-accept {
  font-family: var(--fd);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--green);
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.3s ease;
  text-transform: uppercase;
}
.dactylo .orion-btn-accept.visible {
  opacity: 1;
}
.dactylo .orion-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}

/* ══════════════════════════════════════
   LANDING SCREEN
   ══════════════════════════════════════ */
.dactylo #landing-screen {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: #000510;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
  transition: opacity 0.6s ease;
}
.dactylo #landing-screen.fade-out { opacity: 0; pointer-events: none; }

.dactylo .landing-card {
  background: rgba(0,229,255,0.05);
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 12px;
  padding: 2.5rem 3rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  margin-top: 2rem;
}
.dactylo .landing-card p {
  font-family: var(--fm);
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.dactylo .landing-card label {
  display: block;
  font-family: var(--fm);
  font-size: 0.85rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.dactylo #player-name-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  color: var(--text);
  font-family: var(--fm);
  font-size: 1.1rem;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}
.dactylo #player-name-input:focus { border-color: var(--cyan); }
.dactylo #btn-board-station {
  font-family: var(--fd);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--cyan);
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition);
}
.dactylo #btn-board-station:hover { box-shadow: 0 0 20px rgba(0,229,255,0.5); transform: translateY(-2px); }

/* ══════════════════════════════════════
   LEVER SCREEN
   ══════════════════════════════════════ */
.dactylo #lever-screen {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: #000510;
  z-index: 9998;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem 2rem;
  overflow-y: auto;
}
.dactylo #lever-screen > .boarding-panel { margin: auto 0; width: 100%; }
.dactylo #lever-screen.visible { display: flex; }

.dactylo #lever-aria-box {
  background: rgba(0,229,255,0.08);
  border: 2px solid var(--cyan);
  border-radius: 8px;
  padding: 1.25rem 2rem;
  max-width: 600px;
  width: 100%;
  font-family: var(--fm);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  min-height: 60px;
  margin-bottom: 1rem;
}
.dactylo .aria-speaker {
  font-family: var(--fd);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.dactylo #aria-continue-btn {
  font-family: var(--fm);
  font-size: 0.85rem;
  color: var(--bg);
  background: var(--cyan);
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  margin-top: 0.75rem;
  display: none;
  transition: var(--transition);
  letter-spacing: 0.05em;
}
.dactylo #aria-continue-btn:hover { box-shadow: 0 0 15px rgba(0,229,255,0.4); }
.dactylo #lever-hint {
  font-family: var(--fm);
  font-size: 0.85rem;
  color: var(--amber);
  letter-spacing: 0.05em;
  margin: 1.5rem 0 2rem;
  opacity: 0;
  transition: opacity 0.5s;
}
.dactylo #lever-hint.visible { opacity: 1; }

/* ── Control Panel Layout ── */
.dactylo .boarding-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 860px;
}
.dactylo .boarding-aria { width: 100%; }
.dactylo .ctrl-panel {
  width: 100%;
  background: rgba(0,10,30,0.85);
  border: 1px solid rgba(57,255,20,0.25);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}
.dactylo .ctrl-header {
  font-family: var(--fm);
  font-size: 0.78rem;
  color: var(--green);
  letter-spacing: 0.14em;
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(57,255,20,0.15);
}
.dactylo .ctrl-section { margin-bottom: 1.25rem; }
.dactylo .ctrl-section-title {
  font-family: var(--fm);
  font-size: 0.68rem;
  color: var(--text2);
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
}

/* ── Levers ── */
.dactylo .levers-row {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}
.dactylo .lever-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  user-select: none;
}
.dactylo .lever-state-label {
  font-family: var(--fm);
  font-size: 0.65rem;
  color: var(--amber);
  letter-spacing: 0.08em;
  min-height: 1em;
  transition: color 0.3s;
}
.dactylo .lever-unit.down .lever-state-label { color: var(--green); }
.dactylo .lever-svg {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: 50% 83%;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  user-select: none;
  display: block;
}
.dactylo .lever-unit.down .lever-svg { transform: rotate(38deg); }
.dactylo .lever-knob { fill: var(--amber); transition: fill 0.3s; }
.dactylo .lever-shaft { stroke: var(--amber); transition: stroke 0.3s; }
.dactylo .lever-unit.down .lever-knob { fill: var(--green); }
.dactylo .lever-unit.down .lever-shaft { stroke: var(--green); }
.dactylo .lever-name {
  font-family: var(--fm);
  font-size: 0.6rem;
  color: var(--text2);
  letter-spacing: 0.1em;
  text-align: center;
  max-width: 70px;
  line-height: 1.3;
}

/* ── Panel Buttons ── */
.dactylo .buttons-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.dactylo .btn-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.dactylo .panel-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #0a0f1a;
  border: 2px solid #334;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.dactylo .panel-btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #1a2030;
  border: 1px solid #334;
  transition: all 0.2s;
}
.dactylo .panel-btn.active {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(57,255,20,0.4), 0 4px 8px rgba(0,0,0,0.5);
}
.dactylo .panel-btn.active::after {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 8px rgba(57,255,20,0.6);
}
.dactylo .panel-btn:hover { border-color: var(--amber); }
.dactylo .btn-name {
  font-family: var(--fm);
  font-size: 0.6rem;
  color: var(--text2);
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.3;
  max-width: 70px;
}

/* ── Launch button ── */
.dactylo #btn-launch-sequence {
  display: block;
  margin: 1rem auto 0;
  font-family: var(--fm);
  font-size: 0.82rem;
  color: var(--bg);
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 2rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(57,255,20,0.3);
}
.dactylo #btn-launch-sequence:hover { box-shadow: 0 0 25px rgba(57,255,20,0.5); }

/* ── Danger Overlay ── */
.dactylo #danger-overlay {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: rgba(180,60,0,0.18);
  z-index: 10010;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.dactylo #danger-overlay.visible { display: flex; animation: catastrophe-shake 0.5s ease; }
.dactylo .danger-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: repeating-linear-gradient(90deg,#ff6600 0,#ff6600 30px,#000 30px,#000 60px);
  height: 6px;
  animation: alarm-scroll 0.4s linear infinite;
}
.dactylo .danger-title {
  font-family: var(--fd);
  font-size: 1.3rem;
  color: #ff6600;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 1.5rem;
  animation: alarm-blink 0.6s infinite;
}
.dactylo #danger-aria-box {
  background: rgba(0,0,0,0.85);
  border: 2px solid #ff6600;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  max-width: 600px;
  width: 100%;
  font-family: var(--fm);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  min-height: 80px;
}

/* Catastrophe */
.dactylo #catastrophe-overlay {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: rgba(180, 0, 0, 0.15);
  z-index: 10010;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
  overflow-y: auto;
}
.dactylo #catastrophe-overlay.visible { display: flex; animation: catastrophe-shake 0.6s ease; }
@keyframes catastrophe-shake {
  0%,100% { transform: translateX(0); }
  15% { transform: translateX(-8px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}
.dactylo .alarm-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: repeating-linear-gradient(90deg, #ff0000 0px, #ff0000 30px, #000 30px, #000 60px);
  height: 6px;
  animation: alarm-scroll 0.5s linear infinite;
}
@keyframes alarm-scroll { from { background-position: 0; } to { background-position: 60px; } }
#catastrophe-aria-box {
  background: rgba(0,0,0,0.85);
  border: 2px solid #ff2d2d;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  max-width: 600px;
  width: 100%;
  font-family: var(--fm);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  min-height: 80px;
  margin-top: 1.5rem;
}
.dactylo .alarm-title {
  font-family: var(--fd);
  font-size: 1.4rem;
  color: #ff2d2d;
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 1.5rem;
  animation: alarm-blink 0.5s infinite;
}
@keyframes alarm-blink { 50% { opacity: 0.3; } }

/* Module aria continue button */
.dactylo #module-aria-continue {
  font-family: var(--fm);
  font-size: 0.82rem;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  padding: 0.4rem 1rem;
  cursor: pointer;
  margin-top: 0.75rem;
  display: none;
  transition: var(--transition);
  letter-spacing: 0.05em;
}
.dactylo #module-aria-continue:hover { background: rgba(0,229,255,0.08); }

/* Fullscreen button — coin bas-gauche (ne conflict pas avec les toggles) */
.dactylo #btn-fullscreen {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9998;
  font-size: 0.75rem !important;
  padding: 0.45rem 0.9rem !important;
  font-family: var(--fm);
  font-size: 0.8rem;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.dactylo #btn-fullscreen:hover { border-color: var(--cyan); color: var(--cyan); }

/* ══════════════════════════════════════
   COCKPIT TOPBAR
   ══════════════════════════════════════ */
.dactylo .cockpit-topbar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 2rem;
  height: 52px;
  z-index: 1000;
  display: none;
  overflow: hidden;
}
.dactylo .cockpit-topbar.visible {
  display: flex;
}

.dactylo .cockpit-flex {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.dactylo .cockpit-left, .dactylo .cockpit-center, .dactylo .cockpit-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dactylo .cockpit-left {
  flex: 0 0 auto;
}

.dactylo .cockpit-center {
  flex: 1;
  justify-content: center;
}

.dactylo .cockpit-right {
  flex: 0 0 auto;
}

.dactylo .cockpit-title {
  font-family: var(--fd);
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.1em;
}
.dactylo .cockpit-title small {
  font-size: 0.7rem;
  color: var(--dim);
  display: block;
}

.dactylo .progress-bar {
  font-family: var(--fm);
  font-size: 0.8rem;
  color: var(--text2);
  letter-spacing: 0.05em;
}

.dactylo .btn-icon {
  font-family: var(--fm);
  font-size: 0.8rem;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.dactylo .btn-icon:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ══════════════════════════════════════
   MAIN CONTENT AREA
   ══════════════════════════════════════ */
.dactylo .orion-container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: calc(var(--nav-height) + 64px) 1.5rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: none;
  z-index: 100;
  box-sizing: border-box;
}
.dactylo .orion-container.visible {
  display: block;
}

/* ══════════════════════════════════════
   DASHBOARD MODULE MAP
   ══════════════════════════════════════ */
.dactylo #module-map { margin-bottom: 2rem; }

/* Santé globale */
.dactylo .dash-health {
  display: flex; align-items: center; gap: 1rem;
  background: #060b14; border: 1px solid #1a2535; border-radius: 6px;
  padding: 0.75rem 1.25rem; margin-bottom: 1rem;
}
.dactylo .health-label { font-family:var(--fm); font-size:0.7rem; color:var(--dim); letter-spacing:.1em; white-space:nowrap; }
.dactylo .health-bar-wrap { flex:1; height:6px; background:#111d2e; border-radius:3px; overflow:hidden; }
.dactylo .health-bar-fill { height:100%; background:linear-gradient(90deg,#ff2d2d 0%,var(--amber) 50%,var(--green) 100%); border-radius:3px; transition:width 1.2s ease; }
.dactylo .health-count { font-family:var(--fm); font-size:0.7rem; color:var(--text2); white-space:nowrap; }

/* Grille des panneaux */
.dactylo .dash-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  grid-auto-flow: dense;
  gap: 0.6rem;
  width: 100%;
}

/* Panneau individuel */
.dactylo .dash-panel {
  width: 100%;
  background: #060b14;
  border: 1px solid #1a2535;
  border-radius: 5px;
  padding: 0.75rem;
  cursor: not-allowed;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
  user-select: none;
  min-width: 0;
}
.dactylo .dash-panel.available {
  border-color: rgba(255,45,45,0.7);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,45,45,0.12);
}
.dactylo .dash-panel.available:hover { box-shadow: 0 0 18px rgba(255,45,45,0.25); }
.dactylo .dash-panel.online {
  border-color: rgba(57,255,20,0.5);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(57,255,20,0.08);
}
.dactylo .dash-panel.online:hover { box-shadow: 0 0 16px rgba(57,255,20,0.18); }
.dactylo .dash-panel.locked { opacity: 0.38; }

/* En-tête panneau */
.dactylo .dash-header { display:flex; align-items:center; gap:5px; margin-bottom:0.4rem; }
.dactylo .dash-led {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: #1a2535;
}
.dactylo .dash-panel.locked  .dash-led { background: #1a2535; }
.dactylo .dash-panel.available .dash-led { background: #ff2d2d; animation: led-alarm 0.55s infinite; box-shadow: 0 0 5px #ff2d2d; }
.dactylo .dash-panel.online  .dash-led { background: var(--green); box-shadow: 0 0 6px var(--green); }
@keyframes led-alarm { 0%,49%{opacity:1} 50%,100%{opacity:0.1} }

.dactylo .dash-id { font-family:var(--fm); font-size:0.58rem; color:var(--dim); letter-spacing:.1em; }

/* VU-mètre */
.dactylo .dash-vu {
  display: flex; align-items: flex-end; gap: 2px;
  height: 28px; padding: 0 1px;
  background: #030608; border-radius: 2px;
  margin: 0.45rem 0;
}
.dactylo .vu-bar { flex:1; border-radius:1px 1px 0 0; min-height:2px; }

/* Locked : static */
.dactylo .dash-panel.locked .vu-bar { background:#111d2e; height:15%; }

/* Available : VU-mètre chaos rouge */
.dactylo .dash-panel.available .vu-bar { background:#cc1111; }
.dactylo .dash-panel.available .vu-bar:nth-child(1) { animation: vub1 .28s infinite; }
.dactylo .dash-panel.available .vu-bar:nth-child(2) { animation: vub2 .28s infinite .04s; }
.dactylo .dash-panel.available .vu-bar:nth-child(3) { animation: vub3 .28s infinite .09s; }
.dactylo .dash-panel.available .vu-bar:nth-child(4) { animation: vub4 .28s infinite .14s; }
.dactylo .dash-panel.available .vu-bar:nth-child(5) { animation: vub5 .28s infinite .18s; }

/* Online : VU-mètre calme vert */
.dactylo .dash-panel.online .vu-bar { background: var(--green); }
.dactylo .dash-panel.online .vu-bar:nth-child(1) { animation: vustable 2.1s infinite; height:22%; }
.dactylo .dash-panel.online .vu-bar:nth-child(2) { animation: vustable 1.9s infinite .4s; height:18%; }
.dactylo .dash-panel.online .vu-bar:nth-child(3) { animation: vustable 2.3s infinite .2s; height:26%; }
.dactylo .dash-panel.online .vu-bar:nth-child(4) { animation: vustable 2s   infinite .6s; height:20%; }
.dactylo .dash-panel.online .vu-bar:nth-child(5) { animation: vustable 2.4s infinite .1s; height:24%; }

@keyframes vub1 { 0%{height:18%} 25%{height:92%} 50%{height:38%} 75%{height:78%} }
@keyframes vub2 { 0%{height:62%} 25%{height:12%} 50%{height:96%} 75%{height:35%} }
@keyframes vub3 { 0%{height:38%} 25%{height:82%} 50%{height:18%} 75%{height:72%} }
@keyframes vub4 { 0%{height:78%} 25%{height:28%} 50%{height:72%} 75%{height:14%} }
@keyframes vub5 { 0%{height:28%} 25%{height:68%} 50%{height:44%} 75%{height:92%} }
@keyframes vustable { 0%,100%{height:18%} 50%{height:28%} }

/* Nom + statut */
.dactylo .dash-name {
  font-family: var(--fm); font-size: 0.68rem; font-weight:600;
  line-height:1.3; margin-bottom:0.25rem;
  color: var(--text2);
}
.dactylo .dash-panel.available .dash-name { color: #ff6666; }
.dactylo .dash-panel.online    .dash-name { color: var(--green); }

.dactylo .dash-status { font-family:var(--fm); font-size:0.58rem; letter-spacing:.09em; margin-bottom:0.5rem; }
.dactylo .dash-panel.locked   .dash-status { color:var(--dim); }
.dactylo .dash-panel.available .dash-status { color:#ff2d2d; }
.dactylo .dash-panel.online   .dash-status { color:var(--green); }

.dactylo .dash-btn {
  width:100%; padding: 0.3rem 0.25rem;
  font-family:var(--fm); font-size:0.6rem; letter-spacing:.07em;
  border-radius:3px; border:1px solid; cursor:pointer;
  background:transparent; transition:background 0.2s;
}
.dactylo .dash-panel.available .dash-btn { border-color:#ff2d2d; color:#ff2d2d; }
.dactylo .dash-panel.available .dash-btn:hover { background:rgba(255,45,45,0.12); }
.dactylo .dash-panel.online    .dash-btn { border-color:var(--green); color:var(--green); }
.dactylo .dash-panel.online    .dash-btn:hover { background:rgba(57,255,20,0.08); }

.dactylo .module-number {
  font-family: var(--fd);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--dim);
  margin-bottom: 0.5rem;
}

.dactylo .module-name {
  font-family: var(--fm);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.dactylo .module-status {
  font-family: var(--fm);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  display: inline-block;
}
.dactylo .module-status.offline {
  background: rgba(255, 77, 79, 0.1);
  color: #ff4d4f;
}
.dactylo .module-status.available {
  background: rgba(255, 179, 71, 0.1);
  color: var(--amber);
}
.dactylo .module-status.online {
  background: rgba(57, 255, 20, 0.1);
  color: var(--green);
}

/* ══════════════════════════════════════
   ACTIVE MODULE VIEW
   ══════════════════════════════════════ */
.dactylo .module-active {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  display: none;
}
.dactylo .module-active.visible {
  display: block;
}

.dactylo .aria-dialogue {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: rgba(0, 229, 255, 0.06);
  border-left: 3px solid var(--cyan);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 4px;
  font-family: var(--fm);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  min-height: 60px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dactylo .module-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 300px;
  margin: 2rem 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dactylo .module-active, .dactylo .module-active * {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dactylo .module-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.dactylo .btn-nav {
  font-family: var(--fm);
  font-size: 0.85rem;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.dactylo .btn-nav:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.dactylo .btn-next-module {
  font-family: var(--fd);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}
.dactylo .btn-next-module:hover {
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   MISSION COMPLETE OVERLAY
   ══════════════════════════════════════ */
.dactylo .mission-complete {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10001;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
  text-align: center;
  overflow-y: auto;
}
.dactylo .mission-complete.visible {
  display: flex;
}

.dactylo .mission-complete-title {
  font-family: var(--fd);
  font-size: 4rem;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(57, 255, 20, 0.8);
}

.dactylo .mission-complete-text {
  font-family: var(--fm);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.8;
}

.dactylo .mission-systems-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  max-width: 700px;
}

.dactylo .system-item {
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid var(--green);
  padding: 1rem;
  border-radius: var(--radius);
  font-family: var(--fm);
  font-size: 0.8rem;
  color: var(--green);
}

.dactylo .mission-complete-btn {
  font-family: var(--fd);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--green);
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition);
}
.dactylo .mission-complete-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}

/* ══════════════════════════════════════
   EXERCISE STYLES (from clavier.php)
   ══════════════════════════════════════ */
.dactylo .theorie-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.dactylo .theorie-content h2 {
  font-family: var(--fd);
  font-size: 1.5rem;
  color: var(--amber);
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--amber);
}
.dactylo .theorie-content h3 {
  font-family: var(--fd);
  font-size: 1.1rem;
  color: var(--cyan);
  margin: 1.5rem 0 0.75rem;
}
.dactylo .theorie-content p {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.dactylo .theorie-content p em {
  color: var(--green);
  font-style: normal;
  font-weight: 600;
}
.dactylo .theorie-content strong {
  color: var(--text);
}
.dactylo .theorie-content ul, .dactylo .theorie-content ol {
  padding-left: 1.75rem;
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1rem;
}
.dactylo .theorie-content li::marker {
  color: var(--amber);
}
.dactylo .theorie-content .callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--cyan);
  background: rgba(0, 229, 255, 0.06);
  margin: 1.25rem 0;
  font-size: 0.95rem;
  color: var(--text2);
}
.dactylo .theorie-content .callout.warn {
  border-color: var(--amber);
  background: rgba(255, 179, 71, 0.06);
}
.dactylo .theorie-content .callout.good {
  border-color: var(--green);
  background: rgba(57, 255, 20, 0.06);
}
.dactylo .callout-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Frappe exercise */
.dactylo .frappe-container {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.dactylo .frappe-instructions {
  font-family: var(--fm);
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.dactylo .frappe-cible {
  font-family: var(--fm);
  font-size: 2rem;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: 2rem;
  word-break: break-all;
  user-select: none;
  -webkit-user-select: none;
}
.dactylo .frappe-container, .dactylo .theorie-content {
  user-select: none;
  -webkit-user-select: none;
}
.dactylo .frappe-chars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.dactylo .frappe-char {
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fm);
  font-size: 1rem;
  color: var(--text2);
  transition: var(--transition);
  font-weight: 600;
}
.dactylo .frappe-char.active {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}
.dactylo .frappe-char.correct {
  border-color: var(--green);
  background: rgba(57, 255, 20, 0.15);
  color: var(--green);
}
.dactylo .frappe-char.wrong {
  border-color: #ff4d4f;
  background: rgba(255, 77, 79, 0.15);
  color: #ff4d4f;
}
.dactylo .frappe-hint {
  font-family: var(--fm);
  font-size: 0.8rem;
  color: var(--dim);
}

/* Input & Button (deadkey) */
.dactylo .deadkey-input {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  min-width: 260px;
  font-size: 1.1rem;
  outline: none;
  transition: var(--transition);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  font-family: var(--fm);
}
.dactylo .deadkey-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.15);
}
.dactylo .deadkey-input.success {
  border-color: var(--green);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.55);
}
.dactylo .deadkey-input.error {
  border-color: #ff4d4f;
  box-shadow: 0 0 18px rgba(255, 77, 79, 0.45);
}

.dactylo .deadkey-btn {
  background: linear-gradient(135deg, var(--amber), #ff8a00);
  color: #111;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--fm);
}
.dactylo .deadkey-btn:hover {
  transform: translateY(-1px);
}

/* QCM */
.dactylo .qcm-question {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.dactylo .qcm-q-text {
  font-family: var(--fm);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 600;
}
.dactylo .qcm-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.dactylo .qcm-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg2);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  color: var(--text2);
}
.dactylo .qcm-option:hover {
  border-color: var(--amber);
  background: rgba(255, 179, 71, 0.05);
}
.dactylo .qcm-option.selected {
  border-color: var(--green);
  background: rgba(57, 255, 20, 0.08);
  color: var(--text);
}
.dactylo .qcm-radio {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
}
.dactylo .qcm-option.selected .qcm-radio {
  border-color: var(--green);
  background: var(--green);
}

/* Après validation : bonne réponse */
.dactylo .qcm-option.qcm-correct {
  border-color: var(--green);
  background: rgba(57, 255, 20, 0.10);
  color: var(--text);
}
.dactylo .qcm-option.qcm-correct .qcm-radio {
  border-color: var(--green);
  background: var(--green);
}

/* Après validation : mauvaise réponse sélectionnée */
.dactylo .qcm-option.qcm-wrong {
  border-color: var(--pink);
  background: rgba(255, 45, 110, 0.10);
  color: var(--text);
}
.dactylo .qcm-option.qcm-wrong .qcm-radio {
  border-color: var(--pink);
  background: var(--pink);
}

.dactylo .btn-valider-qcm {
  font-family: var(--fd);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--bg);
  background: var(--amber);
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  display: block;
  margin: 2rem auto 0;
}
.dactylo .btn-valider-qcm:hover {
  box-shadow: 0 0 15px rgba(255, 179, 71, 0.4);
  transform: translateY(-2px);
}

/* Messages */
.dactylo .jeu-msg {
  font-family: var(--fm);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  display: none;
}
.dactylo .jeu-msg.ok {
  display: block;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid var(--green);
  color: var(--green);
}
.dactylo .jeu-msg.error {
  display: block;
  background: rgba(255, 45, 110, 0.08);
  border: 1px solid var(--pink);
  color: var(--pink);
}

/* Drag & Drop (N3) */
.dactylo .drag-item {
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: grab;
  transition: var(--transition);
  font-family: var(--fm);
  font-size: 0.95rem;
  color: var(--text);
  text-align: center;
}
.dactylo .drag-item.touch-selected {
  border-color: var(--amber);
  box-shadow: 0 0 15px rgba(255, 179, 71, 0.3);
}
.dactylo .drag-item.dragging {
  opacity: 0.5;
}

.dactylo .drop-zone {
  background: var(--bg3);
  border: 2px dashed var(--dim);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: var(--fm);
  font-size: 0.9rem;
  color: var(--dim);
  text-align: center;
}
.dactylo .drop-zone.drag-over {
  border-color: var(--amber);
  background: rgba(255, 179, 71, 0.06);
}
.dactylo .drop-zone.tap-ready {
  border-color: var(--amber);
  background: rgba(255, 179, 71, 0.06);
}
.dactylo .drop-zone.correct {
  border-color: var(--green);
  background: rgba(57, 255, 20, 0.08);
  color: var(--green);
}
.dactylo .drop-zone.wrong {
  border-color: #ff4d4f;
  background: rgba(255, 77, 79, 0.08);
  color: #ff4d4f;
}

@media (max-width: 768px) {
  .dactylo .orion-logo { font-size: 2.2rem; }
  .dactylo .aria-box { max-width: 100%; font-size: 0.9rem; padding: 1rem 1.25rem; }
  .dactylo #module-map .dash-board { grid-template-columns: 1fr; }
  .dactylo .cockpit-flex { flex-direction: column; align-items: stretch; }
  .dactylo .cockpit-left, .dactylo .cockpit-center, .dactylo .cockpit-right { justify-content: center; }
  .dactylo .deadkey-input { min-width: 200px; }
}

/* ══════════════════════════════════════
   CENTRAGE VERTICAL — wrapper unique avec margin:auto
   ══════════════════════════════════════ */
.dactylo .screen-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: auto;      /* distribue l'espace restant en haut et en bas */
  padding: 2rem 0;
}

/* ══════════════════════════════════════
   PANEL SIZES
   ══════════════════════════════════════ */
.dactylo .dash-panel.sz-md { grid-column: span 2; }
.dactylo .dash-panel.sz-lg { grid-column: span 2; }

/* ══════════════════════════════════════
   LOCKED = en détresse (dimmer mais visible)
   ══════════════════════════════════════ */
.dactylo .dash-panel.locked { opacity: 0.62; cursor: pointer; }
.dactylo .dash-panel.locked .dash-led { background: #aa1111; animation: led-alarm 1.2s infinite; box-shadow: 0 0 3px #aa1111; }
.dactylo .dash-panel.locked .vu-bar { background: #661111; }
.dactylo .dash-panel.locked .vu-bar:nth-child(1) { animation: vub1 .9s infinite; }
.dactylo .dash-panel.locked .vu-bar:nth-child(2) { animation: vub2 .9s infinite .12s; }
.dactylo .dash-panel.locked .vu-bar:nth-child(3) { animation: vub3 .9s infinite .28s; }
.dactylo .dash-panel.locked .vu-bar:nth-child(4) { animation: vub4 .9s infinite .40s; }
.dactylo .dash-panel.locked .vu-bar:nth-child(5) { animation: vub5 .9s infinite .55s; }

/* ══════════════════════════════════════
   OSCILLOSCOPE
   ══════════════════════════════════════ */
.dactylo .dash-osc { margin: 0.45rem 0; border-radius: 2px; overflow: hidden; }
.dactylo .osc-svg { display: block; }
.dactylo .osc-path { fill: none; stroke-width: 1.8; }
/* locked  — onde lente, rouge sombre */
.dactylo .osc-path.locked { stroke: #882222; animation: osc-scroll 2s linear infinite; }
/* available — onde rapide, rouge vif */
.dactylo .osc-path.available { stroke: #ff3333; animation: osc-scroll .55s linear infinite; }
/* online  — onde calme, verte */
.dactylo .osc-path.online { stroke: var(--green); stroke-width:1.4; animation: osc-scroll-slow 3s linear infinite; }
@keyframes osc-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(36px); }
}
@keyframes osc-scroll-slow {
  from { transform: translateX(0); }
  to   { transform: translateX(36px); }
}

/* ══════════════════════════════════════
   RADAR
   ══════════════════════════════════════ */
.dactylo .dash-radar { margin: 0.35rem 0; }
.dactylo .radar-svg { display: block; }
.dactylo .radar-ring { fill: none; stroke: #1a2535; stroke-width: 0.8; }
.dactylo .radar-sweep {
  stroke: #ff2d2d; stroke-width: 1.5; stroke-linecap: round;
  transform-origin: 24px 24px;
  transform-box: fill-box;
}
.dactylo .radar-svg.locked   .radar-sweep { stroke: #881111; animation: radar-spin 3s linear infinite; }
.dactylo .radar-svg.available .radar-sweep { stroke: #ff2d2d; animation: radar-spin 1.2s linear infinite; }
.dactylo .radar-svg.online   .radar-sweep { stroke: var(--green); animation: radar-spin 4s linear infinite; }
.dactylo .radar-dot { fill: var(--amber); }
.dactylo .radar-svg.locked    .radar-dot { fill: #441111; animation: radar-blink 1.5s infinite; }
.dactylo .radar-svg.available .radar-dot { fill: #ff6666; animation: radar-blink .55s infinite; }
.dactylo .radar-svg.online    .radar-dot { fill: var(--green); animation: none; }
@keyframes radar-spin  { to { transform: rotate(360deg); } }
@keyframes radar-blink { 0%,49%{opacity:1} 50%,100%{opacity:0.2} }

/* ══════════════════════════════════════
   TEMPERATURE
   ══════════════════════════════════════ */
.dactylo .dash-temp {
  display: flex; align-items: center; gap: 6px;
  margin: 0.45rem 0; height: 30px;
}
.dactylo .temp-track {
  flex: 1; height: 100%; background: #030608; border-radius: 2px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.dactylo .temp-fill {
  width: 100%; border-radius: 2px; transition: height 0.3s;
}
.dactylo .temp-fill.locked { height: 55%; background: linear-gradient(0deg,#661111,#993311); animation: temp-pulse 1.8s ease-in-out infinite; }
.dactylo .temp-fill.available { height: 85%; background: linear-gradient(0deg,#cc1111,#ff6600); animation: temp-pulse .5s ease-in-out infinite; }
.dactylo .temp-fill.online { height: 28%; background: linear-gradient(0deg,#1a7a30,var(--green)); animation: temp-stable 3s ease-in-out infinite; }
@keyframes temp-pulse  { 0%,100%{height:70%} 50%{height:95%} }
@keyframes temp-stable { 0%,100%{height:24%} 50%{height:32%} }
.temp-label { font-family:var(--fm); font-size:0.55rem; color:var(--dim); white-space:nowrap; }

/* ══════════════════════════════════════
   FREQUENCY SPECTRUM
   ══════════════════════════════════════ */
.dactylo .dash-freq {
  display: flex; align-items: flex-end; gap: 1px;
  height: 32px; padding: 0 1px;
  background: #030608; border-radius: 2px;
  margin: 0.45rem 0;
}
.dactylo .freq-bar { flex:1; border-radius: 1px 1px 0 0; min-height: 2px; }
.dactylo .dash-freq.locked    .freq-bar { background: #661111; }
.dactylo .dash-freq.locked    .freq-bar.bar-1 { animation: frq1 1.1s infinite; }
.dactylo .dash-freq.locked    .freq-bar.bar-2 { animation: frq2 1.1s infinite .08s; }
.dactylo .dash-freq.locked    .freq-bar.bar-3 { animation: frq3 1.1s infinite .18s; }
.dactylo .dash-freq.locked    .freq-bar.bar-4 { animation: frq4 1.1s infinite .26s; }
.dactylo .dash-freq.locked    .freq-bar.bar-5 { animation: frq5 1.1s infinite .34s; }
.dactylo .dash-freq.locked    .freq-bar.bar-6 { animation: frq1 1.1s infinite .42s; }
.dactylo .dash-freq.locked    .freq-bar.bar-7 { animation: frq3 1.1s infinite .50s; }
.dactylo .dash-freq.locked    .freq-bar.bar-8 { animation: frq2 1.1s infinite .58s; }
.dactylo .dash-freq.available .freq-bar { background: #dd2211; }
.dactylo .dash-freq.available .freq-bar.bar-1 { animation: frq1 .26s infinite; }
.dactylo .dash-freq.available .freq-bar.bar-2 { animation: frq2 .26s infinite .03s; }
.dactylo .dash-freq.available .freq-bar.bar-3 { animation: frq3 .26s infinite .07s; }
.dactylo .dash-freq.available .freq-bar.bar-4 { animation: frq4 .26s infinite .10s; }
.dactylo .dash-freq.available .freq-bar.bar-5 { animation: frq5 .26s infinite .14s; }
.dactylo .dash-freq.available .freq-bar.bar-6 { animation: frq1 .26s infinite .17s; }
.dactylo .dash-freq.available .freq-bar.bar-7 { animation: frq3 .26s infinite .21s; }
.dactylo .dash-freq.available .freq-bar.bar-8 { animation: frq2 .26s infinite .24s; }
.dactylo .dash-freq.online    .freq-bar { background: var(--green); }
.dactylo .dash-freq.online    .freq-bar.bar-1 { animation: frqstable 2.4s infinite; height:22%; }
.dactylo .dash-freq.online    .freq-bar.bar-2 { animation: frqstable 2.0s infinite .3s; height:16%; }
.dactylo .dash-freq.online    .freq-bar.bar-3 { animation: frqstable 2.6s infinite .1s; height:30%; }
.dactylo .dash-freq.online    .freq-bar.bar-4 { animation: frqstable 1.8s infinite .5s; height:18%; }
.dactylo .dash-freq.online    .freq-bar.bar-5 { animation: frqstable 2.2s infinite .2s; height:26%; }
.dactylo .dash-freq.online    .freq-bar.bar-6 { animation: frqstable 2.1s infinite .4s; height:14%; }
.dactylo .dash-freq.online    .freq-bar.bar-7 { animation: frqstable 2.5s infinite .6s; height:20%; }
.dactylo .dash-freq.online    .freq-bar.bar-8 { animation: frqstable 1.9s infinite .1s; height:24%; }
@keyframes frq1 { 0%{height:15%}25%{height:88%}50%{height:32%}75%{height:72%} }
@keyframes frq2 { 0%{height:55%}25%{height:10%}50%{height:90%}75%{height:28%} }
@keyframes frq3 { 0%{height:30%}25%{height:75%}50%{height:12%}75%{height:65%} }
@keyframes frq4 { 0%{height:70%}25%{height:22%}50%{height:65%}75%{height:10%} }
@keyframes frq5 { 0%{height:20%}25%{height:62%}50%{height:40%}75%{height:85%} }
@keyframes frqstable { 0%,100%{height:15%} 50%{height:25%} }

/* ══════════════════════════════════════
   SKIP INTRO BUTTON
   ══════════════════════════════════════ */
.dactylo #btn-skip-intro {
  position: fixed;
  top: calc(var(--nav-height) + 1rem);
  right: 1.2rem;
  z-index: 10001;
  display: none;
  font-family: var(--fm);
  font-size: 0.72rem;
  color: var(--dim);
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: color 0.2s, border-color 0.2s;
}
.dactylo #btn-skip-intro:hover { color: var(--text2); border-color: rgba(255,255,255,0.25); }
.dactylo #btn-skip-intro.visible { display: block; }

/* ══════════════════════════════════════
   SONAR
   ══════════════════════════════════════ */
.dactylo .dash-sonar { margin: 0.35rem 0; }
.dactylo .sonar-svg { display: block; }
/* Anneaux statiques */
.dactylo .sonar-ring { fill: none; stroke: #1a2535; stroke-width: 0.7; }
/* Point central */
.dactylo .sonar-dot { }
.dactylo .sonar-svg.locked    .sonar-dot { fill: #661111; }
.dactylo .sonar-svg.available .sonar-dot { fill: #ff2d2d; animation: radar-blink .4s infinite; }
.dactylo .sonar-svg.online    .sonar-dot { fill: var(--green); }
/* Blips */
.dactylo .sonar-blip { }
.dactylo .sonar-svg.locked    .sonar-blip { fill: #441111; animation: radar-blink 1.4s infinite; }
.dactylo .sonar-svg.available .sonar-blip { fill: #ff6666; animation: radar-blink .5s infinite; }
.dactylo .sonar-svg.online    .sonar-blip { fill: var(--green); opacity: 0.7; animation: none; }
/* Ping ring — CSS r property pour animer le rayon */
.dactylo .sonar-ping { fill: none; stroke-width: 1.2; transform-origin: 24px 24px; transform-box: fill-box; }
.dactylo .sonar-svg.locked    .sonar-ping { stroke: #881111; animation: sonar-ping 2.2s ease-out infinite; }
.dactylo .sonar-svg.available .sonar-ping { stroke: #ff2d2d; animation: sonar-ping .9s ease-out infinite; }
.dactylo .sonar-svg.available .sonar-ping.p2 { animation-delay: .3s; }
.dactylo .sonar-svg.available .sonar-ping.p3 { animation-delay: .6s; }
.dactylo .sonar-svg.locked    .sonar-ping.p2 { animation-delay: .7s; }
.dactylo .sonar-svg.locked    .sonar-ping.p3 { animation-delay: 1.4s; }
.dactylo .sonar-svg.online    .sonar-ping { stroke: var(--green); animation: sonar-ping 3s ease-out infinite; }
.dactylo .sonar-svg.online    .sonar-ping.p2 { animation-delay: 1s; }
.dactylo .sonar-svg.online    .sonar-ping.p3 { animation-delay: 2s; }
@keyframes sonar-ping { 0%{r:2;opacity:0.9} 100%{r:21;opacity:0} }

/* ══════════════════════════════════════
   EKG (MONITEUR CARDIAQUE)
   ══════════════════════════════════════ */
.dactylo .dash-ekg { margin: 0.35rem 0; overflow: hidden; border-radius: 2px; background: #030608; }
.dactylo .ekg-svg { display: block; overflow: hidden; }
.dactylo .ekg-g { }
/* Le path : M-90,14 -> on démarre hors cadre à gauche, on scroll de 90px */
/* Période 90px : flat + spike */
.dactylo .ekg-path { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dactylo .ekg-svg.locked    .ekg-g { animation: ekg-scroll 2.8s linear infinite; }
.dactylo .ekg-svg.locked    .ekg-path { stroke: #661111; }
.dactylo .ekg-svg.available .ekg-g { animation: ekg-scroll 0.9s linear infinite; }
.dactylo .ekg-svg.available .ekg-path { stroke: #ff2d2d; }
.dactylo .ekg-svg.online    .ekg-g { animation: ekg-scroll 2.2s linear infinite; }
.dactylo .ekg-svg.online    .ekg-path { stroke: var(--green); }
@keyframes ekg-scroll { from{transform:translateX(0)} to{transform:translateX(90px)} }
/* Glow pulse sur le dot de fin */
.dactylo .ekg-dot { r: 2; }
.dactylo .ekg-svg.available .ekg-dot { fill: #ff2d2d; animation: ekg-dot-pulse .9s ease-in-out infinite; }
.dactylo .ekg-svg.locked    .ekg-dot { fill: #661111; animation: ekg-dot-pulse 2.8s ease-in-out infinite; }
.dactylo .ekg-svg.online    .ekg-dot { fill: var(--green); animation: ekg-dot-pulse 2.2s ease-in-out infinite; }
@keyframes ekg-dot-pulse { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* ══════════════════════════════════════
   HEX DUMP (texte hexadécimal qui scroll)
   ══════════════════════════════════════ */
.dactylo .dash-hex {
  margin: 0.35rem 0; overflow: hidden; height: 32px;
  background: #030608; border-radius: 2px;
  font-family: var(--fm); font-size: 0.55rem; line-height: 1.5;
  letter-spacing: 0.04em; position: relative;
}
.dactylo .hex-scroll {
  white-space: nowrap;
  position: absolute; top: 50%; transform: translateY(-50%);
}
.dactylo .dash-hex.locked    .hex-scroll { color: #661111; animation: hex-run 4s linear infinite; }
.dactylo .dash-hex.available .hex-scroll { color: #dd2211; animation: hex-run 1.2s linear infinite; }
.dactylo .dash-hex.online    .hex-scroll { color: var(--green); animation: hex-run 3s linear infinite; }
@keyframes hex-run { from{left:0} to{left:-50%} }

/* ── MATRIX RAIN ── */
.dactylo .dash-matrix {
  margin: 0.35rem 0;
  height: 44px; background: #030608; border-radius: 2px;
  overflow: hidden; display: flex; gap: 2px; padding: 0 3px;
}
.dactylo .mtx-col {
  flex: 1; overflow: hidden;
  font-family: var(--fm); font-size: 7px; line-height: 1.28;
  color: #39ff14; white-space: pre;
  writing-mode: vertical-lr; text-orientation: mixed;
  animation: mtx-fall linear infinite;
}
.dactylo .mtx-col.dim { color: #1a6e0a; }
.dactylo .mtx-col.hot { color: #ccffcc; text-shadow: 0 0 4px #39ff14; }
.dactylo .dash-matrix.locked .mtx-col { color: #2a1a00; }
.dactylo .dash-matrix.locked .mtx-col.hot { color: #4a2a00; text-shadow: none; }
.dactylo .dash-matrix.available .mtx-col { color: #993300; }
.dactylo .dash-matrix.available .mtx-col.hot { color: #ff6600; text-shadow: 0 0 4px #ff4400; }
@keyframes mtx-fall { 0% { transform: translateY(-62%); } 100% { transform: translateY(38%); } }

/* ══════════════════════════════════════
   TOAST NOTIFICATION
   ══════════════════════════════════════ */
.dactylo #map-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20,10,0,0.95);
  border: 1px solid #ff6600;
  color: #ff9944;
  font-family: var(--fm);
  font-size: 0.82rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  z-index: 10002;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  white-space: normal;
  text-align: center;
}
.dactylo #map-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
