/*
 * popups.css — blocos de popup do core 36.1.3, extraídos do bundle original
 * (`s.push([e.id, "<css>"])` do css-loader), seguidos das adaptações do porte.
 */

/* ------------------------------------------------------------ html-popup (core) */

.html-popup {
    display: flex;
    flex: 1;
    background: #0000006e;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.html-popup_container {
    display: flex;
    justify-content: center;
}

.html-popup_main {
    background: #000000d6;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.html-popup_header {
    margin-left: 18px;
    margin-top: -8px;
}

@media (min-width: 640px) and (min-height: 960px) {
    .html-popup_container {
        transform: scale(1.5);
    }

    .html-popup_container.buy-feature-popup-double-container {
        transform: scale(1) !important;
    }
}

.html-popup--fs {
    font-size: 7vmin;
    font-weight: bold;
    background-color: #000000;
    opacity: 0.9;
}

.html-popup__header {
    text-transform: uppercase;
    margin-bottom: 2vmin;
}

.html-popup__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80%;
}

.html-popup__btns {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin-top: 1vh;
}

.html-popup--fs .html-popup__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}

.html-popup__hint {
    font-size: 4vmin;
    text-transform: uppercase;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5vh;
}

.html-popup__value {
    font-size: 3em;
    margin: 3vh 0;
}

.html-popup--fs .html-popup__value {
    font-size: 15vh;
    margin: 3vh 0;
    color: #ffda0a;
}

.html-popup__units {
    text-transform: uppercase;
    margin: 3vh 0;
    color: #ffda0a;
}

.html-popup__main--fullscreen {
    width: 100vw;
    height: 100vh;
}

.html-popup--tournaments {
    font-family: var(--custom-font-family);
    font-size: 2.7vmin;
}

.html-popup--tournaments .html-popup__main {
    display: flex;
    padding: 1.5vmin;
    max-width: 500px;
}

.html-popup__amount {
    color: #ffda0a;
    font-size: 12vmin;
}

.html-popup__counter-caption {
    margin-bottom: 3vh;
}

.html-popup--fs .html-popup__counter-caption {
    font-size: 3.5vh;
}

.highlighted {
    color: #ffda0a;
}

.html-error__cta {
    margin-top: 1vmin;
}

.html-popup__info div {
    margin-bottom: 0;
}

.html-popup_square {
    width: min(450px, 80%);
}

/* ------------------------------------------------------------ feature-popup (core) */

.feature-popup {
    background-color: #000000e3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    width: 100%;
}

.feature-popup * {
    text-align: center;
    font-weight: bold;
}

.feature-popup-main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.feature-popup-image {
    position: absolute;
}

.feature-popup-header {
    color: var(--active-color);
    margin-bottom: 4rem;
    font-size: 4rem;
    font-family: var(--custom-font-family);
}

.feature-popup-amount {
    color: var(--active-color);
    font-size: 6rem;
    font-family: var(--custom-font-family);
    font-variant-numeric: tabular-nums;
}

.feature-popup-continue {
    position: absolute;
    bottom: 2%;
}

/* ------------------------------------------------------------ buy-feature-arrow (core) */

.buy-feature-arrow {
    width: 0;
    height: 0;
    display: inline-block;
    transition: 0.5s all;
    cursor: pointer;
    border-top: 36px solid transparent;
    border-bottom: 36px solid transparent;
}

.buy-feature-arrow-disabled {
    pointer-events: none;
    border-left-color: #63370e !important;
    border-right-color: #63370e !important;
}

.buy-feature-arrow-right {
    border-left: 36px solid var(--active-color);
}

.buy-feature-arrow-left {
    border-right: 36px solid var(--active-color);
}

.buy-feature-arrow-pulse {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
    transform-origin: center;
    filter: drop-shadow(0 0 6px var(--active-color));
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 4px var(--active-color));
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 0 6px var(--active-color));
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 4px var(--active-color));
    }
}

/* ------------------------------------------- feature-popup (overrides MM59) */

.feature-popup-content {
    padding-bottom: 14rem !important;
}

.feature-popup-header {
    margin-bottom: 8rem !important;
}


/* ------------------------------------------------------------ buy-feature-popup (core) */

.buy-feature-popup-info-container {
    background-color: black;
    width: 100%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.buy-feature-popup-bets-control-header-container {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 4px;
    font-weight: bold;
}

.buy-feature-popup-bets-control-container {
    display: flex;
}

.buy-feature-popup-change-bet-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #585858;
    margin-top: 8px;
    box-shadow: 0.5px 0 0 #585858;
}

.buy-feature-popup-change-bet-container-landscape {
    background-color: transparent;
    box-shadow: unset;
}

.buy-feature-popup-change-bet-container-left {
    border-top-left-radius: 12px;
    border-end-start-radius: 12px;
}

.buy-feature-popup-change-bet-container-right {
    border-top-right-radius: 12px;
    border-end-end-radius: 12px;
}

.buy-feature-popup-text-area {
    background-color: black;
    display: flex;
    align-items: center;
    border-radius: 12px;
    padding: 8px 0;
    justify-content: center;
    height: 24px;
    margin: 8px;
}

.buy-feature-popup-bet-change-button {
    width: 40px !important;
    height: 40px !important;
    transform: unset !important;
    transition: unset !important;
}

.buy-feature-popup-buy-button {
    margin-top: 16px;
    min-width: 150px !important;
    text-transform: uppercase;
    border: 3px solid #585858 !important;
    height: 48px !important;
    transition: transform 0.3s ease;
}

