:root {
    --bg-image-fallback: radial-gradient(circle at 15% 50%, rgba(196, 255, 0, 0.05), transparent 25%), radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.02), transparent 25%);
    --bg-body: #050505;
    --bg-overlay: rgba(0, 0, 0, 0.88);
    --bg-glass: rgba(15, 15, 15, 0.92);
    --bg-glass-hover: rgba(30, 30, 30, 0.95);
    --primary-50: rgba(196, 255, 0, 0.05);
    --primary-500: #c4ff00;
    --primary-600: #a3d600;
    --primary-glow: 0 0 15px rgba(196, 255, 0, 0.25);
    --text-main: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-inverse: #000000;
    --text-muted: rgba(255, 255, 255, 0.4);
    --success: #00ff9d;
    --success-bg: rgba(0, 255, 157, 0.15);
    --error: #ff0055;
    --error-bg: rgba(255, 0, 85, 0.15);
    --border-glass: rgba(255, 255, 255, 0.1);
    --backdrop-blur: blur(12px);
    --container-width: 1200px;
    
    /* Compact Design System Variables */
    --header-height: 48px;
    --header-height-mobile: 44px;
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --font-h1: clamp(1.5rem, 3vw, 1.75rem);
    --font-h2: clamp(1.15rem, 2.5vw, 1.35rem);
    --font-h3: clamp(0.95rem, 2vw, 1.05rem);
    --font-body: clamp(0.85rem, 1.5vw, 0.9rem);
    --font-small: 0.75rem;
    --font-tiny: 0.7rem;

    --transition-fast: 0.15s ease;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Base & Typography */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html, body { max-width: 100vw; overflow-x: hidden; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    background-image: var(--bg-image-fallback);
    background-image: url('assets/background.jpg'), var(--bg-image-fallback);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.4;
    position: relative;
    padding-top: calc(var(--header-height-mobile) + var(--space-lg));
    font-size: var(--font-body);
}

body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-overlay); z-index: -1; pointer-events: none;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
.neon-text { color: var(--primary-500); text-shadow: var(--primary-glow); }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    flex-direction: column;
}

.content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: var(--space-2xl);
}

/* Header */
.header {
    position: fixed; left: 50%; transform: translateX(-50%); z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(5, 5, 5, 0.95); backdrop-filter: var(--backdrop-blur); -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--primary-500); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    top: 0; width: 100%; max-width: 100%; height: var(--header-height-mobile); padding: 0 var(--space-md);
    transition: all 0.3s var(--ease-out-expo);
}
.header.header-hidden { transform: translate(-50%, -100%); }

.header-brand {
    display: flex; align-items: center; gap: var(--space-sm);
    font-weight: 800; font-size: 0.95rem; color: var(--text-main); letter-spacing: -0.02em; cursor: pointer;
    line-height: 1;
}

.icon-logo { width: 20px; height: 20px; }

.logo-container { display: inline-flex; align-items: center; position: relative; height: 1.2rem; font-family: var(--font-mono); }
.logo-full {
    display: inline-block; white-space: nowrap; overflow: hidden; width: 0;
    animation: typing 2s steps(7, end) forwards, blink 0.8s step-end infinite, hideFull 0.5s ease forwards 4s;
    border-right: 2px solid var(--primary-500);
}
.logo-abbr { position: absolute; left: 0; opacity: 0; display: flex; font-weight: 800; animation: showAbbr 0.5s ease forwards 4.5s; }
.logo-abbr .q { color: #ffffff; }
.logo-abbr .l { color: var(--primary-500); text-shadow: var(--primary-glow); }

@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink { from, to { border-color: transparent } 50% { border-color: var(--primary-500) } }
@keyframes hideFull { to { width: 0; opacity: 0; visibility: hidden; } }
@keyframes showAbbr { to { opacity: 1; } }

.header-subtitle {
    font-family: var(--font-mono); font-size: var(--font-tiny); color: var(--primary-500);
    border: 1px solid rgba(196, 255, 0, 0.3); padding: 1px 8px; border-radius: var(--radius-sm);
    background: rgba(196, 255, 0, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    padding: 8px var(--space-lg); font-size: 0.8rem; font-weight: 700; border-radius: var(--radius-md);
    cursor: pointer; border: none; font-family: var(--font-sans); text-transform: uppercase;
    letter-spacing: 0.03em; white-space: normal; text-align: center; line-height: 1.2;
    min-height: 36px; transition: all var(--transition-fast);
    position: relative; overflow: hidden; /* Fix for ripple and size distortion */
}
.btn-primary { background: var(--primary-500); color: var(--text-inverse); box-shadow: var(--primary-glow); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255,255,255,0.3); }

.btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text-main); border: 1px solid var(--border-glass); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--text-secondary); }

