
/* ============================================================
   DEWPOINT — DEDICATED OPEN PLAY MANAGEMENT

   Every selector belongs to the dp-opm component;
   ============================================================ */

.dp-opm {
    display: grid;
    gap: 22px;
    color: #162035;
}

.dp-opm-hero {
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        #0b1225 0%,
        #19132f 100%
    );
    color: #ffffff;
}

.dp-opm-hero-label {
    display: block;
    margin-bottom: 9px;
    color: #e4dfff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.dp-opm-hero-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.dp-opm-hero-title h2 {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
}

.dp-opm-host-badge {
    padding: 5px 8px;
    border-radius: 7px;
    background: rgba(
        255,
        255,
        255,
        0.16
    );
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

.dp-opm-hero-details {
    margin: 10px 0 0;
    color: #e8e5fb;
    line-height: 1.5;
}

.dp-opm-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 15px;
    color: #e8e5fb;
    font-size: 13px;
}

.dp-opm-error {
    padding: 13px 15px;
    border: 1px solid #f0c8c8;
    border-radius: 11px;
    background: #fff4f4;
    color: #992c2c;
}

.dp-opm-section {
    display: grid;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid #e1e3ed;
}

.dp-opm-section-title {
    margin: 0;
    color: #182033;
    font-size: 20px;
    font-weight: 800;
}

.dp-opm-section-copy {
    margin: 0;
    color: #556177;
    font-size: 14px;
    line-height: 1.5;
}

.dp-opm-invite {
    display: grid;
    grid-template-columns: minmax(
        0,
        1fr
    ) auto;
    gap: 12px;
    margin-top: 5px;
}

.dp-opm-select {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d9ddeb;
    border-radius: 10px;
    background: #ffffff;
    color: #1a2335;
    font-size: 14px;
}

.dp-opm-button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.dp-opm-button-primary {
    border: 1px solid #19132f;
    background: linear-gradient(
        135deg,
        #0b1225 0%,
        #19132f 100%
    );
    color: #ffffff;
}

.dp-opm-button-outline {
    border: 1px solid #28233e;
    background: #ffffff;
    color: #19132f;
}

.dp-opm-button-muted {
    border: 1px solid #d5d8e4;
    background: #edf0f6;
    color: #455065;
}

.dp-opm-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dp-opm-session {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 19px 21px;
    border: 1px solid #ddd9f5;
    border-radius: 16px;
    background: #f6f4ff;
}

.dp-opm-session-label {
    display: block;
    margin-bottom: 5px;
    color: #5f48c4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.dp-opm-session-title {
    margin: 0;
    color: #171d30;
    font-size: 20px;
    font-weight: 800;
}

.dp-opm-session-copy {
    margin: 6px 0 0;
    color: #526078;
    font-size: 13px;
}

.dp-opm-player-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(
            min(
                100%,
                300px
            ),
            1fr
        )
    );
    gap: 12px;
}

.dp-opm-player {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    padding: 13px;
    border: 1px solid #e1e3ed;
    border-radius: 13px;
    background: #ffffff;
}

.dp-opm-avatar {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    background: #ece9fb;
    color: #48389b;
    font-size: 12px;
    font-weight: 800;
}

.dp-opm-avatar-image {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    object-fit: cover;
}

.dp-opm-player-copy {
    display: grid;
    min-width: 100px;
    flex: 1;
    gap: 4px;
}

.dp-opm-player-copy strong {
    color: #172034;
    font-size: 13px;
}

.dp-opm-player-copy small {
    color: #58657a;
    font-size: 12px;
}

.dp-opm-player-status {
    color: #4d3ba1;
    font-size: 11px;
    font-weight: 700;
}

.dp-opm-attendance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.dp-opm-empty {
    margin: 4px 0;
    color: #526078;
    font-size: 13px;
    line-height: 1.5;
}

.dp-opm-round-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.dp-opm-match-grid {
    display: grid;
    gap: 13px;
}

.dp-opm-match {
    overflow: hidden;
    border: 1px solid #e1e3ed;
    border-radius: 15px;
    background: #ffffff;
}

.dp-opm-match-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
    background: #f2f0fc;
    color: #171d30;
}

.dp-opm-match-heading span {
    color: #526078;
    font-size: 12px;
}

.dp-opm-match-teams {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 15px;
}

.dp-opm-team {
    display: grid;
    gap: 8px;
    padding: 11px;
    border: 1px solid #e1e3ed;
    border-radius: 11px;
    background: #ffffff;
}

.dp-opm-team small {
    color: #6650cf;
    font-size: 10px;
    font-weight: 800;
}

.dp-opm-team strong {
    color: #172034;
    font-size: 13px;
}

.dp-opm-team-winner {
    border-color: #6953d5;
    background: #f5f2ff;
}

.dp-opm-versus {
    color: #4b3a9d;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 650px) {
    .dp-opm-hero {
        padding: 18px;
    }

    .dp-opm-hero-title h2 {
        font-size: 21px;
    }

    .dp-opm-invite {
        grid-template-columns: 1fr;
    }

    .dp-opm-session {
        align-items: stretch;
    }

    .dp-opm-match-teams {
        grid-template-columns: 1fr;
    }

    .dp-opm-versus {
        justify-self: center;
    }
}
