:root {
  --phone-width: 390px;
  --phone-height: 844px;
  --brown: #65371f;
  --pink: #f5a8b4;
  --cream: rgba(255, 252, 245, 0.92);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: #efe5d7;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

.phone {
  position: relative;
  width: min(100vw, var(--phone-width));
  height: min(100vh, var(--phone-height));
  overflow: hidden;
  background: #fff8ed;
  box-shadow: 0 22px 80px rgba(96, 65, 42, 0.26);
}

.screen-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.screen-button {
  position: absolute;
  z-index: 8;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(245, 168, 180, 0.18);
}

.screen-button:focus-visible {
  outline: 2px solid rgba(246, 146, 164, 0.85);
  outline-offset: 2px;
}

.back-zone {
  left: 4.8%;
  top: 3.3%;
  width: 12%;
  height: 6.4%;
}

.skip-zone {
  right: 4.5%;
  top: 3.5%;
  width: 24%;
  height: 5.8%;
}

.write-zone {
  left: 25%;
  bottom: 8.9%;
  width: 50%;
  height: 6.3%;
  border-radius: 999px;
}

.mood-sound-zone {
  left: 34%;
  bottom: 16.4%;
  width: 32%;
  height: 4.7%;
  border-radius: 999px;
}

.sound-zone {
  right: 17.8%;
  top: 3.7%;
  width: 12%;
  height: 6.4%;
  border-radius: 50%;
}

.menu-zone {
  right: 4.5%;
  top: 3.7%;
  width: 12%;
  height: 6.4%;
  border-radius: 50%;
}

.quick-1,
.quick-2,
.quick-3 {
  left: 18.5%;
  width: 63%;
  height: 4.8%;
  border-radius: 999px;
}

.quick-1 {
  top: 27%;
}

.quick-2 {
  top: 33.3%;
}

.quick-3 {
  top: 39.7%;
}

.welcome-bubble {
  position: absolute;
  left: 58.9%;
  top: 33.9%;
  width: 33.8%;
  height: 10.4%;
  max-width: 230px;
  min-width: 0;
  min-height: 0;
  padding: 14px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
  z-index: 8;
  transform: none;
  animation: subtitleAppear 680ms ease both;
}

.welcome-bubble::after {
  content: "";
  position: absolute;
  left: 6%;
  bottom: -23%;
  width: 18%;
  height: 26%;
  background: rgba(255, 255, 255, 0.78);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.welcome-bubble-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 650;
  color: #5b3828;
  word-break: keep-all;
  white-space: normal;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.36);
}

.welcome-bubble-text span {
  display: block;
}

@media (max-width: 430px) {
  .welcome-bubble {
    left: 58.9%;
    top: 33.9%;
    width: 33.8%;
    height: 10.4%;
    min-width: 0;
    min-height: 0;
    padding: 14px 14px;
    transform: none;
  }
}

.splash-sound-button {
  position: absolute;
  z-index: 14;
  right: 22px;
  top: 28px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #805234;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 26px rgba(123, 79, 45, 0.14);
  cursor: pointer;
}

.splash-sound-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.splash-sound-button.is-muted .sound-wave {
  opacity: 0;
}

.splash-sound-button.is-muted::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-36deg);
}

.splash-enter-button {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 13.5%;
  transform: translateX(-50%);
  min-width: 168px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #7d4d39;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(172, 114, 78, 0.16);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.petal-field {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.petal-field span {
  position: absolute;
  top: -24px;
  width: 13px;
  height: 18px;
  border-radius: 80% 20% 80% 20%;
  background: rgba(255, 188, 202, 0.82);
  filter: blur(0.2px);
  animation: petalFall 4.8s linear 1;
}

.petal-field span:nth-child(1) {
  left: 14%;
  animation-delay: 0.2s;
}

.petal-field span:nth-child(2) {
  left: 34%;
  animation-delay: 0.8s;
  transform: scale(0.78);
}

.petal-field span:nth-child(3) {
  left: 68%;
  animation-delay: 0.4s;
  transform: scale(0.9);
}

