* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: "Current";
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none;
}

.main-user {
    width: 100vw;
    height: 100vh;

    background: linear-gradient(145deg, #424242 0%, #1c1c1c 30%, #000000 100%); /* Светло-серый -> Тёмно-серый */

    display: flex;
    align-items: center;
    justify-content: center;
}

.main-rectangle {
    position: relative;
    width: 90vw;
    height: 92.5vh;
    background: linear-gradient(145deg, #2a2a2a 0%, #212121 40%, #151515 100%);
    border-radius: 7px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.main-rectangle::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 1.5%;
    background: linear-gradient(120deg, #FCF0D1 0%, #ffd588 75%, #805F29 95%);
}

.drop-case {
    position: absolute;
    z-index: 999;
    width: 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    justify-content: center;
    align-items: center;

    /* Чтобы случайно "торчащий" drop-case не блокировал клики под собой */
    pointer-events: none;
}

.drop-case:not(.hidden) {
    pointer-events: auto;
}

.drop-case img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.user-info {
    height: 20%;
    position: relative;

    display: flex;
    align-items: center;
}

.overlay {
    position: fixed;
    z-index: 998;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;

    transition: opacity 0.5s ease;
}

.overlay--visible {
    opacity: 1;             /* станем видимыми */
    pointer-events: auto;   /* позволим блокировать клики на фоне */
}

.user-avatar {
    height: 82%;
    aspect-ratio: 1;
    border-radius: 50%;
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 5%;

    background: linear-gradient(120deg, #FCF0D1FF 0%, #ffd588 75%, #805F29FF 95%);
}

.avatar {
    height: 87.5%;
    aspect-ratio: 1;
    border-radius: 50%;
    position: absolute;
    z-index: 2;

    background: linear-gradient(145deg, #2a2a2a 0%, #212121 40%, #151515 100%);
}

.user-name {
    font-size: 175%;
    font-weight: 600;
    position: absolute;
    top: 15%;
    left: 5%;
    z-index: 3;

    background: linear-gradient(120deg, #FCF0D1FF 0%, #ffd588 75%, #805F29FF 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.user-money {
    position: absolute;
    bottom: 5%;
    left: 5%;
    z-index: 4;

    display: flex;
    align-items: baseline; /* или center, если надо по центру */

    gap: 0.2rem;
}

.user-money p {
    font-size: 185%;
    font-weight: 600;

    background: linear-gradient(120deg, #FCF0D1FF 0%, #ffd588 75%, #805F29FF 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.currency-name {
    font-size: 120%;
    font-weight: 600;

    background: linear-gradient(120deg, #FCF0D1FF 0%, #ffd588 75%, #805F29FF 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Кнопка-обёртка */
.plus-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
  margin-left: 0.4rem;  /* Если хотите ещё немного отодвинуть, можно увеличить */

  background: linear-gradient(120deg, #FCF0D1 0%, #ffd588 75%, #805F29 95%);
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
}

.plus-text {
  font-size: 200%;
  font-weight: 700;
  background: linear-gradient(145deg, #2a2a2a 0%, #212121 40%, #151515 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cases {
    height: 78.5%;
    width: 100%;

    position: relative;
    display: grid;
    justify-content: center;
    align-content: center;

    margin-top: auto;
    justify-items: center;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.case-section {
    width: 100%;
    height: 100%;

    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.case-name {
    width: 90%;
    height: 15%;
    top: 7.5%;
    left: 5%;
    font-size: 125%;
    font-weight: 600;

    display: flex;
    margin-top: auto;
    position: relative;
    /*justify-content: center;*/
    z-index: 10;

    background: linear-gradient(120deg, #FCF0D1FF 0%, #ffd588 75%, #805F29FF 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Аналогично, градиент для текста */
    white-space: nowrap;
}

.case-rectangle {
    width: 90%;
    height: 80%;
    border-radius: 7px;
    border: 3px solid transparent;

    background-clip: padding-box, border-box;
    background: linear-gradient(145deg, #2a2a2a 0%, #212121 40%, #151515 100%) padding-box,
                linear-gradient(120deg, #FCF0D1 0%, #ffd588 75%, #805F29 95%) border-box;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);

    margin-top: auto;
    position: relative;
    flex-direction: column;
    z-index: 10;
}

.case-bottom {
    position: absolute;
    bottom: 5%;
    left: 10%;
    right: 10%;
    z-index: 30;

    display: flex;
    justify-content: space-between;
    align-items: stretch; /* растягивает по высоте */
    gap: 0.5rem;
    cursor: pointer;
}

.price {
    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(120deg, #FCF0D1 0%, #ffd588 75%, #805F29 95%);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);

    padding: 0 0.3rem;
}

.price-text {
    font-size: 200%;
    font-weight: 600;

    background: linear-gradient(145deg, #2a2a2a 0%, #212121 40%, #151515 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-square {
    background: linear-gradient(145deg, #757474 0%, #2a2a2a 40%, #212121 100%);
    border-radius: 4px;

    box-shadow: inset 0 0 0 3px #808080;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.3rem;
    box-sizing: border-box;
}

.info-square-text {
    font-size: 200%;
    font-weight: 600;
    background: linear-gradient(120deg, #FCF0D1 0%, #ffd588 75%, #805F29 95%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hidden {
    display: none !important;
}

.info-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Окно «растягивается» по содержимому */
.info-box {
    display: inline-block;
    width: auto;
    max-width: none;
    padding: 1rem;
    border-radius: 8px;

    border: 3px solid transparent;
    background-clip: padding-box, border-box;
    background-image:
            linear-gradient(#333, #333),
            linear-gradient(120deg, #FCF0D1 0%, #ffd588 75%, #805F29 95%);
    background-origin: border-box;

    color: #fff;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.info-title {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Две колонки (VIP и стили), без переноса вниз */
.two-columns {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

/* Каждая колонка — список карточек */
.column {
    display: flex;
    flex-direction: column;
}

.prizes-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Стили карточки */
.prize-card {
    display: block;
    box-sizing: border-box;
    padding: 0.5rem;

    border: 2px solid transparent;
    border-radius: 5px;
    background-clip: padding-box, border-box;
    background-image:
            linear-gradient(#444, #444),
            linear-gradient(120deg, #FCF0D1 0%, #ffd588 75%, #805F29 95%);
    background-origin: border-box;
    color: #fff;
}

/* Сбрасываем лишние отступы */
.prize-card, .prize-card * {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

/* <pre> — чтобы сохранять пробелы и \n */
.prize-pre {
    /* По умолчанию white-space: pre; => не переносит слова, хранит пробелы/переносы */
    font-family: inherit;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    color: #fff;
}

/* Если не хотите сохранять любые \n из изначального текста — можете убрать */
#info-content {
    white-space: normal;
}

.case {
    width: 85%;
    aspect-ratio: 1;

    position: relative;
    display: flex;
    z-index: 20;
    margin-left: 7.5%;
}

.case img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.roulette {
    display: none !important;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;

    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.75);
    opacity: 1;
}

.roulette.show {
    display: flex !important;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.roulette.fade-out {
    opacity: 0;              /* Становится прозрачным */
    transition: opacity 0.5s ease; /* За 0.5с плавно */
}

.marquee-container {
    position: relative;
    width: 80vw;
    max-width: 700px;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;

    border: 5px solid transparent;
    background-clip: padding-box, border-box;
    background:
            linear-gradient(145deg, #2a2a2a 0%, #212121 40%, #151515 100%) padding-box,
            linear-gradient(120deg, #FCF0D1 0%, #ffd588 75%, #805F29 95%) border-box;
}

.marquee-content {
    display: flex;
    align-items: center;
    height: 100%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.pointer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;

    background: linear-gradient(120deg, #FCF0D1 0%, #ffd588 75%, #805F29 95%);
    pointer-events: none;
}

.case-item {
    min-width: 140px;
    height: 140px;
    margin: 0 8px;
    border-radius: 8px;

    border: 2px solid #ffd588;
    box-sizing: border-box;

    background: linear-gradient(145deg, #2a2a2a 0%, #212121 40%, #151515 100%);
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: relative; /* чтобы можно было добавлять полоску */
}

.case-item.winning {
    transform: scale(1.2);
    transition: transform 0.5s ease;
    z-index: 9999; /* чтобы быть поверх остальных */
}

.marquee-content.dimmed .case-item:not(.winning) {
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

/* Если делаете полоску .chance-bar */
.chance-bar {
    position: absolute;
    bottom: 10%;
    left: 45%;

    /* Смещаем линию на половину её ширины/высоты */
    transform: translate(-45%, -45%);

    width: 70%;   /* или 100%, если нужно от края до края */
    height: 5px;
    background-color: red;
}


@keyframes caseDrop {
    0% {
        transform: translateY(-60vh);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes caseShake {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-4deg);
    }
    20%, 40%, 60%, 80% {
        transform: rotate(4deg);
    }
}

@keyframes casePop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
