:root {
    --primary: #1e1e2d;
    --accent: #d4af37; /* Gold for premium feel */
    --accent-light: #f1efef;
    --background: #0f0f1a;
    --text: #e0e0e0;
    --text-muted: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    background: var(--background);
    color: var(--text);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background-image: radial-gradient(circle at 10% 20%, rgba(30, 30, 45, 1) 0%, rgba(15, 15, 26, 1) 90%);
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('https://user-images.githubusercontent.com/particle/particle.min.js'); /* For interactive background or animated one */
    opacity: 0.5;
    pointer-events: none;
}

main {
    width: 100%;
    max-width: 600px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.screen {
    display: none;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

.screen.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    text-align: center;
    box-shadow: var(--glass-shadow);
}

.hero-image-container {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--accent);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 0 0 24px;
}

.description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    color: var(--text);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent), #e1c16e);
    color: var(--primary);
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.primary-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.secondary-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 12px 32px;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 32px;
    transition: var(--transition);
}

.secondary-btn:hover {
    background: var(--glass-border);
    color: var(--text);
}

/* Question Screen Styles */
.progress-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 24px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--glass-border);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.5s ease;
}

#progress-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
}

.question-card {
    padding: 40px 30px;
}

.question-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
    line-height: 1.4;
    font-weight: 700;
}

.options-grid {
    display: grid;
    gap: 16px;
    width: 100%;
}

.option-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 18px 24px;
    border-radius: 16px;
    color: var(--text);
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateX(8px);
}

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

/* Result Screen Styles */
.result-card {
    padding: 50px 40px;
}

.result-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 16px;
}

.mountain-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mountain-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text);
    white-space: pre-wrap;
}

.divider {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 32px 0;
}

.dept-recommendation {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.department-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700; /* Distinct color for department */
    margin-bottom: 16px;
    padding: 8px 20px;
    background: rgba(255, 215, 0, 0.1);
    display: inline-block;
    border-radius: 12px;
}

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

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 480px) {
    .glass-card {
        padding: 30px 20px;
    }
    .title {
        font-size: 2rem;
    }
    .question-title {
        font-size: 1.25rem;
    }
    .option-btn {
        padding: 14px 18px;
        font-size: 0.9rem;
    }
    .mountain-title {
        font-size: 2rem;
    }
}
