@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: 50vh;
    padding: 1px;
    position: relative;
    overflow: hidden;
	cursor: url('mouse.cur'), auto;
}
        
        .main-container {
            position: relative;
            width: 650px;
            height: 590px;
            background: linear-gradient(180deg, #1A0A00 0%, #3D1A00 50%, #7A3500 100%);
            border: 2px solid #E87B1E;
            border-radius: 12px;
            box-shadow: 
                0 0 0 3px rgba(232,123,30,0.6),
                0 10px 25px rgba(0,0,0,0.9),
                inset 0 1px 0 rgba(232,123,30,0.1);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        
        .ornate-frame {
            position: absolute;
            top: -5px; left: -5px; right: -5px; bottom: -5px;
            border: 2px solid #F0A050;
            border-radius: 14px;
            background: radial-gradient(circle at center, rgba(232,123,30,0.1) 0%, transparent 70%);
            animation: frameGlow 4s ease-in-out infinite;
            z-index: 0;
        }
        
        @keyframes frameGlow {
            0%, 100% { box-shadow: 0 0 10px rgba(232,123,30,0.5); }
            50% { box-shadow: 0 0 20px rgba(232,123,30,0.8); }
        }
        
        .corner-ornament {
            position: absolute;
            width: 40px;
            height: 40px;
            background: radial-gradient(circle at 20% 20%, #FFD9A8 0%, #F0A050 50%, transparent 70%);
            opacity: 0.4;
            pointer-events: none;
        }
        
        .corner-ornament::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border: 1px solid #FFD9A8;
            border-radius: 50%;
        }
        
        .corner-ornament.tl { top: 0; left: 0; }
        .corner-ornament.tr { top: 0; right: 0; }
        .corner-ornament.bl { bottom: 0; left: 0; }
        .corner-ornament.br { bottom: 0; right: 0; }
        
        .header-bar {
            background: linear-gradient(90deg, transparent, #3D1A00 20%, #7A3500 80%, transparent);
            padding: 8px;
            text-align: center;
            border-bottom: 2px solid #E87B1E;
            position: relative;
            z-index: 1;
        }
        
        .header-bar::before,
        .header-bar::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 50px;
            height: 2px;
            background: linear-gradient(90deg, transparent, #FFD9A8, transparent);
            box-shadow: 0 0 5px rgba(232,123,30,0.7);
            z-index: -1;
        }
        
        .header-bar::before { left: 8px; }
        .header-bar::after { right: 8px; }
        
        .gambling-label {
            font-size: 8px;
            letter-spacing: 3px;
            color: #F0A050;
            text-transform: uppercase;
            font-weight: 400;
            text-shadow: 0 0 5px rgba(232,123,30,0.5);
        }
        
        .dominus-logo {
            font-size: 16px;
            font-weight: 900;
            background: linear-gradient(180deg, #FFD9A8 0%, #F0A050 50%, #E87B1E 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 1px;
            text-shadow: 0.5px 0.5px 2px rgba(0,0,0,0.7);
            margin: 2px 0;
            font-family: 'MedievalSharp', cursive;
        }
        
        .content-wrapper {
            padding: 10px;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
            z-index: 1;
        }
        
        .silk-header {
            background: linear-gradient(135deg, rgba(122,53,0,0.4) 0%, rgba(232,123,30,0.3) 100%);
            border: 2px solid #E87B1E;
            border-radius: 8px;
            padding: 8px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.6), inset 0 1px 0 rgba(232,123,30,0.2);
            position: relative;
            overflow: hidden;
        }
        
        .silk-header::before {
            content: '';
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: radial-gradient(circle, rgba(232,123,30,0.1) 0%, transparent 70%);
            animation: silkGlow 6s infinite;
            z-index: 0;
        }
        
        @keyframes silkGlow {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .silk-title {
            font-size: 22px;
            font-weight: 900;
            color: #FFD9A8;
            letter-spacing: 1px;
            text-shadow: 0.5px 0.5px 0 #1A0A00, 0 0 8px rgba(232,123,30,0.6);
            position: relative;
            z-index: 1;
            margin-bottom: 3px;
        }
        
        .silk-subtitle {
            font-size: 6px;
            color: #F0A050;
            letter-spacing: 1px;
            text-transform: uppercase;
            text-shadow: 0 0 3px rgba(232,123,30,0.5);
            position: relative;
            z-index: 1;
        }
        
        .chest-section {
            text-align: center;
            position: relative;
            height: 80px;
            z-index: 1;
        }
        
        .chest-glow {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 120px;
            height: 120px;
            background: radial-gradient(circle, rgba(232,123,30,0.3) 0%, rgba(240,160,80,0.1) 70%, transparent 100%);
            animation: pulse 3s ease-in-out infinite;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
            50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
        }
        
        .treasure-chest {
            position: relative;
            width: 60px;
            height: 45px;
            margin: 0 auto;
            animation: float 4s ease-in-out infinite;
            z-index: 2;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0px) rotateZ(0deg); }
            25% { transform: translateY(-8px) rotateZ(-2deg); }
            75% { transform: translateY(-6px) rotateZ(2deg); }
        }
        
        .chest-base {
            width: 100%;
            height: 30px;
            background: linear-gradient(135deg, #FFD9A8 0%, #F0A050 30%, #E87B1E 60%, #7A3500 100%);
            border: 2px solid #3D1A00;
            border-radius: 6px 6px 8px 8px;
            position: relative;
            box-shadow: 0 3px 8px rgba(0,0,0,0.7), inset 0 -2px 3px rgba(0,0,0,0.4), inset 0 1px 3px rgba(232,123,30,0.4);
        }
        
        .chest-lid {
            width: 100%;
            height: 18px;
            background: linear-gradient(135deg, #FFD9A8 0%, #F0A050 50%, #E87B1E 100%);
            border: 2px solid #3D1A00;
            border-radius: 8px 8px 2px 2px;
            position: absolute;
            top: -15px;
            left: 0;
            box-shadow: 0 -2px 8px rgba(232,123,30,0.6), inset 0 1px 3px rgba(255,255,255,0.4);
            animation: lidOpen 4s ease-in-out infinite;
        }
        
        @keyframes lidOpen {
            0%, 100% { transform: rotateX(0deg); }
            50% { transform: rotateX(15deg); }
        }
        
        .chest-lock {
            width: 15px;
            height: 8px;
            background: linear-gradient(135deg, #3D1A00 0%, #1A0A00 100%);
            border: 1px solid #1A0A00;
            border-radius: 2px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 1px 3px rgba(0,0,0,0.6);
        }
        
        .chest-lock::after {
            content: '';
            width: 4px;
            height: 4px;
            background: #FFD9A8;
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 0 6px rgba(255,217,168,0.9);
            animation: lockGlow 2s infinite;
        }
        
        @keyframes lockGlow {
            0%, 100% { box-shadow: 0 0 6px rgba(255,217,168,0.9); }
            50% { box-shadow: 0 0 10px rgba(255,217,168,1); }
        }
        
        .floating-coins {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
            overflow: hidden;
        }
        
        .coin {
            position: absolute;
            width: 15px;
            height: 15px;
            background: radial-gradient(ellipse at 30% 30%, #FFD9A8, #F0A050 45%, #E87B1E 70%, #7A3500);
            border-radius: 50%;
            border: 1px solid #E87B1E;
            box-shadow: 0 2px 5px rgba(0,0,0,0.5), inset 0.5px 0.5px 2px rgba(255,217,168,0.5);
            animation: coinFloat 3s ease-in-out infinite;
        }
        
        .coin::before {
            content: '$';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #3D1A00;
            font-size: 9px;
            font-weight: bold;
            text-shadow: 0 0.5px 0.5px rgba(255,217,168,0.7);
        }
        
        @keyframes coinFloat {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-12px) rotate(180deg); }
        }
        
        .coin:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
        .coin:nth-child(2) { right: 10%; top: 20%; animation-delay: 0.5s; }
        .coin:nth-child(3) { left: 5%; bottom: 30%; animation-delay: 1s; }
        .coin:nth-child(4) { right: 5%; bottom: 30%; animation-delay: 1.5s; }
        .coin:nth-child(5) { left: 20%; top: 50%; width: 12px; height: 12px; animation-delay: 0.3s; }
        .coin:nth-child(6) { right: 20%; top: 50%; width: 12px; height: 12px; animation-delay: 0.8s; }
        
        .particles {
            position: absolute;
            width: 100%;
            height: 100%;
            pointer-events: none;
            overflow: hidden;
        }
        
        .particle {
            position: absolute;
            width: 3px;
            height: 3px;
            background: rgba(232,123,30,0.8);
            border-radius: 50%;
            animation: particleFloat 5s linear infinite;
        }
        
        @keyframes particleFloat {
            0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
            50% { transform: translate(20px, -20px) scale(0.5); opacity: 0.4; }
            100% { transform: translate(40px, -40px) scale(0); opacity: 0; }
        }
        
        .particle:nth-child(1) { left: 10%; top: 10%; animation-delay: 0s; }
        .particle:nth-child(2) { left: 80%; top: 20%; animation-delay: 1s; }
        .particle:nth-child(3) { left: 30%; top: 70%; animation-delay: 2s; }
        
        .tagline-box {
            background: linear-gradient(135deg, rgba(76,175,80,0.3) 0%, rgba(56,142,60,0.2) 100%);
            border: 2px solid #4caf50;
            border-left: none;
            border-right: none;
            padding: 8px;
            text-align: center;
            margin: 8px -5px;
            box-shadow: 0 0 10px rgba(76,175,80,0.4), inset 0 0 8px rgba(76,175,80,0.2);
            position: relative;
            z-index: 1;
        }
        
        .tagline-box::before,
        .tagline-box::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 15px;
            height: 2px;
            background: #4caf50;
            box-shadow: 0 0 5px rgba(76,175,80,0.7);
        }
        
        .tagline-box::before { left: -5px; transform: translateY(-50%); }
        .tagline-box::after { right: -5px; transform: translateY(-50%); }
        
        .tagline-title {
            font-size: 12px;
            color: #4caf50;
            font-weight: 900;
            letter-spacing: 1px;
            margin-bottom: 3px;
            text-shadow: 0 0 6px rgba(76,175,80,0.9), 0 0 10px rgba(76,175,80,0.6);
            animation: glow 2s ease-in-out infinite;
        }
        
        @keyframes glow {
            0%, 100% { text-shadow: 0 0 6px rgba(76,175,80,0.9), 0 0 10px rgba(76,175,80,0.6); }
            50% { text-shadow: 0 0 10px rgba(76,175,80,1), 0 0 15px rgba(76,175,80,0.8); }
        }
        
        .tagline-subtitle {
            font-size: 6px;
            color: #a5d6a7;
            letter-spacing: 1px;
            font-weight: 400;
            text-shadow: 0 0 3px rgba(165,214,167,0.5);
        }
        
        .game-panel {
            background: linear-gradient(135deg, rgba(26,10,0,0.9) 0%, rgba(61,26,0,0.9) 100%);
            border: 2px solid #3D1A00;
            border-radius: 8px;
            padding: 10px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.8), inset 0 1px 0 rgba(232,123,30,0.1);
            z-index: 1;
        }
        
        .balance-container {
            background: linear-gradient(135deg, rgba(122,53,0,0.4), rgba(232,123,30,0.3));
            border: 2px solid #E87B1E;
            border-radius: 6px;
            padding: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.5);
            position: relative;
        }
        
        .balance-container::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: radial-gradient(circle at 20% 20%, rgba(232,123,30,0.1) 0%, transparent 70%);
            z-index: 0;
        }
        
        .balance-label {
            font-size: 10px;
            color: #F0A050;
            letter-spacing: 1px;
            font-weight: 700;
            position: relative;
            z-index: 1;
        }
        
        .balance-value {
            font-size: 16px;
            color: #FFD9A8;
            font-weight: 900;
            text-shadow: 0 0 6px rgba(255,217,168,0.8), 0 0 10px rgba(255,217,168,0.5);
            letter-spacing: 1px;
            position: relative;
            z-index: 1;
        }
        
        .notification-area {
            margin-bottom: 8px;
        }
        
        .input-section {
            margin-bottom: 8px;
        }
        
        .input-title {
            font-size: 8px;
            color: #F0A050;
            letter-spacing: 1px;
            text-align: center;
            margin-bottom: 6px;
            text-transform: uppercase;
        }
        
        .input-field {
            width: 100%;
            padding: 8px;
            background: rgba(26,10,0,0.9);
            border: 2px solid #E87B1E;
            border-radius: 6px;
            color: #FFD9A8;
            font-size: 14px;
            font-family: 'Cinzel', serif;
            font-weight: 700;
            cursor: url('mouse.cur'), text;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
        }

        .input-field::-webkit-inner-spin-button,
        .input-field::-webkit-outer-spin-button {
            cursor: url('mouse.cur'), pointer;
        }
        
        .input-field:focus {
            outline: none;
            border-color: #F0A050;
            box-shadow: 0 0 10px rgba(232,123,30,0.5), inset 0 1px 3px rgba(0,0,0,0.6);
        }
        
        .input-field::placeholder {
            color: #7A3500;
        }
        
        .quick-bets {
            display: flex;
            gap: 4px;
            margin-top: 6px;
            justify-content: center;
        }
        
        .quick-bet-btn {
            flex: 1;
            min-width: 45px;
            padding: 6px;
            background: linear-gradient(135deg, rgba(122,53,0,0.5), rgba(61,26,0,0.5));
            border: 2px solid #E87B1E;
            border-radius: 5px;
            color: #F0A050;
            font-family: 'Cinzel', serif;
            font-size: 8px;
            font-weight: 700;
            transition: all 0.3s ease;
            text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.7);
            cursor: url('mouse.cur'), pointer;
            position: relative;
            overflow: hidden;
        }
        
        .quick-bet-btn::before {
            content: '';
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: radial-gradient(circle, rgba(232,123,30,0.2) 0%, transparent 70%);
            z-index: 0;
            transition: transform 0.3s ease;
        }
        
        .quick-bet-btn:hover::before {
            transform: scale(1.5);
        }
        
        .quick-bet-btn:hover {
            background: linear-gradient(135deg, rgba(232,123,30,0.6), rgba(122,53,0,0.6));
            border-color: #FFD9A8;
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(232,123,30,0.4);
        }
        
        .quick-bet-btn:active {
            transform: translateY(0);
        }
        
        .gamble-button {
            width: 100%;
            padding: 10px;
            background: linear-gradient(135deg, #FFD9A8 0%, #F0A050 50%, #E87B1E 100%);
            border: 2px solid #7A3500;
            border-radius: 6px;
            color: #1A0A00;
            font-family: 'Cinzel', serif;
            font-size: 14px;
            font-weight: 900;
            letter-spacing: 2px;
            cursor: url('mouse.cur'), pointer;
            transition: all 0.3s ease;
            text-shadow: 0.5px 0.5px 1px rgba(255,255,255,0.4), 0 0 6px rgba(232,123,30,0.6);
            box-shadow: 0 4px 10px rgba(0,0,0,0.7), inset 0 1px 3px rgba(255,217,168,0.4);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .gamble-button::before {
            content: '';
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: linear-gradient(45deg, rgba(255,255,255,0.3), transparent);
            transform: rotate(45deg);
            animation: shine 3s infinite;
            z-index: -1;
        }
        
        @keyframes shine {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }
        
        .gamble-button:hover:not(:disabled) {
            background: linear-gradient(135deg, #ffffff 0%, #FFD9A8 50%, #F0A050 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(232,123,30,0.8), inset 0 1px 3px rgba(255,255,255,0.6);
        }
        
        .gamble-button:active:not(:disabled) {
            transform: translateY(0);
        }
        
        .gamble-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            animation: none;
        }
        
        .gamble-button:disabled::before {
            display: none;
        }
        
        .result-message {
            margin-top: 8px;
            padding: 8px;
            border-radius: 6px;
            text-align: center;
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 1px;
            animation: slideIn 0.5s ease;
            display: none;
            position: relative;
            z-index: 1;
        }
        
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(-8px) scale(0.9); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        
        .result-message.win {
            background: linear-gradient(135deg, rgba(76,175,80,0.5), rgba(56,142,60,0.4));
            border: 2px solid #4caf50;
            color: #4caf50;
            text-shadow: 0 0 8px rgba(76,175,80,1), 0 0 12px rgba(76,175,80,0.8);
            display: block;
        }
        
        .result-message.lose {
            background: linear-gradient(135deg, rgba(244,67,54,0.5), rgba(211,47,37,0.4));
            border: 2px solid #f44336;
            color: #f44336;
            text-shadow: 0 0 8px rgba(244,67,54,1), 0 0 12px rgba(244,67,54,0.8);
            display: block;
        }
        
        .history-panel {
            background: linear-gradient(135deg, rgba(26,10,0,0.9) 0%, rgba(61,26,0,0.7) 100%);
            border: 2px solid #3D1A00;
            border-radius: 6px;
            padding: 8px;
            flex: 1;
            max-height: 120px;
            overflow: hidden;
            z-index: 1;
        }
        
        .history-title {
            font-size: 8px;
            color: #F0A050;
            letter-spacing: 1px;
            text-align: center;
            margin-bottom: 6px;
            text-transform: uppercase;
            padding-bottom: 4px;
            border-bottom: 1px solid #E87B1E;
        }
        
        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px;
            margin-bottom: 4px;
            border-radius: 4px;
            font-size: 7px;
            cursor: url('mouse.cur'), default;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .history-item::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(232,123,30,0.1), transparent);
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .history-item:hover::before {
            opacity: 1;
        }
        
        .history-item.win {
            border-left: 2px solid #4caf50;
            color: #4caf50;
        }
        
        .history-item.lose {
            border-left: 2px solid #f44336;
            color: #f44336;
        }
        
        .history-amount {
            font-weight: 700;
        }
        
        .history-time {
            font-size: 6px;
            opacity: 0.7;
        }
        
        .loading-text {
            text-align: center;
            color: #F0A050;
            padding: 10px;
            font-style: italic;
            font-size: 8px;
            text-shadow: 0 0 3px rgba(232,123,30,0.5);
        }
        
        .no-history {
            text-align: center;
            color: #E87B1E;
            padding: 10px;
            font-size: 8px;
        }

button {
    cursor: url('mouse.cur'), pointer;
}

input[type="number"] {
    cursor: url('mouse.cur'), text;
}

a {
    cursor: url('mouse.cur'), pointer;
}
        
        @media (max-width: 500px) {
            .main-container {
                width: 100%;
                height: 100%;
                max-height: 499px;
            }
            .silk-title { font-size: 20px; }
            .tagline-title { font-size: 10px; }
            .balance-value { font-size: 14px; }
            .gamble-button { font-size: 12px; padding: 8px; }
            .quick-bets { gap: 3px; }
            .quick-bet-btn { min-width: 40px; padding: 5px; font-size: 7px; }
        }