@font-face {
  font-family: "ChillZhuo";
  src: url("./fonts/ChillZhuo.woff2") format("woff2"), url("./fonts/ChillZhuo.woff") format("woff");
  font-display: swap;
}

/* 基础重置与深空背景 */
body, html, #app-root {
  margin: 0; padding: 0; width: 100%; height: 100%;
  font-family: "ChillZhuo", "KaiTi", cursive;
  background: radial-gradient(circle at 50% 30%, #fdfbfb 0%, #ebedee 100%);
  overflow: hidden;
}

.illustration-container {
  width: 100vw; height: 100vh;
  display: flex; justify-content: center; align-items: center;
  position: relative;
  padding: 32px 36px 88px;
  box-sizing: border-box;
}

.page-layout {
  width: min(1240px, 100%);
  height: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(520px, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
}

.story-panel {
  align-self: center;
  justify-self: end;
  transform: translateX(64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  width: min(100%, 560px);
  min-height: min(980px, 96vh);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 148px 76px 138px;
  color: rgba(88, 78, 64, 0.96);
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.story-panel::before {
  content: "";
  position: absolute;
  left: 54px;
  right: 54px;
  top: 118px;
  bottom: 112px;
  z-index: 0;
  border-radius: 40px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.story-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "ChillZhuo", "KaiTi", cursive;
  font-size: clamp(1rem, 1.06vw, 1.08rem);
  line-height: 1.78;
  min-height: 0;
  letter-spacing: 0.01em;
  padding-bottom: 14px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  text-align: center;
}

.story-highlight {
  color: #6e4f39;
  font-weight: 500;
}

.scene-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  position: relative;
}

/* 画布容器 */
.canvas-wrapper {
  position: relative;
  width: min(620px, 98vw);
  height: min(800px, 92vh);
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
}

/* --- 玻璃罐 UI 部分 --- */
.jar-container {
  position: relative;
  width: 620px;
  height: 800px;
  margin-top: 24px;
}

.jar-back,
.jar-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform: scale(1.26) translateY(-12px);
}

.jar-back {
  z-index: 1;
  opacity: 0.34;
}

.jar-fill-zone {
  position: absolute;
  left: 152px;
  top: 176px;
  width: 300px;
  height: 416px;
  z-index: 2;
  overflow: hidden;
  clip-path: polygon(15% 0%, 85% 0%, 90% 10%, 94% 24%, 94% 95%, 84% 100%, 16% 100%, 6% 95%, 6% 24%, 10% 10%);
  isolation: isolate;
}

.jar-fill-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 88%, rgba(132, 140, 90, 0.1) 0%, rgba(132, 140, 90, 0.04) 22%, rgba(132, 140, 90, 0) 44%),
    radial-gradient(circle at 52% 14%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 28%, rgba(255, 255, 255, 0) 54%);
  z-index: 0;
  pointer-events: none;
}

.jar-fill-zone::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 86px;
  background: radial-gradient(circle at 50% 100%, rgba(120, 126, 74, 0.1) 0%, rgba(120, 126, 74, 0.03) 42%, rgba(120, 126, 74, 0) 76%);
  z-index: 12;
  pointer-events: none;
}

.pears-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

.jar-front {
  z-index: 3;
  opacity: 0.72;
}

.jar-shine {
  position: absolute;
  left: 162px;
  top: 172px;
  width: 290px;
  height: 424px;
  z-index: 4;
  pointer-events: none;
  border-radius: 110px 110px 36px 36px;
  background:
    linear-gradient(102deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 24%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0.02) 76%, rgba(255, 255, 255, 0.12) 100%);
  mix-blend-mode: screen;
  opacity: 0.46;
}

/* --- 梨子艺术交互 --- */
.art-pear-group {
  position: absolute;
  cursor: pointer;
  transition: opacity 0.25s ease, filter 0.25s ease;
  outline: none;
  opacity: 0.97;
  mix-blend-mode: normal;
  transform-origin: center center;
  pointer-events: none;
}

.art-pear-group.is-current,
.art-pear-group.is-dropping,
.art-pear-group.is-hovered {
  will-change: transform;
}

.art-pear-group.is-current .pear-img {
  filter: saturate(1.18) contrast(1.08) brightness(0.98) drop-shadow(0 0 8px rgba(255, 237, 173, 0.38));
}

.art-pear-group.is-entering .pear-img {
  animation: pear-enter 0.5s ease-out both;
}

