:root {
    --pink-primary: #ff4d6d;
    --pink-deep: #a4133c;
    --pink-soft: #ff8fab;
    --pink-pastel: #ffccd5;
    --pink-light: #fff0f3;
    --gold-accent: #ffd166;
    --gold-warm: #f4a261;
    --ink-color: #3d1626;
    --font-script: 'Dancing Script', cursive;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-sans);
    background: #1b0b24;
    color: #fff;
    touch-action: manipulation;
}

#orientation-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(circle at 50% 35%, #4f163f 0%, #240b24 62%, #110416 100%);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

@media screen and (max-width: 920px) and (orientation: portrait) {
    #orientation-overlay {
        display: flex !important;
    }
}

body.require-landscape #orientation-overlay {
    display: flex !important;
}

.orientation-card {
    max-width: 370px;
    width: 100%;
    padding: 30px 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 194, 209, 0.32);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.orientation-avatar-wrap {
    width: 82px;
    height: 82px;
    margin: 0 auto 12px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #fff3b0, #ffd166, #ff4d6d);
    box-shadow: 0 8px 24px rgba(255, 77, 109, 0.45);
}

.orientation-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.phone-rotate-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 14px;
    animation: rotatePhoneAnim 2.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.phone-rotate-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 6px 18px rgba(255, 77, 109, 0.5));
}

@keyframes rotatePhoneAnim {
    0%, 15% { transform: rotate(0deg) scale(1); }
    45%, 65% { transform: rotate(-90deg) scale(1.06); }
    90%, 100% { transform: rotate(0deg) scale(1); }
}

.orientation-title {
    font-family: var(--font-script);
    font-size: clamp(1.85rem, 6vw, 2.3rem);
    color: #ffccd5;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(255, 77, 109, 0.5);
}

.orientation-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 240, 243, 0.88);
    margin-bottom: 22px;
}

.orientation-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 77, 109, 0.25);
    border: 1px solid rgba(255, 143, 171, 0.45);
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffe5ec;
}

.sparkle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d6d;
    box-shadow: 0 0 10px #ff4d6d;
    animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.avatar-emblem-btn {
    position: fixed;
    top: clamp(10px, 2.2vh, 20px);
    left: clamp(12px, 2.2vw, 22px);
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 214, 130, 0.75);
    background: rgba(45, 10, 32, 0.52);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 143, 171, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.avatar-emblem-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(255, 77, 109, 0.55), 0 0 22px rgba(255, 209, 102, 0.6);
}

.avatar-ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #fff3b0, #ffd166, #ff4d6d);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-btn-label {
    font-family: var(--font-script);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff3b0;
    letter-spacing: 0.04em;
}

.audio-toggle {
    position: fixed;
    top: clamp(12px, 2.5vh, 22px);
    right: clamp(14px, 2.5vw, 24px);
    z-index: 500;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, background 0.25s ease;
}

.audio-toggle:hover {
    transform: scale(1.1);
    background: rgba(255, 77, 109, 0.45);
}

#app-viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 25;
    pointer-events: none;
}

.landscape-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: #1c0c2b;
    animation: sceneIntroZoom 3.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#scenery-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

@keyframes sceneIntroZoom {
    0% {
        transform: scale(1.12);
        filter: brightness(0.75) blur(3px);
    }
    100% {
        transform: scale(1);
        filter: brightness(1) blur(0px);
    }
}

.sky-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.god-rays {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    width: 130vw;
    height: 130vw;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255, 236, 209, 0.08) 0deg 7deg,
        transparent 7deg 20deg
    );
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.85) 0%, transparent 65%);
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.85) 0%, transparent 65%);
    animation: slowRotateRays 90s linear infinite;
}

@keyframes slowRotateRays {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.celestial-sun {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    width: clamp(180px, 25vw, 360px);
    height: clamp(180px, 25vw, 360px);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 253, 244, 0.92) 0%,
        rgba(255, 214, 180, 0.65) 32%,
        rgba(255, 143, 171, 0.28) 65%,
        rgba(255, 143, 171, 0) 100%
    );
    box-shadow: 0 0 120px rgba(255, 195, 170, 0.65);
    animation: sunPulse 5s ease-in-out infinite alternate;
}

