/* ===== B12 Ankermann CLM — canvas 1920x1080, auto-scale ===== */
html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  background: #ffffff;
  overflow: hidden;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

#stage {
  position: absolute;
  width: 1920px; height: 1080px;
  top: 50%; left: 50%;
  transform-origin: 0 0;
  animation: eda-fade .35s ease;
}
@keyframes eda-fade { from { opacity: 0; } to { opacity: 1; } }

#stage .bg {
  position: absolute; inset: 0;
  width: 1920px; height: 1080px;
  background-size: 1920px 1080px;
  background-repeat: no-repeat;
  z-index: 1;
}

/* mọi vùng có thể bấm/log phải nằm trên nền */
.clmLoging { z-index: 20; }

/* ---------- hotspot quiz ---------- */
.hotspot {
  position: absolute;
  cursor: pointer;
  border-radius: 70px;
  -webkit-tap-highlight-color: transparent;
}
.hotspot.quizfx { transition: box-shadow .25s ease; }
.hotspot.quizfx:hover { box-shadow: 0 0 55px 18px rgba(201, 16, 92, .45); }

.hotspot.linkfx { transition: box-shadow .25s ease; }
.hotspot.linkfx:hover { box-shadow: 0 0 55px 18px rgba(201, 16, 92, .55); }

/* ---------- nút home ---------- */
.home-btn {
  position: absolute;
  left: 30px; top: 26px;
  width: 132px; height: 128px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 60;
  -webkit-tap-highlight-color: transparent;
}
.home-btn svg { width: 100%; height: 100%; pointer-events: none; }

/* ---------- nav prev/next ---------- */
.nav-arrow {
  position: absolute;
  top: 50%; margin-top: -55px;
  width: 74px; height: 110px;
  cursor: pointer;
  opacity: .4;
  transition: opacity .2s;
  z-index: 50;
}
.nav-arrow:hover { opacity: .95; }
.nav-arrow svg { width: 100%; height: 100%; pointer-events: none; }
.nav-prev { left: 10px; }
.nav-next { right: 10px; }

/* ---------- hotspot glow loop 2s (nút 4x / ?) ---------- */
.pulse {
  position: absolute;
  border-radius: 50%;
  cursor: pointer;
  z-index: 40;
  -webkit-tap-highlight-color: transparent;
  animation: eda-pulse 2s ease-in-out infinite;
}
@keyframes eda-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 16, 92, 0); }
  50%      { box-shadow: 0 0 42px 16px rgba(201, 16, 92, .75); }
}
.pulse:hover {
  animation: none;
  box-shadow: 0 0 42px 16px rgba(201, 16, 92, .85);
}

/* ---------- drag & drop (trang 11) ---------- */
.chip {
  position: absolute;
  width: 734px; height: 135px;
  cursor: grab;
  touch-action: none;
  z-index: 25;
  transition: filter .2s;
}
.chip:active { cursor: grabbing; }
.chip.dragging { z-index: 30; filter: drop-shadow(0 10px 22px rgba(0,0,0,.35)); }
.chip.locked { cursor: default; }
.chip.return { transition: left .35s ease, top .35s ease, width .35s ease, height .35s ease; }
.chip img { width: 100%; height: 100%; display: block; pointer-events: none; }

.dropzone {
  position: absolute;
  border-radius: 20px;
  z-index: 10;
  transition: background .2s;
}
.dropzone.hover { background: rgba(201, 16, 92, .10); }
.dropzone.wrong { background: rgba(220, 30, 30, .18); }

.dd-hint {
  position: absolute;
  left: 0; right: 0; bottom: 60px;
  text-align: center;
  font-size: 30px; font-weight: 600;
  color: #c9105c;
  z-index: 15;
}
.dd-hint.err { color: #d21f1f; }

/* lớp element tách rời — không chặn thao tác chạm của hotspot */
.lay {
  position: absolute;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 5;
}

/* nút next của trang nối đáp án: chỉ hiện sau khi nối đúng */
.nav-arrow.nav-reveal { animation: nav-pop .45s ease both; }
@keyframes nav-pop {
  from { opacity: 0; transform: translateX(26px); }
  to   { opacity: .4; transform: none; }
}
