@font-face {
  font-family: Dream;
  src: url("assets/serif-2.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Dream;
  src: url("assets/serif-0.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Sans;
  src: url("assets/sans-0.woff2") format("woff2");
  font-weight: 100 700; font-display: swap;
}
:root {
  --cream: #f0e9d5;
  --ink: #29463b;
  --line: #f0e9d52e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #243b35;
  color: var(--cream);
  font:
    12px Sans,
    Arial,
    sans-serif;
  overflow: hidden;
}
button,
input,
a {
  touch-action: manipulation;
}
/* The painting has its own zoom: no double-tap page zoom anywhere on this page (pinch page
   zoom is turned into painting zoom in world.js). */
html {
  touch-action: manipulation;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #f5d48a;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.stage {
  position: fixed;
  inset: 0;
  isolation: isolate;
  height: 100svh;
  overflow: hidden;
}
#world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #122b240a,
    transparent 18%,
    transparent 82%,
    #122b240e
  );
  z-index: 1;
}
.gallery-scene {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse at 70% 35%, #71816b66, transparent 65%),
    linear-gradient(115deg, #243b35, #394f43);
  pointer-events: none;
  will-change: transform, opacity;
}
.gallery-light {
  position: absolute;
  top: -40%;
  left: 45%;
  width: 60%;
  height: 130%;
  background: radial-gradient(ellipse, #d9c99b1a, transparent 65%);
  transform: rotate(-25deg);
}
.gallery-frame {
  position: absolute;
  right: 11%;
  top: 50%;
  height: 79svh;
  max-width: 42vw;
  transform: translateY(-50%) rotate(-1.2deg);
  margin: 0;
  filter: drop-shadow(15px 25px 18px #0a201c99);
}
.gallery-frame img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.gallery-frame figcaption {
  position: absolute;
  bottom: -26px;
  right: 0;
  font-size: 6px;
  letter-spacing: 2.2px;
  white-space: nowrap;
  color: #dfdac18c;
}
header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 4.2%;
  pointer-events: none;
  gap: 20px;
}
header > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: 2px;
}
.brand-mark {
  font-size: 43px;
  line-height: 1;
  color: #c7d297;
}
.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.audio {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 30px;
  min-height: 39px;
  padding: 9px 14px;
  font-size: 9px;
}
.audio svg {
  width: 16px;
  height: 16px;
}
.audio[aria-pressed="true"] {
  border-color: #e7d79c70;
}
.help-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font:
    italic 24px Dream,
    Georgia,
    serif;
}
.atlas-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid #f2eddb40;
  border-radius: 30px;
  background: #263f352e;
  font-size: 10px;
  backdrop-filter: blur(8px);
  transition:
    opacity 0.6s,
    background 0.2s;
}
.atlas-toggle svg {
  width: 18px;
  height: 18px;
}
.atlas-toggle:hover {
  background: #e9dfbc;
  color: #344b40;
}
body:not(.entered) .atlas-toggle,
body:not(.entered) .audio {
  visibility: hidden;
}
.intro {
  position: absolute;
  z-index: 4;
  left: 9%;
  top: 49%;
  transform: translateY(-50%);
  max-width: 45%;
  transition:
    opacity 0.4s,
    translate 0.6s;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 2.3px;
  line-height: 1.8;
  margin: 0 0 24px;
  color: #e3d7b5;
}
.intro h1 {
  font:
    400 clamp(80px, 8.5vw, 132px) / 0.93 Dream,
    Georgia,
    serif;
  letter-spacing: -3px;
  margin: 0 0 28px;
}
.intro h1 em {
  font-weight: 400;
  color: #d7d8a7;
}
.intro-text {
  font-size: 12px;
  line-height: 1.9;
  color: #d4d8c6;
  margin: 0 0 29px;
}
.enter-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 54px;
  background: #eee4c9;
  color: #30483b;
  border-radius: 40px;
  padding: 10px 13px 10px 24px;
  font-size: 10px;
}
.enter-button svg {
  height: 31px;
  width: 31px;
  padding: 6px;
  border: 1px solid #64735666;
  border-radius: 50%;
}
.enter-button:hover {
  background: #fff5d7;
}
.sound-choice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 8px;
  max-width: 280px;
  margin: 17px 0 12px;
  cursor: pointer;
}
.sound-choice input {
  margin: 0;
  accent-color: #b9ca91;
  width: 12px;
  height: 12px;
}
.sound-choice small {
  font-size: 7px;
  opacity: 0.5;
  margin-left: 6px;
}
.guided-intro {
  padding: 7px 0;
  font-size: 8px;
  color: #cfdbc3;
}
.guided-intro span {
  margin-left: 14px;
}
.intro-footer {
  position: absolute;
  z-index: 4;
  bottom: 25px;
  left: 4.2%;
  right: 4.2%;
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 1.8px;
  opacity: 0.52;
}
.entered .intro {
  opacity: 0;
  translate: 0 -12px;
  pointer-events: none;
}
.entered .intro-footer {
  display: none;
}
.entry-message {
  position: absolute;
  z-index: 20;
  inset: auto 0 8%;
  text-align: center;
  font:
    italic 25px Dream,
    Georgia,
    serif;
  pointer-events: none;
  text-shadow: 0 1px 12px #122a24;
}
.entry-message button {
  display: block;
  pointer-events: auto;
  margin: 18px auto 0;
  font:
    8px Sans,
    Arial,
    sans-serif;
  border-bottom: 1px solid #f1e6bc66;
  padding: 4px;
}
.entering header {
  opacity: 0;
  pointer-events: none;
}
.entering header > * {
  pointer-events: none;
}
.entering .immersive-ui {
  opacity: 0;
  pointer-events: none;
}
.loading {
  position: absolute;
  z-index: 25;
  right: 4.2%;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8px;
  color: #e1e5cb;
  pointer-events: none;
  transition: opacity 0.4s;
}
.loading-orbit {
  width: 16px;
  height: 16px;
  border: 1px solid #e4d6ab33;
  border-top-color: #e4d6ab;
  border-radius: 50%;
  animation: spin 1.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading.fade {
  opacity: 0;
}
.immersive-ui {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.glass {
  background: #193a3063;
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px #132e2422;
}
.controls {
  position: absolute;
  bottom: max(23px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 40px;
  pointer-events: auto;
  transition:
    opacity 0.6s,
    translate 0.6s;
}
.controls button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 23px;
  border-radius: 50%;
}
.controls button:hover,
.controls button[aria-pressed="true"] {
  background: #f1e6bc20;
}
.controls svg {
  width: 17px;
  height: 17px;
}
.controls i {
  height: 17px;
  width: 1px;
  background: var(--line);
  margin: 0 6px;
}
.controls > span {
  font-size: 7px;
  width: 24px;
  text-align: center;
  opacity: 0.6;
}
.tools-tray,
.paint-tray,
.wind-tray {
  position: absolute;
  pointer-events: auto;
  bottom: 83px;
  left: 50%;
  transform: translateX(-50%);
  padding: 19px 22px;
  border-radius: 9px;
  width: 270px;
}
.tools-tray {
  display: grid;
  gap: 3px;
  max-height: calc(100svh - 170px);
  overflow: auto;
}
.tools-tray button {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  min-height: 40px;
  font-size: 10px;
}
.tools-tray button svg {
  width: 17px;
  height: 17px;
}
.tools-tray button:hover {
  color: #f4d896;
}
.wind-tray {
  bottom: 83px;
}
.wind-tray label {
  font-size: 10px;
}
.wind-tray input {
  width: 100%;
  accent-color: #c7cd96;
  margin: 20px 0 10px;
  touch-action: pan-x;
}
.wind-tray > div {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  opacity: 0.6;
}
.paint-tray {
  bottom: 85px;
  width: 310px;
}
.paint-tray > p {
  font-size: 9px;
  margin: 0 0 18px;
}
.colors {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.colors button {
  background: var(--color);
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 4px solid transparent;
  box-shadow: 0 0 0 1px #f4e8bc33;
}
.colors button[aria-pressed="true"] {
  box-shadow: 0 0 0 3px #f1e5bda6;
}
.paint-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 14px;
}
.paint-actions button {
  font-size: 8px;
  border-bottom: 1px solid #f4e8bc66;
  padding: 6px 0;
}
.gesture-hint {
  position: absolute;
  bottom: 38px;
  left: 4.2%;
  max-width: 210px;
  font-size: 8px;
  line-height: 1.7;
  opacity: 0.6;
  transition: opacity 0.6s;
}
.scene-navigation {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.6s;
}
.scene-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  pointer-events: auto;
  border-radius: 50%;
  color: #fff0c3;
  will-change: transform;
  /* Its touches belong to the painting's own pan and pinch (world.js). */
  touch-action: none;
}
.scene-link:before {
  display: none;
}
.scene-link:nth-child(2n):before {
  animation-delay: -2s;
}
.scene-link > svg {
  opacity: 0;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 4px #173426);
  transition:
    opacity 0.25s,
    transform 0.25s;
  transform: scale(0.7);
}
.scene-link:hover > svg,
.scene-link:focus-visible > svg,
.scene-link.is-near > svg {
  opacity: 1;
  transform: scale(1);
}
.scene-link:hover:before,
.scene-link:focus-visible:before,
.scene-link.is-near:before {
  opacity: 0;
}
.scene-label {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 0.3px;
  text-shadow:
    0 1px 4px #172b20,
    0 1px 12px #172b20,
    0 0 25px #172b20;
  pointer-events: none;
  transition: opacity 0.2s;
}
.scene-link.align-left .scene-label {
  left: auto;
  right: 48px;
}
.scene-link:hover .scene-label,
.scene-link:focus-visible .scene-label,
.scene-link.is-near .scene-label {
  opacity: 1;
}
.scene-navigation.is-hidden {
  opacity: 0;
}
.scene-navigation.is-hidden .scene-link {
  pointer-events: none;
}
body.painting .scene-navigation {
  opacity: 0;
  visibility: hidden;
}
.dragging .scene-navigation {
  opacity: 0.15;
}
.dragging .scene-link {
  pointer-events: none;
}
.place-whisper {
  position: absolute;
  max-width: 320px;
  width: max-content;
  min-width: 235px;
  padding: 20px 23px;
  pointer-events: auto;
  background: linear-gradient(125deg, #15382bda, #15382b9c);
  border-radius: 3px;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 45px #17332724;
  animation: whisper-in 0.4s ease;
  max-height: calc(100svh - 190px);
  overflow: auto;
}
.place-whisper > #close-place {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 28px;
  height: 28px;
  padding: 5px;
}
.place-whisper > #close-place svg {
  width: 16px;
  height: 16px;
}
.place-whisper > .eyebrow {
  font-size: 6px;
  margin: 0 20px 10px 0;
  opacity: 0.65;
  letter-spacing: 1.6px;
}
.place-whisper h2 {
  font:
    400 29px/1.03 Dream,
    Georgia,
    serif;
  margin: 0 0 12px;
  outline: none;
  max-width: 240px;
}
.place-whisper > p:not(.eyebrow) {
  font-size: 9px;
  line-height: 1.8;
  max-width: 265px;
  margin: 0 0 15px;
  color: #d7dfc7;
}
.place-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.place-actions button {
  font-size: 8px;
  padding: 9px 11px;
  border: 1px solid #e6e1bd55;
  border-radius: 20px;
  min-height: 35px;
}
.place-actions button[aria-pressed="true"] {
  background: #d1c29a33;
  border-color: #dbcf9b99;
}
.place-actions button:hover {
  background: #f1e5c2;
  color: #304b39;
}
.place-extra:empty {
  display: none;
}
.place-extra {
  margin-top: 17px;
}
.place-extra label {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
}
.place-extra input {
  width: 100%;
  accent-color: #d7d6a4;
  margin: 16px 0 8px;
  touch-action: pan-x;
}
.atmosphere-status {
  font-size: 8px;
  line-height: 1.6;
  color: inherit;
  opacity: 0.82;
  margin: 12px 0 8px;
}
.atmosphere-motion {
  font-size: 8px;
  border: 1px solid #e6e1bd55;
  color: inherit;
  border-radius: 20px;
  padding: 9px 12px;
  min-height: 35px;
}
.atmosphere-motion:hover {
  background: #ede4c632;
}
.weather-choices {
  display: flex;
  gap: 7px;
}
.weather-choices button {
  padding: 8px 12px;
  border: 1px solid #e6e1bd44;
  border-radius: 20px;
  font-size: 8px;
  min-height: 34px;
}
.weather-choices button[aria-pressed="true"] {
  background: #e9e1bb;
  color: #344b40;
}
.cursor-caption {
  position: absolute;
  z-index: 11;
  pointer-events: none;
  font:
    italic 17px Dream,
    Georgia,
    serif;
  text-shadow: 0 1px 6px #17372a;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.cursor-caption.visible {
  opacity: 1;
}
.toast {
  position: absolute;
  z-index: 30;
  bottom: 91px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  color: #eee7d0;
  background: #17392bd9;
  border: 1px solid #e3d9b53b;
  border-radius: 30px;
  font-size: 10px;
  line-height: 1.6;
  max-width: 87vw;
  width: max-content;
  text-align: center;
  box-shadow: 0 8px 25px #17392b22;
}
.ui-resting header .brand,
.ui-resting .header-actions,
.ui-resting .controls,
.ui-resting .gesture-hint,
.ui-resting .scene-navigation {
  opacity: 0;
  pointer-events: none;
}
.ui-resting .controls {
  translate: 0 8px;
}
.ui-resting .controls button,
.ui-resting .header-actions button,
.ui-resting .scene-link {
  pointer-events: none;
}
.ui-resting .atlas-toggle {
  opacity: 0.24;
}
.ui-resting .atlas-toggle:hover,
.ui-resting .atlas-toggle:focus-visible {
  opacity: 1;
}
.ui-resting header:focus-within .header-actions,
.ui-resting header:focus-within .brand,
.ui-resting .controls:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.header-actions,
.brand {
  transition: opacity 0.6s;
}
.painting #world {
  cursor: crosshair !important;
}
@keyframes breathe {
  50% {
    opacity: 0.2;
    box-shadow: 0 0 8px 2px #ffe3a32b;
  }
}
@keyframes whisper-in {
  from {
    opacity: 0;
    translate: 0 5px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
dialog {
  background: #ebe8d7;
  color: var(--ink);
  border: 0;
  max-width: 92vw;
  max-height: 90svh;
  overflow: auto;
  padding: 40px 43px;
  width: 700px;
  box-shadow: 0 20px 100px #122c2455;
}
dialog::backdrop {
  background: #102d25bd;
  backdrop-filter: blur(12px);
}
.dialog-close {
  position: absolute;
  right: 17px;
  top: 15px;
  width: 35px;
  height: 35px;
  padding: 7px;
}
dialog > .eyebrow {
  font-size: 7px;
  color: #6b7f5b;
  margin: 7px 20px 18px 0;
}
dialog h2 {
  font:
    400 54px/0.98 Dream,
    Georgia,
    serif;
  margin: 0 0 27px;
  letter-spacing: -1px;
}
dialog h2 em {
  color: #7a8759;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 33px;
}
.help-grid span {
  font:
    italic 17px Dream,
    Georgia,
    serif;
  color: #7c8b65;
}
.help-grid h3 {
  font:
    400 25px Dream,
    Georgia,
    serif;
  margin: 7px 0 9px;
}
.help-grid p {
  font-size: 10px;
  line-height: 1.8;
  margin: 0;
  color: #59684f;
}
.keyboard-note {
  font-size: 8px;
  line-height: 1.8;
  border-top: 1px solid #b3bcab;
  padding-top: 19px;
  margin-top: 27px;
}
.help-footer {
  font-size: 8px;
  line-height: 1.8;
  color: #738264;
  margin-bottom: 0;
}
#original-dialog {
  text-align: center;
  width: 580px;
  padding: 35px;
}
#original-dialog img {
  display: block;
  margin: auto;
  max-height: 61svh;
  max-width: 100%;
}
#original-dialog > p:last-child {
  font-size: 9px;
  line-height: 1.8;
  margin-bottom: 0;
}
.atlas-drawer {
  position: fixed;
  inset: 15px 17px 15px auto;
  margin: 0;
  width: 403px;
  max-height: calc(100svh - 30px);
  padding: 37px 28px 22px;
  overscroll-behavior: contain;
}
.atlas-drawer::backdrop {
  background: #102f264d;
  backdrop-filter: blur(5px);
}
.atlas-drawer h2 {
  font-size: 48px;
  margin-bottom: 25px;
}
.atlas-drawer > .eyebrow {
  font-size: 6px;
  letter-spacing: 1.7px;
  margin-top: 17px;
}
.atlas-search {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #9caa8e;
  padding: 9px 1px;
}
.atlas-search svg {
  width: 17px;
  height: 17px;
  color: #728366;
}
.atlas-search input {
  min-width: 0;
  width: 100%;
  padding: 5px 0;
  border: 0;
  background: none;
  font:
    10px Sans,
    Arial,
    sans-serif;
  color: var(--ink);
}
.atlas-search input::placeholder {
  color: #809074;
}
.atlas-filters {
  display: flex;
  gap: 5px;
  margin: 16px 0 18px;
}
.atlas-filters button {
  font-size: 8px;
  flex: 1;
  padding: 9px 4px;
  border: 1px solid #9baa8c70;
  border-radius: 25px;
}
.atlas-filters button[aria-pressed="true"] {
  background: #3f5a43;
  color: #f4edda;
  border-color: #3f5a43;
}
.atlas-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid #a1b09450;
  min-height: 66px;
}
.atlas-row > svg:first-child {
  width: 20px;
  height: 20px;
  color: #6d805e;
}
.atlas-row > span {
  flex: 1;
  display: grid;
  gap: 5px;
}
.atlas-row strong {
  font:
    400 25px/0.98 Dream,
    Georgia,
    serif;
}
.atlas-row small {
  font-size: 8px;
  line-height: 1.6;
  color: #78866b;
}
.atlas-row > svg:last-child {
  width: 15px;
  height: 15px;
}
.atlas-row.is-found > svg:last-child {
  color: #a18747;
}
.atlas-row:hover {
  background: #8d9d7612;
}
.atlas-empty {
  font-size: 10px;
  padding: 17px 0;
  line-height: 1.8;
}
.atlas-progress {
  padding: 22px 0 16px;
  border-bottom: 1px solid #a1b09450;
}
.atlas-progress p {
  font-size: 8px;
  line-height: 1.8;
  margin: 10px 0 0;
  color: #667b57;
}
.atlas-progress p:last-child {
  font-size: 7px;
  color: #879377;
}
#discovery-stars {
  display: flex;
  gap: 13px;
  color: #a2af96;
  font-size: 16px;
}
#discovery-stars .lit {
  color: #ae843b;
  text-shadow: 0 0 9px #cda45250;
}
.atlas-drawer-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 16px;
}
.atlas-drawer-footer button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  min-height: 35px;
}
.atlas-drawer-footer .atlas-restart {
  width: 100%;
  border-top: 1px solid #a1b09450;
  padding-top: 12px;
  margin-top: 3px;
}
.atlas-drawer-footer svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.atlas-drawer-footer button:not(:has(svg)),
.atlas-drawer-footer a:not(:has(svg)) {
  padding-left: 20px;
}
@media (max-width: 1050px) {
  .gallery-frame {
    right: 8%;
    max-width: 42vw;
    height: 70svh;
  }
  .intro {
    left: 7%;
    max-width: 46%;
  }
  .intro h1 {
    font-size: clamp(75px, 10vw, 110px);
  }
  .gesture-hint {
    display: none;
  }
}
@media (max-width: 650px) {
  header {
    padding: 20px 6%;
    gap: 12px;
  }
  .brand {
    font-size: 6px;
    letter-spacing: 1.2px;
    gap: 7px;
  }
  .brand-mark {
    font-size: 29px;
  }
  .header-actions {
    gap: 7px;
  }
  .audio {
    width: 33px;
    height: 33px;
    min-height: 33px;
    padding: 8px;
    justify-content: center;
  }
  .audio span {
    display: none;
  }
  .help-button {
    width: 31px;
    height: 31px;
    font-size: 20px;
  }
  .atlas-toggle {
    font-size: 8px;
    gap: 6px;
    padding: 9px 11px;
  }
  .atlas-toggle svg {
    width: 16px;
    height: 16px;
  }
  .atlas-toggle span {
    max-width: 78px;
    line-height: 1.4;
  }
  .gallery-frame {
    top: 37%;
    right: 9%;
    height: 48svh;
    max-width: 77vw;
    transform: translateY(-50%) rotate(1.5deg);
    opacity: 0.78;
  }
  .gallery-frame figcaption {
    display: none;
  }
  .gallery-scene:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      0deg,
      #203a34 18%,
      #203a34e0 30%,
      transparent 77%
    );
  }
  .intro {
    left: 8%;
    top: auto;
    bottom: 10%;
    transform: none;
    max-width: 88%;
  }
  .intro > .eyebrow {
    font-size: 6px;
    letter-spacing: 1.8px;
    margin-bottom: 17px;
  }
  .intro h1 {
    font-size: clamp(67px, 18vw, 92px);
    letter-spacing: -2px;
    line-height: 0.94;
    margin-bottom: 18px;
  }
  .intro-text {
    font-size: 10px;
    line-height: 1.8;
    margin-bottom: 20px;
  }
  .enter-button {
    min-height: 48px;
    padding-left: 21px;
    gap: 27px;
    font-size: 9px;
  }
  .enter-button svg {
    width: 28px;
    height: 28px;
  }
  .sound-choice {
    margin-top: 13px;
    font-size: 7px;
    gap: 6px;
  }
  .sound-choice small {
    font-size: 6px;
  }
  .guided-intro {
    font-size: 7px;
    padding: 5px 0;
  }
  .intro-footer {
    font-size: 5px;
    letter-spacing: 1.2px;
    left: 6%;
    right: 6%;
    bottom: 22px;
  }
  .loading {
    right: 6%;
    bottom: 44px;
    font-size: 7px;
  }
  .entry-message {
    bottom: 12%;
    font-size: 20px;
  }
  .controls {
    padding: 4px 7px;
    bottom: max(22px, env(safe-area-inset-bottom));
    max-width: 92vw;
  }
  .controls button {
    width: 35px;
    height: 38px;
  }
  .controls > span {
    width: 22px;
    font-size: 6px;
  }
  .controls i {
    margin: 0 3px;
  }
  .controls svg {
    width: 17px;
    height: 17px;
  }
  .scene-label {
    font-size: 8px;
    left: 42px;
  }
  .scene-link.align-left .scene-label {
    right: 42px;
  }
  .scene-link.is-near .scene-label {
    opacity: 0;
  }
  .place-whisper {
    max-width: calc(100vw - 44px);
    min-width: 230px;
    width: 290px;
    padding: 18px 21px;
    max-height: 42svh;
  }
  .place-whisper h2 {
    font-size: 27px;
  }
  .place-whisper > p:not(.eyebrow) {
    font-size: 9px;
  }
  .place-actions button {
    min-height: 38px;
    font-size: 8px;
  }
  .tools-tray {
    bottom: 82px;
  }
  .paint-tray {
    width: 300px;
    max-width: 88vw;
    bottom: 83px;
  }
  .wind-tray {
    bottom: 83px;
    max-width: 88vw;
  }
  .toast {
    font-size: 9px;
    padding: 11px 18px;
    bottom: 84px;
  }
  .cursor-caption {
    display: none !important;
  }
  .atlas-drawer {
    inset: 10px 10px 10px auto;
    max-width: none;
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
    padding: 29px 24px 21px;
  }
  .atlas-drawer h2 {
    font-size: 46px;
  }
  .atlas-drawer > .eyebrow {
    margin-top: 20px;
  }
  .atlas-row {
    min-height: 65px;
    padding: 13px 0;
  }
  .atlas-row strong {
    font-size: 25px;
  }
  .atlas-row small {
    font-size: 8px;
  }
  dialog {
    padding: 30px 25px;
    max-width: 92vw;
  }
  .dialog-close {
    right: 10px;
    top: 10px;
  }
  dialog h2 {
    font-size: 43px;
  }
  .help-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .help-grid > div {
    padding-left: 25px;
    position: relative;
  }
  .help-grid span {
    position: absolute;
    top: 3px;
    left: 0;
    font-size: 15px;
  }
  .help-grid h3 {
    font-size: 23px;
    margin: 0 0 7px;
  }
  .help-grid p {
    font-size: 9px;
  }
  .keyboard-note {
    font-size: 7px;
  }
  #original-dialog {
    padding: 29px 20px;
  }
  #original-dialog h2 {
    font-size: 36px;
  }
  .ui-resting .atlas-toggle {
    opacity: 0.33;
  }
}
@media (max-height: 650px) and (min-width: 651px) {
  .intro h1 {
    font-size: 85px;
    margin-bottom: 20px;
  }
  .intro > .eyebrow {
    margin-bottom: 17px;
  }
  .intro-text {
    margin-bottom: 19px;
  }
  .gallery-frame {
    height: 73svh;
  }
  .sound-choice {
    margin: 12px 0 7px;
  }
  .intro-footer {
    bottom: 15px;
  }
  header {
    padding-top: 18px;
  }
  .place-whisper {
    max-height: calc(100svh - 155px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Return to the collection stays reachable during contemplation. */
header .gallery-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #d9dfbc44;
  border-radius: 28px;
  background: #233e34c7;
  backdrop-filter: blur(8px);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.25px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
header .gallery-back svg {
  width: 19px;
  height: 19px;
  transform: rotate(180deg);
}
.ui-resting header .gallery-back {
  opacity: 0.48;
  pointer-events: auto;
}
.ui-resting header .gallery-back:hover,
.ui-resting header .gallery-back:focus-visible {
  opacity: 1;
}
.atlas-gallery-back {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  width: 100%;
  font-size: 10px;
  text-decoration: none;
  border-bottom: 1px solid #a1b09450;
  padding: 0 0 10px;
}
.atlas-gallery-back svg {
  width: 17px;
  height: 17px;
  transform: rotate(180deg);
}
@media (max-width: 650px) {
  header .gallery-back {
    font-size: 8px;
    padding: 0 11px;
    gap: 6px;
    min-height: 40px;
  }
  header .gallery-back svg {
    width: 17px;
    height: 17px;
  }
  .atlas-toggle {
    padding: 9px 10px;
  }
  .atlas-toggle span {
    max-width: 72px;
  }
}
@media (max-width: 360px) {
  header {
    padding-left: 4%;
    padding-right: 4%;
    gap: 7px;
  }
  header .gallery-back {
    padding: 0 9px;
    font-size: 7px;
  }
  .atlas-toggle {
    font-size: 7px;
    padding: 9px;
  }
  .header-actions {
    gap: 5px;
  }
}

.atlas-drawer > .atlas-gallery-back {
  margin: 12px 0 17px;
  padding-right: 30px;
}

/* Painted theme of the threshold: the painting's own grey-blue sky, its moon, its
   boat and its skyline, cut from the original (tools/build_theme.py). The
   pieces live inside the gallery scene, so they leave with it on entering. */
.gallery-scene {
  background:
    linear-gradient(90deg, #2c33384d, transparent 52%),
    url("assets/tema-cielo-sueno.webp?v=24.0") 0 0 / 1360px auto repeat,
    #6b7073;
}
.gallery-light {
  display: none;
}
.painted-pieces {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.painted-pieces img {
  position: absolute;
  display: block;
  height: auto;
}
/* The moon and the boat stay above the intro, which is centred at 49% of the height. */
.piece-moon {
  left: 9%;
  top: clamp(64px, calc(49svh - 340px), 160px);
  width: 66px;
}
.piece-boat {
  left: 31%;
  top: clamp(80px, calc(49svh - 310px), 190px);
  width: 170px;
}
/* The skyline rises from the bottom edge; the dome thins into the sky as painted. */
.piece-skyline {
  left: -22px;
  bottom: 0;
  width: min(560px, 41vw, 52svh);
  transform: translateY(40%);
  -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent 99%);
  mask-image: linear-gradient(90deg, #000 84%, transparent 99%);
}
.intro .eyebrow {
  color: #ece3c8;
}
.intro h1 em {
  color: #c4d77f;
}
.intro-text {
  color: #e9e6da;
}
.intro .enter-button {
  background: #f3ecd9;
  color: #2c3438;
}
.intro-footer {
  opacity: 0.85;
  text-shadow: 0 1px 6px #2c3338;
}
@media (max-width: 1050px) {
  .piece-boat {
    left: 22%;
    width: 140px;
  }
}
@media (max-height: 650px) and (min-width: 651px) {
  .piece-moon {
    top: 34px;
    width: 46px;
  }
  .piece-boat {
    top: 44px;
    width: 130px;
  }
}
@media (max-height: 500px) and (min-width: 651px) {
  .piece-moon {
    left: 4%;
    top: 16px;
    width: 34px;
  }
  .painted-pieces .piece-boat,
  .painted-pieces .piece-skyline {
    display: none;
  }
}
@media (max-width: 650px) {
  .gallery-scene:after {
    background: linear-gradient(0deg, #50565a 18%, #50565ae0 30%, transparent 77%);
  }
  .piece-moon {
    left: 4%;
    top: 64px;
    width: 30px;
  }
  .painted-pieces .piece-boat,
  .painted-pieces .piece-skyline {
    display: none;
  }
}
