*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #1a1210; color: #fff;
}
.inv-top {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(20,12,14,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,182,217,0.35);
}
.inv-top h1 { margin: 0; font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; }
.back { color: #99f6e4; text-decoration: none; font-weight: 700; }
.inv-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem; padding: 0.65rem;
}
@media (min-width: 720px) {
  .inv-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; padding: 1rem; }
}
.inv-shot {
  margin: 0; padding: 0; border-radius: 12px; overflow: hidden;
  border: 2px solid rgba(255,143,196,0.55);
  box-shadow: 0 0 0 1px rgba(45,212,191,0.35), 0 8px 20px rgba(0,0,0,0.35);
  background: #2a1a18; cursor: zoom-in;
}
.inv-shot img {
  display: block; width: 100%; height: 42vw; max-height: 320px;
  object-fit: cover; pointer-events: none;
}
.zoom-tile {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(8,4,6,0.94);
  display: flex; flex-direction: column;
}
.zoom-tile[hidden] { display: none !important; }
body.zoom-open { overflow: hidden; }
.zoom-close {
  position: absolute; top: 0.65rem; right: 0.75rem; z-index: 3;
  width: 2.6rem; height: 2.6rem; border: 0; border-radius: 999px;
  font-size: 1.25rem; font-weight: 800; color: #fff;
  background: rgba(244,114,182,0.9); cursor: pointer;
}
.zoom-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: none; cursor: grab;
}
.zoom-stage img {
  max-width: 94vw; max-height: 78vh; object-fit: contain;
  transform-origin: center center; user-select: none; -webkit-user-drag: none;
}
.zoom-tools {
  display: flex; justify-content: center; gap: 0.85rem;
  padding: 0.75rem 1rem 1.25rem;
}
.zoom-tools button {
  width: 3.1rem; height: 3.1rem; border: 0; border-radius: 999px;
  font-size: 1.7rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ff8fc4, #0d9488); cursor: pointer;
}