@keyframes sunPulse {
    0% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.85; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

.aurora-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    opacity: 0.35;
}

.aurora-1 {
    top: -10%;
    left: 10%;
    width: 50vw;
    height: 35vh;
    background: radial-gradient(circle, #ff758f, transparent 70%);
    animation: auroraFloat 10s ease-in-out infinite alternate;
}

.aurora-2 {
    top: 5%;
    right: 8%;
    width: 45vw;
    height: 30vh;
    background: radial-gradient(circle, #ffd166, transparent 70%);
    animation: auroraFloat 12s ease-in-out infinite alternate-reverse;
}

@keyframes auroraFloat {
    0% { transform: translateY(0) translateX(0) scale(1); }
    100% { transform: translateY(20px) translateX(30px) scale(1.1); }
}

.scene-header {
    position: absolute;
    top: clamp(8px, 2.5vh, 24px);
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 860px;
    text-align: center;
    z-index: 15;
    pointer-events: none;
    animation: headerEntrance 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.scene-header.compact {
    transform: translateX(-50%) scale(0.82) translateY(-12px);
}

@keyframes headerEntrance {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-28px) scale(0.94);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.header-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 229, 236, 0.45);
    font-size: clamp(0.6rem, 1vw, 0.76rem);
    letter-spacing: 0.22em;
    font-weight: 700;
    color: #fff0f3;
    margin-bottom: 4px;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.25);
}

.main-title {
    font-family: var(--font-script);
    font-size: clamp(1.8rem, 4.2vw, 3.4rem);
    font-weight: 700;
    color: #fff;
    text-shadow:
        0 2px 10px rgba(255, 77, 109, 0.8),
        0 6px 28px rgba(164, 19, 60, 0.65),
        0 0 45px rgba(255, 204, 213, 0.55);
    line-height: 1.15;
    margin-bottom: 2px;
}

.main-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(0.88rem, 1.65vw, 1.24rem);
    color: #fff0f3;
    text-shadow: 0 2px 8px rgba(43, 19, 61, 0.8);
    opacity: 0.96;
}

.meadow-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32%;
    z-index: 8;
    pointer-events: none;
}

.butterfly-3d {
    position: absolute;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(255, 209, 102, 0.65));
}

.butterfly-3d .wing-left {
    transform-origin: 30px 32px;
    animation: flapLeft 0.32s ease-in-out infinite alternate;
}

.butterfly-3d .wing-right {
    transform-origin: 30px 32px;
    animation: flapRight 0.32s ease-in-out infinite alternate;
}

@keyframes flapLeft {
    0% { transform: scaleX(1) rotate(4deg); }
    100% { transform: scaleX(0.35) rotate(-8deg); }
}

@keyframes flapRight {
    0% { transform: scaleX(1) rotate(-4deg); }
    100% { transform: scaleX(0.35) rotate(8deg); }
}

.butterfly-3d.b1 {
    bottom: 58%;
    left: 16%;
    animation: butterflyFlight1 15s ease-in-out infinite alternate;
}

.butterfly-3d.b2 {
    bottom: 66%;
    right: 18%;
    animation: butterflyFlight2 17s ease-in-out infinite alternate;
}

@keyframes butterflyFlight1 {
    0% { transform: translate(0, 0) rotate(-12deg); }
    33% { transform: translate(75px, -42px) rotate(10deg); }
    66% { transform: translate(140px, 8px) rotate(-6deg); }
    100% { transform: translate(210px, -30px) rotate(14deg); }
}

@keyframes butterflyFlight2 {
    0% { transform: translate(0, 0) rotate(10deg); }
    50% { transform: translate(-95px, -45px) rotate(-14deg); }
    100% { transform: translate(-185px, -12px) rotate(8deg); }
}

.foreground-flowers {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 125px;
    overflow: visible;
    pointer-events: none;
}

.meadow-flower {
    position: absolute;
    bottom: -6px;
    transform-origin: bottom center;
    animation: flowerSway 3.6s ease-in-out infinite alternate;
}

