.cases-main-block>a[class^=icon],
.cases-main-block .main-case,
.cases-main-block .roulette>#sound-point,
.cases-main-block .roulette .roulette-slider,
#prize .modal-content {
    -webkit-background-size: 100%;
    -moz-background-size: 100%;
    -o-background-size: 100%;
    background-size: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.cases-main-block {
    width: 100%;
    border-radius: var(--br-16);
    padding: .3rem;
    height: auto;
    overflow: hidden;
    position: relative;
    text-align: center;
        background-color: rgba(15, 15, 16, 0.7);
    border: 1px solid var(--transparent-3-w);
}

.cases-main-block .live-list-wrap {
    overflow: hidden
}

.cases-main-block .live-list-wrap .live-list {
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: 5px;
    position: relative
}

.live-link-gold {
    --live-rgb: 197, 139, 28;
}

.live-link-red {
    --live-rgb: 197, 48, 28;
}

.live-link-pink {
    --live-rgb: 209, 56, 102;
}

.live-link-purple {
    --live-rgb: 125, 46, 204;
}

.live-link-blue {
    --live-rgb: 82, 105, 224;
}

.live-link-turquoise {
    --live-rgb: 82, 172, 192;
}

.live-link-grey {
    --live-rgb: 130, 138, 150;
}


/* wspólny wygląd wszystkich live dropów */
.cases-main-block .live-list .live-item .live-link {
    background:
        radial-gradient(
            circle at 50% 115%,
            rgba(var(--live-rgb), 0.18) 0%,
            rgba(var(--live-rgb), 0.06) 38%,
            transparent 68%
        ),
        linear-gradient(
            180deg,
            rgba(26, 26, 29, 0.98) 0%,
            rgba(14, 14, 16, 0.98) 100%
        );

    border: 1px solid rgba(var(--live-rgb), 0.16);

    box-shadow:
        inset 0 -2px 0 rgba(var(--live-rgb), 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


/* hover */
.cases-main-block .live-list .live-item .live-link:hover {
    transform: translateY(-2px);

    border-color: rgba(var(--live-rgb), 0.36);

    box-shadow:
        inset 0 -2px 0 rgba(var(--live-rgb), 0.85),
        0 6px 16px rgba(0, 0, 0, 0.28),
        0 0 12px rgba(var(--live-rgb), 0.08);

    filter: brightness(1.06);
}

.subject_color {
    border-radius: 10px;
    padding: 10px;
    max-width: 40px;
    display: flex;
    justify-content: center;
}

.cases-main-block .live-list-wrap .live-list .live-item {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.cases-main-block .live-list-wrap .live-list .live-item .live-link {
    position: relative;
    font-weight: 500;
    font-size: var(--font-size-s);
    -webkit-transition: none;
    transition: none;
    width: 125px;
    height: 91px;
    display: block;
    text-align: center;
    padding-bottom: 15px;
    background-size: 100% 100%;
    border-radius: var(--br-8);
    color: var(--text-default);
}

.cases-main-block .live-list-wrap .live-list .live-item .live-link:before {
    content: "";
}

.cases-main-block .live-list-wrap .live-list .live-item .live-link:hover:before {
    opacity: 1
}

.live-link:hover .live-hover {
    transform: translateY(-100%);
    visibility: visible !important;
    opacity: 1 !important;
}

.live-link:hover .live-inner {
    transform: translateY(-100%);
    visibility: visible !important;
    opacity: 0 !important;
}


.cases-main-block .live-list-wrap .live-list .live-item .live-link .live-inner-wrap {
    width: 100%;
    height: 100%;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: -webkit-transform .5s ease;
    transition: -webkit-transform .5s ease;
    transition: transform .5s ease;
    transition: transform .5s ease, -webkit-transform .5s ease;
}

.cases-main-block .live-list-wrap .live-list .live-item .live-link .live-inner-wrap .live-inner {
    width: 100%;
    height: 100%;
    padding-top: 7px;
    z-index: 1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: .5s;
}

.cases-main-block .live-list-wrap .live-list .live-item .live-link .live-inner-wrap .live-inner .live-image-wrap .live-image {
    height: 62px;
}

.cases-main-block .live-list-wrap .live-list .live-item .live-link .live-inner-wrap .live-inner .live-title {
    margin-top: -2px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 0 8px;
}

.cases-main-block .live-list-wrap .live-list .live-item .live-link .live-inner-wrap .live-hover {
    width: 100%;
    height: 100%;
    padding-top: 5px;
    visibility: hidden;
    opacity: 0;
    transition: .5s;
}

.cases-main-block .live-list-wrap .live-list .live-item .live-link .live-inner-wrap .live-hover .live-case-image {
    margin: 5px 0;
}

.cases-main-block .live-list-wrap .live-list .live-item .live-link .live-inner-wrap .live-hover .live-case-image img {
    height: 53px;
}

.cases-main-block>a[class^=icon] {
    width: 30px;
    height: 30px;
    display: block;
    position: absolute;
    opacity: .2;
    cursor: pointer;
    top: 155px
}

.cases-main-block>a[class^=icon].icon-open-cases {
    background-image: url(../../../../modules/module_page_open_case/assets/img/icon-inventory.png);
    right: 50px
}

.cases-main-block>a[class^=icon].icon-back-to-cases {
    background-image: url(../../../../modules/module_page_open_case/assets/img/icon-back.png);
    left: 50px
}

.cases-main-block>a[class^=icon]:hover {
    opacity: .5
}

.cases-main-block h2 {
    display: flex;
    text-transform: uppercase;
    font-size: var(--font-size-l);
    color: var(--text-custom);
    text-align: center;
    width: max-content;
    margin: 1rem auto;
    animation: 800;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    line-height: normal;
}

.cases-main-block h2 svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

@media(max-width:991.99px) {
    .cases-main-block h2 {
        font-size: 15px
    }

    .cases-main-block h2 svg {
        width: 15px;
        height: auto;
        fill: var(--span);
    }
}

.cases-main-block .info-block {
    position: relative;
    background: url(../../../../modules/module_page_open_case/assets/img/info-block-bg.jpg);
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 0 96px -15px #c64f47
}

.cases-main-block .info-block>h3 {
    color: #64ca00;
    text-shadow: 0 2px 4px rgba(133, 214, 0, .25)
}

.cases-main-block .info-block>ul {
    margin-left: 15px;
    margin-bottom: 0;
    color: #fff
}

.cases-main-block .info-block>p {
    color: #fff
}

.cases-main-block .main-case {
    background: url(../../../../modules/module_page_open_case/assets/img/case-bg.png);
    min-height: 253px;
    line-height: 253px;
    text-align: center;
    max-width: 600px !important;
    width: 100%;
    display: block;
    margin: 0 auto;
    margin-bottom: 20px
}

.cases-main-block .main-case img {
    max-width: 300px
}

@media(max-width:991.99px) {
    .cases-main-block .main-case {
        min-height: 150px;
        line-height: 150px;
        background: 0 0
    }

    .cases-main-block .main-case img {
        max-width: 100%
    }

    .cases-main-block button.open-case {
        font-size: 12px
    }
}

.cases-main-block div#open-sum {
    width: 140px;
    margin: 0 auto;
    line-height: normal;
    border: 0;
    font-weight: var(--font-weight-7);
    font-size: var(--font-size-m);
    color: var(--text-custom)
}

.cases-main-block button.open-case[disabled] {
    opacity: .5
}

.cases-main-block button.open-case-fast[disabled] {
    background-image: linear-gradient(135deg, #1e252fc7 0%, #485390ad 46%, #1e252fba 100%) !important;
    opacity: .5
}

@media(max-width:991.99px) {
    .cases-main-block button.open-case {
        font-size: 16px
    }
}

.cases-main-block .roulette {
    padding: 27px 17px 36px;
    position: relative;
    width: 100%;
    height: 243px;
    max-width: 650px !important;
    margin: 0 auto;
}

.cases-main-block .roulette>#sound-point {
    z-index: 2;
    width: 35px;
    height: 35px;
    display: block;
    position: absolute;
    right: 57px;
    top: 0;
    cursor: pointer
}

.cases-main-block .roulette>#sound-point.sound-on {
    background-image: url(../../../../modules/module_page_open_case/assets/img/icon-sound-on.png);
    transition: .7s;
    opacity: .7;
}

.cases-main-block .roulette>#sound-point.sound-off {
    background-image: url(../../../../modules/module_page_open_case/assets/img/icon-sound-off.png);
    transition: .7s;
    opacity: .7;
}