.petal-field span:nth-child(4) {
  left: 82%;
  animation-delay: 1.25s;
  transform: scale(0.72);
}

.petal-field span:nth-child(5) {
  left: 47%;
  animation-delay: 1.8s;
  transform: scale(0.62);
}

.petal-field span:nth-child(6) {
  left: 23%;
  animation-delay: 2.2s;
  transform: scale(0.84);
}

.intro-toast {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 44.8%;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--brown);
  background: var(--cream);
  box-shadow: 0 12px 28px rgba(172, 114, 78, 0.18);
  font-size: 18px;
  font-weight: 800;
  animation: introShrink 2s ease both;
}

.moving-bg {
  animation: bgDrift 9s ease-in-out infinite alternate;
}

.chat-art::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 238, 0.03) 0%, rgba(255, 249, 238, 0.1) 50%, rgba(238, 204, 181, 0.36) 100%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.38), transparent 36%);
  pointer-events: none;
}

.chat-topbar {
  position: absolute;
  z-index: 20;
  top: 30px;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.round-icon {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #a86643;
  background: rgba(255, 253, 246, 0.86);
  box-shadow: 0 12px 28px rgba(134, 86, 53, 0.15);
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(245, 168, 180, 0.18);
}

.round-icon:focus-visible,
.chat-quick-buttons button:focus-visible,
.real-composer input:focus-visible,
.real-composer button:focus-visible {
  outline: 2px solid rgba(235, 139, 158, 0.86);
  outline-offset: 3px;
}

.round-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-sound-button.is-muted .sound-wave {
  opacity: 0;
}

.chat-sound-button.is-muted::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-36deg);
}

.chat-title {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #744023;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.52);
}

.chat-title strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 760;
}

.chat-title span {
  color: rgba(104, 72, 55, 0.78);
  font-size: 12px;
  font-weight: 520;
}

.chat-actions {
  display: flex;
  justify-content: end;
}

.live-messages {
  position: absolute;
  z-index: 10;
  left: 28px;
  right: 28px;
  top: 118px;
  bottom: 386px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 8px 24px;
  background: transparent;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.live-messages::-webkit-scrollbar {
  display: none;
}

.chat-quick-buttons {
  position: absolute;
  z-index: 18;
  left: 30px;
  right: 30px;
  bottom: 158px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.chat-quick-buttons button {
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 253, 246, 0.88);
  box-shadow: 0 11px 24px rgba(128, 84, 54, 0.13);
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
}

.chat-quick-buttons button.purple {
  color: #9875df;
}

.chat-quick-buttons button.blue {
  color: #70a9dc;
}

.chat-quick-buttons button.pink {
  color: #e8849c;
}

.chat-quick-buttons button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.composer-mascot {
  position: absolute;
  z-index: 13;
  left: 38px;
  bottom: 188px;
  width: 176px;
  max-width: none;
  filter: drop-shadow(0 12px 18px rgba(134, 86, 53, 0.14));
  pointer-events: none;
  animation: mascotBreathe 4.2s ease-in-out infinite;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
}

.message-row.user {
  justify-content: flex-end;
}

.message-row.nana {
  justify-content: flex-start;
}

.nana-avatar {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 253, 246, 0.9);
  border-radius: 50%;
  background: rgba(255, 231, 238, 0.9);
  box-shadow: 0 8px 18px rgba(151, 97, 65, 0.15);
}

.nana-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}

.bubble {
  max-width: 210px;
  padding: 10px 14px;
  border-radius: 18px;
  color: var(--brown);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 10px 24px rgba(139, 89, 55, 0.13);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.55;
}

.bubble.nana {
  border-bottom-left-radius: 8px;
}

.bubble.user {
  color: #7b4a53;
  border-bottom-right-radius: 8px;
  background: rgba(255, 220, 227, 0.92);
}

.bubble.typing {
  opacity: 0.72;
}

.real-composer {
  position: absolute;
  z-index: 17;
  left: 24px;
  right: 24px;
  bottom: 78px;
  height: 76px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 31px;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: 0 15px 34px rgba(130, 82, 52, 0.16);
}

