@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700;800;900&display=swap');
:root {
    --main-font: 'Noto Sans', sans-serif;
    --info-title-font: clamp(11px, calc(2vw + 2vh), 32px);
    --adaptive-font: clamp(16px, calc(1.5vw + 0.5vh), 26px);
    --info-h2-font: clamp(9px, calc(2vw + 2vh), 30px);
}

#menu-overlay {
    background: rgba(1, 2, 16, 0.50);
}

#info {
    margin-bottom: 0 !important;
    padding-bottom: clamp(5vh, calc(3vw + 3vh), 10vh);
}

/* endregion */
/* region INFO-PAGE */
#info-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 2% 5%;
    color: white;
    display: none;
}

body.no-scroll {
    overflow: hidden;
}

.title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.paytable-title {
    font-family: var(--main-font);
    font-size: var(--info-title-font);
    color: #FFF;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

.title-underline {
    width: clamp(300px, 50vw, 800px);
    height: clamp(2px, calc(0.5vw + 0.5vh), 4px);
    background: linear-gradient(90deg, rgba(147, 154, 187, 0.00) 0%, #E03B2A 47.5%, rgba(147, 154, 187, 0.00) 97.81%);
    margin-top: 1%;
}

@media (orientation: portrait) {
    .title-underline {
        height: 2px;
    }
}

.h2-container {
    display: flex;
    align-items: baseline;
    gap: clamp(0.5vw, 1vw, 1.5vw);
    padding-block: clamp(1vh, 2vh, 3vh);
}

.triangle {
    display: flex;
    align-items: baseline;
    height: auto;
    transform: translateY(0.1em);
}
.triangle svg {
    display: block;
    height: 100%;
    width: auto;
}

h2 {
    font-size: var(--info-h2-font);
    color: #b1f9cb;
    font-family: var(--main-font);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    font-variant: all-small-caps;
    margin: 0;
}

.header {
    font-family: 'Noto Sans', sans-serif;
    font-weight: bold;
    color: #2aff60;
    text-transform: uppercase;
}

.high-phrase {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 900;
    color: #2aff60;
    font-weight: bold;
    margin: 0
}

.feature-content.scatter .feature-text p:first-child {
    margin-bottom: 0;
}

.high-phrase2 {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    background: linear-gradient(
            to bottom,
            #ffdd00 40%,
            #ff4a08 70%,
            #781b00 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-text-stroke: 1px #ff6e22;
    text-stroke: 1px #ff6e22;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    font-size: 1.2em !important;
}

.rtp-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto;
}

.rtp-info .game-name {
    font-size: clamp(1rem, calc(1.5vw + 1vh), 2.3rem);
    margin: 2% auto;
    padding: 0;
    background: linear-gradient(to top, #00ba35, #2aff60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    width: auto;
    max-width: 100%;
    align-self: center;
}

.triangle {
    display: flex;
    align-items: stretch;
    /*width: clamp(14.2px, calc(1.5vw + 1.5vh), 27px);*/
    height: clamp(12.7px, calc(1.4vw + 1.4vh), 21px);
}

#info-page #paytable {
    /*display: grid;*/
    grid-template-columns: repeat(auto-fit, 340px);
    gap: 3%;
    padding: 10px;
    justify-content: center;
}

#info-page .symbol {
    width: clamp(120px, calc(10vw + 10vh), 380px);
    display: flex;
    text-align: center;
    align-items: center;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
}

#info-page .special-symbols img {
    width: clamp(120px, calc(12vw + 10vh), 260px);
    object-fit: contain;
    margin-bottom: 0;
}

@media (orientation: landscape) {
    #info-page .special-symbols .symbol {
        width: clamp(300px, 30vw, 400px);
    }
}

#info-page .high-symbols img {
    width: clamp(45px, calc(13vw + 12vh), 200px);
    height: clamp(45px, calc(13vw + 12vh), 200px);
    object-fit: contain;
    margin-bottom: 0;
}

#info-page .low-symbols img,
#info-page .low-symbols-two img {
    width: clamp(55px, 11vw, 125px);
    height: clamp(55px, 11vw, 125px);
    object-fit: contain;
    margin-bottom: 0;
}

