.scene-sky {
  background:
    radial-gradient(80% 45% at 88% 0%, rgba(255, 255, 255, 0.82) 0%, transparent 72%),
    linear-gradient(180deg, #e8f1f2 0%, #eef3ef 62%, #f7eee8 100%);
}

.sky {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(9px, 1.8vh, 16px);
  padding: clamp(20px, 3.5vh, 32px) clamp(15px, 4vw, 24px) clamp(14px, 2.2vh, 22px);
  color: #514a47;
  isolation: isolate;
}

.sky__glow {
  position: absolute;
  z-index: -1;
  width: min(74vw, 330px);
  aspect-ratio: 1;
  top: -23%;
  right: -19%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 226, 0.66), rgba(255, 248, 226, 0) 68%);
  pointer-events: none;
}

.sky__say {
  width: 100%;
  min-width: 0;
  min-height: 2.4em;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: #574f4b;
  font-family: var(--font-display);
  font-size: clamp(16px, 4.6vw, 20px);
  font-weight: 600;
  line-height: 1.32;
  text-align: center;
  text-wrap: balance;
  opacity: 0;
}

.sky__clouds {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: start;
  gap: clamp(14px, 2vh, 18px) 12px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 25px 3px 12px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(128, 145, 137, 0.28) transparent;
}

.sky__tray::-webkit-scrollbar {
  display: none;
}

.sky__clouds::-webkit-scrollbar {
  width: 3px;
}

.sky__clouds::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(128, 145, 137, 0.28);
}

.cloud {
  --cloud-face: #fff;
  --cloud-outline: #d7e2df;
  --cloud-shade: #eef3ef;
  position: relative;
  width: 100%;
  z-index: 0;
  isolation: isolate;
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 17px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5b5551;
  text-align: center;
  animation: cloud-float 5.8s ease-in-out infinite;
  animation-delay: var(--cloud-delay, 0s);
  transition: transform 180ms ease;
}

.cloud__shape {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 5px 6px rgba(92, 113, 105, 0.1));
  transition: filter 220ms ease;
}

.cloud__body {
  fill: var(--cloud-face);
  stroke: var(--cloud-outline);
  stroke-width: 1.7px;
  stroke-linejoin: round;
}

.cloud__shade {
  fill: var(--cloud-shade);
  opacity: 0.48;
}

.cloud__shine {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2px;
  stroke-linecap: round;
  opacity: 0.9;
}

.cloud:active {
  transform: scale(0.97);
}

.cloud:focus-visible,
.btn:focus-visible,
.sky__chip:focus-visible {
  outline: 3px solid rgba(127, 157, 139, 0.62);
  outline-offset: 3px;
}

.cloud.is-picked {
  --cloud-face: #f8e9e4;
  --cloud-outline: #d5aaa1;
  --cloud-shade: #f0dcd6;
}

.cloud.is-picked .cloud__shape {
  filter: drop-shadow(0 5px 7px rgba(160, 113, 103, 0.14));
}

.cloud__text,
.cloud__check {
  position: relative;
  z-index: 1;
}

