* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 1400px;
    overflow: hidden;
}

header {
    background: linear-gradient(to right, #3498db, #2c3e50);
    color: white;
    text-align: center;
    padding: 25px 20px;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
}

.left-panel {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.right-panel {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    border-left: 1px solid #eee;
}

.control-group {
    margin-bottom: 25px;
}

h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

h2 i {
    margin-right: 10px;
    color: #3498db;
}

.game-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.game-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
}

.game-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.game-btn.active {
    background: #3498db;
    color: white;
    border-color: #2980b9;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.slider-container {
    margin: 20px 0;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn i {
    margin-right: 8px;
}

.btn-generate {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.6);
}

.btn-reset {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #ddd;
}

.btn-reset:hover {
    background: #e9ecef;
    transform: translateY(-3px);
}

.numbers-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
}

.number {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.number:hover {
    transform: scale(1.1) rotate(10deg);
}

.special-number {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.history-container {
    margin-top: 30px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
}

.history-item {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.history-number {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50%;
    background: #3498db;
    color: white;
}

.history-special {
    background: #e74c3c;
}

footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .right-panel {
        border-left: none;
        border-top: 1px solid #eee;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}