* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login/Register Styles */
.auth-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 40px;
    max-width: 450px;
    margin: 50px auto;
}

.auth-box h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
    font-size: 28px;
}

.auth-box h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.message.success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #f0f0ff;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.demo-info {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

.demo-info p {
    margin: 5px 0;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #667eea;
    font-size: 32px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
    background: #dc3545;
    color: white;
}

.btn-small:hover {
    background: #c82333;
}

.btn-gray {
    padding: 10px 20px;
    font-size: 14px;
    background: #6c757d;
    color: white;
}

.btn-gray:hover {
    background: #5a6268;
}

/* Games Section */
.games-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.games-section h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 28px;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.game-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.game-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.game-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.game-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.btn-play {
    background: #667eea;
    color: white;
    padding: 10px 25px;
    font-size: 15px;
}

.btn-play:hover {
    background: #5568d3;
}

/* Beta Game Styling */
.game-card.beta-game {
    position: relative;
    border: 2px solid #ffd700;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.game-card.locked {
    opacity: 0.7;
    background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 100%);
}

.game-card .beta-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.4);
}

.btn-locked {
    background: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.btn-locked:hover {
    background: #999 !important;
}

/* Game Page Styles */
.game-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.game-container h1 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 36px;
}

.game-area {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
}

.btn-back {
    background: #6c757d;
    color: white;
    padding: 10px 25px;
    margin-top: 20px;
}

.btn-back:hover {
    background: #5a6268;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: white;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-box {
        padding: 25px;
        margin: 20px;
    }
}
