@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=MedievalSharp&display=swap');
        
        * { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    cursor: url('mouse.cur'), auto;
}
       body {
    font-family: 'Cinzel', serif;
    background: url('last.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 20vh;
    padding: 1px;
    position: relative;
    overflow: hidden;
	cursor: url('mouse.cur'), auto;
}
.close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #3D1A00, #1A0A00);
    border: 2px solid #E87B1E;
    border-radius: 50%;
    color: #FFD9A8;
    font-size: 20px;
    font-weight: 700;
    cursor: url('mouse.cur'), pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 15px rgba(232,123,30,0.4);
}

.close-btn::before {
    content: '←';
    font-size: 22px;
}

.close-btn:hover {
    background: linear-gradient(135deg, #7A3500, #3D1A00);
    border-color: #FFD9A8;
    transform: translateX(3px);
    box-shadow: 0 0 25px rgba(232,123,30,0.7);
}

.close-btn:active {
    transform: translateX(2px) scale(0.95);
}
        
        @keyframes float-particles {
            0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.4; }
            33% { transform: translateY(-30px) translateX(20px) scale(1.2); opacity: 0.7; }
            66% { transform: translateY(-15px) translateX(-15px) scale(0.9); opacity: 0.5; }
        }
        
        body::before {
            content: '';
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background-image: 
                radial-gradient(2px 2px at 15% 25%, rgba(232,123,30,0.5), transparent),
                radial-gradient(3px 3px at 85% 75%, rgba(232,123,30,0.4), transparent),
                radial-gradient(2px 2px at 45% 50%, rgba(232,123,30,0.3), transparent),
                radial-gradient(1px 1px at 70% 30%, rgba(232,123,30,0.4), transparent);
            background-size: 250px 250px, 300px 300px, 200px 200px, 350px 350px;
            animation: float-particles 12s ease-in-out infinite;
            pointer-events: none;
            z-index: 0;
        }
        
        .main-container {
            position: relative;
            width: 605px;
            height: 630px;
            background: linear-gradient(180deg, #1A0A00 0%, #3D1A00 50%, #7A3500 100%);
            border: 4px solid #E87B1E;
            border-radius: 24px;
            box-shadow: 0 0 0 2px rgba(232,123,30,0.4), 0 0 0 8px rgba(61,26,0,0.6), 0 15px 40px rgba(0,0,0,0.9), inset 0 3px 0 rgba(232,123,30,0.15), inset 0 -3px 15px rgba(0,0,0,0.6);
            overflow: hidden;
            z-index: 1;
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
        }
        
        .main-container::before {
            content: '';
            position: absolute;
            top: -3px; left: -3px; right: -3px; bottom: -3px;
            background: linear-gradient(45deg, transparent 30%, rgba(232,123,30,0.4) 50%, transparent 70%);
            background-size: 200% 200%;
            border-radius: 26px;
            z-index: -1;
            animation: shimmer-border 6s linear infinite;
        }
        
        @keyframes shimmer-border {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        
        .corner-ornament {
            position: absolute;
            width: 50px;
            height: 50px;
            opacity: 0.7;
            pointer-events: none;
            z-index: 10;
            font-size: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #FFD9A8;
            text-shadow: 0 0 15px rgba(232,123,30,0.9), 0 0 30px rgba(232,123,30,0.6);
            animation: corner-pulse 4s ease-in-out infinite;
        }
        
        @keyframes corner-pulse {
            0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
            50% { transform: scale(1.15) rotate(5deg); opacity: 0.9; }
        }
        
        .corner-ornament.tl { top: 5px; left: 5px; animation-delay: 0s; }
        .corner-ornament.tr { top: 5px; right: 5px; animation-delay: 1s; }
        .corner-ornament.bl { bottom: 5px; left: 5px; animation-delay: 2s; }
        .corner-ornament.br { bottom: 5px; right: 5px; animation-delay: 3s; }
        
        .corner-ornament::before { content: '◈'; }
        
        .header-bar {
            background: linear-gradient(90deg, transparent 0%, rgba(232,123,30,0.15) 20%, rgba(232,123,30,0.25) 50%, rgba(232,123,30,0.15) 80%, transparent 100%), linear-gradient(180deg, #3D1A00 0%, #1A0A00 100%);
            padding: 12px 20px;
            text-align: center;
            border-bottom: 3px solid #E87B1E;
            position: relative;
            box-shadow: 0 4px 20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(232,123,30,0.2);
            flex-shrink: 0;
        }
        
        .header-bar::before, .header-bar::after {
            content: '◆';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            color: #FFD9A8;
            text-shadow: 0 0 15px rgba(232,123,30,1);
            letter-spacing: 8px;
            animation: sparkle 3s ease-in-out infinite;
        }
        
        @keyframes sparkle {
            0%, 100% { opacity: 0.7; filter: brightness(1); }
            50% { opacity: 1; filter: brightness(1.5); }
        }
        
        .header-bar::before { left: 15px; }
        .header-bar::after { right: 15px; }
        
        .gambling-label {
            font-size: 10px;
            letter-spacing: 4px;
            color: #FFD9A8;
            text-transform: uppercase;
            font-weight: 400;
            text-shadow: 0 0 10px rgba(255,217,168,0.9), 0 2px 4px rgba(0,0,0,0.8);
            margin-bottom: 4px;
            animation: label-glow 3s ease-in-out infinite;
        }
        
        @keyframes label-glow {
            0%, 100% { text-shadow: 0 0 10px rgba(255,217,168,0.8), 0 2px 4px rgba(0,0,0,0.8); }
            50% { text-shadow: 0 0 20px rgba(255,217,168,1), 0 2px 4px rgba(0,0,0,0.8); }
        }
        
        .Diamond Legacy Online-logo {
            font-size: 20px;
            font-weight: 900;
            background: linear-gradient(180deg, #FFD9A8 0%, #F0A050 20%, #E87B1E 40%, #7A3500 60%, #3D1A00 80%, #1A0A00 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 2px;
            filter: drop-shadow(0 3px 6px rgba(0,0,0,0.9));
            font-family: 'MedievalSharp', cursive;
        }
        
        .content-wrapper {
            padding: 15px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: center;
            flex: 1;
            overflow-y: auto;
        }
        
        .content-wrapper::-webkit-scrollbar { width: 8px; }
        .content-wrapper::-webkit-scrollbar-track { background: rgba(122,53,0,0.2); border-radius: 5px; }
        .content-wrapper::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #F0A050 0%, #E87B1E 100%); border-radius: 5px; }
        
        .wheel-container {
            position: relative;
            width: 260px;
            height: 260px;
            filter: drop-shadow(0 10px 30px rgba(0,0,0,0.8));
            flex-shrink: 0;
        }
        
        .arrow {
            position: absolute;
            top: -25px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 20px solid transparent;
            border-right: 20px solid transparent;
            border-top: 40px solid #FFD9A8;
            z-index: 20;
            filter: drop-shadow(0 8px 15px rgba(0,0,0,0.9));
            animation: arrow-bounce 1.5s ease-in-out infinite;
            transition: transform 0.05s ease-out;
        }
        
        @keyframes arrow-bounce {
            0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
            50% { transform: translateX(-50%) translateY(-6px) scale(1.05); }
        }
        
        .wheel-ring {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
        }
        
        .ring-outer {
            width: 280px;
            height: 280px;
            border: 4px solid #F0A050;
            box-shadow: 0 0 30px rgba(232,123,30,0.8), inset 0 0 30px rgba(232,123,30,0.3);
            animation: ring-rotate 30s linear infinite;
        }
        
        .ring-middle {
            width: 270px;
            height: 270px;
            border: 2px solid rgba(232,123,30,0.4);
            animation: ring-rotate 20s linear infinite reverse;
        }
        
        @keyframes ring-rotate {
            from { transform: translate(-50%, -50%) rotate(0deg); }
            to { transform: translate(-50%, -50%) rotate(360deg); }
        }
        
        .wheel {
            width: 260px;
            height: 260px;
            background: radial-gradient(circle at 30% 30%, rgba(122,53,0,0.4) 0%, transparent 50%), radial-gradient(circle at center, #7A3500 0%, #3D1A00 70%, #1A0A00 100%);
            border-radius: 50%;
            border: 4px solid #3D1A00;
            position: relative;
            transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
            box-shadow: 0 0 40px rgba(0,0,0,0.9), inset 0 0 60px rgba(0,0,0,0.6), inset 0 5px 20px rgba(232,123,30,0.1);
        }
        
        .wheel::before, .wheel::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            background: linear-gradient(90deg, transparent 0%, rgba(232,123,30,0.6) 48%, rgba(240,160,80,0.8) 50%, rgba(232,123,30,0.6) 52%, transparent 100%);
        }
        
        .wheel::before { width: 100%; height: 2px; transform: translate(-50%, -50%); }
        .wheel::after { width: 2px; height: 100%; transform: translate(-50%, -50%); }
        
        .wheel-segment {
            position: absolute;
            width: 50%;
            height: 50%;
            transform-origin: 100% 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
        }
        
        .wheel-segment::before {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 2px;
            height: 141%;
            background: linear-gradient(180deg, transparent 0%, rgba(232,123,30,0.4) 30%, rgba(240,160,80,0.7) 50%, rgba(232,123,30,0.4) 70%, transparent 100%);
            transform-origin: bottom;
        }
        
        .segment-0 { transform: rotate(0deg); }
        .segment-1 { transform: rotate(45deg); }
        .segment-2 { transform: rotate(90deg); }
        .segment-3 { transform: rotate(135deg); }
        .segment-4 { transform: rotate(180deg); }
        .segment-5 { transform: rotate(225deg); }
        .segment-6 { transform: rotate(270deg); }
        .segment-7 { transform: rotate(315deg); }
        
        .icon-wrapper {
            position: absolute;
            top: 0%;
            left: 50%;
            width: 50px;
            height: 50px;
            margin-left: -19px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(61,26,0,0.95) 0%, rgba(26,10,0,1) 100%);
            border: 3px solid #F0A050;
            border-radius: 10px;
            padding: 5px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.9), 0 0 12px rgba(232,123,30,0.4);
            transition: all 0.4s ease;
            pointer-events: all;
            position: relative;
            overflow: hidden;
            cursor: url('mouse.cur'), pointer;
        }
        
        .icon-wrapper::before {
            content: '';
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: linear-gradient(45deg, transparent 30%, rgba(232,123,30,0.3) 50%, transparent 70%);
            animation: shimmer 3s linear infinite;
        }
        
        @keyframes shimmer {
            from { transform: translate(-100%, -100%); }
            to { transform: translate(100%, 100%); }
        }
        
        .segment-0 .icon-wrapper { transform: translateX(-50%) translateY(15px) rotate(0deg); }
        .segment-1 .icon-wrapper { transform: translateX(-50%) translateY(15px) rotate(-45deg); }
        .segment-2 .icon-wrapper { transform: translateX(-50%) translateY(15px) rotate(-90deg); }
        .segment-3 .icon-wrapper { transform: translateX(-50%) translateY(15px) rotate(-135deg); }
        .segment-4 .icon-wrapper { transform: translateX(-50%) translateY(15px) rotate(-180deg); }
        .segment-5 .icon-wrapper { transform: translateX(-50%) translateY(15px) rotate(-225deg); }
        .segment-6 .icon-wrapper { transform: translateX(-50%) translateY(15px) rotate(-270deg); }
        .segment-7 .icon-wrapper { transform: translateX(-50%) translateY(15px) rotate(-315deg); }
        
        .icon-wrapper:hover { border-color: #FFD9A8; box-shadow: 0 6px 18px rgba(0,0,0,0.9), 0 0 25px rgba(232,123,30,0.9); }
        
        .wheel-segment {
            position: absolute;
            width: 50%;
            height: 50%;
            transform-origin: 100% 100%;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            pointer-events: none;
        }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .result-message {
            font-size: 14px;
            font-weight: 700;
            color: #4caf50;
            background: linear-gradient(135deg, rgba(76,175,80,0.3) 0%, rgba(76,175,80,0.2) 100%);
            border: 2px solid #4caf50;
            border-radius: 10px;
            text-shadow: 0 0 10px rgba(76,175,80,1);
            display: none;
            box-shadow: 0 4px 12px rgba(76,175,80,0.5);
        }
        
        @keyframes pop-in {
            0% { transform: scale(0.5); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }
        
        .result-message.lose {
            color: #f44336;
            background: linear-gradient(135deg, rgba(244,67,54,0.3) 0%, rgba(244,67,54,0.2) 100%);
            border-color: #f44336;
            text-shadow: 0 0 10px rgba(244,67,54,1);
            box-shadow: 0 4px 12px rgba(244,67,54,0.5);
        }
        
        .spin-button {
            background: linear-gradient(135deg, #FFD9A8 0%, #F0A050 20%, #E87B1E 50%, #F0A050 80%, #FFD9A8 100%);
            background-size: 200% 200%;
            color: #1A0A00;
            border: 3px solid #7A3500;
            border-radius: 10px;
            padding: 12px 40px;
            font-size: 15px;
            font-weight: 900;
            letter-spacing: 2px;
            cursor: url('mouse.cur'), pointer;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.8), 0 0 20px rgba(232,123,30,0.5);
            transition: all 0.3s ease;
            text-transform: uppercase;
            animation: glow 3s ease-in-out infinite;
            flex-shrink: 0;
            position: relative;
        }
        
        @keyframes glow {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.8), 0 0 35px rgba(232,123,30,0.8); }
        }
        
        .spin-button::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
            transition: left 0.6s;
        }
        
        .spin-button:hover::before { left: 100%; }
        .spin-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.9), 0 0 35px rgba(232,123,30,0.9); }
        .spin-button:active { transform: scale(0.98); }
        
        .spin-button:disabled {
            opacity: 0.6;
            cursor: url('mouse.cur'), not-allowed;
            background: linear-gradient(135deg, #3D1A00 0%, #1A0A00 100%);
            color: #E87B1E;
            animation: none;
        }
        
        .history-panel {
            background: linear-gradient(135deg, rgba(61,26,0,0.95) 0%, rgba(26,10,0,0.98) 100%);
            border: 2px solid #E87B1E;
            border-radius: 10px;
            padding: 10px;
            width: 100%;
            max-height: 110px;
            overflow-y: auto;
            box-shadow: 0 4px 18px rgba(0,0,0,0.9);
            backdrop-filter: blur(15px);
            flex-shrink: 0;
        }
        
        .history-panel::-webkit-scrollbar { width: 6px; }
        .history-panel::-webkit-scrollbar-track { background: rgba(122,53,0,0.2); border-radius: 3px; }
        .history-panel::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #F0A050 0%, #E87B1E 100%); border-radius: 3px; }
        
        .history-title {
            font-size: 11px;
            color: #FFD9A8;
            letter-spacing: 2px;
            font-weight: 700;
            margin-bottom: 8px;
            text-align: center;
            text-shadow: 0 0 10px rgba(255,217,168,0.8);
            padding-bottom: 6px;
            border-bottom: 2px solid rgba(232,123,30,0.4);
            position: relative;
        }
        
        .history-title::before, .history-title::after {
            content: '⚔';
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
        
        .history-title::before { left: 12px; }
        .history-title::after { right: 12px; }
        
        .history-item {
            background: linear-gradient(135deg, rgba(122,53,0,0.25) 0%, rgba(122,53,0,0.15) 100%);
            border-left: 3px solid #4caf50;
            border-radius: 5px;
            padding: 6px 8px;
            margin: 6px 0;
            font-size: 10px;
            display: flex;
            justify-content: space-between;
            color: #4caf50;
            transition: all 0.3s ease;
            box-shadow: 0 2px 6px rgba(0,0,0,0.5);
        }
        
        .history-item:hover {
            background: linear-gradient(135deg, rgba(122,53,0,0.4) 0%, rgba(122,53,0,0.3) 100%);
            transform: translateX(4px);
            box-shadow: 0 3px 10px rgba(0,0,0,0.7);
        }
        
        .buy-spin-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            margin-top: -6px;
            padding: 15px;
            background: linear-gradient(135deg, rgba(61,26,0,0.8) 0%, rgba(26,10,0,0.9) 100%);
            border: 2px solid #E87B1E;
            border-radius: 10px;
            width: 100%;
            backdrop-filter: blur(10px);
        }

        .balance-display {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: #FFD9A8;
        }

        .balance-label {
            font-weight: 400;
        }

        .balance-amount {
            font-weight: 900;
            color: #4caf50;
            text-shadow: 0 0 10px rgba(76,175,80,0.8);
        }

        .silk-icon {
            color: #FFD700;
            font-size: 16px;
            text-shadow: 0 0 10px rgba(255,215,0,0.8);
        }

        .buy-spin-button {
            background: linear-gradient(135deg, #FFD700 0%, #FFA000 20%, #FF6D00 50%, #FFA000 80%, #FFD700 100%);
            background-size: 200% 200%;
            color: #1A0A00;
            border: 3px solid #FF6D00;
            border-radius: 10px;
            padding: 12px 30px;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 1px;
            cursor: url('mouse.cur'), pointer;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.8), 0 0 20px rgba(255,109,0,0.5);
            transition: all 0.3s ease;
            text-transform: uppercase;
            animation: gold-glow 2s ease-in-out infinite;
            position: relative;
        }

        @keyframes gold-glow {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.8), 0 0 35px rgba(255,109,0,0.8); }
        }

        .buy-spin-button::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
            transition: left 0.6s;
        }

        .buy-spin-button:hover::before { left: 100%; }
        .buy-spin-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.9), 0 0 35px rgba(255,109,0,0.9); }
        .buy-spin-button:active { transform: scale(0.98); }

        .buy-spin-button:disabled {
            opacity: 0.6;
            cursor: url('mouse.cur'), not-allowed;
            background: linear-gradient(135deg, #3D1A00 0%, #1A0A00 100%);
            color: #E87B1E;
            animation: none;
        }
        
        @media (max-width: 550px) {
            .main-container { width: 95%; height: auto; min-height: 580px; }
            .wheel-container { width: 220px; height: 220px; }
            .ring-outer { width: 240px; height: 240px; }
            .ring-middle { width: 230px; height: 230px; }
            .wheel { width: 220px; height: 220px; }
            .icon-wrapper { width: 45px; height: 45px; margin-left: -22.5px; }
            .center-hub { width: 50px; height: 50px; }
            .spin-button { padding: 10px 35px; font-size: 13px; }
            .buy-spin-button { padding: 10px 25px; font-size: 12px; }
        }

.center-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 4px double #FFD9A8;
    box-shadow: 
        0 0 30px rgba(232, 123, 30, 0.8),
        inset 0 0 40px rgba(26, 10, 0, 0.9),
        0 0 0 8px rgba(122, 53, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    overflow: hidden;
    position: absolute;
}

.center-hub::before {
    content: '';
    position: absolute;
    width: 85px;
    height: 85px;
    border: 3px solid transparent;
    border-top: 3px solid #F0A050;
    border-right: 3px solid #E87B1E;
    border-radius: 50%;
    animation: spin 12s linear infinite;
}

.center-hub::after {
    content: '';
    position: absolute;
    width: 65px;
    height: 65px;
    border: 2px solid rgba(255, 217, 168, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 217, 168, 0.2);
    animation: reverse-spin 8s linear infinite;
}

.center-logo {
    width: 90%;
    height: 50%;
    object-fit: contain;
    position: absolute;
    z-index: 2;
    animation: emblem-glow 4s ease-in-out infinite;
}

@keyframes emblem-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(232, 123, 30, 0.7)) brightness(1.2); }
    50% { filter: drop-shadow(0 0 15px rgba(232, 123, 30, 0.9)) brightness(1.4); }
}

@keyframes reverse-spin {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}