/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Remove blue tap box */
    outline: none;
    /* Prevent default focus ring (replace with custom if needed) */
}

:root {
    /* Colors */
    --lab-bg: #F8FAFC;
    --lab-surface: #FFFFFF;
    --lab-primary: #0F172A;
    --lab-primary-hover: #334155;
    --lab-secondary: #64748B;
    --lab-accent: #3B82F6;
    --lab-accent-purple: #8B5CF6;
    --lab-accent-pink: #EC4899;
    --lab-text: #0F172A;
    --lab-text-light: #94A3B8;
    --lab-border: #E2E8F0;

    /* Choice A Colors (Blue accent) */
    --choice-a-bg: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
    --choice-a-border: #E2E8F0;
    --choice-a-text: #0F172A;
    --choice-a-accent: #3B82F6;

    /* Choice B Colors (Purple accent) */
    --choice-b-bg: linear-gradient(135deg, #FFFFFF 0%, #FAF5FF 100%);
    --choice-b-border: #E2E8F0;
    --choice-b-text: #0F172A;
    --choice-b-accent: #8B5CF6;
}

html {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
}

body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    background: var(--lab-bg);
    color: var(--lab-text);
    overflow: hidden;
    min-height: 100vh;
    height: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Ambient Background
   ======================================== */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s ease-in-out infinite;
}

.orb-1 {
    width: min(80vw, 500px);
    height: min(80vw, 500px);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(59, 130, 246, 0) 70%);
    top: -20%;
    right: -20%;
}

.orb-2 {
    width: min(80vw, 500px);
    height: min(80vw, 500px);
    background: radial-gradient(circle, rgba(100, 116, 139, 0.2) 0%, rgba(100, 116, 139, 0) 70%);
    bottom: -20%;
    left: -20%;
    animation-delay: 5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

/* ========================================
   App Container
   ======================================== */
.app-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: var(--vh, 100vh);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(rgba(226, 232, 240, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ========================================
   Screen Management
   ======================================== */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: fadeInScreen 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInScreen {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ========================================
   Initializing Overlay
   ======================================== */
.init-content {
    text-align: center;
    color: #fff;
}

.init-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: pulseGlow 1s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(148, 163, 184, 0.6);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 40px rgba(148, 163, 184, 0.8), 0 0 60px rgba(100, 116, 139, 0.4);
        transform: scale(1.1);
    }
}

.init-text {
    font-size: 1.2rem;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.2em;
    color: #E2E8F0;
    margin-bottom: 30px;
}

.init-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.init-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #64748B, #94A3B8);
    border-radius: 2px;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 10px rgba(100, 116, 139, 0.5);
}

.init-status {
    font-size: 0.75rem;
    font-family: 'Roboto Mono', monospace;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

/* ========================================
   Loading Screen
   ======================================== */
.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
}

.spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--lab-accent);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: #64748B;
}

.spinner-ring:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: #94A3B8;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--lab-primary);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.loading-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--lab-accent);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* ========================================
   Intro Screen
   ======================================== */
.intro-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: var(--vh, 100vh);
    overflow-y: auto;
    /* Prevent scroll when keyboard appears */
    scroll-behavior: smooth;
}

.intro-container {
    width: 100%;
    max-width: 400px;
}

.logo {
    width: 50%;
    max-width: 200px;
    display: block;
    margin: 0 auto 30px;
    filter: drop-shadow(0 4px 20px rgba(15, 23, 42, 0.1));
}