.btn-outline { background: transparent; border: 1px solid var(--primary-500); color: var(--primary-500); }
.btn-outline:hover { background: var(--primary-500); color: var(--text-inverse); }

.btn-ghost { background: transparent; color: var(--text-secondary); padding: var(--space-sm); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); }
.btn-ghost:hover { color: var(--primary-500); filter: drop-shadow(0 0 8px var(--primary-500)); background: rgba(255, 255, 255, 0.05); }

.header .btn-ghost {
    width: 32px;
    height: 32px;
    padding: 0;
}

.btn:disabled { opacity: 0.5; filter: grayscale(1); cursor: not-allowed; transform: none !important; }

/* Ripple Effect */
.ripple {
    position: absolute; border-radius: 50%; transform: scale(0);
    animation: ripple 0.6s linear; background-color: rgba(255, 255, 255, 0.3);
    pointer-events: none; z-index: 0;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Icon System */
.icon-svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; z-index: 1; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

.anim-bounce { animation: anim-bounce 2s infinite ease-in-out; }
@keyframes anim-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Landing Page Components */
.hero-section { text-align: center; padding: var(--space-xl) 0; }
.hero-title { font-size: var(--font-h1); margin-bottom: var(--space-sm); }
.hero-desc { font-size: 0.9rem; max-width: 600px; margin: 0 auto var(--space-xl); color: var(--text-secondary); line-height: 1.6; }

.features-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-md); padding: var(--space-md) 0; }
.feature-card {
    background: var(--bg-glass); border: 1px solid var(--border-glass); padding: var(--space-md);
    border-radius: var(--radius-md); transition: var(--transition-fast); display: flex; align-items: flex-start; gap: var(--space-md);
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--primary-500); box-shadow: inset 0 0 20px rgba(196,255,0,0.05); }
.feature-icon-wrapper { color: var(--primary-500); flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding-top: 2px; }
.feature-card h3 { font-size: var(--font-h3); margin-bottom: var(--space-xs); color: var(--text-main); }
.feature-card p { font-size: 0.85rem; line-height: 1.4; color: var(--text-secondary); margin: 0; }

/* Upload Screen */
.upload-area {
    border: 2px dashed var(--border-glass); padding: var(--space-xl) var(--space-lg); text-align: center;
    background: var(--bg-glass); border-radius: var(--radius-lg); transition: 0.3s; position: relative; overflow: hidden;
}
.upload-area:hover { border-color: var(--primary-500); background: rgba(196,255,0,0.02); }
.upload-area.dragover::after {
    content: 'SOLTE O ARQUIVO AQUI'; position: absolute; inset: 0; background: rgba(5, 5, 5, 0.9);
    color: var(--primary-500); display: flex; align-items: center; justify-content: center;
    font-size: var(--font-h2); font-weight: 800; backdrop-filter: blur(4px); z-index: 10; animation: fadeIn 0.2s;
}

/* Quiz UI Components */
.quiz-info-bar {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg-glass); border: 1px solid var(--border-glass);
    border-radius: var(--radius-md); padding: 6px 12px;
    margin-bottom: var(--space-lg); transition: all 0.3s var(--ease-out-expo);
    overflow: hidden; height: 44px;
}

.quiz-info-bar.hidden-panel {
    background: transparent;
    border-color: transparent;
    padding: 0;
    margin-bottom: var(--space-sm);
    justify-content: flex-end;
    width: 100%;
    height: 32px;
    pointer-events: none; /* Permite clicar no conteúdo atrás da área vazia */
}

