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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 50%, #FFD700 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Header Styles */
header {
    text-align: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo .chinese {
    font-size: 4rem;
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    letter-spacing: 8px;
}

.logo .english {
    font-size: 2rem;
    color: #FFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    letter-spacing: 4px;
}

.tagline {
    color: #FFE5B4;
    font-size: 1.1rem;
    margin-top: 10px;
    font-style: italic;
}

/* Main Fortune Area */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fortune-area {
    text-align: center;
}

#cookie-container {
    position: relative;
}

.clickable {
    cursor: pointer;
}

.cookie {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.3s ease;
}

.cookie:hover {
    transform: scale(1.1);
}

.cookie-half {
    position: absolute;
    width: 100px;
    height: 200px;
    background: linear-gradient(135deg, #F4A460 0%, #D2691E 50%, #8B4513 100%);
    border-radius: 100px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.6s ease;
}

.cookie-half::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: rgba(139, 69, 19, 0.3);
    border-radius: 50%;
}

.cookie-half.left {
    left: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cookie-half.right {
    right: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Cookie cracking animation */
.cookie.cracking .cookie-half.left {
    transform: translateX(-80px) rotate(-15deg);
}

.cookie.cracking .cookie-half.right {
    transform: translateX(80px) rotate(15deg);
}

.instruction {
    color: #FFF;
    font-size: 1.2rem;
    margin-top: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

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

/* Fortune Message */
#fortune-message {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

#fortune-message.show {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none;
}

.fortune-paper {
    background: linear-gradient(to bottom, #FFF9E3 0%, #FFFACD 100%);
    border: 2px solid #8B4513;
    border-radius: 8px;
    padding: 30px 40px;
    margin: 0 auto 30px;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
}

.fortune-paper::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: #DC143C;
    opacity: 0.3;
}

.fortune-paper::after {
    content: '"';
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 3rem;
    color: #DC143C;
    opacity: 0.3;
}

#fortune-text {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
    font-style: italic;
}

.btn {
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: #FFD700;
    border: 2px solid #FFD700;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
}

/* Footer */
footer {
    text-align: center;
}

.crypto-info {
    margin-bottom: 20px;
}

.symbol {
    font-size: 2rem;
    color: #FFD700;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.description {
    color: #FFF;
    font-size: 1rem;
    font-style: italic;
    margin-top: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    position: relative;
}

.token-address-container {
    flex: 1;
    text-align: left;
}

.token-address {
    color: #FFD700;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.decorative-elements {
    display: flex;
    justify-content: center;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.chinese-char {
    font-size: 2.5rem;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .logo .chinese {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .logo .english {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .cookie {
        width: 150px;
        height: 150px;
    }

    .cookie-half {
        width: 75px;
        height: 150px;
    }

    .cookie.cracking .cookie-half.left {
        transform: translateX(-60px) rotate(-15deg);
    }

    .cookie.cracking .cookie-half.right {
        transform: translateX(60px) rotate(15deg);
    }

    .fortune-paper {
        padding: 20px 25px;
    }

    #fortune-text {
        font-size: 1.1rem;
    }
}
