/* Mexico City rooftop cats — warm minimal overlay chrome.
   Colors are rgb()/hsl() only. No id selectors anywhere. */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: rgb(38, 24, 18);
  color: rgb(250, 240, 228);
  font-family: Georgia, 'Times New Roman', serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.scene-shell {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.scene-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

.scene-canvas:active {
  cursor: grabbing;
}

/* Title, top left, quiet */

.scene-title {
  position: absolute;
  top: 20px;
  left: 22px;
  pointer-events: none;
  text-shadow: 0 1px 10px rgba(38, 24, 18, 0.55);
}

.scene-title h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgb(252, 243, 230);
}

.scene-place {
  margin: 4px 0 0;
  font-size: 13px;
  font-style: italic;
  color: rgb(244, 219, 192);
}

/* Floating cat labels (projected from world anchors) */

.scene-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cat-label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(46, 28, 20, 0.62);
  color: rgb(250, 238, 222);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 180ms ease;
  will-change: transform;
}

.cat-label.is-visible {
  opacity: 1;
}

/* Controls, bottom center */

.scene-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.preset-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(250, 236, 216, 0.34);
  border-radius: 999px;
  background: rgba(46, 28, 20, 0.6);
  color: rgb(250, 238, 222);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.preset-button:hover {
  background: rgba(84, 50, 34, 0.74);
  border-color: rgba(252, 240, 220, 0.6);
}

.preset-button:active {
  transform: translateY(1px);
}

.preset-button:focus-visible {
  outline: 2px solid rgb(255, 214, 160);
  outline-offset: 2px;
}

.preset-button.is-active {
  background: rgb(250, 238, 222);
  border-color: rgb(250, 238, 222);
  color: rgb(46, 28, 20);
}

.scene-hint {
  margin: 0;
  font-size: 12px;
  color: rgb(240, 214, 186);
  text-shadow: 0 1px 8px rgba(38, 24, 18, 0.6);
}

.scene-canvas:focus-visible {
  outline: 2px solid rgb(255, 240, 224);
  outline-offset: -2px;
}

/* Narrow screens */

@media (max-width: 768px) {
  .scene-title {
    top: 14px;
    left: 16px;
  }

  .scene-title h1 {
    font-size: 20px;
  }

  .scene-place {
    font-size: 12px;
  }

  .scene-controls {
    bottom: 12px;
    gap: 6px;
  }

  .preset-button {
    font-size: 13px;
    padding: 0 14px;
  }
}

@media (max-width: 390px) {
  .preset-row {
    gap: 6px;
  }

  .preset-button {
    min-height: 44px;
    padding: 0 12px;
    font-size: 12.5px;
  }

  .cat-label {
    font-size: 10px;
    padding: 2px 7px;
  }
}

@media (max-width: 340px) {
  .scene-title h1 {
    font-size: 18px;
  }

  .preset-button {
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cat-label,
  .preset-button {
    transition: none;
  }
}