.cases-main-block .roulette>#sound-point:hover {
    transition: .7s;
    opacity: 1
}

.cases-main-block .roulette .roulette-slider {
    padding: 0 30px;
    position: relative;
    background-position: 50% 50%;
    height: 173px
}

.cases-main-block .roulette .roulette-slider:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    top: 0;
    width: 37%;
    height: 100%;
    background: linear-gradient(90deg, var(--card) 15%, transparent);
    z-index: 1;
}

.cases-main-block .roulette .roulette-slider:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    width: 37%;
    height: 100%;
    background: linear-gradient(270deg, var(--card) 15%, transparent);
    z-index: 1;
}

.cases-main-block .roulette .roulette-slider .r-left,
.cases-main-block .roulette .roulette-slider .r-right {
    position: absolute;
    left: -24px;
    top: -8px;
    bottom: 0;
    display: block;
    background: url(../../../../modules/module_page_open_case/assets/img/r-left.png) no-repeat;
    width: 73px;
    height: 394px
}

.cases-main-block .roulette .roulette-slider .r-right {
    position: absolute;
    right: -37px;
    top: 3px;
    background: url(../../../../modules/module_page_open_case/assets/img/r-right.png) no-repeat;
    width: 83px;
    height: 379px
}

.cases-main-block .roulette .roulette-slider .r-side,
.cases-main-block .roulette .roulette-slider .r-side2 {
    left: 16px;
    width: calc(50% - 16px);
    top: 4px;
    bottom: 0;
    position: absolute;
    background: url(../../../../modules/module_page_open_case/assets/img/r-side.png) repeat-x
}

.cases-main-block .roulette .roulette-slider .r-side2 {
    right: 14px;
    width: calc(50% - 14px);
}

.cases-main-block .roulette .roulette-slider .top-arr,
.cases-main-block .roulette .roulette-slider .bottom-arr {
    z-index: 1;
    background-position: top;
    width: max-content;
    height: max-content;
    position: absolute;
    left: 50%;
    top: .5rem;
    -ms-transform: translate(-50%, 0);
    transform: translate(-50%, 0)
}

.cases-main-block .roulette .roulette-slider .bottom-arr {
    background-position-x: 1px;
    background-position-y: bottom;
    bottom: .3rem;
    top: unset;
}

.cases-main-block .roulette .roulette-slider .top-arr svg {
    rotate: 180deg
}

.cases-main-block .roulette .roulette-slider .bottom-arr svg,
.cases-main-block .roulette .roulette-slider .top-arr svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--span);
}

.cases-main-block .roulette .roulette-slider .roulette-area {
    overflow: hidden;
    width: calc(100% + 30px);
    height: 100%;
    margin-left: -14px
}

.cases-main-block .roulette .roulette-slider .roulette-area #roulette {
    height: 150px;
    width: 190px;
    top: 15px;
    position: relative;
    margin: 0 auto
}

.cases-main-block .roulette .roulette-slider .roulette-area #roulette .roulette-inner {
    transition: 0s linear;
    position: relative;
    top: 0;
    white-space: nowrap;
    height: 100%;
    width: 100%
}

.cases-main-block .roulette .roulette-slider .roulette-area #roulette .roulette-inner .subject-block {
    box-shadow: none !important
}

#cases>p {
    color: #64ca00;
    text-shadow: 0 2px 4px rgba(133, 214, 0, .25);
    font-size: 20px;
    margin-left: 15px;
    font-weight: 700
}

#cases .case-block {
    /* overflow: hidden; */
    display: inline-block;
    position: relative;
    min-height: 280px;
    width: 240px;
    margin: 5px;
}

#cases .case-block a.case-link {
    display: block;
    color: #fff;
    -webkit-transition: color .3s ease;
    transition: color .3s ease;
    position: relative;
    padding: 5px 0;
    width: 100%;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.case-link:hover .case-price {
    filter: brightness(110%);
}

#cases .case-block a.case-link:hover span.case-img-wrap {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

#cases .case-block span.case-img-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    line-height: 1;
    -webkit-transition: -webkit-transform .3s ease;
    transition: -webkit-transform .3s ease;
    transition: transform .3s ease;
    transition: transform .3s ease, -webkit-transform .3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    position: relative;
    height: 160px
}

#cases .case-block span.case-img-wrap .case-img {
    max-width: 90%;
    max-height: 250px
}

#cases .case-block span.case-span-wrap {
    display: grid;
    margin-top: 15px;
    position: relative;
    z-index: 1;
    justify-items: center;
}

#cases .case-block span.case-span-wrap .case-price {
    font-size: var(--font-size-m);
    color: #d51718;
    font-weight: var(--font-weight-7);
    position: relative;
    padding-inline: 1rem;
    min-width: 5.2rem;
    height: var(--input-height);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-duration);
}

#cases .case-block span.case-span-wrap .case-name {
    display: block;
    color: var(--text-default);
    text-align: center;
    font-size: var(--font-size-default);
    margin-top: .3rem;
    margin-bottom: .3rem;
    font-weight: var(--font-weight-7);
    transition: .3s;
    white-space: nowrap;
}

#cases .case-block span.case-span-wrap .case-price:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: -1;
    background-color: #0d0b0c;
    border-radius: var(--br-8);
}

