/* EduFabTech — game-slide.css  (Slide out; classes prefixed gm-slide-) */
.gm-slide-box { width: min(560px, 100%); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gm-slide-status {
  width: 100%; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 14px; color: var(--text);
  padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.gm-slide-time { color: var(--muted); }
.gm-slide-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gm-slide-frame { position: relative; width: 100%; margin: 0 auto; user-select: none; -webkit-user-select: none; }
.gm-slide-board {
  position: absolute; border-radius: var(--radius-sm); touch-action: none;
  background-color: #1a1510;
  background-image: linear-gradient(#0e0b07 2px, transparent 2px), linear-gradient(90deg, #0e0b07 2px, transparent 2px);
  box-shadow: 0 0 0 6px #3a2a1a, 0 0 0 7px var(--border);
}

/* gates: a coloured tab on the edge, letter + pointer outwards */
.gm-slide-gate {
  position: absolute; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  background: var(--gm-slide-col); color: #10131a; font: 700 12px/1 var(--sans);
}
.gm-slide-gate-top { border-radius: 8px 8px 2px 2px; padding-bottom: 4px; clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); }
.gm-slide-gate-bottom { border-radius: 2px 2px 8px 8px; padding-top: 4px; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.gm-slide-gate-left { border-radius: 8px 2px 2px 8px; padding-right: 2px; clip-path: polygon(0 50%, 45% 0, 100% 0, 100% 100%, 45% 100%); }
.gm-slide-gate-right { border-radius: 2px 8px 8px 2px; padding-left: 2px; clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%); }

.gm-slide-block {
  position: absolute; display: block; margin: 0; padding: 0; border: 0; background: none; color: inherit;
  pointer-events: none; cursor: grab; outline: none; z-index: 1;
}
.gm-slide-block .gm-slide-cell {
  position: absolute; box-sizing: border-box; pointer-events: auto; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  font: 700 clamp(13px, 4.2vw, 20px)/1 var(--sans); color: #10131a;
}
.gm-slide-block .gm-slide-cell::before {
  content: ''; position: absolute; inset: 3%; border-radius: 22%; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 45%, rgba(0,0,0,.18)), var(--gm-slide-col);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}
/* cells of one block join up (no gap, square corners where they meet) */
.gm-slide-block .gm-slide-jt::before { top: -1px; border-top-left-radius: 0; border-top-right-radius: 0; }
.gm-slide-block .gm-slide-jb::before { bottom: -1px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.gm-slide-block .gm-slide-jl::before { left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.gm-slide-block .gm-slide-jr::before { right: -1px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.gm-slide-block .gm-slide-jb::before { box-shadow: none; }
.gm-slide-obstacle { cursor: default; z-index: 0; }
.gm-slide-obstacle .gm-slide-cell { pointer-events: none; }
.gm-slide-obstacle .gm-slide-cell::before {
  background: repeating-linear-gradient(135deg, #6e6e7a 0 7px, #474753 7px 12px);
}
.gm-slide-dragging { z-index: 3; cursor: grabbing; }
.gm-slide-dragging .gm-slide-cell::before { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 6px 10px rgba(0, 0, 0, .45); }
.gm-slide-block:focus-visible { z-index: 2; outline: none; }
.gm-slide-block:focus-visible .gm-slide-cell::before { box-shadow: 0 0 0 3px var(--brand), 0 3px 0 rgba(0, 0, 0, .35); }
.gm-slide-leaving { z-index: 4; transition: transform .25s ease-in, opacity .25s ease-in; opacity: 0; }

.gm-slide-bar { width: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.gm-slide-btn {
  font: 600 14px/1 var(--sans); color: var(--text); background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 16px; min-height: 40px; cursor: pointer;
}
.gm-slide-btn:hover:not(:disabled) { border-color: var(--brand); }
.gm-slide-btn:disabled { opacity: .45; cursor: default; }
.gm-slide-par { font-size: 13px; color: var(--muted); margin-left: auto; }
.gm-slide-help { margin: 0; font-size: 13px; color: var(--muted); text-align: center; max-width: 46ch; }

@media (max-width: 420px) {
  .gm-slide-par { margin-left: 0; width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-slide-leaving { transition: none; }
}
