:root {
  color-scheme: dark;
  font-family: "DM Sans", sans-serif;
  color: #f6efd9;
  background: #102c40;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #e7c98f;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}
header {
  position: fixed;
  top: 28px;
  left: 32px;
}
header a {
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  text-decoration: none;
  color: #f6efd9d9;
}
.controls {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid #aac7c324;
  border-radius: 28px;
  background: #102a3c9e;
  backdrop-filter: blur(16px);
}
.controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 23px;
  line-height: 1;
  color: #d9e6df;
  transition:
    background 0.2s,
    color 0.2s;
}
.controls button:hover {
  background: #b9dfc91a;
  color: #f2cd87;
}
.controls button:disabled {
  opacity: 0.45;
  cursor: wait;
}
#play {
  font-size: 17px;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
#hint {
  position: fixed;
  bottom: 95px;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.2px;
  color: #c6dbd5a6;
  pointer-events: none;
  transition: opacity 1s;
}
.dismissed {
  opacity: 0;
}
#toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #f6efd9;
  color: #193c49;
  border-radius: 24px;
  padding: 11px 19px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#toast.show {
  opacity: 1;
}
#loading,
#error {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #102c40;
  z-index: 10;
  padding: 25px;
  text-align: center;
}
.loading-compass {
  font-size: 45px;
  color: #e7c98f;
  animation: turn 8s linear infinite;
}
#error {
  font-size: 14px;
}
#error button {
  border: 1px solid #9eb9bb;
  border-radius: 20px;
  background: none;
  padding: 10px 20px;
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 800px) {
  header {
    top: 23px;
    left: 24px;
  }
  header a {
    font-size: 19px;
  }
  .controls {
    bottom: max(24px, env(safe-area-inset-bottom));
  }
  #hint {
    bottom: 88px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