@media (orientation: landscape) {
    .high-symbols {
        display: flex;
        flex-wrap: wrap;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 20px;
        justify-content: center;
        margin-bottom: 40px;
    }
    .low-symbols {
        display: grid;
        grid-template-columns: repeat(6, minmax(100px, 1fr));
        gap: 20px;
        justify-items: center;
        margin-bottom: 40px;
    }
}

#info-page .symbol p {
    font-family: var(--main-font);
    margin: 4px 0;
    text-align: center;
}

p {
    font-weight: 500;
    font-family: var(--main-font);
    font-size: var(--adaptive-font);
    margin: 30px 0;
    text-align: justify;
}

.play-mode {
    display: block;
    text-align: center;
}

.special-symbols {
    display: flex;
    justify-content: center;
    gap: clamp(5%, 15%, 30%);
    flex-wrap: wrap;
    margin-bottom: 40px;
}

@media (orientation: portrait) {
    .triangle {
        display: flex;
        align-items: baseline;
    }
    .high-symbols,
    .special-symbols,
    .low-symbols,
    .low-symbols-two {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center;
        justify-items: center;
        align-items: start;
        gap: clamp(15px, 4vw, 30px) clamp(20px, 6vw, 40px);
        /*width: fit-content;*/
        /*margin: 0 auto;*/
        padding-bottom: 20px;
        box-sizing: border-box;
    }

    #info-page .special-symbols {
        margin-bottom: 0;
        padding: 0;
    }

    #info-page .symbol {
        max-width: 100%;
        width: auto;
        box-sizing: border-box;
    }

    .symbol {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    #info-page .high-symbols img {
        margin-bottom: 0;
    }

    #info-image3 {
        margin-bottom: 20px;
    }

    #info-page .high-symbols img {
        width: clamp(80px, 40vw, 280px);
        height: clamp(10vmin, 18vh, 25vmin);
    }

    #info-page .low-symbols img,
    #info-page .low-symbols-two img {
        width: clamp(80px, 20vw, 160px);
        height: clamp(80px, 20vw, 160px);
        object-fit: contain;
        margin-bottom: clamp(0.5vh, 1.5vmin, 2vh);
    }
}

@media (orientation: portrait) and (max-width: 500px) {
    #info-page .symbol {
        width: clamp(70vw, 90vw, 95vw);
    }
}

@media (orientation: landscape) {
    .high-symbols, .high-symbols, .low-symbols-two {
        display: flex;
        flex-wrap: wrap;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 20px;
        justify-content: center;
        margin-bottom: 40px;
    }
}

.separator {
    display: flex;
    align-items: center;
    width: clamp(300px, 50vw, 800px);
    height: clamp(2px, calc(0.5vw + 0.5vh), 4px);
    margin: 0 auto 0 auto;
    margin-bottom: 1%;
    background: linear-gradient(90deg, rgba(147, 154, 187, 0.00) 0%, #939ABB 47.5%, rgba(147, 154, 187, 0.00) 97.81%);
}

@media (orientation: portrait) {
    .separator {
        height: 2px;
    }
}

.feature-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    color: white;
}

.feature-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5%;
    padding-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.feature-content.scatter {
    padding-bottom: 0;
    margin-bottom: 0;
    gap: 1vw;
    align-items: center;
}

.feature-preview {
    display: flex;
    justify-content: center;
    width: clamp(300px, 50vw, 5500px);
    height: auto;
    object-fit: contain;
    margin-bottom: 3%;
}

.feature-preview.large {
    width: clamp(350px, 60vw, 650px);
    height: auto;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    transform: translateY(-20px);
}

.feature-preview.no-margin {
    margin-bottom: 0 !important;
}

.h2-container.no-padding {
    padding-bottom: 0 !important;
}

.feature-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    line-height: 1.4;
    font-family: var(--main-font);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    text-align: center;
    hyphens: auto;
    word-break: break-word;
}

.feature-text.up {
    transform: translateY(-5px);
}

.feature-text p {
    /*margin: 0 0 2em 0;*/
    text-align: center;
}

