@font-face {
  font-family: Cormorant;
  src: url('/assets/fonts/cormorant.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/manrope.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #06101c;
  --cream: #f3e9d8;
  --gold: #e9cb91;
  --muted: #a2afbb;
  --line: #8babc030;
  --mint: #b8f4da;
  --serif: Cormorant,Georgia,serif;
  --sans: Manrope,system-ui,sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--ink);
}
body {
  margin: 0;
  color: var(--cream);
  font: 14px/1.65 var(--sans);
  min-height: 100svh;
  overflow-x: hidden;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  background: none;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: .4;
}
button,
a,
input {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 5px;
}
button {
  transition: background .2s,opacity .2s,box-shadow .2s,transform .2s;
}
button:hover:not(:disabled) {
  color: #fff8e9;
}
a {
  color: var(--gold);
  text-underline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
button svg {
  display: block;
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none!important;
}
.sky-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #07121e url('/assets/sky-landscape.webp') center bottom/cover
    no-repeat;
}
.sky-backdrop:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,#02081222 0%,transparent 55%,#030c1666
    100%);
}
.topbar {
  height: 96px;
  padding: 0 3.2%;
  display: flex;
  align-items: center;
  gap: 26px;
}
.wordmark {
  font: 500 23px var(--serif);
  letter-spacing: .49em;
  padding: 12px 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand-star {
  font-size: 25px;
  color: var(--gold);
  letter-spacing: 0;
}
.header-divider {
  height: 19px;
  width: 1px;
  background: var(--line);
}
.location-label {
  font-size: 14px;
  letter-spacing: .06em;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-actions #progress-label {
  font-size: 13px;
  letter-spacing: .045em;
  color: #c0c9cf;
}
.top-actions strong {
  font-weight: 500;
  color: var(--cream);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 21px;
}
.icon-button:hover {
  background: #a2c4dc0c;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: .3em;
  font-weight: 500;
  color: var(--gold);
}
.quiet {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .025em;
}
.tiny {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .035em;
  margin-top: 3px;
}
#sky-screen {
  display: grid;
  grid-template-columns: minmax(0,1fr) 352px;
  gap: 22px;
  min-height: calc(100svh - 96px);
  padding: 0 2.5% 24px 3.2%;
  max-width: 1920px;
  margin: auto;
}
.atlas {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chapter-heading {
  padding: 18px 0 0 14px;
  z-index: 1;
}
.chapter-heading h1 {
  font-size: 45px;
  line-height: 1.12;
  margin: 7px 0 9px;
  letter-spacing: .02em;
}
.chapter-heading .eyebrow {
  font-size: 9px;
  color: #d2bb93;
}
.constellations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 420px;
  padding: 0 3% 10px;
  align-items: center;
  gap: 0 8%;
  position: relative;
}
.constellations:before {
  content: "";
  position: absolute;
  inset: 9% 10% 17%;
  border: 1px dashed #d4bf7d1c;
  border-radius: 50%;
  transform: rotate(-28deg);
  pointer-events: none;
}
.constellation-node {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 205px;
  max-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 50%;
  isolation: isolate;
}
.constellation-node .figure {
  width: min(100%,255px);
  aspect-ratio: 1;
  position: relative;
  max-height: calc(100% - 45px);
}
.figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .43;
  filter: saturate(.62);
  transition: opacity .4s;
}
.figure svg {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  overflow: visible;
}
.constellation-node .figure:before {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: all .35s;
}
.constellation-node.selected .figure:before {
  border-color: #afe6ce70;
  box-shadow: 0 0 24px #93e6c31c,inset 0 0 25px #93e6c30b;
}
.constellation-node.selected .figure img,
.constellation-node:hover .figure img {
  opacity: .7;
}
.constellation-node.locked .figure img {
  opacity: .23;
}
.constellation-node.locked .figure svg {
  opacity: .45;
}
.node-name {
  font: 400 26px/1.1 var(--serif);
  letter-spacing: .03em;
  margin-top: -4px;
}
.node-status {
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #b9c4cc99;
  margin-top: 7px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.node-status svg {
  width: 9px;
  height: 9px;
}
.constellation-node.selected .node-status {
  color: var(--mint);
}
.constellation-node.awake .node-status {
  color: var(--gold);
}
.atlas-footer {
  min-height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 12px 0 0;
  gap: 10px;
}
.companion-button {
  border: 1px solid var(--line);
  border-radius: 50px;
  height: 58px;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 0 20px 0 55px;
  position: relative;
  background: #0d1c2866;
  font-size: 12px;
  letter-spacing: .04em;
  min-width: 250px;
}
.companion-button img {
  position: absolute;
  left: -18px;
  top: -13px;
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 0 12px #dcf6d834);
}
.companion-button:hover {
  background: #21354477;
  border-color: #bdddd855;
}
.chevron {
  margin-left: 20px;
  color: var(--gold);
}
.chapter-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}
.chapter-nav .icon-button {
  font-size: 16px;
}
.chapter-dot {
  width: 7px;
  height: 7px;
  border: 1px solid #d5bf965c;
  border-radius: 50%;
  margin: 0 5px;
  display: inline-block;
}
.chapter-dot.current {
  background: var(--gold);
  box-shadow: 0 0 10px #f6cd8855;
}
.detail-panel {
  border: 1px solid #7e9aaf46;
  border-radius: 20px;
  background: linear-gradient(150deg,#0b17249c,#081320d6);
  box-shadow: 0 12px 80px #00000015,inset 0 0 40px #8ab0d203;
  padding: 32px 26px 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  align-self: stretch;
  min-height: 635px;
  position: relative;
  overflow: hidden;
}
.detail-panel:before {
  content: "";
  width: 240px;
  height: 240px;
  position: absolute;
  top: 80px;
  background: radial-gradient(circle,#f0cb780c,transparent 68%);
  pointer-events: none;
}
.detail-panel h2 {
  font-size: 43px;
  letter-spacing: .14em;
  line-height: 1.15;
  margin: 15px 0 3px;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.detail-panel .subtitle {
  font-size: 13px;
  letter-spacing: .09em;
  color: #d1d7da;
}
.detail-art {
  position: relative;
  width: 100%;
  max-width: 245px;
  aspect-ratio: 1;
  margin: 8px 0 0;
}
.detail-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px #ccb5761c);
  opacity: .76;
}
.detail-art svg {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  overflow: visible;
}
.detail-status {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .02em;
  margin: 0 0 4px;
}
.detail-description {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 260px;
  min-height: 39px;
}
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 42px;
  width: 100%;
  margin: 9px 0 15px;
  mask-image: linear-gradient(90deg,transparent,black 15%,black
    85%,transparent);
}
.waveform i {
  width: 2px;
  background: linear-gradient(180deg,#ffe9b5,#ceb17a50);
  box-shadow: 0 0 5px #efcb7730;
  border-radius: 2px;
}
.waveform.playing i {
  animation: wave 1.3s ease-in-out infinite alternate;
  animation-delay: calc(var(--i)*-.09s);
}
.primary-button {
  border: 1px solid #f9e6b4;
  border-radius: 40px;
  background: linear-gradient(175deg,#faedcb,#e3c996);
  color: #251f1a!important;
  min-height: 48px;
  padding: 11px 27px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 0 24px #f2d49619,inset 0 1px 2px #fff8dc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.primary-button:hover:not(:disabled) {
  background: linear-gradient(175deg,#fff5da,#efd4a1);
  box-shadow: 0 0 30px #f2d49638;
  transform: translateY(-1px);
}
.detail-panel .primary-button {
  width: 100%;
}
.secondary-button {
  border: 1px solid #a5b9c43a;
  border-radius: 30px;
  padding: 10px 25px;
  min-height: 43px;
  font-size: 12px;
  letter-spacing: .045em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #14232f42;
}
.secondary-button:hover:not(:disabled) {
  border-color: #c4d8df77;
  background: #263a4855;
}
.secondary-button svg {
  width: 16px;
  height: 16px;
}
.detail-panel .secondary-button {
  margin-top: 12px;
  width: 68%;
}
.text-button {
  font-size: 11px;
  letter-spacing: .05em;
  color: #c5cbd0;
  padding: 12px 3px;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: #c5bfa877;
}
.story-link {
  margin: 8px 0 13px;
}
.reward {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .035em;
}
.reward-icon {
  font-size: 25px;
  color: #dfcdab;
  line-height: 1;
  width: 38px;
  text-align: center;
}
.reward small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.medals {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 7px 0 6px;
  color: var(--gold);
  font-size: 12px;
}
.medals .unearned {
  color: #79848c55;
}
#game-screen {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: linear-gradient(180deg,#07111c22,#07111c33);
}
body.playing .topbar {
  position: relative;
  z-index: 3;
  pointer-events: none;
}
body.playing .topbar button {
  pointer-events: auto;
}
body.playing .location-label,
body.playing .topbar > .header-divider,
body.playing .top-actions {
  visibility: hidden;
}
#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}
.game-heading {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  width: 50%;
}
.game-heading h1 {
  font-size: 38px;
  letter-spacing: .23em;
  line-height: 1.3;
  text-transform: uppercase;
}
.game-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 6px;
  color: #aeb9c2;
}
.game-heading #star-count {
  font-size: 13px;
  letter-spacing: .2em;
  color: #d1d8df;
  margin-top: 7px;
}
.pause-button {
  position: absolute;
  right: 3.5%;
  top: 27px;
  border: 1px solid #b7c4cc77;
  width: 49px;
  height: 49px;
}
.game-bottom {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  width: min(90%,490px);
}
#launch-hint {
  font-size: 19px;
  letter-spacing: .15em;
}
#hint-detail {
  margin-top: 5px;
  font-size: 10px;
  min-height: 17px;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 12px auto 8px;
  width: 165px;
  color: var(--gold);
  font-size: 15px;
}
.ornament:before,
.ornament:after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg,transparent,var(--gold));
}
.ornament:after {
  transform: rotate(180deg);
}
.resonance-label {
  font-size: 8px;
  letter-spacing: .3em;
}
.game-bottom #resonance {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
#resonance i {
  height: 20px;
  width: 3px;
  border-radius: 3px;
  background: #69818d44;
}
#resonance i.active {
  background: #f8daa2;
  box-shadow: 0 0 11px #f5c77788;
}
.game-back {
  position: absolute;
  bottom: 28px;
  left: 3.5%;
  font-size: 11px;
}
dialog {
  background: linear-gradient(135deg,#0e1c2af7,#07131ffb);
  color: var(--cream);
  border: 1px solid #8398a955;
  border-radius: 21px;
  box-shadow: 0 30px 160px #0008;
  padding: 38px;
  width: min(92vw,550px);
  max-height: 88svh;
  overflow-y: auto;
}
dialog::backdrop {
  background: #020811ac;
  backdrop-filter: blur(9px);
}
.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 25px;
  z-index: 2;
}
dialog h2 {
  font-size: 39px;
  line-height: 1.15;
  letter-spacing: .025em;
  margin: 8px 0 13px;
}
dialog .eyebrow {
  font-size: 9px;
}
.modal-copy {
  font-size: 12px;
  line-height: 1.9;
  color: #b8c2cb;
  margin: 14px 0;
}
.dialog-center {
  text-align: center;
}
.dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 23px;
}
.dialog-actions .text-button {
  margin: auto;
}
.setting {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  font-size: 12px;
}
.setting label {
  flex: 1;
}
.setting input[type=range] {
  accent-color: var(--gold);
  width: 50%;
  height: 25px;
}
.setting input[type=checkbox] {
  accent-color: var(--gold);
  width: 19px;
  height: 19px;
}
.settings-footer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 23px;
}
.danger-button {
  color: #e4ae9e;
  border-color: #e4ae9e44;
  margin-top: 16px;
}
.fact {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #7d9ca709;
  margin: 19px 0;
  text-align: left;
  font-size: 12px;
  color: #d5dbe0;
}
.fact .eyebrow {
  margin-bottom: 9px;
}
.fact a {
  display: inline-block;
  margin-top: 12px;
  font-size: 10px;
}
.story-disclaimer {
  font-size: 10px;
  color: var(--muted);
}
.companion-preview {
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse,#b5d7c60e,transparent 60%);
  position: relative;
}
.companion-preview img {
  width: 165px;
  height: 165px;
  object-fit: contain;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 13px #cbf4cd22);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  margin: 18px 0;
}
.form-choice {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  padding: 7px 4px 10px;
  position: relative;
  font-size: 9px;
  line-height: 1.5;
}
.form-choice img {
  width: 100%;
  height: 62px;
  object-fit: contain;
}
.form-choice.selected {
  border-color: #b9f0d5aa;
  background: #b9f0d50a;
}
.form-choice.locked img {
  opacity: .3;
  filter: grayscale(1);
}
.form-choice.locked:after {
  content: "◇";
  position: absolute;
  right: 5px;
  top: 2px;
  color: var(--muted);
}
.choice-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 18px;
  letter-spacing: .06em;
}
.color-options {
  display: flex;
  gap: 14px;
  padding: 12px 0;
}
.color-choice {
  background: var(--swatch);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #142332;
  outline: 1px solid transparent;
}
.color-choice.selected {
  outline-color: var(--cream);
}
.color-choice:disabled {
  opacity: .18;
}
.trail-options {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.trail-choice {
  font-size: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.trail-choice.selected {
  border-color: var(--gold);
  color: var(--gold);
}
.reward-notice {
  color: var(--gold);
  font-size: 11px;
  margin-top: 13px;
}
.complete-symbol {
  font: 60px var(--serif);
  color: #f4d69d;
  text-shadow: 0 0 30px #f2cc8577;
  line-height: 1;
  margin: 4px 0 14px;
}
.achievement-list {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin: 23px 0;
}
.achievement {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px 5px;
  font-size: 10px;
  color: #a2acb5;
}
.achievement span {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}
.achievement.earned {
  color: var(--gold);
  border-color: #d6b57166;
  background: #c6a76607;
}
.achievement small {
  font-size: 9px;
  display: block;
  margin-top: 5px;
  line-height: 1.5;
}
.resume-note {
  font-size: 10px;
  color: var(--mint);
  margin-bottom: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%,12px);
  background: #132735f5;
  border: 1px solid #acc6ce44;
  padding: 12px 22px;
  border-radius: 30px;
  color: var(--cream);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s,transform .25s;
  z-index: 8;
  max-width: 90vw;
  text-align: center;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%,0);
}
.noscript {
  padding: 30px;
  background: #07121e;
}
.reduced-motion * {
  animation: none!important;
  transition: none!important;
}
@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}
@keyframes wave {
  to {
    transform: scaleY(.4);
    opacity: .55;
  }
}
@media (min-width:1500px) {
  #sky-screen {
    grid-template-columns: minmax(0,1fr) 410px;
    gap: 35px;
  }
  .detail-panel {
    padding: 40px 34px 30px;
  }
  .detail-art {
    max-width: 300px;
  }
  .detail-panel h2 {
    font-size: 49px;
  }
  .constellation-node .figure {
    width: 300px;
  }
  .chapter-heading {
    padding-top: 24px;
  }
  .chapter-heading h1 {
    font-size: 52px;
  }
  .node-name {
    font-size: 29px;
  }
}
@media (max-width:1050px) and (min-width:701px) {
  #sky-screen {
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 13px;
    padding-left: 2%;
    padding-right: 2%;
  }
  .detail-panel {
    padding: 27px 20px 22px;
  }
  .detail-panel h2 {
    font-size: 35px;
  }
  .detail-art {
    max-width: 210px;
  }
  .constellations {
    gap: 0;
    padding: 0;
  }
  .constellation-node .figure {
    width: 205px;
  }
  .node-name {
    font-size: 23px;
  }
  .companion-button {
    min-width: 210px;
    padding-right: 10px;
  }
  .companion-button .tiny {
    font-size: 8px;
  }
  .atlas-footer {
    padding: 0;
  }
  .chapter-nav {
    gap: 0;
  }
  .chapter-nav .icon-button {
    width: 30px;
  }
  .topbar {
    gap: 16px;
  }
  .wordmark {
    font-size: 20px;
    gap: 16px;
  }
  .top-actions {
    gap: 10px;
  }
}
@media (max-width:700px) {
  body {
    font-size: 13px;
  }
  .sky-backdrop {
    background-image: url('/assets/sky-portrait.webp');
    background-position: center bottom;
  }
  .topbar {
    height: 77px;
    padding: 0 20px;
    gap: 12px;
  }
  .wordmark {
    font-size: 19px;
    letter-spacing: .38em;
    gap: 0;
  }
  .brand-star,
  .topbar > .header-divider,
  .location-label,
  .top-actions .header-divider {
    display: none;
  }
  .top-actions {
    gap: 2px;
  }
  .top-actions #progress-label {
    font-size: 10px;
    margin-right: 7px;
    max-width: 85px;
    line-height: 1.5;
    text-align: right;
  }
  .top-actions .icon-button {
    width: 34px;
    height: 40px;
  }
  .top-actions svg {
    width: 18px;
  }
  .topbar .wordmark {
    min-height: 44px;
  }
  #sky-screen {
    display: flex;
    flex-direction: column;
    padding: 0 18px 26px;
    gap: 17px;
    min-height: calc(100svh - 77px);
  }
  .chapter-heading {
    padding: 7px 0 4px 5px;
  }
  .chapter-heading h1 {
    font-size: 36px;
    margin: 7px 0;
  }
  .chapter-heading .eyebrow {
    font-size: 8px;
  }
  .chapter-heading .quiet {
    font-size: 10px;
  }
  .constellations {
    padding: 0 0 2px;
    gap: 0 12px;
    min-height: 365px;
  }
  .constellation-node {
    min-height: 175px;
    max-height: 220px;
    padding: 0;
  }
  .constellation-node .figure {
    width: 185px;
    max-width: 100%;
    max-height: 175px;
  }
  .node-name {
    font-size: 23px;
    margin-top: -9px;
  }
  .node-status {
    font-size: 7px;
    margin-top: 5px;
  }
  .atlas-footer {
    min-height: 77px;
    align-items: center;
    padding: 0 0 0 10px;
  }
  .companion-button {
    height: 48px;
    min-width: 203px;
    padding: 0 12px 0 50px;
    font-size: 11px;
  }
  .companion-button img {
    width: 76px;
    height: 76px;
    left: -15px;
    top: -14px;
  }
  .companion-button .tiny {
    font-size: 8px;
  }
  .companion-button .chevron {
    margin-left: 12px;
  }
  .chapter-nav {
    gap: 0;
    margin: 0 -5px 0 0;
  }
  .chapter-nav .icon-button {
    width: 27px;
    font-size: 15px;
  }
  .chapter-dot {
    width: 5px;
    height: 5px;
    margin: 0 3px;
  }
  .detail-panel {
    min-height: 0;
    padding: 23px 24px 20px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 100px 1fr;
    column-gap: 16px;
    text-align: left;
    align-items: center;
    overflow: visible;
  }
  .detail-panel:before {
    display: none;
  }
  .detail-panel > .eyebrow {
    grid-column: 2;
    font-size: 8px;
    letter-spacing: .22em;
  }
  .detail-panel h2 {
    grid-column: 2;
    font-size: 30px;
    margin: 5px 0 2px;
    letter-spacing: .08em;
    overflow-wrap: normal;
  }
  .detail-panel > .subtitle {
    grid-column: 2;
    font-size: 11px;
  }
  .detail-art {
    grid-column: 1;
    grid-row: 1/5;
    width: 112px;
    margin-left: -9px;
    align-self: center;
    margin-top: 0;
  }
  .detail-status {
    grid-column: 1/-1;
    font-size: 22px;
    text-align: center;
    margin-top: 17px;
  }
  .detail-description {
    grid-column: 1/-1;
    max-width: none;
    text-align: center;
    font-size: 11px;
    min-height: 0;
    margin: 4px 0 14px;
  }
  .waveform {
    display: none;
  }
  .detail-panel .primary-button {
    grid-column: 1/-1;
    font-size: 12px;
    min-height: 47px;
  }
  .detail-panel .secondary-button {
    grid-column: 1/-1;
    margin: 12px auto 0;
    width: 65%;
    min-height: 41px;
  }
  .story-link {
    grid-column: 1/-1;
    justify-self: center;
    margin: 3px 0 8px;
  }
  .reward {
    grid-column: 1/-1;
    padding-top: 13px;
    justify-content: center;
  }
  .medals {
    grid-column: 2;
    justify-content: flex-start;
    margin: 5px 0 0;
  }
  .resume-note {
    grid-column: 1/-1;
    text-align: center;
    margin-top: 10px;
  }
  body.playing .wordmark {
    font-size: 14px;
    letter-spacing: .3em;
  }
  .game-heading {
    top: 87px;
    width: 80%;
  }
  .game-heading h1 {
    font-size: 29px;
  }
  .game-heading .eyebrow {
    font-size: 7px;
  }
  #star-count {
    font-size: 11px!important;
  }
  .pause-button {
    right: 20px;
    top: 23px;
    width: 39px;
    height: 39px;
  }
  .game-bottom {
    bottom: 32px;
  }
  .game-bottom #launch-hint {
    font-size: 17px;
  }
  #hint-detail {
    font-size: 9px;
  }
  .game-back {
    left: 20px;
    bottom: 9px;
    font-size: 9px;
  }
  .game-heading {
    top: 70px;
  }
  .game-heading h1 {
    font-size: 27px;
  }
  .game-heading .eyebrow {
    display: none;
  }
  dialog {
    padding: 30px 22px;
    border-radius: 18px;
  }
  dialog h2 {
    font-size: 33px;
  }
  .form-grid {
    gap: 5px;
  }
  .form-choice {
    font-size: 8px;
  }
  .form-choice img {
    height: 53px;
  }
  .color-options {
    gap: 12px;
  }
  .achievement {
    font-size: 9px;
  }
  .achievement small {
    font-size: 8px;
  }
  .game-bottom {
    bottom: 27px;
  }
  .game-back {
    bottom: 6px;
  }
  .ornament {
    margin-top: 9px;
    margin-bottom: 5px;
  }
  .resonance-label {
    font-size: 7px;
  }
}
@media (max-height:700px) and (min-width:701px) {
  .topbar {
    height: 75px;
  }
  #sky-screen {
    min-height: calc(100svh - 75px);
    padding-bottom: 15px;
  }
  .chapter-heading {
    padding-top: 4px;
  }
  .chapter-heading h1 {
    font-size: 34px;
  }
  .constellations {
    min-height: 340px;
  }
  .constellation-node {
    min-height: 160px;
  }
  .constellation-node .figure {
    max-width: 180px;
  }
  .node-name {
    font-size: 23px;
  }
  .detail-panel {
    min-height: 555px;
    padding-top: 20px;
  }
  .detail-art {
    max-width: 178px;
  }
  .detail-panel h2 {
    font-size: 34px;
  }
  .detail-status {
    font-size: 20px;
  }
  .waveform {
    height: 30px;
    margin: 7px 0 10px;
  }
  .atlas-footer {
    min-height: 70px;
  }
}
@media (max-height:520px) and (orientation:landscape) {
  .game-heading {
    left: 110px;
    top: 95px;
    width: 165px;
  }
  .game-heading h1 {
    font-size: 21px;
    letter-spacing: .12em;
  }
  .game-heading .eyebrow {
    display: none;
  }
  .game-bottom {
    left: auto;
    right: 15px;
    bottom: 70px;
    transform: none;
    width: 160px;
  }
  #launch-hint {
    font-size: 14px;
  }
  #hint-detail {
    font-size: 9px;
  }
  .game-back {
    bottom: 15px;
  }
  .ornament {
    width: 100px;
  }
  .pause-button {
    top: 17px;
    right: 20px;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,
  *:before,
  *:after {
    animation: none!important;
    transition: none!important;
  }
}
/* Keep long constellation names intact, and fit laptop-height skies. */
.detail-panel h2.long-name {
  font-size: 30px;
  letter-spacing: .08em;
  white-space: nowrap;
}
@media (max-height:850px) and (min-width:701px) {
  .topbar {
    height: 80px;
  }
  #sky-screen {
    min-height: calc(100svh - 80px);
    padding-bottom: 20px;
  }
  .chapter-heading {
    padding-top: 4px;
  }
  .chapter-heading h1 {
    font-size: 36px;
  }
  .constellations {
    min-height: 330px;
  }
  .constellation-node {
    min-height: 160px;
    max-height: 240px;
  }
  .constellation-node .figure {
    width: 205px;
  }
  .node-name {
    font-size: 24px;
  }
  .detail-panel {
    min-height: 0;
    padding: 24px 24px 18px;
  }
  .detail-panel h2 {
    margin-top: 10px;
    font-size: 36px;
  }
  .detail-panel h2.long-name {
    font-size: 28px;
  }
  .detail-art {
    max-width: 175px;
    margin-top: 3px;
  }
  .detail-status {
    font-size: 21px;
  }
  .detail-description {
    display: none;
  }
  .waveform {
    height: 28px;
    margin: 7px 0 12px;
  }
  .detail-panel .primary-button {
    min-height: 44px;
  }
  .detail-panel .secondary-button {
    min-height: 37px;
    margin-top: 10px;
    padding: 7px 20px;
  }
  .story-link {
    padding: 10px 3px;
    margin: 2px 0 10px;
  }
  .reward {
    padding-top: 12px;
  }
  .atlas-footer {
    min-height: 75px;
  }
}
@media (max-width:700px) {
  .detail-panel h2.long-name {
    font-size: 25px;
    letter-spacing: .025em;
  }
}
@media (min-width:701px) {
  #sky-screen {
    height: calc(100svh - 96px);
    min-height: 620px;
  }
  .constellations {
    grid-template-rows: minmax(0,1fr) minmax(0,1fr);
    min-height: 0;
  }
  .constellation-node {
    min-height: 0;
    height: 100%;
    max-height: none;
  }
  .constellation-node .figure {
    flex-shrink: 1;
    min-height: 0;
  }
}
@media (max-height:850px) and (min-width:701px) {
  #sky-screen {
    height: calc(100svh - 80px);
    min-height: 570px;
  }
  .constellations {
    min-height: 0;
  }
  .constellation-node .figure {
    max-height: calc(100% - 43px);
  }
}
body.playing .sky-backdrop:after {
  background: linear-gradient(180deg,#030b1644,#030b1677 62%,#030b1622);
}
@media (max-width:700px) {
  #sky-screen {
    padding-bottom: 265px;
  }
  .constellations {
    min-height: 310px;
  }
  .constellation-node {
    min-height: 150px;
    max-height: 165px;
  }
  .constellation-node .figure {
    width: 145px;
    max-height: 140px;
  }
  .detail-panel {
    position: fixed;
    z-index: 2;
    bottom: max(12px,env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    max-height: 38svh;
    overflow-y: auto;
    padding: 15px 20px 12px;
    grid-template-columns: 63px 1fr;
    column-gap: 14px;
    background: linear-gradient(145deg,#12202ef7,#091522fa);
    box-shadow: 0 -12px 60px #0005;
    backdrop-filter: blur(14px);
  }
  .detail-panel .detail-art {
    width: 77px;
    margin-left: -8px;
    grid-row: 1/4;
  }
  .detail-panel h2 {
    font-size: 26px;
    margin: 2px 0;
  }
  .detail-panel h2.long-name {
    font-size: 23px;
  }
  .detail-panel .detail-status,
  .detail-panel .detail-description,
  .detail-panel .reward {
    display: none;
  }
  .detail-panel .primary-button {
    margin-top: 12px;
    min-height: 43px;
    padding: 8px 22px;
  }
  .detail-panel .secondary-button {
    grid-column: 1/-1;
    min-height: 34px;
    margin-top: 8px;
    padding: 5px 18px;
    font-size: 10px;
    width: 60%;
  }
  .detail-panel .story-link {
    padding: 7px 3px 2px;
    margin: 0;
    font-size: 10px;
  }
  .detail-panel .resume-note {
    margin: 7px 0 -5px;
    font-size: 9px;
  }
  .detail-panel .medals {
    margin: 0;
    font-size: 10px;
  }
}
body.playing {
  overflow: hidden;
}
