:root {
  --cream: #fff7e8;
  --paper: #fffaf1;
  --green: #075447;
  --emerald: #078b72;
  --mint: #87d99c;
  --lime: #bdea70;
  --yellow: #fff56b;
  --pink: #f7aaa8;
  --coral: #f26b66;
  --blue: #65c8f2;
  --purple: #af75d5;
  --orange: #ffa63a;
  --ink: #101b18;
  --line: #0b3029;
  --display: "Lilita One", Georgia, serif;
  --body: "DM Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--green);
  font-family: var(--body);
}

html.checkout-return body {
  background: var(--blue);
}

.checkout-return-boot {
  display: none;
}

html.checkout-return .checkout-return-boot {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 18% 20%, rgb(255 245 107 / 35%) 0 4rem, transparent 4.1rem),
    radial-gradient(circle at 84% 76%, rgb(247 170 168 / 45%) 0 5rem, transparent 5.1rem),
    var(--blue);
}

.checkout-return-boot-card {
  width: min(34rem, 100%);
  padding: clamp(2rem, 6vw, 3.5rem);
  border: 3px solid var(--line);
  border-radius: 2rem;
  background: var(--cream);
  box-shadow: 12px 14px 0 rgb(7 84 71 / 18%);
  text-align: center;
}

.checkout-return-boot-kicker {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-return-boot-card h1 {
  margin: 0.65rem 0;
  font: 400 clamp(2rem, 7vw, 3.4rem)/0.95 var(--display);
}

.checkout-return-boot-card p {
  margin: 0;
  font-weight: 600;
}

.checkout-return-boot-progress {
  height: 0.8rem;
  margin-top: 1.6rem;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: white;
}

.checkout-return-boot-progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--yellow);
  animation: checkout-boot-progress 1.5s ease-in-out infinite alternate;
}

@keyframes checkout-boot-progress {
  from { transform: translateX(-75%); }
  to { transform: translateX(210%); }
}

html.checkout-return body > .site-header,
html.checkout-return body > main,
html.checkout-return body > .site-footer {
  visibility: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.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;
}

.site-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  padding: 0 3.5vw;
  border-top: 2px solid var(--green);
  background: var(--cream);
  box-shadow: 0 2px 8px rgba(7, 84, 71, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.8vw, 3.2rem);
  font-size: 1rem;
  font-weight: 700;
}

.nav a:not(.round-link) {
  position: relative;
}

.nav a:not(.round-link)::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-right {
  justify-content: flex-end;
  gap: 1.1rem;
}

.site-language-menu {
  position: relative;
  flex: 0 0 auto;
}

.site-language-trigger {
  display: inline-flex;
  width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--green) 55%, transparent);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.site-language-trigger:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}

.site-language-trigger:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.site-language-chevron {
  color: var(--green);
  font-size: 0.68rem;
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

.site-language-trigger[aria-expanded="true"] .site-language-chevron {
  transform: translateY(1px) rotate(180deg);
}

.site-language-options {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.65rem);
  right: 0;
  width: 172px;
  padding: 0.45rem;
  border: 1.5px solid color-mix(in srgb, var(--green) 32%, transparent);
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 0 14px 35px rgba(7, 84, 71, 0.2);
}

.site-language-options[hidden] { display: none; }

.site-language-options button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
}

.site-language-options button:hover,
.site-language-options button:focus-visible {
  outline: 0;
  background: color-mix(in srgb, var(--yellow) 42%, var(--cream));
}

.site-language-options button[aria-checked="true"] {
  background: var(--yellow);
}

.header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
}

.round-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  font-size: 1.25rem;
}

.wordmark {
  display: block;
  justify-self: center;
  line-height: 0;
}

.wordmark img {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.poop-rain {
  position: fixed;
  z-index: 9999;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.poop-rain-drop {
  position: absolute;
  top: -12vh;
  left: var(--left);
  font-size: var(--size);
  line-height: 1;
  filter: drop-shadow(0 4px 2px rgba(0, 47, 38, 0.18));
  opacity: 0;
  will-change: transform, opacity;
  animation-name: poop-rain-fall;
  animation-timing-function: cubic-bezier(0.22, 0.64, 0.38, 1);
  animation-fill-mode: forwards;
}

@keyframes poop-rain-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -8vh, 0) rotate(var(--start-rotation));
  }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 122vh, 0) rotate(var(--end-rotation));
  }
}

.menu-button {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: calc(100svh - 74px);
  min-height: 610px;
  background: var(--emerald);
}

.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2.4rem, 5vw, 5rem) clamp(1.5rem, 6vw, 6.5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.light {
  color: var(--cream);
}

.hero h1,
.songs-heading h2,
.why-copy h2,
.how-copy h2,
.faq-section h2,
.signup h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: none;
  color: var(--cream);
  font-size: clamp(3.1rem, 4.5vw, 5.3rem);
  line-height: 0.93;
}

.hero h1 span {
  display: block;
  white-space: normal;
}

.hero h2 {
  max-width: 31rem;
  margin: 1.25rem 0 0;
  color: var(--cream);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 2.2rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 8px 0 rgba(16, 27, 24, 0.18);
  transform: translateY(-3px);
}

.button-yellow {
  background: var(--yellow);
  color: var(--green);
}

.button-green {
  background: var(--green);
  color: var(--cream);
}

.text-link {
  font-weight: 700;
}

.text-link span {
  margin-left: 0.35rem;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.quick-filters button,
.filter-pill {
  min-height: 38px;
  padding: 0 1rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

.quick-filters button {
  color: var(--cream);
}

.quick-filters button:hover,
.quick-filters button:focus-visible {
  background: var(--cream);
  color: var(--green);
}

.hero-media {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--mint);
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(7, 84, 71, 0.55));
  content: "";
  pointer-events: none;
}

.hero-media > img,
.hero-media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media > video {
  position: absolute;
  inset: 0;
}

.hero-rings {
  position: absolute;
  z-index: 1;
  inset: 6% 5%;
  pointer-events: none;
}

.hero-rings i {
  position: absolute;
  border: 5px solid var(--line);
  border-radius: 44% 56% 47% 53%;
  animation: wobble 9s ease-in-out infinite alternate;
}

.hero-rings i:nth-child(1) { inset: 2%; }
.hero-rings i:nth-child(2) { inset: 11%; animation-delay: -2s; }
.hero-rings i:nth-child(3) { inset: 20%; animation-delay: -4s; }

.video-toggle,
.play-button {
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  color: var(--green);
  cursor: pointer;
  font-weight: 800;
}

.video-toggle {
  position: absolute;
  z-index: 4;
  right: 2rem;
  bottom: 2rem;
  width: 68px;
  height: 68px;
  font-size: 1.2rem;
}

.video-toggle .pause-icon,
.video-toggle.is-playing .play-icon {
  display: none;
}

.video-toggle.is-playing .pause-icon {
  display: inline;
}

.now-playing {
  position: absolute;
  z-index: 3;
  bottom: 2.4rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: calc(100% - 8rem);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.92);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.equalizer {
  display: flex;
  height: 18px;
  align-items: center;
  gap: 2px;
}

.equalizer i {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--green);
  animation: sound 650ms ease-in-out infinite alternate;
}

.equalizer i:nth-child(2) { animation-delay: -200ms; }
.equalizer i:nth-child(3) { animation-delay: -400ms; }
.equalizer i:nth-child(4) { animation-delay: -100ms; }

.songs-section {
  min-height: 920px;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 7rem) 0 5rem;
  background: var(--cream);
}

.songs-heading {
  padding: 0 1.25rem;
  text-align: center;
}

.songs-heading h2,
.faq-section h2 {
  color: var(--green);
  font-size: clamp(2.8rem, 4.8vw, 5rem);
  line-height: 1;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
}

.filter-pill {
  color: var(--green);
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--green);
  color: var(--cream);
}

.carousel-tools {
  display: flex;
  width: min(100% - 3rem, 1420px);
  align-items: center;
  justify-content: space-between;
  margin: 2rem auto -2.2rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.carousel-buttons {
  display: flex;
  gap: 0.55rem;
}

.carousel-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: var(--green);
  color: var(--cream);
  transform: scale(1.06);
}

.album-rail {
  display: grid;
  grid-auto-columns: clamp(230px, 21vw, 330px);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: clamp(1rem, 2.2vw, 2.5rem);
  width: 100%;
  margin: 5rem 0 0;
  padding: 1.5rem max(1.5rem, 4vw) 2.5rem;
  align-items: end;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: max(1.5rem, 4vw);
  scroll-snap-type: none;
  scrollbar-width: none;
  cursor: auto;
}

.album-rail::-webkit-scrollbar {
  display: none;
}

.album-card {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  opacity: 1;
  scroll-snap-align: start;
  user-select: none;
  transition: opacity 200ms ease, transform 260ms ease;
}

.album-card:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 8px;
  border-radius: 10px;
}

.album-card:nth-child(even) {
  transform: translateY(-18px) rotate(1deg);
}

.album-card:nth-child(odd) {
  transform: rotate(-1deg);
}

.album-card:hover {
  transform: translateY(-28px) rotate(0);
}

.album-card.is-hidden {
  display: none;
}

.album-card.is-playing .album-art {
  box-shadow: 0 0 0 9px var(--cream), 0 0 0 13px var(--green), 0 22px 35px rgba(7, 84, 71, 0.18);
}

.album-card.is-playing .album-spark {
  animation: spin 2.6s linear infinite;
}

.album-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 7px;
  box-shadow: 8px 10px 0 rgba(7, 84, 71, 0.14);
  transition: box-shadow 200ms ease;
}

.album-art::before,
.album-art::after {
  position: absolute;
  border: 3px solid var(--line);
  border-radius: 50%;
  content: "";
}

.album-art::before {
  width: 72%;
  height: 72%;
  top: 19%;
  left: -24%;
}

.album-art::after {
  width: 44%;
  height: 44%;
  right: -13%;
  bottom: -13%;
}

.album-art p {
  position: absolute;
  z-index: 2;
  top: 14%;
  left: 10%;
  margin: 0;
  color: var(--green);
  font-family: var(--display);
  max-width: 74%;
  font-size: clamp(1.75rem, 2.4vw, 3rem);
  line-height: 0.9;
  text-wrap: balance;
  text-shadow: 0 2px 0 rgba(255, 248, 232, 0.72);
}

.album-cover-image {
  position: absolute;
  z-index: 1;
  right: -4%;
  bottom: -5%;
  width: 74%;
  height: 74%;
  object-fit: contain;
  filter: drop-shadow(0 7px 7px rgba(7, 84, 71, 0.16));
  pointer-events: none;
}

.album-spark {
  position: absolute;
  z-index: 3;
  top: 7%;
  right: 8%;
  font-size: 2.3rem;
}

.play-button {
  position: absolute;
  z-index: 5;
  right: 8%;
  bottom: 8%;
  width: 56px;
  height: 56px;
  font-size: 1rem;
}

.album-character {
  position: absolute;
  z-index: 1;
  bottom: 6%;
  left: 12%;
  width: 42%;
  height: 42%;
  border: 3px solid var(--line);
  border-radius: 55% 45% 51% 49%;
  background: var(--yellow);
  color: transparent;
}

.album-character::before,
.album-character::after {
  position: absolute;
  content: "";
}

.duck::before {
  top: 28%;
  right: -20%;
  width: 38%;
  height: 20%;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--orange);
}