.real-composer input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  padding: 0 76px 0 27px;
  border-radius: 27px;
  color: var(--brown);
  background: transparent;
  font-size: 16px;
  font-weight: 700;
}

.real-composer input::placeholder {
  color: rgba(110, 78, 62, 0.82);
}

.real-composer button {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #f1a8b2, #e88e9c);
  box-shadow: 0 10px 20px rgba(184, 93, 108, 0.24);
  transform: translateY(-50%);
  cursor: pointer;
}

.mascot-note {
  position: absolute;
  z-index: 12;
  left: 224px;
  bottom: 264px;
  min-width: 112px;
  padding: 10px 14px;
  border: 2px solid rgba(238, 156, 171, 0.38);
  border-radius: 50% 48% 46% 50%;
  color: #8b563d;
  background: rgba(255, 250, 246, 0.84);
  box-shadow: 0 10px 22px rgba(150, 92, 62, 0.1);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 760;
  text-align: center;
  pointer-events: none;
}

.mascot-note::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 12px;
  width: 18px;
  height: 14px;
  border-left: 2px solid rgba(238, 156, 171, 0.38);
  border-bottom: 2px solid rgba(238, 156, 171, 0.38);
  border-radius: 0 0 0 14px;
  background: rgba(255, 250, 246, 0.84);
  transform: rotate(21deg);
}

