:root {
    --primary-color: #ffffff;
    --accent-color: #00d2ff;
    --bg-dark: #0d1b2a;
    --glass-bg: rgba(255, 255, 255, 0.15); /* Slightly opaquer glass */
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #ffffff; /* Changed from #b0b0b0 to white */
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden; /* No scroll */
    display: flex;
    justify-content: center;
    align-items: center;
}

#star-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bg.png') no-repeat center center/cover;
    z-index: -1;
    filter: brightness(0.7);
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.card {
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
}

/* Typography */
.title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    color: var(--text-primary); /* Changed to primary white */
    font-size: 0.95rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Form Styles */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-primary); /* Labels to white */
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.6); /* Visible placeholder */
}

input:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: white; /* Changed color to white */
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Result Section Styles */
.score-area {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(0, 210, 255, 0.15);
    border: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.4);
}

.score-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.7rem;
    font-weight: 700;
    color: #ffffff; /* Score number to pure white */
    text-shadow: 0 0 10px var(--accent-color);
}

.score-unit {
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
}

.theme-fortunes {
    margin-top: 25px;
    text-align: left;
}

.theme-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon { 
    margin-right: 12px; 
    font-size: 1.3rem; 
    filter: brightness(1.2); /* Make icons pop more */
}

.theme-name { 
    flex: 1; 
    font-size: 1rem; 
    font-weight: 500;
    color: white;
}

.stars { 
    color: #ffd700; /* Richer gold */
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.luck-combination {
    margin-top: 20px;
    font-size: 0.95rem;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    color: white; /* Parent text already white */
}

.luck-combination span {
    font-weight: 700;
    color: #ffffff; /* Changed from var(--accent-color) to white */
}

.note-comment {
    margin-top: 20px;
    font-size: 0.9rem;
    font-style: italic;
    color: #a5d6a7;
    line-height: 1.5;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--glass-border);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

@media (max-height: 600px) {
    .container { padding: 10px; }
    .card { padding: 20px; }
    .title { font-size: 1.5rem; }
    .score-circle { width: 80px; height: 80px; }
    .score-number { font-size: 1.8rem; }
}