#subjects .subject-block,
#roulette .subject-block,
#wins .subject-block {
    overflow: hidden;
    display: inline-block;
    position: relative;
    height: 140px;
    width: 180px;
    margin: 5px;
    border-radius: 10px;
}

#subjects .subject-block.gold,
#roulette .subject-block.gold,
#wins .subject-block.gold {
    background: linear-gradient(180deg, rgba(81, 55, 17, 0), rgb(197 139 28 / 47%) 90%), rgb(116 88 31 / 23%);
}

#subjects .subject-block.gold .subject>span:nth-child(1),
#roulette .subject-block.gold .subject>span:nth-child(1),
#wins .subject-block.gold .subject>span:nth-child(1) {
    color: #eabd6a;
}

#subjects .subject-block.red,
#roulette .subject-block.red,
#wins .subject-block.red {
    background: linear-gradient(180deg, rgba(81, 25, 17, 0), rgba(197, 48, 28, .24) 90%), #2b1719;
}

#subjects .subject-block.red .subject>span:nth-child(1),
#roulette .subject-block.red .subject>span:nth-child(1),
#wins .subject-block.red .subject>span:nth-child(1) {
    color: #f2625a;
}

#subjects .subject-block.purple,
#roulette .subject-block.purple,
#wins .subject-block.purple {
    background: linear-gradient(180deg, rgba(34, 17, 81, 0), rgba(125, 46, 204, .24) 90%), #201f2b;
}

#subjects .subject-block.purple .subject>span:nth-child(1),
#roulette .subject-block.purple .subject>span:nth-child(1),
#wins .subject-block.purple .subject>span:nth-child(1) {
    color: #9170c1;
}

#subjects .subject-block.blue,
#roulette .subject-block.blue,
#wins .subject-block.blue {
    background: linear-gradient(180deg, rgba(26, 17, 81, 0), rgb(82 105 224 / 24%) 90%), #1a1c29;
}

#subjects .subject-block.blue .subject>span:nth-child(1),
#roulette .subject-block.blue .subject>span:nth-child(1),
#wins .subject-block.blue .subject>span:nth-child(1) {
    color: #7280cf;
}

#subjects .subject-block.turquoise,
#roulette .subject-block.turquoise,
#wins .subject-block.turquoise {
    background: linear-gradient(180deg, rgba(36, 70, 78, 0), rgba(82, 172, 192, .22) 90%), #1b2831;
}

#subjects .subject-block.turquoise .subject>span:nth-child(1),
#roulette .subject-block.turquoise .subject>span:nth-child(1),
#wins .subject-block.turquoise .subject>span:nth-child(1) {
    color: #88c3da;
}

#subjects .subject-block.grey,
#roulette .subject-block.grey,
#wins .subject-block.grey {
    background: linear-gradient(180deg, rgba(73, 78, 84, 0), rgba(130, 138, 150, .24) 90%), #1d1d25;
}

#subjects .subject-block.grey .subject>span:nth-child(1),
#roulette .subject-block.grey .subject>span:nth-child(1),
#wins .subject-block.grey .subject>span:nth-child(1) {
    color: #adafb6;
}

#subjects .subject-block.pink,
#roulette .subject-block.pink,
#wins .subject-block.pink {
    background: linear-gradient(180deg, rgba(81, 17, 29, 0), rgba(209, 56, 102, .24) 90%), #2c1a23;
}

#subjects .subject-block.pink .subject>span:nth-child(1),
#roulette .subject-block.pink .subject>span:nth-child(1),
#wins .subject-block.pink .subject>span:nth-child(1) {
    color: #d87699;
}

#subjects .subject-block>.subject-services,
#roulette .subject-block>.subject-services,
#wins .subject-block>.subject-services {
    height: 140px;
    width: 100%;
    display: table;
    padding: 6px;
}

#subjects .subject-block>.subject-services .subject-fix,
#roulette .subject-block>.subject-services .subject-fix,
#wins .subject-block>.subject-services .subject-fix {
    display: table-cell;
    height: auto;
    text-align: center;
    position: relative;
}

#subjects .subject-block>.subject-services .subject-fix .subject,
#roulette .subject-block>.subject-services .subject-fix .subject {
    position: absolute;
    bottom: 0px;
    left: 5px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
}

#subjects .subject-block>.subject-services .subject-fix .subject span,
#roulette .subject-block>.subject-services .subject-fix .subject span,
#wins .subject-block>.subject-services .subject-fix .subject span {
    display: block
}

#subjects .subject-block>.subject-services .subject-fix .subject span:nth-child(1),
#roulette .subject-block>.subject-services .subject-fix .subject span:nth-child(1),
#wins .subject-block>.subject-services .subject-fix .subject span:nth-child(1) {
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

#subjects .subject-block>.subject-services .subject-fix .subject span:nth-child(2),
#subjects .subject-block>.subject-services .subject-fix .subject span:nth-child(3),
#roulette .subject-block>.subject-services .subject-fix .subject span:nth-child(2),
#roulette .subject-block>.subject-services .subject-fix .subject span:nth-child(3),
#wins .subject-block>.subject-services .subject-fix .subject span:nth-child(2),
#wins .subject-block>.subject-services .subject-fix .subject span:nth-child(3) {
    line-height: 10px;
    font-size: 10px;
    font-weight: 400;
    color: var(--text-default);
    text-transform: uppercase;
}

#subjects .subject-block>.subject-services .subject-fix .subject span:nth-child(3),
#roulette .subject-block>.subject-services .subject-fix .subject span:nth-child(3),
#wins .subject-block>.subject-services .subject-fix .subject span:nth-child(3) {
    margin-bottom: 5px
}

#wins .subject-block .subject-price {
    position: absolute;
    z-index: 3;
    top: -4px;
    right: 6px;
    color: var(--text-custom);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px 5px 5px;
}

#wins .subject-block {
    overflow: visible
}

#wins .subject-block .subject-price:before {
    content: "";
    display: block;
    position: absolute;
    top: 0px;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: -1;
    background-color: var(--money);
    -webkit-transform: skewX(-15deg);
    transform: skewX(-15deg);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    border-radius: 5px;
    -webkit-box-shadow: 0 8px 15px rgba(0, 0, 0, .2);
    box-shadow: 6px 6px 0px rgb(0 0 0 / 8%);
}

#wins .subject-block .subject-hover {
    position: absolute;
    bottom: 10px;
    width: 100%;
    opacity: 0;
    -webkit-transform: translateY(10px);
    transform: translateY(10px);
    -webkit-transition: opacity .3s ease, -webkit-transform .3s ease;
    transition: opacity .3s ease, -webkit-transform .3s ease;
    transition: transform .3s ease, opacity .3s ease;
    transition: transform .3s ease, opacity .3s ease, -webkit-transform .3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    z-index: 2
}

#wins .subject-block:hover .subject-hover {
    -webkit-transform: none;
    transform: none;
    opacity: 1
}

