*,
*::before,
*::after {
    box-sizing: border-box;
}
* {
    margin: 0;
    padding: 0;
}
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}
ul[role='list'],
ol[role='list'] {
    list-style: none;
}
body {
    min-height: 100vh;
    line-height: 1.2;
}
h1,
h2 {
    text-wrap: balance;
}
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}
img {
    display: flex;
}
input, button,
textarea, select {
    font: inherit;
}

:root {
    --mobile-viewport: 568px;
    --tablet-viewport: 1024px;

    --color-white: #fff;
    --color-white--080: #fffc;
    --color-bg-main: #250E62;
    --color-bg-content: #003594;
    --color-bg-user: #055AE4;
    --color-bg-info-item: #0B73FB;
    --color-gradient-green: linear-gradient(45deg, #43B02B 0%, #93D500 100%);
}
@font-face {
    font-family: 'Onest';
    src:
            local('Onest'),
            url('fonts/Onest.woff2') format('woff2');
    font-style: normal;
    font-weight: normal;
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.text-400 {
    font-weight: 400;
}

.body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Onest', 'Arial', sans-serif;
    background-color: var(--color-bg-main);
    background-image: url('images/bgr-main.svg');
    background-position: center top;
    background-size: max(1000px, 100%);
    background-repeat: no-repeat;
    color: var(--color-white);
    padding-block: 60px;
    padding-inline: 1px;
}

.rules {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color:var(--color-white--080);

    @media (width <= 568px) {
        flex-direction: column;
        text-align: center;
    }
}
.rules__texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rules__18 {
    display: inline-flex;
    padding: 4px;
    font-size: 16px;
    border: 1px solid var(--color-white--080);
    border-radius: 10px;
    white-space: nowrap;
}

.body__404 {
    font-size: 48px;
    font-weight: 700;
    align-content: center;
}

.main-logo {
    display: flex;
    max-width: 320px;

    @media (width <= 1024px) {
        max-width: 220px;
    }
}

.content {
    width: 100%;
    max-width: 1024px;
    margin-top: 60px;
    padding: 40px;
    border-radius: 40px;

    @media (width <= 1024px) {
        padding: 12px;
        max-width: 500px;
    }

    @media (width <= 568px) {
        padding: 8px;
    }
}

.grid {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    background-color: var(--color-white);
    border-radius: 40px;

    @media (width <= 1024px) {
        grid-gap: 12px;
        border-radius: 28px;
    }

    @media (width <= 568px) {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
        grid-gap: 8px;
        border-radius: 16px;
    }
}

.grid--info {
    grid-column: span 3;
    @media (width <= 568px) {
        grid-column: span 1;
        grid-template-columns: repeat(2, minmax(50px, 1fr));
    }
}

.grid-cell {
    min-height: 132px;
    background-color:  var(--color-bg-content);
    border-radius: 20px;
    padding: 24px;

    @media (width <= 1024px) {
        padding: 20px;
    }

    @media (width <= 568px) {
        grid-column: span 2;
        min-height: 74px;
        padding: 12px;
        border-radius: 12px;
    }

}

.user-cell {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--color-bg-user);
    background-image: url('images/bgr-user.svg');
    background-position: center;
    background-size: cover;

    @media (width <= 1024px) {
        grid-column: span 3;
    }

    @media (width <= 568px) {
        grid-column: span 2;
    }
}

.user-cell__content {
    width: 100%;
    text-align: center;
}

.user-cell__logo {
    display: flex;
    width: 100%;
    max-width: 40px;
}

.user-cell__name {
    font-size: 48px;
    font-weight: 700;
    word-break: break-all;

    @media (width <= 568px) {
        font-size: 28px;
    }
}

.user-cell__text {
    font-size: 28px;
    font-weight: 500;

    @media (width <= 568px) {
        font-size: 20px;
    }
}

.win-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-image: var(--color-gradient-green) ;
    background-position: center;
    background-size: cover;

    @media (width <= 1024px) {
        grid-column: span 3;
    }

    @media (width <= 568px) {
        grid-column: span 2;
    }
}

.win-cell--victory {
    background-image: url('images/bgr-win-cell.png'), var(--color-gradient-green) ;
}