.buy-feature-popup-buy-button:hover {
    transform: scale(1.03);
}

.buy-feature-popup-buy-button:active {
    transform: scale(0.97);
}

.buy-feature-popup-buy-button-double {
    width: 100%;
    max-width: 200px !important;
    height: 70px !important;
    border-width: 5px !important;
}

@media (max-width: 1250px) {
    .buy-feature-popup-buy-button-double {
        width: 100%;
        max-width: 180px !important;
        height: 56px !important;
        border-width: 5px !important;
    }
}

.buy-feature-popup-image {
    height: 180px;
    display: block;
}

.buy-feature-popup-image-mobile {
    height: 160px !important;
}

.buy-feature-popup-image-double {
    display: block;
    width: 150px;
    object-fit: cover;
    height: 180px;
    object-fit: contain;
}

.buy-feature-popup-right-container-landscape {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.buy-feature-popup-right-double-container-landscape {
    justify-content: center;
    gap: 20px;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}

.html-popup {
    width: 100%;
    height: 100%;
}

.no-cost .buy-feature-popup-change-bet-container {
    background: rgb(88, 88, 88);
    border-radius: 12px;
    width: max-content;
}

.buy-feature-popup-cost-wrapper {
    color: var(--active-color);
}

.buy-feature-popup-card {
    width: 190px;
    padding: 0 20px;
    box-sizing: border-box;
    cursor: pointer;
}

.buy-feature-popup-card-body-image {
    width: 100%;
}

/* ------------------------------------------------------------ buy-feature-popup-card (core) */

.buy-feature-popup-card:not(:last-child) {
    margin-right: 8px;
}

.buy-feature-popup-card-body {
    position: relative;
    display: flex;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    min-height: 180px;
}

.buy-feature-popup-card-header {
    background: black;
    padding: 4px;
    border-radius: 12px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    align-items: center;
}

.buy-feature-popup-card-footer {
    background: black;
    border-radius: 12px;
    font-weight: bold;
    width: 100%;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buy-feature-popup-card.selected > .buy-feature-popup-card-header,
.buy-feature-popup-card.selected > .buy-feature-popup-card-footer {
    color: var(--active-color);
    transition: 0.2s all;
}

.buy-feature-popup-card.selected > .buy-feature-popup-card-body {
    -webkit-box-shadow: 0px 0px 8px 3px var(--active-color);
    -moz-box-shadow: 0px 0px 8px 3px var(--active-color);
    box-shadow: 0px 0px 0px 2px var(--active-color), 0px 0px 8px 5px var(--active-color);
    transition: 0.2s all;
    transform: scale(1.1);
}


/* ================================================== adaptações do porte ====
 * No original o `.html-popup` preenche o `#html-popups`, que é `flex: 1`
 * dentro do `#ui`. Aqui os popups são filhos do <body>, então se posicionam
 * na viewport. As cores de texto vêm do documento do jogo no original.
 */

/* Sem font-family nos popups: no core eles herdam o Roboto do body e cada
 * texto usa `--custom-font-family` (EncodeSansWide) pelas classes `.text-*`. */
.html-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 55px; /* altura do .bottom-panel do core */
    height: auto; /* o core dá height: 100% ao .html-popup; aqui o bottom manda */
    z-index: 45;
    color: #fefefe;
}

.html-popup_main p {
    color: inherit;
}

.html-popup_main .base-button {
    color: #fff;
}

/* buy-feature-image.png vive no spritesheet@2x; recortamos o frame */
.buy-feature-popup-image {
    width: 347px;
    height: 180px;
    overflow: hidden;
    position: relative;
    flex: none;
}

.buy-feature-popup-image::before,
.buy-feature-popup-image-natural::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 828px;
    height: 430px;
    background-image: url("/images/png/spritesheet@2x.png");
    background-position: -1px -1px;
    transform: scale(0.4186);
    transform-origin: top left;
}

/* Em portrait o core tira `buy-feature-popup-image` do <img>, que fica no
 * tamanho natural do frame (828×430 @2x → 414×215). */
.buy-feature-popup-image-natural {
    width: 414px;
    height: 215px;
    overflow: hidden;
    position: relative;
    flex: none;
}

.buy-feature-popup-image-natural::before {
    transform: scale(0.5);
}

/* No original o `.fullscreen-popup` (Configurações) é filho do `#html-popups`,
 * que já cobre a tela. Aqui ele é filho do <body>. */

.fullscreen-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 55px; /* o painel inferior continua visível, como no online */
    height: auto;
    z-index: 46;
    /* sem align-items: no core o container estica na largura toda (468 px
     * em 500 de viewport) e é o `.flex.jc-center` de dentro que centraliza */
    color: #fefefe;
}

/* O Dropdown do core rola a lista com SimpleBar; sem ele, as opções ficam
 * como filhas diretas de `.options`. Repete as regras do core nesse seletor. */

.dropdown .options {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--active-color) black;
}

.dropdown .options > div {
    padding: 4px 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown .options > div:hover {
    background: var(--active-color);
    color: #fff;
    transition: all 0.1s;
}

/* O `.feature-popup` do core é filho do #html-popups, que ocupa a tela. */

.feature-popup {
    position: fixed;
    inset: 0;
    /* acima dos painéis: no original o escurecimento cobre a tela inteira */
    z-index: 47;
    color: #fefefe;
}

.feature-popup h3,
.feature-popup p {
    margin: 0;
}
