:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    padding: 30px;
    text-align: center;
}

h1, h2 {
    margin-bottom: 15px;
    color: var(--text);
}

p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-bottom: 12px;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-hover);
}

.btn:active {
    transform: scale(0.98);
}

.btn-share {
    background-color: #1877f2;
}

.btn-share:hover {
    background-color: #166fe5;
}

.btn-secondary {
    background-color: #334155;
}

.btn-secondary:hover {
    background-color: #475569;
}

.screen {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.slot-card {
    background-color: #334155;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid #475569;
}

.slot-item {
    margin-bottom: 18px;
}

.slot-item:last-child {
    margin-bottom: 0;
}

.slot-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 5px;
    font-weight: 700;
}

.slot-value {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 600;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.luck-value {
    color: #34d399;
    font-size: 1.3rem;
}

.phrase-value {
    font-style: italic;
}

.divider {
    border: 0;
    border-top: 1px solid #475569;
    margin: 15px 0;
}

.spinning {
    animation: pulseText 0.15s infinite alternate;
    color: #f59e0b;
}

@keyframes pulseText {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
