* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  --bg: #111e29;
  --ink: #eeeae0;
  --muted: #a5b3b7;
  --sub: #8e9fa7;
  --line: #34434b;
  --orange: #f1a171;
  --panel: #19272f;
  --sans: "Inter", "Segoe UI", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow: hidden;
}
body {
  display: flex;
  flex-direction: column;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: transparent;
}
button:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-style: normal;
}
i svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar {
  height: 76px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 clamp(20px, 3.5vw, 64px);
  border-bottom: 1px solid #31404a;
  background: #111d26;
  position: relative;
  z-index: 2;
}
.brand,
.header-tools,
.night-clock,
.sound-button,
.scene-sub,
.eyebrow,
.section h3,
.console-title,
.rain-row,
.hints,
.camera-tools,
.wide-button,
.action {
  display: flex;
  align-items: center;
}
.brand {
  gap: 12px;
}
.brandmark {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  background: #efa172;
  color: #192831;
  display: grid;
  place-items: center;
}
.brandmark i {
  width: 28px;
  height: 28px;
}
.brand strong {
  display: block;
  font-family: "Songti SC", "Yu Mincho", "MS Mincho", "SimSun", serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.26;
}
.brand small {
  display: block;
  font: 9px/1.5 var(--mono);
  letter-spacing: 0.14em;
  color: #c2c8c4;
}
.night-clock {
  border-left: 1px solid #3a454a;
  padding-left: 26px;
  gap: 8px;
  font: 13px var(--mono);
  letter-spacing: 0.07em;
  color: #d8d5cb;
}
.night-clock i {
  width: 15px;
  height: 15px;
  color: #eac08b;
}
.night-clock span {
  color: #95a3a7;
  font-size: 11px;
}
.header-tools {
  gap: 12px;
  margin-left: auto;
}
.sound-button,
.icon-button {
  border: 1px solid #465259;
  border-radius: 7px;
  height: 36px;
  background: #1b2831;
}
.sound-button {
  padding: 0 12px;
  gap: 8px;
  font-size: 13px;
}
.sound-button i,
.icon-button i {
  width: 17px;
  height: 17px;
}
.icon-button {
  width: 36px;
  display: grid;
  place-items: center;
}
.header-tools button:hover,
.camera-tools button:hover,
.wide-button:hover,
.views button:hover {
  background: #34434a;
}
.sound-button[aria-pressed="true"] {
  color: #ffd5af;
  border-color: #866954;
}
main {
  position: relative;
  flex: 1;
  min-height: 0;
  background: radial-gradient(
    ellipse at 39% 54%,
    #2e4350 0,
    #1d303e 43%,
    #13232f 72%,
    #101d27 100%
  );
  overflow: hidden;
}
#stage {
  position: absolute;
  inset: 0 calc(clamp(242px, 20vw, 312px) + clamp(32px, 4vw, 78px)) 0 0;
}
#world {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  outline-offset: -4px;
}
#world:active {
  cursor: grabbing;
}
.scene-heading {
  position: absolute;
  top: clamp(22px, 4.7vh, 55px);
  left: clamp(20px, 3.5vw, 64px);
  pointer-events: none;
  text-shadow: 0 2px 14px #14232a;
}
.eyebrow {
  gap: 9px;
  font: 600 10px/1.4 var(--mono);
  letter-spacing: 0.19em;
  color: #edac85;
}
.orange-rule {
  width: 23px;
  height: 2px;
  background: var(--orange);
}
h1 {
  font-family: "Yu Mincho", "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(38px, 3.8vw, 64px);
  font-weight: 650;
  letter-spacing: 0.09em;
  line-height: 1.18;
  margin: 7px 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.seal {
  font:
    600 16px/1.15 "SimSun",
    serif;
  border: 1px solid #e9956b;
  border-radius: 3px;
  color: #f0a277;
  padding: 2px 3px;
  letter-spacing: 0;
  transform: rotate(-6deg);
}
.scene-sub {
  font-size: 12px;
  gap: 9px;
  letter-spacing: 0.12em;
  color: #c1cdc9;
}
.live-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #9cd5b1;
  box-shadow: 0 0 8px #96d6ad55;
}
.middot {
  color: #6e848a;
}
#console {
  position: absolute;
  right: clamp(16px, 3vw, 60px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(242px, 20vw, 312px);
  border: 1px solid #46525a;
  border-radius: 15px;
  background: linear-gradient(145deg, #202e37f7, #17262ff7);
  box-shadow: 0 16px 40px #08121a40;
  overflow: hidden;
}
.console-title {
  height: 61px;
  border-bottom: 1px solid var(--line);
  padding: 0 21px;
  gap: 10px;
  background: #ffffff03;
}
.console-title i {
  width: 18px;
  height: 18px;
  color: var(--orange);
}
.console-title h2 {
  font-size: 16px;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 0;
}
.window-pips {
  display: flex;
  gap: 3px;
  margin-left: auto;
}
.window-pips b {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #77878b;
}
#fold {
  display: none;
}
.section {
  padding: 18px 0;
  margin: 0 21px;
  border-bottom: 1px solid var(--line);
}
.section:last-child {
  border: 0;
}
.section h3 {
  margin: 0 0 15px;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #dde1d9;
}
.section h3 span {
  font: 9px var(--mono);
  letter-spacing: 0.14em;
  color: #97a6a9;
}
.rain-row {
  gap: 8px;
  font-size: 13px;
  color: #ccd5d5;
}
.rain-row i,
.action > i {
  width: 17px;
  height: 17px;
  color: #a4b7b9;
}
output {
  margin-left: auto;
  color: var(--orange);
  font: 600 17px var(--mono);
}
output span {
  font-size: 11px;
  margin-left: 3px;
}
input[type="range"] {
  --amount: 55%;
  width: 100%;
  margin: 16px 0 2px;
  display: block;
  appearance: none;
  height: 4px;
  border-radius: 5px;
  background: linear-gradient(
    to right,
    #eea171 0 var(--amount),
    #43515a var(--amount) 100%
  );
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  background: #f4b181;
  border: 2px solid #ffcdaa;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0005;
}
input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: #f4b181;
  border: 2px solid #ffcdaa;
  border-radius: 50%;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--sub);
  font-size: 11px;
  margin: 8px 0 12px;
}
.wide-button {
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 34px;
  border: 1px solid #4a565c;
  border-radius: 6px;
  background: #2b383f;
  color: #e4dfd4;
  font-size: 13px;
}
.wide-button i {
  width: 15px;
  height: 15px;
  color: #ebba85;
}
.views {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.views button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  height: 55px;
  border: 1px solid #40515b;
  border-radius: 7px;
  font-size: 12px;
  color: #b7c4c6;
  background: #22333d;
}
.views button i {
  width: 19px;
  height: 19px;
}
.views button[aria-pressed="true"] {
  background: #4a3932;
  color: #ffc093;
  border-color: #a47454;
}
.interactions h3 {
  margin-bottom: 8px;
}
.action {
  width: 100%;
  min-height: 36px;
  padding: 0;
  gap: 9px;
  font-size: 13px;
  text-align: left;
}
.action:hover > span {
  color: #ffbd93;
}
.action small {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid #45545e;
  border-radius: 4px;
  font-size: 11px;
  color: #b4c2c3;
}
.switch {
  margin-left: auto;
  width: 29px;
  height: 16px;
  background: #42515b;
  border-radius: 9px;
  padding: 3px;
}
.switch:after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background: #b8c2c1;
  border-radius: 50%;
  transition: transform 0.18s;
}
.action[aria-pressed="true"] .switch {
  background: #ae7956;
}
.action[aria-pressed="true"] .switch:after {
  transform: translateX(13px);
  background: #ffe0bd;
}
.stage-bottom {
  position: absolute;
  bottom: clamp(15px, 3.3vh, 38px);
  left: clamp(20px, 3.5vw, 64px);
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.hints {
  gap: 17px;
  font-size: 12px;
  color: #a9b9bc;
}
.hints span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hints i {
  width: 16px;
  height: 16px;
  color: #c0cfcc;
}
.camera-tools {
  height: 35px;
  border: 1px solid #43545f;
  background: #1a2a35d9;
  border-radius: 7px;
  pointer-events: auto;
}
.camera-tools button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  border-radius: 5px;
}
.camera-tools i {
  width: 16px;
  height: 16px;
}
.camera-tools > span {
  background: #45545d;
  width: 1px;
  height: 14px;
}
#loading,
#notice {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #50616b;
  background: #152630f2;
  color: #e7dfce;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