/* Для portrait */
@media (orientation: portrait) {
    .feature-content {
        flex-direction: column;
        align-items: center;
        align-content: center;
        justify-content: center;
        padding: 0 5vw;
        margin-bottom: 3%;
    }

    .feature-text {
        font-size: clamp(1rem, 3.5vw, 1.5rem);
    }

    .rtp-info {
        text-align: center;
        margin-top: 30px;
        margin-bottom: 0;
    }
}

#info {
    margin-bottom: 10%;
}

.paylines-container {
    margin-bottom: 50px;
}

.payline-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (orientation: landscape) {
    #info {
        padding-bottom: 10%;
    }
}

.payline {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--main-font);
    font-size: var(--adaptive-font);
    width: 100%;
}

.line-box {
    width: 100%;
    max-width: clamp(110px, 18vw, 180px);
    min-width: 100px;
    aspect-ratio: 1.6; /* это сохраняет пропорции SVG */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.paylines-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(100px, 18vw, 160px), 1fr));
    gap: clamp(10px, 3vw, 30px) clamp(10px, 3vw, 30px);
    justify-items: center;
    align-items: start;
    width: 100%;
    padding: 10px 0;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.line-number {
    margin-bottom: 4px;
    font-size: 0.9em;
    text-align: center;
    width: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: right;
}

.payline-info p {
    margin-top: 20px;
    text-align: center;
}

.rtp-info p {
    margin: 0;
}

.highlight {
    color: #DB3928;
    display: block;
    text-align: center;
    margin: 0;
}

.red-bold {
    color: #DB3928;
    font-weight: bold;
}

.info-button-container .button-info {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}

.info-button-container .button-info p {
    margin: 0 !important;
}

#info p {
    font-family: var(--main-font);
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 3% 0;
}

#btn-info {
    /*width: 96px;*/
    /*min-width: 96px;*/
    /*height: auto;*/
    width: clamp(50px, 10vw, 96px);
    height: auto;
    margin-right: 20px;
    flex-shrink: 0;
}

.button-info p {
    flex: 1;
    line-height: 1.6;
    margin-top: 10px;
}

ul.menu-list-items {
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    list-style-type: disc;
    padding-left: 10%;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Noto Sans', sans-serif !important;
    font-size: var(--adaptive-font);
    padding-bottom: 10px;
    text-align: justify;
}

ul.menu-list-items2 {
    line-height: 1.8;
    flex-wrap: wrap;
    list-style-type: disc;
    padding-left: 2%;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Noto Sans', sans-serif !important;
    font-size: var(--adaptive-font);
    padding-bottom: 10px;
    text-align: justify;
}

ul.menu-list-items3 {
    line-height: 1.8;
    flex-wrap: wrap;
    list-style-type: circle;
    padding-left: 2%;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Noto Sans', sans-serif !important;
    font-size: var(--adaptive-font);
    padding-bottom: 10px;
}

li. list {
    display: flex;
    align-items: center;
}

ul.menu-list-items li {
    color: #FFFFFF;
    margin-bottom: 10px;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.inner-bullets {
    line-height: 1.8;
    flex-wrap: wrap;
    padding-left: 3%;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--main-font);
    font-size: var(--adaptive-font);
    list-style-type: none;
}

.inner-bullets li {
    position: relative;
    line-height: 1.8;
    flex-wrap: wrap;
    list-style-type: disc;
    padding-left: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--main-font);
    font-size: var(--adaptive-font);
    padding-bottom: 10px;
}

::marker {
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
    text-transform: none;
    text-indent: 0px !important;
    text-align: start !important;
    text-align-last: auto !important;
}

