.story-main {
  max-width: 1000px;
}

.story-heading {
  margin-bottom: clamp(18px, 2.8vw, 28px);
}

.story-heading .product-kind {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.story-heading .product-kind::before {
  width: 1.4rem;
  height: 1px;
  background: #a7874e;
  content: '';
}

.story-heading h1 {
  margin: .28em 0 .18em;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.8vw, 3.55rem);
  line-height: 1.18;
}

.story-heading h1 span {
  color: #8a6936;
  white-space: nowrap;
}

.story-heading p:last-child {
  margin: 0;
  color: var(--catalog-muted);
}

.story-main h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.35;
}

.story-listen {
  display: grid;
  grid-template-columns: minmax(175px, .65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(24px, 4.4vw, 46px);
  padding: clamp(20px, 3.5vw, 36px);
  border: 1px solid #ffffff18;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 12% 12%, #30604d, transparent 53%),
    linear-gradient(135deg, #1c4d3e, #12382c);
  color: #fffef6;
}

.story-portrait {
  position: relative;
  width: min(100%, 266px);
  aspect-ratio: 5 / 6;
  justify-self: center;
  overflow: hidden;
  border: 1px solid #e5ce9759;
  border-radius: 50% 50% 14px 14px / 37% 37% 14px 14px;
  background: radial-gradient(ellipse at 50% 40%, #4c735f, #234939 76%);
}

.story-portrait #story-auntie {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

.story-listen-copy {
  min-width: 0;
}

.story-listen .product-kind {
  color: #eed59c;
}

.story-listen h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: inherit;
}

.story-listen .recording-controls {
  margin: .9rem 0;
}

.story-listen .recording-controls select,
#story-start,
.story-play-button {
  min-height: 44px;
  border-radius: 8px;
  padding: .5rem .9rem;
  font-size: .93rem;
  font-weight: 650;
}

#story-start,
.story-play-button {
  border: 1px solid #efd18e;
  background: #f4e3b9;
  color: #174638;
  cursor: pointer;
}

#story-start:hover,
.story-play-button:hover {
  background: #f9edcc;
}

.story-entry-player:not([hidden]) {
  position: fixed;
  z-index: 20;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .55rem .75rem;
  align-items: center;
  width: min(350px, calc(100vw - 2rem));
  padding: .8rem 1rem 1rem;
  border: 1px solid #dcca9e;
  border-radius: 14px;
  background: #fff9ec;
  color: #174638;
  box-shadow: 0 10px 36px #102f2770;
}

.story-entry-player h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
}

.story-player-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.story-player-close:hover {
  background: #efe8d6;
}

.story-play-button {
  grid-column: 1 / -1;
  justify-self: start;
}

.story-player-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .9rem;
}

.story-player-status:empty {
  display: none;
}

.story-listen .recording-transcript {
  margin: 0;
  padding: .65rem .85rem;
  border-inline-start: 2px solid #d9b876;
  border-radius: 0 9px 9px 0;
  background: #ffffff0e;
  color: #fffcf0;
  font-size: 1rem;
  line-height: 1.72;
}

#story-play-status,
.story-role-note {
  margin: .55rem 0 0;
  color: #e2e9db;
  font-size: .85rem;
  line-height: 1.55;
}

#story-play-status:empty {
  display: none;
}

.story-listen .story-jump {
  gap: .4rem;
  margin-top: .8rem;
}

.story-listen .story-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .3rem .62rem;
  border: 1px solid #e8d1a74f;
  border-radius: 8px;
  color: #fff2d0;
  font-size: .875rem;
  text-decoration: none;
}

.story-listen .story-jump a:hover {
  background: #ffffff15;
}

@media (max-width: 630px) {
  .story-listen {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  .story-portrait {
    width: min(100%, 160px);
  }

  .story-listen .story-jump a {
    min-height: 44px;
  }
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  margin-block: 22px;
  padding: clamp(18px, 4.6vw, 44px);
  border: 1px solid #ded2ae;
  border-radius: 18px;
  background: #fffaed;
}

.story-card p,
.story-questions p {
  margin: .75em 0;
  line-height: 1.8;
}

.story-card figure {
  margin: 0;
  color: var(--catalog-muted);
  font-size: .85rem;
}

.flavor-options button[aria-pressed="true"] {
  border-color: #174638;
  background: #e4eee4;
  box-shadow: inset 0 0 0 1px #174638;
}

.flavor-options button,
.flavor-actions button,
.flavor-actions a {
  min-height: 44px;
}

.flavor-preview {
  margin: 1rem 0;
  width: min(100%, 340px);
}

.flavor-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ded2ae;
  border-radius: 10px;
}

.flavor-actions {
  margin-top: .85rem;
}

.flavor-actions a:not([hidden]) {
  display: inline-flex;
  align-items: center;
  padding: 0 .55rem;
}

.story-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.story-card figcaption {
  margin-top: 7px;
}

.story-source {
  color: var(--green);
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.story-questions {
  margin-block: 26px;
}

.story-questions details {
  margin: 12px 0 14px;
  padding: 12px 16px;
  border: 1px solid var(--catalog-line);
  border-radius: 12px;
  background: var(--catalog-card);
}

.story-questions summary {
  cursor: pointer;
  font-weight: 650;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.story-ask-link {
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--green);
  color: #fffef6;
  font-weight: 650;
}

.story-entry .showcase-qr > div {
  flex: 1;
  max-width: 32rem;
  min-width: 0;
}

@media (max-width: 660px) {
  .story-main {
    width: calc(100% - 32px);
  }

  .story-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-entry .showcase-qr img {
    width: clamp(94px, 30vw, 144px);
    height: auto;
    aspect-ratio: 1;
  }
}

.role-family-story { margin: 28px 0; padding: 25px 30px; background: #f1ead9; border-left: 3px solid #bda15d; border-radius: 0 14px 14px 0; }
.role-family-story h2 { color: #174638; margin: 8px 0 14px; }
.role-family-story p { line-height: 1.9; }
.role-family-story a { font-size: .8rem; }
.story-questions details audio { display: block; max-width: 100%; width: 340px; margin: 16px 0; }

#story-faq-start{background:#174638;color:#fff8e7;border:0;border-radius:8px;padding:10px 18px;font:inherit;cursor:pointer}#story-faq-status{font-size:.8rem;color:#5a7061}
