:root {
  font-family: Georgia, serif;
  background: #f8f0e5;
  color: #293326;
}
* {
  box-sizing: border-box;
}
html,
body,
.experience {
  min-height: 100%;
  margin: 0;
}
body {
  min-height: 100vh;
  overflow: hidden;
}
.experience {
  position: relative;
}
.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
  transition: opacity 700ms cubic-bezier(0.3, 0.75, 0.3, 1);
  overflow: hidden;
}
.screen.is-active {
  opacity: 1;
  pointer-events: auto;
}
.cover-screen,
.scene-screen {
  background: #f6ecd9;
}
.topbar {
  position: absolute;
  z-index: 10;
  top: 2vh;
  left: 1.5vw;
  right: 1.5vw;
  height: 10vh;
  min-height: 72px;
  border-radius: 28px 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: #fffdf8eb;
  font-family: system-ui, sans-serif;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.brand > b,
.thought-card header > b {
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  background: #e6e5ce;
  color: #65764c;
  font-size: 1.5rem;
}
.brand strong {
  display: block;
  font:
    700 clamp(1.3rem, 2vw, 2rem) / 0.9 Georgia,
    serif;
}
.brand small {
  display: block;
  margin-top: 0.35rem;
  color: #756b61;
  font-size: 0.72rem;
}
nav {
  display: flex;
  gap: 2rem;
}
nav button,
.checkin {
  border: 0;
  background: transparent;
  color: #3d3c31;
  font: inherit;
  padding: 0.8rem 1rem;
  border-radius: 18px;
}
.nav-active {
  background: #f1ecd9;
}
.checkin {
  border: 1px solid #f1dcca;
  border-radius: 999px;
  color: #9b5738;
}
.cover-world,
.scene-world {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(125deg, #fbf7ef 0%, #faedcf 52%, #f2c988 100%);
}
.sun,
.scene-sun {
  position: absolute;
  border-radius: 50%;
  background: #fff5cf;
  box-shadow: 0 0 70px #fff2ca;
}
.sun {
  width: 10vw;
  height: 10vw;
  left: 52%;
  top: 40%;
}
.mountains {
  position: absolute;
  right: -5%;
  bottom: 18%;
  width: 58%;
  height: 36%;
  background: linear-gradient(145deg, #d5b089, #99745f);
  clip-path: polygon(
    0 80%,
    28% 22%,
    48% 62%,
    75% 2%,
    100% 48%,
    100% 100%,
    0 100%
  );
  opacity: 0.7;
}
.river {
  position: absolute;
  width: 32%;
  height: 48%;
  left: 45%;
  bottom: 4%;
  background: linear-gradient(
    90deg,
    transparent,
    #fff8d5 42%,
    #fff 51%,
    #f9d99d 58%,
    transparent
  );
  transform: rotate(12deg);
  opacity: 0.65;
}
.cliff {
  position: absolute;
  width: 48%;
  height: 48%;
  right: -2%;
  bottom: -8%;
  background: linear-gradient(145deg, #a37a5b, #68503f);
  clip-path: polygon(14% 22%, 100% 0, 100% 100%, 0 100%);
}
.plant {
  position: absolute;
  right: 2%;
  bottom: 10%;
  width: 13vw;
  height: 25vh;
  background: repeating-radial-gradient(
    ellipse at bottom,
    #65714b 0 6%,
    transparent 7% 15%
  );
  opacity: 0.7;
}
.cover-person {
  position: absolute;
  right: 13%;
  bottom: 16%;
  width: 20vw;
  height: 41vh;
  background: #dfceb4;
  border-radius: 48% 38% 12% 42%;
  transform: rotate(9deg);
  z-index: 2;
}
.cover-person:before {
  content: "";
  position: absolute;
  right: 27%;
  top: -14%;
  width: 6vw;
  height: 7vw;
  border-radius: 46%;
  background: #493229;
  box-shadow: inset 0 -2vw #c98358;
}
.cover-person b {
  position: absolute;
  bottom: -7%;
  right: 9%;
  width: 13vw;
  height: 10vw;
  border-radius: 58% 18% 44% 32%;
  background: #627052;
}
.cover-person em {
  position: absolute;
  right: 45%;
  top: 29%;
  width: 2.5vw;
  height: 2.5vw;
  background: #624f3d;
  border-radius: 0 0 42% 42%;
}
.cover-copy {
  position: absolute;
  z-index: 4;
  left: 6.5vw;
  top: 32vh;
  max-width: 46rem;
}
.cover-copy p {
  font:
    600 0.75rem system-ui,
    sans-serif;
  letter-spacing: 0.12em;
  color: #7d896b;
}
.cover-copy h1 {
  font-size: clamp(3rem, 5.2vw, 6.2rem);
  line-height: 0.96;
  margin: 0.8rem 0 1.65rem;
  letter-spacing: -0.045em;
}
.cover-copy > span {
  font:
    400 clamp(1rem, 1.4vw, 1.45rem) / 1.5 system-ui,
    sans-serif;
  color: #6e6a63;
}
.enter-space,
.share-hit {
  display: block;
  border: 0;
  border-radius: 999px;
  background: #687b51;
  color: #fffdf8;
  cursor: pointer;
  box-shadow: 0 8px 20px #46523738;
}
.enter-space {
  margin: 1.8rem 0;
  padding: 1rem 1.8rem;
  font:
    1.05rem system-ui,
    sans-serif;
}
.cover-copy small {
  color: #756f67;
  font:
    0.9rem/1.8 system-ui,
    sans-serif;
}
.quote-card {
  position: absolute;
  z-index: 7;
  left: 4.2vw;
  right: 4.2vw;
  bottom: 3.8vh;
  height: 11vh;
  min-height: 90px;
  border: 1px solid #cfb79973;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2.4rem;
  background: #fffbf4e0;
  box-shadow: 0 10px 24px #563b2414;
  color: #899670;
  font-size: 2rem;
}
.quote-card p {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: clamp(0.8rem, 1.15vw, 1.2rem);
  color: #625b51;
}
.quote-card p small {
  display: block;
  margin-top: 0.5rem;
  font:
    0.8rem system-ui,
    sans-serif;
}
.quote-card button {
  border: 1px solid #f0daca;
  border-radius: 999px;
  background: #fffaf5;
  padding: 0.75rem 1.2rem;
  color: #a55c3a;
  cursor: pointer;
}
.scene-world {
  background: linear-gradient(#f8dfb4 0%, #efd09a 42%, #718066 100%);
}
.scene-world:before {
  content: "";
  position: absolute;
  inset: 0 0 42%;
  background: linear-gradient(115deg, #f8dec1, #fff1c8 52%, #eac084);
}
.scene-sun {
  width: 8vw;
  height: 8vw;
  left: 47%;
  top: 22%;
}
.scene-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 25%;
  height: 38%;
  background: #829176;
  clip-path: polygon(
    0 67%,
    15% 42%,
    30% 70%,
    48% 28%,
    63% 65%,
    83% 35%,
    100% 65%,
    100% 100%,
    0 100%
  );
}
.scene-river {
  position: absolute;
  width: 17%;
  height: 42%;
  left: 43%;
  top: 30%;
  background: linear-gradient(
    90deg,
    transparent,
    #fff3cc,
    #fff8e8,
    #f5d99e,
    transparent
  );
  clip-path: polygon(45% 0, 57% 0, 82% 100%, 4% 100%);
  opacity: 0.8;
}
.tree {
  position: absolute;
  bottom: 18%;
  width: 23vw;
  height: 55vh;
  z-index: 3;
}
.tree:before {
  content: "";
  position: absolute;
  width: 3vw;
  height: 34vh;
  bottom: 0;
  left: 45%;
  background: #68523a;
  border-radius: 50% 50% 15% 15%;
}
.tree:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 23%, #607348 0 16%, transparent 17%),
    radial-gradient(ellipse at 67% 42%, #516646 0 20%, transparent 21%),
    radial-gradient(ellipse at 37% 55%, #718053 0 19%, transparent 20%);
}
.tree.left {
  left: -5%;
}
.tree.right {
  right: -5%;
  transform: scale(1.25);
}
.friend {
  position: absolute;
  z-index: 5;
  width: 12vw;
  height: 27vh;
  border-radius: 48% 48% 20% 20%;
  background: #d7c5ae;
  box-shadow: inset 1.3vw 0 #b07755;
}
.friend:before {
  content: "";
  position: absolute;
  top: -11%;
  left: 28%;
  width: 4.7vw;
  height: 5.3vw;
  border-radius: 50%;
  background: #4b332b;
  box-shadow: inset 0 -1.6vw #c78459;
}
.friend:after {
  content: "";
  position: absolute;
  bottom: -5%;
  left: 20%;
  width: 65%;
  height: 40%;
  border-radius: 45% 45% 20% 20%;
  background: #e6d2b6;
}
.friend-main {
  left: 31%;
  bottom: 8%;
  width: 20vw;
  height: 39vh;
  background: #ded1bb;
}
.friend-main:before {
  width: 7.5vw;
  height: 8vw;
}
.friend-left {
  left: 9%;
  bottom: 18%;
  background: #778566;
}
.friend-yellow {
  right: 32%;
  bottom: 14%;
  background: #c5973e;
}
.friend-right {
  right: 8%;
  bottom: 8%;
  background: #a75532;
}
.friend-back {
  width: 4vw;
  height: 12vh;
  bottom: 42%;
  background: #788166;
}
.friend-back:before {
  width: 2vw;
  height: 2.4vw;
}
.friend-back:after {
  display: none;
}
.one {
  left: 48%;
}
.two {
  left: 54%;
}
.flowers {
  position: absolute;
  z-index: 6;
  inset: 48% 0 0;
  background:
    radial-gradient(circle at 13% 60%, #fff5dd 0 3px, transparent 4px),
    radial-gradient(circle at 83% 40%, #fff5dd 0 3px, transparent 4px),
    radial-gradient(circle at 93% 72%, #fff5dd 0 3px, transparent 4px);
  background-size: 33px 33px;
}
.bubble {
  position: absolute;
  z-index: 8;
  padding: 1.35rem 1.6rem;
  border-radius: 25px;
  background: #fffdf7;
  color: #3e3c34;
  text-align: center;
  font:
    500 clamp(0.8rem, 1.2vw, 1.2rem) / 1.35 system-ui,
    sans-serif;
  box-shadow: 0 12px 30px #362e1e21;
}
.bubble b {
  display: block;
  margin-top: 0.45rem;
  color: #b6be8a;
}
.main {
  left: 18%;
  top: 24%;
  font:
    500 clamp(1.1rem, 1.6vw, 1.7rem) Georgia,
    serif;
}
.left-b {
  left: 4%;
  top: 34%;
}
.right-b {
  right: 20%;
  top: 27%;
}
.scene-ui-layer {
  position: absolute;
  z-index: 12;
  inset: 0;
}
.thought-card {
  position: absolute;
  left: 50%;
  top: 63%;
  transform: translateX(-50%);
  width: min(27rem, 42vw);
  padding: 1.25rem;
  border-radius: 22px;
  background: #fffdf8f2;
  box-shadow: 0 16px 40px #2b2d1e47;
  font-family: system-ui, sans-serif;
}
.thought-card header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.thought-card header > b {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.15rem;
}
.thought-card strong {
  display: block;
  font:
    600 1.1rem Georgia,
    serif;
}
.thought-card header small {
  display: block;
  margin-top: 0.3rem;
  color: #68645d;
  font-size: 0.77rem;
  line-height: 1.4;
}
.thought-input {
  display: block;
  width: 100%;
  height: 2.8rem;
  margin: 0.75rem 0 0.65rem;
  resize: none;
  border: 1px solid #e5ddd2;
  border-radius: 10px;
  padding: 0.75rem;
  background: #fffcf8;
  color: #403b34;
  font:
    0.82rem system-ui,
    sans-serif;
}
.thought-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.thought-card footer small {
  color: #6c675f;
  font-size: 0.72rem;
}
.share-hit {
  padding: 0.6rem 1.25rem;
  font-size: 0.82rem;
}
.visit-response {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translateX(-50%);
  width: min(28rem, 45vw);
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: #fffcf5f0;
  box-shadow: 0 10px 28px #4735232e;
  font-family: system-ui, sans-serif;
}
.visit-response.is-inputting {
  pointer-events: none;
}
.visit-response p {
  margin: 0;
}
.visit-speaker {
  color: #7b8667;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.visit-result-label {
  color: #7b8667;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.visit-response[data-result-kind="small_next_step"] {
  border-color: #68795580;
  box-shadow: 0 12px 32px #47352338;
}
.visit-dialogue {
  margin-top: 0.25rem !important;
  font-size: 0.9rem;
  line-height: 1.4;
}
.visit-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.visit-choices button {
  border: 1px solid #68795552;
  border-radius: 999px;
  background: #fffaf2;
  color: #526044;
  padding: 0.28rem 0.58rem;
  cursor: pointer;
}
.save-summary {
  display: block;
  margin: 0.65rem 0 0 auto;
  border: 0;
  background: transparent;
  color: #687955;
  font-size: 0.75rem;
  cursor: pointer;
}
.save-summary[hidden],
.saved-result[hidden] {
  display: none;
}
.saved-result {
  position: absolute;
  left: 50%;
  top: 27%;
  z-index: 12;
  width: min(25rem, 42vw);
  transform: translateX(-50%);
  padding: 0.8rem 1rem;
  border: 1px solid #fff8ed99;
  border-radius: 16px;
  background: #fffaf2e8;
  box-shadow: 0 10px 28px #4735232e;
  font-family: system-ui, sans-serif;
}
.saved-result-label,
.saved-result-text {
  margin: 0;
}
.saved-result-label {
  color: #7b8667;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.saved-result-text {
  margin-top: 0.25rem;
  color: #403b34;
  font-size: 0.86rem;
  line-height: 1.4;
}
.quiet-player {
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: 14;
  width: min(21rem, 38vw);
  transform: translate(-50%, -0.4rem);
  padding: 0.75rem 0.95rem;
  border: 1px solid #fff8ed99;
  border-radius: 16px;
  background: #5b6349de;
  color: #fffaf0;
  box-shadow: 0 10px 24px #4735232e;
  font-family: system-ui, sans-serif;
}
.quiet-player-label,
.quiet-player-status {
  margin: 0;
}
.quiet-player-label {
  font: 600 0.88rem Georgia, serif;
}
.quiet-player-status {
  margin-top: 0.2rem;
  color: #e8e7c8;
  font-size: 0.72rem;
}
.quiet-player-controls {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.quiet-player button {
  border: 1px solid #fff8ed70;
  border-radius: 999px;
  background: #fffaf21c;
  color: inherit;
  padding: 0.28rem 0.62rem;
  cursor: pointer;
}
.thought-card.is-music-playing,
.scene-screen:has(.quiet-player[data-music-status="playing"]) .visit-response {
  opacity: 0.42;
  transition: opacity 320ms ease;
}
.scene-screen .quote-card {
  bottom: 2.2vh;
}
.ambient-light {
  position: absolute;
  inset: 14% 13% 8%;
  z-index: 6;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, #fff0c330, transparent 46%);
  mix-blend-mode: screen;
  animation: light 13s ease-in-out infinite alternate;
}
.ambient-field,
.recognition-cue {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 13;
}
.mote {
  position: absolute;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #fff5cfa6;
  box-shadow: 0 0 14px #ffeeb780;
}
.mote-a {
  left: 28%;
  top: 48%;
  animation: float 12s ease-in-out infinite;
}
.mote-b {
  left: 66%;
  top: 39%;
  animation: float 16s ease-in-out -5s infinite;
}
.mote-c {
  left: 74%;
  top: 66%;
  animation: float 14s ease-in-out -3s infinite;
}
.recognition-cue {
  inset: auto;
  left: 36%;
  top: 38%;
  width: 14%;
  height: 23%;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(ellipse, #fff1c36b, transparent 70%);
  transition: opacity 280ms;
}
.scene-screen.is-noticing .recognition-cue {
  opacity: 0.38;
}
.scene-screen.is-recognized .recognition-cue {
  opacity: 0.6;
}
.enter-space:focus-visible,
.home-hit:focus-visible,
.share-hit:focus-visible,
.thought-input:focus-visible {
  outline: 3px solid #d6865e;
  outline-offset: 4px;
}
.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;
}
@keyframes light {
  to {
    opacity: 0.82;
  }
}
@keyframes float {
  50% {
    transform: translate(2vw, -1.5vh);
    opacity: 0.7;
  }
}
@media (max-width: 780px) {
  body {
    overflow: auto;
  }
  .topbar {
    padding: 0 1rem;
    height: 68px;
    min-height: 68px;
  }
  .brand > b {
    width: 2.5rem;
    height: 2.5rem;
  }
  .brand small,
  nav,
  .checkin {
    display: none;
  }
  .cover-copy {
    left: 7vw;
    top: 23vh;
  }
  .cover-copy h1 {
    font-size: clamp(2.8rem, 10vw, 4.3rem);
  }
  .cover-person {
    right: 1%;
    bottom: 18%;
    transform: scale(1.15);
  }
  .quote-card {
    left: 4vw;
    right: 4vw;
    padding: 1rem;
    gap: 0.7rem;
  }
  .quote-card button {
    padding: 0.6rem;
  }
  .bubble {
    display: none;
  }
  .thought-card {
    top: 58%;
    width: 88vw;
  }
  .friend-main {
    left: 29%;
    bottom: 20%;
    transform: scale(1.2);
  }
  .friend-left,
  .friend-right,
  .friend-yellow {
    bottom: 23%;
    transform: scale(0.8);
  }
  .friend-back {
    display: none;
  }
  .scene-screen .quote-card {
    height: 10vh;
    bottom: 1vh;
  }
  .scene-screen .quote-card p {
    font-size: 0.75rem;
  }
  .visit-response {
    width: 88vw;
    top: 40%;
  }
  .quiet-player {
    width: 78vw;
    top: 40%;
  }
  .saved-result {
    width: 78vw;
    top: 24%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .screen {
    transition-duration: 1ms;
  }
  .ambient-light,
  .ambient-field,
  .recognition-cue {
    display: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Absolute screen layers need a definite containing height. */
.experience {
  height: 100vh;
  min-height: 100vh;
}

/* Keep the foreground meadow light and quiet rather than a repeated pattern. */
.flowers {
  background-repeat: no-repeat;
}
