:root {
    --deep-green: #0a2e1f;
    --lucky-green: #1b5e20;
    --gold: #ffd700;
    --light-gold: #fff176;
    --soft-white: #f5f5f5;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--soft-white);
    background: radial-gradient(circle at center, #1a472a 0%, #0a2e1f 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px);
    background-size: 550px 550px, 350px 350px;
    background-position: 0 0, 40px 60px;
    opacity: 0.3;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-size: 2.2rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.auth-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.google-btn {
    background: white;
    color: #444;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#user-photo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.input-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-gold);
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,215,0,0.3);
    background: rgba(0,0,0,0.2);
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

.lucky-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffa000 100%);
    color: var(--deep-green);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 900;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.2s;
    margin-top: 10px;
}

.lucky-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

.fortune-card, .lotto-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    text-align: left;
    border-left: 5px solid var(--gold);
}

.fortune-card h2, .lotto-card h2 {
    margin-top: 0;
    color: var(--gold);
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255,215,0,0.2);
    padding-bottom: 10px;
}

.content {
    line-height: 1.8;
    white-space: pre-wrap;
}

.lotto-item {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.lotto-numbers {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.num-ball {
    width: 35px;
    height: 35px;
    background: var(--gold);
    color: var(--deep-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.lotto-desc {
    font-size: 0.9rem;
    color: var(--light-gold);
    font-style: italic;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.1);
    border-top: 5px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.text-btn { background: none; border: none; color: var(--gold); text-decoration: underline; cursor: pointer; }