.duck::after,
.tomato::after {
  top: 21%;
  left: 35%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.tomato {
  background: var(--coral);
}

.tomato::before {
  top: -14%;
  left: 28%;
  width: 45%;
  height: 25%;
  background: var(--green);
  clip-path: polygon(50% 100%, 0 0, 42% 24%, 65% 0, 100% 28%);
}

.rainbow {
  position: absolute;
  right: 12%;
  bottom: -8%;
  width: 70%;
  height: 58%;
  border: 22px solid var(--coral);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  box-shadow: inset 0 0 0 15px var(--yellow), inset 0 0 0 18px var(--line);
}

.toothbrush {
  position: absolute;
  bottom: 20%;
  left: 16%;
  width: 63%;
  height: 15%;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  transform: rotate(-24deg);
}

.toothbrush::after {
  position: absolute;
  top: -16px;
  right: 2px;
  width: 30%;
  height: 18px;
  border: 3px solid var(--line);
  background: repeating-linear-gradient(90deg, var(--green) 0 4px, transparent 4px 8px);
  content: "";
}

.cloud {
  position: absolute;
  bottom: 15%;
  left: 12%;
  width: 62%;
  height: 27%;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
}

.cloud::before,
.cloud::after {
  position: absolute;
  bottom: 20%;
  border: 3px solid var(--line);
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
  background: var(--cream);
  content: "";
}

.cloud::before { left: 10%; width: 40%; height: 120%; }
.cloud::after { right: 10%; width: 34%; height: 90%; }

.album-mint .album-art { background: #a7e3b4; }
.album-yellow .album-art { background: #ffd83f; }
.album-pink .album-art { background: #f5a5c2; }
.album-blue .album-art { background: #77cff2; }
.album-purple .album-art { background: #c297df; }

.album-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.4rem 0.25rem 0;
}

.album-meta span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.album-meta strong {
  font-size: 1.1rem;
}

.why-section,
.how-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 760px;
  padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 5.5vw, 7rem);
  align-items: center;
}

.why-section {
  gap: 5vw;
  background: var(--pink);
}

.why-copy,
.how-copy {
  max-width: 660px;
}

.why-copy h2,
.how-copy h2 {
  font-size: clamp(2.9rem, 4.8vw, 5.4rem);
  line-height: 0.98;
}

.why-copy > p,
.how-copy > p {
  max-width: 37rem;
  margin: 1.75rem 0;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.65;
}

.portrait-wrap,
.round-video {
  position: relative;
  justify-self: center;
  width: min(100%, 610px);
  aspect-ratio: 0.88;
  overflow: hidden;
  border: 4px solid var(--line);
  border-radius: 48% 48% 46% 46%;
  background: var(--blue);
}

.portrait-wrap img,
.round-video img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sunburst {
  position: absolute;
  z-index: 1;
  inset: -15%;
  background: repeating-conic-gradient(var(--yellow) 0deg 13deg, var(--blue) 13deg 27deg, var(--pink) 27deg 39deg, var(--green) 39deg 53deg);
}

.portrait-note {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 1.8rem;
}

.note-one { top: 10%; right: 7%; transform: rotate(12deg); }
.note-two { bottom: 11%; left: 6%; transform: rotate(-12deg); }

.quote-section {
  position: relative;
  display: flex;
  min-height: 760px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 7rem) 5vw;
  background: var(--emerald);
  color: var(--cream);
  text-align: center;
}

.article-proof {
  position: relative;
  z-index: 1;
  width: 100%;
}

.article-proof {
  max-width: 1320px;
  margin: 0;
}

.article-proof h2 {
  max-width: 12ch;
  margin: 0 0 clamp(1rem, 2vh, 1.5rem);
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  font-weight: 400;
  line-height: 1.02;
}

.article-publications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: clamp(1.5rem, 3vh, 2.3rem) 0 0;
}

.article-publications button {
  min-height: 46px;
  padding: 0.55rem 0.85rem;
  border: 2px solid rgba(255, 247, 232, 0.42);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 247, 232, 0.7);
  font: 700 clamp(0.74rem, 1vw, 0.95rem)/1.15 var(--body);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.article-publications button:hover,
.article-publications button:focus-visible {
  border-color: var(--cream);
  color: var(--cream);
  transform: translateY(-1px);
}

.article-publications button.is-active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--green);
}

.article-carousel {
  display: grid;
  width: 100%;
  grid-template-areas:
    "visual info"
    "controls info";
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  grid-template-rows: auto auto;
  column-gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  outline: none;
}

.article-carousel:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 12px;
  border-radius: 2rem;
}

.article-carousel-viewport {
  grid-area: visual;
  align-self: end;
  overflow: hidden;
}

.article-carousel-track {
  display: flex;
  align-items: flex-start;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.article-slide {
  display: flex;
  min-width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 2.5rem;
}

.article-slide img {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(60svh, 570px);
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(0, 42, 36, 0.24));
}

.article-info {
  grid-area: info;
  align-self: center;
  min-width: 0;
  color: var(--cream);
  text-align: left;
}

.article-summary {
  max-width: 34rem;
  margin: 0;
  color: rgba(255, 247, 232, 0.9);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
}

.article-actions {
  display: flex;
  align-items: center;
  margin-top: clamp(1.5rem, 3vh, 2.25rem);
}

.article-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0 0.35rem;
  border-bottom: 2px dashed var(--yellow);
  color: var(--yellow);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.article-read-link:hover,
.article-read-link:focus-visible {
  color: var(--cream);
  transform: translateY(-2px);
}

.article-slide[aria-hidden="false"] img,
.article-slide:not([aria-hidden]) img {
  animation: newspaper-float 4.8s ease-in-out infinite;
}

.article-visual-controls {
  display: flex;
  grid-area: controls;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: clamp(0.65rem, 1.5vh, 1rem);
}

.article-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.article-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.article-arrow:hover,
.article-arrow:focus-visible {
  background: var(--cream);
  transform: translateY(-2px) rotate(-3deg);
}

.article-next:hover,
.article-next:focus-visible { transform: translateY(-2px) rotate(3deg); }

.article-indicators {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.article-indicators button {
  width: 15px;
  height: 15px;
  padding: 0;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.article-indicators button:hover,
.article-indicators button:focus-visible { transform: scale(1.18); }

.article-indicators button.is-active {
  border-color: var(--yellow);
  background: var(--yellow);
}

@keyframes newspaper-float {
  0%, 100% { transform: translateY(0) rotate(-0.2deg); }
  50% { transform: translateY(-7px) rotate(0.2deg); }
}

.doodle {
  position: absolute;
  z-index: 0;
  border: 4px solid var(--line);
}

.star-a,
.star-b {
  border: 0;
  color: #ff5478;
  font-size: 4rem;
  -webkit-text-stroke: 3px var(--line);
}

.star-a { top: 8%; left: 5%; transform: rotate(-14deg); }
.star-b { right: 5%; bottom: 9%; transform: rotate(12deg); }
.dot-a { top: 16%; right: 12%; width: 33px; height: 33px; border-radius: 50%; background: var(--orange); }
.dot-b { bottom: 22%; left: 8%; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); }
.ring-a { right: -25px; top: 42%; width: 70px; height: 70px; border-radius: 50%; background: var(--blue); }

.how-section {
  gap: 7vw;
  background: var(--blue);
}

.steps {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  align-items: start;
}

.steps li > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--display);
  font-size: 1.4rem;
}

.steps strong {
  display: block;
  font-size: 1.1rem;
}

.steps p {
  margin: 0.2rem 0 0;
  line-height: 1.5;
}

.round-video {
  aspect-ratio: 1;
  border-radius: 50%;
}

.round-video img {
  filter: saturate(1.08);
}

.round-video::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: linear-gradient(150deg, transparent 42%, rgba(7, 84, 71, 0.72));
  content: "";
}

.round-video-overlay {
  position: absolute;
  z-index: 4;
  right: 12%;
  bottom: 13%;
  color: var(--cream);
  text-align: right;
}

.round-video-overlay span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.round-video-overlay strong {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  font-weight: 400;
  line-height: 0.8;
}

.round-toggle {
  right: auto;
  bottom: 8%;
  left: 10%;
}

.faq-section {
  position: relative;
  display: grid;
  min-height: 780px;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  overflow: hidden;
  padding: clamp(5rem, 8vw, 8rem) clamp(1.5rem, 8vw, 9rem);
  background: var(--cream);
}

.faq-intro,
.faq-list {
  position: relative;
  z-index: 2;
}

.faq-section h2 {
  max-width: 630px;
}

.faq-intro > p {
  max-width: 540px;
  margin: 1.5rem 0 2.2rem;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.65;
}

.faq-list {
  display: grid;
  width: 100%;
  max-width: 760px;
  gap: 0.7rem;
  justify-self: end;
}

.faq-list details {
  border: 2px solid rgba(2, 58, 48, 0.32);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 0 rgba(2, 58, 48, 0);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq-list details:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.faq-list details[open] {
  border-color: var(--green);
  background: #fffdfa;
  box-shadow: 0 8px 0 rgba(2, 58, 48, 0.1);
}

.faq-list summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem 0.8rem 1.25rem;
  color: var(--green);
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary:focus-visible {
  border-radius: 16px;
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.faq-list summary i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--yellow);
  font-family: var(--display);
  font-size: 1.55rem;
  font-style: normal;
  line-height: 1;
  transition: transform 220ms ease, background 220ms ease;
}

.faq-list details[open] summary i {
  background: var(--pink);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 4.8rem 1.2rem 1.25rem;
}

.faq-answer p {
  margin: 0;
  line-height: 1.55;
}

.faq-language-link {
  padding: 0;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
}

.faq-language-link:hover,
.faq-language-link:focus-visible {
  color: #d94c3f;
}

.faq-language-link:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.language-dialog {
  width: min(92vw, 760px);
  max-height: min(86svh, 760px);
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: auto;
  border: 3px solid var(--line);
  border-radius: 28px;
  background: var(--cream);
  color: var(--green);
  box-shadow: 14px 16px 0 rgba(7, 84, 71, 0.25);
}

.language-dialog::backdrop {
  background: rgba(7, 48, 41, 0.68);
  backdrop-filter: blur(7px);
}

.language-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--green);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.language-dialog-close:hover,
.language-dialog-close:focus-visible {
  background: var(--pink);
  transform: rotate(4deg);
}

.language-dialog-close:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.language-dialog-kicker {
  margin: 0 0 0.35rem;
  color: #d94c3f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.language-dialog h2 {
  max-width: calc(100% - 3rem);
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4rem);
  line-height: 0.95;
}

.language-dialog > p:not(.language-dialog-kicker) {
  max-width: 560px;
  margin: 1rem 0 1.6rem;
  line-height: 1.55;
}

.faq-language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-language-grid li {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 2px solid rgba(2, 58, 48, 0.3);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
  font-weight: 750;
}

.faq-language-grid span {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
}

@media (max-width: 620px) {
  .language-dialog { padding: 1.4rem 1.15rem 1.5rem; border-radius: 22px; }
  .language-dialog h2 { font-size: 2.5rem; }
  .faq-language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .faq-language-grid li { min-height: 50px; padding: 0.6rem 0.65rem; font-size: 0.9rem; }
}

.faq-doodle {
  position: absolute;
  color: var(--coral);
  font-family: var(--display);
  font-size: 6rem;
  opacity: 0.7;
  -webkit-text-stroke: 3px var(--line);
}