@keyframes flowerSway {
    0% { transform: rotate(-5.5deg); }
    100% { transform: rotate(6.5deg); }
}

.stage-container {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: clamp(32px, 6vh, 65px);
    pointer-events: none;
}

.gift-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(70px) scale(0.5);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gift-wrapper.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.gift-wrapper.opening {
    pointer-events: none;
}

.gift-wrapper.hidden {
    opacity: 0 !important;
    transform: translateY(40px) scale(0.4) !important;
    pointer-events: none !important;
}

.magical-aura {
    position: absolute;
    width: clamp(230px, 34vw, 350px);
    height: clamp(230px, 34vw, 350px);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 215, 110, 0.65) 0%,
        rgba(255, 77, 109, 0.48) 45%,
        rgba(255, 77, 109, 0) 72%
    );
    filter: blur(16px);
    animation: auraSpin 6s linear infinite;
    z-index: -1;
}

.light-beam {
    position: absolute;
    width: clamp(260px, 38vw, 400px);
    height: clamp(260px, 38vw, 400px);
    background: repeating-conic-gradient(
        from 0deg,
        transparent 0deg 15deg,
        rgba(255, 243, 195, 0.3) 15deg 30deg
    );
    border-radius: 50%;
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 70%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 70%);
    animation: auraSpin 16s linear infinite;
    z-index: -2;
}

.gift-pedestal-glow {
    position: absolute;
    bottom: 24px;
    width: clamp(190px, 26vw, 270px);
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 209, 102, 0.7) 0%, rgba(255, 77, 109, 0.35) 55%, transparent 78%);
    filter: blur(6px);
    z-index: -1;
}

@keyframes auraSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.08); }
    100% { transform: rotate(360deg) scale(1); }
}

.gift-box {
    position: relative;
    width: clamp(175px, 23vw, 248px);
    height: clamp(175px, 23vw, 248px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    animation: giftWobble 2.8s ease-in-out infinite;
    transition: transform 0.3s ease;
    outline: none;
}

.gift-box:hover {
    transform: scale(1.06);
    filter: brightness(1.06);
}

@keyframes giftWobble {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    15% { transform: translateY(-9px) rotate(-3deg); }
    30% { transform: translateY(0) rotate(3deg); }
    45% { transform: translateY(-5px) rotate(-1.8deg); }
    60% { transform: translateY(0) rotate(0deg); }
}

.gift-inner-light {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.45);
    width: 75%;
    height: 75%;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #fff3b0 35%, #ff4d6d 70%, transparent 100%);
    filter: blur(10px);
    opacity: 0.45;
    z-index: 2;
    transition: transform 0.7s ease, opacity 0.6s ease;
}

.gift-lid-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 62%;
    z-index: 4;
    transform-origin: 75% 40%;
    transition: transform 0.78s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.65s ease;
    filter: drop-shadow(0 10px 18px rgba(45, 4, 18, 0.5));
}

.gift-body-wrap {
    position: absolute;
    bottom: 4%;
    left: 0;
    width: 100%;
    height: 74%;
    z-index: 3;
    transition: transform 0.72s ease, opacity 0.65s ease;
    filter: drop-shadow(0 20px 34px rgba(30, 3, 15, 0.65));
}

.gift-lid-wrap canvas,
.gift-body-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.gift-shadow {
    position: absolute;
    bottom: -6px;
    width: 88%;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(18, 3, 14, 0.78) 0%, rgba(18, 3, 14, 0) 75%);
    z-index: 1;
}

.gift-wrapper.opening .gift-box {
    animation: none;
}

.gift-wrapper.opening .gift-inner-light {
    transform: translate(-50%, -65%) scale(2.3);
    opacity: 1;
}

.gift-wrapper.opening .gift-lid-wrap {
    transform: translateY(-135px) translateX(55px) rotate(38deg) scale(1.1);
    opacity: 0;
}

.gift-wrapper.opening .gift-body-wrap {
    transform: scale(1.16) translateY(28px);
    opacity: 0;
}

