@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #40574d;
  --muted: #859185;
  --accent: #9b8351;
  --panel: rgba(247, 249, 239, 0.88);
  --line: rgba(70, 92, 73, 0.15);
  --hover: rgba(82, 109, 88, 0.09);
  --sans: "Helvetica Neue", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background: #e8eee7;
  color: var(--ink);
  font: 13px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  cursor: wait;
  opacity: 0.45;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.experience {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100svh;
  isolation: isolate;
}
#world {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  outline: none;
}
#world:active {
  cursor: grabbing;
}
#world:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -8px;
}
.viewer-controls {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  transition: opacity 160ms ease;
}
.time-panel,
.scene-tools,
.photo-actions {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 6px 28px rgba(33, 56, 41, 0.055);
  border-radius: 16px;
}
.time-panel {
  display: grid;
  grid-template-columns: 48px 15px minmax(70px, 1fr) 15px;
  align-items: center;
  gap: 10px;
  width: 300px;
  max-width: 100%;
  height: 54px;
  padding: 0 16px;
}
#island-time {
  font:
    400 14px/1 "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.025em;
}
.time-symbol {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
#time-slider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  accent-color: var(--ink);
}
#time-slider::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #adba91, #bca276 50%, #8294b1);
}
#time-slider::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #adba91, #bca276 50%, #8294b1);
}
#time-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border-radius: 50%;
  border: 3px solid var(--panel);
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
#time-slider::-moz-range-thumb {
  width: 7px;
  height: 7px;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.scene-tools {
  display: flex;
  align-items: center;
  padding: 5px;
  height: 54px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  transition:
    background 150ms ease,
    color 150ms ease;
}
.icon-button:hover {
  background: var(--hover);
}
.icon-button:active {
  color: var(--accent);
}
.icon-button.is-saved {
  color: #698762;
}
.tools-divider {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 4px;
}
.is-photo .viewer-controls {
  opacity: 0;
  pointer-events: none;
}
.photo-actions {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  z-index: 3;
  padding: 3px;
  opacity: 0.65;
}
.photo-actions:hover,
.photo-actions:focus-within {
  opacity: 1;
}
.loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: #e8eee7;
  transition: opacity 220ms ease;
}
.loading.is-loaded {
  opacity: 0;
  pointer-events: none;
}
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: loading-turn 1.4s linear infinite;
}
@keyframes loading-turn {
  to {
    transform: rotate(360deg);
  }
}
.fallback {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px;
  border-radius: 18px;
  background: var(--panel);
  text-align: center;
  z-index: 12;
}
.fallback button {
  margin: auto;
}
.scene-error .viewer-controls,
.scene-error .photo-actions {
  display: none;
}
.is-night {
  color-scheme: dark;
  --ink: #d0dccc;
  --muted: #9faeaa;
  --accent: #c6ae78;
  --panel: rgba(22, 36, 43, 0.88);
  --line: rgba(190, 207, 198, 0.16);
  --hover: rgba(182, 207, 190, 0.09);
}
@media (max-width: 639px) {
  .viewer-controls {
    width: calc(100% - 32px);
    flex-direction: column;
    gap: 10px;
    bottom: max(20px, env(safe-area-inset-bottom));
  }
  .scene-tools .icon-button {
    width: 44px;
    height: 44px;
  }
  .scene-tools {
    height: 56px;
  }
}
@media (max-width: 359px) {
  .scene-tools .icon-button {
    width: 40px;
  }
}
@media (max-height: 520px) and (min-width: 540px) {
  .viewer-controls {
    width: max-content;
    flex-direction: row;
    bottom: max(16px, env(safe-area-inset-bottom));
    gap: 10px;
  }
  .time-panel {
    width: 246px;
  }
  .scene-tools,
  .time-panel {
    height: 48px;
  }
  .scene-tools .icon-button {
    width: 36px;
    height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
