:root {
  color-scheme: light;
  background: #f7efe1;
  --mural-zoom: 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 248, 232, 0.9), rgba(236, 219, 184, 0.45)),
    #f7efe1;
}

body {
  -webkit-font-smoothing: antialiased;
}

.mural-shell {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background: #f7efe1;
}

.mural-stage {
  width: 100%;
  height: 100%;
  overflow: auto;
  cursor: grab;
  overscroll-behavior: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: none;
}

.mural-stage::-webkit-scrollbar {
  display: none;
}

.mural-stage.is-dragging {
  cursor: grabbing;
}

.mural {
  display: block;
  width: auto;
  height: calc(100svh * var(--mural-zoom));
  min-width: 100vw;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

@media (min-aspect-ratio: 3 / 2) {
  .mural {
    width: auto;
    height: calc(112svh * var(--mural-zoom));
    min-height: 100svh;
  }
}

@media (max-width: 680px) {
  .mural {
    width: auto;
    height: calc(118svh * var(--mural-zoom));
    min-width: 160vw;
  }
}

.mural-controls {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 42px);
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(78, 66, 47, 0.16);
  border-radius: 999px;
  background: rgba(252, 244, 226, 0.74);
  box-shadow: 0 8px 24px rgba(62, 48, 28, 0.14);
  backdrop-filter: blur(14px);
}

.mural-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.86);
  color: #493d2f;
  cursor: pointer;
  font: 600 22px/1 ui-rounded, "SF Pro Rounded", ui-sans-serif, system-ui, sans-serif;
}

.mural-controls button:focus-visible {
  outline: 2px solid #397c92;
  outline-offset: 3px;
}

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