@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root { --debug: 1; }

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #000;
  padding-bottom: 96px;
}

/* Main media container */
.media-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* All images/videos stacked */
.media-element {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.show { opacity: 1; }
.hide { opacity: 0; }

/* --- HOTSPOT MUST SIT ABOVE MEDIA --- */
#laptop-hotspot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;         /* above media */
  pointer-events: none;  /* only the PATH receives input */
}

/* In debug mode, push hotspot above everything */
html.debug-on #laptop-hotspot { z-index: 10000; }

/* Laptop hotspot polygon */
/* HIDDEN by default (still clickable) */
#laptop-hotspot path {
  pointer-events: auto;
  stroke: none;                 /* hide cyan line */
  fill: transparent;            /* hide fill */
  cursor: pointer;
}

/* Show blue outline ONLY in debug */
html.debug-on #laptop-hotspot path {
  stroke: rgba(0,255,255,0.95);
  stroke-width: 3;
  fill: rgba(0,255,255,0.18);
}

/* --- ICON OVERLAY LAYER (grid) --- */
#screen-overlay {
  position: absolute;
  z-index: 12;
  pointer-events: none;   /* JS enables after video ends */
  opacity: 0;
  transition: opacity .3s ease;
}
#screen-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* While debugging, show grid but DO NOT capture clicks until video ends */
html.debug-on #screen-overlay {
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 9999;
}

/* Icon boxes */
/* HIDDEN outlines by default */
.icon-box {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  pointer-events: auto;
  background: transparent;
  outline: none;
  border: none;
}

/* Show dashed boxes ONLY in debug */
html.debug-on .icon-box {
  outline: 2px dashed rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.05);
}

/* Hover image */
.icon-hover {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity .2s ease;
}
.icon-box:hover .icon-hover { opacity: 1; }

/* Player bar */
.neon-glow {
  box-shadow: 0 0 8px rgba(0,255,255,0.6),
              0 0 15px rgba(0,255,255,0.4);
}

.unmute-hint {
  position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%);
  background: rgba(17,24,39,.85); color:#a5f3fc;
  padding:.5rem .75rem; border-radius:.5rem; font-size:.875rem;
  backdrop-filter: blur(6px); display:none; z-index:60;
}

/* Hide hotspot outline by default (even if JS added inline styles) */
#laptop-hotspot path {
  stroke: none !important;
  fill: transparent !important;
}

/* Show the outline only in debug */
html.debug-on #laptop-hotspot path {
  stroke: rgba(0,255,255,0.95) !important;
  stroke-width: 3 !important;
  fill: rgba(0,255,255,0.18) !important;
}