body {
    background: radial-gradient(circle at top, #0f0f23, #000);
    font-family: Arial, sans-serif;
    color: #fff;
    display: flex;
    justify-content: center;
    padding: 40px 0;
    margin: 0; /* Added: Full-screen consistency */
}

.container {
    max-width: 480px; /* Changed: Responsive width */
    width: 100%; /* Added: Full on mobile */
    text-align: center;
    padding: 0 10px; /* Added: Side margins */
}

.title {
    font-size: 38px;
    color: #06b6d4;
    text-shadow: 0 0 25px #06b6d4;
    margin-bottom: 25px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap; /* Added: Wrap on small screens */
}

.input {
    background: #1b1b35;
    padding: 10px;
    color: white;
    border: none;
    border-radius: 8px;
    width: 110px;
    transition: box-shadow 0.2s; /* Added: Smooth focus */
}

.input:focus {
    outline: none;
    box-shadow: 0 0 10px #06b6d4; /* Added: Glow on focus */
}

.btn {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 15px #8b5cf6;
    transition: 0.2s; /* Added: Smooth hover/press */
}

.btn:hover {
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.98); /* Added: Pressed feedback */
}

.dice-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.dice {
    border: 3px solid #8b5cf6;
    border-radius: 10px;
    background: #111;
    box-shadow: 0 0 15px #8b5cf6;
}

.result {
    margin-top: 25px;
    font-size: 28px;
    min-height: 40px;
    font-weight: bold; /* Added: Emphasis */
    text-shadow: 0 0 5px currentColor;
    transition: color 0.3s; /* Added: For win/loss colors if needed */
}

/* New: Header styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(26, 26, 58, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 10px #06b6d4;
}

.home-btn {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s;
}

.home-btn:hover {
    transform: scale(1.05);
}

.balance {
    font-size: 18px;
    color: #00ffae;
    font-weight: bold;
    text-shadow: 0 0 5px #00ffae;
}

/* Added: Mobile responsiveness */
@media (max-width: 480px) {
    .title {
        font-size: 30px;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .input,
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .dice-area {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .dice {
        width: 120px;
        height: 120px;
    }
    
    .result {
        font-size: 24px;
    }
}