:root {
    /* Dark Theme (Default) */
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --bg-app: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --bg-app: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent-glow: rgba(99, 102, 241, 0.2);
    --glass-border: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.app-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--bg-card), var(--bg-app));
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
}

#theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}

#theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.screen.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    z-index: 0;
}

.content {
    text-align: center;
    padding: 2.5rem;
    max-width: 600px;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Landing Screen */
.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
}

/* Buttons */
.glow-button {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px var(--accent-glow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glow-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 35px -5px var(--accent-glow);
}

.action-button {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.action-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.text-button {
    margin-top: 2.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
}

.text-button:hover {
    color: var(--primary);
}

/* Generator Screen */
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.control-panel {
    margin-bottom: 3.5rem;
}

.ball-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-height: 100px;
    padding: 1rem;
}

.plus-sign {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-muted);
    margin: 0 0.5rem;
}

lotto-ball {
    display: inline-block;
}