.faq-doodle-note { top: 7%; right: 3%; color: var(--purple); transform: rotate(12deg); }
.faq-doodle-star { bottom: 2%; left: 3%; color: var(--yellow); transform: rotate(-10deg); }

.community-section {
  scroll-margin-top: 74px;
  padding: 1rem clamp(1.25rem, 5vw, 5rem) 9rem;
  background: var(--cream);
}

.community-card {
  position: relative;
  display: grid;
  max-width: 1320px;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5.5rem);
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: clamp(30px, 5vw, 64px);
  background:
    radial-gradient(circle at 8% 14%, rgb(255 245 107 / 85%) 0 3.5rem, transparent 3.6rem),
    radial-gradient(circle at 93% 88%, rgb(101 200 242 / 70%) 0 5rem, transparent 5.1rem),
    var(--pink);
  box-shadow: 14px 16px 0 rgb(7 84 71 / 15%);
}

.community-copy,
.community-actions,
.community-consent {
  position: relative;
  z-index: 1;
}

.community-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.community-copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 5.5rem);
  line-height: 0.94;
}

.community-copy > p:last-child {
  max-width: 580px;
  margin: 1.4rem 0 0;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 600;
  line-height: 1.55;
}

.community-actions {
  display: grid;
  gap: 0.8rem;
}

.community-actions > a {
  display: grid;
  min-height: 82px;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 0 0 rgb(7 84 71 / 18%);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.community-actions > a:hover,
.community-actions > a:focus-visible {
  box-shadow: 6px 7px 0 rgb(7 84 71 / 18%);
  transform: translate(-2px, -2px);
}

.community-actions > a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.community-action-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
}

.community-action-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.community-hashtag {
  background: var(--blue);
  font-family: var(--display);
  font-size: 1.8rem;
}

.community-actions strong,
.community-actions small {
  display: block;
}

.community-actions strong {
  font-size: 1.05rem;
}

.community-actions small {
  margin-top: 0.18rem;
  color: rgb(7 84 71 / 72%);
  font-size: 0.85rem;
  font-weight: 600;
}

.community-actions i {
  font-family: var(--display);
  font-size: 1.5rem;
  font-style: normal;
}

.community-consent {
  grid-column: 1 / -1;
  max-width: 900px;
  margin: -1.5rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.76;
}

.site-footer {
  position: relative;
  min-height: 720px;
  padding: 10rem 4.2vw 2rem;
  overflow: hidden;
  background: var(--emerald);
  color: var(--cream);
}

.site-footer::before {
  position: absolute;
  top: -104px;
  left: -8%;
  width: 116%;
  height: 178px;
  border-radius: 0 0 50% 50%;
  background: var(--cream);
  content: "";
  transform-origin: center top;
  animation: footer-wave 4.8s ease-in-out infinite alternate;
  will-change: transform;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(400px, 0.75fr);
  gap: 8vw;
}

.signup h2 {
  max-width: 700px;
  color: var(--cream);
  font-size: clamp(2.8rem, 4.7vw, 5.2rem);
  line-height: 1;
}

.signup-form {
  display: flex;
  gap: 0.8rem;
  max-width: 760px;
  margin-top: 2.4rem;
}

.signup-form input {
  min-width: 0;
  min-height: 64px;
  flex: 1;
  padding: 0 1.7rem;
  border: 0;
  border-radius: 999px;
  outline-offset: 4px;
  color: var(--green);
  font-weight: 700;
}

.signup-form button {
  min-height: 64px;
  padding: 0 2.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
}

.social-row {
  display: flex;
  gap: 1rem;
  margin-top: 2.3rem;
}

.social-row a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--cream);
  border-radius: 50%;
  color: var(--cream);
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-row a:hover,
.social-row a:focus-visible {
  background: var(--cream);
  color: var(--emerald);
  transform: translateY(-2px);
}

.social-row svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.social-row .social-icon-dot {
  fill: currentColor;
  stroke: none;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-links h3 {
  margin: 0 0 1.4rem;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 400;
}

.footer-links a {
  display: block;
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  position: absolute;
  right: 4.2vw;
  bottom: 2rem;
  left: 4.2vw;
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 247, 232, 0.45);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--yellow);
}

.flow-dialog {
  width: min(92vw, 650px);
  max-height: 88svh;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: auto;
  border: 3px solid var(--line);
  border-radius: 28px;
  background: var(--cream);
  color: var(--green);
  box-shadow: 14px 16px 0 rgba(7, 84, 71, 0.25);
}

.flow-dialog::backdrop {
  background: rgba(7, 48, 41, 0.62);
  backdrop-filter: blur(6px);
}

.flow-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 1.5rem;
}

.flow-progress {
  display: flex;
  max-width: calc(100% - 60px);
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.flow-progress i {
  position: relative;
  height: 7px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #d9d0bd;
}

.flow-progress i::after {
  display: block;
  width: var(--flow-progress, 50%);
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  content: "";
  transition: width 250ms ease;
}

.flow-step h2 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.3rem);
  font-weight: 400;
  line-height: 0.95;
}

.flow-step > p {
  margin: 0.8rem 0 1.6rem;
  line-height: 1.5;
}

.flow-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.flow-options button {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 0.8rem;
  padding: 0 1rem;
  border: 2px solid var(--green);
  border-radius: 18px;
  background: var(--paper);
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease;
}

.flow-options button:hover,
.flow-options button:focus-visible {
  background: var(--yellow);
  transform: rotate(-1deg) translateY(-2px);
}

.flow-options span {
  font-size: 1.8rem;
}

.flow-back {
  margin-bottom: 1.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
}

.flow-step-two label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.flow-step-two input {
  width: 100%;
  min-height: 60px;
  padding: 0 1rem;
  border: 2px solid var(--green);
  border-radius: 14px;
  background: var(--paper);
  color: var(--green);
  font-size: 1.1rem;
}

.flow-submit {
  width: 100%;
  margin-top: 1rem;
  color: var(--green);
}

.flow-success {
  text-align: center;
}

.flow-success h2 {
  margin-inline: auto;
}

.success-note {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 1rem;
  place-items: center;
  border: 3px solid var(--green);
  border-radius: 50%;
  background: var(--yellow);
  font-size: 2.2rem;
  animation: wobble 1.8s ease-in-out infinite alternate;
}

.studio-dialog {
  width: min(96vw, 1180px);
  height: min(96svh, 900px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 28px;
  background: var(--cream);
  color: var(--green);
  box-shadow: 16px 18px 0 rgba(7, 48, 41, 0.28);
}

.studio-dialog::backdrop {
  background: rgba(7, 48, 41, 0.68);
  backdrop-filter: blur(7px);
}

.studio-dialog button,
.studio-dialog input,
.studio-dialog textarea {
  font-family: var(--body);
}

.studio-dialog button:focus-visible,
.studio-dialog input:focus-visible,
.studio-dialog textarea:focus-visible,
.genre-card:focus-visible {
  outline: 4px solid var(--orange);
  outline-offset: 3px;
}

.studio-close {
  position: absolute;
  z-index: 20;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--cream);
  color: var(--green);
  cursor: pointer;
  font-size: 1.6rem;
}

.studio-shell {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.studio-header {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 44px;
  gap: 1.5rem;
  align-items: center;
  min-height: 68px;
  padding: 0 1.5rem;
  border-bottom: 2px solid rgba(7, 84, 71, 0.15);
  background: var(--paper);
}

.studio-brand {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

.studio-progress {
  width: min(100%, 650px);
  justify-self: center;
}

.studio-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
}

.studio-progress-name {
  color: var(--green);
}

.studio-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ded5c3;
}

.studio-progress-track i {
  display: block;
  width: 11.111%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--orange));
  transition: width 280ms ease;
}

.studio-form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.studio-step {
  width: min(100%, 980px);
  min-height: 0;
  flex: 1;
  margin: 0 auto;
  padding: clamp(1rem, 2.4vw, 2.15rem) clamp(1.1rem, 3vw, 2.75rem) 0.8rem;
  overflow: hidden;
}

.studio-step[hidden],
.generation-screen[hidden],
.lyrics-screen[hidden],
.result-screen[hidden],
.studio-header[hidden],
.studio-form[hidden] {
  display: none;
}

.studio-step > h2,
.generation-screen h2,
.result-screen h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--green);
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  font-weight: 400;
  line-height: 0.96;
}

.studio-step > p {
  max-width: 650px;
  margin: 0.4rem 0 1rem;
  color: #49665f;
  font-size: 0.92rem;
  line-height: 1.4;
}

.studio-field {
  max-width: 680px;
  margin-top: 0.8rem;
}

.studio-field-large {
  margin-top: clamp(1.5rem, 5vh, 3.5rem);
}

.studio-field label,
.studio-fieldset legend {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}

.studio-field label small {
  color: #6d827d;
  font-weight: 500;
}

.studio-field input,
.studio-field textarea,
.search-field input {
  width: 100%;
  border: 2px solid var(--green);
  border-radius: 16px;
  background: var(--paper);
  color: var(--green);
}

.studio-field input {
  min-height: 52px;
  padding: 0 1.1rem;
  font-size: 1.15rem;
}

.studio-field-large input {
  min-height: 64px;
  font-size: 1.3rem;
}

.studio-field textarea {
  min-height: 150px;
  padding: 1.1rem;
  resize: vertical;
  font-size: 1rem;
  line-height: 1.5;
}

.personal-message-field {
  margin-top: 0.55rem;
}

.personal-message-field textarea {
  min-height: 70px;
}

.studio-step[data-step="7"] > .studio-field:not(.personal-message-field) textarea {
  min-height: 120px;
}

.field-error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.4rem;
  color: #a52727;
  font-size: 0.82rem;
  font-weight: 700;
}

.language-error:empty,
.topic-error:empty,
.genre-error:empty {
  display: none;
}

.studio-fieldset {
  margin: 0 0 0.8rem;
  padding: 0;
  border: 0;
}

.about-step-controls {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-choice-stage {
  display: grid;
  width: 100%;
  min-height: 285px;
  align-items: center;
}

.about-choice-panel {
  grid-area: 1 / 1;
  width: 100%;
  margin: 0;
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  transition: opacity 260ms ease,
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
  will-change: transform, opacity;
}

.about-age-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-108%);
  visibility: hidden;
  transition-delay: 0s, 0s, 460ms;
}

.about-choice-stage[data-about-stage="age"] .about-pronoun-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateX(108%);
  visibility: hidden;
  transition-delay: 0s, 0s, 460ms;
}

.about-choice-stage[data-about-stage="age"] .about-age-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

.choice-grid {
  display: grid;
  gap: 0.55rem;
}

.choice-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.age-grid {
  grid-template-columns: repeat(5, 1fr);
}

.choice-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  padding: 0.5rem 0.5rem 0.65rem;
  border: 2px solid #a7b5b1;
  border-radius: 18px;
  background: var(--paper);
  color: var(--green);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.choice-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.choice-card.selected {
  border-color: var(--green);
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px var(--green);
}

.choice-artwork {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: rgba(255, 250, 239, 0.76);
}

.choice-artwork img {
  width: 94%;
  height: 94%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.choice-card:hover .choice-artwork img {
  transform: scale(1.035) rotate(-1deg);
}

.choice-card strong {
  max-width: 100%;
  line-height: 1.15;
}

.choice-check {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: none;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-size: 0.72rem;
}

.choice-card.selected .choice-check {
  display: grid;
}

.choice-card small {
  margin-top: -0.08rem;
  color: #5e756f;
}

.search-field {
  position: relative;
  max-width: 680px;
  margin-bottom: 0.65rem;
}

.search-field > span {
  position: absolute;
  top: 50%;
  left: 1rem;
  font-size: 1.35rem;
  transform: translateY(-52%);
}

.search-field input {
  min-height: 48px;
  padding: 0 1rem 0 3rem;
}

.language-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  max-width: 900px;
}

