/* Shared controls and readable text for both painted worlds. */
.valley-paint-tools{display:flex;gap:7px;margin-bottom:14px}
.valley-paint-tools button{flex:1;display:grid;justify-items:center;gap:5px;min-height:62px;padding:8px 4px;border:1px solid #e9d8aa77;border-radius:7px}
.valley-paint-tools svg{width:23px;height:23px}
.valley-paint-tools span,.valley-paint-tray p{font-size:12px}
.valley-paint-tools button[aria-pressed="true"]{background:#eddfbc;color:#304b3e;border-color:#eddfbc}
.valley-paint-tools button:focus-visible{outline:2px solid #fff4d9;outline-offset:3px}
@media(min-width:651px){.valley-paint-tray{left:20px;transform:none}}
#other-painting strong{display:block;margin-bottom:4px;font-size:9px;font-weight:600;letter-spacing:1.2px;text-transform:uppercase;color:#f3e7c6b8}
#other-painting{position:fixed;z-index:4;top:50%;width:130px;padding:7px 7px 5px;transform:translateY(-50%);border:2px solid #f3e7c699;border-radius:6px;background:#2f3d2ed9;text-align:center;text-decoration:none;box-shadow:0 6px 18px #21301f66}
#other-painting.left{left:10px}
#other-painting.right{right:10px}
#other-painting.bottom{left:12px;top:auto;bottom:12px;transform:none}
#other-painting img{display:block;width:100%;height:auto;border-radius:3px}
#other-painting span{display:block;margin-top:4px;font-size:11px;line-height:1.35;color:#f3e7c6}
@media(max-width:650px){#other-painting{width:96px}}
.toast {
  pointer-events: none;
}
.interaction-cue {
  position: fixed;
  z-index: 14;
  max-width: 190px;
  padding: 9px 12px;
  background: #294a3be8;
  border-bottom: 2px solid #cfa56a;
  border-radius: 3px;
  color: #fff2d5;
  font:
    12px/1.5 Sans,
    Arial,
    sans-serif;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  box-shadow: 0 4px 18px #18352622;
}
.painted-invitation {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff4d9;
  cursor: pointer;
  transform: translate(-50%, -50%);
  /* Its touches belong to the painting's own pan and pinch. */
  touch-action: none;
}
.painted-invitation[hidden] { display: none; }
.invitation-detail {
  display: block;
  width: 17px;
  height: 17px;
  border: 1px solid #ffe4a886;
  border-radius: 50%;
  background: #edbd6870;
  box-shadow: 0 0 15px 7px #f8c27a59;
  animation: invitation-breathe 2.2s ease-in-out both;
}
.invitation-label {
  position: absolute;
  left: 50%;
  bottom: 49px;
  padding: 7px 11px;
  border-radius: 3px;
  background: #243d37e8;
  color: #fff4d9;
  font: 12px/1.4 Sans, Arial, sans-serif;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}
.painted-invitation:hover .invitation-label,
.painted-invitation:focus-visible .invitation-label { opacity: 1; }
.painted-invitation:focus-visible { outline: 2px solid #fff4d9; outline-offset: 2px; }
@keyframes invitation-breathe {
  0% { opacity: .1; transform: scale(.55); }
  35%, 65% { opacity: .8; transform: scale(1); }
  100% { opacity: .5; transform: scale(.75); }
}
@media (prefers-reduced-motion: reduce) {
  .invitation-detail { animation: none; opacity: .9; }
}
#sound-settings {
  width: 470px;
  color: #344b3a;
  background: #f2e8d1;
}
#sound-settings h2 {
  font:
    400 42px/1.1 Dream,
    Georgia,
    serif;
  margin: 15px 0 25px;
}
.sound-setting {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}
.sound-setting label {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.sound-setting input {
  width: 100%;
  height: 30px;
  accent-color: #775a3d;
}
.sound-setting small {
  font-size: 12px;
  color: #59654d;
  display: flex;
  justify-content: space-between;
}
#sound-settings > p {
  font-size: 13px;
  line-height: 1.7;
  color: #53624d;
}
.artwork-facts {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px 16px;
  margin: 23px 0;
  font:
    13px/1.6 Sans,
    Arial,
    sans-serif;
}
.artwork-facts dt {
  color: #657354;
}
.artwork-facts dd {
  margin: 0;
}
.artwork-description {
  font-size: 14px !important;
  line-height: 1.8 !important;
}
.artwork-title {
  font:
    400 33px/1.1 Dream,
    Georgia,
    serif;
  margin: 25px 0 16px;
}
#artwork-dialog {
  width: 640px;
  color: #344b3a;
  background: #f2e8d1;
}
#artwork-dialog figure {
  margin: 20px 0;
}
#artwork-dialog img {
  display: block;
  max-height: 44svh;
  width: 100%;
  object-fit: contain;
}
#artwork-dialog figcaption {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 12px;
  color: #59654d;
}
.gentle-rendering .glass,
.gentle-rendering .atlas-toggle,
.gentle-rendering .valley-toolbar,
.gentle-rendering .header-buttons button,
.gentle-rendering #whisper {
  backdrop-filter: none;
}
.place-whisper > p:not(.eyebrow),
#whisper-text {
  font-size: 13px;
  line-height: 1.75;
}
.place-actions button,
#whisper-actions button {
  font-size: 12px;
  min-height: 44px;
  padding: 11px 14px;
}
.place-whisper .eyebrow,
#whisper-category {
  font-size: 10px;
  line-height: 1.6;
  opacity: 0.9;
}
.place-whisper {
  width: 330px;
}
.place-whisper h2,
#whisper h2 {
  font-size: 32px;
  line-height: 1.08;
}
#whisper {
  width: 330px;
  max-height: 48svh;
}
.atlas-row small,
.destination small {
  font-size: 12px;
  line-height: 1.6;
  color: #53654b;
}
.atlas-row strong,
.destination strong {
  font-size: 27px;
  line-height: 1.1;
}
.atlas-filters button,
.atlas-drawer-footer button,
.explorer-footer button,
.explorer-footer a {
  font-size: 12px;
  min-height: 44px;
}
.atlas-search input,
.explorer-search input {
  font-size: 14px;
  min-height: 44px;
}
.atlas-drawer > .eyebrow,
.explorer-search,
.destination-group,
dialog > .eyebrow {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 1.4px;
  color: #5c6a50;
}
.explorer-description,
#valley-progress,
.atlas-progress p,
.atlas-progress p:last-child {
  font-size: 12px;
  line-height: 1.7;
  color: #53654b;
}
.atlas-gallery-back {
  font-size: 13px;
  min-height: 44px;
}
.help-grid p,
#valley-help-dialog > p:not(.eyebrow),
.keyboard-note,
.help-footer {
  font-size: 13px !important;
  line-height: 1.8;
}
.keyboard-note,
#valley-help-dialog .keyboard {
  font-size: 12px !important;
}
.weather-choices button,
.atmosphere-motion,
.place-extra label,
.atmosphere-status,
.tools-tray button,
.paint-tray p,
.paint-actions button {
  font-size: 12px;
  line-height: 1.6;
}
.weather-choices button,
.atmosphere-motion,
.tools-tray button,
.paint-actions button {
  min-height: 44px;
}
.intro-text,
.intro-description {
  font-size: 14px;
  line-height: 1.7;
}
.sound-choice,
.sound-entry {
  font-size: 12px;
  line-height: 1.6;
}
.sound-choice small,
.sound-entry small {
  font-size: 11px;
  opacity: 1;
}
.sound-choice input,
.sound-entry input {
  width: 18px;
  height: 18px;
}
.enter-button,
.primary {
  font-size: 13px;
  min-height: 48px;
}
.guided-intro {
  font-size: 12px;
  min-height: 40px;
}
.intro > .eyebrow,
.intro-copy > .eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
}
.audio,
.atlas-toggle,
.header-buttons button,
header .gallery-back,
.back-link {
  font-size: 12px;
}
.toast,
#valley-toast,
.scene-hint,
.gesture-hint {
  font-size: 12px;
  line-height: 1.6;
}
.controls > span,
.valley-toolbar output {
  font-size: 11px;
}
.controls button,
.valley-toolbar button {
  min-height: 44px;
}
.scene-label,
.valley-node span {
  font-size: 12px;
}
.valley-node.sky-choice { display: flex; gap: 7px; width: max-content; min-height: 44px; padding: 9px 12px; border-radius: 24px; border: 1px solid #dfd2a455; background: #304d40ed; opacity: 1; }
.valley-node.sky-choice span { position: static; }
.valley-node.sky-choice[aria-pressed="true"] { background: #efd3a5; color: #304d40; text-shadow: none; }
.resting #valley-hotspots:focus-within { opacity: 1; }
.resting .sky-choice:focus-visible { pointer-events: auto; }
#original-dialog > p {
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 650px) {
  .place-whisper,
  #whisper {
    width: calc(100vw - 40px);
    min-width: 0;
    max-width: calc(100vw - 40px);
    padding: 21px;
    max-height: 45svh;
  }
  .place-whisper > p:not(.eyebrow),
  #whisper-text {
    font-size: 12px;
  }
  .place-whisper h2,
  #whisper h2 {
    font-size: 29px;
  }
  .place-actions button,
  #whisper-actions button {
    font-size: 12px;
  }
  .atlas-row small,
  .destination small {
    font-size: 12px;
  }
  .atlas-row strong,
  .destination strong {
    font-size: 26px;
  }
  .controls,
  .valley-toolbar {
    max-width: calc(100vw - 24px);
    padding: 4px 5px;
  }
  .controls button,
  .valley-toolbar button {
    width: 37px;
    flex-shrink: 1;
  }
  .controls > span,
  .valley-toolbar output {
    font-size: 10px;
    min-width: 25px;
  }
  header,
  .scene-header {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }
  .atlas-toggle {
    font-size: 11px;
    padding: 8px 10px;
    gap: 5px;
  }
  .atlas-toggle span {
    max-width: 70px;
  }
  header .gallery-back,
  .back-link,
  .valley-entered .back-link {
    font-size: 11px;
    padding: 0 10px;
    gap: 5px;
  }
  .header-actions {
    gap: 5px;
  }
  .intro-text,
  .intro-description {
    font-size: 13px;
    line-height: 1.7;
  }
  .sound-choice,
  .sound-entry {
    font-size: 12px;
    gap: 7px;
  }
  .sound-choice small,
  .sound-entry small {
    font-size: 11px;
  }
  .intro > .eyebrow,
  .intro-copy > .eyebrow {
    font-size: 10px;
  }
  .guided-intro {
    font-size: 12px;
  }
  .enter-button,
  .primary {
    font-size: 13px;
  }
  .intro-bottom,
  .intro-footer {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  .atlas-drawer,
  #explorer {
    padding-left: 23px;
    padding-right: 23px;
  }
  .help-grid p,
  #valley-help-dialog > p:not(.eyebrow) {
    font-size: 13px !important;
  }
  #scene-wind {
    height: 36px;
  }
}
@media (max-width: 360px) {
  header .gallery-back {
    font-size: 10px;
    padding: 0 8px;
  }
  .atlas-toggle {
    font-size: 10px;
    padding: 8px;
    gap: 4px;
  }
  .atlas-toggle span {
    max-width: 62px;
  }
  .controls button,
  .valley-toolbar button {
    width: 34px;
  }
}
@media (max-height: 650px) and (min-width: 651px) {
  .intro {
    left: 6%;
    top: 92px;
    bottom: 18px;
    transform: none;
    max-width: 43%;
    overflow-y: auto;
    padding: 0 10px 22px 0;
    scrollbar-width: thin;
  }
  .intro h1,
  .intro-copy h1 {
    font-size: 56px;
    line-height: 0.97;
    margin: 0 0 16px;
    letter-spacing: -1.5px;
  }
  .intro > .eyebrow,
  .intro-copy > .eyebrow {
    font-size: 11px;
    margin: 0 0 13px;
  }
  .intro-text,
  .intro-description {
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
  }
  .sound-choice,
  .sound-entry {
    margin: 14px 0 6px;
  }
  .guided-intro {
    padding: 8px 0;
  }
  .gallery-frame {
    top: 57%;
    height: 64svh;
    max-width: 39vw;
    right: 7%;
  }
  .intro-footer {
    display: none;
  }
  .valley-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6%;
    padding: 92px 6% 25px;
    overflow-y: auto;
    align-items: start;
  }
  .intro-copy {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    transform: none;
    max-width: none;
    width: 100%;
  }
  .intro-art {
    position: static;
    top: auto;
    right: auto;
    transform: rotate(1deg);
    width: 100%;
    align-self: center;
    max-width: none;
  }
  .intro-art img {
    max-height: calc(100svh - 145px);
    object-fit: contain;
    border-width: 7px;
  }
  .intro-art figcaption {
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 12px;
  }
  .intro-bottom {
    display: none;
  }
}
@media (max-height: 700px) and (max-width: 650px) {
  .intro,
  .intro-copy {
    top: 90px;
    bottom: 18px;
    transform: none;
    max-height: none;
    overflow-y: auto;
    padding-bottom: 15px;
    padding-right: 8px;
  }
  .intro h1,
  .intro-copy h1 {
    font-size: 52px;
    margin-bottom: 14px;
  }
  .intro > .eyebrow,
  .intro-copy > .eyebrow {
    margin-bottom: 12px;
  }
  .intro-text,
  .intro-description {
    margin-bottom: 16px;
  }
  .intro-footer,
  .intro-bottom {
    display: none;
  }
  .gallery-frame {
    top: 35%;
    opacity: 0.45;
  }
  .intro-art {
    opacity: 0.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .interaction-cue {
    transform: translateX(-50%);
  }
}
