:root{
  --wm-gap: 12px;
  --wm-radius: 16px;
  --wm-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.wmaze-wrapper{
  max-width: 900px;
  margin: 0 auto;
  padding: 12px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  color: #121212;
}
.wmaze-topbar{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.wmaze-title{ font-size: clamp(18px, 2.6vw, 22px); }
.wmaze-info{ display: flex; gap: 12px; align-items: center; color: #333; }
.wmaze-info .sep{ opacity: .5; }
.wmaze-actions{ display:flex; gap:8px; }
.wmaze-btn{
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: var(--wm-shadow);
  cursor: pointer;
}
.wmaze-stage{
  position: relative;
  display: grid;
  place-items: center;
  background: #fafafa;
  border-radius: var(--wm-radius);
  box-shadow: var(--wm-shadow);
  padding: 10px;
}
#wmaze-canvas{
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  background: #fffdfa;
  border-radius: 10px;
}

.wmaze-cta{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.wmaze-cta.open{ opacity: 1; pointer-events: all; }
.wmaze-card{
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  min-width: min(420px, 90vw);
  box-shadow: var(--wm-shadow);
  text-align: center;
}

.wmaze-controls{
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: grid;
  grid-template-areas:
    ". up ."
    "left . right"
    ". down .";
  gap: 8px;
  opacity: 0.95;
}
.wmaze-arrow{
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: var(--wm-shadow);
  font-size: 22px;
  display: grid;
  place-items: center;
}
.wmaze-arrow.up{ grid-area: up; }
.wmaze-arrow.down{ grid-area: down; }
.wmaze-arrow.left{ grid-area: left; }
.wmaze-arrow.right{ grid-area: right; }

/* Solo mostrar controles en pantallas táctiles / móviles */
@media (hover: hover) and (pointer: fine){
  .wmaze-controls{ display: none; }
}

.wmaze-tip{
  font-size: 14px;
  color: #444;
  margin: 8px 0 0;
}