/* ==========================================================================
   Minogolem-specific UI
   ========================================================================== */
:root{
  --sidebar-width:360px;
}

.prediction-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:6px;
}
.slot{
  background:#0b1220;
  border:1px solid #333;
  padding:10px;
  text-align:center;
  cursor:pointer;
  border-radius:10px;
  transition:border-color .15s ease, box-shadow .15s ease, transform .08s ease, background .15s ease, opacity .15s ease;
}
.slot:hover{transform:translateY(-1px)}
.slot.active{
  border-color:#22c55e;
  box-shadow:0 0 0 2px rgba(34,197,94,.25);
  background:#101a2c;
}
.slot.flash{box-shadow:0 0 0 3px rgba(59,130,246,.35)}
.slot.fixed{
  opacity:.35;
  cursor:not-allowed;
  background:#05080f;
  border-color:#222;
}

.viewer-bar{
  display:flex;
  gap:8px;
  margin-bottom:8px;
  align-items:center;
  flex:0 0 auto;
}
.viewer-bar.centered{
  justify-content:center;
  align-items:center;
  gap:16px;
}
.viewer-row{display:none}
.viewer-legend-spacer{/* colonne fantôme pour s'aligner avec la légende */}

.canvas-row{
  flex:1 1 auto;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:12px;
}
.canvas-wrap{
  position:relative;
  min-height:0;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

.swatch{
  width:16px;
  height:16px;
  border-radius:4px;
  border:1px solid rgba(255,255,255,.15);
  flex:0 0 16px;
}
.toggle-row{display:flex;gap:12px;margin-top:8px}

#stepLabel{
  padding:6px 10px;
  background:#0b1220;
  border-radius:10px;
  color:#cbd5e1;
  font-size:14px;
}
.flash-btn{box-shadow:0 0 0 3px rgba(255,255,255,.18)}

.actions-box{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
}
.action-text{padding-top:3px}
.pred-buttons-row{
  margin-top:8px;
  display:flex;
  gap:8px;
  justify-content:center;
}
.play-row{
  margin-top:10px;
  display:flex;
  justify-content:center;
  gap:8px;
}
.action-btn{min-width:90px}
.action-btn-hidden{
  visibility:hidden;
  pointer-events:none;
}

/* Trigger only — popup box/text/image live in common.css (fixed) */
.tooltip-trigger{
  position:relative;
  display:inline-block;
  cursor:help;
  text-decoration:underline dotted;
}
.sidebar-panel{overflow:visible}

.board-shell{
  width:100%;
  height:100%;
  min-height:500px;
}
.board-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:20;
  width:128px;
  height:128px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:56px;
  font-weight:700;
  box-shadow:0 10px 28px rgba(0,0,0,.28);
}
.board-nav:hover,
.board-nav:active{transform:translateY(-50%)}
.board-nav.left{left:12px}
.board-nav.right{right:12px}

@media(max-width:900px){
  .app{grid-template-columns:1fr}
  .canvas-row{grid-template-columns:1fr}
}
