* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #FFF3CC 0%, #FFFAE6 50%, #FFF3CC 100%);
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.loader-cat {
    width: 150px;
    height: auto;
    animation: loaderCatBounce 1.5s ease-in-out infinite, loaderCatWag 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(255, 183, 77, 0.3));
}

@keyframes loaderCatBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes loaderCatWag {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

.loader-paws {
    position: absolute;
    bottom: -30px;
    display: flex;
    gap: 10px;
}

.paw {
    width: 20px;
    height: 20px;
    background: #FFB74D;
    border-radius: 50%;
    animation: pawTap 0.6s ease-in-out infinite;
}

.paw-1 { animation-delay: 0s; }
.paw-2 { animation-delay: 0.15s; }
.paw-3 { animation-delay: 0.3s; }
.paw-4 { animation-delay: 0.45s; }

@keyframes pawTap {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) scale(1.2);
        opacity: 1;
    }
}

.loader-text {
    margin-top: 40px;
    font-size: 16px;
    color: #666666;
    font-weight: 500;
    animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.loader-progress {
    width: 150px;
    height: 6px;
    background: rgba(255, 183, 77, 0.3);
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFB74D 0%, #FFA726 100%);
    border-radius: 3px;
    animation: progressMove 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 183, 77, 0.5);
}

