* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #665748;
  color: #fff9ed;
  text-shadow: 0 1px 4px #20190f99;
  font:
    11px/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
[hidden] {
  display: none !important;
}
body.night header p {
  color: #e8e4dc;
}
main {
  position: fixed;
  inset: 0;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  outline: none;
}
canvas:active {
  cursor: grabbing;
}
canvas:focus-visible {
  outline: 1px solid #7c6b54;
  outline-offset: -4px;
}
header {
  position: fixed;
  z-index: 2;
  top: 24px;
  left: 28px;
  padding: 0;
  letter-spacing: 0.16em;
  pointer-events: none;
}
header p {
  margin: 6px 0 0;
  color: #eee7db;
  letter-spacing: normal;
}
.lil-gui.root {
  top: 20px;
  right: 28px;
  max-height: calc(100dvh - 110px);
  text-shadow: none;
}
.lil-gui.root,
.lil-gui.root .lil-gui {
  --background-color: transparent;
  --text-color: #fff9ed;
  --title-background-color: transparent;
  --title-text-color: #fff9ed;
  --widget-color: #786550;
  --hover-color: #8c785f;
  --focus-color: #9f896d;
  --number-color: #fff0d3;
  --string-color: #fff0d3;
  --font-size: 11px;
}
.lil-gui.root > .children {
  overflow-y: auto;
  max-height: calc(100dvh - 140px);
}
.lil-gui.root,
.lil-gui.root * {
  text-transform: uppercase;
}
#status {
  position: fixed;
  inset: 50% 24px auto;
  text-align: center;
  pointer-events: none;
  letter-spacing: 0.05em;
}
#effect-controls {
  position: fixed;
  z-index: 3;
  bottom: 23px;
  left: 28px;
}
.effect-row {
  display: flex;
  gap: 20px;
}
.effect-row button {
  font: inherit;
  letter-spacing: 0.05em;
  color: #f5eee0;
  opacity: 0.65;
  text-shadow: inherit;
  background: transparent;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  white-space: nowrap;
}
.effect-row button[aria-pressed="true"] {
  color: #fffdf6;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.effect-row button:hover {
  opacity: 1;
}
.effect-row button:focus-visible {
  outline: 1px solid #fff9ed;
  outline-offset: 4px;
}
#light-controls {
  position: fixed;
  z-index: 3;
  bottom: 23px;
  right: 28px;
}
#light-controls .effect-row button {
  flex: 0 0 auto;
}
#camera-view {
  margin-right: 12px;
  opacity: 0.95;
}
#comparison {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.comparison-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #fff9ed99;
}
@media (max-width: 600px) {
  header {
    left: 16px;
    top: 20px;
    font-size: 10px;
  }
  header p {
    font-size: 9px;
  }
  .lil-gui.root {
    right: 16px;
    top: 78px;
    max-height: calc(100dvh - 220px);
  }
  .lil-gui.root > .children {
    max-height: calc(100dvh - 250px);
  }
  #effect-controls {
    left: 16px;
    right: 16px;
    bottom: 20px;
  }
  #light-controls {
    right: 16px;
    bottom: 78px;
  }
  .effect-row {
    gap: 16px;
  }
  .effect-row button {
    padding: 10px 0;
    flex: 1;
  }
}