#info-up img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (orientation: portrait) {
    #menu-ui {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 40px;
        display: flex;
        background: linear-gradient(to bottom, rgba(1, 2, 16, 0) 0%, #010210 100%);
        justify-content: center;
        gap: 5px;
        margin: 0 auto;
    }

    #menu-ui-container {
        position: relative;
        width: 100%;
        height: 40px;
        border-radius: 0 12px 0 0;
        background: rgba(29, 26, 52);
        box-shadow: 0 -1.5px 1.5px rgba(0, 0, 0, 0.7);
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    .menu-button {
        width: 100%;
        height: 100%;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: background 0.3s ease;
        cursor: pointer;
    }

    .menu-button.active {
        background: linear-gradient(to right, rgba(239, 66, 48, 1), rgba(136, 20, 8, 1));
        border-top-right-radius: 12px;
        border-top-left-radius: 12px;
        filter: drop-shadow(1px 0 2px rgba(0, 0, 0, 0.80));
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #info-icon.menu-button.active {
        border-top-left-radius: 0;
        cursor: pointer;
    }

    #menu-close-button {
        pointer-events: all !important;
        height: 40px;
        width: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px 12px 0 0;
        background: rgba(57, 61, 86, 1);
        box-shadow: 0 -1.5px 1.5px rgba(0, 0, 0, 0.7);
        cursor: pointer;
        box-sizing: border-box;
    }

    .close-icon {
        height: 55%;
        width: auto;
        display: block;
        filter: drop-shadow(0px 1.59px 1.59px rgba(0, 0, 0, 0.50));
    }
    #info p.all-margin-content {
        margin-bottom: 3vh;
    }
    #info {
        padding-bottom: calc(8rem + env(safe-area-inset-bottom)) !important;
    }
}

@media (orientation: portrait) and (max-width: 660px) {
    .info-button-container .button-info {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        box-sizing: border-box;
        align-items: flex-start;
    }
    .info-button-container .button-info p {
        margin-bottom: 3% !important;
    }
}


@media (orientation: landscape) {
    #menu-ui {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: clamp(40px, 6vh, 80px);
        display: flex;
        background: linear-gradient(to bottom, rgba(1, 2, 16, 0) 0%, #010210 100%);
        justify-content: center;
        gap: 5px;
        margin: 0 auto;
    }

    #menu-ui-container {
        position: relative;
        width: 80%;
        height: clamp(40px, 6vh, 80px);
        border-radius: 16px 16px 0 0;
        background: rgba(29, 26, 52);
        box-shadow: 0px -2.918px 2.918px 0px rgba(0, 0, 0, 0.80);
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    .menu-button {
        width: 100%;
        height: 100%;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: background 0.3s ease;
        /*cursor: pointer;*/
    }

    .menu-button.active {
        background: linear-gradient(to right, rgba(239, 66, 48, 1), rgba(136, 20, 8, 1));
        border-radius: 16px 16px 0 0;
        filter: drop-shadow(1px 0 2px rgba(0, 0, 0, 0.80));
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    #info-icon.menu-button.active {
        border-radius: 16px 0 16px 0;
        cursor: pointer;
    }

    #history-icon.menu-button.active {
        border-radius: 0 16px 0 16px;
        cursor: pointer;
    }

    #menu-close-button {
        pointer-events: all !important;
        height: clamp(40px, 6vh, 80px);
        width: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(57,61,86,1);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -2.918px 3px 0 rgba(0, 0, 0, 0.80);
        cursor: pointer;
        box-sizing: border-box;
    }

    .close-icon {
        height: 55%;
        width: auto;
        display: block;
        filter: drop-shadow(0px 1.59px 1.59px rgba(0, 0, 0, 0.50));
    }
    #info p.all-margin-content {
        margin-bottom: 3vh;
    }
    #info {
        padding-bottom: calc(5rem + env(safe-area-inset-bottom)) !important;
    }
}

.adaptive-image {
    width: auto;
    height: auto;
    max-height: clamp(35vh, calc(2vw + 2vh), 60vh);
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.info-button-container, .additional-margin {
    margin-bottom: 20px;
}

.highlight-pay {
    font-size: clamp(0.6rem, calc(1vw + 0.7vh), 1.3rem);
}

.payout p {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    margin: 0 clamp(16px, 4vmin, 48px);
    text-align: left;
}

.feature-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow-x: hidden;
    gap: clamp(16px, 3vh, 40px);
}

.feature-previews {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.feature-preview,
.adaptive-image {
    display: block;
    width: clamp(180px, 40vw, 480px);
    height: auto;
    margin: 0 auto;

    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;

    backface-visibility: hidden;
    max-width: 100%;
}


@media (orientation: portrait) {
    .feature-content {
        flex-direction: column;
        align-items: center;
        align-content: center;
        justify-content: center;
        padding: 0 5vw;
        margin-bottom: 3%;
        gap: clamp(16px, 3vh, 40px);
    }
}
