:root {
    --bg-color: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-purple: #c084fc;
    --accent-pink: #f472b6;
    --accent-cyan: #38bdf8;
    --text-color: #f0f6fc;
    --text-muted: #8b949e;
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Glow */
.ambient {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.15) 0%, rgba(13, 17, 23, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 1;
    text-align: center;
}

header {
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(192, 132, 252, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.4);
    color: var(--accent-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Generator Slot Card */
.slot-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.slot-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.slot-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.slot-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.slot-value {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.spinning {
    opacity: 0.3;
    transform: scale(0.98);
}

/* Controls */
.btn-spin {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
    color: #0d1117;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(192, 132, 252, 0.3);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-spin:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(192, 132, 252, 0.5);
}

/* Timer Section */
.timer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
}

.timer-display {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    min-width: 100px;
}

.btn-timer {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-timer:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Houba Houba Banner */
.houba-banner {
    background: rgba(244, 114, 182, 0.08);
    border: 1px solid rgba(244, 114, 182, 0.25);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-color);
}

.houba-banner:hover {
    border-color: var(--accent-pink);
}

footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer a { color: var(--accent-cyan); text-decoration: none; }

@media (max-width: 640px) {
    h1 { font-size: 1.8rem; }
    .slot-card { padding: 1.5rem 1rem; border-radius: 14px; }
    .slot-value { font-size: 1.05rem; min-height: 4.5rem; }
    .btn-spin { padding: 0.85rem 1.75rem; font-size: 1rem; }
    .houba-banner { flex-direction: column; text-align: center; gap: 0.5rem; }
    .timer-box { flex-direction: column; }
}
