/* --- ULTIMATE MAC STYLE VARIABLES --- */
:root {
    /* Lighting & Background */
    --bg-gradient: radial-gradient(circle at 50% 0%, #ffffff 0%, #f5f5f7 100%);
    
    /* Glass & Card Materials */
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.8);
    --card-backdrop: blur(20px);
    
    /* Colors */
    --text-primary: #1d1d1f;      /* Apple Black */
    --text-secondary: #86868b;    /* Apple Grey */
    --accent-blue: #0071e3;       /* Action Blue */
    --accent-red: #ff3b30;        /* Error/Fail */
    --accent-green: #34c759;      /* Success */
    --accent-purple: #af52de;     /* Victory */
     
    /* Shadows & Depth */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 12px 32px rgba(0, 113, 227, 0.15); /* Blue glow */
    --shadow-fail: 0 12px 32px rgba(255, 59, 48, 0.15);  /* Red glow */
    
    /* Physics */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    margin: 0;
    padding: 60px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligns to top for scrolling */
    -webkit-font-smoothing: antialiased;
}

/* --- WRAPPER --- */
.gauntlet-wrapper {
    width: 100%;
    max-width: 680px;
    position: relative;
    margin-top: 40px;
}

/* --- PROGRESS BAR (iOS Style) --- */
.progress-container {
    margin-bottom: 40px;
    text-align: center;
}

#step-counter {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.05); /* Subtle track */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--accent-blue);
    width: 10%;
    border-radius: 10px;
    transition: width 0.6s var(--ease-spring), background-color 0.4s ease;
}

/* --- THE GLASS CARD (Question Container) --- */
.question-card {
    background: var(--card-bg);
    backdrop-filter: var(--card-backdrop);
    -webkit-backdrop-filter: var(--card-backdrop);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    
    display: none; /* Hidden by default */
    animation: fadeScaleIn 0.5s var(--ease-spring);
    margin-bottom: 30px;
}

.question-card.active {
    display: block;
}

/* Typography */
.question-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.question-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

/* --- THE CHOICES (Interactive Tiles) --- */
.options-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.choice-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 24px 28px;
    border-radius: 18px;
    cursor: pointer;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: all 0.4s var(--ease-spring);
    position: relative;
    overflow: hidden;
}

/* Hover Physics */
.choice-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.choice-card:active {
    transform: scale(0.98);
}

/* Choice Typography */
.choice-content h3 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.choice-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    /* Override global p margin */
    margin-bottom: 0 !important; 
}

.arrow-icon {
    font-size: 1.4rem;
    color: #d1d1d6; /* Light grey arrow */
    font-weight: 500;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover Colors Logic */
.choice-card:hover .arrow-icon {
    transform: translateX(5px);
    color: var(--accent-blue);
}

/* Fail Option Specifics (Subtle Red Hover) */
.choice-design:hover {
    box-shadow: var(--shadow-fail);
}
.choice-design:hover .arrow-icon { color: var(--accent-red); }
.choice-design:hover h3 { color: var(--accent-red); }

/* Success Option Specifics (Subtle Blue/Green Hover) */
.choice-code:hover h3 { color: var(--accent-blue); }


/* --- NAVIGATION BUTTON --- */
.nav-controls {
    text-align: center;
    margin-top: 20px;
}

.btn-back {
    background: transparent;
    border: none;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.btn-back:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text-primary);
}

/* --- ANIMATIONS --- */
@keyframes fadeScaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

/* --- MOBILE --- */
@media (max-width: 600px) {
    .gauntlet-wrapper { margin-top: 10px; }
    .question-card { padding: 25px; border-radius: 20px; }
    .question-card h2 { font-size: 1.6rem; }
    .choice-card { padding: 20px; }
}