:root {
    --bg-color: #0d0d12;
    --text-color: #ffffff;
    --accent-primary: #ff00de; /* Neon Pink */
    --accent-secondary: #00f0ff; /* Cyan */
    --accent-tertiary: #7000ff; /* Purple */
    --glass-bg: 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.37);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --transition-speed: 0.4s;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow: hidden; /* Prevent scroll for full-screen web app feel */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Background Animations */
.background-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 60vh;
    height: 60vh;
    background: var(--accent-primary);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 50vh;
    height: 50vh;
    background: var(--accent-secondary);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 40vh;
    height: 40vh;
    background: var(--accent-tertiary);
    top: 40%;
    left: 40%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -50px); }
    66% { transform: translate(-20px, 20px); }
}

/* Layout */
.app-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
    position: absolute; /* Stack them */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    position: relative; /* Let it take normal flow if needed, or stick to absolute centering logic */
    transform: translate(0, 0);
    top: auto;
    left: auto;
}

.screen.hidden {
    display: none; /* simple hide for logic, but we want anims.. let's use display none for simplicity first, then refine anims if needed */
}

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

/* Typography */
.title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--accent-secondary);
    margin-top: 5px;
    text-transform: uppercase;
    -webkit-text-fill-color: var(--accent-secondary); /* Override gradient */
}

.description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    border: none;
    outline: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    letter-spacing: 0.5px;
}

.primary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.primary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.primary-btn:active .btn-glow {
    width: 300px;
    height: 300px;
}

.secondary-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    margin-top: 10px;
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-color: #fff;
}

/* Questions */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    width: 0%;
    transition: width 0.5s ease;
}

.question-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    min-height: 3rem; /* Prevent layout shift */
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.08); /* Slightly lighter than card */
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-body);
}

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

/* Results */
.result-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.5rem;
}

.result-name {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 0px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.result-thai-name {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.result-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 10px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* Responsive */
@media (max-width: 480px) {
    .glass-card {
        padding: 25px;
        width: 95%;
    }
    .title {
        font-size: 2rem;
    }
    .result-name {
        font-size: 2rem;
    }
}
