/* SHOKKER: ON THE MAP — Tactile Smartphone Wildlife Field Camera Viewfinder (c1669)
   Zero vibe-coded pills: rugged matte-titanium smartphone frame held over live 3D Greene County. */

#shokker-wildlife-phone-cam {
  position: fixed;
  inset: 0;
  z-index: 1140;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: #f3efe6;
}
#shokker-wildlife-phone-cam[hidden] {
  display: none !important;
}

/* Soft outer vignette around the held smartphone (click-through outside chassis so map remains alive) */
#shokker-wildlife-phone-cam .wcam-dim-ring {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 52% 62% at 50% 50%, transparent 62%, rgba(4, 7, 11, 0.58) 100%);
}

/* Landscape titanium field smartphone chassis */
#shokker-wildlife-phone-cam .wcam-phone {
  position: relative;
  width: min(860px, 90vw);
  height: min(500px, 76vh);
  border-radius: 34px;
  border: 11px solid #141922;
  box-shadow:
    0 0 0 1.5px rgba(212, 175, 85, 0.42),
    0 0 0 3px #090d14,
    0 28px 90px rgba(0, 0, 0, 0.78),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Hardware earpiece / camera notch on left bezel edge */
#shokker-wildlife-phone-cam .wcam-phone::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 68px;
  border-radius: 99px;
  background: #070a0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 6;
}

/* Top telemetry bar inside the phone screen */
#shokker-wildlife-phone-cam .wcam-topbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 18px 9px 24px;
  background: linear-gradient(180deg, rgba(7, 10, 15, 0.88) 0%, rgba(7, 10, 15, 0.45) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#shokker-wildlife-phone-cam .wcam-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #e5be63;
}
#shokker-wildlife-phone-cam .wcam-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.85);
}
#shokker-wildlife-phone-cam .wcam-telemetry {
  color: rgba(243, 239, 230, 0.82);
  font-size: 10.5px;
}
#shokker-wildlife-phone-cam .wcam-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
#shokker-wildlife-phone-cam .wcam-count-chip {
  padding: 3px 8px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(22, 101, 52, 0.35);
  color: #bbf7d0;
  font-weight: 800;
  font-size: 10.5px;
  border-radius: 3px;
}
#shokker-wildlife-phone-cam .wcam-close-btn {
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 21, 32, 0.86);
  color: #f3efe6;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}
#shokker-wildlife-phone-cam .wcam-close-btn:hover {
  border-color: #e5be63;
  color: #fae5a5;
}

/* Transparent live lens viewport (fully click-through so you pan/tilt the 3D map right through the lens) */
#shokker-wildlife-phone-cam .wcam-lens {
  position: relative;
  flex: 1 1 auto;
  pointer-events: none;
}

/* Subtle rule-of-thirds photography grid */
#shokker-wildlife-phone-cam .wcam-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 33.333% 33.333%;
  background-position: -0.5px -0.5px;
}

/* Center autofocus bracket box */
#shokker-wildlife-phone-cam .wcam-reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 176px;
  height: 128px;
  pointer-events: none;
  transition: border-color 140ms ease, transform 160ms ease;
}
#shokker-wildlife-phone-cam .wcam-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(229, 190, 99, 0.88);
  border-style: solid;
  border-width: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
#shokker-wildlife-phone-cam .wcam-corner.tl { top: 0; left: 0; border-top-width: 2.5px; border-left-width: 2.5px; }
#shokker-wildlife-phone-cam .wcam-corner.tr { top: 0; right: 0; border-top-width: 2.5px; border-right-width: 2.5px; }
#shokker-wildlife-phone-cam .wcam-corner.bl { bottom: 0; left: 0; border-bottom-width: 2.5px; border-left-width: 2.5px; }
#shokker-wildlife-phone-cam .wcam-corner.br { bottom: 0; right: 0; border-bottom-width: 2.5px; border-right-width: 2.5px; }
#shokker-wildlife-phone-cam .wcam-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
}
#shokker-wildlife-phone-cam .wcam-crosshair::before,
#shokker-wildlife-phone-cam .wcam-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(229, 190, 99, 0.72);
}
#shokker-wildlife-phone-cam .wcam-crosshair::before { left: 6.5px; top: 0; width: 1px; height: 14px; }
#shokker-wildlife-phone-cam .wcam-crosshair::after { top: 6.5px; left: 0; height: 1px; width: 14px; }

#shokker-wildlife-phone-cam .wcam-reticle.is-locked {
  transform: translate(-50%, -50%) scale(0.95);
}
#shokker-wildlife-phone-cam .wcam-reticle.is-locked .wcam-corner {
  border-color: #4ade80;
  filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.85));
}
#shokker-wildlife-phone-cam .wcam-reticle.is-locked .wcam-crosshair::before,
#shokker-wildlife-phone-cam .wcam-reticle.is-locked .wcam-crosshair::after {
  background: #4ade80;
}

/* Live target tracking box pinned directly over the locked 3D animal inside the lens */
#shokker-wildlife-phone-cam .wcam-target-box {
  position: absolute;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  margin-top: -24px;
  border: 2px solid #4ade80;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.55), inset 0 0 8px rgba(74, 222, 128, 0.18);
  pointer-events: none;
  display: none;
}
#shokker-wildlife-phone-cam .wcam-target-box.is-active {
  display: block;
}
#shokker-wildlife-phone-cam .wcam-target-tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 2px 7px;
  background: rgba(7, 13, 18, 0.9);
  border: 1px solid #4ade80;
  color: #dcfce7;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* Live status strip floating at bottom of lens above controls */