.interactive-prompt {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #a4133c;
    font-weight: 700;
    font-size: clamp(0.84rem, 1.4vw, 0.98rem);
    box-shadow:
        0 10px 28px rgba(164, 19, 60, 0.45),
        0 0 0 4px rgba(255, 255, 255, 0.28);
    cursor: pointer;
    animation: promptPulse 2s ease-in-out infinite;
}

@keyframes promptPulse {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.04); }
}

.reveal-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5) translateY(60px);
    pointer-events: none;
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.34, 1.42, 0.64, 1),
        visibility 0.8s;
}

.reveal-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.reveal-wrapper.closing {
    opacity: 0;
    transform: scale(0.42) translateY(70px);
    pointer-events: none;
}

.bouquet-main-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.8vw, 36px);
}

.bouquet-scene {
    position: relative;
    width: clamp(320px, 42vw, 510px);
    height: clamp(330px, 65vh, 535px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatBouquetScene 4.5s ease-in-out infinite;
}

@keyframes floatBouquetScene {
    0%, 100% { transform: translateY(0) rotate(-0.5deg); }
    50% { transform: translateY(-8px) rotate(0.7deg); }
}

.bouquet-ambient-glow {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 220, 165, 0.58) 0%,
        rgba(255, 117, 143, 0.45) 45%,
        rgba(255, 77, 109, 0) 72%
    );
    filter: blur(24px);
    z-index: 1;
    pointer-events: none;
}

.bouquet-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bouquet-layer canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.bouquet-back-layer {
    z-index: 2;
    filter: drop-shadow(0 22px 38px rgba(24, 4, 16, 0.62));
}

.bouquet-front-layer {
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 12px 24px rgba(36, 5, 22, 0.42));
}

.bouquet-touch-zone {
    position: absolute;
    inset: 10% 8% 8% 8%;
    z-index: 4;
    cursor: pointer;
    border-radius: 50%;
}

.flower-meaning-panel {
    width: clamp(235px, 26vw, 310px);
    padding: clamp(14px, 2vh, 20px);
    border-radius: 22px;
    background: rgba(42, 12, 35, 0.58);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 214, 224, 0.35);
    box-shadow: 0 20px 45px rgba(15, 2, 14, 0.48), inset 0 1px 1px rgba(255, 255, 255, 0.22);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 15;
}

.meaning-panel-header {
    font-family: var(--font-script);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    color: #ffe5ec;
    text-align: left;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(255, 77, 109, 0.6);
}

.panel-top-emblem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 143, 171, 0.18) 100%);
    border: 1px solid rgba(255, 209, 102, 0.55);
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
}

.panel-top-emblem:hover {
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.35) 0%, rgba(201, 24, 74, 0.45) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 77, 109, 0.35);
}

#panel-avatar-img,
.panel-avatar-img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #ffd166;
    box-shadow: 0 0 10px rgba(255, 209, 102, 0.5);
    flex-shrink: 0;
    display: block;
}

.panel-top-text,
.panel-emblem-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.panel-badge-sub,
.panel-emblem-tag {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff3b0;
}

.panel-emblem-sub {
    font-size: 0.68rem;
    color: #ffd6e0;
}

.flower-meaning-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 250, 252, 0.95) 0%, rgba(255, 229, 236, 0.92) 100%);
    border: 1.5px solid #ffd166;
    color: #3d1626;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s ease;
}

.flower-meaning-card.pop {
    transform: scale(1.04);
}

.meaning-icon {
    font-size: 1.9rem;
    line-height: 1;
    filter: drop-shadow(0 3px 6px rgba(164, 19, 60, 0.25));
}

.meaning-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #a4133c;
    margin-bottom: 3px;
}

.meaning-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #4a1c30;
}

.flower-meaning-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.meaning-pill {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 204, 213, 0.45);
    background: rgba(255, 255, 255, 0.12);
    color: #fff0f3;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.meaning-pill:hover,