.intro-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--lab-border);
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.intro-subtitle {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--lab-secondary);
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

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

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--lab-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    padding-left: 4px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--lab-text);
    background: #F8FAFC;
    border: 2px solid var(--lab-border);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.form-input:focus {
    background: white;
    border-color: var(--lab-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #CBD5E1;
    font-weight: 400;
}

.gender-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gender-btn {
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--lab-secondary);
    background: white;
    border: 2px solid var(--lab-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.gender-btn:hover {
    background: #F8FAFC;
}

.gender-btn.selected {
    color: white;
    background: var(--lab-primary);
    border-color: var(--lab-primary);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.primary-btn {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: var(--lab-primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.primary-btn:hover:not(:disabled) {
    background: var(--lab-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

.primary-btn:active:not(:disabled) {
    transform: translateY(0);
}

.primary-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ========================================
   Quiz Screen
   ======================================== */
/* ========================================
   Quiz Screen - Pop Sci-Fi Theme
   ======================================== */
.quiz-screen {
    display: flex;
    flex-direction: column;
    padding: 24px;
    height: var(--vh, 100vh);
    overflow: hidden;
    position: relative;
    background-color: #F8FAFC;
    /* Sci-Fi Grid Pattern */
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

/* Ambient Background - Vivid Dynamic Light */
.quiz-screen::before,
.quiz-screen::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    /* Less blur for more color concentration */
    z-index: -1;
    opacity: 0.5;
    animation: drift 20s infinite alternate;
}

/* Vivid Warm Light - Top Left */
.quiz-screen::before {
    width: 70vw;
    height: 70vw;
    top: -20%;
    left: -20%;
    background: radial-gradient(circle, rgba(244, 114, 182, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    /* Pink */
}

/* Vivid Cool Light - Bottom Right */
.quiz-screen::after {
    width: 80vw;
    height: 80vw;
    bottom: -30%;
    right: -20%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    /* Cyan */
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 20px) scale(1.1);
    }

    100% {
        transform: translate(-20px, 40px) scale(0.9);
    }
}

/* Add a third blob - Purple/Violent */
.ambient-light-3 {
    position: absolute;
    top: 30%;
    left: 40%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    /* Purple */
    filter: blur(70px);
    z-index: -1;
    animation: drift 18s infinite alternate-reverse;
}

/* --- HUD Header --- */
.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-shrink: 0;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(30, 41, 59, 0.05);
    position: relative;
    z-index: 50;
}

/* Header Gradient Line */
.quiz-header::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, #F472B6, #A78BFA, #22D3EE);
    /* Vibrant Gradient */
    opacity: 0.8;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--lab-border);
    border-radius: 8px;
    /* Sharper */
    cursor: pointer;
    color: var(--lab-secondary);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.icon-btn:hover {
    background: rgba(241, 245, 249, 0.5);
    border-color: var(--lab-accent);
    color: var(--lab-accent);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.15);
}

.phase-indicator {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.phase-label {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--lab-text-light);
    letter-spacing: 0.3em;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.phase-numbers {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: 'Roboto Mono', monospace;
}

.phase-current {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--lab-primary);
    line-height: 1;
    letter-spacing: -0.05em;
}

.phase-separator {
    font-size: 0.8rem;
    color: var(--lab-border);
    margin: 0 4px;
}

/* Choice Content - Text Only Tweaks */
.choice-text {
    /* Text matches full width */
    width: 100%;
    font-size: 1.3rem;
    /* Balanced size */
    font-weight: 700;
    letter-spacing: 0.05em;
    /* Restore wider spacing for Zen Kaku */
    line-height: 1.4;
    text-align: center;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    white-space: pre-wrap;
    /* Allow \n for line breaks */
    /* Reverted as requested */
    color: var(--lab-primary);
    transition: color 0.3s;
    padding: 0 10px;
    /* Prevent text touching arrow area */
}

.phase-total {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--lab-text-light);
}

/* Choice Arrow - REMOVED (User Request) */
.choice-arrow {
    display: none;
}

.quiz-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
    gap: 20px;
}

/* --- Question Area --- */
.question-area {
    flex: 0 0 auto;
    /* Auto height based on content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    position: relative;
    z-index: 2;
    min-height: 30vh;
}

.question-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--lab-primary);
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.02em;
    white-space: pre-wrap;
    /* Allow \n for line breaks */
    opacity: 0;
    transform: translateY(10px);
    /* Initial: Wait for JS to trigger 'enter' */
    animation: none;

    /* Glass text effect */
    text-shadow: 0 2px 10px rgba(148, 163, 184, 0.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Question Enter Animation */
.question-text.enter {
    animation: techFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.no-transition {
    transition: none !important;
}

/* Choice Enter Animation (Restored) */
.choice-card.animate {
    animation: techSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes techSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Centered Mode Layout Logic */
.question-area {
    transition: flex 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.choices-area {
    transition: flex 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.quiz-content.centered-mode .question-area {
    flex: 1;
    /* Take full space */
    justify-content: center;
}

.quiz-content.centered-mode .question-text {
    /* No scale transform to avoid jitter */
    /* Just positioning */
    transform: none;
    /* Explicitly reset if needed */
}

/* Collapse Choices in Centered Mode */
.quiz-content.centered-mode .choices-area {
    flex: 0.0001;
    /* Use tiny value to allow transition vs 0 */
    opacity: 0;
    pointer-events: none;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    /* Hide padding */
    gap: 0;
}

/* When centered mode is REMOVED, question transitions back to normal position defined in .question-area */
/* We rely on CSS toggle for this transition */

@keyframes techFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-underline {
    position: relative;
    width: 60px;
    height: 1px;
    background: var(--lab-border);
    margin-top: 24px;
    overflow: hidden;
    transition: opacity 0.5s ease;
    /* Smooth fade */
}

/* Hide underline when question exits */
.question-text.exit~.question-underline {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.question-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lab-accent);
    transform: translateX(-100%);
    animation: dataStream 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes dataStream {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* --- Choices Area --- */
.choices-area {
    flex: 1 1 auto;
    /* Grow to fill remaining space */
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding: 0 0 20px 0;
    min-height: 0;
}

.choice-card {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-radius: 16px;
    /* Rounder friendly corners */
    border: 2px solid transparent;
    /* Rich Background: Glossy White + Subtle Gradient + Tech Pattern */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 11px);
    background-origin: padding-box, padding-box, padding-box;
    background-clip: padding-box, padding-box, padding-box;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;

    /* Deep Glass Shadow */
    box-shadow:
        0 10px 20px -5px rgba(148, 163, 184, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
}

/* Choice A - Warm/Passion Theme */
.choice-card.choice-a {
    /* Gradient Border PREPARATION */
    background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), linear-gradient(135deg, #F472B6 0%, #FCA5A5 100%);
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.15);

    /* Animation */
    opacity: 0;
    transform: translateX(-20px);
    animation: techSlideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}

/* Hover effects only for devices with real hover capability (not touch) */
@media (hover: hover) {
    .choice-card.choice-a:hover {
        background-image: linear-gradient(white, white), linear-gradient(135deg, #EC4899 0%, #F87171 100%);
        box-shadow: 0 8px 25px rgba(236, 72, 153, 0.25);
        transform: translateY(-3px) scale(1.01);
    }
}

/* Choice B - Cool/Calm Theme */
.choice-card.choice-b {
    /* Gradient Border PREPARATION */
    background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), linear-gradient(135deg, #22D3EE 0%, #818CF8 100%);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.15);

    /* Animation */
    opacity: 0;
    transform: translateX(20px);
    animation: techSlideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

@media (hover: hover) {
    .choice-card.choice-b:hover {
        background-image: linear-gradient(white, white), linear-gradient(135deg, #06B6D4 0%, #6366F1 100%);
        box-shadow: 0 8px 25px rgba(6, 182, 212, 0.25);
        transform: translateY(-3px) scale(1.01);
    }
}

/* Shimmer Layer - DISABLED */
.choice-card::before {
    display: none;
}

.choice-card.choice-a::before {
    display: none;
}

.choice-card.choice-b::before {
    display: none;
}

.choice-card:hover::before {
    display: none;
}

@keyframes techSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Selected State (Immediate Feedback - Subtle) */
.choice-card.selected {
    transform: scale(0.96);
    opacity: 0.85;
    transition: all 0.1s ease-out;
}

/* Exit Animations for Dramatic Transition */
.question-text.exit {
    animation: techFadeOut 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.choice-card.exit {
    animation: techFadeOutScale 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    pointer-events: none;
}

@keyframes techFadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        filter: blur(10px);
        /* Cinematic dissolve */
    }
}

@keyframes techFadeOutScale {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(8px);
    }
}

/* Unified Exit Animation selector */
.choice-card.exit {
    animation: techFadeOutScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    pointer-events: none;
    transition: none;
    /* Disable transition to let animation take full control */
}

/* Remove separate specific selectors if they existed to avoid confusion, 
   or keep them if they had specific overrides (they didn't). 
   This replaces the block where I likely added .choice-a.exit, .choice-b.exit 
*/

/* Restored Exit Animations */
.choice-a.exit,
.choice-b.exit {
    animation: techFadeOutScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}



.choice-card:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* Theme Accents on Hover - KEEP ACCENTS for Label/Icons if any, but text stays dark or subtle change */
/* Previously text labels might have changed bg, but now only text exists. */
/* We can make text slightly darker on hover */
.choice-card:hover .choice-text {
    color: #0F172A;
    /* Slate 900 */
}

/* Result Screen - Reasons */
.result-reasons {
    margin-top: 16px;
    width: 100%;
}

.reasons-header {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center header too */
    gap: 8px;
    margin-bottom: 12px;
    /* More space */
    color: var(--lab-text-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    /* Wider spacing */
}

.reasons-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    /* Wider gap */
}

.reason-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(203, 213, 225, 0.6);
    /* Lighter border */
    border-radius: 4px;
    /* Tech look */
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    animation: techFadeIn 0.5s ease forwards;
    box-shadow: 0 4px 10px rgba(148, 163, 184, 0.05);
}

.reason-label {
    font-size: 0.65rem;
    color: var(--lab-text-muted);
    margin-bottom: 8px;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.05em;
}

.reason-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lab-primary);
}

/* Stagger animations */
.reason-item:nth-child(1) {
    animation-delay: 0.1s;
}

.reason-item:nth-child(2) {
    animation-delay: 0.2s;
}

.reason-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Background Decor (Subtle Tech Grid) */
.choice-bg-decor {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 100px;
    background-image:
        linear-gradient(90deg, transparent 50%, rgba(59, 130, 246, 0.03) 50%);
    background-size: 4px 100%;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.choice-card:hover .choice-bg-decor {
    opacity: 1;
}

/* OR Badge - Minimalist */
.or-badge {
    position: absolute;
    top: calc(50% - 10px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    /* Animation managed by JS adding classes */
}

.or-badge.enter {
    animation: fadeInStatic 0.4s ease 0.5s forwards;
}

.or-badge.exit {
    animation: fadeOutStatic 0.3s ease forwards;
}

@keyframes fadeInStatic {
    to {
        opacity: 1;
    }
}

@keyframes fadeOutStatic {
    to {
        opacity: 0;
    }
}

.or-badge span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #FFFFFF;
    border: 1px solid var(--lab-border);
    color: var(--lab-text-light);
    font-size: 0.6rem;
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    border-radius: 4px;
    /* Diamond Rotation later? Keep square for tech */
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(148, 163, 184, 0.1);
}

.or-badge span::after {
    content: 'OR';
    transform: rotate(-45deg);
    /* Counter rotate text */
}

/* Hide original text in span to use after pseudo with rotation (or just rotate span container) */
.or-badge span {
    font-size: 0;
    /* Hide raw text */
}

.or-badge span::after {
    font-size: 0.6rem;
    display: block;
}

/* ========================================
   Analysis Gauge (Progress Bar)
   ======================================== */
.analysis-gauge-container {
    flex: 1;
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    position: relative;
}

.analysis-label {
    font-size: 0.65rem;
    font-family: 'Roboto Mono', monospace;
    color: var(--lab-accent);
    letter-spacing: 0.15em;
    animation: analysisPulse 1.5s ease-in-out infinite;
}

@keyframes analysisPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(200, 210, 220, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

/* Scrolling data dots background - DISABLED for cleaner look */
.progress-bar::before {
    display: none;
}

@keyframes scrollDots {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F472B6 0%, #818CF8 100%);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 8px rgba(244, 114, 182, 0.4);
    position: relative;
    border-radius: 2px;
}

/* Removed gradient shift animation for cleaner look */

/* Bright leading edge */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    border-radius: 2px;
}

/* ========================================
   Result Screen
   ======================================== */
.result-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 16px 20px;
    overflow: hidden;
    gap: 8px;
    height: var(--vh, 100vh);
}

/* Job-based Background Colors - Rich & Vibrant (test4 inspired) */
.result-screen[data-job="warrior"] {
    background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.2'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
    background-size: 40px 40px, 40px 40px, cover, cover;
    background-position: center top, center top, center, center;
}

.result-screen[data-job="musician"] {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.2'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    background-size: 40px 40px, 40px 40px, cover, cover;
    background-position: center top, center top, center, center;
}

.result-screen[data-job="knight"] {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.2'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    background-size: 40px 40px, 40px 40px, cover, cover;
    background-position: center top, center top, center, center;
}

.result-screen[data-job="monk"] {
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.2'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
    background-size: 40px 40px, 40px 40px, cover, cover;
    background-position: center top, center top, center, center;
}

.result-screen[data-job="assassin"] {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.2'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    background-size: 40px 40px, 40px 40px, cover, cover;
    background-position: center top, center top, center, center;
}

.result-screen[data-job="summoner"] {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.2'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    background-size: 40px 40px, 40px 40px, cover, cover;
    background-position: center top, center top, center, center;
}

.result-screen[data-job="wizard"] {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.2'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    background-size: 40px 40px, 40px 40px, cover, cover;
    background-position: center top, center top, center, center;
}

.result-screen[data-job="alchemist"] {
    background: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.2'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
    background-size: 40px 40px, 40px 40px, cover, cover;
    background-position: center top, center top, center, center;
}

.result-container {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.2),
        0 30px 60px -15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Top Bar */
.result-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(241, 245, 249, 0.5);
    animation: slideUpResult 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
    position: relative;
    z-index: 1;
}

.result-user-info {
    text-align: left;
}

.user-id-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--lab-secondary);
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--lab-text);
}

.result-status {
    text-align: right;
}

.status-badge {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--lab-accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.status-date {
    font-size: 0.55rem;
    color: var(--lab-text-light);
    font-family: 'Roboto Mono', monospace;
}

/* Main Result */
.result-main {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.result-icon-container {
    position: relative;
    margin: 0 auto 12px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.result-icon {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    line-height: 1;
    animation: popIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.result-type-label {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--lab-secondary);
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.2em;
    margin-bottom: 6px;
    animation: slideUpResult 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

.result-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--lab-primary);
    margin-top: 12px;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    animation: slideUpResult 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}

.result-description {
    font-size: 0.8rem;
    line-height: 1.7;
    color: rgba(15, 23, 42, 0.8);
    font-weight: 500;
    padding: 0 8px;
    animation: slideUpResult 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s backwards;
}

/* Traits Section */
.result-traits {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #F1F5F9;
    margin-bottom: 12px;
    animation: slideUpResult 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s backwards;
}

.traits-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--lab-secondary);
    margin-bottom: 8px;
}

.traits-header svg {
    flex-shrink: 0;
}

.traits-header span {
    font-size: 0.6rem;
    font-weight: 700;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.1em;
}

.traits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
    position: relative;
    z-index: 1;
}

.trait-item {
    animation: slideUpResult 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.trait-item:nth-child(1) {
    animation-delay: 0.8s;
}

.trait-item:nth-child(2) {
    animation-delay: 0.85s;
}

.trait-item:nth-child(3) {
    animation-delay: 0.9s;
}

.trait-item:nth-child(4) {
    animation-delay: 0.95s;
}

.trait-item:nth-child(5) {
    animation-delay: 1.0s;
}

.trait-item:nth-child(6) {
    animation-delay: 1.05s;
}

.trait-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.trait-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--lab-secondary);
}

