:root {
    --primary: #6d28d9;
    --primary-hover: #5b21b6;
    --bg-gradient: linear-gradient(135deg, #f3e8ff 0%, #e0e7ff 100%);
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-main: #1e1b4b;
    --text-muted: #4338ca;
    --success: #10b981;
    --error: #ef4444;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-muted);
    font-weight: 500;
}

.quiz-container {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#animal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
}

#animal-img.blurred {
    filter: blur(25px) saturate(1.5);
    transform: scale(1.05);
}

.glass-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.option-btn {
    background: white;
    border: 2px solid transparent;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.option-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: #c7d2fe;
}

.option-btn:active {
    transform: translateY(0);
}

.option-btn.correct {
    background: var(--success);
    color: white;
    border-color: var(--success);
    animation: pulse 0.5s;
}

.option-btn.wrong {
    background: var(--error);
    color: white;
    border-color: var(--error);
    animation: shake 0.4s;
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

#result-message {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

#result-message.show {
    opacity: 1;
}

.success-text {
    color: var(--success);
}

.error-text {
    color: var(--error);
}

.hidden {
    display: none;
}

.yesterday-section {
    text-align: center;
}

.yesterday-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.yesterday-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.yesterday-card img {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
}

.yesterday-info p {
    font-size: 1.1rem;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}
