@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'ZCOOL KuaiLe', cursive, sans-serif;
}

.app-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 414px;
    margin: 0 auto;
    overflow: hidden;
    background: #FFF8DC;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-out;
    z-index: 1;
    overflow: hidden;
}

.page.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}

.page.left-out {
    transform: translateX(-100%);
}

.bg-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
}

.bg-1 {
    background: linear-gradient(180deg, #FFE4E1 0%, #FFF0F5 50%, #FFFAF0 100%);
}

.bg-2 {
    background: linear-gradient(180deg, #E0FFE0 0%, #F0FFF0 100%);
}

.bg-3 {
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 50%, #FFF8E7 100%);
}

.bg-4 {
    background: linear-gradient(180deg, #FFFACD 0%, #FFFAF0 100%);
}

.bg-5 {
    background: linear-gradient(180deg, #FFE4E1 0%, #FFF5F5 100%);
}

.bg-6 {
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 50%, #98FB98 100%);
}

.bg-7 {
    background: linear-gradient(180deg, #FFEFD5 0%, #FFF8DC 100%);
}

.bg-8 {
    background: linear-gradient(180deg, #191970 0%, #483D8B 50%, #6B4423 100%);
}

.bg-9 {
    background: linear-gradient(180deg, #98FB98 0%, #E0FFE0 100%);
}

.bg-10 {
    background: linear-gradient(180deg, #FFB6C1 0%, #FFC0CB 50%, #FFF0F5 100%);
}

.bg-11 {
    background: linear-gradient(180deg, #FFE4E1 0%, #FFF0F5 50%, #FFFAF0 100%);
}

.bg-12 {
    background: linear-gradient(180deg, #FFB6C1 0%, #FFE4E1 50%, #FFF0F5 100%);
}

.music-control {
    position: fixed;
    top: 30px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.music-icon {
    width: 20px;
    height: 20px;
    background: #FFB6C1;
    border-radius: 50%;
    position: relative;
}

.music-icon::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #FFB6C1;
    transform: translateY(-50%);
}

.music-control.playing .music-icon {
    animation: musicSpin 2s linear infinite;
}

@keyframes musicSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pop-mart-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 30px;
    background: linear-gradient(90deg, #FF6B6B, #FFB6C1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.windmill {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 120px;
    height: 120px;
    animation: windmillSpin 4s linear infinite;
}

@keyframes windmillSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.windmill::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #FFD700, #FFA500, #FFD700, #FFA500);
    clip-path: polygon(50% 0%, 60% 20%, 100% 50%, 60% 80%, 50% 100%, 40% 80%, 0% 50%, 40% 20%);
}

.windmill::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #FFD700;
    border-radius: 50%;
}

.petals-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #FFB6C1;
    border-radius: 50% 0 50% 50%;
    animation: petalFall 8s linear infinite;
}

@keyframes petalFall {
    0% {
        transform: translateY(-10%) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(110%) rotate(360deg) translateX(30px);
        opacity: 0;
    }
}

.title-container {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.main-title {
    font-size: 48px;
    color: #FF6B6B;
    text-shadow: 2px 2px 0 #FFD700;
    margin-bottom: 10px;
    animation: titleBounce 2s ease-in-out infinite;
}

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

.sub-title {
    font-size: 32px;
    color: #FF8C94;
    margin-bottom: 20px;
}

.slogan {
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
}

.start-btn {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 40px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s;
    z-index: 2;
}

.start-btn:active {
    transform: translateX(-50%) scale(0.95);
}

.nyota-portrait {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.5);
}

.cat-egg {
    position: absolute;
    top: 35%;
    right: 20%;
    width: 60px;
    height: 50px;
    background: #FFF;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cat-egg:hover {
    transform: scale(1.1);
}

.cat-egg::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 15px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.cat-egg::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.dialogue-box {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nyota-tag {
    display: inline-block;
    background: #98FB98;
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    margin-bottom: 10px;
}

.monologue {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.scroll-hint {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: #999;
    font-size: 14px;
    animation: bounceUp 1.5s ease-in-out infinite;
}

@keyframes bounceUp {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.window-scene {
    position: relative;
    width: 100%;
    height: 60%;
}

.clouds-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50%;
    cursor: grab;
    transition: all 0.3s;
}

.cloud:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.cloud1 {
    width: 60px;
    height: 40px;
    top: 10%;
    left: 10%;
}

.cloud1::before {
    width: 30px;
    height: 30px;
    top: -15px;
    left: 10px;
}

.cloud1::after {
    width: 25px;
    height: 25px;
    top: -10px;
    left: 30px;
}

.cloud2 {
    width: 50px;
    height: 35px;
    top: 30%;
    left: 60%;
}

.cloud2::before {
    width: 25px;
    height: 25px;
    top: -12px;
    left: 8px;
}

.cloud2::after {
    width: 20px;
    height: 20px;
    top: -8px;
    left: 25px;
}

.cloud3 {
    width: 70px;
    height: 45px;
    top: 50%;
    left: 20%;
}

.cloud3::before {
    width: 35px;
    height: 35px;
    top: -18px;
    left: 12px;
}

.cloud3::after {
    width: 28px;
    height: 28px;
    top: -12px;
    left: 35px;
}

.target-zone {
    position: absolute;
    border: 2px dashed rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0.5;
}

#target1 {
    width: 80px;
    height: 60px;
    top: 15%;
    right: 15%;
}

#target2 {
    width: 70px;
    height: 50px;
    top: 40%;
    left: 5%;
}

#target3 {
    width: 90px;
    height: 65px;
    top: 60%;
    right: 20%;
}

.nyota-window {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 150px;
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    border-radius: 50% 50% 40% 40%;
}

.scene-text {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 80%;
}

.scene-title {
    font-size: 24px;
    color: #FF6B6B;
    margin-bottom: 10px;
}

.scene-desc {
    font-size: 16px;
    color: #666;
}

.complete-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    font-size: 24px;
    color: #FF6B6B;
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.5);
    opacity: 0;
    transition: all 0.3s;
    z-index: 100;
}

.complete-toast.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.canvas-area {
    position: relative;
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas {
    width: 200px;
    height: 150px;
    background: white;
    border: 3px solid #8B4513;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.drawing-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.drawing {
    position: absolute;
    border-radius: 50%;
    animation: drawAppear 0.5s ease-out;
}

@keyframes drawAppear {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.cat-canvas {
    position: absolute;
    right: 20%;
    bottom: 20%;
    width: 50px;
    height: 45px;
    background: #FFF;
    border-radius: 50%;
}

.palette {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.color-btn:active {
    transform: scale(0.9);
}

.cat-scene {
    position: relative;
    width: 100%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nyota-cat {
    width: 180px;
    height: 200px;
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    border-radius: 50% 50% 45% 45%;
    position: relative;
}

.cat-clickable {
    position: absolute;
    width: 70px;
    height: 60px;
    background: #FFF;
    border-radius: 50%;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s;
}

.cat-clickable:active {
    transform: translateX(-50%) scale(0.95);
}

.hearts-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.heart {
    position: absolute;
    color: #FF6B6B;
    font-size: 24px;
    animation: heartFloat 1s ease-out forwards;
}

@keyframes heartFloat {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-50px) scale(1.2);
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

.garden-scene {
    position: relative;
    width: 100%;
    height: 55%;
}

.nyota-windmill {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 180px;
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    border-radius: 50% 50% 40% 40%;
}

.windmill-wheel {
    position: absolute;
    top: 5%;
    right: 10%;
    width: 80px;
    height: 80px;
    animation: windmillSpin 3s linear infinite;
}

.wind-indicator {
    position: absolute;
    bottom: 35%;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 14px;
    opacity: 0.7;
}

.table-scene {
    position: relative;
    width: 100%;
    height: 55%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.table {
    width: 280px;
    height: 100px;
    background: linear-gradient(135deg, #D2691E, #8B4513);
    border-radius: 10px;
    position: relative;
    margin-bottom: 50px;
}

.food-item {
    position: absolute;
    width: 60px;
    height: 50px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s;
    cursor: pointer;
}

.food-item.appear {
    opacity: 1;
    transform: translateY(0);
}

#food1 {
    top: -40px;
    left: 20px;
    background: linear-gradient(135deg, #FF69B4, #FF1493);
}

#food2 {
    top: -40px;
    left: 110px;
    background: linear-gradient(135deg, #98FB98, #32CD32);
}

#food3 {
    top: -40px;
    right: 50px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

#food4 {
    top: -40px;
    right: -10px;
    background: linear-gradient(135deg, #FFB6C1, #FF6B6B);
}

.night-scene {
    position: relative;
    width: 100%;
    height: 60%;
}

.nyota-night {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 160px;
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    border-radius: 50% 50% 45% 45%;
}

.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.test-title {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #3CB371;
    text-align: center;
}

.test-grid {
    position: absolute;
    top: 20%;
    left: 5%;
    right: 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.test-option {
    background: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.test-option:active {
    transform: scale(0.95);
    background: #E0FFE0;
}

.opt-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.opt-icon-a {
    background: linear-gradient(135deg, #87CEEB, #B0E0E6);
}

.opt-icon-b {
    background: linear-gradient(135deg, #FFF, #F0F0F0);
}

.opt-icon-c {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.opt-icon-d {
    background: linear-gradient(135deg, #98FB98, #90EE90);
}

.opt-text {
    font-size: 16px;
    color: #555;
}

.result-content {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 80%;
}

.result-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.result-title {
    font-size: 28px;
    color: #FF6B6B;
    margin-bottom: 15px;
}

.result-desc {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.result-buttons {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.result-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.result-btn.primary {
    background: linear-gradient(135deg, #FF6B6B, #FF8C94);
    color: white;
}

.result-btn.secondary {
    background: white;
    color: #FF6B6B;
    border: 2px solid #FF6B6B;
}

.result-btn:active {
    transform: scale(0.95);
}

.petals-11 {
    z-index: 2;
}

.nyota-final {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 180px;
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    border-radius: 50% 50% 40% 40%;
    z-index: 3;
}

.final-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.element {
    position: absolute;
}

.windmill-sm {
    width: 50px;
    height: 50px;
    top: 20%;
    left: 10%;
    background: #FFD700;
    border-radius: 50%;
}

.cat-sm {
    width: 40px;
    height: 35px;
    top: 50%;
    right: 15%;
    background: #FFF;
    border-radius: 50%;
}

.cloud-sm {
    width: 60px;
    height: 30px;
    top: 15%;
    right: 10%;
    background: white;
    border-radius: 50%;
}

.paint-sm {
    width: 30px;
    height: 40px;
    bottom: 25%;
    left: 15%;
    background: #FF6B6B;
    border-radius: 5px;
}

.final-text {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 85%;
}

.final-main {
    font-size: 20px;
    color: #FF6B6B;
    margin-bottom: 8px;
}

.final-sign {
    font-size: 16px;
    color: #888;
    margin-top: 15px;
}

.final-sub {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
}

.final-btn {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 40px;
    background: linear-gradient(135deg, #FF6B6B, #FF8C94);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.final-btn:active {
    transform: translateX(-50%) scale(0.95);
}

.nyota-share {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 200px;
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    border-radius: 50% 50% 40% 40%;
}

.poster-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 180px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.poster-content {
    text-align: center;
}

.poster-title {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.poster-result {
    font-size: 24px;
    color: #FF6B6B;
    font-weight: bold;
    margin-bottom: 15px;
}

.poster-brand {
    font-size: 12px;
    color: #666;
}

.share-text {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.share-title {
    font-size: 22px;
    color: #FF6B6B;
    margin-bottom: 5px;
}

.share-desc {
    font-size: 14px;
    color: #888;
}

.share-buttons {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn:active {
    transform: scale(0.95);
}

.emoji-easter {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 50;
}

.emoji-easter.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.emoji-item {
    width: 50px;
    height: 50px;
    background: #FFF;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.transition-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.3s;
}

.transition-overlay.active {
    opacity: 1;
}

@media (max-width: 375px) {
    .main-title {
        font-size: 40px;
    }
    
    .sub-title {
        font-size: 26px;
    }
    
    .scene-title {
        font-size: 20px;
    }
    
    .scene-desc {
        font-size: 14px;
    }
}