.win-cell__content {
    width: 100%;
    text-align: center;

    @media (width <= 568px) {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
}

.win-cell__logo {
    display: flex;
    width: 100%;
    max-width: 40px;

    @media (width <= 568px) {
        display: none;
    }
}

.win-cell__name {
    font-size: 40px;
    font-weight: 700;

    @media (width <= 568px) {
        font-size: 28px;
    }
}

.win-cell__text {
    font-size: 20px;
    font-weight: 400;
    text-align: center;

    @media (width <= 568px) {
        font-size: 12px;
        text-align: start;
    }
}

.info-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    }

.info-cell--status {
    @media (width <= 568px) {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-height: unset;
        grid-row: 3;
    }
}
.info-cell--status .info-cell__img {
    @media (width <= 568px) {
        margin-left: auto;
    }
}

.info-cell--type,
.info-cell--sum {
    @media (width <= 568px) {
       grid-column: span 1;
    }
}

.info-cell--victory {
    background-image: var(--color-gradient-green) ;
}

.info-cell__hint,
.info-cell__label {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-white--080);

    @media (width <= 568px) {
        font-size: 12px;
    }
}

.info-cell__value {
    display: flex;
    flex-direction: column;
}

.info-cell__sum {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    font-size: 24px;
    font-weight: 600;

    @media (width <= 1024px) {
        font-size: 18px;
        gap: 8px;
    }

    @media (width <= 568px) {
        font-size: 16px;
    }
}


.info-cell__img {
    display: inline-flex;
    width: 24px;

    @media (width <= 1024px) {
        width: 20px;
    }
}

.info-cell__text {
    display: flex;
    align-items: center;
}

.info-cell__text-symbol {
    height: 24px;

    @media (width <= 1024px) {
        height: 18px;
    }
}

.outcomes-cell {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 40px;
    gap: 20px;

    @media (width <= 1024px) {
        padding: 20px;
    }

    @media (width <= 568px) {
        grid-column: span 2;
        padding: 12px;
        gap: 12px;
    }
}

.outcomes-cell__title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 500;

    @media (width <= 568px) {
        font-size: 14px;
    }
}

.outcomes-cell__title-icon {
    width: 16px;
}

.outcomes-cell__list-events {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.outcomes-event {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: var(--color-bg-user);
    border-radius: 20px;

    @media (width <= 1024px) {
        flex-wrap: wrap;
    }

    @media (width <= 568px) {
        padding: 12px;
        border-radius: 12px;
    }
}

.outcomes-event__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    @media (width <= 1024px) {
        flex-direction: column;
        align-items: flex-start;
    }
}

.outcomes-event__head-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.outcomes-event__type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 400;
}

.outcomes-event__type-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 0 32px;
    width: 32px;
    height: 26px;
    border-radius: 8px;
    background-color: var(--color-bg-info-item);
}

.outcomes-event__type-img {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

.outcomes-event__title {
    font-size: 24px;
    font-weight: 600;
}

.outcomes-event__head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-white--080);

    @media (width <= 1024px) {
        flex-direction: row;
        gap: 8px;
    }
}

.outcomes-event__info {
    display: flex;
    gap: 20px;
    width: 100%;

    @media (width <= 1024px) {
        flex-wrap: wrap;
    }

    @media (width <= 568px) {
        gap: 8px;
    }
}

.outcomes-event__info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 20px;
    background: var(--color-bg-info-item);
    border-radius: 12px;

    @media (width <= 1024px) {
        flex: 0 0 calc(50% - 20px / 2);
        width: calc(50% - 20px / 2);
        gap: 12px;
    }

    @media (width <= 568px) {
        flex-direction: row;
        flex-wrap: wrap;
        flex: 1 1 100%;
        width: 100%;
        padding: 8px;
    }
}

.outcomes-event__info-item:first-child {
    justify-content: flex-start;
    flex: 1 1 auto;

    @media (width <= 1024px) {
        flex: 1 1 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
    }
}

.outcomes-event__info-item.m-center {

    @media (width <= 1024px) {
        align-items: center;
    }
}

.outcomes-event__info-item.m-center .outcomes-event__info-value {
    justify-content: center;
}

.outcomes-event__info-item:last-child {
    align-items: flex-end;

    @media (width <= 1024px) {
        align-items: center;
    }

    @media (width <= 568px) {
        justify-content: space-between;
    }
}

.outcomes-event__info-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-white--080);
}

.outcomes-event__info-value {
    display: inline-flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;

    @media (width <= 1024px) {
        font-size: 18px;
        gap: 8px;
        width: auto;
    }

    @media (width <= 568px) {
        font-size: 16px;
    }
}

.outcomes-event__info-value--victory {
    background-image: var(--color-gradient-green) ;
}
