.album-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.album-tab {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  min-height: 48px;
  border: 1px solid #d5c4bf;
  border-radius: 15px;
  background: #fffaf4;
  font-weight: 650;
}
.album-tab[aria-pressed='true'] {
  background: #efe2f2;
  border-color: #be9ec3;
}
.album-tab svg {
  width: 30px;
  height: 30px;
}
#collection-summary .panel h2 {
  margin-bottom: 5px;
}
.market-hero,
.shelf-heading,
.journey-card,
.diary-pages,
.shop-item,
.empty-shelf {
  border: 1px solid #ccbbae;
  box-shadow: var(--shadow);
  border-radius: 22px;
  background: var(--paper);
}
.market-hero,
.shelf-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 17px;
  min-height: 68px;
  margin-bottom: 14px;
}
.market-hero {
  aspect-ratio: 3.1;
  min-height: 155px;
  background: #ffe6ce url('market.svg') center 54% / cover;
}
.market-hero h2,
.forest-sign,
.shop-wallet {
  background: #fff8e8f0;
  border: 1px solid #c9a793;
  border-radius: 15px;
  padding: 6px 12px;
  max-width: 82%;
}
.shop-wallet {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 39px;
  line-height: 1;
}
.shop-wallet svg {
  width: 27px;
  height: 27px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.shop-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  text-align: center;
}
.shelf-art {
  width: 100%;
  border-radius: 15px;
  background: radial-gradient(ellipse at center, #fff1c4, #f7e9df);
  display: grid;
  place-items: center;
  min-height: 95px;
}
.blossom .shelf-art,
.found .shelf-art {
  background: radial-gradient(ellipse, #fff4d6, #e4efdb);
}
.cushion .shelf-art {
  background: radial-gradient(ellipse, #fff5e4, #e5deef);
}
.shelf-art svg {
  width: clamp(55px, 10vw, 94px);
  height: auto;
}
.shop-item h3 {
  font-size: clamp(1.14rem, 2.3vw, 1.48rem);
}
.shop-buy,
.shop-own,
.empty-shelf button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 45px;
  padding: 5px 12px;
  border-radius: 14px;
  background: #fae7b3;
  border: 1px solid #d4b480;
  font-weight: 700;
}
.shop-own {
  background: #ebf0de;
  border-color: #b6c3a3;
}
.shop-buy:disabled {
  background: #eee8df;
  color: #675b62;
  cursor: default;
}
.shop-item small {
  font-size: 0.85rem;
}
.empty-shelf {
  grid-column: 1/-1;
  display: grid;
  justify-items: center;
  padding: 25px;
  gap: 10px;
}
.empty-shelf > svg {
  width: 68px;
  height: 68px;
}
.album-heading {
  margin: 12px 0;
}
.diary-pages {
  margin: 0;
  padding: 13px 20px;
  list-style: none;
  background: linear-gradient(90deg, #f5e6d8 0 8px, #fffbf2 8px);
}
.memory-entry {
  display: grid;
  grid-template-columns: 65px 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #d9c7b4;
  text-align: left;
}
.memory-entry:last-child {
  border-bottom: 0;
}
.memory-entry svg {
  grid-row: span 2;
  width: 59px;
  height: 59px;
}
.memory-entry strong {
  align-self: end;
}
.memory-entry small {
  align-self: start;
  color: #726373;
}
.growth-path {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.growth-path svg {
  width: 37px;
  height: 37px;
}
.growth-path .future {
  filter: grayscale(0.8);
  opacity: 0.42;
}
#home-decor {
  position: absolute;
  pointer-events: none;
  bottom: 8%;
  right: 6%;
  z-index: 2;
}
#home-decor svg {
  width: clamp(48px, 8vw, 90px);
  height: auto;
  filter: drop-shadow(0 3px 2px #67495433);
}
.journey-card {
  overflow: hidden;
  max-width: 900px;
  margin: auto;
}
.forest-picture {
  position: relative;
  background: #e8e4c9 url('garden.svg') center/cover;
  aspect-ratio: 2.05;
  isolation: isolate;
}
.forest-sign {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
}
.bed-markers {
  position: absolute;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  left: 25%;
  width: 50%;
  bottom: 10%;
}
.bed,
.landmark {
  background: #fff9ecde;
  border: 1px solid #ba9c7f;
  box-shadow: 0 2px 0 #b39878;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  min-height: 55px;
  padding: 4px 8px;
  font-size: 0.85rem;
  font-weight: 670;
}
.bed svg,
.landmark svg {
  width: clamp(32px, 5vw, 56px);
  height: auto;
}
.bed-1[data-stage='3'] svg {
  filter: hue-rotate(32deg);
}
.bed-2[data-stage='3'] svg {
  filter: hue-rotate(255deg);
}
.forest-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  min-height: 58px;
  font-weight: 650;
}
.forest-footer svg {
  width: 35px;
  height: 35px;
}
.trail-tally {
  margin-left: auto;
}
.landmarks {
  position: absolute;
  inset: 33% 13% 18%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landmark {
  border-radius: 50%;
  min-width: 62px;
  min-height: 62px;
  background: #fff2dceb;
}
.landmark span {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.mark-1 {
  align-self: flex-end;
}
.forest-prize {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -38%;
  width: max-content;
  max-width: 85%;
  text-align: center;
  padding: 13px 22px;
  border: 1px solid #c6aa91;
  border-radius: 20px;
  background: #fffaeaf5;
}
.forest-prize svg {
  width: 60px;
  height: 60px;
}
#collection-note,
#journey-note {
  margin: 8px 0;
  font-weight: 650;
  color: var(--plum);
}
.shop-item,
.memory-entry,
.forest-prize {
  animation: album-appear 0.28s ease-out both;
}
@keyframes album-appear {
  from {
    opacity: 0.6;
    transform: translateY(3px);
  }
}
@media (max-width: 690px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .album-tabs {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .album-tab {
    flex: 1;
    flex-direction: column;
    gap: 1px;
    padding: 4px;
    font-size: 0.84rem;
  }
  .market-hero {
    aspect-ratio: 2.1;
  }
  .market-hero h2 {
    font-size: 1.2rem;
  }
  .shop-item {
    padding: 8px;
  }
  .forest-picture {
    aspect-ratio: 1.45;
  }
  .bed-markers {
    left: 12%;
    width: 76%;
    bottom: 11%;
  }
  .forest-sign {
    top: 8px;
    left: 8px;
  }
  .landmarks {
    inset: 31% 8% 16%;
  }
  .shelf-art {
    min-height: 76px;
  }
  .album-tab svg {
    width: 26px;
    height: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shop-item,
  .memory-entry,
  .forest-prize {
    animation: none;
  }
}

.bed[data-stage='1'] svg {
  scale: 0.72;
  transform-origin: bottom;
}
.hunt-picture {
  background-image:
    linear-gradient(140deg, #8b79ae22, #fff5d515), url('garden.svg');
}
@media (prefers-reduced-motion: no-preference) {
  .bed svg,
  .forest-footer > svg:last-of-type {
    animation: grow-in 0.3s ease-out;
  }
  @keyframes grow-in {
    from {
      transform: translateY(3px) scale(0.87);
    }
  }
}
