/* Liquid glass surfaces: egg popups, egg counter, reset button.
   Chromium adds edge refraction via js/liquid-glass.js; everything else
   gets the frosted backdrop below. */

.liquid-glass {
    --glass-tint: rgba(24, 24, 27, 0.42);
    --glass-rim: rgba(255, 255, 255, 0.5);
    background: var(--glass-tint);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    backdrop-filter: blur(14px) saturate(1.6);
    box-shadow:
        inset 0 1px 0 var(--glass-rim),
        inset 0 -1px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        inset 0 0 24px rgba(255, 255, 255, 0.06),
        0 10px 30px rgba(0, 0, 0, 0.18);
    color: #fff;
}

/* Clear glass for controls sitting on the light homepage */
.liquid-glass--light {
    --glass-tint: rgba(255, 255, 255, 0.28);
    --glass-rim: rgba(255, 255, 255, 0.9);
    color: var(--text-color, #495057);
    box-shadow:
        inset 0 1px 0 var(--glass-rim),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(0, 0, 0, 0.06),
        0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Popups: dim the page lightly so the glass has something to bend */
.overlay.active,
.egg-overlay,
.celebration-overlay {
    background: rgba(15, 15, 15, 0.28) !important;
}

.overlay-content.liquid-glass,
.glass-card {
    --glass-tint: rgba(20, 20, 22, 0.52);
    border: none;
    border-radius: 28px;
}

/* Diagonal sheen, like light catching the glass */
.overlay-content.liquid-glass::before,
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.08) 100%);
    pointer-events: none;
}

.glass-card {
    position: relative;
}

.glass-card {
    padding: 2rem 2.5rem !important;
}

.glass-card p,
.glass-card h2 {
    color: #fff !important;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.overlay-content.liquid-glass .close-overlay {
    color: rgba(255, 255, 255, 0.8);
}

.overlay-content.liquid-glass .close-overlay:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

.overlay-content.liquid-glass .secret-message {
    color: rgba(255, 255, 255, 0.75);
}

/* Egg counter */
.egg-counter.liquid-glass {
    background: var(--glass-tint);
}

.egg-counter.liquid-glass:hover {
    background: rgba(24, 24, 27, 0.55);
}

/* Reset button: a glass disc instead of a bare icon */
.reset-button.liquid-glass {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.reset-button.liquid-glass:hover {
    background: rgba(255, 255, 255, 0.45);
}
