#popup-how-to-play.df-how-to-play-popup {
    --df-how-to-play-overlay: rgba(0, 0, 0, 0.65);

    z-index: 10050;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: max(16px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));
    overflow: auto;
    background: var(--df-how-to-play-overlay) !important;
    font-family: "Futura PT", Raleway, Arial, sans-serif;
    color: #0d3852;
}

#popup-how-to-play.df-how-to-play-popup .df-how-to-play-popup__scale {
    flex-shrink: 0;
    transform: scale(var(--df-content-scale, 1));
    transform-origin: center center;
}

#popup-how-to-play.df-how-to-play-popup .df-panel-inner,
#popup-how-to-play.df-how-to-play-popup .df-support-copy,
#popup-how-to-play.df-how-to-play-popup .df-support-copy h1,
#popup-how-to-play.df-how-to-play-popup .df-support-copy p,
#popup-how-to-play.df-how-to-play-popup .df-support-copy li,
#popup-how-to-play.df-how-to-play-popup .df-support-copy ol {
    background-color: transparent !important;
}

#popup-how-to-play.df-how-to-play-popup .df-how-to-play-popup__dialog {
    display: flex;
    flex-direction: column;
    width: 1380px;
    min-height: auto;
    margin: 0;
    padding: 24px;
    border-radius: 40px;
    background: linear-gradient(112deg, #a4d041 0%, #d4e9ad 100%) !important;
    color: #0d3852;
    box-shadow: 0 28px 0 rgba(17, 38, 53, 0.18);
}

#popup-how-to-play.df-how-to-play-popup .df-panel-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding: 78px;
    border: 12px solid #ffffff;
    border-radius: 30px;
}

#popup-how-to-play.df-how-to-play-popup .df-support-copy {
    align-self: stretch;
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
}

#popup-how-to-play.df-how-to-play-popup .df-support-copy h1 {
    margin: 0 0 54px;
    font-size: 62px;
    font-weight: 800;
    line-height: 1.05;
    text-align: left;
}

#popup-how-to-play.df-how-to-play-popup .df-support-copy p,
#popup-how-to-play.df-how-to-play-popup .df-support-copy li {
    font-size: 25px;
    line-height: 1.25;
    color: #0d3852;
}

#popup-how-to-play.df-how-to-play-popup .df-support-copy ol {
    margin: 32px 0 0;
    padding-left: 36px;
}

#popup-how-to-play.df-how-to-play-popup .df-primary-btn,
#popup-how-to-play.df-how-to-play-popup .close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 292px;
    min-width: 0;
    min-height: 76px;
    margin: 30px 0 0;
    align-self: center;
    padding: 16px 28px;
    border: 4px solid #0d3852;
    border-radius: 0;
    background: #99ca35 !important;
    color: #0d3852;
    font-family: inherit;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
}

body.df-portrait-flow #popup-how-to-play.df-how-to-play-popup .df-how-to-play-popup__scale {
    transform: none;
    width: 100%;
    max-width: min(92vw, 560px);
}

body.df-portrait-flow #popup-how-to-play.df-how-to-play-popup .df-how-to-play-popup__dialog {
    width: 100%;
    padding: 12px;
    border-radius: 24px;
}

body.df-portrait-flow #popup-how-to-play.df-how-to-play-popup .df-panel-inner {
    padding: 22px 16px;
    border-width: 7px;
    border-radius: 18px;
}

body.df-portrait-flow #popup-how-to-play.df-how-to-play-popup .df-support-copy h1 {
    margin-bottom: 20px;
    font-size: clamp(24px, 6vw, 36px);
}

body.df-portrait-flow #popup-how-to-play.df-how-to-play-popup .df-support-copy p,
body.df-portrait-flow #popup-how-to-play.df-how-to-play-popup .df-support-copy li {
    font-size: clamp(15px, 4vw, 20px);
}

body.df-portrait-flow #popup-how-to-play.df-how-to-play-popup .df-primary-btn.close,
body.df-portrait-flow #popup-how-to-play.df-how-to-play-popup .df-ok-btn.close {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: min(100%, 292px) !important;
    max-width: min(320px, 88vw) !important;
    min-width: 0 !important;
    min-height: 56px !important;
    margin: 32px auto 0 !important;
    padding: 14px 24px !important;
    font-size: clamp(18px, 4.5vw, 24px) !important;
}

@media screen and (max-width: 1024px) and (orientation: portrait) {
    #popup-how-to-play.df-how-to-play-popup .df-how-to-play-popup__scale {
        transform: none;
        width: 100%;
        max-width: min(92vw, 560px);
    }

    #popup-how-to-play.df-how-to-play-popup .df-how-to-play-popup__dialog {
        width: 100% !important;
    }

    /* popup.css define .popup .close com max-width: 5vw — não aplicar ao botão OK */
    #popup-how-to-play.df-how-to-play-popup .df-primary-btn.close,
    #popup-how-to-play.df-how-to-play-popup .df-ok-btn.close {
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: min(100%, 292px) !important;
        max-width: min(320px, 88vw) !important;
        min-width: 0 !important;
        min-height: 56px !important;
        margin: 32px auto 0 !important;
        padding: 14px 24px !important;
        font-size: clamp(18px, 4.5vw, 24px) !important;
    }
}
