:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #eeeae0;
  background: #b8ccd0;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
#world,
#arc {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
canvas {
  display: block;
  touch-action: none;
}
header {
  position: fixed;
  top: 32px;
  left: 36px;
  right: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  color: #222a2c;
  text-decoration: none;
  letter-spacing: 3px;
  font-size: 17px;
  font-weight: 700;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2.3px;
  margin-top: 9px;
  font-weight: 500;
}
.mark {
  border: 1px solid #3c4544;
  width: 39px;
  height: 43px;
  font-size: 29px;
  letter-spacing: -5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mark span {
  font-size: 18px;
  transform: translateY(-8px);
}
.edition {
  font-size: 11px;
  letter-spacing: 2px;
  color: #34464b;
}
.panel {
  position: fixed;
  left: 32px;
  top: 130px;
  width: 282px;
  background: #1b2224ed;
  border: 1px solid #ffffff1c;
  border-radius: 4px;
  padding: 25px;
  box-shadow: 0 16px 55px #14272c24;
  backdrop-filter: blur(15px);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #ceb67f;
}
h1 {
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.12;
  margin: 16px 0 10px;
  letter-spacing: -0.7px;
}
.intro {
  font-size: 14px;
  line-height: 1.65;
  color: #aeb6b6;
  margin: 0;
}
.line {
  height: 1px;
  background: #ffffff16;
  margin: 21px 0;
}
.label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
output {
  font-size: 34px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
output span {
  font-size: 23px;
  color: #d8bd7d;
}
.label > span {
  color: #d3c4a4;
  font-size: 13px;
}
input[type="range"] {
  width: 100%;
  height: 3px;
  margin: 20px 0 12px;
  accent-color: #e9ca82;
  cursor: pointer;
  appearance: none;
  background: #566062;
  border-radius: 9px;
}
input::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  background: #ebce8c;
  border: 2px solid #f7e8c8;
  border-radius: 50%;
}
.scale {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #909c9d;
}
.presets {
  display: flex;
  gap: 6px;
  margin-top: 17px;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  border: 1px solid #ffffff24;
  background: transparent;
  transition: background 0.15s;
}
button:hover {
  background: #ffffff15;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #f2ce78;
  outline-offset: 5px;
}
.presets button {
  flex: 1;
  font-size: 13px;
  padding: 9px 0;
  border-radius: 3px;
}
.presets button.active {
  color: #f0d293;
  border-color: #dfbe76;
  background: #dcc17f12;
}
.sphere-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.sphere-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    #fff,
    #c9d2d5 20%,
    #283332 48%,
    #8f9b95 70%,
    #dae0dd 90%
  );
  box-shadow: 0 3px 5px #0005;
}
.sphere-row small {
  display: block;
  color: #9eabaa;
  font-size: 11px;
  margin-top: 5px;
}
.primary {
  width: 100%;
  padding: 13px 14px;
  border: 0;
  background: #e5c88a;
  color: #262c2c;
  font-size: 14px;
  text-align: left;
  margin-top: 18px;
  border-radius: 3px;
}
.primary:hover {
  background: #f5dba3;
}
.primary span {
  float: right;
}
.primary:disabled {
  cursor: default;
  opacity: 0.65;
}
.secondary {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}
.secondary button {
  border: 0;
  font-size: 11px;
  padding: 5px 0;
  color: #bfc6c4;
}
.note {
  font-size: 11px;
  color: #8b9a99;
  line-height: 1.6;
  margin: 16px 0 0;
}
footer {
  position: fixed;
  bottom: 25px;
  left: 36px;
  right: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #273d40;
  font-size: 12px;
}
footer > span {
  font-size: 10px;
  letter-spacing: 1.5px;
}
footer i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #587363;
  border-radius: 100%;
  margin-right: 8px;
}
footer b {
  margin: 0 12px;
  font-weight: 400;
  opacity: 0.5;
}
footer button {
  border-color: #41515350;
  border-radius: 3px;
  padding: 9px 12px;
}
#arc {
  pointer-events: none;
  overflow: visible;
}
#arcLine {
  stroke: #ffdf8b;
  stroke-width: 2;
  fill: none;
  filter: drop-shadow(0 0 6px #ffd771);
}
#arcHit {
  stroke: transparent;
  stroke-width: 30;
  fill: none;
  pointer-events: stroke;
  cursor: grab;
  touch-action: none;
}
#knob {
  fill: #ffe7a3;
  stroke: #fff7d4;
  stroke-width: 2;
  pointer-events: all;
  cursor: grab;
  filter: drop-shadow(0 0 8px #f9cb59);
  touch-action: none;
}
#arcLabel {
  fill: #fff2c6;
  font-size: 10px;
  letter-spacing: 2px;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #434d4960;
  stroke-width: 2;
}
#error {
  position: fixed;
  inset: 10% 15%;
  background: #1b2224;
  padding: 30px;
  z-index: 9;
  line-height: 1.7;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 14px;
}
@media (max-height: 800px) and (min-width: 701px) {
  .panel {
    top: 108px;
    padding: 19px 22px;
  }
  .line {
    margin: 15px 0;
  }
  .note {
    margin-top: 9px;
  }
  .intro {
    display: none;
  }
  header {
    top: 25px;
  }
}
@media (max-width: 700px) {
  header {
    top: 20px;
    left: 20px;
    right: 20px;
  }
  .edition {
    display: none;
  }
  .brand {
    font-size: 14px;
  }
  .panel {
    inset: auto 12px 53px;
    width: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
  }
  .eyebrow,
  h1,
  .intro,
  .line,
  .note,
  .sphere-row,
  .scale {
    display: none;
  }
  .label {
    grid-column: 1;
    font-size: 12px;
  }
  .label output {
    font-size: 25px;
  }
  #fold {
    grid-column: 1;
    margin: 0;
    align-self: center;
  }
  #sun {
    grid-column: 1;
    margin: 3px 0;
  }
  .presets {
    grid-column: 1;
    margin: 0;
  }
  .presets button {
    padding: 6px;
  }
  .sphere-row {
    display: none;
  }
  .primary {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    align-self: start;
  }
  .secondary {
    grid-column: 2;
    grid-row: 3 / 5;
    flex-direction: column;
    margin: 0;
    justify-content: center;
  }
  .secondary button {
    text-align: left;
    font-size: 12px;
    padding: 9px 0;
  }
  footer {
    bottom: 15px;
    left: 20px;
    right: 20px;
  }
  footer > span {
    display: none;
  }
  footer div {
    font-size: 10px;
  }
  footer b {
    margin: 0 4px;
  }
  footer button {
    font-size: 10px;
    padding: 7px;
  }
  .panel .label:nth-of-type(7) {
    grid-column: 1;
  }
}
header .brand {
  pointer-events: auto;
}
.brand small {
  font-size: 10px;
  letter-spacing: 1.5px;
}
.edition {
  pointer-events: auto;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
}
.edition:hover,
.credits a:hover {
  color: #8c692c;
}
.panel {
  max-height: calc(100dvh - 165px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #69716a transparent;
}
.effects {
  display: flex;
  gap: 25px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #ffffff16;
}
.effects label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.effects input {
  accent-color: #e5c88a;
}
.credits {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff16;
  padding-top: 15px;
  margin-top: 15px;
}
.credits a {
  color: #d6c39b;
  font-size: 12px;
  text-decoration: none;
}
footer > div {
  position: absolute;
  left: 0;
  bottom: 35px;
  font-size: 11px;
}
#arcLabel {
  font-size: 9px;
  letter-spacing: 1.3px;
}
@media (max-width: 700px) {
  header .edition {
    display: block;
    font-size: 11px;
  }
  .brand small {
    max-width: 230px;
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .panel {
    bottom: 158px;
    max-height: 36dvh;
  }
  .effects {
    grid-column: 1;
    grid-row: 5;
    margin: 0;
    padding-top: 5px;
    border: 0;
    gap: 15px;
  }
  .credits {
    grid-column: 2;
    grid-row: 5;
    gap: 12px;
    flex-wrap: wrap;
    padding: 5px 0 0;
    margin: 0;
    border: 0;
  }
  .credits a {
    font-size: 10px;
  }
  .panel .note {
    display: none;
  }
  footer > div {
    bottom: 0;
    max-width: 110px;
    line-height: 1.5;
  }
  footer {
    justify-content: flex-end;
  }
  #arcLabel {
    font-size: 8px;
    letter-spacing: 1px;
  }
}
.camera-controls {
  border-top: 1px solid #ffffff16;
  margin-top: 18px;
  padding-top: 15px;
}
.camera-controls > label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 9px;
}
.camera-controls output {
  font-size: 12px;
  line-height: 1.3;
  color: #dfc589;
}
.camera-controls select {
  background: #2c3435;
  color: #eee8d9;
  border: 1px solid #69716a;
  padding: 8px;
  width: 100%;
  margin: 9px 0 0;
  font: inherit;
  font-size: 13px;
}
.camera-controls p {
  font-size: 11px;
  line-height: 1.6;
  color: #a7b1ad;
  margin: 9px 0;
}
.camera-controls input[type="range"] {
  margin-top: 13px;
}
.ui-hidden header,
.ui-hidden .panel,
.ui-hidden footer,
.ui-hidden #arc {
  display: none !important;
}
.panel {
  top: 108px;
  max-height: calc(100dvh - 150px);
}
@media (max-width: 700px) {
  .panel {
    top: auto;
  }
  .camera-controls {
    grid-column: 1 / -1;
    margin-top: 5px;
  }
  .panel {
    max-height: 40dvh;
  }
}
.auto-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  cursor: pointer;
}
.auto-control input {
  accent-color: #e5c88a;
}
.camera-controls,
.effects,
#cameraReset {
  display: none !important;
}
.advanced-visible .camera-controls {
  display: block !important;
}
.advanced-visible .effects {
  display: flex !important;
}
.advanced-visible #cameraReset {
  display: block !important;
}
@media (max-width: 700px) {
  .auto-control {
    grid-column: 1;
    margin: 3px 0;
    font-size: 12px;
  }
}
#vrButton {
  position: fixed;
  right: 36px;
  bottom: 64px;
  z-index: 5;
  padding: 13px 18px;
  border: 0;
  border-radius: 3px;
  background: #e5c88a;
  color: #262c2c;
  font-size: 14px;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px -12px #000a;
}
#vrButton:hover {
  background: #f5dba3;
}
#vrButton[hidden] {
  display: none;
}
@media (max-width: 700px) {
  #vrButton {
    right: 12px;
    bottom: auto;
    top: 64px;
    padding: 9px 12px;
    font-size: 12px;
  }
}
