/* ============================================
   GLOBAL RESET & BASE
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Barlow Condensed", sans-serif;
    background: #090b12;
    color: #fff;
    overflow-x: hidden;
}

.overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 70% 50%, #8b121b44, transparent 55%),
        radial-gradient(circle at 30% 80%, #8b121b22, transparent 40%);
    z-index: -2;
    background:
        linear-gradient(rgba(7, 9, 15, 0.944), rgba(7, 9, 15, 0.96)),
        url("img/gb.webp") center/cover no-repeat;
}

/* ============================================
   SCROLLBAR
============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #11131f;
}

::-webkit-scrollbar-thumb {
    background: #ff3131;
    border-radius: 30px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff4e4e;
}

/* ============================================
   HEADER
============================================ */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 70px;
    z-index: 100;
}

.logo img {
    width: 100px;
}

nav {
    display: flex;
    gap: 65px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 19px;
    letter-spacing: 1px;
    font-weight: 700;
    transition: 0.3s;
}

nav a:hover {
    color: #cc2222;
}

.right-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-btn {
    width: 150px;
    height: 52px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    background: #8b121b;
    transition: 0.35s;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #cc2222;
    transition: 0.4s;
    z-index: -1;
}

.login-btn:hover::before {
    left: 0;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 18, 27, 0.3);
}

.login-btn.is-logged-in {
    background: #1a1d2e;
    border: 1px solid #333;
    width: auto;
    min-width: 150px;
    padding: 0 16px;
}

.login-btn.is-logged-in::before {
    display: none;
}

.login-name {
    font-size: 15px;
}

.language {
    width: 165px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    transition: 0.3s;
}

.language:hover {
    border-color: rgba(139, 18, 27, 0.3);
    background: rgba(139, 18, 27, 0.05);
}

.language img {
    width: 24px;
}

.language i {
    color: #666;
}

/* ============================================
   HERO
============================================ */
.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.content {
    text-align: center;
    z-index: 5;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
}

.subtitle {
    display: inline-block;
    color: #8b121b;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 25px;
    padding: 8px 25px;
    border: 1px solid rgba(139, 18, 27, 0.15);
}

.content h1 {
    font-size: 80px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    background: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content p {
    width: 700px;
    max-width: 100%;
    margin: 0 auto 30px;
    color: #8d8d98;
    font-size: 28px;
    line-height: 1.4;
}

.main-btn {
    width: 300px;
    height: 68px;
    background: linear-gradient(135deg, #8b121b, #6b0e15);
    border: none;
    color: white;
    font-size: 25px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    transition: 0.35s;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(139, 18, 27, 0.15);
}

.main-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transform: rotate(45deg);
    transition: 0.6s;
}

.main-btn:hover::after {
    left: 100%;
}

.main-btn:hover {
    transform: translateY(-4px);
    background: #cc2222;
    box-shadow: 0 18px 45px rgba(139, 18, 27, 0.35);
}

.main-btn i {
    transition: 0.3s;
}

.main-btn:hover i {
    transform: translateX(8px);
}

.hero-image {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    width: 45%;
    height: 85%;
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 0 60px rgba(139, 18, 27, 0.12));
}

.socials {
    margin-top: 45px;
    display: flex;
    gap: 14px;
    justify-content: center;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #666;
    font-size: 17px;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
}

.socials a:hover {
    color: #cc2222;
    border-color: rgba(139, 18, 27, 0.3);
    transform: translateY(-5px) scale(1.1);
    background: rgba(139, 18, 27, 0.05);
    box-shadow: 0 10px 30px rgba(139, 18, 27, 0.1);
}

.shadow {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 130px;
    pointer-events: none;
    background: linear-gradient(to bottom, #0a0c1400 0%, #0a0c14 100%);
}

/* ============================================
   ABOUT EVENT
============================================ */
.about-event {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: #0a0c14;
}

.about-event::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #5b4dff11, transparent 60%);
    pointer-events: none;
}

.container {
    width: 1200px;
    margin: auto;
    max-width: 100%;
    padding: 0 20px;
}