.cloud__text {
  grid-column: 1;
  justify-self: stretch;
  font-size: clamp(11px, 3.1vw, 13px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.cloud__check {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cloud-outline);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: transparent;
  font-size: 11px;
  line-height: 1;
}

.cloud.is-picked .cloud__check {
  border-color: #c98a80;
  background: #c98a80;
  color: #fff;
}

.cloud--custom {
  --cloud-face: #f4f0e7;
  --cloud-outline: #ded6c8;
  --cloud-shade: #ece6da;
}

.cloud--add {
  --cloud-face: #edf2ee;
  --cloud-outline: #cbdad1;
  --cloud-shade: #e1ebe4;
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 72px;
  color: #6b746e;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.cloud--add .cloud__body {
  stroke-dasharray: 5 4;
}

.sky__foot {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.sky__tray {
  min-height: 0;
  max-height: 48px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 5px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sky__tray:empty {
  display: none;
}

.sky__chip {
  flex: 0 0 auto;
  min-height: 34px;
  max-width: 190px;
  overflow: hidden;
  padding: 7px 12px;
  border: 1px solid rgba(104, 133, 139, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.68);
  color: #69615c;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sky__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sky__count {
  color: #756d68;
  font-size: 13px;
  font-weight: 650;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: transform 150ms ease, opacity 150ms ease, background-color 150ms ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  cursor: default;
  opacity: 0.45;
}

.btn[hidden] {
  display: none;
}

.btn--go {
  min-width: 118px;
  background: #d08f85;
  box-shadow: 0 6px 16px rgba(151, 101, 92, 0.16);
  color: #fffaf6;
}

.btn--ghost {
  border: 1px solid rgba(89, 76, 69, 0.13);
  background: rgba(255, 253, 250, 0.72);
  color: #5f5753;
}

.scene-sheet {
  z-index: 4;
  padding: 20px;
  background: rgba(79, 83, 76, 0.12);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.sheet {
  width: min(100%, 430px);
  padding: clamp(23px, 6vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  background: #fffdfa;
  box-shadow: 0 22px 60px rgba(80, 69, 62, 0.12);
  color: var(--ink);
}

.sheet__title {
  margin-bottom: 19px;
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.sheet__field {
  padding: 12px 14px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefa;
}

.sheet__input {
  width: 100%;
  min-height: 94px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #37464d;
  font: inherit;
  font-size: 16px;
  line-height: 1.45;
}

.sheet__input::placeholder {
  color: #978e88;
}

.sheet__hint {
  color: #978e88;
  font-size: 11px;
  text-align: right;
}

.sheet__hint b {
  font-weight: 600;
}

.sheet__actions,
.confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.sheet__actions .btn,
.confirm__actions .btn {
  flex: 1 1 130px;
}

.scene-confirm,
.scene-final {
  background:
    radial-gradient(90% 55% at 80% 5%, rgba(255, 248, 226, 0.64) 0%, transparent 72%),
    linear-gradient(180deg, #e9f1ef 0%, #f5eee8 100%);
  color: var(--ink);
}

.confirm {
  width: min(100% - 36px, 450px);
  max-height: calc(100% - 40px);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 13px;
  overflow-y: auto;
  padding: clamp(24px, 6vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background: rgba(255, 253, 250, 0.9);
  box-shadow: 0 20px 54px rgba(73, 69, 62, 0.11);
  text-align: center;
  -webkit-overflow-scrolling: touch;
}

.confirm__title {
  color: #504743;
  font-family: var(--font-display);
  font-size: clamp(26px, 7vw, 35px);
  font-weight: 400;
  line-height: 1.1;
}

.confirm__lead {
  color: #817773;
  font-size: 15px;
  font-weight: 600;
}

.confirm__list {
  width: 100%;
  max-height: 30vh;
  display: grid;
  gap: 7px;
  overflow-y: auto;
  margin: 2px 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.confirm__item {
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(249, 244, 238, 0.8);
  color: #635b57;
  font-size: 13px;
  line-height: 1.35;
}

.confirm__hint {
  max-width: 30ch;
  color: #827a75;
  font-size: 13px;
  line-height: 1.4;
}

.confirm__actions {
  width: 100%;
}

.final {
  width: min(100%, 520px);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  padding: 30px;
  text-align: center;
}

.final__say {
  max-width: 24ch;
  min-height: 3.2em;
  color: #504743;
  font-family: var(--font-display);
  font-size: clamp(25px, 7vw, 34px);
  font-weight: 400;
  line-height: 1.35;
  text-wrap: balance;
  opacity: 0;
}

@keyframes cloud-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -3px;
  }
}

@media (max-height: 700px) {
  .sky {
    gap: 6px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .sky__say {
    min-height: 2em;
    font-size: 15px;
  }

  .cloud {
    min-height: 64px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .sky__foot {
    gap: 6px;
  }
}

@media (max-width: 360px) {
  .sky {
    padding-right: 12px;
    padding-left: 12px;
  }

  .sky__clouds {
    column-gap: 8px;
  }

  .cloud {
    grid-template-columns: minmax(0, 1fr) 16px;
    gap: 5px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .cloud__text {
    font-size: 10.5px;
  }
}
