:root {
    --bg-color: #121212;
    --container-bg: #1e1e1e;
    --gold-primary: #FFD700;
    --gold-secondary: #DAA520;
    --text-light: #f5f5f5;
    --text-muted: #aaaaaa;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: var(--container-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
    border: 1px solid #333;
}

h1 {
    color: var(--gold-primary);
    margin-bottom: 5px;
    font-size: 28px;
    letter-spacing: 1px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

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

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

input[type="date"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: white;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

button {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: #000;
    border: none;
    padding: 15px 20px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
}

.btn-secondary {
    background: #333;
    color: white;
    margin-top: 10px;
}

.btn-secondary:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-save {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
}

#loading {
    display: none;
    margin: 30px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #333;
    border-top: 5px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#result-wrapper {
    display: none;
}

/* 캡처될 영역의 스타일 */
#capture-area {
    background-color: var(--container-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.fortune-box {
    background-color: #2a2a2a;
    padding: 20px;
    border-left: 4px solid var(--gold-primary);
    border-radius: 8px;
    margin-bottom: 25px;
}

.fortune-title {
    color: var(--gold-primary);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.lotto-row {
    background-color: #252525;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.set-label {
    font-weight: bold;
    color: var(--text-muted);
    width: 50px;
}

.balls {
    display: flex;
    gap: 8px;
}

.ball {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.3);
}

.color-1 { background-color: #fbc400; color: #333; text-shadow: none; }
.color-2 { background-color: #69c8f2; }
.color-3 { background-color: #ff7272; }
.color-4 { background-color: #aaaaaa; }
.color-5 { background-color: #b0d840; color: #333; text-shadow: none; }

.watermark {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    display: none; /* 평소엔 숨기고 캡처할 때만 표시 */
}

.footer-note {
    margin-top: 30px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