#loading {
  top: 51%;
}
#loading[hidden] {
  display: none;
}
#notice {
  bottom: 68px;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
#notice.show {
  opacity: 1;
}
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #6c7779;
  border-top-color: #efaa79;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 760px) and (max-height: 665px) {
  .topbar {
    height: 57px;
  }
  .console-title {
    height: 43px;
  }
  .section {
    padding: 11px 0;
  }
  .section h3 {
    margin-bottom: 8px;
  }
  .action {
    min-height: 30px;
  }
  .views button {
    height: 45px;
  }
  .scene-heading {
    top: 18px;
  }
  #console {
    max-height: calc(100% - 16px);
    overflow: auto;
  }
}
@media (max-width: 759px) {
  .topbar {
    height: 60px;
    padding: 0 16px;
    gap: 12px;
  }
  .brandmark {
    height: 32px;
    width: 32px;
    border-radius: 8px;
  }
  .brandmark i {
    width: 23px;
    height: 23px;
  }
  .brand {
    gap: 8px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand small {
    font-size: 8px;
  }
  .night-clock {
    border: 0;
    padding: 0;
    gap: 4px;
    font-size: 11px;
  }
  .night-clock span {
    display: none;
  }
  .header-tools {
    gap: 6px;
  }
  .sound-button {
    padding: 0 8px;
  }
  .sound-button,
  .icon-button {
    height: 31px;
  }
  .icon-button {
    width: 31px;
  }
  #stage {
    inset: 0 0 65px;
  }
  .scene-heading {
    top: 20px;
    left: 18px;
  }
  h1 {
    font-size: 36px;
    margin: 5px 0;
  }
  .eyebrow {
    font-size: 9px;
  }
  .scene-sub {
    font-size: 11px;
  }
  #console {
    top: auto;
    bottom: 10px;
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
    max-height: 64%;
    overflow: auto;
    border-radius: 12px;
  }
  .console-title {
    height: 45px;
    position: sticky;
    top: 0;
    z-index: 1;
    background: #22313a;
    padding: 0 16px;
  }
  .console-title h2 {
    font-size: 14px;
  }
  .window-pips {
    display: none;
  }
  #fold {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 34px;
    height: 34px;
  }
  #fold i {
    color: #b9c5c5;
  }
  #console.collapsed #console-body {
    display: none;
  }
  #console.collapsed #fold {
    transform: rotate(180deg);
  }
  .section {
    padding: 12px 0;
    margin: 0 16px;
  }
  .views button {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }
  .stage-bottom {
    left: 16px;
    right: 16px;
    bottom: 8px;
  }
  .hints {
    gap: 9px;
    font-size: 10px;
  }
  .hints i {
    width: 13px;
    height: 13px;
  }
  .camera-tools {
    height: 31px;
  }
  .camera-tools button {
    height: 28px;
    width: 29px;
  }
  #notice {
    bottom: 47px;
  }
  .section h3 {
    margin-bottom: 10px;
  }
}
@media (max-height: 460px) and (orientation: landscape) {
  #console {
    max-height: calc(100% - 10px);
    overflow: auto;
  }
  .scene-heading h1 {
    font-size: 26px;
  }
  .topbar {
    height: 45px;
  }
}

.detail-view .scene-heading {
  opacity: 0;
}
.scene-heading {
  transition: opacity 0.25s;
}
.hints b {
  font-weight: 400;
}
.touch-hint {
  display: none;
}
@media (max-width: 759px), (pointer: coarse) {
  .touch-hint {
    display: inline;
  }
  .wheel-hint {
    display: none;
  }
}