.quiz-info-bar.hidden-panel > *:not(.toggle-visibility-btn) {
    display: none !important;
}

.quiz-info-bar.hidden-panel .toggle-visibility-btn {
    pointer-events: auto;
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
}

.quiz-info-bar.hidden-panel .toggle-visibility-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.score-display { display: flex; gap: var(--space-md); align-items: center; }
.score-mini {
    font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; gap: 4px;
}
.score-mini.correct { color: var(--success); }
.score-mini.incorrect { color: var(--error); }
.score-mini span { font-size: 0.9rem; }

/* Progress & Grid */
.progress-section { margin-bottom: var(--space-xl); }
.question-grid {
    display: flex; gap: var(--space-sm); margin-bottom: var(--space-md); overflow-x: auto;
    padding: var(--space-xs) 0 var(--space-sm); scrollbar-width: thin; scrollbar-color: var(--primary-500) transparent;
}
.question-grid::-webkit-scrollbar { height: 4px; }
.question-grid::-webkit-scrollbar-thumb { background: var(--primary-500); border-radius: 4px; }

.grid-item {
    min-width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-glass);
    display: grid; place-content: center; font-size: var(--font-small); font-family: var(--font-mono); font-weight: 700;
    cursor: pointer; transition: all 0.2s; background: rgba(255, 255, 255, 0.05); color: var(--text-muted);
}
.grid-item:hover { border-color: var(--primary-500); color: #fff; }
.grid-item.current { border-color: var(--primary-500); background: var(--primary-50); color: var(--primary-500); box-shadow: 0 0 10px rgba(196, 255, 0, 0.2); }
.grid-item.answered-correct { background: var(--success-bg); border-color: var(--success); color: var(--success); }
.grid-item.answered-incorrect { background: var(--error-bg); border-color: var(--error); color: var(--error); }
.grid-item.visited { border-color: var(--text-secondary); color: var(--text-main); }

.progress-track { height: 4px; background: rgba(255,255,255,0.1); border-radius: 0; }
.progress-fill { height: 100%; background: var(--primary-500); box-shadow: var(--primary-glow); transition: width 0.4s ease; }

/* Question Container */
.question-text { font-size: var(--font-h3); font-weight: 600; margin-bottom: var(--space-lg); color: #fff; line-height: 1.4; }
.alternative {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-md);
    padding: var(--space-md) var(--space-lg); margin-bottom: var(--space-sm); background: rgba(20, 20, 20, 0.5);
    border: 1px solid var(--border-glass); border-radius: var(--radius-sm); cursor: pointer; transition: 0.2s; min-height: 48px;
}
.alternative:hover:not(.disabled) { border-color: var(--primary-500); transform: translateX(2px); background: rgba(196, 255, 0, 0.02); }
.alternative.selected { border-color: var(--primary-500); background: rgba(196, 255, 0, 0.08); box-shadow: inset 4px 0 0 var(--primary-500); }
.alternative.correct { border-color: var(--success); background: var(--success-bg); }
.alternative.incorrect { border-color: var(--error); background: var(--error-bg); }
.alternative-text { font-size: var(--font-body); color: var(--text-main); }
.alternative input { width: 18px; height: 18px; cursor: pointer; }

/* Library Components */
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-md); }
.library-card { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: var(--space-md); transition: var(--transition-fast); display: flex; flex-direction: column; }
.library-card:hover { border-color: var(--primary-500); transform: translateY(-2px); }
.lib-title { font-weight: 700; color: var(--text-main); font-size: 0.9rem; margin-bottom: 2px; }
.lib-date { font-size: var(--font-tiny); color: var(--text-muted); font-family: var(--font-mono); }
.lib-meta { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: var(--space-md); flex: 1; }
.lib-actions { display: flex; gap: var(--space-xs); margin-top: auto; }
.lib-actions .btn { flex: 1; padding: 6px 8px; font-size: 0.7rem; }

