* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #12131c;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.live-drop {
    width: 100%;
    height: 90px;
    background: linear-gradient(180deg, #1e2030 0%, #171824 100%);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.live-drop-track {
    display: flex;
    gap: 16px;
    position: absolute;
    left: 0;
}

.live-item {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1c29;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15), inset 0 2px 5px rgba(255,255,255,0.05);
    border: 3px solid;
}

.live-item img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.3));
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    background-color: #1e2030;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 5;
    border-bottom: 2px solid rgba(255,255,255,0.02);
}

.header-logo img {
    height: 54px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.header-nav {
    display: flex;
    gap: 32px;
}

.header-nav a {
    font-size: 18px;
    font-weight: 700;
    color: #b5b8d0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.header-nav a:hover {
    color: #ffb800;
    transform: translateY(-2px);
    text-shadow: 0 4px 10px rgba(255, 184, 0, 0.3);
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #151622;
    padding: 8px 12px 8px 24px;
    border-radius: 30px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.profile-name {
    font-weight: 800;
    font-size: 15px;
    color: #e2e4f0;
}

.profile-balance {
    color: #ffb800;
    font-size: 16px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(255, 184, 0, 0.2);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #9d4edd;
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.4);
    object-fit: cover;
}

.deposit-btn {
    background: linear-gradient(135deg, #ffb800, #ff9800);
    color: #4a2c00;
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 800;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 6px 0 #cc7a00, 0 10px 20px rgba(255, 152, 0, 0.3);
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.deposit-btn:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 #cc7a00, 0 4px 10px rgba(255, 152, 0, 0.3);
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-banner {
    position: relative;
    height: 380px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 4px solid rgba(255,255,255,0.02);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(18,19,28,0.2) 0%, rgba(18,19,28,1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 2px 4px rgba(255,255,255,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #9d4edd, #7b2cbf);
    color: #ffffff;
    border: none;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 8px 0 #5a189a, 0 15px 30px rgba(123, 44, 191, 0.4), inset 0 2px 0 rgba(255,255,255,0.2);
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-primary:active {
    transform: translateY(8px);
    box-shadow: 0 0 0 #5a189a, 0 5px 15px rgba(123, 44, 191, 0.4), inset 0 2px 0 rgba(255,255,255,0.2);
}

.case-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 100px;
    position: relative;
}

.case-card {
    background: linear-gradient(145deg, #1e2030, #171826);
    padding: 40px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), inset 0 4px 0 rgba(255,255,255,0.05);
    margin-bottom: 60px;
    width: 100%;
    max-width: 420px;
    position: relative;
}

.case-image-wrapper {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(157,78,221,0.2) 0%, rgba(30,32,48,0) 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 20px;
}

.case-image {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-card:hover .case-image {
    transform: translateY(-10px) scale(1.05);
}

.case-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.case-price {
    font-size: 24px;
    font-weight: 800;
    color: #ffda5c;
    margin-bottom: 30px;
    background: #12131c;
    padding: 10px 24px;
    border-radius: 20px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

.open-btn {
    width: 100%;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    box-shadow: 0 8px 0 #03045e, 0 15px 30px rgba(0, 119, 182, 0.4), inset 0 2px 0 rgba(255,255,255,0.2);
}

.open-btn:active {
    box-shadow: 0 0 0 #03045e, 0 5px 15px rgba(0, 119, 182, 0.4), inset 0 2px 0 rgba(255,255,255,0.2);
}

.open-btn:disabled {
    background: #495057;
    box-shadow: 0 8px 0 #343a40, inset 0 2px 0 rgba(255,255,255,0.1);
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.roulette-wrapper {
    opacity: 0;
    visibility: hidden;
    width: 100%;
    max-width: 1000px;
    height: 180px;
    position: relative;
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
}

.roulette-wrapper.active {
    opacity: 1;
    visibility: visible;
}

.roulette-indicator {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #ffda5c;
    z-index: 20;
    filter: drop-shadow(0 4px 6px rgba(255, 218, 92, 0.6));
}

.roulette-window {
    width: 100%;
    height: 100%;
    background: #151622;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    border: 4px solid #1e2030;
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.3);
}

.roulette-window::before, .roulette-window::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.roulette-window::before {
    left: 0;
    background: linear-gradient(90deg, #151622 0%, rgba(21,22,34,0) 100%);
}

.roulette-window::after {
    right: 0;
    background: linear-gradient(270deg, #151622 0%, rgba(21,22,34,0) 100%);
}

.roulette-tape {
    display: flex;
    align-items: center;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    will-change: transform;
    padding-left: 50vw;
}

.roulette-item {
    width: 150px;
    height: 140px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #1e2030 0%, #151622 100%);
    margin-right: 16px;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2), inset 0 4px 10px rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.roulette-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,0.4));
    position: relative;
    z-index: 2;
}

.rarity-blue {
    border-color: #5cb8ff;
    background: linear-gradient(180deg, rgba(92,184,255,0.15) 0%, #151622 100%);
}

.rarity-purple {
    border-color: #b070ff;
    background: linear-gradient(180deg, rgba(176,112,255,0.15) 0%, #151622 100%);
}

.rarity-pink {
    border-color: #ff85e4;
    background: linear-gradient(180deg, rgba(255,133,228,0.15) 0%, #151622 100%);
}

.rarity-red {
    border-color: #ff6b6b;
    background: linear-gradient(180deg, rgba(255,107,107,0.15) 0%, #151622 100%);
}

.rarity-gold {
    border-color: #ffda5c;
    background: linear-gradient(180deg, rgba(255,218,92,0.15) 0%, #151622 100%);
}

.footer {
    background-color: #1a1b29;
    padding: 40px 20px;
    margin-top: auto;
    border-top: 2px solid rgba(255,255,255,0.03);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-copy {
    color: #e2e4f0;
    font-size: 16px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #8c90ad;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffb800;
}

@media (max-width: 850px) {
    .header {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .roulette-tape {
        padding-left: 50%;
    }
}