:root {
    --primary: #ff6b6b;
    --secondary: #ffa502;
    --gradient: linear-gradient(135deg, #ff6b6b 0%, #ffa502 100%);
    --cookie-brown: #d4a574;
    --cookie-dark: #b8956a;
    --paper: #fff9e6;
    --text: #2c3e50;
    --light-text: #7f8c8d;
    --shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text);
}

.container {
    background: white;
    border-radius: 25px;
    padding: 30px 25px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow);
    text-align: center;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-logo { width: 60px; margin-bottom: 10px; }

h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.tagline {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: var(--light-text);
    margin-bottom: 25px;
}

/* Cookie Styles */
.cookie-container { margin: 25px 0; position: relative; }

.cookie {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.cookie-top, .cookie-bottom {
    position: absolute;
    width: 100%;
    height: 50%;
    background: var(--cookie-brown);
    border-radius: 50%;
    border: 3px solid var(--cookie-dark);
}

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

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

/* Fortune Paper (hidden initially) */
.fortune-paper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--paper);
    padding: 20px 15px;
    border-radius: 10px;
    width: 90%;
    max-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;
    z-index: 10;
}

.fortune-paper.open { transform: translate(-50%, -50%) scale(1); }

#fortune-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.5;
    min-height: 60px;
}

.lucky-numbers {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.crack-hint {
    font-size: 0.9rem;
    color: var(--light-text);
    animation: bounce 2s infinite;
}

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

/* Controls */
.controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 22px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6); }

.secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary:hover { background: var(--primary); color: white; }

/* Favorites Section */
.favorites {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
}

.favorites h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

#favorites-list {
    list-style: none;
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
}

#favorites-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

/* Footer */
footer {
    margin-top: 25px;
    font-size: 0.85rem;
    color: var(--light-text);
}

footer a { color: var(--primary); text-decoration: none; }

/* Mobile */
@media (max-width: 480px) {
    .container { padding: 25px 20px; }
    h1 { font-size: 1.8rem; }
    .cookie { width: 150px; height: 150px; }
}