:root {
  --petrol: #2b6b6f;
  --bordeaux: #8a2d3b;
  --mustard: #d9a52c;
  --pink: #e3a8ad;
  --olive: #7c8a4a;
  --ink: #2c2620;
  --paper: #f4efe4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #ddd3bd;
}

.back-btn {
  border: 1px solid var(--petrol);
  background: white;
  color: var(--petrol);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}
.back-btn:hover { background: var(--petrol); color: white; }

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.mockup-tag {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--bordeaux);
  border: 1px solid var(--bordeaux);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.stage {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.scene-frame {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper);
}

.hotspot-layer {
  position: absolute;
  inset: 0;
}

.hotspot {
  position: absolute;
  border: 2px solid rgba(255,255,255,0);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.hotspot:hover,
.hotspot:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.85);
  outline: none;
}
.hotspot.navigate:hover,
.hotspot.navigate:focus-visible {
  border-color: var(--mustard);
}

.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.hotspot:hover .hotspot-tooltip,
.hotspot:focus-visible .hotspot-tooltip {
  opacity: 1;
}

.calib-readout {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-family: monospace;
  font-size: 0.8rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  pointer-events: none;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10;
}

.modal {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.modal h2 {
  margin: 0 0 0.75rem;
  color: var(--bordeaux);
}

.modal p {
  white-space: pre-line;
  line-height: 1.5;
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
}

.hint {
  text-align: center;
  font-size: 0.8rem;
  color: #7a7263;
  padding: 0.5rem 1rem 1.5rem;
}