#wins .subject-block .subject-hover a {
    display: inline-block;
    color: var(--span);
    font-weight: 600;
    letter-spacing: .5px;
    border-radius: 6px;
    text-transform: uppercase;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    font-size: 11px;
    position: relative;
    overflow: hidden;
    padding: 8px 11px;
    background: var(--bg-modal);
}

.bonuses-title {
    color: var(--text-default);
    font-weight: var(--font-weight-8);
    font-family: var(--font-family-1);
    font-size: var(--font-size-l);
    margin-bottom: 1rem;
}

.bonuses-but {
    position: relative;
    margin-block: 1rem .1rem;
    display: flex;
    align-items: center;
    gap: .3rem;
    justify-content: space-between;
}

#wins .subject-block .subject-hover a:hover {
    text-decoration: none;
    cursor: pointer
}

#drop-area {
    border: 2px dashed var(--transparent-20-w);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#drop-area p {
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-5);
    color: var(--text-custom);
}

#drop-area.highlight {
    border-color: var(--span);
}

.my-form {
    margin-bottom: 10px
}

#gallery {
    margin: 0;
}

#gallery img {
    width: 150px;
    margin-bottom: 10px;
    margin-right: 10px;
    vertical-align: middle
}

#fileElem {
    display: none;
}

.float_none {
    float: none !important
}

.swal2-container {
    background: url(../../../../modules/module_page_open_case/assets/img/rally.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-size: cover;
}

.knopkacases {
    margin-top: 15px;
    width: max-content;
    justify-content: center;
    display: inline-flex;
    white-space: nowrap;
}

.infoblock1:hover {
    background: var(--span);
    border-radius: 6px
}

.infoblock2:hover {
    background: #373c66;
    border-radius: 6px
}

.deletebut {
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    padding: 15px;
    outline: none;
    font-size: .8rem;
    background: #c83f3f;
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    word-wrap: break-word;
    transition: .7s;
    position: absolute;
    margin: -44px 0;
    right: 25px
}

.edittsbtn {
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    padding: 9px 8px;
    outline: none;
    font-size: .8rem;
    background: var(--span);
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    word-wrap: break-word;
    transition: .7s;
    margin-right: -40px
}

.swal2-popup #swal2-content {
    background-color: var(--card);
    padding: 2rem;
    border-radius: var(--br-20);
    display: flex !important;
    flex-direction: column;
}

.swal2-content span {
    color: var(--money) !important;
}

.donatggwp {
    min-height: 91px;
    background-color: var(--transparent-3-w);
    padding: 5px;
    border-radius: var(--br-12);
    border: 1px solid var(--transparent-3-w);
    display: flex;
}

.live-username {
    width: 109px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    margin: 0 auto;
}

span.case-open {
    font-size: var(--font-size-xs);
    margin: 0 auto 0.5rem;
    color: var(--text-secondary);
}

.userbar__cases {
    display: flex;
    justify-content: center;
    border-radius: var(--br-1);
    margin-block: .3rem;
}

.username__cases {
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-7);
    color: var(--text-default);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flexmenu_cases {
    display: flex;
    align-items: center;
    padding: .5rem;
    gap: .3rem;
}

.secondblock__cases {
    text-align: left;
    display: grid;
}

.userbalance_cases {
    display: flex;
    color: var(--money);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-5);
    align-items: center;
    gap: .5rem;
}

.userbalance_cases svg {
    fill: var(--money);
    width: 1rem;
    height: 1rem;
}

.price_case {
    font-weight: 800;
    color: var(--money);
    background-color: var(--money-bg);
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 14px;
}

.price_block_kostyl {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

b.price_text {
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-custom);
    font-size: 12px;
}

.case_btn {
    display: flex;
    background-color: var(--button);
    border-radius: 8px;
    width: max-content;
    color: var(--text-default);
    height: 40px;
    padding: 0 15px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    transition: .3s;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.case_btn:hover {
    background-color: var(--button-hover);
    color: var(--span);
    transition: .3s;
}

.case_btn svg {
    width: 12px;
    height: auto;
    fill: var(--text-custom);
    transition: .3s;
}

.case_btn:hover svg {
    fill: var(--text-default);
    transition: .3s;
}

.buttons_adm_case {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
    align-items: center;
}

.case-buttons_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
}

.delete_taken_cases {
    display: flex;
    justify-content: center;
    background-color: var(--button);
    border-radius: 8px;
    margin-top: 10px;
    padding: 10px 10px;
    color: var(--text-default);
    text-transform: uppercase;
    font-weight: 700;
    transition: .3s;
    cursor: pointer;
    font-size: 12px;
}

.delete_taken_cases:hover {
    background-color: var(--button-hover);
    color: var(--red);
    transition: .3s;
}

.recommended {
    display: flex;
    font-size: 12px;
    margin: 10px auto;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 700;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-width: 300px;
    padding: 14px;
    border-radius: 8px;
    user-select: none;
}

.cases-not-ready {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 20px auto;
    padding: 16px 20px;
    max-width: 480px;
    background-color: var(--card);
    border: 1px solid rgb(255 255 255 / 8%);
    border-radius: var(--br-12);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.auth_info {
    display: flex;
    color: var(--orange);
    gap: .5rem;
    flex-direction: row;
    padding: 1rem;
    width: max-content;
    border: 1px dashed rgb(246 185 73 / 30%);
    margin: 20px auto;
    border-radius: var(--br-12);
    justify-content: center;
    background-color: rgb(246 185 73 / 10%);
    align-items: center;
    white-space: nowrap;
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-6);
    cursor: pointer;
}

.auth_info svg {
    display: flex;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 6px;
    fill: var(--orange);
    align-items: center;
    justify-content: center;
    flex: none;
}

.auth_info_text {
    white-space: nowrap;
    display: flex;
}

#balance_content {
    color: var(--money);
    line-height: normal;
    display: flex;
    align-items: center;
    gap: .3rem;
}


.card_edit_block {
    margin: 0 -5px;
}

form#subject_delete {
    margin-top: -43px;
}

.case_buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 1500px) {
    .card-header {
        padding: 15px 20px 15px 20px;
    }
}

img.subject-image {
    margin-left: auto;
    margin-right: auto;
    width: 6rem;
    height: 6rem;
}

.case_userbar_btn {
    display: flex;
    gap: .3rem;
}

.case_balance_name {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.case_balance_name img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--br-8);
}

.cases-section__title {
    width: 100%;
    margin: 28px 0 18px;
}

.new-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    width: 100%;

    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    text-align: left;
    text-transform: uppercase;

    color: #fff;
}

/* czerwony akcent z lewej */
.new-title::before {
    content: "";
    flex: 0 0 auto;

    width: 3px;
    height: 18px;

    background: #ef1b24;
    box-shadow: 0 0 8px rgba(239, 27, 36, 0.45);
}

/* subtelna linia ciągnąca się do końca sekcji */
.new-title::after {
    content: "";
    flex: 1;

    height: 1px;

    background: linear-gradient(
        90deg,
        rgba(239, 27, 36, 0.55) 0%,
        rgba(239, 27, 36, 0.12) 35%,
        rgba(255, 255, 255, 0.035) 100%
    );
}