.trait-value {
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--lab-primary);
    font-family: 'Roboto Mono', monospace;
}

.trait-bar-bg {
    height: 6px;
    background: #E2E8F0;
    border-radius: 3px;
    overflow: hidden;
}

.trait-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.trait-bar-fill.color-1 {
    background: var(--lab-accent);
}

.trait-bar-fill.color-2 {
    background: var(--lab-accent);
}

.trait-bar-fill.color-3 {
    background: #6366F1;
}

.trait-bar-fill.color-4 {
    background: #6366F1;
}

.trait-bar-fill.color-5 {
    background: #F43F5E;
}

.trait-bar-fill.color-6 {
    background: #F43F5E;
}

/* ========================================
   Sci-Fi Analysis Overlay
   ======================================== */
.analysis-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 10, 25, 0.97) 0%, rgba(30, 20, 45, 0.97) 100%);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    animation: analysisOverlayIn 0.5s ease-out;
}

@keyframes analysisOverlayIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes analysisOverlayOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.98);
    }
}

.analysis-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    padding: 40px;
    border: 1px solid rgba(100, 116, 139, 0.4);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 50px rgba(71, 85, 105, 0.2), 0 0 100px rgba(51, 65, 85, 0.15);
    border-radius: 8px;
}

/* Hex Grid BG */
.hex-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(var(--lab-accent) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 0;
}