.about-event h2 {
    color: #fff;
    font-size: 74px;
    font-family: "Oswald", sans-serif;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 40px;
    background: linear-gradient(145deg, #171722, #11111b);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, transparent, rgba(123, 97, 255, 0.08));
}

.label {
    color: #775dff;
    font-family: "Oswald", sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.card h3 {
    margin-top: 12px;
    color: white;
    font-family: "Oswald", sans-serif;
    font-size: 44px;
    line-height: 1.05;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.card p {
    margin-top: 25px;
    max-width: 420px;
    color: #cfcfd7;
    line-height: 1.8;
    font-size: 15px;
    position: relative;
    z-index: 2;
}

.sd-text {
    width: 280px;
}

.character {
    position: absolute;
    right: -120px;
    top: 100px;
    height: 330px;
    z-index: 1;
    pointer-events: none;
}

.character img {
    height: 100%;
    width: auto;
}

.banner {
    margin-top: 30px;
    height: 300px;
    background: linear-gradient(135deg, #6548ff, #2d215f);
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg,
            transparent 0 40px,
            rgba(255, 255, 255, 0.04) 40px 80px);
}

.banner .left {
    position: relative;
    z-index: 2;
    padding-left: 45px;
}

.banner .left span {
    display: block;
    color: #fff;
    font-family: "Oswald", sans-serif;
    font-size: 42px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.banner .left a {
    width: 280px;
    height: 70px;
    background: #fff;
    color: #6a4cff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: "Oswald", sans-serif;
    font-size: 22px;
    transition: 0.3s;
}

.banner .left a:hover {
    transform: translateY(-4px);
}

.banner .box-img {
    position: relative;
    z-index: 2;
}

.banner .box-img img {
    height: 220px;
    margin-right: 40px;
    rotate: calc(10deg);
}

/* ============================================
   CASES COUNTER
============================================ */
.cases-counter {
    background: #0c0e18;
    border-top: 1px solid #1a1d2e;
    border-bottom: 1px solid #1a1d2e;
    padding: 32px 20px 36px;
    text-align: center;
}

.cases-counter__label {
    font-size: 13px;
    letter-spacing: 3px;
    color: #ff3131;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cases-counter__value {
    font-size: clamp(52px, 11vw, 72px);
    line-height: 1.1;
    font-weight: 800;
    font-family: "Oswald", sans-serif;
    color: #fff;
    letter-spacing: -2px;
    margin: 0;
}

.cases-counter__total {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    letter-spacing: 1px;
}

/* ============================================
   SPIN SECTION
============================================ */
.background {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top,
            #1b1d2d 0%,
            #0c0d16 55%,
            #08090f 100%);
    z-index: -3;
}

.background::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
}

.background::after {
    content: "";
    position: absolute;
    width: 900px;
    height: 900px;
    left: 50%;
    top: -500px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #ff2b2b;
    filter: blur(180px);
    opacity: 0.1;
}

.spin_header {
    width: 100%;
    background-color: #0a0c14;
    border-top: none;
}

.spin {
    width: min(1700px, 95%);
    margin: auto;
    padding-top: 48px;
    padding-bottom: 80px;
    text-align: center;
}

.top-text {
    color: #ff4040;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.spin h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 82px);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.desc {
    margin-top: 20px;
    margin-bottom: 0;
    color: #9d9d9d;
    font-size: clamp(16px, 2.5vw, 23px);
    line-height: 1.5;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.wheel-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 35px;
    width: 100%;
    padding: 28px 0 25px;
}

.wheel {
    display: flex;
    align-items: center;
    gap: 30px;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.wheel.is-spinning .item {
    transition: none;
    pointer-events: none;
}

.wheel.is-spinning .item img {
    animation: none !important;
}

.wheel.is-spinning .item:hover {
    transform: none;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.04),
        0 10px 25px rgba(0, 0, 0, 0.35);
}

.pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    margin: 0;
    z-index: 50;
    pointer-events: none;
}

.pointer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 22px solid #ff2d2d;
    filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.8));
}

.pointer::after {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 0;
    width: 4px;
    border-radius: 50px;
    background: #ff3131;
    box-shadow:
        0 0 15px #ff3131,
        0 0 35px rgba(255, 0, 0, 0.7);
}

.wheel-wrapper::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 220px;
    height: 100%;
    z-index: 20;
    pointer-events: none;
    background: linear-gradient(90deg,
            #0c0d16 0%,
            rgba(12, 13, 22, 0.95) 20%,
            rgba(12, 13, 22, 0) 100%);
}

.wheel-wrapper::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 220px;
    height: 100%;
    z-index: 20;
    pointer-events: none;
    background: linear-gradient(-90deg,
            #0c0d16 0%,
            rgba(12, 13, 22, 0.95) 20%,
            rgba(12, 13, 22, 0) 100%);
}

#spinBtn {
    margin-top: 55px;
    width: 310px;
    height: 68px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ff2626, #ff4b2b);
    box-shadow: 0 12px 40px rgba(255, 50, 50, 0.35);
    transition: 0.25s;
}

#spinBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 55px rgba(255, 50, 50, 0.55);
}

#spinBtn:active {
    transform: scale(0.97);
}

#spinBtn.spinning {
    pointer-events: none;
    opacity: 0.65;
    cursor: default;
}

#spinBtn.claim {
    background: linear-gradient(90deg, #28b44c, #35d463);
    box-shadow: 0 15px 40px rgba(40, 180, 76, 0.45);
}

#spinBtn.claim:hover {
    box-shadow: 0 20px 55px rgba(40, 180, 76, 0.65);
}

/* ============================================
   ITEM CARD
============================================ */
.item {
    width: 220px;
    min-width: 220px;
    height: 350px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background: inherit;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: 0.35s;
    cursor: default;
    user-select: none;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.04),
        0 10px 25px rgba(0, 0, 0, 0.35);
}

.item:hover {
    transform: translateY(-8px);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.08),
        0 20px 45px rgba(0, 0, 0, 0.55);
}

.item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.04),
            transparent 35%,
            rgba(0, 0, 0, 0.4));
}

.item::after {
    content: "";
    position: absolute;
    top: -150px;
    left: -120px;
    width: 120px;
    height: 420px;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(28deg);
    transition: 0.8s;
}

.item:hover::after {
    left: 320px;
}

.item img {
    width: 180px;
    height: 140px;
    object-fit: contain;
    display: block;
    margin: 28px auto 10px;
    transition: 0.35s;
    filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.55));
    animation: float 3s ease-in-out infinite;
}