@keyframes progressMove {
    0% {
        width: 0%;
    }
    80% {
        width: 80%;
    }
    100% {
        width: 100%;
    }
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.page-container {
    width: 100%;
    height: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.page.inactive {
    transform: translateX(-30px);
    opacity: 0;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #FFF3CC 0%, #FFFAE6 50%, #FFF3CC 100%);
    z-index: -1;
}

.poster-bg {
    background: #FFF3CC;
}

.page1 {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5%;
    padding-bottom: 5%;
}

.header-content {
    width: 85%;
    max-width: 350px;
    margin-bottom: 20px;
    z-index: 10;
}

.title-img {
    width: 100%;
    height: auto;
    display: block;
    animation: page1TitleReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes page1TitleReveal {
    0% {
        opacity: 0;
        transform: translateY(-40px) scale(0.8);
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(5px) scale(1.02);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.subtitle {
    font-size: 13px;
    color: #666666;
    margin-top: 10px;
    animation: fadeIn 0.5s ease 1s forwards;
    opacity: 0;
}

.cat-container {
    width: 55%;
    max-width: 280px;
    margin-top: 15px;
    z-index: 5;
}

.cat-img {
    width: 100%;
    height: auto;
    animation: breathing 3s ease-in-out infinite;
}

.start-btn-img {
    width: 45%;
    max-width: 220px;
    height: auto;
    margin-top: 25px;
    cursor: pointer;
    animation: btnBreathe 2s ease-in-out infinite;
    touch-action: manipulation;
    z-index: 20;
    transition: transform 0.15s ease;
}

.start-btn-img:active {
    transform: scale(0.92);
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(255, 183, 77, 0.9);
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    touch-action: manipulation;
    transition: all 0.2s ease;
}

.back-btn:active {
    transform: scale(0.95);
    background: rgba(255, 183, 77, 0.7);
}

.page2-header-img {
    width: 85%;
    max-width: 350px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.title {
    font-size: 28px;
    font-weight: bold;
    color: #666666;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.title span {
    display: inline-block;
    opacity: 0;
    animation: fadeInChar 0.3s ease forwards;
}

.title span:nth-child(1) { animation-delay: 0.2s; }
.title span:nth-child(2) { animation-delay: 0.3s; }
.title span:nth-child(3) { animation-delay: 0.4s; }
.title span:nth-child(4) { animation-delay: 0.5s; }
.title span:nth-child(5) { animation-delay: 0.6s; }
.title span:nth-child(6) { animation-delay: 0.7s; }
.title span:nth-child(7) { animation-delay: 0.8s; }
.title span:nth-child(8) { animation-delay: 0.9s; }
.title span:nth-child(9) { animation-delay: 1.0s; }
.title span:nth-child(10) { animation-delay: 1.1s; }

@keyframes fadeInChar {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cat-outline {
    width: 180px;
    height: 180px;
    animation: breathing 3s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% { transform: scale(0.95); }
    50% { transform: scale(1.05); }
}

@keyframes btnBreathe {
    0%, 100% { opacity: 0.85; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.1); }
}

.page2 {
    position: relative;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

.page2-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page2-title {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-top: 2%;
    z-index: 10;
    animation: page2TitleSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes page2TitleSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%) rotate(-5deg);
        filter: hue-rotate(180deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0);
        filter: hue-rotate(0deg);
    }
}

.main-canvas-area {
    position: relative;
    width: 100%;
    max-width: 450px;
    z-index: 10;
    margin-top: 10px;
}

.cat-canvas-bg {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
}

.cat-layer {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: auto;
    z-index: 2;
    background: transparent;
}

.draw-layer {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: auto;
    z-index: 3;
    background: transparent;
}

.color-picker-row {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    z-index: 10;
    width: 100%;
    max-width: 450px;
}

.color-btn {
    width: 75px;
    height: 75px;
    object-fit: contain;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.color-btn:active {
    transform: scale(0.9);
}

.color-btn.selected {
    transform: scale(1.15);
    filter: brightness(1.2);
}

.frame-tool-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    z-index: 10;
}

.frame-bg {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
}

.tool-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 10;
    padding: 0 20px;
}

.tool-btn {
    width: 70px;
    height: 70px;
    object-fit: contain;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.tool-btn:active {
    transform: scale(0.9);
}

.tool-btn.selected {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.page2-next-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 18px;
    background: #FFB74D;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
}

.page3-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page3-title {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: auto;
    margin-bottom: 20px;
    z-index: 1;
    animation: page3TitlePop 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes page3TitlePop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.15);
    }
    70% {
        transform: scale(0.9);
    }
    85% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.page3-select-title {
    position: relative;
    width: 70%;
    max-width: 300px;
    height: auto;
    margin-bottom: 10px;
    z-index: 1;
}

.page3-cat-container {
    position: relative;
    width: 60%;
    max-width: 280px;
    height: auto;
    z-index: 2;
}

.page3-cat {
    width: 100%;
    height: auto;
}

.page3-cat-toy {
    position: absolute;
    bottom: 10%;
    right: -15%;
    width: 30%;
    height: auto;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.page3-selected-toy {
    position: relative;
    z-index: 3;
    margin-bottom: 15px;
}

.selected-toy-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.page3-toy-picker {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 2;
}

.page3-toy-picker .toy-btn {
    width: 100px;
    height: 100px;
    object-fit: contain;
    object-position: center;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
    background: none;
    border: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    padding: 0;
}

.toy-btn-1:active {
    animation: bounce-left 0.5s ease;
}

.toy-btn-2:active {
    animation: bounce-right 0.5s ease;
}

.toy-btn-3:active {
    animation: spin 0.4s ease;
}

.toy-btn-4:active {
    animation: shake 0.3s ease;
}

@keyframes bounce-left {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-15px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

@keyframes bounce-right {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(15px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    20% { transform: translateX(-8px) rotate(-5deg); }
    40% { transform: translateX(8px) rotate(5deg); }
    60% { transform: translateX(-6px) rotate(-3deg); }
    80% { transform: translateX(6px) rotate(3deg); }
}

.page3-toy-picker .toy-btn:active {
    transform: scale(0.9);
}

.page3-toy-picker .toy-btn.selected {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.page3-next-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 18px;
    background: #FFB74D;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
}

.page4-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page4-title {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: auto;
    margin-bottom: 15px;
    z-index: 1;
    animation: page4TitleWave 1s ease-out;
}

@keyframes page4TitleWave {
    0% {
        opacity: 0;
        transform: translateY(-50px) skewX(-10deg);
        filter: brightness(0.5);
    }
    30% {
        opacity: 0.7;
        transform: translateY(10px) skewX(5deg);
        filter: brightness(1.1);
    }
    60% {
        transform: translateY(-5px) skewX(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) skewX(0);
        filter: brightness(1);
    }
}

.page4-cat-container {
    position: relative;
    width: 55%;
    max-width: 260px;
    height: auto;
    z-index: 2;
    animation: catAppear 0.6s ease-out 0.3s both;
}

@keyframes catAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.page4-cat {
    width: 100%;
    height: auto;
    animation: page4CatBreathing 4s ease-in-out infinite;
}

@keyframes page4CatBreathing {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.02);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(0.98);
    }
}

.page4-bubble {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    border-radius: 20px;
    padding: 10px 15px;
    border: 2px solid #FFB74D;
    min-width: 120px;
    opacity: 0;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 183, 77, 0.3);
}

.page4-bubble.show {
    opacity: 1;
    animation: bubbleFloat 3s ease-in-out infinite, bubblePop 0.5s ease-out;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateX(-50%) translateY(-12px) rotate(2deg);
    }
}

@keyframes bubblePop {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    50% {
        transform: translateX(-50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.page4-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #FFFFFF transparent transparent;
}

.page4-bubble p {
    margin: 0;
    font-size: 14px;
    color: #666666;
    text-align: center;
    animation: textWave 2s ease-in-out infinite;
}

@keyframes textWave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.page4-call {
    position: relative;
    width: 85%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
    z-index: 1;
    animation: callFadeIn 0.8s ease-out 0.5s both;
}

@keyframes callFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.page4-quote-picker {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90%;
    max-width: 350px;
    z-index: 2;
}

.page4-quote-picker .quote-btn {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #FFB74D;
    border-radius: 35px;
    font-size: 14px;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: quoteBtnSlideIn 0.5s ease-out backwards;
}

.page4-quote-picker .quote-btn:nth-child(1) { animation-delay: 0.6s; }
.page4-quote-picker .quote-btn:nth-child(2) { animation-delay: 0.7s; }
.page4-quote-picker .quote-btn:nth-child(3) { animation-delay: 0.8s; }
.page4-quote-picker .quote-btn:nth-child(4) { animation-delay: 0.9s; }

@keyframes quoteBtnSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page4-quote-picker .quote-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 183, 77, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.page4-quote-picker .quote-btn:hover::before {
    width: 300px;
    height: 300px;
}

.page4-quote-picker .quote-btn:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 183, 77, 0.3);
    border-color: #FFA726;
}

.page4-quote-picker .quote-btn:active {
    transform: scale(0.95) translateX(4px);
}

.page4-quote-picker .quote-btn.selected {
    background: linear-gradient(135deg, #FFB74D 0%, #FFA726 100%);
    color: #FFFFFF;
    border-color: #FFA726;
    box-shadow: 0 8px 25px rgba(255, 183, 77, 0.4);
    animation: selectedPulse 2s ease-in-out infinite;
}

@keyframes selectedPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(255, 183, 77, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 35px rgba(255, 183, 77, 0.6);
        transform: scale(1.02);
    }
}

.page4-next-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 18px;
    background: #FFB74D;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
}

.page5-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: bgSlowPan 20s ease-in-out infinite;
}

@keyframes bgSlowPan {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.05) translateY(-5px);
    }
}