/* Scanner Line */
.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--lab-accent);
    box-shadow: 0 0 10px var(--lab-accent);
    animation: scanDown 2s linear infinite;
    z-index: 1;
    opacity: 0.5;
}

@keyframes scanDown {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Status Icon Complex */
.status-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid transparent;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-top-color: #64748B;
    border-bottom-color: #64748B;
    animation: spin 2s linear infinite;
}

.ring-2 {
    width: 70%;
    height: 70%;
    border-left-color: #94A3B8;
    border-right-color: #94A3B8;
    animation: spin 3s linear infinite reverse;
}

.ring-3 {
    width: 120%;
    height: 120%;
    border: 1px dashed rgba(100, 116, 139, 0.4);
    animation: pulseScale 2s ease-in-out infinite;
}

.status-core {
    font-size: 1.5rem;
    color: #94A3B8;
    animation: pulseGlow 1s ease-in-out infinite alternate;
}

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

@keyframes pulseScale {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Text */
.analysis-status {
    position: relative;
    z-index: 2;
    text-align: center;
}

#analysis-text {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 8px;
    color: #E2E8F0;
    text-shadow: 0 0 10px rgba(148, 163, 184, 0.4);
}

.analysis-details {
    font-size: 0.7rem;
    color: #94A3B8;
    min-height: 1.2em;
}

/* Progress Bar */
.analysis-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}

.analysis-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #64748B, #94A3B8);
    box-shadow: 0 0 10px rgba(100, 116, 139, 0.5);
    transition: width 4s ease-in-out;
}

/* Tech Corners */
.tech-deco-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(100, 116, 139, 0.5);
    border-style: solid;
    z-index: 3;
}

.top-left {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.top-right {
    top: -1px;
    right: -1px;
    border-width: 2px 2px 0 0;
}

.bottom-left {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 2px 2px;
}

.bottom-right {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

/* Logo Header - Above card */
.result-logo-header {
    text-align: center;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-logo {
    width: 140px;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    margin-bottom: 16px;
}

/* Restart Link */
#restart-link {
    position: relative;
    z-index: 1;
    animation: slideUpResult 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.0s backwards;
}

#restart-link span:hover {
    color: var(--lab-accent) !important;
}

@keyframes slideUpResult {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 380px) {
    .intro-card {
        padding: 24px 20px;
    }

    .question-text {
        font-size: 1.2rem;
    }

    .choice-text {
        font-size: 0.85rem;
    }

    .result-container {
        padding: 30px 20px 24px;
    }
}

@media (min-height: 700px) {
    .question-area {
        min-height: 180px;
    }
}