/* ===== CSS Variables ===== */
:root {
    --bg-primary: #09090b;
    --bg-secondary: #18181b;
    --bg-tertiary: #27272a;
    --bg-card: #1c1c1f;
    
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent: #8b5cf6;
    --accent-hover: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.25);
    
    --success: #22c55e;
    --success-glow: rgba(34, 197, 94, 0.2);
    --error: #ef4444;
    --error-glow: rgba(239, 68, 68, 0.2);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.2);
    
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition: 0.2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 0% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== Phases ===== */
.phase {
    display: none;
    min-height: 100vh;
    padding: 40px 20px;
    animation: fadeIn 0.4s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

/* ===== Typography ===== */
h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ===== Logo & Icons ===== */
.logo-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    filter: grayscale(20%);
}

.header-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* ===== Buttons ===== */
.btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn.primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn.primary:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

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

.btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn.secondary:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

.btn.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn.large {
    padding: 16px 40px;
    font-size: 1rem;
}

.btn-icon {
    font-size: 1.1em;
}

/* ===== Forms ===== */
.id-form {
    max-width: 360px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.helper-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Group Assignment Animation */
.group-assignment {
    margin-top: 32px;
    text-align: center;
}

.group-assignment.hidden {
    display: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

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

/* ===== Consent Box ===== */
.consent-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 28px;
    max-height: 380px;
    overflow-y: auto;
}

.consent-box h2 {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.consent-box h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.consent-box p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.consent-box ul {
    color: var(--text-secondary);
    margin: 0 0 12px 24px;
}

.consent-box li {
    margin-bottom: 6px;
}

.consent-box::-webkit-scrollbar {
    width: 5px;
}

.consent-box::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.consent-box::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.debrief-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, transparent 100%);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Checkbox */
.consent-checkbox {
    margin-bottom: 28px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    padding: 18px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.checkbox-container:hover {
    border-color: var(--border-hover);
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--text-muted);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    margin-top: 2px;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-container input:checked ~ .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.checkbox-text {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ===== Instruction Box ===== */
.instruction-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 28px;
    text-align: center;
}

.instruction-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.instruction-box p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.instruction-box ul {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 20px;
    color: var(--text-secondary);
}

.instruction-box li {
    margin-bottom: 10px;
    padding-left: 8px;
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-top: 20px;
    color: var(--error);
    font-weight: 500;
}

.tip-text {
    color: var(--success) !important;
    font-weight: 500;
    margin-top: 16px;
}

/* IGT Rules */
.igt-rules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: left;
    margin: 24px 0;
}

.rule-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.rule-icon {
    font-size: 1.5rem;
}

.rule-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.rule-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== Math Test (MIST) ===== */
.math-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    padding: 20px;
}

/* Timer Section */
.timer-section {
    margin-bottom: 24px;
}

.timer-bar-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

.timer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.timer-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.timer-display {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timer-display.warning {
    color: var(--warning);
}

.timer-display.danger {
    color: var(--error);
    animation: pulse 0.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.timer-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius-full);
    width: 100%;
    transition: width 0.1s linear, background 0.3s ease;
}