#shokker-wildlife-phone-cam .wcam-lock-banner {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 5px 12px;
  background: rgba(8, 12, 18, 0.86);
  border: 1px solid rgba(229, 190, 99, 0.45);
  color: #fae5a5;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 3px;
}
#shokker-wildlife-phone-cam .wcam-lock-banner.is-locked {
  border-color: #4ade80;
  background: rgba(6, 36, 20, 0.9);
  color: #bbf7d0;
}

/* Bottom tactile phone camera deck */
#shokker-wildlife-phone-cam .wcam-deck {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  background: linear-gradient(0deg, rgba(7, 10, 15, 0.96) 0%, rgba(10, 15, 23, 0.88) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#shokker-wildlife-phone-cam .wcam-zoom-rail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  justify-self: start;
}
#shokker-wildlife-phone-cam .wcam-zoom-btn {
  padding: 5px 11px;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 3px;
  cursor: pointer;
}
#shokker-wildlife-phone-cam .wcam-zoom-btn.active {
  background: rgba(229, 190, 99, 0.22);
  border-color: #e5be63;
  color: #fff6d6;
}

/* Two-ring physical shutter button */
#shokker-wildlife-phone-cam .wcam-shutter-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
#shokker-wildlife-phone-cam .wcam-shutter {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #f8fafc;
  background: rgba(15, 23, 42, 0.5);
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 90ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
#shokker-wildlife-phone-cam .wcam-shutter-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f8fafc;
  transition: background 140ms ease, transform 90ms ease;
}
#shokker-wildlife-phone-cam .wcam-shutter.is-locked {
  border-color: #4ade80;
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.55);
}
#shokker-wildlife-phone-cam .wcam-shutter.is-locked .wcam-shutter-inner {
  background: #4ade80;
}
#shokker-wildlife-phone-cam .wcam-shutter:active {
  transform: scale(0.92);
}
#shokker-wildlife-phone-cam .wcam-shutter-hint {
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(243, 239, 230, 0.72);
  text-transform: uppercase;
}

#shokker-wildlife-phone-cam .wcam-right-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}
#shokker-wildlife-phone-cam .wcam-tool-btn {
  padding: 7px 11px;
  border-radius: 4px;
  border: 1px solid rgba(229, 190, 99, 0.45);
  background: rgba(229, 190, 99, 0.14);
  color: #fae5a5;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
#shokker-wildlife-phone-cam .wcam-tool-btn:hover {
  background: rgba(229, 190, 99, 0.28);
  color: #ffffff;
}
#shokker-wildlife-phone-cam .wcam-tool-btn.secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

/* Camera flash effect */
#shokker-wildlife-phone-cam .wcam-flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 9;
  transition: opacity 220ms ease-out;
}
#shokker-wildlife-phone-cam .wcam-flash.fire {
  opacity: 0.88;
  transition: none;
}

/* Captured Polaroid Field Snapshot toast inside the smartphone screen */
#shokker-wildlife-phone-cam .wcam-polaroid {
  position: absolute;
  right: 16px;
  top: 52px;
  width: 268px;
  pointer-events: auto;
  background: #0d131d;
  border: 1px solid rgba(74, 222, 128, 0.65);
  border-radius: 6px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.78);
  overflow: hidden;
  z-index: 10;
  animation: wcamSlideIn 220ms ease-out;
}
#shokker-wildlife-phone-cam .wcam-polaroid[hidden] {
  display: none !important;
}
@keyframes wcamSlideIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
#shokker-wildlife-phone-cam .wcam-pol-img {
  position: relative;
  height: 132px;
  background: linear-gradient(135deg, #122130, #0a111a);
  overflow: hidden;
}
#shokker-wildlife-phone-cam .wcam-pol-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#shokker-wildlife-phone-cam .wcam-pol-stamp {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  background: rgba(22, 163, 74, 0.94);
  color: #ffffff;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 2px;
}
#shokker-wildlife-phone-cam .wcam-pol-body {
  padding: 10px 12px 11px;
}
#shokker-wildlife-phone-cam .wcam-pol-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}
#shokker-wildlife-phone-cam .wcam-pol-sci {
  font-size: 11px;
  font-style: italic;
  color: #94a3b8;
  margin-top: 1px;
}
#shokker-wildlife-phone-cam .wcam-pol-meta {
  margin-top: 6px;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 10px;
  color: #e5be63;
  letter-spacing: 0.04em;
}
#shokker-wildlife-phone-cam .wcam-pol-actions {
  margin-top: 9px;
  display: flex;
  gap: 6px;
}
#shokker-wildlife-phone-cam .wcam-pol-actions button {
  flex: 1 1 0;
  padding: 6px 8px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f3efe6;
}
#shokker-wildlife-phone-cam .wcam-pol-actions button.primary {
  background: rgba(34, 197, 94, 0.24);
  border-color: #4ade80;
  color: #dcfce7;
}

@media (max-width: 768px) {
  #shokker-wildlife-phone-cam .wcam-phone {
    width: 96vw;
    height: 82vh;
    border-width: 7px;
    border-radius: 22px;
  }
  #shokker-wildlife-phone-cam .wcam-telemetry,
  #shokker-wildlife-phone-cam .wcam-shutter-hint {
    display: none;
  }
  #shokker-wildlife-phone-cam .wcam-deck {
    grid-template-columns: auto auto auto;
    padding: 8px 10px;
  }
}