@keyframes pear-enter {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

.art-pear-group.depth-back {
  opacity: 0.86;
}

.art-pear-group.depth-mid {
  opacity: 0.94;
}

.art-pear-group.depth-front {
  opacity: 1;
}

.art-pear-group.is-dense:not(.is-hovered):not(.active) {
  filter: saturate(1.03) contrast(1.02);
}

.art-pear-group.is-hovered,
.art-pear-group.is-active-target {
  opacity: 1;
  z-index: 40 !important;
}

.art-pear-group.is-hovered .pear-img,
.art-pear-group.is-active-target .pear-img {
  filter: saturate(1.18) contrast(1.08) brightness(1.01) drop-shadow(0 0 10px rgba(255, 232, 169, 0.46));
}

.pear-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.14) contrast(1.05) brightness(0.96);
  transition: all 0.4s;
}

.swaying-pear {
  width: 100%;
  height: 100%;
}

/* 梨子的光晕（如果有录音） */
.art-pear-group.has-recording .pear-img {
  filter: drop-shadow(0 0 8px rgba(255, 213, 79, 0.52)) brightness(1.04);
  animation: breatheGlow 2.5s ease-in-out infinite alternate;
}

@keyframes breatheGlow {
  0% { filter: drop-shadow(0 0 6px rgba(255, 213, 79, 0.42)) brightness(1); }
  100% { filter: drop-shadow(0 0 12px rgba(255, 213, 79, 0.78)) brightness(1.08); }
}

.art-pear-group:hover,
.art-pear-group.active { 
  opacity: 1;
  z-index: 30 !important;
  filter: none;
}

.art-pear-group.active .pear-img {
  filter: drop-shadow(0 0 8px rgba(255, 213, 79, 0.3));
}

/* --- 浮动声音气泡 UI --- */
.sound-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px 28px 28px 8px;
  padding: 28px 26px 24px;
  width: 388px;
  color: #333;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 20px rgba(255, 255, 255, 0.5);
  z-index: 100;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: auto;
}

.bubble-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #7b6556;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(127, 108, 91, 0.1);
}

.bubble-close-btn:hover {
  background: rgba(255, 255, 255, 0.92);
}

.bubble-subtitle {
  margin: 0 0 12px;
  color: #7f6859;
  font-size: 0.92rem;
  line-height: 1.7;
  text-align: center;
}

.bubble-flow-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.bubble-sequence-tag,
.bubble-recording-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 250, 235, 0.92);
  border: 1px solid rgba(195, 175, 129, 0.28);
  color: #6b5546;
  font-size: 0.84rem;
}

.sound-bubble.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(10px, -30px) scale(0.8);
}

.sound-bubble.show {
  opacity: 1;
}

.sound-bubble.is-review-mode {
  width: 340px;
  padding: 24px 22px 22px;
}

.sound-bubble.is-review-mode .bubble-subtitle,
.sound-bubble.is-review-mode .bubble-flow-meta,
.sound-bubble.is-review-mode .bubble-form,
.sound-bubble.is-review-mode .recording-meter,
.sound-bubble.is-review-mode .bubble-status,
.sound-bubble.is-review-mode .bubble-controls {
  display: none;
}

.sound-bubble.is-review-mode .bubble-title {
  margin-bottom: 12px;
}

.sound-bubble.is-review-mode .bubble-audio {
  margin-top: 0;
}

.sound-bubble.is-review-mode .bubble-existing-note {
  margin-top: 16px;
}

.bubble-title {
  margin: 0 0 18px 0;
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.4;
  color: #5c4033;
  text-align: center;
}

.bubble-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.bubble-label {
  font-size: 0.92rem;
  color: #7c6555;
  margin-top: 4px;
}

.bubble-input,
.bubble-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(150, 132, 114, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: #4f4035;
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bubble-input:focus,
.bubble-textarea:focus {
  border-color: rgba(161, 140, 104, 0.42);
  box-shadow: 0 0 0 4px rgba(226, 218, 182, 0.24);
  background: rgba(255, 255, 255, 0.9);
}

.bubble-textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.7;
}

.recording-meter {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(177, 168, 156, 0.18);
  margin-bottom: 10px;
}

.recording-meter-bar {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #f1d17d 0%, #a8cf6f 100%);
  transition: transform 0.08s linear;
}

.bubble-status {
  margin: 0 0 14px;
  min-height: 24px;
  color: #7f6859;
  font-size: 0.88rem;
  line-height: 1.6;
}

.bubble-status.is-error {
  color: #c35a40;
}

/* 控制按钮 */
.bubble-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 16px;
}