.timer-progress.warning {
    background: linear-gradient(90deg, var(--warning), #fbbf24);
}

.timer-progress.danger {
    background: linear-gradient(90deg, var(--error), #f87171);
}

.performance-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    color: var(--error);
    font-size: 0.85rem;
    font-weight: 500;
}

.performance-indicator.hidden {
    display: none;
}

/* Total Progress */
.total-progress {
    margin-bottom: 24px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-bar-bg {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

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

/* Question Area */
.question-area {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.math-question {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 36px;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.math-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 380px;
    margin: 0 auto;
}

.math-option {
    padding: 18px 24px;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.math-option:hover {
    border-color: var(--accent);
    transform: scale(1.02);
}

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

.math-option.correct {
    background: var(--success-glow);
    border-color: var(--success);
    color: var(--success);
}

.math-option.wrong {
    background: var(--error-glow);
    border-color: var(--error);
    color: var(--error);
}

.math-option:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Feedback Overlay */
.feedback-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    z-index: 10;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.feedback-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

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

.feedback-icon {
    font-size: 6rem;
    display: block;
    animation: feedbackPop 0.3s ease;
}

.feedback-text {
    display: block;
    margin-top: 12px;
    font-size: 1.1rem;
    font-weight: 600;
}

.feedback-overlay.wrong .feedback-icon::after {
    content: '✗';
    color: var(--error);
    text-shadow: 0 0 40px var(--error);
}

.feedback-overlay.wrong .feedback-text {
    color: var(--error);
}

.feedback-overlay.correct .feedback-icon::after {
    content: '✓';
    color: var(--success);
}

.feedback-overlay.correct .feedback-text {
    color: var(--success);
}

.feedback-overlay.timeout .feedback-icon::after {
    content: '⏱';
    color: var(--warning);
}

.feedback-overlay.timeout .feedback-text {
    color: var(--warning);
}

@keyframes feedbackPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Score Section */
.score-section {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
}

.score-section.hidden {
    display: none;
}

.score-item {
    text-align: center;
}

.score-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.score-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

.score-item.correct .score-value {
    color: var(--success);
}

.score-item.wrong .score-value {
    color: var(--error);
}

.score-item.accuracy .score-value {
    color: var(--accent);
}

/* ===== Scale Styles ===== */
.scale-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 8px;
}

.scale-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.scale-question-text {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.5;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding: 0 4px;
}

.scale-options {
    display: flex;
    gap: 8px;
}

.scale-option {
    flex: 1;
}

.scale-option input {
    display: none;
}

.scale-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.scale-option:hover span {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.scale-option input:checked ~ span {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.scale-container::-webkit-scrollbar {
    width: 5px;
}

.scale-container::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.scale-container::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

/* Scale Instructions & Legend */
.scale-instructions {
    background: rgba(139, 92, 246, 0.05) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
}

.scale-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 6px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.legend-num {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== Iowa Gambling Task ===== */
.igt-container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
}

.igt-header {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
}

.igt-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.money-stat .stat-value {
    color: var(--success);
}

/* IGT Feedback */
.igt-feedback {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: opacity 0.3s ease;
}

.igt-feedback.hidden {
    opacity: 0;
}

.igt-feedback-content {
    display: flex;
    gap: 40px;
}

.igt-result {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    animation: resultPop 0.4s ease;
}

.igt-result.win {
    color: var(--success);
}

.igt-result.lose {
    color: var(--error);
}

.igt-result.hidden {
    display: none;
}

@keyframes resultPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Decks */
.decks-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.deck {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.deck:hover {
    transform: translateY(-8px);
}

.deck:active {
    transform: translateY(-4px) scale(0.98);
}

.deck-stack {
    position: relative;
    width: 130px;
    height: 180px;
}

.deck-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2d2d35 0%, #1a1a20 100%);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.deck-card:nth-child(1) {
    top: 6px;
    left: 3px;
    opacity: 0.4;
}

.deck-card:nth-child(2) {
    top: 3px;
    left: 1.5px;
    opacity: 0.7;
}

.deck-card.main {
    position: relative;
    top: 0;
    left: 0;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #35354a 0%, #1f1f2a 100%);
    transition: all 0.2s ease;
}

.deck-card.main::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: calc(var(--radius-lg) - 4px);
}

.deck:hover .deck-card.main {
    border-color: var(--accent);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.deck-letter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.deck-label {
    text-align: center;
    margin-top: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.igt-instruction {
    text-align: center;
    color: var(--text-muted);
}

/* ===== End Phase ===== */
.success-icon {
    width: 90px;
    height: 90px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 28px;
    animation: successPop 0.5s ease;
    box-shadow: 0 8px 32px var(--success-glow);
}

@keyframes successPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.summary-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 32px;
}

.summary-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.summary-item {
    text-align: center;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.summary-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
}

.summary-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.summary-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-bottom: 40px;
}

.submit-section > p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.submit-status {
    margin-top: 16px;
    font-weight: 500;
}

.submit-status.success {
    color: var(--success);
}

.submit-status.error {
    color: var(--error);
}

/* Admin Panel */
.admin-panel {
    background: var(--bg-tertiary);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    margin-top: 24px;
}

.admin-panel h3 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.admin-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.admin-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: left;
}

/* IGT Block Summary Grid */
.igt-block-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.block-item {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
}

.block-item .block-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.block-item .block-trials {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.block-item .block-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.block-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.block-stat .stat-label {
    color: var(--text-muted);
}

.block-stat .stat-value {
    font-family: var(--font-mono);
    font-weight: 600;
}

.block-stat .stat-value.positive {
    color: var(--success);
}

.block-stat .stat-value.negative {
    color: var(--error);
}

.block-stat .stat-value.neutral {
    color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    .math-question {
        font-size: 2.25rem;
    }
    
    .decks-container {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .deck-stack {
        width: 100px;
        height: 140px;
    }
    
    .deck-letter {
        font-size: 2rem;
    }
    
    .igt-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .igt-rules {
        grid-template-columns: 1fr;
    }
    
    .scale-options {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .scale-option {
        flex: 0 0 calc(20% - 6px);
        min-width: 48px;
    }
    
    .igt-block-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .igt-block-grid .block-item:last-child {
        grid-column: span 2;
        max-width: 50%;
        margin: 0 auto;
    }
    
    .admin-buttons {
        flex-direction: column;
    }
    
    .admin-buttons .btn {
        width: 100%;
    }
}