.library-stats {
    background: rgba(196, 255, 0, 0.05); border: 1px solid var(--primary-500); color: var(--primary-500);
    padding: var(--space-md); border-radius: var(--radius-sm); text-align: center; font-family: var(--font-mono);
    font-weight: 700; margin-bottom: var(--space-xl); font-size: 0.85rem;
}

/* Builder / Creator */
.builder-card { background: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-md); margin-bottom: var(--space-md); overflow: hidden; }
.builder-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-md); background: rgba(255,255,255,0.02); cursor: pointer; }
.builder-title-wrapper { display: flex; align-items: center; gap: var(--space-sm); }
.status-icon { 
    width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--text-muted);
    display: grid; place-content: center; color: transparent; transition: 0.3s;
}
.builder-card.completed .status-icon { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.builder-card-body { padding: var(--space-md) var(--space-lg); border-top: 1px solid var(--border-glass); }

.drag-handle { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; user-select: none; cursor: grab; padding-right: var(--space-xs); }
.char-counter { font-family: var(--font-mono); font-size: var(--font-tiny); color: var(--text-muted); }

/* Forms */
.input-group { margin-bottom: var(--space-md); }
.input-label { display: block; font-size: var(--font-small); margin-bottom: var(--space-xs); font-weight: 600; color: var(--text-secondary); letter-spacing: 0.05em; }
.input-field {
    width: 100%; padding: 10px var(--space-md); background: rgba(0,0,0,0.4); border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm); color: #fff; font-size: 0.9rem; transition: 0.2s;
}
.input-field:focus { border-color: var(--primary-500); background: rgba(0,0,0,0.6); box-shadow: var(--primary-glow); outline: none; }

/* Modals */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px); z-index: 2000;
    display: flex; align-items: center; justify-content: center; padding: var(--space-md); animation: fadeIn 0.2s ease-out;
}
.modal-card {
    width: 100%; max-width: 400px; background: #0a0a0a; border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border-top: 2px solid var(--primary-500); transform: scale(0.98); animation: zoomIn 0.2s var(--ease-out-expo) forwards;
}
@keyframes zoomIn { to { transform: scale(1); } }
.modal-header { margin-bottom: var(--space-md); display: flex; align-items: center; gap: var(--space-sm); }
.modal-title { font-family: var(--font-mono); font-weight: 700; color: var(--primary-500); letter-spacing: 0.05em; font-size: 0.9rem; }
.modal-body { margin-bottom: var(--space-lg); line-height: 1.4; font-size: 0.9rem; color: var(--text-secondary); }
.modal-footer { display: flex; gap: var(--space-sm); justify-content: flex-end; }

.info-box { background: var(--bg-glass); padding: var(--space-md); border-radius: var(--radius-md); border: 1px solid var(--border-glass); display: flex; flex-direction: column; gap: var(--space-sm); }
.info-item { display: flex; gap: var(--space-md); align-items: flex-start; }
.info-num { color: var(--primary-500); font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; }
.info-text { font-size: 0.85rem; line-height: 1.4; color: var(--text-main); }

/* Results & Review */
.result-header { text-align: center; margin-bottom: var(--space-xl); }
.result-score { font-family: var(--font-mono); font-size: 3rem; font-weight: 800; color: var(--primary-500); line-height: 1; }
.result-percent { font-size: 1.2rem; font-weight: 700; color: var(--text-secondary); margin-top: var(--space-sm); }

.review-card { padding: var(--space-md); margin-bottom: var(--space-sm); border: 1px solid var(--border-glass); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.02); transition: var(--transition-fast); }
.review-card:hover { border-color: var(--primary-500); background: rgba(255, 255, 255, 0.04); }
.review-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-xs); font-size: var(--font-tiny); font-family: var(--font-mono); }
.review-card-body { font-weight: 600; color: var(--text-main); font-size: 0.85rem; }

/* Feedback Messages */
.feedback-message { margin-top: var(--space-lg); padding: var(--space-md); border-radius: var(--radius-sm); font-size: 0.85rem; display: flex; gap: var(--space-sm); align-items: start; animation: slideUp 0.3s ease-out; }
.feedback-message.correct { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); }
.feedback-message.incorrect { background: var(--error-bg); color: var(--error); border: 1px solid var(--error); }