.new-title__text {
    display: flex;
    align-items: center;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    letter-spacing: 0.03em;
}


@media(max-width:991.99px) {
    .flexmenu_cases {
        gap: 5px;
        padding-bottom: 10px;
    }

    .flexmenu_cases {
        flex-direction: column;
    }

    .case_userbar_btn {
        flex-direction: row;
    }

    .new-title {
        font-size: 22px;
        line-height: 26px;
    }
}

#live_content {
    overflow-x: scroll;
}

#live_content::-webkit-scrollbar {
    display: none;
}

.case_img {
    width: 2.5rem;
    height: 2.5rem;
}

.cases__open-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: .5rem;
    margin-block: 1rem;
}

.case_settings-form,
.cases__settings-buttons,
.cases-label,
#subject_content_html {
    display: flex;
    flex-direction: column;
}

.cases__settings-buttons {
    gap: .15rem;
}

#subject_content_html {
    align-items: flex-start;
    white-space: normal;
}

#subject_content_html br {
    display: none;
}

.cases__list-img,
.cases__list-case {
    width: 2rem;
    height: 2rem;
    border-radius: var(--br-50);
}

.cases__list-case {
    border-radius: unset;
}

.cases__list-gap {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.cases__yourwin {
    font-weight: var(--font-weight-6) !important;
    letter-spacing: unset !important;
    margin-block: 1rem !important;
}

.cases__auth-button {
    margin: 0 auto;
}

/* ==== HUD visual rework (added) - wyrownanie sklepu skrzynek do jezyka
   wizualnego reszty strony: karty z docietymi rogami (clip-path) jak
   .card.punishment-main-card / .admin-nav__btn, tytuly Anton uppercase
   z akcentowa belka (var(--span)).
   UWAGA: wymiary #subjects/#roulette/#wins .subject-block (width/height/
   margin) sa CELOWO nietykniete - roulette.js ma na sztywno zaszyta stala
   case_width: 190 (= 180px szerokosc + 2x5px margines) uzywana w matematyce
   przewijania rulety (pozycja zatrzymania na wygranej). clip-path nie
   zmienia box-modelu (tylko przycina widok), wiec jest bezpieczny, ale
   jakakolwiek zmiana width/margin rozjechalaby animacje ze stopem. ==== */

.cases-main-block {
    border-radius: 0;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    border: 1px solid color-mix(in srgb, #383838 30%, transparent);
}

.cases-main-block h2 {
    font-family: 'Anton', var(--font-family-1), sans-serif;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.cases-main-block h2::before {
    content: "";
    width: 4px;
    height: 20px;
    flex-shrink: 0;
    background: var(--span);
    box-shadow: 0 0 8px var(--span);
}

.new-title {
    font-family: 'Anton', var(--font-family-1), sans-serif;
    font-weight: 400;
    letter-spacing: 0.03em;
    gap: 0.6rem;
}

.new-title::before {
    content: "";
    width: 3px;
    height: 14px;
    flex-shrink: 0;
    background: var(--span);
    box-shadow: 0 0 6px var(--span);
}

.userbar__cases {
    border-radius: 0;
    border-bottom: 1px solid color-mix(in srgb, #383838 30%, transparent);
}

#cases .case-block {
    background-color: var(--card);
    border: 1px solid color-mix(in srgb, #383838 30%, transparent);
    border-radius: 0;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    padding: 12px 10px 16px;
    transition: border-color .25s, transform .25s;
}

#cases .case-block:hover {
    transform: translateY(-3px);
}

#cases .case-block span.case-span-wrap .case-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    max-width: 100%;

    font-family: 'Anton', var(--font-family-1), sans-serif;
    font-weight: 400;
    letter-spacing: 0.025em;

    color: #fff;

    background: linear-gradient(
        90deg,
        rgba(7, 7, 8, 0.9),
        rgba(17, 17, 19, 0.72)
    );

    padding: 0.35rem 0.75rem;

    border-left: 2px solid #ef1b24;
    border-radius: 2px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}


/* =========================
   CENA / PRZYCISK
   ========================= */

#cases .case-block span.case-span-wrap .case-price {
    position: relative;

    border-radius: 3px;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

#cases .case-block span.case-span-wrap .case-price::before {
    border-radius: 3px;

    background: linear-gradient(
        135deg,
        rgba(55, 8, 10, 0.95),
        rgba(15, 10, 11, 0.98)
    );

    border: 1px solid rgba(239, 27, 36, 0.22);

    clip-path: polygon(
        6px 0,
        100% 0,
        100% calc(100% - 6px),
        calc(100% - 6px) 100%,
        0 100%,
        0 6px
    );

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* hover ceny */
#cases .case-block:hover span.case-span-wrap .case-price {
    transform: translateY(-1px);
    color: #ff313b;

    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.28);
}

#cases .case-block:hover span.case-span-wrap .case-price::before {
    background: linear-gradient(
        135deg,
        rgba(80, 10, 13, 0.95),
        rgba(20, 10, 11, 0.98)
    );

    border-color: rgba(239, 27, 36, 0.45);

    box-shadow: 0 0 12px rgba(239, 27, 36, 0.08);
}

#subjects .subject-block,
#roulette .subject-block,
#wins .subject-block {
    border-radius: 0;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    border: 1px solid color-mix(in srgb, #383838 35%, transparent);
}

.open-case,
.delete_taken_cases {
    border-radius: 0;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    font-family: 'Anton', var(--font-family-1), sans-serif;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.price_case {
    border-radius: 0;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* ============================================================
   TerroCS CASES — POLISH V2
   Drobne dopracowanie layoutu bez zmiany obecnego stylu:
   - trochę większe karty i grafiki
   - ciaśniejszy, bardziej równy spacing
   - spokojniejszy zoom obrazka
   - mocniejszy hover karty
   - czytelniejsze nazwy i ceny
   - lepsze zachowanie na mniejszych ekranach
   ============================================================ */

.cases-section__title {
    margin: 22px 0 14px;
}

.cases-section__title:first-child {
    margin-top: 14px;
}

.new-title {
    gap: .55rem;
}

.new-title::before {
    width: 3px;
    height: 15px;
    box-shadow: 0 0 8px color-mix(in srgb, var(--span) 65%, transparent);
}

.new-title::after {
    opacity: .8;
}


/* ---------- KARTA SKRZYNKI ---------- */

#cases .case-block {
    width: 255px;
    min-height: 295px;
    margin: 7px;
    padding: 14px 12px 18px;

    border-color: color-mix(in srgb, #555 30%, transparent);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, .16),
        inset 0 1px 0 rgba(255, 255, 255, .018);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        background-color .25s ease;
}

#cases .case-block:hover {
    transform: translateY(-5px);

    border-color: color-mix(in srgb, var(--span) 48%, #383838);

    background-color: color-mix(in srgb, var(--card) 96%, #fff 4%);

    box-shadow:
        0 16px 38px rgba(0, 0, 0, .30),
        0 0 18px color-mix(in srgb, var(--span) 9%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, .03);
}

#cases .case-block a.case-link {
    padding: 2px 0 0;
}


/* ---------- GRAFIKA SKRZYNKI ---------- */

#cases .case-block span.case-img-wrap {
    height: 175px;
    overflow: visible;
}

#cases .case-block span.case-img-wrap::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12px;

    width: 145px;
    height: 58px;

    transform: translateX(-50%);
    border-radius: 50%;

    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, .07) 0%,
        rgba(239, 27, 36, .035) 40%,
        transparent 72%
    );

    filter: blur(13px);
    opacity: .65;
    pointer-events: none;
}