.language-option {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.5rem;
  border: 2px solid #b2bdb9;
  border-radius: 15px;
  background: var(--paper);
  color: var(--green);
  cursor: pointer;
  font-size: 0.72rem;
  text-align: left;
}

.language-option span,
.language-option small {
  display: block;
}

.language-main {
  display: flex !important;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
}

.language-flag {
  display: inline-block !important;
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
}

.language-text {
  min-width: 0;
}

.language-option small {
  margin-top: 0.15rem;
  color: #667b76;
  font-size: 0.56rem;
}

.language-option i {
  display: none;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-style: normal;
}

.language-option.selected {
  border-color: var(--green);
  background: var(--yellow);
}

.language-option.selected i {
  display: grid;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.custom-option-row {
  display: grid;
  justify-items: end;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.custom-option-row .studio-field {
  width: 100%;
  margin: 0;
  justify-self: stretch;
}

.custom-option-row .studio-field:not([hidden]) {
  animation: customFieldReveal 220ms ease-out both;
}

@keyframes customFieldReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-option-trigger {
  display: inline-grid;
  min-height: 46px;
  grid-template-columns: auto auto;
  gap: 0 0.45rem;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border: 2px dashed var(--green);
  border-radius: 13px;
  background: #fff8d6;
  color: var(--green);
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.custom-option-trigger > span {
  grid-row: 1 / 3;
  font-size: 1.25rem;
  font-weight: 800;
}

.custom-option-trigger strong {
  font-size: 0.76rem;
  line-height: 1.05;
}

.custom-option-trigger small {
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.75;
}

.custom-option-trigger:hover,
.custom-option-trigger:focus-visible {
  background: var(--yellow);
  box-shadow: 0 4px 0 rgba(7, 84, 71, 0.16);
  transform: translateY(-1px);
}

.custom-option-trigger.selected {
  border-style: solid;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px var(--green);
}

.custom-option-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.topic-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.55rem 0.75rem;
  border: 2px solid #b4bfbb;
  border-radius: 18px;
  background: var(--paper);
  color: var(--green);
  cursor: pointer;
  text-align: center;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.topic-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}

.topic-artwork {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: #f5eee0;
}

.topic-artwork img {
  display: block;
  width: 94%;
  height: 94%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.topic-card:hover .topic-artwork img {
  transform: scale(1.035) rotate(-1deg);
}

.topic-card strong {
  display: flex;
  min-height: 2.5em;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1.25;
}

.topic-card > i {
  position: absolute;
  z-index: 1;
  top: 0.7rem;
  right: 0.7rem;
  display: none;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-style: normal;
  box-shadow: 0 2px 7px rgba(20, 67, 61, 0.2);
}

.topic-card.selected {
  border-color: var(--green);
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px var(--green);
}

.topic-card.selected > i {
  display: grid;
}

.selection-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
}

.selection-count strong {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
}

.selection-count strong.over-limit {
  background: #9b3b2f;
}

.interest-chips {
  display: flex;
  max-width: 800px;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.interest-chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.65rem;
  border: 2px solid #aebbb7;
  border-radius: 999px;
  background: var(--paper);
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
}

.interest-chip i {
  display: none;
  font-style: normal;
}

.interest-chip:hover {
  border-color: var(--green);
}

.interest-chip.selected {
  border-color: var(--green);
  background: var(--yellow);
}

.interest-chip.selected i {
  display: inline;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.genre-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0.55rem 0.55rem 0.75rem;
  border: 2px solid #aebbb7;
  border-radius: 18px;
  background: var(--paper);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.genre-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}

.genre-card.selected {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green);
}

.genre-art {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: color-mix(in srgb, var(--genre-accent) 28%, var(--cream));
}

.genre-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.genre-copy strong {
  display: block;
  margin-top: 0.6rem;
  padding-right: 2.25rem;
  font-size: 0.92rem;
  line-height: 1.15;
}

.genre-preview {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--cream);
  color: var(--green);
  cursor: pointer;
}

.genre-preview i {
  display: none;
  width: 2px;
  height: 10px;
  background: currentColor;
  animation: sound 500ms ease-in-out infinite alternate;
}

.genre-preview i:nth-of-type(2) { animation-delay: -160ms; }
.genre-preview i:nth-of-type(3) { animation-delay: -320ms; }
.genre-preview.playing i { display: block; }

.genre-selected {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: none;
  padding: 0.25rem 0.45rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 0.62rem;
  font-weight: 700;
}

.genre-card.selected .genre-selected {
  display: block;
}

.detail-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.detail-examples span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #e5ddcc;
  font-size: 0.75rem;
  font-weight: 700;
}

.textarea-meta {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 0.45rem;
  color: #617670;
  font-size: 0.75rem;
  line-height: 1.35;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 1.2rem;
  align-items: start;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 2px solid var(--green);
  border-radius: 18px;
  background: var(--paper);
}

.review-item {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #d7d0c2;
  border-right: 1px solid #d7d0c2;
}

.review-item:nth-child(even) {
  border-right: 0;
}

.review-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.review-item span,
.review-item strong {
  display: block;
}

.review-item span {
  margin-bottom: 0.18rem;
  color: #667b76;
  font-size: 0.72rem;
}

.review-item strong {
  font-size: 0.9rem;
  line-height: 1.35;
}

.review-item button {
  min-width: 52px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #e6decd;
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
}

.order-summary {
  padding: 0.8rem;
  border: 2px solid var(--green);
  border-radius: 18px;
  background: var(--yellow);
}

.order-summary h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
}

.order-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(7, 84, 71, 0.25);
  font-size: 0.8rem;
}

.order-summary .order-price {
  border-bottom: 0;
}

.order-summary > p {
  margin: 0.8rem 0 0;
  font-size: 0.7rem;
}

.studio-nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 170px 1fr 220px;
  gap: 1rem;
  align-items: center;
  min-height: 70px;
  padding: 0.55rem 1.25rem;
  border-top: 2px solid rgba(7, 84, 71, 0.15);
  background: var(--paper);
}

.studio-nav button {
  min-height: 48px;
  border: 2px solid var(--green);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.studio-back {
  background: transparent;
  color: var(--green);
}

.studio-continue {
  background: var(--yellow);
  color: var(--green);
}

.studio-continue:disabled {
  border-color: #aeb8b4;
  background: #ddd7ca;
  color: #7b8985;
  cursor: not-allowed;
}

.studio-save-status {
  margin: 0;
  color: #69807a;
  font-size: 0.75rem;
  text-align: center;
}

.generation-screen {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem;
  background: var(--blue);
  text-align: center;
}

.generation-orbit {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  margin-bottom: 1.5rem;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
}

.generation-orbit span {
  font-family: var(--display);
  font-size: 3.2rem;
  animation: wobble 1.1s ease-in-out infinite alternate;
}

.generation-orbit i {
  position: absolute;
  inset: -14px;
  border: 3px solid var(--line);
  border-radius: 46% 54% 44% 56%;
  animation: spin 6s linear infinite;
}

.generation-orbit i:last-child {
  inset: -28px;
  animation-direction: reverse;
  animation-duration: 9s;
}

.generation-kicker,
.result-label {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.generation-screen h2 {
  max-width: 16ch;
}

.generation-message {
  min-height: 1.5rem;
  margin: 0.8rem 0 1.3rem;
}

.generation-progress {
  width: min(100%, 520px);
  height: 12px;
  overflow: hidden;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--cream);
}

.generation-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--coral);
  transition: width 500ms ease;
}

.generation-stages {
  display: flex;
  width: min(100%, 720px);
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}

.generation-stages li {
  display: flex;
  width: 20%;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.45;
  font-size: 0.68rem;
}

.generation-stages li.active,
.generation-stages li.complete {
  opacity: 1;
}

.generation-stages i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--cream);
  font-style: normal;
  font-weight: 700;
}

.generation-stages li.complete i {
  background: var(--green);
  color: var(--cream);
}

.generation-note {
  max-width: 560px;
  margin: 1.2rem 0 0;
  color: #365e57;
  font-size: 0.75rem;
}

.generation-error {
  width: min(100%, 520px);
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 2px solid #9b3b2f;
  border-radius: 16px;
  background: var(--cream);
  color: #7f2f27;
}

.generation-error p {
  margin: 0 0 0.65rem;
  font-weight: 700;
}

.generation-error button {
  min-height: 42px;
}

.lyrics-screen {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  grid-template-rows: 1fr auto;
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  background: var(--pink);
}

.lyrics-review-copy h2 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.5vw, 4.6rem);
  font-weight: 400;
  line-height: 0.96;
}

.lyrics-review-copy > p:not(.result-label) {
  max-width: 38ch;
  color: #49665f;
  line-height: 1.45;
}

.lyrics-title-field {
  margin-top: 1.25rem;
}

.lyrics-title-field input[readonly] {
  min-height: 52px;
  background: rgba(255, 249, 237, 0.72);
}

.lyrics-editor-wrap {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.lyrics-editor-wrap > label {
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.lyrics-editor-wrap textarea {
  width: 100%;
  min-height: 0;
  flex: 1;
  padding: 1rem;
  resize: none;
  border: 2px solid var(--green);
  border-radius: 18px;
  background: var(--paper);
  color: var(--green);
  font-size: 0.88rem;
  line-height: 1.45;
}

.lyrics-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 0.7rem;
}

.lyrics-actions .button {
  min-height: 50px;
  border: 2px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
}

.lyrics-back {
  background: transparent;
}

.result-screen {
  display: grid;
  height: 100%;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  overflow-y: auto;
  background: var(--pink);
}

.result-art {
  position: relative;
  display: grid;
  width: min(100%, 470px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--line);
  border-radius: 12px;
  background: var(--result-accent, var(--yellow));
  box-shadow: 14px 16px 0 rgba(7, 84, 71, 0.2);
  text-align: center;
}

.result-art::before,
.result-art::after {
  position: absolute;
  width: 82%;
  height: 82%;
  border: 4px solid var(--line);
  border-radius: 50%;
  content: "";
}

.result-art::after {
  width: 50%;
  height: 50%;
}

.result-art-note {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 10%;
  font-size: 3rem;
}

.result-art-name {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.82;
}

.result-content h2 {
  max-width: 13ch;
}

.result-meta {
  margin: 0.8rem 0 1.5rem;
}

.result-player {
  display: grid;
  grid-template-columns: 46px 68px 46px 1fr;
  gap: 0.6rem;
  align-items: center;
  max-width: 620px;
  padding: 1rem;
  border: 3px solid var(--green);
  border-radius: 20px;
  background: var(--cream);
}

.result-play,
.result-skip {
  display: grid;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}

.result-play {
  width: 64px;
  height: 64px;
  background: var(--yellow);
  font-weight: 800;
}

.result-skip {
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
}

.result-waveform {
  display: flex;
  height: 54px;
  align-items: center;
  gap: 2px;
}

.result-waveform i {
  width: 3px;
  min-height: 5px;
  flex: 1;
  border-radius: 3px;
  background: var(--green);
  opacity: 0.55;
}

.result-waveform.playing i:nth-child(3n) {
  animation: sound 420ms ease-in-out infinite alternate;
}

.result-time {
  display: flex;
  grid-column: 4;
  justify-content: space-between;
  font-size: 0.68rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.3rem;
}

.result-actions button {
  min-height: 42px;
  padding: 0 0.9rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--cream);
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
}