.bubble-btn {
  background: #fdfbfb; border: 1px solid #e0e0e0;
  min-width: 50px; height: 50px; border-radius: 999px;
  display: flex; justify-content: center; align-items: center;
  color: #5c4033; cursor: pointer; transition: all 0.3s;
  padding: 0 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 500;
}

.bubble-btn:hover:not(:disabled) {
  background: #fff9c4; border-color: #dce775; color: #8bc34a; transform: scale(1.1);
}

.bubble-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* 正在录音的脉冲动画 */
.bubble-btn.recording {
  background: #ffeb3b; border-color: #ff9800; color: #ff5722;
  animation: pulse-record 1.5s infinite;
}

.bubble-btn-wide {
  min-width: 122px;
}

.bubble-btn-confirm {
  min-width: 138px;
  background: linear-gradient(135deg, #8aa452 0%, #b4c96d 100%);
  border-color: rgba(134, 164, 82, 0.6);
  color: #fffef8;
}

.bubble-btn-confirm:hover:not(:disabled) {
  color: #fffef8;
}

@keyframes pulse-record {
  0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 152, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}

.bubble-audio { width: 100%; height: 32px; margin-top: 10px; border-radius: 16px;}
.bubble-audio::-webkit-media-controls-panel {
  background: #f0f0f0;
  color: #333;
}

.bubble-existing-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 251, 242, 0.74);
  border: 1px solid rgba(187, 169, 144, 0.18);
}

.bubble-existing-author {
  margin: 0 0 6px;
  color: #6b5546;
  font-size: 0.94rem;
  font-weight: 500;
}