#cases .case-block span.case-img-wrap .case-img {
    position: relative;
    z-index: 1;

    max-width: 96%;
    max-height: 175px;

    filter: drop-shadow(0 9px 12px rgba(0, 0, 0, .34));

    transition:
        filter .25s ease,
        transform .25s ease;
}

/* Stare scale(1.1) było trochę agresywne */
#cases .case-block a.case-link:hover span.case-img-wrap {
    transform: scale(1.045);
}

#cases .case-block:hover span.case-img-wrap .case-img {
    filter:
        drop-shadow(0 12px 15px rgba(0, 0, 0, .40))
        brightness(1.035);
}


/* ---------- TEKST POD GRAFIKĄ ---------- */

#cases .case-block span.case-span-wrap {
    margin-top: 7px;
    gap: 2px;
}

#cases .case-block span.case-span-wrap .case-name {
    min-height: 33px;
    max-width: calc(100% - 8px);

    padding: .36rem .72rem;

    border-left-width: 2px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .03);

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

#cases .case-block:hover span.case-span-wrap .case-name {
    background: linear-gradient(
        90deg,
        rgba(12, 7, 8, .96),
        rgba(24, 12, 14, .80)
    );

    border-left-color: #ff252f;
}

span.case-open {
    margin: .15rem auto .45rem;
    font-size: 11px;
    line-height: 1.2;
}


/* ---------- CENA / PRZYCISK ---------- */

#cases .case-block span.case-span-wrap .case-price {
    min-width: 7.4rem;
    height: 38px;
    padding-inline: 1.1rem;

    font-size: 13px;
    letter-spacing: .01em;
}

#cases .case-block span.case-span-wrap .case-price::before {
    background: linear-gradient(
        135deg,
        rgba(61, 8, 11, .96),
        rgba(12, 10, 11, .99)
    );

    border-color: rgba(239, 27, 36, .28);
}

#cases .case-block:hover span.case-span-wrap .case-price {
    transform: translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, .32),
        0 0 12px rgba(239, 27, 36, .08);
}

#cases .case-block:hover span.case-span-wrap .case-price::before {
    background: linear-gradient(
        135deg,
        rgba(86, 10, 14, .98),
        rgba(18, 9, 10, .99)
    );

    border-color: rgba(239, 27, 36, .52);
}


/* ---------- RESPONSYWNOŚĆ ---------- */

@media (max-width: 1199.98px) {
    #cases .case-block {
        width: 235px;
        min-height: 280px;
        margin: 6px;
    }

    #cases .case-block span.case-img-wrap {
        height: 160px;
    }

    #cases .case-block span.case-img-wrap .case-img {
        max-height: 160px;
    }
}

@media (max-width: 991.99px) {
    .cases-section__title {
        margin: 18px 0 12px;
    }

    .new-title {
        font-size: 17px;
        line-height: 21px;
    }

    #cases .case-block {
        width: 215px;
        min-height: 265px;
        padding: 11px 9px 14px;
    }

    #cases .case-block span.case-img-wrap {
        height: 145px;
    }

    #cases .case-block span.case-img-wrap .case-img {
        max-height: 145px;
    }
}

@media (max-width: 575.98px) {
    .new-title {
        font-size: 15px;
        line-height: 19px;
    }

    .new-title::before {
        height: 13px;
    }

    #cases .case-block {
        width: min(230px, calc(100% - 16px));
        min-height: 260px;
        margin: 6px 4px;
    }
}


/* ============================================================
   TerroCS CASES — LAYOUT V3
   Mocniejsza przebudowa katalogu skrzynek.
   ============================================================ */

:root {
    --cases-shell-width: 1180px;
    --cases-grid-width: 1040px;
}

/* ------------------------------------------------------------
   WSPÓLNA SZEROKOŚĆ HUD + KATALOG
   ------------------------------------------------------------ */

.cases-live-feed,
.userbar__cases,
#cases.cases-catalog {
    width: min(100%, var(--cases-shell-width));
    margin-left: auto;
    margin-right: auto;
}

.cases-main-block {
    padding-inline: 1rem;
}

/* ------------------------------------------------------------
   LIVE DROP
   ------------------------------------------------------------ */

.cases-live-feed {
    padding: 0;
    overflow: hidden;
    border-color: rgba(255, 255, 255, .055);
}

.cases-live-feed__title {
    height: 30px;
    padding: 0 11px;
margin-left: 18px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    gap: 7px;

    font-family: 'Anton', var(--font-family-1), sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .045em;
    text-transform: uppercase;

    color: rgba(255, 255, 255, .74);

    border-bottom: 1px solid rgba(255, 255, 255, .045);

    background:
        linear-gradient(90deg, rgba(239, 27, 36, .06), transparent 22%),
        rgba(255, 255, 255, .008);
}

.cases-live-feed__dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;

    border-radius: 50%;
    background: var(--span);
    box-shadow: 0 0 7px color-mix(in srgb, var(--span) 80%, transparent);
}

.cases-live-feed .live-list-wrap {
    padding: 6px;
}

.cases-live-feed .live-list {
    align-items: stretch;
}

.cases-main-block .cases-live-feed .live-list .live-item .live-link {
    width: 112px;
    height: 78px;
    padding-bottom: 9px;
}

.cases-main-block .cases-live-feed .live-list .live-item .live-link .live-inner-wrap .live-inner .live-image-wrap .live-image {
    height: 50px;
}

.cases-main-block .cases-live-feed .live-list .live-item .live-link .live-inner-wrap .live-inner .live-title {
    font-size: 10px;
}


/* ------------------------------------------------------------
   USERBAR
   ------------------------------------------------------------ */

.userbar__cases {
    margin-top: .35rem;
    margin-bottom: .8rem;
    padding: .35rem 0 .6rem;

    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.flexmenu_cases {
    padding: 0;
}

.case_balance_name {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008)),
        rgba(9, 9, 10, .78);

    border-color: rgba(255, 255, 255, .055);
}


/* ------------------------------------------------------------
   KATALOG
   ------------------------------------------------------------ */

#cases.cases-catalog {
    padding-bottom: 18px;
}