.result-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 0.9rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--cream);
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.result-audio {
  display: none;
}

.result-waveform {
  cursor: pointer;
}

.result-waveform i.played {
  opacity: 1;
  background: var(--coral);
}

@media (max-width: 800px) {
  .studio-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .studio-close {
    top: 0.65rem;
    right: 0.7rem;
    width: 36px;
    height: 36px;
    border-width: 1.5px;
    font-size: 1.25rem;
  }

  .studio-header {
    grid-template-columns: 1fr 44px;
    min-height: 62px;
    padding: 0 0.8rem;
  }

  .studio-brand {
    display: none;
  }

  .studio-progress {
    grid-column: 1;
    grid-row: 1;
  }

  .studio-progress-meta {
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
  }

  .studio-progress-track {
    height: 6px;
  }

  .studio-step {
    padding: 0.75rem 0.8rem 0.5rem;
  }

  .studio-step > h2 {
    max-width: 18ch;
    font-size: clamp(1.85rem, 8vw, 2.55rem);
  }

  .studio-step > p {
    margin: 0.25rem 0 0.65rem;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .studio-field-large {
    margin-top: 1.25rem;
  }

  .studio-field label,
  .studio-fieldset legend {
    margin-bottom: 0.3rem;
    font-size: 0.75rem;
  }

  .studio-fieldset {
    margin-bottom: 0.45rem;
  }

  .choice-grid-three,
  .age-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .choice-grid {
    gap: 0.35rem;
  }

  .choice-card {
    min-height: 50px;
    padding: 0.3rem 0.3rem 0.45rem;
    border-radius: 12px;
    font-size: 0.7rem;
  }

  .choice-card small {
    font-size: 0.58rem;
  }

  .choice-artwork {
    border-radius: 9px;
  }

  .choice-check {
    top: 0.25rem;
    right: 0.25rem;
    width: 17px;
    height: 17px;
  }

  .search-field {
    margin-bottom: 0.4rem;
  }

  .search-field input {
    min-height: 42px;
  }

  .language-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
  }

  .language-option {
    min-height: 42px;
    padding: 0.3rem 0.45rem;
    border-radius: 11px;
    font-size: 0.64rem;
  }

  .language-flag {
    font-size: 1.05rem;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }

  .topic-card {
    min-height: 34px;
    grid-template-columns: 18px 1fr;
    gap: 0.25rem;
    padding: 0.25rem 0.35rem;
    border-radius: 9px;
  }

  .topic-card > span {
    font-size: 0.78rem;
  }

  .topic-card strong {
    font-size: 0.6rem;
    line-height: 1.08;
  }

  .selection-count {
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
  }

  .selection-count strong {
    padding: 0.25rem 0.5rem;
  }

  .interest-chips {
    gap: 0.28rem;
  }

  .interest-chip {
    min-height: 32px;
    padding: 0 0.48rem;
    font-size: 0.65rem;
  }

  .genre-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
  }

  .genre-card {
    min-height: 0;
    padding: 0.35rem;
    border-radius: 12px;
  }

  .genre-art {
    width: 100%;
  }

  .genre-copy strong {
    margin-top: 0.35rem;
    padding-right: 1.8rem;
    font-size: 0.64rem;
  }

  .genre-preview {
    right: 0.3rem;
    bottom: 0.3rem;
    width: 27px;
    height: 27px;
    font-size: 0.65rem;
  }

  .genre-selected {
    top: 0.22rem;
    right: 0.3rem;
    width: 20px;
    height: 20px;
    padding: 0;
    place-items: center;
    font-size: 0;
  }

  .genre-card.selected .genre-selected {
    display: grid;
  }

  .genre-selected::after {
    content: "✓";
    font-size: 0.7rem;
  }

  .detail-examples {
    gap: 0.25rem;
    margin-bottom: 0.4rem;
  }

  .detail-examples span {
    padding: 0.22rem 0.45rem;
    font-size: 0.6rem;
  }

  .studio-field textarea {
    min-height: 105px;
    padding: 0.7rem;
    font-size: 0.8rem;
  }

  .personal-message-field textarea {
    min-height: 50px;
  }

  .studio-step[data-step="7"] > .studio-field:not(.personal-message-field) textarea {
    min-height: 80px;
  }

  .textarea-meta {
    font-size: 0.6rem;
  }

  .review-layout {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .review-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 12px;
  }

  .review-item {
    min-height: 48px;
    gap: 0.3rem;
    padding: 0.35rem 0.45rem;
    border-right: 1px solid #d7d0c2;
  }

  .review-item:nth-child(even) {
    border-right: 0;
  }

  .review-item span {
    font-size: 0.56rem;
  }

  .review-item strong {
    font-size: 0.65rem;
    line-height: 1.15;
  }

  .review-item button {
    min-width: 38px;
    min-height: 30px;
    font-size: 0.62rem;
  }

  .order-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 0.6rem;
    padding: 0.45rem 0.6rem;
    border-radius: 12px;
  }

  .order-summary h3,
  .order-summary > p {
    grid-column: 1 / -1;
  }

  .order-summary h3 {
    margin-bottom: 0;
    font-size: 1.05rem;
  }

  .order-summary > div {
    padding: 0.25rem 0;
    font-size: 0.6rem;
  }

  .order-summary > p {
    margin: 0.25rem 0 0;
    font-size: 0.55rem;
  }

  .studio-nav {
    position: sticky;
    bottom: 0;
    grid-template-columns: minmax(95px, 0.65fr) minmax(150px, 1.35fr);
    min-height: 58px;
    padding: 0.35rem 0.65rem max(0.35rem, env(safe-area-inset-bottom));
  }

  .studio-nav button {
    min-height: 44px;
    padding-inline: 0.8rem;
    font-size: 0.86rem;
  }

  .studio-save-status {
    display: none;
  }

  .generation-screen {
    justify-content: flex-start;
    padding: 5rem 1.2rem 2rem;
  }

  .lyrics-screen {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding: 1rem 0.9rem max(0.8rem, env(safe-area-inset-bottom));
  }

  .lyrics-review-copy h2 {
    max-width: 15ch;
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .lyrics-review-copy > p:not(.result-label) {
    margin: 0.35rem 0;
    font-size: 0.72rem;
  }

  .lyrics-title-field {
    margin-top: 0.5rem;
  }

  .lyrics-title-field label {
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
  }

  .lyrics-title-field input[readonly] {
    min-height: 40px;
    font-size: 0.78rem;
  }

  .lyrics-editor-wrap textarea {
    min-height: 150px;
    font-size: 0.74rem;
  }

  .lyrics-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .lyrics-actions .button {
    min-height: 46px;
    padding-inline: 0.65rem;
    font-size: 0.72rem;
  }

  .generation-stages {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .generation-stages li {
    width: 100%;
    flex-direction: row;
    text-align: left;
  }

  .result-screen {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 5rem 1.2rem 2rem;
  }

  .result-art {
    width: min(86vw, 360px);
    justify-self: center;
  }

  .result-player {
    grid-template-columns: 42px 62px 42px;
  }

  .result-waveform,
  .result-time {
    grid-column: 1 / -1;
  }
}

@keyframes sound {
  to { height: 18px; }
}

@keyframes wobble {
  to { border-radius: 53% 47% 55% 45%; transform: rotate(3deg) scale(1.02); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes footer-wave {
  0% { transform: translate3d(-2.5%, -2px, 0) rotate(-0.7deg) scaleX(1.025); }
  50% { transform: translate3d(0, 14px, 0) rotate(0.35deg) scaleX(0.99); }
  100% { transform: translate3d(2.5%, 2px, 0) rotate(0.75deg) scaleX(1.035); }
}

.motion-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms ease, transform 850ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.motion-ready .scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .faq-list .scroll-reveal:nth-child(2),
.motion-ready .steps .scroll-reveal:nth-child(2) { transition-delay: 90ms; }
.motion-ready .faq-list .scroll-reveal:nth-child(3),
.motion-ready .steps .scroll-reveal:nth-child(3) { transition-delay: 180ms; }
.motion-ready .faq-list .scroll-reveal:nth-child(4) { transition-delay: 270ms; }

.portrait-note,
.doodle,
.faq-doodle {
  will-change: translate;
}

@media (max-width: 1050px) {
  .site-header { min-height: 74px; }
  .nav { gap: 1rem; font-size: 0.86rem; }
  .hero h1 { font-size: clamp(2.8rem, 5.2vw, 4.1rem); }
  .why-section,
  .how-section { gap: 3rem; }
  .faq-section { grid-template-columns: minmax(0, 0.72fr) minmax(480px, 1.28fr); gap: 3rem; }
  .community-card { grid-template-columns: 1fr; }
  .community-consent { margin-top: -0.5rem; }
  .footer-main { grid-template-columns: 1fr; }
  .site-footer { min-height: 900px; }
  .footer-links { max-width: 600px; }
}

@media (min-width: 761px) {
  .why-section,
  .quote-section {
    height: clamp(760px, 61.75vw, 905px);
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    grid-template-columns: 60px 1fr 60px;
    min-height: 66px;
    padding: 0 1rem;
  }

  .wordmark { grid-column: 2; }
  .wordmark img { height: 50px; }

  .menu-button {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--green);
  }

  .menu-button span {
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-open .menu-button span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-open .menu-button span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .nav-left {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--cream);
    box-shadow: 0 12px 20px rgba(7, 84, 71, 0.14);
    font-size: 1rem;
  }

  .menu-open .nav-left { display: flex; }
  .nav-right a { display: none; }
  .nav-right { gap: 0.35rem; }
  .site-language-trigger { width: 38px; min-height: 38px; font-size: 1rem; }
  .site-language-options { right: 0; width: 164px; }
  .nav-right .header-cta {
    display: inline-flex;
    width: 58px;
    min-height: 38px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }
  .nav-right .header-cta::before { content: "Start"; font-size: 0.78rem; }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .hero-copy {
    min-height: calc(100svh - 66px);
    padding: 3.5rem 1.35rem 2.5rem;
  }

  .hero h1 { font-size: clamp(2.65rem, 11vw, 3.35rem); }
  .hero h2 { font-size: 1rem; }
  .hero-actions { flex-wrap: wrap; }
  .hero-media { min-height: 72svh; }
  .hero-media > img,
  .hero-media > video { object-position: center; }
  .now-playing { left: 1rem; bottom: 1.25rem; max-width: calc(100% - 6rem); }
  .video-toggle { right: 1rem; bottom: 1rem; width: 58px; height: 58px; }

  .songs-section { min-height: 770px; padding-top: 4.5rem; }
  .songs-heading h2 { font-size: 3.05rem; }
  .filter-pills { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-right: -1.25rem; padding: 0 1.25rem 0.5rem 0; }
  .filter-pill { flex: 0 0 auto; }
  .carousel-tools { width: calc(100% - 2.5rem); margin-bottom: -1.5rem; }
  .carousel-tools > span { font-size: 0.75rem; }
  .carousel-arrow { width: 42px; height: 42px; }
  .album-rail { grid-auto-columns: min(76vw, 285px); margin-top: 3.5rem; padding-inline: 1.25rem; }
  .album-art p { font-size: 2.1rem; }
  .album-cover-image { width: 72%; height: 72%; }

  .why-section,
  .how-section {
    grid-template-columns: 1fr;
    padding: 4.5rem 1.35rem;
  }

  .why-copy h2,
  .how-copy h2 { font-size: clamp(3rem, 13vw, 4.2rem); }
  .why-copy > p { font-size: 1.02rem; }
  .portrait-wrap { width: 100%; margin-top: 1rem; }
  .quote-section { min-height: 0; padding: 3.5rem 1rem 4rem; }
  .article-carousel {
    grid-template-areas:
      "info"
      "visual"
      "controls";
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .article-info { text-align: center; }
  .article-proof h2 { max-width: 13ch; margin: 0 auto 1.4rem; font-size: clamp(2.2rem, 9.5vw, 3.2rem); }
  .article-summary { margin-inline: auto; }
  .article-publications { gap: 0.4rem; margin-top: 1.5rem; }
  .article-publications button { min-height: 38px; padding-inline: 0.7rem; font-size: 0.72rem; }
  .article-slide { padding: 1rem 0 1.75rem; }
  .article-slide img { width: 100%; height: auto; }
  .article-actions { justify-content: center; margin-top: 1.5rem; }
  .article-visual-controls { margin-top: -1rem; gap: 1.2rem; }
  .article-arrow { width: 42px; height: 42px; }
  .round-video { grid-row: 1; }
  .how-copy { grid-row: 2; }

  .faq-section { min-height: 0; grid-template-columns: 1fr; gap: 2.5rem; padding: 5rem 1.35rem 7rem; }
  .faq-section h2 { max-width: 12ch; font-size: 3.1rem; }
  .faq-intro { text-align: center; }
  .faq-intro > p { margin-inline: auto; }
  .faq-list { max-width: 680px; justify-self: center; }
  .faq-list summary { min-height: 62px; padding-left: 1rem; font-size: 0.96rem; }
  .faq-answer { padding: 0 1rem 1.1rem; }
  .faq-doodle { opacity: 0.3; }

  .community-section { padding: 0 1rem 7rem; }
  .community-card { gap: 2rem; padding: 3.25rem 1.2rem 2rem; border-radius: 30px; }
  .community-copy { text-align: center; }
  .community-copy h2 { font-size: clamp(2.8rem, 12vw, 4rem); }
  .community-copy > p:last-child { margin-inline: auto; }
  .community-actions > a { min-height: 76px; grid-template-columns: 46px 1fr auto; gap: 0.8rem; padding: 0.75rem 0.9rem; }
  .community-action-icon { width: 46px; height: 46px; }
  .community-action-icon svg { width: 22px; height: 22px; }
  .community-actions strong { font-size: 0.95rem; }
  .community-actions small { font-size: 0.75rem; }
  .community-consent { margin: 0; text-align: center; }

  .site-footer { min-height: 940px; padding: 8rem 1.35rem 2rem; }
  .signup h2 { font-size: 3.15rem; }
  .signup-form { flex-direction: column; }
  .signup-form button { width: 100%; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4rem; }
  .footer-links a { font-size: 0.9rem; }
  .footer-bottom { right: 1.35rem; bottom: 1.5rem; left: 1.35rem; gap: 1rem; font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-height: 600px) {
  .studio-header { min-height: 56px; }
  .studio-nav { min-height: 60px; padding-block: 0.3rem; }
  .studio-step { padding-top: 0.45rem; }
  .studio-step > h2 { font-size: clamp(1.7rem, 6vh, 2.25rem); }
  .studio-step > p { margin-block: 0.15rem 0.4rem; font-size: 0.68rem; }
  .language-option { min-height: 36px; }
  .topic-card { min-height: 30px; }
  .genre-card { min-height: 72px; }
  .review-item { min-height: 42px; }
  .studio-field textarea { min-height: 82px; }
}

@media (max-height: 480px) {
  .studio-step { overflow-y: auto; }
}

/* Shared calm two-column studio layout. */
.studio-step {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(330px, 39%) minmax(0, 61%);
  margin: 0;
  padding: 0;
}

.step-intro,
.studio-presentation {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.5vw, 2.2rem);
  border-right: 2px solid rgba(20, 67, 61, 0.14);
  background: #d3e8e3;
  text-align: center;
}

.step-intro img,
.studio-presentation img {
  display: block;
  width: min(68%, 280px);
  max-height: min(41vh, 330px);
  margin-bottom: clamp(0.55rem, 1.5vh, 1rem);
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(20, 67, 61, 0.1));
}

.step-intro h2,
.studio-presentation h2 {
  max-width: 15ch;
  margin: 0;
  color: var(--green);
  font-family: var(--display);
  font-size: clamp(2rem, 3.25vw, 3.15rem);
  font-weight: 400;
  line-height: 0.98;
}

.step-intro p,
.studio-presentation p {
  max-width: 30ch;
  margin: 0.7rem 0 0;
  color: #49665f;
  font-size: 0.9rem;
  line-height: 1.4;
}

.step-controls {
  min-width: 0;
  min-height: 0;
  padding: clamp(1.3rem, 3vw, 2.8rem);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 67, 61, 0.25) transparent;
}

.step-controls-centered {
  display: flex;
  align-items: center;
}

.step-controls-centered .studio-field {
  width: min(100%, 610px);
  margin: 0;
}

.step-controls .studio-field,
.step-controls .search-field,
.step-controls .language-list,
.step-controls .selection-count,
.step-controls .interest-chips {
  max-width: none;
}

.step-controls .studio-field-large {
  margin-top: 0;
}

.step-controls .choice-card {
  min-height: 68px;
}

.step-controls .language-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.step-controls .language-option {
  min-height: 52px;
  padding-inline: 0.7rem;
}

.step-controls .topic-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.step-controls .topic-card {
  min-height: 0;
  padding: 0.55rem 0.55rem 0.75rem;
  border-radius: 18px;
}

.step-controls .interest-chips {
  gap: 0.65rem;
}

.step-controls .interest-chip {
  min-height: 42px;
  padding-inline: 0.85rem;
}

.step-controls .genre-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.step-controls .genre-card {
  min-height: 0;
}

.step-controls .detail-examples {
  margin-bottom: 1rem;
}

.step-controls .studio-field textarea {
  min-height: 130px;
}

.step-controls .personal-message-field textarea {
  min-height: 80px;
}

.step-controls .review-layout {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr);
  gap: 0.8rem;
}

