/* ================================================
   iCasino Age Gate — v1.0.0
   Colours: #0a0a0f (bg), #e91e8c (pink), #ff4db8 (pink light),
            #fff (text), #1a1a2e (modal bg), #c9184a (hover)
   ================================================ */

#icag-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 10, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: 'Arial', sans-serif;
    animation: icag-fade-in 0.35s ease forwards;
}

@keyframes icag-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#icag-modal {
    position: relative;
    background: linear-gradient(160deg, #12121f 0%, #1a1a2e 60%, #0f0f1a 100%);
    border: 1px solid rgba(233, 30, 140, 0.45);
    border-radius: 16px;
    padding: 48px 40px 36px;
    max-width: 480px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(233, 30, 140, 0.15),
        0 0 60px rgba(233, 30, 140, 0.12),
        0 24px 64px rgba(0, 0, 0, 0.7);
    animation: icag-slide-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Glow bar at top of modal */
#icag-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e91e8c, #ff4db8, #e91e8c, transparent);
    border-radius: 2px;
}

@keyframes icag-slide-up {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Brand --- */
#icag-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.icag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e91e8c;
    box-shadow: 0 0 8px #e91e8c;
    display: inline-block;
}

.icag-logo-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-transform: uppercase;
}

.icag-dot-nl {
    color: #e91e8c;
}

/* --- Icon --- */
#icag-icon {
    margin-bottom: 20px;
    line-height: 0;
}

#icag-icon svg {
    filter: drop-shadow(0 0 10px rgba(233, 30, 140, 0.5));
}

/* --- Heading --- */
#icag-heading {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* --- Subtext --- */
#icag-subtext {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
    margin: 0 0 32px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
#icag-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

#icag-buttons button {
    display: block;
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#icag-yes {
    background: linear-gradient(90deg, #e91e8c 0%, #ff4db8 100%);
    color: #ffffff;
    box-shadow: 0 4px 24px rgba(233, 30, 140, 0.38);
}

#icag-yes:hover,
#icag-yes:focus-visible {
    background: linear-gradient(90deg, #ff1a8a 0%, #ff6ec7 100%);
    box-shadow: 0 6px 32px rgba(233, 30, 140, 0.55);
    transform: translateY(-2px);
}

#icag-yes:active {
    transform: translateY(0);
}

#icag-no {
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#icag-no:hover,
#icag-no:focus-visible {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.04);
}

/* --- Disclaimer --- */
#icag-disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.6;
    margin: 0;
}

#icag-disclaimer a {
    color: rgba(233, 30, 140, 0.7);
    text-decoration: none;
}

#icag-disclaimer a:hover {
    color: #e91e8c;
    text-decoration: underline;
}

/* --- Reject screen (age < 18) --- */
#icag-overlay.icag-rejected #icag-modal {
    animation: icag-shake 0.4s ease forwards;
}

@keyframes icag-shake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-8px); }
    40%  { transform: translateX(8px); }
    60%  { transform: translateX(-6px); }
    80%  { transform: translateX(6px); }
    100% { transform: translateX(0); }
}

/* --- Mobile --- */
@media (max-width: 520px) {
    #icag-modal {
        padding: 36px 24px 28px;
    }
    #icag-heading {
        font-size: 22px;
    }
}

/* --- Hide scrollbar on body when gate is open --- */
body.icag-open {
    overflow: hidden !important;
}
