:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #8b5cf6;
    --background: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 20px;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, #1e1b4b, #0f172a);
    z-index: -1;
}

.main-container {
    width: 100%;
    max-width: 480px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-minimal {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.header-section {
    text-align: center;
    margin-bottom: 32px;
}

.hero-icon {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.title-main {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-dim);
    font-size: 16px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-dim);
}

.input-minimal {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-minimal:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Buttons */
.btn-minimal {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 14px;
    margin-top: 8px;
    width: auto;
    padding: 8px;
}

/* Game Menu Grid */
.game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.game-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
    border-color: var(--primary);
}

.game-card .icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 32px;
}

.game-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.game-info p {
    font-size: 14px;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 16px;
        align-items: flex-start;
    }
    
    .card-minimal {
        padding: 24px;
        border-radius: 20px;
    }
    
    .title-main {
        font-size: 28px;
    }
}

/* Utils */
.hidden { display: none !important; }

/* Swiper for History (optional) */
.history-item {
    padding: 12px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
}

.history-item:last-child {
    border-bottom: none;
}