.bubble-existing-message {
  margin: 0;
  color: #7c6a5f;
  font-size: 0.94rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.confirm-overlay,
.celebration-layer {
  position: absolute;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-overlay.hidden,
.celebration-layer.hidden {
  display: none;
}

.confirm-overlay {
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.confirm-card {
  width: min(420px, calc(100% - 28px));
  padding: 28px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 40px rgba(132, 118, 105, 0.16);
  text-align: center;
}

.confirm-sequence {
  margin: 0 0 12px;
  color: #654e3f;
  font-size: 1.28rem;
  line-height: 1.6;
  font-weight: 500;
}

.confirm-summary {
  margin: 0;
  color: #7d685a;
  font-size: 0.94rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.confirm-btn {
  border: none;
  border-radius: 999px;
  min-width: 126px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #8aa452 0%, #b4c96d 100%);
  color: #fffef8;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(123, 145, 70, 0.22);
}

.confirm-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.confirm-btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: #6b5546;
  border: 1px solid rgba(190, 174, 153, 0.48);
  box-shadow: none;
}

.celebration-layer {
  pointer-events: none;
}

.celebration-layer.show {
  animation: celebration-fade 1.4s ease forwards;
}

.celebration-copy {
  position: relative;
  z-index: 2;
  width: min(420px, calc(100% - 36px));
  padding: 24px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 34px rgba(129, 115, 96, 0.12);
  text-align: center;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.celebration-title {
  margin: 0 0 8px;
  color: #6b5546;
  font-size: 1.36rem;
}

.celebration-text {
  margin: 0;
  color: #7b6657;
  line-height: 1.8;
  font-size: 0.94rem;
}

.celebration-petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.celebration-petal {
  position: absolute;
  top: -10%;
  width: 14px;
  height: 20px;
  border-radius: 60% 40% 55% 45%;
  opacity: 0;
  transform: rotate(12deg);
  animation-name: petal-fall;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}

@keyframes celebration-fade {
  0% { opacity: 0; }
  12% { opacity: 1; }
  84% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes petal-fall {
  0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0deg) scale(0.7); }
  12% { opacity: 0.92; }
  100% { opacity: 0; transform: translate3d(24px, 120%, 0) rotate(280deg) scale(1); }
}

.drop-panel {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: -88px;
  position: relative;
  z-index: 8;
}

.drop-pear-btn {
  min-width: 280px;
  border: none;
  border-radius: 999px;
  min-height: 62px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #8aa452 0%, #b4c96d 100%);
  color: #fffef8;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(123, 145, 70, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  touch-action: manipulation;
}

.drop-pear-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(123, 145, 70, 0.32);
}

.drop-pear-btn:disabled,
.drop-pear-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.56;
  box-shadow: none;
}

.drop-counter {
  margin: 0;
  color: #6f5a49;
  font-size: 0.92rem;
  font-weight: 500;
}

.drop-hint {
  margin: 0;
  color: rgba(89, 73, 61, 0.72);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 1100px) {
  .illustration-container {
    height: auto;
    min-height: 100vh;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 168px;
  }

  .story-panel {
    margin-top: 6px;
    width: min(100%, 620px);
    min-height: auto;
    padding: 0 12px;
    justify-self: center;
    transform: none;
  }

  .story-panel::before {
    display: none;
  }

  .canvas-wrapper {
    width: min(620px, 100%);
    height: min(780px, 82vh);
  }

  .drop-panel {
    width: min(620px, 100%);
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #app-root {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
  }

  .illustration-container {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 14px 12px calc(132px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
  }

  .page-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 0;
  }

  .scene-panel {
    order: 1;
    width: 100%;
    gap: 12px;
  }

  .story-panel {
    order: 2;
    width: min(100%, 430px);
    padding: 0 10px calc(170px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
    transform: none;
  }

  .story-panel::before {
    display: none;
  }

  .story-panel p {
    font-size: 0.92rem;
    line-height: 1.72;
    padding-bottom: 8px;
  }

  .canvas-wrapper {
    width: min(100%, 430px);
    height: auto;
    min-height: 0;
  }

  .jar-container {
    width: min(100vw - 28px, 430px);
    height: calc((min(100vw - 28px, 430px)) * 1.29);
    margin-top: 0;
  }

  .jar-fill-zone {
    left: 24%;
    top: 20.8%;
    width: 49%;
    height: 55.4%;
    clip-path: polygon(14% 0%, 86% 0%, 91% 10%, 95% 24%, 95% 97%, 84% 100%, 16% 100%, 5% 97%, 5% 24%, 9% 10%);
  }

  .jar-fill-zone::after {
    left: 10px;
    right: 10px;
    bottom: 4px;
    height: 56px;
    opacity: 0.42;
  }

  .jar-shine {
    left: 25.5%;
    top: 20.4%;
    width: 46%;
    height: 56%;
  }

  .jar-front {
    opacity: 0.62;
  }

  .drop-panel {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: min(calc(100vw - 24px), 430px);
    margin: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px;
    background: rgba(255, 251, 245, 0.94);
    border: 1px solid rgba(205, 194, 177, 0.72);
    box-shadow: 0 16px 36px rgba(129, 116, 98, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateX(-50%);
    gap: 6px;
    z-index: 24;
  }

  .sound-bubble {
    width: min(94vw, 388px);
    padding: 20px 16px 18px;
  }

  .bubble-title {
    font-size: 1.28rem;
  }

  .bubble-subtitle {
    font-size: 0.86rem;
  }

  .bubble-flow-meta,
  .confirm-actions {
    flex-direction: column;
  }

  .bubble-btn,
  .confirm-btn {
    width: 100%;
  }

  .drop-pear-btn {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 14px 20px;
    font-size: 0.98rem;
    box-shadow: 0 10px 20px rgba(123, 145, 70, 0.2);
  }

  .drop-counter {
    font-size: 0.86rem;
  }

  .drop-hint {
    max-width: 24em;
    font-size: 0.76rem;
    line-height: 1.45;
  }
}

@media (max-width: 460px) {
  .illustration-container {
    padding: 12px 10px calc(126px + env(safe-area-inset-bottom, 0px));
  }

  .story-panel {
    width: 100%;
    padding: 0 4px calc(164px + env(safe-area-inset-bottom, 0px));
  }

  .story-panel p {
    font-size: 0.9rem;
    line-height: 1.74;
  }

  .canvas-wrapper {
    width: 100%;
  }

  .jar-container {
    width: min(100vw - 20px, 360px);
    height: calc((min(100vw - 20px, 360px)) * 1.29);
  }

  .jar-fill-zone {
    left: 23.6%;
    top: 20.2%;
    width: 49.6%;
    height: 56.2%;
  }

  .jar-fill-zone::after {
    left: 8px;
    right: 8px;
    bottom: 3px;
    height: 48px;
  }

  .sound-bubble {
    width: min(96vw, 360px);
    padding: 18px 14px 16px;
  }

  .bubble-input,
  .bubble-textarea {
    padding: 10px 12px;
  }

  .bubble-btn {
    min-width: 0;
    height: 46px;
    font-size: 0.9rem;
  }

  .drop-panel {
    left: 50%;
    right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: min(calc(100vw - 20px), 400px);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px;
  }

  .drop-pear-btn {
    min-height: 52px;
    font-size: 0.94rem;
  }

  .drop-counter {
    font-size: 0.82rem;
  }

  .drop-hint {
    font-size: 0.74rem;
  }
}
