/* CSP Day 2 Tournament Schedule — homepage announcement modal
   Flyer-inspired UI (purple + lime), not a raw image. */

.csp-day2-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090; /* above upcoming-events (1080) */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(9, 9, 11, 0.78);
    backdrop-filter: blur(7px);
}

.csp-day2-overlay.is-open {
    display: flex;
}

.csp-day2-modal {
    --csp-purple: #7a1f7e;
    --csp-purple-deep: #5c1560;
    --csp-lime: #52b848;
    --csp-lime-soft: #e8f8e6;
    --csp-ink: #4a1450;

    width: min(420px, 94vw);
    max-height: min(92vh, 780px);
    background: #fff;
    color: var(--csp-ink);
    border-radius: 18px;
    border: 4px solid var(--csp-purple);
    box-shadow: 0 28px 80px rgba(90, 20, 96, 0.35);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: "Outfit", system-ui, sans-serif;
    animation: csp-day2-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes csp-day2-in {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .csp-day2-modal { animation: none; }
}

.csp-day2-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--csp-purple);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.csp-day2-close:hover {
    background: var(--csp-purple-deep);
    transform: scale(1.05);
}

.csp-day2-body {
    padding: 1.75rem 1.5rem 1.6rem;
    overflow-y: auto;
    text-align: center;
}

.csp-day2-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 1.1rem;
}

.csp-day2-logo {
    font-family: "Bebas Neue", "Outfit", sans-serif;
    font-size: 2.55rem;
    letter-spacing: 0.02em;
    line-height: 0.9;
    color: var(--csp-purple);
    position: relative;
    display: inline-flex;
    align-items: flex-end;
    gap: 0.08em;
}

.csp-day2-logo__ball {
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #c8f5b8 0%, var(--csp-lime) 55%, #3a9a32 100%);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
    margin-bottom: 0.18em;
    position: relative;
}

.csp-day2-logo__ball::after {
    content: "";
    position: absolute;
    inset: 18%;
    border: 1.5px dashed rgba(255, 255, 255, 0.55);
    border-radius: 50%;
}

.csp-day2-logo-sub {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--csp-purple);
    margin: 0;
}

.csp-day2-title {
    font-family: "Bebas Neue", "Outfit", sans-serif;
    font-size: clamp(1.55rem, 5vw, 1.85rem);
    letter-spacing: 0.06em;
    line-height: 1.05;
    color: var(--csp-purple);
    margin: 0 0 1.15rem;
    text-transform: uppercase;
}

.csp-day2-schedule {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1.15rem;
    text-align: left;
}

.csp-day2-slot {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: baseline;
    padding: 0.7rem 0.85rem;
    background: linear-gradient(135deg, var(--csp-lime-soft), #fff 70%);
    border: 1.5px solid rgba(82, 184, 72, 0.35);
    border-radius: 12px;
}

.csp-day2-slot__time {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--csp-lime);
    white-space: nowrap;
}

.csp-day2-slot__label {
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--csp-purple);
    line-height: 1.35;
}

.csp-day2-slot__label::before {
    content: "— ";
    opacity: 0.55;
}

.csp-day2-rule {
    height: 2px;
    border: 0;
    margin: 0 0 1.05rem;
    background: linear-gradient(90deg, transparent, var(--csp-purple), transparent);
    opacity: 0.85;
}

.csp-day2-reminder-title {
    font-family: "Bebas Neue", "Outfit", sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    color: var(--csp-lime);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.csp-day2-copy {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    font-weight: 550;
    line-height: 1.5;
    color: var(--csp-purple);
}

.csp-day2-copy strong em,
.csp-day2-copy em strong {
    font-style: italic;
    font-weight: 800;
}

.csp-day2-copy--note {
    font-style: italic;
    opacity: 0.92;
}

.csp-day2-warning {
    text-align: left;
    margin: 0.9rem 0 0.85rem;
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
}

.csp-day2-warning__head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--csp-purple);
}

.csp-day2-warning__icon {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 4px;
    background: #facc15;
    color: #09090b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.csp-day2-warning p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--csp-purple);
    font-weight: 550;
}

.csp-day2-footer-line {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--csp-purple);
}

@media (max-width: 420px) {
    .csp-day2-body { padding: 1.45rem 1.1rem 1.35rem; }
    .csp-day2-slot {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}