.page5-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.page5-particles::before,
.page5-particles::after,
.page5-particles .heart-1,
.page5-particles .heart-2,
.page5-particles .heart-3,
.page5-particles .heart-4 {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFB74D'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    animation: floatUp 4s ease-in-out infinite;
}

.page5-particles::before {
    left: 15%;
    animation-delay: 0s;
}

.page5-particles::after {
    left: 55%;
    animation-delay: 1.5s;
}

.page5-particles .heart-1 {
    left: 35%;
    animation-delay: 0.5s;
    width: 25px;
    height: 25px;
}

.page5-particles .heart-2 {
    left: 75%;
    animation-delay: 2s;
    width: 20px;
    height: 20px;
}

.page5-particles .heart-3 {
    left: 45%;
    animation-delay: 3s;
    width: 28px;
    height: 28px;
}

.page5-particles .heart-4 {
    left: 85%;
    animation-delay: 1s;
    width: 18px;
    height: 18px;
}

@keyframes floatUp {
    0% {
        bottom: -50px;
        opacity: 0;
        transform: scale(0.5) rotate(0deg) translateX(0);
    }
    25% {
        opacity: 0.8;
        transform: scale(0.8) rotate(90deg) translateX(10px);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg) translateX(-5px);
    }
    75% {
        opacity: 0.8;
        transform: scale(0.9) rotate(270deg) translateX(5px);
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: scale(0.5) rotate(360deg) translateX(-10px);
    }
}

.page5-title {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: auto;
    margin-bottom: 20px;
    z-index: 2;
    animation: page5TitleGlow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page5-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, rgba(255, 183, 77, 0.3) 0%, transparent 70%);
    border-radius: 20px;
    z-index: -1;
    animation: titleGlowPulse 2s ease-in-out infinite;
}