.step-controls .review-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-controls .review-item {
  min-height: 49px;
  padding: 0.45rem 0.6rem;
}

.step-controls .review-item strong {
  font-size: 0.78rem;
}

.step-controls .review-item button {
  min-width: 42px;
  min-height: 34px;
  font-size: 0.7rem;
}

.step-controls .order-summary {
  padding: 0.7rem;
}

.studio-nav {
  grid-template-columns: 180px 1fr 240px;
}

.lyrics-screen,
.result-screen {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(330px, 39%) minmax(0, 61%);
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: var(--cream);
}

.lyrics-workspace,
.result-content {
  min-width: 0;
  min-height: 0;
  padding: clamp(1.4rem, 3vw, 3rem);
}

.lyrics-workspace {
  display: flex;
  flex-direction: column;
}

.lyrics-title-field {
  width: 100%;
  max-width: 620px;
  margin: 0 0 1rem;
}

.lyrics-editor-wrap {
  flex: 1;
}

.lyrics-editor-wrap textarea {
  min-height: 250px;
}

.lyrics-actions {
  margin-top: 0.8rem;
}

.result-presentation h2 {
  max-width: 10ch;
}

.result-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
}

.result-content .result-label {
  margin-top: 0;
}

.result-content h2 {
  max-width: 15ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 0.96;
}

@media (max-width: 800px) {
  .studio-step {
    display: flex;
    overflow-y: auto;
    flex-direction: column;
  }

  .step-intro,
  .studio-presentation {
    flex: 0 0 auto;
    min-height: auto;
    justify-content: flex-start;
    padding: 0.65rem 0.9rem 0.8rem;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 67, 61, 0.14);
  }

  .step-intro img,
  .studio-presentation img {
    width: min(29vw, 116px);
    max-height: 116px;
    margin-bottom: 0.25rem;
  }

  .step-intro h2,
  .studio-presentation h2 {
    max-width: 18ch;
    font-size: clamp(1.55rem, 6.7vw, 2.2rem);
    line-height: 1;
  }

  .step-intro p,
  .studio-presentation p {
    margin-top: 0.3rem;
    font-size: 0.7rem;
  }

  .step-controls {
    flex: 1 0 auto;
    padding: 0.8rem;
    overflow: visible;
  }

  .step-controls-centered {
    align-items: flex-start;
  }

  .step-controls .choice-card {
    min-height: 50px;
  }

  .step-controls .language-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .step-controls .language-option {
    min-height: 44px;
  }

  .step-controls .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .custom-option-row {
    margin-bottom: 0.5rem;
  }

  .custom-option-trigger {
    min-height: 42px;
    padding: 0.4rem 0.65rem;
  }

  .step-controls .topic-card {
    min-height: 0;
    padding: 0.45rem 0.45rem 0.65rem;
    border-radius: 15px;
  }

  .topic-card strong {
    font-size: 0.76rem;
  }

  .step-controls .interest-chips {
    gap: 0.35rem;
  }

  .step-controls .interest-chip {
    min-height: 34px;
    padding-inline: 0.55rem;
  }

  .step-controls .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .step-controls .genre-card {
    min-height: 0;
  }

  .step-controls .review-layout {
    grid-template-columns: 1fr;
  }

  .studio-nav {
    grid-template-columns: minmax(100px, 0.7fr) minmax(170px, 1.3fr);
  }

  .lyrics-screen,
  .result-screen {
    display: flex;
    overflow-y: auto;
    flex-direction: column;
  }

  .lyrics-workspace,
  .result-content {
    flex: 1 0 auto;
    padding: 0.9rem;
  }

  .lyrics-editor-wrap textarea {
    min-height: 280px;
  }

  .result-content {
    justify-content: flex-start;
  }
}

@media (max-height: 650px) and (min-width: 801px) {
  .step-intro img,
  .studio-presentation img {
    width: min(49%, 210px);
    max-height: 32vh;
  }

  .step-intro h2,
  .studio-presentation h2 {
    font-size: clamp(1.7rem, 4.8vh, 2.35rem);
  }

  .step-controls {
    padding: 1rem 1.4rem;
  }

  .step-controls .choice-card,
  .step-controls .topic-card {
    min-height: 48px;
  }

  .step-controls .genre-card {
    min-height: 0;
  }
}

/* Focused onboarding refinements. */
@keyframes studioStepSlideIn {
  from { opacity: 0; transform: translateX(-7%); }
  to { opacity: 1; transform: translateX(0); }
}

