body {
    margin: 0;
    min-height: 100vh;
    background: #1a1033;
    overflow: hidden;
    position: relative;
  }

  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 70vmax;
    height: 70vmax;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.75;
    pointer-events: none;
    z-index: 0;
  }

  body::before {
    background: radial-gradient(circle, #ff5ea8 0%, rgba(255, 94, 168, 0) 70%);
    animation: drift1 22s ease-in-out infinite alternate;
  }

  body::after {
    background: radial-gradient(circle, #3ad6ff 0%, rgba(58, 214, 255, 0) 70%);
    animation: drift2 28s ease-in-out infinite alternate;
  }

  @keyframes drift1 {
    0%   { transform: translate(-20vw, -20vh) scale(1);   }
    50%  { transform: translate(40vw,  20vh) scale(1.2); }
    100% { transform: translate(60vw,  50vh) scale(0.9); }
  }

  @keyframes drift2 {
    0%   { transform: translate(60vw,  50vh) scale(1);   }
    50%  { transform: translate(20vw,  10vh) scale(1.15); }
    100% { transform: translate(-10vw, 40vh) scale(0.95); }
  }
  
  .container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
  }
  
  .ghost-wrapper {
    position: relative;
    animation: float 3s ease-out infinite;
  }

  .ghost {
    transform-origin: center bottom;
    animation: ghostGreet 1.6s cubic-bezier(0.34, 1.45, 0.64, 1) 0.35s forwards;
  }

  .ghost-eye {
    transform-box: fill-box;
    transform-origin: center;
    animation:
      eyeBlinkGreet 2.8s linear 0.35s forwards,
      eyeBlinkIdle 8s linear 3.2s infinite;
  }

  .ghost-mouth {
    transform-box: fill-box;
    transform-origin: center 80%;
    animation: mouthTalk 2.8s ease-in-out 0.35s forwards;
    transition: transform 0.8s ease;
  }

  .ghost-mouth--sad {
    animation: none;
    transform: scaleY(-1) translateY(20%);
  }

  @keyframes ghostGreet {
    0%, 100% {
      transform: scale(1) rotate(0deg);
    }
    10% {
      transform: scale(1.07, 0.93) rotate(-5deg);
    }
    22% {
      transform: scale(0.94, 1.06) rotate(5deg) translateY(-12px);
    }
    35% {
      transform: scale(1.05, 0.95) rotate(-4deg) translateY(-6px);
    }
    48% {
      transform: scale(0.97, 1.03) rotate(4deg) translateY(-10px);
    }
    62% {
      transform: scale(1.04, 0.96) rotate(-2deg) translateY(-4px);
    }
    78% {
      transform: scale(1.02, 0.98) rotate(2deg);
    }
  }

  @keyframes eyeBlinkGreet {
    0%, 50%, 52%, 70%, 72%, 100% {
      transform: scaleY(1);
    }
    51% {
      transform: scaleY(0.05);
    }
    71% {
      transform: scaleY(0.05);
    }
  }

  @keyframes eyeBlinkIdle {
    0%, 94%, 100% {
      transform: scaleY(1);
    }
    95% {
      transform: scaleY(0.05);
    }
    96% {
      transform: scaleY(1);
    }
  }

  @keyframes mouthTalk {
    0%, 20%, 96%, 100% {
      transform: scale(1, 1);
    }
    38% {
      transform: scale(1.12, 1.45);
    }
    46% {
      transform: scale(1.05, 0.75);
    }
    54% {
      transform: scale(1.15, 1.5);
    }
    62% {
      transform: scale(1.08, 0.7);
    }
    70% {
      transform: scale(1.12, 1.4);
    }
    78% {
      transform: scale(1.06, 0.8);
    }
    86% {
      transform: scale(1.1, 1.25);
    }
    94% {
      transform: scale(1.04, 0.9);
    }
  }

  .speech-bubble {
    --bubble-max-width: min(260px, calc(100vw - 2.5rem));
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    transform-origin: center bottom;
    display: inline-block;
    width: max-content;
    max-width: var(--bubble-max-width);
    box-sizing: border-box;
    background: #FFF6F4;
    color: #013E51;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    padding: 12px 16px;
    border-radius: 22px;
    border: 2px solid #FEEBE6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    overflow: visible;
    text-align: center;
  }

  .speech-bubble__stack {
    position: relative;
    display: block;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    min-height: 1.35em;
    white-space: pre-line;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  .speech-bubble__layer {
    display: block;
    max-width: 100%;
    transition:
      opacity 0.5s ease,
      transform 0.5s ease,
      filter 0.5s ease;
  }

  .speech-bubble__layer--current {
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: translateY(0);
  }

  .speech-bubble__layer--prev {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    opacity: 0.32;
    pointer-events: none;
    transform: translateY(-3px) scale(0.99);
    filter: blur(0.2px);
  }

  .speech-bubble__layer--prev.speech-bubble__layer--fadeout {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }

  .speech-bubble--show {
    opacity: 1;
    pointer-events: auto;
  }

  .speech-bubble--pop {
    animation: bubblePop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  }

  .speech-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    border: 12px solid transparent;
    border-top-color: #FFF6F4;
    border-bottom: 0;
  }

  .speech-bubble::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translateX(-50%);
    border: 13px solid transparent;
    border-top-color: #FEEBE6;
    border-bottom: 0;
    z-index: -1;
  }

  @keyframes bubblePop {
    0% {
      opacity: 0;
      transform: translateX(-50%) scale(0.15) translateY(12px);
    }
    65% {
      opacity: 1;
      transform: translateX(-50%) scale(1.06) translateY(-3px);
    }
    100% {
      opacity: 1;
      transform: translateX(-50%) scale(1) translateY(0);
    }
  }

  @keyframes float {
    50% {
       transform: translate(0, 20px);
    }
  }
  .shadowFrame {
    width: 130px;
    margin-top: 15px;
  }
  .shadow {
    animation: shrink 3s ease-out infinite;
    transform-origin: center center;
    ellipse {
      fill: rgba(0, 0, 0, 0.35);
      transform-origin: center center;
    }
  }
  
  @keyframes shrink {
    0% {
      width: 90%;
      margin: 0 5%;
    }
    50% {
      width: 60%;
      margin: 0 18%;
    }
    100% {
      width: 90%;
      margin: 0 5%;
    }
  }

  .dialog-ui {
    position: relative;
    margin-top: 20px;
    min-height: 56px;
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .dialog-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0.35s;
  }

  .dialog-actions.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .dialog-actions .Button {
    flex: 1 1 120px;
    max-width: 100%;
    min-width: 120px;
    font-size: 13px;
    line-height: 44px;
    letter-spacing: 1px;
    padding: 0 12px;
    text-transform: none;
  }

  .dialog-input-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  }

  .dialog-input-wrap.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dialog-input-row {
    display: flex;
    width: 100%;
    gap: 8px;
  }

  .dialog-cta {
    display: none;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 2px 0 0;
  }

  .dialog-cta.is-visible {
    display: flex;
  }

  .dialog-cta__link {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 12px;
    color: rgba(1, 62, 81, 0.55);
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    letter-spacing: 0.02em;
  }

  .dialog-cta__link:hover,
  .dialog-cta__link:focus {
    color: #013E51;
  }

  .dialog-cta__link:disabled {
    opacity: 0.35;
    cursor: default;
    text-decoration: none;
  }

  .dialog-input {
    flex: 1;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 15px;
    padding: 12px 14px;
    border: 2px solid #FEEBE6;
    border-radius: 10px;
    background: #FFF6F4;
    color: #013E51;
    outline: none;
  }

  .dialog-input:focus {
    border-color: #F4157E;
  }

  .dialog-submit {
    min-width: 64px !important;
    flex: 0 0 auto !important;
  }

  .Button {
    font-family: "Gilroy ExtraBold", system-ui, sans-serif;
    font-style: normal;
    font-weight: normal;
    letter-spacing: 1.5px;
    font-size: 16px;
    line-height: 48px;
    text-transform: uppercase;
    background: #F4157E;
    color: #F8FAFF;
    appearance: none;
    border: none;
    border-radius: 8px;
    min-width: 140px;
    padding: 0 18px;
    box-shadow: 0 10px 60px -10px #CD106E;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    user-select: none;
    transform-style: preserve-3d;
    transform: perspective(250px) scale3d(1, 1, 1);
    transition: all 1s cubic-bezier(0.03, 0.98, 0.52, 0.99);
    will-change: transform, box-shadow, background;
    outline: none;
    position: relative;
    z-index: 2;
  }

  .Button:hover {
    background: #f62a8c;
    box-shadow: 0 8px 65px -5px #CD106E;
  }

  .Button:active {
    background: #CD106E;
    box-shadow: 0 10px 60px -10px #CD106E;
    transform: perspective(250px) scale3d(1, 1, 1) translateY(5%) !important;
  }

  .Symbol {
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: -1;
    animation: explode 0.8s reverse forwards ease-in;
  }

  @keyframes explode {
    from {
      opacity: 0;
    }
    to {
      top: 50%;
      left: 50%;
      opacity: 1;
    }
  }