@keyframes page5TitleGlow {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.7);
        filter: blur(20px) brightness(2);
    }
    50% {
        opacity: 0.9;
        transform: translateY(-5px) scale(1.05);
        filter: blur(0) brightness(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0) brightness(1);
    }
}

@keyframes titleGlowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.page5-poster {
    position: relative;
    width: 90%;
    max-width: 400px;
    height: auto;
    margin-bottom: 25px;
    z-index: 2;
    animation: posterAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
}

.page5-poster::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, rgba(255, 183, 77, 0.2), rgba(255, 167, 38, 0.1), rgba(255, 183, 77, 0.2));
    border-radius: 20px;
    z-index: -1;
    animation: posterGlow 3s ease-in-out infinite;
}

@keyframes posterAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50px) rotate(-5deg);
        box-shadow: none;
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05) translateY(-5px) rotate(1deg);
        box-shadow: 0 20px 40px rgba(255, 183, 77, 0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

@keyframes posterGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

.page5-buttons {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    z-index: 2;
    flex-wrap: wrap;
}

.page5-buttons .action-btn {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 200px;
    min-width: 160px;
    min-height: 160px;
    object-fit: contain;
    object-position: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    touch-action: manipulation;
    background: none;
    border: none;
    padding: 10px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.page5-buttons .save-btn {
    animation: saveBtnBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

.page5-buttons .share-btn {
    animation: shareBtnBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

@keyframes saveBtnBounce {
    0% {
        opacity: 0;
        transform: scale(0) translateY(30px) rotate(-10deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) translateY(-5px) rotate(2deg);
    }
    80% {
        transform: scale(0.95) translateY(2px);
    }
    100% {
        transform: scale(1) translateY(0) rotate(0);
    }
}

@keyframes shareBtnBounce {
    0% {
        opacity: 0;
        transform: scale(0) translateY(30px) rotate(10deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) translateY(-5px) rotate(-2deg);
    }
    80% {
        transform: scale(0.95) translateY(2px);
    }
    100% {
        transform: scale(1) translateY(0) rotate(0);
    }
}

.page5-buttons .home-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #FFB74D 0%, #FFA726 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 35px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    touch-action: manipulation;
    animation: homeBtnSlideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
    box-shadow: 0 6px 25px rgba(255, 183, 77, 0.4), 0 0 0 0 rgba(255, 183, 77, 0.4);
    position: relative;
    overflow: hidden;
}

.page5-buttons .home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

@keyframes homeBtnSlideIn {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.page5-buttons .home-btn:active {
    transform: scale(0.92) translateY(2px);
    box-shadow: 0 3px 15px rgba(255, 183, 77, 0.3);
}

.page5-buttons .home-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 35px rgba(255, 183, 77, 0.5);
}

.page5-buttons .home-btn:hover::before {
    left: 100%;
}

.page5-buttons .action-btn:active {
    transform: scale(0.92);
}

.page5-buttons .action-btn:hover {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 8px 20px rgba(255, 183, 77, 0.4));
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

button:active {
    transform: scale(0.95);
    transition: transform 0.15s ease;
}

.page-header {
    text-align: center;
    padding: 30px 20px 20px;
}

.page-header p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

.page-header h1 {
    font-size: 22px;
    color: #666666;
    margin-bottom: 10px;
}

.cat-canvas-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
}

.color-canvas, .cat-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cat-canvas-container .cat-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.color-picker {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.color-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.color-btn.selected {
    border-color: #FFB74D;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 183, 77, 0.5);
}

.color-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #666666;
    white-space: nowrap;
}

.color-btn.calico {
    background: linear-gradient(135deg, #FFFFFF 50%, #FFB74D 50%);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.action-btn {
    padding: 10px 25px;
    background: rgba(255, 183, 77, 0.2);
    color: #666666;
    border: 2px solid #FFB74D;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    touch-action: manipulation;
}

.next-btn {
    position: absolute;
    bottom: 15%;
    right: 20px;
    padding: 15px 30px;
    background: #FFB74D;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    touch-action: manipulation;
}

.page3-next, .page4-next {
    bottom: 15%;
    right: auto;
}

.cat-with-toy, .cat-with-bubble, .final-cat {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
}

.cat-with-toy .cat-outline, .cat-with-bubble .cat-outline, .final-cat .cat-outline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.toy-container {
    position: absolute;
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    z-index: 3;
}

.toy-container .toy {
    width: 50px;
    height: 50px;
    animation: toyDrop 0.4s ease;
}

@keyframes toyDrop {
    0% { transform: translateY(-30px); opacity: 0; }
    60% { transform: translateY(5px); }
    80% { transform: translateY(-3px); }
    100% { transform: translateY(0); opacity: 1; }
}

.toy-picker {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.toy-btn {
    padding: 12px 20px;
    background: rgba(255, 183, 77, 0.1);
    color: #666666;
    border: 2px solid #FFB74D;
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.toy-btn.selected {
    background: #FFB74D;
    color: #FFFFFF;
}

.toy-btn:not(.selected) {
    opacity: 0.5;
}

.speech-bubble {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 4;
    animation: fadeIn 0.3s ease;
}

.float-up {
    animation: floatUp 2s ease-in-out infinite;
}

@keyframes floatUp {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

.bubble-text {
    font-size: 13px;
    color: #666666;
    white-space: nowrap;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #FFFFFF;
}

.quote-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 0 20px;
}

.quote-btn {
    width: 100%;
    max-width: 280px;
    padding: 15px 20px;
    background: rgba(255, 183, 77, 0.1);
    color: #666666;
    border: 2px solid #FFB74D;
    border-radius: 20px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.quote-btn.selected {
    background: #FFB74D;
    color: #FFFFFF;
}

.quote-btn:not(.selected) {
    opacity: 0.7;
}

.light-effect {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    animation: lightFall 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes lightFall {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.heart-particle {
    position: absolute;
    font-size: 20px;
    color: #FFB74D;
    animation: heartFloat 4s ease-in-out infinite;
}

@keyframes heartFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.tail-swing {
    animation: none;
}

.tail {
    transform-origin: left center;
    animation: tailSwing 2s ease-in-out infinite;
}

@keyframes tailSwing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.footer-text {
    position: absolute;
    bottom: 25%;
    text-align: center;
    padding: 0 20px;
}

.footer-text p {
    font-size: 12px;
    color: #666666;
    line-height: 1.5;
}

.generate-btn {
    position: absolute;
    bottom: 10%;
    padding: 15px 40px;
    background: #FFB74D;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    touch-action: manipulation;
}

.poster-container {
    position: relative;
    width: 90%;
    max-width: 320px;
    background: #FFF3CC;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.poster-title {
    font-size: 24px;
    color: #FFB74D;
    margin-bottom: 20px;
    font-weight: bold;
}

.poster-content {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
}

.poster-content .cat-preview {
    width: 100%;
    height: 100%;
}

.poster-content .cat-outline {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.poster-content .toy-container {
    right: -40px;
}

.poster-content .toy-container .toy {
    width: 40px;
    height: 40px;
}

.poster-content .speech-bubble {
    top: -50px;
}

.poster-content .bubble-text {
    font-size: 11px;
}

.poster-slogan {
    font-size: 18px;
    color: #666666;
    margin-bottom: 5px;
}

.poster-hash {
    font-size: 14px;
    color: #FFB74D;
    margin-bottom: 15px;
}

.poster-footer {
    font-size: 11px;
    color: #999999;
    line-height: 1.5;
}

.poster-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.poster-btn {
    width: 200px;
    padding: 15px 30px;
    background: #FFB74D;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    touch-action: manipulation;
}

.share-btn {
    background: rgba(255, 183, 77, 0.2);
    color: #FFB74D;
    border: 2px solid #FFB74D;
}

.restart-btn {
    padding: 10px 30px;
    background: transparent;
    color: #666666;
    border: 1px solid #666666;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    touch-action: manipulation;
}

.progress-indicator {
    position: fixed;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(102, 102, 102, 0.3);
    transition: all 0.3s ease;
}

.dot.active {
    background: #FFB74D;
    transform: scale(1.2);
}

@media (max-width: 480px) {
    .title {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 12px;
    }

    .cat-outline {
        width: 150px;
        height: 150px;
    }

    .color-picker {
        gap: 15px;
    }

    .color-btn {
        width: 60px;
        height: 60px;
    }

    .toy-picker {
        gap: 10px;
    }

    .toy-btn {
        padding: 10px 15px;
        font-size: 12px;
    }
}