.studio-step.step-slide-in {
  animation: studioStepSlideIn 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.checkout-field .field-support {
  max-width: 48ch;
  margin: 0.7rem 0 0;
  color: #58716b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.payment-card {
  width: min(100%, 640px);
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 2px solid var(--green);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 9px 9px 0 rgba(20, 67, 61, 0.11);
}

.payment-eyebrow {
  display: inline-flex;
  padding: 0.32rem 0.65rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: #d3e8e3;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(20, 67, 61, 0.18);
}

.payment-heading h3 { margin: 0; color: var(--green); font-size: clamp(1.15rem, 2vw, 1.5rem); }
.payment-heading p { margin: 0.25rem 0 0; color: #58716b; font-size: 0.76rem; }
.payment-heading > strong { flex: 0 0 auto; color: var(--green); font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 400; }

.payment-includes {
  display: grid;
  gap: 0.7rem;
  margin: 1.1rem 0;
  padding: 0;
  color: var(--green);
  font-size: 0.85rem;
  list-style: none;
}

.payment-includes li { display: flex; align-items: center; gap: 0.65rem; }
.payment-includes li span { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--yellow); font-weight: 900; }
.payment-email { margin: 0; padding: 0.8rem 0; border-top: 1px solid rgba(20, 67, 61, 0.18); color: var(--green); font-size: 0.78rem; }
.payment-security { margin: 0.25rem 0 0; color: #6d827d; font-size: 0.68rem; }

@media (max-width: 800px) {
  .email-step .step-intro img,
  .payment-step .step-intro img { width: min(25vw, 98px); max-height: 98px; }
  .payment-card { border-radius: 18px; box-shadow: 5px 5px 0 rgba(20, 67, 61, 0.1); }
}

@media (max-height: 650px) and (min-width: 801px) {
  .payment-card { padding: 1rem 1.25rem; }
  .payment-heading { margin-top: 0.65rem; padding-bottom: 0.65rem; }
  .payment-includes { gap: 0.45rem; margin: 0.7rem 0; }
}

@media (min-width: 801px) {
  .studio-form[data-current-step="1"] .studio-continue {
    grid-column: 3;
    justify-self: stretch;
  }

  .studio-form[data-current-step="2"] .studio-continue {
    visibility: hidden;
  }
}

.interest-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.interest-chip,
.step-controls .interest-chip {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border: 2px solid #b2bdb9;
  border-radius: 14px;
  background: var(--paper);
  text-align: left;
}

.interest-chip > span {
  flex: 0 0 1.5rem;
  font-size: 1.05rem;
  text-align: center;
}

.interest-chip strong {
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.2;
}

.interest-chip i {
  margin-left: auto;
}

.interest-chip:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.custom-interest-field {
  max-width: none;
  margin-top: 0.8rem;
  padding: 0.75rem;
  border: 2px solid rgba(7, 84, 71, 0.18);
  border-radius: 14px;
  background: #f4eddf;
}

.custom-interest-entry {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.custom-interest-entry input {
  flex: 1;
}

.custom-interest-add {
  min-width: 84px;
  border: 2px solid var(--green);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--green);
  cursor: pointer;
  font-weight: 800;
}

.custom-interest-add:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.custom-interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.custom-interest-list:empty {
  display: none;
}

.custom-interest-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.35rem 0.3rem 0.6rem;
  border: 2px solid var(--green);
  border-radius: 10px;
  background: var(--yellow);
  color: var(--green);
  font-size: 0.7rem;
}

.custom-interest-tag button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.review-list,
.step-controls .review-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.review-item,
.step-controls .review-item {
  min-height: 56px;
  padding: 0.62rem 0.65rem 0.62rem 0.85rem;
  border: 2px solid rgba(7, 84, 71, 0.22);
  border-radius: 13px;
  background: var(--paper);
}

.review-item:nth-child(even),
.review-item:nth-last-child(-n + 2) {
  border-right: 2px solid rgba(7, 84, 71, 0.22);
  border-bottom: 2px solid rgba(7, 84, 71, 0.22);
}

.review-item div {
  min-width: 0;
}

.review-item strong,
.step-controls .review-item strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
}

.review-item button,
.step-controls .review-item button {
  display: grid;
  min-width: 36px;
  width: 36px;
  min-height: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid var(--green);
  background: transparent;
  font-size: 1rem;
}

.review-item button span,
.step-controls .review-item button span {
  margin: 0;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
}

.generation-screen {
  padding: clamp(1rem, 3vw, 2.4rem);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 245, 107, 0.35) 0 6%, transparent 6.4%),
    radial-gradient(circle at 88% 80%, rgba(247, 109, 110, 0.24) 0 8%, transparent 8.4%),
    var(--blue);
}

.generation-card {
  display: grid;
  width: min(100%, 980px);
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 3px solid var(--green);
  border-radius: 26px;
  background: var(--cream);
  box-shadow: 12px 12px 0 rgba(7, 84, 71, 0.14);
  text-align: left;
}

.generation-visual {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  padding: 2rem;
  border-right: 2px solid rgba(7, 84, 71, 0.18);
  background: #d3e8e3;
}

.generation-orbit {
  margin: 0;
}

.generation-payment-art {
  display: none;
  width: min(88%, 280px);
  max-height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(7, 84, 71, 0.16));
  animation: paymentArtFloat 2.2s ease-in-out infinite alternate;
}

.generation-screen[data-mode="music"] .generation-payment-art { display: block; }
.generation-screen[data-mode="music"] .generation-orbit { display: none; }
.generation-screen[data-mode="music"] .generation-visual { gap: 0.7rem; }
.generation-screen[data-mode="music"] .generation-status { background: var(--yellow); }
.generation-screen[data-mode="music"] .generation-status i { background: #46a664; }
.generation-screen[data-mode="music"] .generation-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.generation-screen[data-mode="music"] .generation-stages li.complete i { background: #46a664; }
.generation-screen[data-mode="music"] .generation-stages li.active i {
  position: relative;
  color: transparent;
}
.generation-screen[data-mode="music"] .generation-stages li.active i::after {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: var(--green);
  content: "";
  animation: paymentLoaderSpin 700ms linear infinite;
}

@keyframes paymentArtFloat {
  to { transform: translateY(-8px) rotate(1deg); }
}

@keyframes paymentLoaderSpin {
  to { transform: rotate(360deg); }
}

.generation-wave {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 7px;
}

.generation-wave i {
  display: block;
  width: 6px;
  height: 35%;
  border-radius: 999px;
  background: var(--green);
  animation: generationWave 760ms ease-in-out infinite alternate;
}

.generation-wave i:nth-child(2), .generation-wave i:nth-child(6) { animation-delay: -180ms; }
.generation-wave i:nth-child(3), .generation-wave i:nth-child(5) { animation-delay: -360ms; }
.generation-wave i:nth-child(4) { animation-delay: -540ms; }

@keyframes generationWave {
  to { height: 100%; }
}

.generation-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 2.5rem);
}

.generation-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  padding: 0.38rem 0.7rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--green);
  font-size: 0.7rem;
}

.generation-status i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  animation: generationPulse 900ms ease-in-out infinite alternate;
}

.generation-status.has-error {
  border-color: #9b3b2f;
  background: #f5d5ce;
  color: #7f2f27;
}

.generation-status.has-error i { animation: none; background: #9b3b2f; }

@keyframes generationPulse {
  to { transform: scale(1.55); opacity: 0.45; }
}

.generation-copy h2 {
  max-width: 16ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.98;
}

.generation-copy .generation-progress,
.generation-copy .generation-stages,
.generation-copy .generation-note,
.generation-copy .generation-error {
  width: 100%;
  max-width: none;
}

.generation-progress i {
  position: relative;
  overflow: hidden;
}

.generation-progress i::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  content: "";
  transform: translateX(-100%);
  animation: generationShimmer 1.15s linear infinite;
}

@keyframes generationShimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 800px) {
  .studio-form[data-current-step="1"] .studio-continue { grid-column: 2; }
  .studio-form[data-current-step="2"] .studio-continue { display: none; }

  .interest-chips,
  .step-controls .interest-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .interest-chip,
  .step-controls .interest-chip {
    min-height: 46px;
    padding: 0.45rem 0.5rem;
  }

  .custom-interest-entry { gap: 0.4rem; }
  .custom-interest-add { min-width: 70px; }

  .generation-screen {
    justify-content: flex-start;
    padding: 0.8rem;
  }

  .generation-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 6px 6px 0 rgba(7, 84, 71, 0.14);
  }

  .generation-visual {
    min-height: 180px;
    flex-direction: row;
    gap: 1.4rem;
    padding: 1rem;
    border-right: 0;
    border-bottom: 2px solid rgba(7, 84, 71, 0.18);
  }

  .generation-orbit { width: 96px; height: 96px; }
  .generation-payment-art { width: min(42vw, 150px); max-height: 145px; }
  .generation-orbit span { font-size: 2.2rem; }
  .generation-copy { padding: 1rem; }
  .generation-copy h2 { font-size: 2rem; }
  .generation-stages { margin-top: 1rem; }
  .generation-stages li { font-size: 0.58rem; }
}

.song-share-dialog {
  width: min(calc(100% - 2rem), 560px);
  overflow: visible;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  border: 3px solid var(--green);
  border-radius: 26px;
  background: var(--cream);
  color: var(--green);
  box-shadow: 12px 12px 0 rgba(7, 84, 71, 0.22);
}

.song-share-dialog::backdrop {
  background: rgba(3, 46, 39, 0.72);
  backdrop-filter: blur(6px);
}

.song-share-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 1.2rem;
}

.song-share-kicker {
  width: fit-content;
  margin: 0 0 0.7rem;
  padding: 0.3rem 0.65rem;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.song-share-dialog h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1;
}

.song-share-dialog > p:not(.song-share-kicker, .song-share-feedback) {
  margin: 0.7rem 0 1.2rem;
  color: #58716b;
}

.song-share-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.song-share-options a,
.song-share-options button {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--green);
  border-radius: 16px;
  background: var(--paper);
  color: var(--green);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.song-share-options a:hover,
.song-share-options button:hover,
.song-share-options a:focus-visible,
.song-share-options button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  background: var(--yellow);
}

.song-share-options span { font-size: 1.25rem; }
.song-share-feedback { min-height: 1.2em; margin: 0.9rem 0 0; font-weight: 800; }

@media (max-width: 520px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .song-share-dialog { border-radius: 20px; box-shadow: 7px 7px 0 rgba(7, 84, 71, 0.22); }
  .song-share-options { grid-template-columns: 1fr; }
  .song-share-options a, .song-share-options button { min-height: 54px; }
}

