:root {
    --primary: #FFB347; /* Pastel Orange */
    --primary-dark: #FF9E1B;
    --secondary: #FFD1DC; /* Pastel Pink */
    --accent: #B2FBA5; /* Pastel Green */
    --background: #FFFDD0; /* Cream */
    --text: #4A4A4A;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.easter-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.card {
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Typography */
h1 {
    font-weight: 800;
    font-size: 2.5rem;
    background: -webkit-linear-gradient(45deg, #FF6B6B, #FFB347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

h2 {
    font-weight: 500;
    color: #FF6B6B;
}

.gold-text {
    background: -webkit-linear-gradient(45deg, #FFDF00, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Stats */
.header-info {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px dashed rgba(0,0,0,0.1);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(255, 179, 71, 0.4);
}

.badge.gold {
    background: #FFD700;
    color: #333;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.deadline {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #B2FBA5, #50C878);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question Area */
.question-box h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 500;
    line-height: 1.4;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .question-box h3 {
        font-size: 1.2rem;
    }
    
    .result-overlay h1, 
    .result-overlay.wrong h1,
    .timeout-text {
        font-size: 3rem !important;
        -webkit-text-stroke: 2px #000000;
        text-align: center;
        padding: 0 10px;
        line-height: 1.2;
    }
    
    .prize-card::before {
        font-size: 5rem;
    }
    
    .prize-amount {
        font-size: 2rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-circle span {
        font-size: 2rem;
    }
    
    .option-btn {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .broken-egg svg {
        width: 100px;
        height: 100px;
    }
}

.option-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    padding: 15px 20px;
    border-radius: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.option-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary);
    background: white;
}

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

/* Result Overlay */
.result-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeInOut 1.5s forwards;
    backdrop-filter: blur(5px);
}

.result-overlay h1 {
    font-size: 5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin: 0;
}

.result-overlay.correct {
    background: rgba(80, 200, 120, 0.85); /* Green */
}

.result-overlay.wrong {
    background: rgba(230, 50, 50, 0.95); /* Rød bakgrunn */
}

.result-overlay.wrong h1 {
    color: #FFFFFF;
    /* Sterkt sort omriss rundt teksten for maksimal synlighet: */
    -webkit-text-stroke: 3px #000000;
    text-shadow: 4px 4px 0 #000000, 0px 0px 20px rgba(0,0,0,0.8);
    font-size: 5rem;
    margin: 0;
}

.broken-egg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.broken-egg svg {
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    animation: shakeEgg 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shakeEgg {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(4px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-8px, 0, 0); }
    40%, 60% { transform: translate3d(8px, 0, 0); }
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Finished Screen */
.score-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 179, 71, 0.5);
    border: 5px solid white;
}

.score-circle span {
    font-size: 2.5rem;
    margin-right: 5px;
}

.prize-card {
    margin-top: 30px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 30px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.prize-card::before {
    content: '💰';
    position: absolute;
    font-size: 8rem;
    opacity: 0.2;
    right: -20px;
    bottom: -30px;
    transform: rotate(-15deg);
}

.prize-amount {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    margin: 10px 0;
}

.jackpot {
    font-size: 1.2rem;
    font-weight: 800;
    background: white;
    color: #FF8C00;
    padding: 10px;
    border-radius: 10px;
    margin-top: 15px;
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Egg Tracker */
.eggs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.egg {
    width: 30px;
    height: 40px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    box-shadow: inset -5px -5px 10px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.1);
}

.egg-correct { background: #B2FBA5; }
.egg-wrong { background: #FFB347; }
.egg-unanswered { background: #eee; opacity: 0.5; }

/* Tooltip for eggs */
.tooltip {
    position: relative;
}
.tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}

/* Animations */
.fade-in { animation: fadeIn 0.8s ease forwards; }
.slide-up { animation: slideUp 0.8s ease forwards; }
.bounce-in { animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.26, 1.55) forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

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

/* Error / Empty state */
.error-box {
    text-align: center;
    padding: 30px;
}

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-top: 20px;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Background decorations */
.clouds {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><circle cx="10%" cy="20%" r="50" fill="white" opacity="0.4" filter="blur(20px)"/><circle cx="80%" cy="10%" r="70" fill="white" opacity="0.3" filter="blur(30px)"/><circle cx="90%" cy="80%" r="100" fill="white" opacity="0.4" filter="blur(40px)"/><circle cx="20%" cy="70%" r="80" fill="white" opacity="0.3" filter="blur(25px)"/></svg>') no-repeat center center;
    background-size: cover;
}