#cases .cases-section {
    width: 100%;
    margin: 0 auto 34px;
}

#cases .cases-section:last-child {
    margin-bottom: 10px;
}

#cases .cases-section__title {
    width: 100%;
    margin: 18px 0 16px;
}

#cases .new-title {
    font-size: 15px;
}

#cases .new-title::after {
    background: linear-gradient(
        90deg,
        rgba(239, 27, 36, .52) 0%,
        rgba(239, 27, 36, .13) 22%,
        rgba(255, 255, 255, .035) 64%,
        transparent 100%
    );
}


/* ------------------------------------------------------------
   GRID PŁATNYCH SKRZYNEK
   ------------------------------------------------------------ */

#cases .cases-section__grid {
    width: min(100%, var(--cases-grid-width));
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
}

#cases .cases-section__grid .case-block {
    width: 100%;
    min-width: 0;
    min-height: 300px;
    margin: 0;
    padding: 13px 12px 16px;

    display: block;
}

#cases .cases-section__grid .case-link {
    height: 100%;

    display: flex;
    flex-direction: column;
}

#cases .cases-section__grid .case-img-wrap {
    height: 182px;
    flex: 0 0 182px;
}

#cases .cases-section__grid .case-img-wrap .case-img {
    max-width: 98%;
    max-height: 182px;
}

#cases .cases-section__grid .case-span-wrap {
    margin-top: auto;
    padding-top: 3px;
}

#cases .cases-section__grid .case-name {
    min-height: 34px;
}


/* ------------------------------------------------------------
   DARMOWA SKRZYNIA — FEATURED PANEL
   ------------------------------------------------------------ */

#cases .cases-section--featured {
    margin-bottom: 30px;
}

#cases .cases-section--featured .cases-section__grid {
    width: min(100%, 790px);
    grid-template-columns: 1fr;
}

#cases .case-block--featured {
    min-height: 220px;
    padding: 0;

    overflow: hidden;

    background:
        radial-gradient(circle at 24% 48%, rgba(255, 180, 35, .085), transparent 31%),
        linear-gradient(110deg, rgba(255, 255, 255, .016), rgba(255, 255, 255, .003)),
        var(--card);

    border-color: rgba(255, 180, 35, .13);

    clip-path: polygon(
        16px 0,
        100% 0,
        100% calc(100% - 16px),
        calc(100% - 16px) 100%,
        0 100%,
        0 16px
    );
}

#cases .case-block--featured:hover {
    border-color: rgba(255, 190, 45, .30);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, .30),
        0 0 25px rgba(255, 170, 20, .055);
}

#cases .case-block--featured .case-link {
    min-height: 220px;
    padding: 18px 28px;

    display: grid;
    grid-template-columns: minmax(250px, 42%) 1fr;
    grid-template-areas: "image info";
    align-items: center;
    column-gap: 26px;
}

#cases .case-block--featured .case-img-wrap {
    grid-area: image;

    width: 100%;
    height: 184px;
    flex: none;

    display: flex;
    align-items: center;
    justify-content: center;
}

#cases .case-block--featured .case-img-wrap::before {
    width: 205px;
    height: 82px;
    bottom: 22px;

    background: radial-gradient(
        ellipse at center,
        rgba(255, 192, 45, .19) 0%,
        rgba(239, 80, 27, .045) 43%,
        transparent 73%
    );

    opacity: .9;
}

#cases .case-block--featured .case-img-wrap .case-img {
    max-width: 95%;
    max-height: 178px;

    filter:
        drop-shadow(0 15px 19px rgba(0, 0, 0, .36))
        drop-shadow(0 0 9px rgba(255, 180, 30, .06));
}

#cases .case-block--featured .case-span-wrap {
    grid-area: info;

    width: 100%;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
}

#cases .case-block--featured .case-featured-kicker {
    display: inline-flex;
    align-items: center;

    padding: 4px 8px;

    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .055em;

    color: #f8c95d;
    background: rgba(197, 139, 28, .10);
    border: 1px solid rgba(197, 139, 28, .18);

    text-transform: uppercase;

    clip-path: polygon(
        5px 0,
        100% 0,
        100% calc(100% - 5px),
        calc(100% - 5px) 100%,
        0 100%,
        0 5px
    );
}

#cases .case-block--featured .case-name {
    max-width: 100%;
    min-height: unset;
    margin: 0;
    padding: 0;

    justify-content: flex-start;

    font-size: 24px;
    line-height: 1.08;
    letter-spacing: .025em;

    color: #fff;

    background: none;
    border: 0;
    box-shadow: none;
}

#cases .case-block--featured:hover .case-name {
    background: none;
    border: 0;
}

#cases .case-block--featured .case-open {
    margin: 0 0 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

#cases .case-block--featured .case-price {
    min-width: 150px;
    height: 40px;
    margin-top: 2px;

    font-size: 12px;
}

#cases .case-block--featured .case-cooldown-label {
    margin-top: 2px;

    color: var(--text-secondary);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

#cases .case-block--featured .case-featured-timer {
    position: static !important;
    min-height: 34px;

    color: #fff;
}


/* ------------------------------------------------------------
   MIKRODETAL KART PŁATNYCH
   ------------------------------------------------------------ */

#cases .cases-section:not(.cases-section--featured) .case-block {
    background:
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, .027), transparent 34%),
        var(--card);
}

#cases .cases-section:not(.cases-section--featured) .case-block:hover {
    background:
        radial-gradient(circle at 50% 34%, rgba(239, 27, 36, .035), transparent 38%),
        color-mix(in srgb, var(--card) 97%, #fff 3%);
}


/* ------------------------------------------------------------
   RESPONSYWNOŚĆ
   ------------------------------------------------------------ */

@media (max-width: 1199.98px) {
    :root {
        --cases-shell-width: 100%;
        --cases-grid-width: 920px;
    }

    #cases .cases-section__grid {
        gap: 14px;
    }
}

@media (max-width: 991.98px) {
    #cases .cases-section__grid {
        width: min(100%, 720px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #cases .cases-section--featured .cases-section__grid {
        width: min(100%, 720px);
        grid-template-columns: 1fr;
    }

    #cases .case-block--featured .case-link {
        grid-template-columns: minmax(220px, 40%) 1fr;
        padding: 16px 20px;
        column-gap: 18px;
    }

    #cases .case-block--featured .case-name {
        font-size: 21px;
    }
}

@media (max-width: 650px) {
    .cases-main-block {
        padding-inline: .45rem;
    }

    .cases-live-feed__title {
        height: 28px;
    }

    #cases .cases-section {
        margin-bottom: 26px;
    }

    #cases .cases-section__grid {
        width: min(100%, 360px);
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #cases .case-block--featured .case-link {
        min-height: 0;
        padding: 16px;

        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "info";

        row-gap: 5px;
    }

    #cases .case-block--featured .case-img-wrap {
        height: 155px;
    }

    #cases .case-block--featured .case-img-wrap .case-img {
        max-height: 150px;
    }

    #cases .case-block--featured .case-span-wrap {
        align-items: center;
        text-align: center;
    }

    #cases .case-block--featured .case-name {
        justify-content: center;
        font-size: 20px;
        text-align: center;
    }
}