/* Keep the existing studio design proportionate on phone-sized viewports. */
@media (max-width: 520px) {
  .studio-dialog {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .studio-header {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 0.55rem;
    padding: 0 16px;
  }

  .studio-close {
    top: 0.7rem;
    right: 0.8rem;
    width: 32px;
    height: 32px;
    border-width: 1.5px;
    font-size: 1rem;
  }

  .studio-progress-meta {
    margin-bottom: 0.22rem;
    font-size: 0.68rem;
  }

  .studio-progress-track {
    height: 5px;
  }

  .studio-step {
    padding: 0;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .studio-step::-webkit-scrollbar {
    display: none;
  }

  .step-intro,
  .studio-presentation {
    padding: 0.55rem 18px 0.7rem;
  }

  .step-intro img,
  .studio-presentation img {
    width: min(24vw, 88px);
    max-height: 88px;
    margin-bottom: 0.18rem;
  }

  .step-intro h2,
  .studio-presentation h2 {
    max-width: 19ch;
    font-size: clamp(1.5rem, 7vw, 1.75rem);
    line-height: 1.02;
  }

  .step-intro p,
  .studio-presentation p {
    max-width: 34ch;
    margin-top: 0.22rem;
    font-size: 0.875rem;
    line-height: 1.3;
  }

  .step-controls {
    padding: 0.75rem 18px 1rem;
  }

  .step-controls-centered {
    align-items: center;
  }

  .studio-field,
  .custom-interest-field {
    margin-top: 0.55rem;
  }

  .studio-field label,
  .studio-fieldset legend {
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
  }

  .studio-field input,
  .studio-field-large input,
  .search-field input {
    min-height: 48px;
    padding-inline: 0.85rem;
    border-radius: 13px;
    font-size: 1rem;
  }

  .about-choice-stage {
    min-height: 228px;
  }

  .choice-grid,
  .step-controls .language-list,
  .step-controls .topic-grid,
  .interest-chips,
  .step-controls .interest-chips,
  .step-controls .genre-grid {
    gap: 10px;
  }

  .choice-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .age-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-card,
  .step-controls .choice-card {
    min-height: 44px;
    gap: 0.18rem;
    padding: 0.38rem 0.38rem 0.5rem;
    border-radius: 14px;
    font-size: 0.76rem;
  }

  .choice-artwork {
    border-radius: 10px;
  }

  .choice-card strong {
    font-size: 0.75rem;
  }

  .choice-card small {
    font-size: 0.62rem;
  }

  .step-controls .language-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-option,
  .step-controls .language-option {
    min-height: 46px;
    padding: 0.42rem 0.55rem;
    border-radius: 12px;
    font-size: 0.72rem;
  }

  .language-main {
    gap: 0.42rem;
  }

  .language-flag {
    font-size: 1rem;
  }

  .custom-option-row {
    gap: 0.45rem;
    margin-bottom: 0.65rem;
  }

  .custom-option-trigger {
    min-height: 44px;
    padding: 0.42rem 0.65rem;
    border-radius: 12px;
  }

  .custom-option-trigger > span {
    font-size: 1.05rem;
  }

  .custom-option-trigger strong {
    font-size: 0.72rem;
  }

  .custom-option-trigger small {
    font-size: 0.58rem;
  }

  .step-controls .topic-grid,
  .step-controls .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-card,
  .step-controls .topic-card,
  .genre-card,
  .step-controls .genre-card {
    min-height: 0;
    padding: 0.4rem 0.4rem 0.55rem;
    border-radius: 14px;
  }

  .topic-artwork,
  .genre-art {
    border-radius: 10px;
  }

  .topic-card strong {
    min-height: 2.25em;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .topic-card > i {
    top: 0.45rem;
    right: 0.45rem;
    width: 23px;
    height: 23px;
  }

  .selection-count {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
  }

  .interest-chip,
  .step-controls .interest-chip {
    min-height: 46px;
    gap: 0.4rem;
    padding: 0.42rem 0.5rem;
    border-radius: 12px;
  }

  .interest-chip > span {
    flex-basis: 1.25rem;
    font-size: 0.95rem;
  }

  .interest-chip strong {
    font-size: 0.69rem;
  }

  .custom-interest-field {
    padding: 0.6rem;
    border-radius: 12px;
  }

  .custom-interest-entry {
    gap: 0.4rem;
  }

  .custom-interest-add {
    min-width: 62px;
    min-height: 44px;
  }

  .genre-copy strong {
    margin-top: 0.35rem;
    padding-right: 1.9rem;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .genre-preview {
    right: 0.38rem;
    bottom: 0.42rem;
    width: 36px;
    height: 36px;
  }

  .detail-examples {
    gap: 0.3rem;
    margin-bottom: 0.5rem;
  }

  .detail-examples span {
    padding: 0.25rem 0.5rem;
    font-size: 0.64rem;
  }

  .step-controls .studio-field textarea,
  .studio-field textarea {
    min-height: 96px;
    padding: 0.75rem;
    border-radius: 13px;
    font-size: 0.82rem;
  }

  .step-controls .personal-message-field textarea,
  .personal-message-field textarea {
    min-height: 72px;
  }

  .textarea-meta {
    gap: 0.6rem;
    margin-top: 0.35rem;
    font-size: 0.64rem;
  }

  .studio-nav {
    position: sticky;
    bottom: 0;
    grid-template-columns: minmax(88px, 0.65fr) minmax(142px, 1.35fr);
    gap: 10px;
    min-height: 58px;
    padding: 6px 16px max(6px, env(safe-area-inset-bottom));
  }

  .studio-nav button {
    min-height: 44px;
    padding-inline: 0.65rem;
    border-width: 1.5px;
    font-size: 0.78rem;
  }
}

@media (max-width: 350px) {
  .studio-header {
    padding-inline: 14px;
  }

  .step-intro,
  .studio-presentation {
    padding-inline: 16px;
  }

  .step-controls {
    padding-inline: 16px;
  }

  .choice-grid,
  .step-controls .language-list,
  .step-controls .topic-grid,
  .interest-chips,
  .step-controls .interest-chips,
  .step-controls .genre-grid {
    gap: 8px;
  }

  .choice-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-nav {
    padding-inline: 14px;
  }
}

/* Mobile studio: compact, native-feeling proportions without changing desktop. */
@media (max-width: 520px) {
  .studio-shell {
    min-height: 0;
  }

  .studio-header {
    position: relative;
    z-index: 12;
    grid-template-columns: minmax(0, 1fr) 34px;
    flex: 0 0 auto;
    min-height: 54px;
    padding: 7px 16px 8px;
  }

  .studio-progress {
    width: 100%;
    padding-right: 4px;
  }

  .studio-progress-meta {
    min-height: 16px;
    margin-bottom: 3px;
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .studio-progress-track {
    height: 5px;
  }

  .studio-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-width: 1.5px;
    font-size: 0.95rem;
  }

  .studio-form {
    min-height: 0;
    overflow: hidden;
  }

  .studio-step {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .step-intro {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 4px 12px;
    min-height: auto;
    align-items: center;
    justify-content: initial;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1.5px solid rgba(20, 67, 61, 0.14);
    text-align: left;
  }

  .step-intro img {
    grid-row: 1 / span 2;
    width: 58px;
    height: 58px;
    max-height: none;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 5px 7px rgba(20, 67, 61, 0.08));
  }

  .step-intro h2 {
    max-width: 100%;
    font-size: clamp(1.5rem, 6.5vw, 1.72rem);
    line-height: 1;
    text-wrap: balance;
  }

  .step-intro p {
    max-width: 100%;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .studio-step[data-step="4"] .step-intro p {
    display: none;
  }

  .step-controls,
  .step-controls-centered {
    display: block;
    min-height: auto;
    flex: 0 0 auto;
    padding: 16px 18px 24px;
    overflow: visible;
  }

  .step-controls-centered {
    padding-top: clamp(24px, 8vh, 64px);
  }

  .studio-field,
  .custom-interest-field {
    margin-top: 0;
  }

  .studio-field + .studio-field {
    margin-top: 16px;
  }

  .studio-field label,
  .studio-fieldset legend {
    margin-bottom: 7px;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .studio-field input,
  .studio-field-large input,
  .search-field input,
  .custom-interest-entry input,
  .studio-field textarea {
    font-size: 16px;
  }

  .studio-field input,
  .studio-field-large input,
  .search-field input {
    min-height: 48px;
    padding-inline: 14px;
    border-radius: 13px;
  }

  .field-error {
    min-height: 0;
    margin-top: 5px;
    font-size: 0.75rem;
  }

  .field-error:empty {
    display: none;
  }

  .about-step-controls {
    display: flex;
    min-height: 0;
    align-items: center;
  }

  .about-choice-stage {
    min-height: 0;
  }

  .studio-fieldset {
    margin-bottom: 0;
  }

  .choice-grid,
  .step-controls .language-list,
  .step-controls .topic-grid,
  .step-controls .interest-chips,
  .step-controls .genre-grid {
    gap: 10px;
  }

  .choice-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .age-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-card,
  .step-controls .choice-card {
    min-height: 44px;
    padding: 6px 6px 8px;
    border-radius: 14px;
  }

  .choice-card strong {
    font-size: 0.76rem;
    line-height: 1.15;
  }

  .choice-card small {
    font-size: 0.66rem;
    line-height: 1.15;
  }

  .step-controls .language-list,
  .step-controls .interest-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-option,
  .step-controls .language-option,
  .interest-chip,
  .step-controls .interest-chip {
    width: 100%;
    min-height: 46px;
    padding: 10px 11px;
    border-radius: 12px;
    font-size: 0.76rem;
  }

  .interest-chip {
    justify-content: flex-start;
  }

  .interest-chip strong {
    font-size: 0.74rem;
    line-height: 1.15;
  }

  .selection-count {
    margin-bottom: 10px;
    font-size: 0.75rem;
  }

  .custom-option-row {
    gap: 8px;
    margin-bottom: 12px;
  }

  .custom-option-trigger {
    min-height: 44px;
    padding: 8px 11px;
    border-radius: 12px;
  }

  .custom-topic-field,
  .custom-interest-field {
    padding: 10px;
    border-radius: 12px;
  }

  .custom-interest-entry {
    grid-template-columns: minmax(0, 1fr) 60px;
    gap: 8px;
  }

  .custom-interest-add {
    min-width: 60px;
    min-height: 44px;
  }

  .step-controls .topic-grid,
  .step-controls .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-card,
  .step-controls .topic-card,
  .genre-card,
  .step-controls .genre-card {
    min-width: 0;
    padding: 6px 6px 8px;
    border-radius: 14px;
  }

  .topic-card strong,
  .genre-copy strong {
    min-height: 0;
    margin-top: 6px;
    font-size: 0.75rem;
    line-height: 1.15;
  }

  .genre-copy strong {
    padding-right: 34px;
  }

  .genre-preview {
    right: 6px;
    bottom: 6px;
    width: 32px;
    height: 32px;
  }

  .detail-examples {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0 -18px 12px;
    padding: 0 18px 3px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .detail-examples::-webkit-scrollbar {
    display: none;
  }

  .detail-examples span {
    flex: 0 0 auto;
    padding: 5px 9px;
    font-size: 0.68rem;
  }

  .step-controls .studio-field textarea,
  .studio-field textarea,
  .step-controls .personal-message-field textarea,
  .personal-message-field textarea {
    height: auto;
    min-height: 76px;
    max-height: 176px;
    padding: 12px;
    overflow-y: auto;
    border-radius: 13px;
    resize: none;
    font-size: 16px;
    line-height: 1.4;
  }

  .textarea-meta {
    gap: 8px;
    margin-top: 6px;
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .textarea-meta > span {
    max-width: 76%;
  }

  .field-support {
    margin-top: 8px;
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .studio-nav {
    position: relative;
    bottom: auto;
    grid-template-columns: minmax(84px, 0.62fr) minmax(150px, 1.38fr);
    flex: 0 0 auto;
    gap: 10px;
    min-height: 58px;
    padding: 6px 16px max(6px, env(safe-area-inset-bottom));
  }

  .studio-nav button {
    min-height: 44px;
    padding-inline: 12px;
    border-width: 1.5px;
    font-size: 0.8rem;
  }

  .studio-save-status {
    display: none;
  }
}

@media (max-width: 350px) {
  .studio-header {
    padding-inline: 14px;
  }

  .step-intro {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 3px 10px;
    padding-inline: 16px;
  }

  .step-intro img {
    width: 52px;
    height: 52px;
  }

  .step-intro h2 {
    font-size: 1.42rem;
  }

  .step-controls,
  .step-controls-centered {
    padding-inline: 16px;
  }

  .choice-grid,
  .step-controls .language-list,
  .step-controls .topic-grid,
  .step-controls .interest-chips,
  .step-controls .genre-grid {
    gap: 8px;
  }

  .choice-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .studio-nav {
    padding-inline: 14px;
  }
}