.meaning-pill.active {
    background: linear-gradient(135deg, #ff4d6d 0%, #c9184a 100%);
    border-color: #ffd166;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.45);
}

.tucked-envelope-wrapper {
    position: absolute;
    top: 23%;
    left: 50%;
    transform: translateX(-50%) rotate(-5.5deg);
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition:
        transform 0.55s cubic-bezier(0.34, 1.45, 0.64, 1),
        z-index 0s;
}

.tucked-envelope-wrapper:hover {
    transform: translateX(-50%) translateY(-12px) rotate(-1.5deg) scale(1.06);
    z-index: 14;
}

.tucked-envelope-wrapper.is-opening {
    transform: translateX(-50%) translateY(-40px) rotate(0deg) scale(1.14) !important;
    z-index: 18 !important;
}

.letter-callout {
    margin-bottom: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fffdf9 0%, #ffe5ec 100%);
    border: 1.5px solid #ffd166;
    color: #a4133c;
    font-size: clamp(0.72rem, 1.1vw, 0.84rem);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 22px rgba(128, 15, 47, 0.45), 0 0 15px rgba(255, 209, 102, 0.5);
    cursor: pointer;
    white-space: nowrap;
    animation: calloutBounce 2s ease-in-out infinite;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tucked-envelope-wrapper.is-opening .letter-callout {
    opacity: 0;
    transform: translateY(-10px) scale(0.8);
    pointer-events: none;
}

.callout-arrow {
    font-size: 0.7rem;
    color: #e01e5a;
}

@keyframes calloutBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.envelope-container {
    position: relative;
    width: clamp(144px, 16.5vw, 198px);
    height: clamp(98px, 11.2vw, 136px);
    cursor: pointer;
    perspective: 1000px;
    outline: none;
}

.envelope-magic-halo {
    position: absolute;
    inset: -14px;
    border-radius: 22px;
    background: radial-gradient(circle, rgba(255, 243, 176, 0.75) 0%, rgba(255, 77, 109, 0.4) 50%, transparent 72%);
    filter: blur(10px);
    z-index: -1;
    animation: haloPulse 2.4s ease-in-out infinite alternate;
}

@keyframes haloPulse {
    0% { opacity: 0.65; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1.08); }
}

.envelope {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow:
        0 14px 32px rgba(40, 5, 22, 0.55),
        0 0 0 1.5px rgba(255, 240, 210, 0.85);
    transform-style: preserve-3d;
}

.envelope-back {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #f9c5d1 0%, #f2849e 100%);
    border-radius: 10px;
}

.envelope-paper-preview {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 8%;
    height: 84%;
    background: linear-gradient(180deg, #fffdf9 0%, #fff0f3 100%);
    border-radius: 7px;
    border: 1px solid #e8b4bc;
    padding: 8px 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.65s cubic-bezier(0.34, 1.4, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.preview-crown {
    font-size: 0.65rem;
    color: #d4a373;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.preview-header {
    font-family: var(--font-script);
    color: #b51749;
    font-size: clamp(0.76rem, 1.05vw, 0.94rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.15;
}

.preview-lines {
    width: 82%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 2px;
}

.preview-lines span {
    display: block;
    height: 2.5px;
    border-radius: 99px;
    background: rgba(181, 23, 73, 0.22);
}

.preview-lines span:nth-child(2) { width: 88%; }
.preview-lines span:nth-child(3) { width: 62%; }

.envelope-pocket {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 10px;
    background:
        linear-gradient(33deg, #ffd6e0 0%, #ffb3c6 48.5%, transparent 49%) bottom left / 51% 100% no-repeat,
        linear-gradient(-33deg, #ffd6e0 0%, #ffb3c6 48.5%, transparent 49%) bottom right / 51% 100% no-repeat,
        linear-gradient(0deg, #fff0f3 0%, #ffc2d1 57%, transparent 57.5%) bottom center / 100% 100% no-repeat;
    filter: drop-shadow(0 -2px 6px rgba(140, 15, 50, 0.18));
    overflow: hidden;
}

.pocket-gold-line {
    position: absolute;
    bottom: 5px;
    left: 6%;
    right: 6%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #ffd166, #e6a15c, #ffd166, transparent);
    opacity: 0.85;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 58%;
    z-index: 4;
    background: linear-gradient(180deg, #ffccd5 0%, #ff8fab 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.15s 0.3s;
    filter: drop-shadow(0 4px 6px rgba(140, 15, 50, 0.28));
}

.wax-seal {
    position: absolute;
    top: 54%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(32px, 3.8vw, 42px);
    height: clamp(32px, 3.8vw, 42px);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff4d6d 0%, #b51749 62%, #690b22 100%);
    box-shadow:
        0 4px 12px rgba(90, 5, 30, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.seal-inner-ring {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 209, 102, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-heart {
    color: #ffd166;
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.envelope-container.is-open .wax-seal {
    transform: translate(-50%, -50%) scale(1.45);
    opacity: 0;
}

.envelope-container.is-open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
    transition: transform 0.58s cubic-bezier(0.4, 0, 0.2, 1), z-index 0.1s 0.15s;
}

.envelope-container.is-open .envelope-paper-preview {
    transform: translateY(-64%);
    transition-delay: 0.22s;
}

.bouquet-footer-bar {
    margin-top: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 25;
}

.btn-primary-action {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1.5px solid #ffd166;
    background: linear-gradient(135deg, #ff4d6d 0%, #c9184a 100%);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(164, 19, 60, 0.5);
    transition: all 0.25s ease;
}

.btn-primary-action:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 26px rgba(255, 77, 109, 0.65);
}

.btn-secondary-action {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(45, 12, 36, 0.55);
    backdrop-filter: blur(10px);
    color: #ffe5ec;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-secondary-action:hover {
    background: rgba(255, 77, 109, 0.6);
    transform: translateY(-2px);
}

.letter-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vh, 28px);
    pointer-events: none;
    visibility: hidden;
}

.letter-modal.open {
    pointer-events: auto;
    visibility: visible;
}

.letter-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 5, 24, 0.68);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    opacity: 0;
    transition: opacity 0.55s ease;
}

.letter-modal.open .letter-backdrop {
    opacity: 1;
}

.letter-paper {
    position: relative;
    width: min(660px, 90vw);
    max-height: min(570px, 86vh);
    max-height: min(570px, 86dvh);
    background:
        radial-gradient(circle at 50% 25%, #ffffff 0%, #fff9fb 60%, #ffe8ef 100%);
    border-radius: 24px;
    border: 2px solid #f2bac9;
    box-shadow:
        0 32px 85px rgba(12, 2, 15, 0.72),
        0 0 0 8px rgba(255, 255, 255, 0.16),
        inset 0 0 55px rgba(255, 182, 193, 0.35);
    color: var(--ink-color);
    padding: clamp(20px, 3.8vh, 36px) clamp(22px, 4.5vw, 46px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(85px) scale(0.32) rotateX(32deg);
    transform-origin: center center;
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.34, 1.38, 0.64, 1);
}

.letter-modal.open .letter-paper {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
}

.letter-modal.closing .letter-paper {
    opacity: 0;
    transform: translateY(95px) scale(0.25) rotateX(-28deg);
    transition:
        opacity 0.48s ease,
        transform 0.52s cubic-bezier(0.55, 0.05, 0.67, 0.19);
}

.letter-modal.closing .letter-backdrop {
    opacity: 0;
    transition: opacity 0.48s ease;
}

.paper-floral-watermark {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 220px;
    height: 220px;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
}

.paper-corner {
    position: absolute;
    width: 42px;
    height: 42px;
    border-color: #d98a9c;
    border-style: solid;
    opacity: 0.75;
    pointer-events: none;
}

.corner-tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; border-top-left-radius: 12px; }
.corner-tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; border-top-right-radius: 12px; }
.corner-bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; border-bottom-left-radius: 12px; }
.corner-br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; border-bottom-right-radius: 12px; }

.paper-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 4px;
    z-index: 5;
}

.paper-btn {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #f4acb7;
    background: rgba(255, 240, 243, 0.9);
    color: #a4133c;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.paper-btn:hover {
    background: #ff4d6d;
    color: #fff;
    border-color: #ff4d6d;
}

.paper-btn.btn-close {
    background: #ffe5ec;
}

.letter-content-scroll {
    position: relative;
    z-index: 2;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #ffb3c6 transparent;
}

.letter-content-scroll::-webkit-scrollbar {
    width: 5px;
}

.letter-content-scroll::-webkit-scrollbar-thumb {
    background: #ffb3c6;
    border-radius: 99px;
}

.letter-wax-header {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}

.letter-avatar-crest {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #fff3b0 0%, #ffd166 50%, #c9184a 100%);
    box-shadow: 0 6px 18px rgba(164, 19, 60, 0.35), 0 0 14px rgba(255, 209, 102, 0.65);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.letter-avatar-crest img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.mini-seal {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff4d6d, #a4133c);
    border: 1.5px solid #fffdf9;
    color: #ffd166;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    box-shadow: 0 3px 8px rgba(164, 19, 60, 0.45);
}

.letter-ornament-top,
.letter-ornament-bottom {
    text-align: center;
    color: #d6456b;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    margin: 2px 0 8px;
}

.letter-title {
    font-family: var(--font-script);
    font-size: clamp(1.65rem, 3.4vw, 2.35rem);
    color: #b51749;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.25;
    min-height: 1.3em;
}

.letter-body {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 1.9vw, 1.28rem);
    line-height: 1.75;
    color: #3d1626;
    text-align: justify;
}

.letter-body p {
    margin-bottom: 12px;
    text-indent: 1.4em;
}

.letter-signature {
    margin-top: 14px;
    text-align: right;
    font-family: var(--font-script);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    color: #a4133c;
    font-weight: 700;
    min-height: 1.5em;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: #ff4d6d;
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.floating-compliment {
    position: fixed;
    z-index: 300;
    pointer-events: none;
    font-family: var(--font-script);
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 700;
    color: #fff0f3;
    text-shadow: 0 2px 10px rgba(181, 23, 73, 0.9);
    animation: floatUpCompliment 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes floatUpCompliment {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.7);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -18px) scale(1.05);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -85px) scale(0.95);
    }
}

.avatar-modal {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    visibility: hidden;
}

.avatar-modal.open {
    pointer-events: auto;
    visibility: visible;
}

.avatar-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 4, 20, 0.76);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.avatar-modal.open .avatar-backdrop {
    opacity: 1;
}

.avatar-showcase-card {
    position: relative;
    z-index: 2;
    width: min(420px, 88vw);
    max-height: 90dvh;
    overflow-y: auto;
    padding: clamp(18px, 3vh, 26px) clamp(20px, 3.5vw, 28px);
    border-radius: 26px;
    background: linear-gradient(155deg, rgba(62, 16, 46, 0.94) 0%, rgba(28, 7, 24, 0.96) 100%);
    border: 1.5px solid rgba(255, 209, 102, 0.78);
    box-shadow:
        0 30px 75px rgba(0, 0, 0, 0.72),
        0 0 38px rgba(255, 77, 109, 0.45),
        inset 0 1px 2px rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff0f3;
    opacity: 0;
    transform: translateY(35px) scale(0.82);
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.48s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.avatar-modal.open .avatar-showcase-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.avatar-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 209, 102, 0.6);
    background: rgba(255, 255, 255, 0.12);
    color: #ffe5ec;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease;
}