/* Global Misc */
.navigation {
    display: flex; flex-direction: column-reverse; gap: var(--space-sm);
    margin-top: var(--space-xl); padding-top: var(--space-lg);
    border-top: 1px solid var(--border-glass); align-items: stretch;
}
.navigation .btn { width: 100%; flex: 1; z-index: 1; }

.footer { margin-top: var(--space-2xl); padding: var(--space-xl) 0; border-top: 1px solid var(--border-glass); text-align: center; color: var(--text-muted); }
.footer p { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-md); }
.dev-profile-img { width: 48px; height: 48px; border-radius: var(--radius-lg); border: 2px solid rgba(196, 255, 0, 0.3); margin-bottom: var(--space-sm); object-fit: cover; filter: grayscale(80%) contrast(1.2); transition: all 0.4s var(--ease-out-expo); background: var(--bg-glass); display: inline-block; }
.dev-profile-img:hover { filter: grayscale(0%) contrast(1); border-color: var(--primary-500); box-shadow: var(--primary-glow); transform: scale(1.05); }

.badge { font-size: var(--font-tiny); font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.08); color: var(--primary-500); border: 1px solid rgba(196,255,0,0.2); letter-spacing: 0.05em; display: inline-flex; align-items: center; white-space: nowrap; }
.badge.correct { color: var(--success); border-color: var(--success); background: var(--success-bg); }
.badge.incorrect { color: var(--error); border-color: var(--error); background: var(--error-bg); }
.badge.pending { color: #ffd700; border-color: #ffd700; background: rgba(255, 215, 0, 0.1); }

.toast { position: fixed; top: var(--space-lg); right: var(--space-lg); z-index: 3000; background: var(--bg-glass); border: 1px solid var(--border-glass); border-left: 4px solid var(--primary-500); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(0,0,0,0.5); color: #fff; min-width: 260px; display: flex; align-items: center; justify-content: space-between; animation: slideInRight 0.4s ease-out forwards; backdrop-filter: blur(8px); }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }

.toast-close {
    background: transparent; border: none; color: var(--text-muted);
    cursor: pointer; padding: 4px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); transition: var(--transition-fast);
}
.toast-close:hover { color: var(--primary-500); background: rgba(255, 255, 255, 0.05); }

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.skeleton { background: linear-gradient(90deg, var(--bg-glass) 25%, rgba(255,255,255,0.05) 50%, var(--bg-glass) 75%); background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-card { height: 120px; width: 100%; border-radius: var(--radius-md); border: 1px solid var(--border-glass); background: var(--bg-glass); }

/* Core Misc & Utilities */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.6s ease-out; }
.slide-up { animation: slideUp 0.6s ease-out; }

/* Grid & Flex Helpers */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }

/* Spacing Helpers */
.m-0 { margin: 0 !important; }
.mb-xs { margin-bottom: var(--space-xs) !important; }
.mb-sm { margin-bottom: var(--space-sm) !important; }
.mb-md { margin-bottom: var(--space-md) !important; }
.mb-lg { margin-bottom: var(--space-lg) !important; }

/* Text Helpers */
.text-primary { color: var(--primary-500) !important; }
.text-muted { color: var(--text-muted) !important; }
.font-mono { font-family: var(--font-mono) !important; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 480px) {
    .header-brand { font-size: 0.85rem; }
    .logo-full { display: none; }
    .logo-abbr { position: static; opacity: 1; animation: none; }
    .hero-title { font-size: 1.5rem; }
    .btn { padding: 6px 12px; font-size: 0.75rem; }
}

@media (min-width: 768px) {
    body { padding-top: calc(var(--header-height) + var(--space-xl)); }
    .header { height: var(--header-height); padding: 0 var(--space-xl); }
    .features-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
    .quiz-info-bar { flex-direction: row; justify-content: space-between; padding: var(--space-md) var(--space-xl); text-align: left; }
    .score-display { width: auto; }
    .score-item { flex-direction: column; min-width: 80px; }
    .navigation { flex-direction: row; gap: var(--space-md); }
    .navigation .btn { width: auto; flex: none; }
}