.tempo-page {
  --accent: #bfc6f1;
  background: #131e28;
  color: #eeeade;
  margin: 0;
}
.tempo-page * {
  box-sizing: border-box;
}
.tempo-page button,
.tempo-page a {
  -webkit-tap-highlight-color: transparent;
}
.tempo-page button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.tempo-page button:focus-visible,
.tempo-page a:focus-visible,
.tempo-page input:focus-visible,
.tempo-page summary:focus-visible,
.tempo-page pre:focus-visible {
  outline: 2px solid #b9e3d1;
  outline-offset: 4px;
}
.tempo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4%;
  border-bottom: 1px solid #b2c4da18;
  gap: 20px;
}
.tempo-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.075em;
  text-decoration: none;
  color: #ede9db;
}
.tempo-brand > span {
  color: #c9c0e8;
  font-size: 31px;
  line-height: 1;
}
.tempo-brand small {
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.09em;
  color: #869bad;
  margin-left: 10px;
}
.tempo-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 11px;
}
.tempo-header nav a {
  color: #a9b9c5;
  text-decoration: none;
}
.tempo-header nav .selected {
  color: #e7d6e9;
}
.tempo-main {
  max-width: 1520px;
  margin: auto;
  padding: 0 4%;
}
.tempo-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 42px 0 30px;
}
.tempo-eyebrow {
  font: 9px/1.5 var(--mono, monospace);
  letter-spacing: 0.13em;
  color: #bac5d5;
}
.tempo-heading h1 {
  font: 500 clamp(36px, 4vw, 57px) / 1.06 var(--heading, sans-serif);
  letter-spacing: -2.8px;
  margin: 15px 0 0;
}
.tempo-heading h1 em {
  font-style: normal;
  color: #c2b7d7;
}
.tempo-heading > p {
  max-width: 320px;
  color: #a6b4c0;
  font-size: 13px;
  line-height: 1.85;
  margin: 0 0 4px;
}
.tempo-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  border: 1px solid #5264746b;
  border-radius: 14px;
  overflow: hidden;
}
.tempo-viewport {
  position: relative;
  height: 830px;
  min-height: 700px;
  background: #1b2839;
  overflow: hidden;
  isolation: isolate;
}
.tempo-viewport::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(
    #111c2715,
    transparent 60%,
    #1421308c 77%,
    #142130 100%
  );
  z-index: 1;
}
#scene {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.tempo-scene-caption {
  position: absolute;
  left: 27px;
  top: 28px;
  z-index: 2;
  pointer-events: none;
}
.tempo-scene-caption .tempo-eyebrow {
  color: #adbdcc;
  font-size: 8px;
}
.tempo-scene-caption h2 {
  font: 500 32px/1.1 var(--heading, sans-serif);
  letter-spacing: -1.4px;
  margin: 9px 0 10px;
}
.tempo-scene-caption p {
  color: #b3c2ce;
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}
.tempo-scene-tools {
  position: absolute;
  right: 20px;
  top: 26px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.tempo-scene-tools button {
  border: 1px solid #ffffff23;
  border-radius: 5px;
  font-size: 9px;
  padding: 9px 10px;
  background: #182635b8;
  backdrop-filter: blur(8px);
}
.tempo-scene-tools [aria-pressed="true"] {
  color: #b4e8d0;
  border-color: #b4e8d074;
}
.tempo-garden-status {
  position: absolute;
  top: 147px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #97acbb;
  font: 7px var(--mono, monospace);
  letter-spacing: 0.09em;
  z-index: 2;
}
.tempo-garden-status > span:first-child {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a8d7c5;
}
.tempo-cast-message {
  position: absolute;
  z-index: 2;
  bottom: 247px;
  left: 24px;
  right: 24px;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  min-height: 18px;
  color: #dce5e2;
  text-shadow: 0 2px 14px #10202d;
}
.tempo-spells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 24px;
  right: 24px;
}
.tempo-spell {
  --progress: 1;
  text-align: left;
  display: block;
  background: linear-gradient(155deg, #243549e8, #1d2b3de8);
  border: 1px solid #c6cbef38;
  border-radius: 9px;
  padding: 15px 15px 13px;
  box-shadow: 0 12px 30px #0a172330;
  transition:
    border-color 0.16s,
    transform 0.16s;
  min-width: 0;
}
.tempo-spell:hover {
  border-color: var(--spell);
  transform: translateY(-2px);
}
.tempo-spell[aria-disabled="true"] {
  border-color: #c6cbef24;
}
.spell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.spell-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  font-size: 26px;
  color: var(--spell);
  background:
    radial-gradient(closest-side, #27364a 82%, transparent 83%),
    conic-gradient(var(--spell) calc(var(--progress) * 1turn), #bfc4d521 0);
}
.spell-top kbd {
  border: 1px solid #bac7d42a;
  border-radius: 4px;
  padding: 4px 7px;
  font: 9px var(--mono, monospace);
  color: #b4c3d2;
}
.tempo-spell > strong {
  display: block;
  font: 500 15px/1.2 var(--heading, sans-serif);
  letter-spacing: -0.35px;
  color: #e9e6de;
}
.spell-description {
  display: block;
  color: #96aabd;
  font-size: 8px;
  line-height: 1.6;
  margin: 6px 0 12px;
}
.spell-charges {
  display: flex;
  gap: 5px;
  margin-bottom: 9px;
  min-height: 12px;
}
.spell-charges i {
  width: 9px;
  height: 12px;
  display: block;
  background: var(--spell);
  clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0 70%, 0 30%);
}
.spell-charges i.empty {
  background: #a0afc329;
}
.spell-ready {
  display: block;
  font-size: 8px;
  color: #c0cdd6;
  margin-bottom: 7px;
  font-variant-numeric: tabular-nums;
}
.spell-track {
  display: block;
  height: 3px;
  background: #afc0d125;
  border-radius: 3px;
  overflow: hidden;
}
.spell-track i {
  display: block;
  height: 100%;
  background: var(--spell);
  width: 100%;
}
.spell-recharge {
  display: block;
  font-size: 7px;
  color: #839daf;
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
}
.tempo-desk {
  background: #172330;
  border-left: 1px solid #5264746b;
  padding: 25px 23px;
  overflow: auto;
  max-height: 830px;
}
.desk-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.desk-title .tempo-eyebrow {
  color: #98abbb;
  font-size: 8px;
}
.desk-title h2 {
  font: 500 17px/1.3 var(--heading, sans-serif);
  letter-spacing: -0.45px;
  margin: 10px 0 0;
}
.tempo-chip {
  display: block;
  font: 6px/1.2 var(--mono, monospace);
  padding: 6px 7px;
  border: 1px solid #b5e7d72a;
  border-radius: 4px;
  color: #a6d6c4;
  white-space: nowrap;
}
.tempo-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 28px 0 21px;
}
.tempo-metrics span {
  font: 7px/1.5 var(--mono, monospace);
  letter-spacing: 0.07em;
  color: #8a9fb0;
}
.tempo-metrics strong {
  display: block;
  font: 400 32px/1.4 var(--heading, sans-serif);
  letter-spacing: -1.3px;
  font-variant-numeric: tabular-nums;
  color: #d5dbe3;
}
.tempo-metrics small {
  font-size: 13px;
  color: #8299ac;
  margin-left: 3px;
}
.tempo-run-controls {
  display: flex;
  gap: 7px;
}
.tempo-run-controls button {
  flex: 1;
  padding: 10px 7px;
  border-radius: 5px;
  border: 1px solid #c0cede2c;
  background: #243344;
  font-size: 9px;
}
.tempo-run-controls button[aria-pressed="true"] {
  color: #c7d5ef;
  border-color: #c7d5ef73;
}
.tempo-control {
  display: block;
  font-size: 10px;
  color: #c2ced9;
  margin: 24px 0;
}
.tempo-control output,
.tuning-content output {
  float: right;
  color: #b8bfdc;
  font: 9px var(--mono, monospace);
}
.tempo-page input[type="range"] {
  display: block;
  width: 100%;
  accent-color: #b4bce3;
  height: 3px;
  margin: 15px 0 0;
  cursor: pointer;
}
.tempo-global {
  border-top: 1px solid #bdcde020;
  padding: 20px 0 16px;
}
.tempo-global > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tempo-global span {
  font: 7px var(--mono, monospace);
  letter-spacing: 0.05em;
  color: #9aaebf;
}
.tempo-global strong {
  font-size: 9px;
  font-weight: 400;
  color: #c3d3d9;
}
.tempo-global-track {
  height: 3px;
  background: #bfcbe626;
  margin-top: 11px;
}
.tempo-global-track i {
  display: block;
  height: 100%;
  width: 100%;
  background: #c6c8ef;
}
.tempo-global p {
  font-size: 9px;
  color: #879faf;
  line-height: 1.7;
  margin: 10px 0 0;
}
.tempo-desk details {
  border-top: 1px solid #bdcde020;
}
.tempo-desk summary {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 10px;
  color: #bccddb;
  cursor: pointer;
  list-style: none;
}
.tempo-desk summary::-webkit-details-marker {
  display: none;
}
.tempo-desk summary > span {
  color: #8ca3b5;
  font-size: 14px;
  line-height: 1;
}
.tempo-desk details[open] summary > span {
  transform: rotate(45deg);
}
.tuning-content > p {
  font-size: 9px;
  line-height: 1.7;
  color: #849dad;
  margin: 0 0 17px;
}
.tuning-content > label {
  font-size: 9px;
  color: #becbd5;
  display: block;
  margin: 21px 0;
}
.tuning-content input[type="range"] {
  margin-top: 13px;
}
.tuning-content label.tempo-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 9px;
  line-height: 1.6;
}
.tempo-check input {
  margin-top: 2px;
  accent-color: #b6bfe4;
}
.tempo-primary {
  display: block;
  width: 100%;
  padding: 11px;
  border: 0;
  border-radius: 5px;
  font-size: 10px !important;
  background: #c8cde5;
  color: #1c2b3d !important;
  margin: 0 0 20px;
}
.tempo-desk pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #101c28;
  border: 1px solid #bfcbe518;
  border-radius: 5px;
  padding: 12px;
  color: #adcabf;
  font: 8px/1.8 var(--mono, monospace);
  max-height: 210px;
  overflow: auto;
  margin: 0 0 12px;
}
#event-trace {
  padding: 0;
  margin: 12px 0;
  list-style: none;
  color: #8fa6b8;
  font: 7px/1.8 var(--mono, monospace);
}
#event-trace li {
  margin: 5px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #c0d0e510;
}
#event-trace b {
  color: #c4cce1;
  font-weight: 400;
}
.tempo-save-buttons {
  display: flex;
  gap: 6px;
  padding-bottom: 18px;
}
.tempo-save-buttons button {
  width: 50%;
  padding: 9px 7px;
  border: 1px solid #c0cede2c;
  background: #223344;
  border-radius: 5px;
  font-size: 8px;
}
.tempo-downloads {
  border-top: 1px solid #bdcde020;
  padding-top: 8px;
}
.tempo-downloads a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 9px;
  color: #a4bac9;
  text-decoration: none;
}
.tempo-downloads a:first-child {
  color: #cecbe7;
}
.tempo-error {
  position: absolute;
  z-index: 8;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, 90%);
  border: 1px solid #cba2aa;
  border-radius: 8px;
  background: #442f3a;
  color: #f6d8d6;
  font-size: 13px;
  padding: 20px;
  line-height: 1.7;
}
.tempo-explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 56px 0 44px;
}
.tempo-explainer h2 {
  font: 500 30px/1.17 var(--heading, sans-serif);
  letter-spacing: -1.2px;
  margin: 14px 0 0;
  color: #d5dce0;
}
.tempo-explainer p {
  font-size: 12px;
  line-height: 1.9;
  color: #9cb0bf;
  margin: 0 0 13px;
}
.tempo-explainer pre {
  margin-top: 20px;
  padding: 17px 20px;
  border: 1px solid #bbcbe51c;
  background: #172330;
  border-radius: 7px;
  font: 10px/1.8 var(--mono, monospace);
  color: #b9ccc6;
  overflow: auto;
}
.tempo-footer {
  padding: 23px 0 32px;
  border-top: 1px solid #b2c4da18;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #7f99ac;
  font-size: 9px;
  line-height: 1.6;
}
.tempo-footer p {
  margin: 0;
}
.tempo-footer a {
  color: #afbfce;
  text-decoration: none;
}
@media (max-width: 1120px) {
  .tempo-lab {
    grid-template-columns: minmax(0, 1fr) 292px;
  }
  .tempo-desk {
    padding: 24px 18px;
  }
  .tempo-spells {
    left: 17px;
    right: 17px;
    gap: 8px;
  }
  .tempo-spell {
    padding: 12px 10px;
  }
  .tempo-spell > strong {
    font-size: 13px;
  }
  .spell-description {
    font-size: 7px;
  }
  .tempo-scene-tools {
    top: 182px;
    left: 26px;
    right: auto;
  }
  .tempo-brand small {
    display: none;
  }
}
@media (max-width: 850px) {
  .tempo-lab {
    grid-template-columns: 1fr;
  }
  .tempo-desk {
    border-left: 0;
    border-top: 1px solid #5264746b;
    max-height: none;
    padding: 25px;
  }
  .tempo-viewport {
    height: 760px;
    min-height: 0;
  }
  .tempo-desk .tempo-metrics {
    max-width: 400px;
  }
  .tempo-spells {
    left: 23px;
    right: 23px;
    gap: 12px;
  }
  .tempo-spell {
    padding: 16px;
  }
  .tempo-spell > strong {
    font-size: 15px;
  }
  .spell-description {
    font-size: 9px;
  }
  .tempo-heading > p {
    max-width: 270px;
    font-size: 11px;
  }
  .tempo-explainer {
    gap: 30px;
  }
  .tempo-scene-tools {
    top: 28px;
    right: 23px;
    left: auto;
  }
}
@media (max-width: 590px) {
  .tempo-header {
    padding: 17px 5%;
    gap: 12px;
    flex-wrap: wrap;
  }
  .tempo-brand {
    font-size: 11px;
  }
  .tempo-header nav {
    font-size: 10px;
    gap: 18px;
  }
  .tempo-main {
    padding: 0 5%;
  }
  .tempo-heading {
    display: block;
    padding: 29px 0 24px;
  }
  .tempo-heading h1 {
    font-size: 40px;
    letter-spacing: -2px;
  }
  .tempo-heading > p {
    margin-top: 19px;
    max-width: 310px;
    line-height: 1.75;
  }
  .tempo-viewport {
    height: 715px;
  }
  .tempo-scene-caption {
    left: 20px;
    top: 23px;
  }
  .tempo-scene-caption h2 {
    font-size: 28px;
  }
  .tempo-scene-caption p {
    font-size: 10px;
  }
  .tempo-garden-status {
    left: 20px;
    top: 136px;
    font-size: 6px;
  }
  .tempo-scene-tools {
    top: 169px;
    left: 19px;
    right: auto;
  }
  .tempo-scene-tools button {
    font-size: 8px;
    padding: 7px 8px;
  }
  .tempo-spells {
    left: 12px;
    right: 12px;
    bottom: 15px;
    gap: 7px;
  }
  .tempo-spell {
    padding: 11px 8px;
  }
  .spell-icon {
    height: 31px;
    width: 31px;
    font-size: 22px;
  }
  .spell-top kbd {
    font-size: 8px;
    padding: 3px 5px;
  }
  .tempo-spell > strong {
    font-size: 11px;
    letter-spacing: -0.3px;
  }
  .spell-description {
    display: none;
  }
  .spell-top {
    margin-bottom: 12px;
  }
  .spell-charges {
    margin-top: 12px;
    margin-bottom: 9px;
    gap: 4px;
  }
  .spell-ready {
    font-size: 7px;
    min-height: 24px;
    line-height: 1.6;
  }
  .spell-recharge {
    font-size: 6px;
    line-height: 1.5;
  }
  .tempo-cast-message {
    bottom: 219px;
    left: 15px;
    right: 15px;
    font-size: 10px;
  }
  .tempo-desk {
    padding: 24px 20px;
  }
  .tempo-explainer {
    display: block;
    padding: 34px 0;
  }
  .tempo-explainer h2 {
    font-size: 26px;
    margin-bottom: 24px;
  }
  .tempo-explainer p {
    font-size: 11px;
  }
  .tempo-footer {
    display: block;
    font-size: 8px;
  }
  .tempo-footer a {
    display: block;
    margin-top: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tempo-page * {
    transition: none !important;
  }
  .tempo-spell:hover {
    transform: none;
  }
}
.tempo-calm * {
  transition: none !important;
}
.tempo-calm .tempo-spell:hover {
  transform: none;
}