/* =========================================================
   4 SKRZYNKI W RZĘDZIE - tylko zwykłe kategorie
   Darmowej skrzynki NIE rusza
   ========================================================= */

#cases .cases-section:not(.cases-section--featured) .cases-section__grid {
    width: min(100%, 1080px);
    margin-left: auto;
    margin-right: auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* karty dopasowują się do 4 kolumn */
#cases .cases-section:not(.cases-section--featured) .case-block {
    width: 100%;
    min-width: 0;
    margin: 0;
}


/* 3 kolumny na trochę mniejszych ekranach */
@media (max-width: 1199.98px) {
    #cases .cases-section:not(.cases-section--featured) .cases-section__grid {
        width: min(100%, 820px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* 2 kolumny */
@media (max-width: 991.98px) {
    #cases .cases-section:not(.cases-section--featured) .cases-section__grid {
        width: min(100%, 570px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* 1 kolumna na telefonie */
@media (max-width: 650px) {
    #cases .cases-section:not(.cases-section--featured) .cases-section__grid {
        width: min(100%, 280px);
        grid-template-columns: 1fr;
    }
}

/* Pasek gracza do prawej */
.userbar__cases {
    justify-content: flex-end;
}

.userbar__cases .flexmenu_cases {
    width: auto;
    margin-left: auto;
    padding-right: 0;
}

/* =========================================================
   LIVE DROP + USERBAR W JEDNYM NAGŁÓWKU
   ========================================================= */

.cases-live-feed {
    padding: 0;

    background: rgba(12, 12, 14, 0.82);

    border: 1px solid rgba(255, 255, 255, 0.055);

    overflow: hidden;
}


/* GÓRNY PASEK */

.cases-live-feed__header {
    width: 100%;
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 7px 10px 7px 14px;

    background:
        linear-gradient(
            90deg,
            rgba(239, 27, 36, 0.045),
            transparent 28%
        ),
        rgba(8, 8, 9, 0.75);

    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


/* OSTATNIE WYGRANE */

.cases-live-feed__title {
    display: flex;
    align-items: center;
 margin-left: 18px;
    margin-right: 10px;
    flex: 0 0 auto;

    gap: 9px;

    height: auto;

    padding: 0;

    border: 0;

    background: none;

    font-family: 'Anton', var(--font-family-1), sans-serif;

    font-size: 13px;
    line-height: 1;

    font-weight: 400;

    letter-spacing: 0.04em;

    color: #fff;

    text-transform: uppercase;
}


.cases-live-feed__dot {
    width: 3px;
    height: 17px;

    border-radius: 0;

    background: var(--span);

    box-shadow:
        0 0 7px rgba(239, 27, 36, 0.55);
}


/* USERBAR W NAGŁÓWKU */

.cases-live-feed__header .userbar__cases {
    width: auto;

    margin: 0;
    padding: 0;

    border: 0;

    display: flex;

    justify-content: flex-end;

    flex: 0 0 auto;
}


.cases-live-feed__header .flexmenu_cases {
    width: auto;

    margin: 0;
    padding: 0;

    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: flex-end;

    gap: 7px;
}


/* PROFIL + SALDO */

.cases-live-feed__header .case_balance_name {
    display: flex;

    align-items: center;

    gap: 9px;

    padding: 0;

    background: none;

    border: 0;
}


.cases-live-feed__header .case_balance_name img {
    width: 36px;
    height: 36px;

    border-radius: 4px;

    object-fit: cover;

    border: 1px solid rgba(255, 255, 255, 0.08);
}


.cases-live-feed__header .secondblock__cases {
    min-width: 100px;

    gap: 1px;
}


.cases-live-feed__header .username__cases {
    font-size: 12px;

    line-height: 14px;

    color: #fff;
}


.cases-live-feed__header .userbalance_cases {
    font-size: 11px;

    line-height: 13px;

    gap: 4px;
}


.cases-live-feed__header .userbalance_cases svg {
    width: 11px;
    height: 11px;
}


/* DOŁADUJ */

.cases-live-feed__header .pay-link {
    height: 36px;

    padding: 0 13px;

    border-radius: 3px;

    white-space: nowrap;
}


/* INWENTARZ / POWRÓT */

.cases-live-feed__header .case_userbar_btn {
    display: flex;

    align-items: center;

    gap: 6px;
}


.cases-live-feed__header .case_userbar_btn .button {
    height: 36px;

    padding: 0 13px;

    border-radius: 3px;

    white-space: nowrap;
}


/* LISTA DROPÓW */

.cases-live-feed > .live-list-wrap {
    width: 100%;

    padding: 6px 7px 7px;
}


.cases-live-feed > .live-list-wrap .live-list {
    width: 100%;

    align-items: stretch;
}


/* TELEFON / MAŁA SZEROKOŚĆ */

@media (max-width: 991.98px) {

    .cases-live-feed__header {
        flex-wrap: wrap;

        gap: 8px;

        padding: 9px;
    }

    .cases-live-feed__header .userbar__cases {
        width: 100%;
    }

    .cases-live-feed__header .flexmenu_cases {
        width: 100%;

        justify-content: space-between;
    }

}


@media (max-width: 650px) {

    .cases-live-feed__header .flexmenu_cases {
        flex-wrap: wrap;
    }

    .cases-live-feed__header .case_balance_name {
        width: 100%;
    }

    .cases-live-feed__header .case_userbar_btn {
        margin-left: auto;
    }

}

/* FIX HOVER LIVE DROP */

.cases-main-block .cases-live-feed .live-list .live-item {
    overflow: hidden;
}

.cases-main-block .cases-live-feed .live-list .live-item .live-link {
    height: 82px;
    overflow: hidden;
}

/* kafel nie podskakuje przy hoverze */
.cases-main-block .cases-live-feed .live-list .live-item .live-link:hover {
    transform: none;
}


/* pierwsza warstwa */
.cases-main-block .cases-live-feed .live-inner {
    height: 82px !important;
    padding-top: 5px !important;
}


/* warstwa po najechaniu */
.cases-main-block .cases-live-feed .live-hover {
    height: 82px !important;
    padding-top: 4px !important;
    overflow: hidden;
}


/* grafika skrzynki po hoverze */
.cases-main-block .cases-live-feed .live-hover .live-case-image {
    margin: 2px 0 !important;
}

.cases-main-block .cases-live-feed .live-hover .live-case-image img {
    height: 45px !important;
    max-height: 45px !important;
}


/* tekst pod skrzynką */
.cases-main-block .cases-live-feed .live-hover .live-title {
    margin-top: 1px !important;
    padding: 0 5px !important;

    font-size: 9px !important;
    line-height: 11px !important;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

