@import url("styles.css");

.housegarden-page {
  background:
    radial-gradient(circle at 10% 10%, rgba(105, 162, 108, 0.14), transparent 42%),
    radial-gradient(circle at 90% 90%, rgba(194, 170, 124, 0.1), transparent 45%),
    linear-gradient(180deg, #121b15 0%, #0d110e 100%);
}

#flower-container,
#old-house,
#new-house,
#garden,
.room {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

#flower-container {
  position: relative;
  overflow: hidden;
}

#flower-container,
#old-house,
#new-house,
#garden {
  padding: 1rem;
}

.garden-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.flower-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.flower-signals span {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(196, 224, 166, 0.24);
  border-radius: 999px;
  color: rgba(230, 239, 216, 0.82);
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.pollen-field {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.pollen {
  position: absolute;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  scale: 1;
  transition: scale 400ms ease, opacity 400ms ease;
}

.pollen::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 246, 184, 0.98) 0 18%, rgba(209, 231, 145, 0.72) 28%, rgba(209, 231, 145, 0) 72%);
  box-shadow: 0 0 11px rgba(222, 236, 157, 0.44);
  animation: pollen-drift 8s ease-in-out infinite alternate;
}

.pollen:hover,
.pollen:focus-visible {
  transform: none;
  outline: 1px solid rgba(244, 238, 184, 0.9);
  outline-offset: 4px;
}

.pollen:hover::before,
.pollen:focus-visible::before {
  filter: brightness(1.45);
}

.pollen.pulse {
  scale: 1.4;
}

.pollen[data-activated="true"] {
  opacity: 0.32;
  cursor: default;
}

.pollen--one { left: 9%; top: 18%; }
.pollen--two { left: 29%; top: 71%; }
.pollen--three { left: 53%; top: 12%; }
.pollen--four { left: 72%; top: 62%; }
.pollen--five { left: 89%; top: 30%; }
.pollen--one::before { animation-delay: -1.2s; }
.pollen--two::before { animation-delay: -5.4s; animation-duration: 10s; }
.pollen--three::before { animation-delay: -3.1s; animation-duration: 9s; }
.pollen--four::before { animation-delay: -6.7s; animation-duration: 11s; }
.pollen--five::before { animation-delay: -2.4s; animation-duration: 9.5s; }

