/* hunter.css — spot-the-difference. Two image panels reflow stacked (portrait)
   or side-by-side (landscape). Difference markers are positioned in % so they
   stay aligned at any panel size. */

.hunter__scene {
  display: flex;
  gap: var(--panel-gap, 10px);
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
html.is-portrait .hunter__scene { flex-direction: column; }
html.is-landscape .hunter__scene { flex-direction: row; }

.hunter__panel {
  position: relative;
  width: var(--panel-w, 300px);
  height: var(--panel-h, 225px);
  border-radius: clamp(8px, 1.6vmin, 14px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  flex: 0 0 auto;
  touch-action: manipulation;
}
.hunter__panel img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.hunter__tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  z-index: 3;
}

.hunter__markers { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

.marker {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}
.marker--found {
  border: 3px solid var(--c-success);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  animation: pop 0.35s ease;
}
.marker--hint {
  border: 3px dashed var(--c-accent);
  animation: pulse 0.7s ease infinite;
}
.marker--show {
  border: 3px solid var(--c-secondary);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
  opacity: 0.9;
}
.miss {
  position: absolute;
  width: 26px; height: 26px;
  transform: translate(-50%, -50%);
  color: var(--c-danger);
  font-weight: 900; font-size: 26px; line-height: 26px;
  pointer-events: none;
  animation: missfade 0.6s ease forwards;
  z-index: 4;
}

@keyframes pop { 0% { transform: translate(-50%,-50%) scale(0.3); } 60% { transform: translate(-50%,-50%) scale(1.15); } 100% { transform: translate(-50%,-50%) scale(1); } }
@keyframes pulse { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 1; } 50% { transform: translate(-50%,-50%) scale(1.3); opacity: 0.6; } }
@keyframes missfade { 0% { opacity: 1; transform: translate(-50%,-50%) scale(1.2); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(0.8); } }

/* scene-complete toast */
.toast {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: var(--c-surface);
  color: var(--c-primary-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(18px, 5vmin, 28px);
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.toolbar__scene { font-weight: 700; color: var(--c-text); background: color-mix(in srgb, var(--c-surface) 85%, transparent); padding: 6px 14px; border-radius: 999px; font-size: 13px; }
.toolbar__btns { display: flex; gap: 8px; }
.btn-hint { display: flex; align-items: center; gap: 6px; border: 0; cursor: pointer; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13px; color: var(--c-text-on-primary); background: var(--c-secondary); }
.btn-hint:disabled { opacity: .5; }