.avatar-close-btn:hover {
    background: #ff4d6d;
    color: #ffffff;
    transform: rotate(90deg) scale(1.08);
}

.avatar-showcase-badge {
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 209, 102, 0.16);
    border: 1px solid rgba(255, 209, 102, 0.65);
    color: #fff3b0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.avatar-showcase-frame {
    position: relative;
    width: clamp(150px, 34vh, 215px);
    height: clamp(150px, 34vh, 215px);
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, #fff3b0 0%, #ffd166 40%, #ff4d6d 75%, #c9184a 100%);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 209, 102, 0.55);
    margin-bottom: 14px;
}

.avatar-showcase-halo {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 209, 102, 0.75);
    animation: avatarRingSpin 18s linear infinite;
    pointer-events: none;
}

@keyframes avatarRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.avatar-showcase-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #fffdf9;
}

.avatar-showcase-title {
    font-family: var(--font-script);
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    color: #ffe5ec;
    text-shadow: 0 2px 10px rgba(255, 77, 109, 0.75);
    margin-bottom: 8px;
}

.avatar-showcase-desc {
    font-size: clamp(0.84rem, 1.4vw, 0.95rem);
    line-height: 1.6;
    color: #ffd6e0;
    margin-bottom: 14px;
}

.avatar-showcase-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.avatar-showcase-tags span {
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 194, 209, 0.45);
    font-size: 0.74rem;
    font-weight: 600;
    color: #fff0f3;
}