.pollen-progress {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.garden-portal {
  min-height: 2.5rem;
  margin-top: 1.5rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  translate: 0 8px;
  transition: opacity 1.2s ease, translate 1.2s ease, visibility 1.2s;
}

.garden-portal[data-revealed="true"] {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.garden-portal a {
  color: rgba(231, 239, 205, 0.96);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  text-decoration-color: rgba(201, 224, 171, 0.5);
  text-underline-offset: 0.35rem;
}

@keyframes pollen-drift {
  from { translate: -7px 8px; rotate: -8deg; }
  to { translate: 10px -13px; rotate: 11deg; }
}

.garden-scene {
  width: min(1120px, calc(100% - 2rem));
  margin: 3.5rem auto;
}

.garden-scene__header {
  width: min(680px, 100%);
  margin-bottom: 2rem;
}

.garden-scene__header h2 {
  margin: 0.2rem 0 0.6rem;
  color: rgba(246, 239, 218, 0.98);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: 0;
}

.garden-scene__header > p:last-child {
  max-width: 58ch;
  color: rgba(221, 225, 207, 0.74);
  line-height: 1.7;
}

.garden-scene__path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(198, 218, 174, 0.2);
  border-left: 1px solid rgba(198, 218, 174, 0.2);
}

.garden-scene__moment {
  position: relative;
  min-height: 310px;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-right: 1px solid rgba(198, 218, 174, 0.2);
  border-bottom: 1px solid rgba(198, 218, 174, 0.2);
  background:
    linear-gradient(145deg, rgba(18, 28, 20, 0.72), rgba(7, 10, 8, 0.9));
}

.garden-scene__moment--shore {
  background: linear-gradient(145deg, rgba(18, 35, 34, 0.78), rgba(7, 12, 12, 0.92));
}

.garden-scene__moment--ember {
  background: linear-gradient(145deg, rgba(42, 29, 18, 0.68), rgba(12, 9, 7, 0.92));
}

.garden-scene__index {
  margin: 0 0 1.25rem;
  color: rgba(181, 205, 153, 0.72);
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.garden-scene__moment h3 {
  margin: 0 0 0.8rem;
  color: rgba(244, 237, 214, 0.96);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 500;
  letter-spacing: 0;
}

.garden-scene__moment p:not(.garden-scene__index) {
  color: rgba(217, 220, 202, 0.72);
  line-height: 1.7;
}

.garden-scene__moment strong {
  color: rgba(211, 232, 178, 0.94);
  font-weight: 500;
}

.garden-scene__moment button {
  margin-top: 0.5rem;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid rgba(201, 224, 171, 0.5);
  border-radius: 0;
  background: transparent;
  color: rgba(228, 238, 211, 0.92);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
}

.garden-scene__moment button:hover,
.garden-scene__moment button:focus-visible {
  border-bottom-color: rgba(228, 241, 207, 0.95);
  color: #fff;
}

.housegarden-biome-controls {
  position: static;
  width: min(42rem, 100%);
  max-height: none;
  margin: 1.5rem 0 0;
}

.housegarden-runtime {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: start;
  width: min(42rem, 100%);
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(198, 218, 174, 0.22);
  border-radius: 8px;
  background: rgba(9, 16, 10, 0.62);
}

.housegarden-runtime h2,
.housegarden-runtime p {
  margin: 0;
}

.housegarden-runtime h2 {
  color: rgba(244, 237, 214, 0.96);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 500;
}

.housegarden-runtime__kicker {
  color: rgba(181, 205, 153, 0.72);
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.housegarden-runtime__list {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.housegarden-runtime__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(198, 218, 174, 0.13);
  color: rgba(217, 220, 202, 0.72);
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
}

.housegarden-runtime__list li[data-active="true"] strong {
  color: rgba(211, 232, 178, 0.98);
}

.housegarden-runtime__list strong {
  color: rgba(232, 238, 218, 0.92);
  font-weight: 600;
  text-transform: capitalize;
}

.housegarden-runtime button {
  border: 1px solid rgba(211, 232, 178, 0.58);
  border-radius: 4px;
  background: transparent;
  color: rgba(232, 238, 218, 0.92);
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

.housegarden-runtime label {
  display: grid;
  gap: 0.25rem;
  color: rgba(217, 220, 202, 0.72);
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  text-transform: capitalize;
}

.housegarden-runtime select {
  border: 1px solid rgba(211, 232, 178, 0.4);
  border-radius: 4px;
  background: rgba(9, 16, 10, 0.86);
  color: rgba(232, 238, 218, 0.92);
  font: inherit;
  padding: 0.35rem;
}

.housegarden-runtime button:hover,
.housegarden-runtime button:focus-visible {
  background: rgba(211, 232, 178, 0.14);
}

.garden-depth {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
  border-top: 1px solid rgba(198, 218, 174, 0.2);
}

.garden-depth a {
  display: grid;
  gap: 0.3rem;
  padding: 1.25rem 1rem;
  border-right: 1px solid rgba(198, 218, 174, 0.2);
  color: rgba(232, 238, 218, 0.9);
  text-decoration: none;
}

.garden-depth a:last-child {
  border-right: 0;
}

.garden-depth span {
  color: rgba(178, 194, 159, 0.68);
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.garden-depth strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 500;
}

@media (max-width: 720px) {
  .garden-scene__path,
  .garden-depth {
    grid-template-columns: 1fr;
  }

  .garden-depth a {
    border-right: 0;
    border-bottom: 1px solid rgba(198, 218, 174, 0.2);
  }

  .garden-depth a:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pollen::before {
    animation: none;
  }

  .pollen,
  .garden-portal {
    transition: none;
  }
}