.composer-flower {
  position: absolute;
  z-index: 19;
  bottom: 74px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ffd86e 0 10%, transparent 12%),
    radial-gradient(circle at 50% 17%, #ff9db2 0 18%, transparent 19%),
    radial-gradient(circle at 82% 50%, #ff9db2 0 18%, transparent 19%),
    radial-gradient(circle at 50% 83%, #ff9db2 0 18%, transparent 19%),
    radial-gradient(circle at 18% 50%, #ff9db2 0 18%, transparent 19%);
  filter: drop-shadow(0 3px 5px rgba(157, 90, 70, 0.16));
  pointer-events: none;
}

.composer-flower.left {
  left: 20px;
}

.composer-flower.right {
  right: 20px;
}

.real-composer button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-tabbar,
.friend-tabbar {
  position: absolute;
  z-index: 22;
  left: 24px;
  right: 24px;
  bottom: 14px;
  height: 52px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(212, 153, 130, 0.28);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 14px 30px rgba(128, 84, 54, 0.15);
  backdrop-filter: blur(10px);
}

.chat-tab-button,
.friend-tabbar button {
  min-width: 0;
  border: 0;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(106, 73, 56, 0.78);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.chat-tab-button:hover,
.friend-tabbar button:hover,
.friend-tabbar button.is-active {
  color: #8c573d;
  background: rgba(255, 231, 223, 0.72);
}

.chat-tab-button:focus-visible,
.friend-tabbar button:focus-visible,
.memory-save-dialog button:focus-visible {
  outline: 2px solid rgba(235, 139, 158, 0.86);
  outline-offset: 2px;
}

.chat-tabbar svg,
.friend-tabbar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.memory-save-overlay {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 24px;
  background: rgba(82, 54, 43, 0.25);
  backdrop-filter: blur(4px);
}

.memory-save-dialog {
  position: relative;
  width: 100%;
  padding: 24px 20px 18px;
  border: 1px solid rgba(222, 164, 143, 0.34);
  border-radius: 28px;
  color: #5f3e2b;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 24px 55px rgba(90, 57, 38, 0.24);
  animation: dialogRise 180ms ease-out both;
}

.memory-save-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #9a6650;
  background: rgba(247, 229, 217, 0.78);
  cursor: pointer;
}

.memory-save-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.memory-save-eyebrow {
  margin: 0 0 8px;
  color: #bc7468;
  font-size: 12px;
  font-weight: 900;
}

.memory-save-dialog h2 {
  max-width: 260px;
  margin: 0;
  color: #5c3829;
  font-size: 21px;
  line-height: 1.25;
}

.memory-save-dialog p:not(.memory-save-eyebrow) {
  margin: 10px 0 0;
  color: rgba(101, 55, 31, 0.72);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}

.memory-save-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.memory-save-actions button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.memory-save-primary {
  color: white;
  background: linear-gradient(145deg, #ef9aaa, #df7d8e);
  box-shadow: 0 12px 24px rgba(191, 94, 112, 0.22);
}

.memory-save-secondary {
  color: #8a5a43;
  background: rgba(246, 229, 216, 0.82);
}

.reference-page {
  background: #fff8ed;
}

.reference-seed-result {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.reference-seed-result__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.reference-primary-hit,
.reference-secondary-hit,
.reference-top-left-hit,
.reference-success-primary-hit,
.reference-success-secondary-hit,
.reference-my-page-primary-hit,
.reference-my-page-tools-hit,
.reference-my-page-settings-hit,
.reference-garden-seed-hit {
  position: absolute;
  z-index: 3;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
}

.reference-primary-hit:hover,
.reference-secondary-hit:hover,
.reference-top-left-hit:hover,
.reference-success-primary-hit:hover,
.reference-success-secondary-hit:hover,
.reference-my-page-primary-hit:hover,
.reference-my-page-tools-hit:hover,
.reference-my-page-settings-hit:hover,
.reference-garden-seed-hit:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.reference-primary-hit:focus-visible,
.reference-secondary-hit:focus-visible,
.reference-top-left-hit:focus-visible,
.reference-success-primary-hit:focus-visible,
.reference-success-secondary-hit:focus-visible,
.reference-my-page-primary-hit:focus-visible,
.reference-my-page-tools-hit:focus-visible,
.reference-my-page-settings-hit:focus-visible,
.reference-garden-seed-hit:focus-visible {
  outline: 3px solid rgba(177, 96, 95, 0.46);
  outline-offset: 2px;
}

.reference-top-left-hit {
  left: 5.2%;
  top: 3.2%;
  width: 10%;
  height: 5.6%;
}

.reference-primary-hit {
  left: 8.8%;
  top: 69.2%;
  width: 82.4%;
  height: 8.4%;
}

.reference-secondary-hit {
  left: 32%;
  top: 78.4%;
  width: 36%;
  height: 4.4%;
}

.reference-success-primary-hit {
  left: 14%;
  top: 69.2%;
  width: 72%;
  height: 7.2%;
}

.reference-success-secondary-hit {
  left: 34%;
  top: 78.4%;
  width: 32%;
  height: 4.3%;
}

.reference-my-page-primary-hit {
  left: 8.9%;
  top: 61.5%;
  width: 31%;
  height: 6.4%;
}

.reference-my-page-tools-hit,
.reference-my-page-settings-hit {
  top: 2.9%;
  width: 10.3%;
  height: 5.8%;
}

.reference-my-page-tools-hit {
  left: 74.6%;
}

.reference-my-page-settings-hit {
  left: 86%;
}

.reference-garden-back-hit {
  left: 3.4%;
  top: 2.8%;
  width: 9.8%;
}

.reference-garden-seed-hit {
  left: 5.6%;
  width: 88.8%;
  height: 16%;
  border-radius: 28px;
}

.reference-garden-seed-hit--1 {
  top: 28.7%;
}

.reference-garden-seed-hit--2 {
  top: 46.2%;
}

.reference-garden-seed-hit--3 {
  top: 63.6%;
}

.reference-garden-seed-hit--4 {
  top: 80.9%;
}

.reference-garden-entry,
.reference-success-garden-entry,
.reference-my-page-card-hit {
  position: absolute;
  z-index: 1;
  border-radius: 26px;
}

.reference-garden-entry,
.reference-success-garden-entry {
  left: 8.7%;
  top: 84.2%;
  width: 82.6%;
  height: 13.4%;
}

.reference-my-page-card-hit {
  left: 6.2%;
  top: 35.9%;
  width: 87.6%;
  height: 35.2%;
}

.my-page-first::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 13%;
  right: 13%;
  bottom: 18px;
  height: 72px;
  border-radius: 30px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.78), rgba(255, 243, 237, 0.9)),
    radial-gradient(circle at 15% 72%, rgba(255, 205, 214, 0.2), transparent 34%),
    radial-gradient(circle at 86% 68%, rgba(255, 218, 226, 0.22), transparent 34%);
  box-shadow:
    0 12px 26px rgba(123, 84, 54, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.my-page-first .reference-seed-result__image {
  height: 100%;
  top: 0;
  object-fit: fill;
}

.my-page-first .reference-my-page-primary-hit {
  top: 61.5%;
}

.my-page-first .reference-my-page-card-hit {
  top: 35.9%;
}

.my-page-first .friend-tabbar {
  left: 30px;
  right: 30px;
  bottom: 16px;
  height: 62px;
  padding: 7px;
  border-color: rgba(236, 190, 171, 0.42);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow:
    0 14px 30px rgba(120, 78, 50, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.02);
}

.my-page-first .friend-tabbar button {
  border-radius: 23px;
  color: rgba(122, 82, 60, 0.78);
  font-size: 15px;
}

.my-page-first .friend-tabbar button:hover,
.my-page-first .friend-tabbar button.is-active {
  color: #875642;
  background: rgba(255, 228, 224, 0.72);
}

.seed-success-action-layer {
  position: absolute;
  z-index: 1;
  left: 7%;
  top: 17.4%;
  width: 86%;
  height: 40%;
  overflow: hidden;
  border-radius: 40% 40% 30% 30%;
  pointer-events: none;
  animation: seedActionOverlayFade 3400ms ease both;
  mask-image: radial-gradient(ellipse at center, #000 0 58%, rgba(0, 0, 0, 0.88) 68%, transparent 86%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 58%, rgba(0, 0, 0, 0.88) 68%, transparent 86%);
}

.seed-success-action-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 37%;
}

.friend-tabbar {
  bottom: 12px;
}

.reference-seed-detail-panel {
  position: absolute;
  z-index: 5;
  left: 7%;
  right: 7%;
  bottom: 7%;
  display: grid;
  gap: 10px;
  max-height: 52%;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(210, 154, 135, 0.26);
  border-radius: 24px;
  color: #49353c;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(84, 55, 40, 0.18);
}

.reference-seed-detail-panel h2,
.reference-seed-detail-panel p {
  margin: 0;
}

.reference-seed-detail-panel h2 {
  color: #5c3829;
  font-size: 18px;
}

.reference-seed-detail-panel p,
.reference-seed-detail-panel dd {
  font-size: 13px;
  line-height: 1.55;
}

.reference-seed-detail-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.reference-seed-detail-panel dt {
  color: #a36b61;
  font-size: 12px;
  font-weight: 900;
}

.reference-seed-detail-panel dd {
  margin: 4px 0 0;
}

.reference-seed-detail-panel button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #df7d8e;
  font-weight: 850;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
}

.soft-toast {
  position: absolute;
  z-index: 50;
  left: 50%;
  bottom: 82px;
  max-width: 290px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #744023;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 12px 28px rgba(134, 86, 53, 0.18);
  font-size: 13px;
  font-weight: 800;
  transform: translateX(-50%);
}

@keyframes dialogRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes seedActionOverlayFade {
  0% {
    opacity: 0;
  }

  12%,
  84% {
    opacity: 0.96;
  }

  100% {
    opacity: 0;
  }
}

@keyframes subtitleAppear {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes petalFall {
  0% {
    opacity: 0;
    translate: 0 0;
    rotate: 0deg;
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    translate: 34px 620px;
    rotate: 210deg;
  }
}

@keyframes introShrink {
  0%,
  55% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(220px) scale(0.72);
  }
}

@keyframes bgDrift {
  from {
    transform: scale(1.02) translateY(-6px);
  }

  to {
    transform: scale(1.05) translateY(8px);
  }
}

@keyframes mascotBreathe {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-4px) rotate(1deg);
  }
}

@keyframes waveIpSettle {
  0% {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.92);
  }

  18%,
  62% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-82%, 56%) scale(0.42);
  }
}

@keyframes welcomeBubbleOut {
  0%,
  65% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes welcomeOverlayOut {
  0%,
  92% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 430px) {
  .phone {
    width: 100vw;
    height: 100vh;
  }
}

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