@media screen and (max-height: 540px) and (orientation: landscape) {
    .avatar-emblem-btn {
        top: 8px;
        left: 10px;
        padding: 3px 10px 3px 4px;
    }
    .avatar-ring-wrap {
        width: 30px;
        height: 30px;
    }
    .avatar-badge-title {
        font-size: 0.68rem;
    }
    .avatar-badge-sub {
        font-size: 0.56rem;
    }
    .panel-top-emblem {
        padding: 4px 8px;
        gap: 7px;
    }
    #panel-avatar-img,
    .panel-avatar-img {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }
    .panel-emblem-tag {
        font-size: 0.68rem;
    }
    .panel-emblem-sub {
        font-size: 0.58rem;
    }
    .letter-avatar-crest {
        width: 42px;
        height: 42px;
    }
    .avatar-showcase-card {
        width: min(460px, 88vw);
        padding: 12px 18px;
    }
    .avatar-showcase-frame {
        width: 110px;
        height: 110px;
        margin-bottom: 8px;
    }
    .avatar-showcase-title {
        font-size: 1.35rem;
        margin-bottom: 4px;
    }
    .avatar-showcase-desc {
        font-size: 0.78rem;
        margin-bottom: 8px;
    }
    .scene-header {
        top: 4px;
    }
    .header-badge {
        padding: 2px 10px;
        font-size: 0.55rem;
        margin-bottom: 1px;
    }
    .main-title {
        font-size: clamp(1.35rem, 3.5vw, 1.95rem);
        margin-bottom: 0;
    }
    .main-subtitle {
        font-size: 0.78rem;
    }
    .stage-container {
        padding-top: 36px;
    }
    .gift-box {
        width: 132px;
        height: 132px;
    }
    .interactive-prompt {
        margin-top: 8px;
        padding: 6px 14px;
        font-size: 0.76rem;
    }
    .bouquet-main-stage {
        gap: 12px;
    }
    .bouquet-scene {
        width: clamp(230px, 36vw, 295px);
        height: clamp(220px, 68vh, 285px);
    }
    .flower-meaning-panel {
        width: clamp(200px, 30vw, 245px);
        padding: 10px 12px;
        gap: 7px;
    }
    .meaning-panel-header {
        font-size: 1.1rem;
    }
    .flower-meaning-card {
        padding: 8px 10px;
        gap: 8px;
    }
    .meaning-icon {
        font-size: 1.45rem;
    }
    .meaning-title {
        font-size: 0.82rem;
    }
    .meaning-desc {
        font-size: 0.7rem;
    }
    .meaning-pill {
        padding: 3px 8px;
        font-size: 0.66rem;
    }
    .tucked-envelope-wrapper {
        top: 21%;
    }
    .envelope-container {
        width: clamp(110px, 16.5vw, 138px);
        height: clamp(74px, 11vw, 94px);
    }
    .letter-callout {
        padding: 3px 10px;
        font-size: 0.65rem;
        margin-bottom: 4px;
    }
    .bouquet-footer-bar {
        margin-top: -6px;
        gap: 8px;
    }
    .btn-primary-action,
    .btn-secondary-action {
        padding: 5px 12px;
        font-size: 0.72rem;
    }
    .letter-paper {
        max-height: 92dvh;
        padding: 12px 20px;
    }
    .letter-title {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }
    .letter-body {
        font-size: 0.95rem;
        line-height: 1.52;
    }
    .letter-body p {
        margin-bottom: 6px;
    }
    .letter-signature {
        margin-top: 6px;
        font-size: 1.18rem;
    }
    .foreground-flowers {
        height: 70px;
    }
}