.item:hover img {
    transform: scale(1.08) rotate(-2deg);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

.item-name {
    padding: 0 18px;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.item-type {
    margin-top: 8px;
    color: #8f93a7;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.item-price {
    margin-top: 18px;
    font-size: 23px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

/* Mystery roll cards — colored silhouettes */
.item.mystery {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(12, 13, 22, 0.92));
}

.item.mystery img {
    position: relative;
    z-index: 1;
    width: 78%;
    height: auto;
    max-height: 118px;
    object-fit: contain;
    opacity: 0.98;
}

.item.mystery .mystery-q {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    z-index: 3;
}

.item.mystery.mystery-knife {
    border-color: rgba(234, 189, 52, 0.5);
    background: linear-gradient(180deg, rgba(234, 189, 52, 0.16), rgba(12, 13, 22, 0.92));
    box-shadow: inset 0 0 28px rgba(234, 189, 52, 0.12);
}

.item.mystery.mystery-knife img {
    filter: brightness(0) saturate(100%) invert(84%) sepia(68%) saturate(620%) hue-rotate(6deg) brightness(1.08) drop-shadow(0 0 16px rgba(234, 189, 52, 0.65));
}

.item.mystery.mystery-knife .mystery-q {
    color: #eabd34;
    text-shadow: 0 0 30px rgba(234, 189, 52, 1);
}

.item.mystery.mystery-gloves {
    border-color: rgba(255, 170, 70, 0.4);
    background: linear-gradient(180deg, rgba(255, 140, 50, 0.12), rgba(12, 13, 22, 0.92));
    box-shadow: inset 0 0 24px rgba(255, 140, 50, 0.08);
}

.item.mystery.mystery-gloves img {
    filter: brightness(0) saturate(100%) invert(72%) sepia(55%) saturate(700%) hue-rotate(350deg) brightness(1.08) drop-shadow(0 0 14px rgba(255, 150, 60, 0.5));
}

.item.mystery.mystery-gloves .mystery-q {
    color: #ffaa44;
    text-shadow: 0 0 28px rgba(255, 150, 60, 0.9);
}

.item.mystery.mystery-red {
    border-color: rgba(235, 75, 75, 0.45);
    background: linear-gradient(180deg, rgba(235, 75, 75, 0.14), rgba(12, 13, 22, 0.92));
    box-shadow: inset 0 0 24px rgba(235, 75, 75, 0.1);
}

.item.mystery.mystery-red img {
    filter: brightness(0) saturate(100%) invert(36%) sepia(95%) saturate(2200%) hue-rotate(338deg) brightness(1.05) drop-shadow(0 0 14px rgba(235, 75, 75, 0.55));
}

.item.mystery.mystery-red .mystery-q {
    color: #ff5555;
    text-shadow: 0 0 28px rgba(255, 85, 85, 0.9);
}

.item.mystery.mystery-blue {
    border-color: rgba(75, 105, 255, 0.42);
    background: linear-gradient(180deg, rgba(75, 105, 255, 0.12), rgba(12, 13, 22, 0.92));
    box-shadow: inset 0 0 24px rgba(75, 105, 255, 0.08);
}

.item.mystery.mystery-blue img {
    filter: brightness(0) saturate(100%) invert(42%) sepia(90%) saturate(1800%) hue-rotate(205deg) brightness(1.05) drop-shadow(0 0 14px rgba(75, 105, 255, 0.5));
}

.item.mystery.mystery-blue .mystery-q {
    color: #6b8cff;
    text-shadow: 0 0 28px rgba(107, 140, 255, 0.9);
}

.item.mystery.mystery-gray {
    border-color: rgba(176, 195, 217, 0.32);
    background: linear-gradient(180deg, rgba(176, 195, 217, 0.1), rgba(12, 13, 22, 0.92));
    box-shadow: inset 0 0 24px rgba(176, 195, 217, 0.06);
}

.item.mystery.mystery-gray img {
    filter: brightness(0) saturate(100%) invert(82%) sepia(12%) saturate(380%) hue-rotate(176deg) brightness(0.95) drop-shadow(0 0 12px rgba(176, 195, 217, 0.35));
}

.item.mystery.mystery-gray .mystery-q {
    color: #b0c3d9;
    text-shadow: 0 0 24px rgba(176, 195, 217, 0.75);
}

.item.mystery.winner {
    transform: scale(1.02);
}

.item.loser {
    opacity: 0.35;
    filter: grayscale(0.4);
}

#wcase-popup.wcase-popup--claim {
    max-width: 360px;
    max-height: min(88vh, 680px);
    overflow-y: auto;
    padding: 14px 16px 16px;
}

.wcase-prize-preview.item.mystery {
    width: 140px;
    height: 104px;
    min-width: 0;
    margin: 0 auto 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.wcase-prize-preview.item.mystery img {
    width: 70%;
    max-height: 68px;
}

.wcase-prize-preview.item.mystery .mystery-q {
    font-size: 38px;
}

.wcase-prize-pool {
    margin: 10px 0 12px;
    text-align: left;
}

.wcase-prize-pool__label {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.wcase-prize-pool__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    max-height: 168px;
    overflow-y: auto;
    padding: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.wcase-pool-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 7px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    text-align: left;
    min-width: 0;
}

.wcase-pool-row__index {
    display: none;
}

.wcase-pool-row__bar {
    flex-shrink: 0;
    width: 3px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.wcase-pool-row img {
    flex-shrink: 0;
    width: 44px;
    height: 30px;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.wcase-pool-row__name {
    flex: 1;
    min-width: 0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wcase-pool-row--knife {
    border-color: rgba(234, 189, 52, 0.3);
    background: linear-gradient(90deg, rgba(234, 189, 52, 0.1), rgba(0, 0, 0, 0.28));
}

.wcase-pool-row--knife .wcase-pool-row__bar {
    background: #eabd34;
    box-shadow: 0 0 10px rgba(234, 189, 52, 0.5);
}

.wcase-pool-row--gloves,
.wcase-pool-row--weapon-red {
    border-color: rgba(235, 75, 75, 0.3);
    background: linear-gradient(90deg, rgba(235, 75, 75, 0.1), rgba(0, 0, 0, 0.28));
}

.wcase-pool-row--gloves .wcase-pool-row__bar,
.wcase-pool-row--weapon-red .wcase-pool-row__bar {
    background: #eb4b4b;
    box-shadow: 0 0 10px rgba(235, 75, 75, 0.45);
}

.wcase-pool-row--weapon-blue {
    border-color: rgba(75, 105, 255, 0.3);
    background: linear-gradient(90deg, rgba(75, 105, 255, 0.1), rgba(0, 0, 0, 0.28));
}

.wcase-pool-row--weapon-blue .wcase-pool-row__bar {
    background: #4b69ff;
    box-shadow: 0 0 10px rgba(75, 105, 255, 0.45);
}

@media (max-width: 560px) {
    #wcase-popup.wcase-popup--claim {
        max-width: 100%;
    }

    .wcase-prize-pool__list {
        grid-template-columns: 1fr;
        max-height: 150px;
    }

    .wcase-pool-row img {
        width: 52px;
        height: 38px;
    }

    .wcase-pool-row__name {
        font-size: 11px;
    }
}

.wcase-prize-preview--mystery {
    position: relative;
    width: 200px;
    height: 150px;
    margin: 4px auto 20px;
    border-radius: 14px;
    border: 2px solid rgba(240, 208, 96, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(240, 208, 96, 0.08), rgba(12, 13, 22, 0.95));
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.wcase-prize-preview--mystery img {
    width: 140px;
    height: 110px;
    object-fit: contain;
    filter: brightness(0.72) saturate(1.1) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
    opacity: 1;
    margin: 0;
    position: relative;
    z-index: 1;
}

.wcase-mystery-q {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    color: #f0d060;
    text-shadow: 0 0 24px rgba(240, 208, 96, 0.85);
    pointer-events: none;
    z-index: 2;
}

#wcase-delivery-timer {
    color: #f0d060;
    font-weight: 700;
}

.wcase-profile-field {
    margin: 0 auto 14px;
    max-width: 340px;
    text-align: left;
}

.wcase-profile-input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.wcase-profile-input:focus {
    outline: none;
    border-color: rgba(27, 157, 240, 0.55);
    box-shadow: 0 0 0 2px rgba(27, 157, 240, 0.15);
}

.wcase-profile-input::placeholder {
    color: #666;
}

.wcase-profile-error {
    margin: 8px 0 0;
    color: #ff5c5c;
    font-size: 12px;
}

.wcase-popup-desc--tight {
    margin-bottom: 14px;
}

.csgo-opener.is-won-state .pointer {
    display: block;
}

.csgo-opener.is-won-state {
    padding: 20px 16px 28px;
}

.csgo-opener.is-won-state .top-text {
    display: none;
}

.csgo-opener.is-won-state #title {
    margin-bottom: 6px;
}

.csgo-opener.is-won-state .desc {
    margin-bottom: 14px;
    font-size: 15px;
}

.csgo-opener.is-won-state #spinBtn {
    margin-top: 18px;
}

.wcase-account-label {
    margin: 0 0 6px;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.wcase-account-id {
    margin: 0 0 8px;
    color: #f0d060;
    font-size: 15px;
    font-weight: 800;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.wcase-account-hint {
    margin: 0;
    color: #777;
    font-size: 12px;
    line-height: 1.45;
}

.wcase-popup-btn--ghost {
    margin-top: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #bbb;
    box-shadow: none;
}

.wcase-popup-btn--ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.wcase-win-badge--warn {
    background: rgba(255, 49, 49, 0.15);
    color: #ff3131;
    border: 1px solid rgba(255, 49, 49, 0.35);
}

.wcase-bag-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 16px;
    text-align: left;
}

.wcase-bag-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.wcase-bag-item img {
    width: 56px;
    height: 42px;
    object-fit: contain;
}

.wcase-bag-item__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wcase-bag-item__meta strong {
    font-size: 13px;
    color: #fff;
}

.wcase-bag-item__account,
.wcase-bag-item__timer {
    font-size: 11px;
    color: #888;
    word-break: break-all;
}

.wcase-bag-item__num {
    color: #ff3131;
    font-size: 12px;
    font-weight: 800;
}

.wcase-bag-empty {
    color: #888;
    font-size: 14px;
    margin: 8px 0 16px;
}

.rarity-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 7px;
}

/* Rarities */
.milspec {
    border-color: #4ea3ff;
}

.milspec .rarity-line {
    background: #4ea3ff;
}

.milspec:hover {
    box-shadow: 0 0 30px rgba(78, 163, 255, 0.45);
}

.restricted {
    border-color: #9c6dff;
}

.restricted .rarity-line {
    background: #9c6dff;
}

.restricted:hover {
    box-shadow: 0 0 30px rgba(156, 109, 255, 0.45);
}

.classified {
    border-color: #ff4fc7;
}

.classified .rarity-line {
    background: #ff4fc7;
}

.classified:hover {
    box-shadow: 0 0 35px rgba(255, 79, 199, 0.45);
}

.covert {
    border-color: #ff4040;
}

.covert .rarity-line {
    background: #ff4040;
}

.covert:hover {
    box-shadow: 0 0 38px rgba(255, 60, 60, 0.5);
}

.knife {
    border-color: #ffcb3b;
}

.knife .rarity-line {
    background: #ffcb3b;
}

.knife {
    background: linear-gradient(180deg, rgba(255, 205, 60, 0.08), #171926);
}

.knife:hover {
    box-shadow: 0 0 45px rgba(255, 210, 60, 0.6);
}

.winner {
    transform: scale(1.08) !important;
    opacity: 1 !important;
    filter: none !important;
    z-index: 99;
    animation: winnerGlow 1.2s infinite alternate;
}

@keyframes winnerGlow {
    from {
        box-shadow: 0 0 20px rgba(255, 70, 70, 0.3);
    }

    to {
        box-shadow: 0 0 55px rgba(255, 80, 80, 0.8);
    }
}

.loser {
    opacity: 0.18;
    filter: grayscale(1) blur(0.3px);
}

.fade {
    opacity: 0.18;
    filter: grayscale(1);
    transform: scale(0.92);
}

.win-title {
    color: #ffd54d;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.45);
}

.win-desc {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
}

.win-text {
    animation: fadeUp 0.8s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   LIVE DROP
============================================ */
.page {
    width: min(1800px, 95%);
    margin: auto;
    padding: 25px 0 80px;
}

.live-drop {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 40px;
}

.live-title {
    min-width: 130px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff5252;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 14px;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3131;
    box-shadow: 0 0 8px #ff3131, 0 0 20px #ff3131;
}

.live-track {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
}

.drop-item {
    width: 140px;
    height: 44px;
    padding: 5px 8px;
    background: #171925;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: 0.25s;
    animation: liveDrop 0.55s cubic-bezier(0.18, 1, 0.32, 1);
}

.drop-item:hover {
    transform: translateY(-3px);
}

@keyframes liveDrop {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(0.82);
        filter: blur(6px);
    }

    60% {
        transform: translateX(-4px) scale(1.03);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.drop-item img {
    width: 52px;
    height: 28px;
    object-fit: contain;
    pointer-events: none;
}

.drop-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drop-name {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
}

.drop-price {
    font-size: 11px;
    color: #9ea6b7;
}

.drop-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
}

.drop-item.knife::after {
    background: #ff2b5b;
}

.drop-item.covert::after {
    background: #ff4343;
}

.drop-item.classified::after {
    background: #ffc534;
}

.drop-item.restricted::after {
    background: #4da8ff;
}

.drop-item.milspec::after {
    background: #19dbc4;
}

/* ============================================
   CASE SECTION
============================================ */
.case-section {
    margin-top: 20px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.diamond {
    width: 10px;
    height: 10px;
    background: #ff4242;
    transform: rotate(45deg);
    box-shadow: 0 0 10px #ff4242;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
    gap: 18px;
}

.case-card {
    position: relative;
    overflow: hidden;
    background: #151823;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 250px;
    padding: 22px 18px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.28s;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 255, 255, 0.15);
}

.case-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
}

.chance {
    position: absolute;
    right: 18px;
    top: 18px;
    color: #bfc6d6;
    font-size: 14px;
    font-weight: 700;
}

.rarity {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.skin-image {
    width: 100%;
    height: 165px;
    object-fit: contain;
    margin-top: 0;
    transition: 0.35s;
}

.case-card:hover .skin-image {
    transform: scale(1.08);
}

.skin-name {
    margin-top: 16px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    padding: 0 6px;
}

.bottom-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
}

.case-card.roll-knife {
    background: linear-gradient(180deg, #2a2618, #161822);
}

.case-card.roll-knife::before {
    background: #eabd34;
}

.case-card.roll-knife .bottom-line {
    background: #eabd34;
}

.case-card.roll-red {
    background: linear-gradient(180deg, #2b1818, #161822);
}

.case-card.roll-red::before {
    background: #eb4b4b;
}

.case-card.roll-red .bottom-line {
    background: #eb4b4b;
}

.case-card.roll-blue {
    background: linear-gradient(180deg, #172338, #161822);
}

.case-card.roll-blue::before {
    background: #4b69ff;
}

.case-card.roll-blue .bottom-line {
    background: #4b69ff;
}

.case-card.knife {
    background: linear-gradient(180deg, #2a1820, #161822);
}

.case-card.knife::before {
    background: #ff2b59;
}

.case-card.knife .rarity {
    color: #ff395f;
}

.case-card.knife .bottom-line {
    background: #ff395f;
}

.case-card.covert {
    background: linear-gradient(180deg, #2b1818, #161822);
}

.case-card.covert::before {
    background: #ff4141;
}

.case-card.covert .rarity {
    color: #ff4d4d;
}

.case-card.covert .bottom-line {
    background: #ff4d4d;
}

.case-card.classified {
    background: linear-gradient(180deg, #292519, #171822);
}

.case-card.classified::before {
    background: #ffc72d;
}

.case-card.classified .rarity {
    color: #ffc72d;
}

.case-card.classified .bottom-line {
    background: #ffc72d;
}

.case-card.restricted {
    background: linear-gradient(180deg, #172338, #161822);
}

.case-card.restricted::before {
    background: #59a8ff;
}

.case-card.restricted .rarity {
    color: #59a8ff;
}

.case-card.restricted .bottom-line {
    background: #59a8ff;
}

.case-card.milspec {
    background: linear-gradient(180deg, #15292b, #161822);
}

.case-card.milspec::before {
    background: #15dcc8;
}

.case-card.milspec .rarity {
    color: #15dcc8;
}

.case-card.milspec .bottom-line {
    background: #15dcc8;
}

/* ============================================
   FAQ
============================================ */
.faq_head {
    width: 100%;
    max-width: 100%;
    background-color: #0a0c14;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.faq {
    width: min(1100px, 92%);
    margin: auto;
}

.faq-subtitle {
    padding-top: 20px;
    color: #ff3b3b;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.faq h2 {
    text-align: center;
    font-size: 82px;
    line-height: .95;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 90px;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.faq-question {
    width: 100%;
    height: 84px;
    background: none;
    border: none;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    transition: .25s;
}

.faq-question:hover {
    color: #ff4242;
}

.faq-question span {
    font-size: 48px;
    font-weight: 300;
    transition: .35s;
    color: #fff;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
    color: #ff4242;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s ease;
    color: #9ca4b5;
    font-size: 18px;
    line-height: 1.8;
    padding: 0 10px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 10px 30px;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: #11111a;
}

.footer-banner {
    height: 54px;
    background: #ff2026;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.footer-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-35deg,
            rgba(255, 255, 255, .12) 0 40px,
            transparent 40px 120px);
    opacity: .5;
}

.footer-banner span {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
}

.footer-content {
    width: min(900px, 92%);
    margin: auto;
    padding: 70px 0;
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 35px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: .25s;
}

.footer-socials a:hover {
    background: #ff3035;
    border-color: #ff3035;
    transform: translateY(-3px);
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 35px;
}

.logo-left {
    font-size: 44px;
    font-weight: 900;
}

.footer-x {
    color: #666;
    font-size: 34px;
}

.logo-right {
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 3px;
}

.footer-text {
    color: #7d8394;
    line-height: 1.9;
    font-size: 15px;
    max-width: 760px;
    margin: auto;
}

/* ============================================================
   RESPONSIVE
============================================================ */

/* ===== 1200px ===== */
@media (max-width: 1200px) {
    .hero-image {
        width: 40%;
        height: 75%;
        opacity: 0.7;
    }

    .content h1 {
        font-size: 80px;
    }

    .container {
        width: 100%;
    }

    .spin h1 {
        font-size: 58px;
    }

    .desc {
        font-size: 18px;
    }

    .item {
        width: 180px;
        min-width: 180px;
        height: 250px;
    }

    .item img {
        width: 145px;
        height: 110px;
    }

    .faq h2 {
        font-size: 60px;
    }
}

/* ===== 992px ===== */
@media (max-width: 992px) {
    header {
        padding: 20px 30px;
    }

    nav {
        gap: 30px;
    }

    .content h1 {
        font-size: 60px;
    }

    .content p {
        font-size: 22px;
    }

    .hero-image {
        width: 35%;
        height: 65%;
        opacity: 0.5;
    }

    .about-event h2 {
        font-size: 52px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .character {
        right: -60px;
        height: 250px;
        opacity: 0.6;
    }

    .sd-text {
        width: auto;
        max-width: 280px;
    }

    .faq h2 {
        font-size: 54px;
    }

    .faq-question {
        font-size: 28px;
        height: 72px;
    }

    .faq-question span {
        font-size: 40px;
    }
}

/* ===== 768px ===== */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    header {
        padding: 15px 20px;
    }

    .right-header {
        gap: 10px;
    }

    .login-btn {
        width: 100px;
        height: 40px;
        font-size: 14px;
    }

    .language {
        width: 100px;
        height: 40px;
    }

    .content h1 {
        font-size: 42px;
    }

    .content p {
        font-size: 17px;
        width: 100%;
    }

    .main-btn {
        width: 220px;
        height: 56px;
        font-size: 17px;
    }

    .hero-image {
        width: 60%;
        height: 50%;
        opacity: 0.25;
        bottom: -20px;
    }

    .subtitle {
        font-size: 14px;
        padding: 5px 15px;
    }

    .socials a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .about-event {
        padding: 60px 0;
    }

    .about-event h2 {
        font-size: 34px;
        margin-bottom: 30px;
    }

    .card {
        min-height: 320px;
        padding: 25px;
    }

    .card h3 {
        font-size: 30px;
    }

    .character {
        right: -30px;
        height: 200px;
        opacity: 0.4;
    }

    .banner {
        height: auto;
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }

    .banner .left {
        padding-left: 0;
        text-align: center;
    }

    .banner .left span {
        font-size: 28px;
    }

    .banner .left a {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .banner .box-img img {
        height: 140px;
        margin-right: 0;
    }

    /* SPIN */
    .spin h1 {
        font-size: 42px;
    }

    .top-text {
        font-size: 11px;
    }

    .desc {
        font-size: 16px;
    }

    #spinBtn {
        width: 100%;
        max-width: 320px;
    }

    .item {
        width: 155px;
        min-width: 155px;
        height: 220px;
    }

    .item img {
        width: 120px;
        height: 90px;
    }

    .wheel-wrapper::before,
    .wheel-wrapper::after {
        width: 80px;
    }

    .pointer::after {
        top: 16px;
    }

    .pointer::before {
        border-left-width: 12px;
        border-right-width: 12px;
        border-top-width: 16px;
    }

    /* LIVE DROP */
    .live-drop {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .live-title {
        min-width: auto;
    }

    .drop-item {
        width: 120px;
        height: 40px;
        padding: 4px 6px;
    }

    .drop-item img {
        width: 40px;
        height: 22px;
    }

    /* CASE GRID */
    .case-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .case-card {
        min-height: 250px;
        padding: 16px;
    }

    .skin-image {
        height: 120px;
        margin-top: 20px;
    }

    .skin-name {
        font-size: 16px;
    }

    .chance {
        font-size: 12px;
        right: 12px;
        top: 12px;
    }

    .rarity {
        font-size: 11px;
    }

    /* FAQ */
    .faq_head {
        min-height: auto;
        padding: 40px 0;
    }

    .faq h2 {
        font-size: 38px;
        margin-bottom: 50px;
    }

    .faq-question {
        font-size: 22px;
        height: 64px;
    }

    .faq-question span {
        font-size: 34px;
    }

    .faq-answer {
        font-size: 16px;
    }

    .faq-item.active .faq-answer {
        max-height: 300px;
        padding: 0 10px 20px;
    }

    /* FOOTER */
    .footer-content {
        padding: 40px 0;
    }

    .footer-logo {
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo-left,
    .logo-right {
        font-size: 28px;
    }

    .footer-x {
        font-size: 24px;
    }

    .footer-socials a {
        width: 36px;
        height: 36px;
    }

    .footer-text {
        font-size: 13px;
    }
}

/* ===== 480px ===== */
@media (max-width: 480px) {
    .logo img {
        width: 70px;
    }

    .login-btn {
        width: 80px;
        height: 34px;
        font-size: 12px;
    }

    .language {
        width: 70px;
        height: 34px;
        font-size: 12px;
        gap: 6px;
    }

    .language img {
        width: 18px;
    }

    .content h1 {
        font-size: 32px;
    }

    .content p {
        font-size: 14px;
    }

    .main-btn {
        width: 180px;
        height: 48px;
        font-size: 14px;
        gap: 10px;
    }

    .subtitle {
        font-size: 12px;
        padding: 4px 12px;
    }

    .hero-image {
        width: 80%;
        height: 40%;
        opacity: 0.2;
    }

    .about-event h2 {
        font-size: 28px;
    }

    .card {
        min-height: 250px;
        padding: 18px;
    }

    .card h3 {
        font-size: 24px;
    }

    .label {
        font-size: 14px;
    }

    .card p {
        font-size: 13px;
    }

    .character {
        height: 150px;
        right: -20px;
        opacity: 0.3;
    }

    .banner .left span {
        font-size: 22px;
    }

    .banner .left a {
        height: 54px;
        font-size: 17px;
        width: 100%;
        max-width: 220px;
    }

    .banner .box-img img {
        height: 100px;
    }

    .spin {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .spin h1 {
        font-size: 32px;
    }

    .desc {
        font-size: 14px;
    }

    .wheel {
        gap: 16px;
    }

    .item {
        width: 130px;
        min-width: 130px;
        height: 190px;
    }

    .item img {
        width: 100px;
        height: 75px;
        margin: 18px auto 6px;
    }

    .item-name {
        font-size: 14px;
        padding: 0 10px;
    }

    .item-type {
        font-size: 11px;
    }

    .item-price {
        font-size: 16px;
        margin-top: 10px;
    }

    .wheel-wrapper::before,
    .wheel-wrapper::after {
        width: 40px;
    }

    .pointer::before {
        border-left-width: 10px;
        border-right-width: 10px;
        border-top-width: 16px;
    }

    .pointer::after {
        top: 16px;
        width: 3px;
    }

    #spinBtn {
        height: 54px;
        font-size: 16px;
        margin-top: 35px;
    }

    .live-track {
        gap: 6px;
    }

    .drop-item {
        width: 100px;
        height: 34px;
        padding: 3px 5px;
        gap: 6px;
    }

    .drop-item img {
        width: 32px;
        height: 18px;
    }

    .drop-name {
        font-size: 8px;
    }

    .drop-price {
        font-size: 9px;
    }

    .case-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .case-card {
        min-height: 200px;
        padding: 12px;
    }

    .skin-image {
        height: 90px;
        margin-top: 14px;
    }

    .skin-name {
        font-size: 13px;
        margin-top: 12px;
    }

    .skin-price {
        font-size: 14px;
        margin-top: 6px;
    }

    .chance {
        font-size: 10px;
        right: 8px;
        top: 8px;
    }

    .rarity {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .section-title {
        font-size: 16px;
        gap: 8px;
    }

    .diamond {
        width: 8px;
        height: 8px;
    }

    .faq h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .faq-question {
        font-size: 17px;
        height: 54px;
    }

    .faq-question span {
        font-size: 28px;
    }

    .faq-answer {
        font-size: 14px;
    }

    .faq-subtitle {
        font-size: 12px;
        padding-top: 10px;
    }

    .footer-banner span {
        font-size: 14px;
    }

    .footer-content {
        padding: 30px 0;
    }

    .logo-left,
    .logo-right {
        font-size: 22px;
    }

    .footer-x {
        font-size: 18px;
    }

    .footer-text {
        font-size: 12px;
    }

    .footer-socials {
        gap: 10px;
        margin-bottom: 25px;
    }

    .footer-socials a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ===== 360px ===== */
@media (max-width: 360px) {
    header {
        padding: 10px 12px;
    }

    .logo img {
        width: 55px;
    }

    .login-btn {
        width: 65px;
        height: 30px;
        font-size: 10px;
    }

    .language {
        width: 55px;
        height: 30px;
        font-size: 10px;
    }

    .language img {
        width: 14px;
    }

    .content h1 {
        font-size: 26px;
    }

    .content p {
        font-size: 12px;
    }

    .main-btn {
        width: 150px;
        height: 40px;
        font-size: 12px;
        gap: 8px;
    }

    .subtitle {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 15px;
    }

    .socials a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .spin h1 {
        font-size: 26px;
    }

    .item {
        width: 110px;
        min-width: 110px;
        height: 165px;
    }

    .item img {
        width: 80px;
        height: 60px;
        margin: 14px auto 4px;
    }

    .item-name {
        font-size: 12px;
        padding: 0 6px;
    }

    .item-type {
        font-size: 9px;
    }

    .item-price {
        font-size: 13px;
        margin-top: 6px;
    }

    .case-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .case-card {
        min-height: 170px;
        padding: 10px;
    }

    .skin-image {
        height: 70px;
        margin-top: 10px;
    }

    .skin-name {
        font-size: 11px;
        margin-top: 8px;
    }

    .skin-price {
        font-size: 12px;
    }

    .faq-question {
        font-size: 14px;
        height: 46px;
    }

    .faq-question span {
        font-size: 22px;
    }

    .faq-answer {
        font-size: 13px;
    }

    .faq h2 {
        font-size: 24px;
    }

    .logo-left,
    .logo-right {
        font-size: 18px;
    }

    .footer-x {
        font-size: 14px;
    }

    .footer-banner span {
        font-size: 12px;
    }

    .footer-text {
        font-size: 11px;
    }
}

/* Inter fallback — self-hosted fonts in vendor/fonts.css */

body.wcase-modal-open {
    overflow: hidden;
}

/* ── Fake browser — centered modal like Dark Carnival ───── */
#wcase-browser-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100001;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 12px;
    box-sizing: border-box;
}

#wcase-browser-window {
    background: #191a1d;
    width: min(1200px, 96vw);
    max-width: 96vw;
    max-height: calc(100vh - 24px);
    border: 1px solid #505053;
    border-radius: 10px;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wcase-br-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    cursor: default;
}

.wcase-br-title-left {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 5px;
    margin-bottom: 9px;
    color: #fff;
    font-size: 12px;
    font-family: Inter, sans-serif;
    font-weight: 500;
}

.wcase-br-steam-logo {
    height: 14px;
    filter: invert(1) brightness(1.4);
    opacity: 0.8;
}

.wcase-br-title-btns {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 5px;
    margin-bottom: 9px;
}

.wcase-br-title-btns svg {
    cursor: pointer;
    flex-shrink: 0;
}

.wcase-br-line {
    width: 100%;
    height: 1px;
    background: #505053;
}

.wcase-br-urlbar {
    display: flex;
    align-items: center;
    padding: 0 11px;
    transition: background 0.2s;
}

.wcase-br-urlbar:hover {
    background: #2d2e31;
}

.wcase-br-urlbar p {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-family: Inter, sans-serif;
    color: #9aa0a6;
    margin: 0;
    padding: 4px 0;
    min-width: 0;
}

.wcase-br-urlbar p span,
#wcase-browser-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.wcase-br-iframe {
    width: 100%;
    height: 700px;
    max-height: calc(100vh - 120px);
    min-height: 420px;
    display: block;
    border: none;
    background: #1b2838;
}

/* ── Claim popup (dc-overlay pattern) ───────────────────── */
#wcase-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

#wcase-popup {
    position: relative;
    background: linear-gradient(160deg, #141622 0%, #0d0f18 100%);
    border: 1px solid #2a2f45;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    padding: 32px 18px 22px;
    text-align: center;
    color: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.wcase-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.wcase-popup-close:hover {
    color: #fff;
}

.wcase-popup-badge {
    display: inline-block;
    color: #ff3131;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 49, 49, 0.3);
    border-radius: 6px;
    background: rgba(255, 49, 49, 0.06);
    margin: 0 0 10px;
}

.wcase-prize-preview img:not(.wcase-mystery-skin) {
    max-height: 110px;
    margin-bottom: 16px;
}

.wcase-popup-steam-logo {
    height: 52px;
    margin-bottom: 18px;
    filter: brightness(1.2);
}

.wcase-popup-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.wcase-popup-title--sm {
    font-size: 24px;
}

.wcase-popup-sub {
    color: #ff3131;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.wcase-popup-desc {
    color: #888;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 12px;
}

.wcase-popup-desc strong {
    color: #fff;
}

.wcase-popup-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcase-popup-btn--claim {
    background: linear-gradient(90deg, #8b121b, #ff3131);
    color: #fff;
}

.wcase-popup-btn--steam {
    background: #1b9df0;
    color: #fff;
    font-size: 17px;
}

.wcase-win-badge {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #8b121b, #ff3131);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcase-win-badge .fa-trophy {
    font-size: 42px;
    color: #fff;
}

.wcase-prize-block {
    border-top: 1px solid #22263a;
    border-bottom: 1px solid #22263a;
    padding: 20px 0;
    margin-bottom: 20px;
}

.wcase-prize-block img {
    max-height: 100px;
    margin-bottom: 12px;
}

.wcase-prize-name {
    font-size: 22px;
    font-weight: 700;
    color: #ff3131;
}

.wcase-prize-block--revealed {
    border: none;
    padding: 8px 0 16px;
    margin-bottom: 8px;
}

.wcase-prize-block--revealed img {
    max-height: 120px;
    margin-bottom: 0;
    object-fit: contain;
}

.wcase-success-text {
    color: #c8cdd8;
    line-height: 1.65;
    font-size: 15px;
    margin: 0 0 22px;
    padding: 0 8px;
}

.wcase-success-text strong {
    color: #fff;
    font-weight: 700;
}

.wcase-wait-text {
    color: #9a9a9a;
    line-height: 1.55;
    font-size: 15px;
    margin-bottom: 24px;
}

.wcase-overload-text {
    color: #777;
    line-height: 1.55;
    font-size: 14px;
    margin-bottom: 20px;
}

.wcase-overload-text strong {
    color: #fff;
}

@media (max-width: 768px) {
    #wcase-browser-overlay {
        padding: 8px;
    }

    #wcase-browser-window {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 8px;
    }

    .wcase-br-iframe {
        height: min(700px, calc(100vh - 108px));
        min-height: 360px;
    }

    .wcase-br-urlbar p {
        font-size: 10px;
    }

    #wcase-popup {
        padding: 28px 20px 24px;
    }

    .wcase-popup-title {
        font-size: 24px;
    }
}