:root {
  --bg-deep: #1a1510;
  --bg-medium: #2a2318;
  --bg-light: #3d3425;
  --accent-gold: #B8860B;
  --accent-green: #4A7C59;
  --accent-brown: #8B4513;
  --accent-silver: #C0C0C0;
  --text-primary: #f5e6d3;
  --text-secondary: #c9b896;
  --text-muted: #8b7355;
}

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

body {
  font-family: 'VT323', monospace;
  background: var(--bg-deep);
  background-image: 
    radial-gradient(ellipse at 20% 20%, rgba(184, 134, 11, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(74, 124, 89, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(139, 69, 19, 0.05) 0%, transparent 70%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  image-rendering: pixelated;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Pixel art border helper */
.pixel-border {
  border: 4px solid var(--accent-gold);
  box-shadow: 
    inset -4px -4px 0px rgba(0,0,0,0.3),
    inset 4px 4px 0px rgba(255,255,255,0.1),
    0 0 0 4px var(--bg-deep);
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-medium) 0%, transparent 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--accent-brown);
}

.app-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-gold);
  text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
}

.title-icon {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.header-right {
  display: flex;
  gap: 0.75rem;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border: 3px solid;
  font-weight: 500;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s;
  font-family: 'VT323', monospace;
}

.stat-pill:hover {
  transform: translateY(-2px);
}

.stat-pill.points { 
  border-color: var(--accent-gold);
  box-shadow: inset -2px -2px 0 rgba(0,0,0,0.3);
}
.stat-pill.progress { 
  border-color: var(--accent-green);
  box-shadow: inset -2px -2px 0 rgba(0,0,0,0.3);
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-medium);
  border-bottom: 4px solid var(--accent-gold);
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-deep);
  border: 3px solid var(--bg-light);
  color: var(--text-secondary);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  cursor: pointer;
  transition: all 0.1s ease;
}

.tab-button:hover {
  background: var(--bg-light);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.tab-button.active {
  background: var(--accent-gold);
  color: var(--bg-deep);
  border-color: var(--accent-brown);
  box-shadow: 
    inset -3px -3px 0 rgba(0,0,0,0.3),
    0 4px 0 var(--bg-deep);
}

.tab-icon {
  font-size: 1.2rem;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

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

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  text-align: center;
  color: var(--accent-gold);
  text-shadow: 3px 3px 0 #000;
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.3rem;
}

/* Characters Grid */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.character-card {
  background: var(--bg-light);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.1s ease;
  border: 4px solid var(--bg-medium);
  position: relative;
  overflow: hidden;
}

.character-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color);
  opacity: 0;
  transition: opacity 0.3s;
}

.character-card.unlocked:hover {
  transform: translateY(-4px);
  border-color: var(--card-color);
  box-shadow: 
    0 4px 0 var(--card-color),
    inset -4px -4px 0 rgba(0,0,0,0.2);
}

.character-card.unlocked:hover::before {
  opacity: 1;
}

.character-card.locked {
  opacity: 0.6;
  cursor: default;
}

.character-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.character-avatar img {
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
  filter: drop-shadow(3px 3px 0 rgba(0,0,0,0.5));
}

.character-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.character-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
}

.fact-progress {
  margin-top: 1rem;
}

.fact-bar {
  height: 8px;
  background: var(--bg-deep);
  border: 2px solid var(--text-muted);
  overflow: hidden;
}

.fact-fill {
  height: 100%;
  background: var(--accent-green);
  transition: width 0.5s ease;
}

.fact-count {
  font-size: 1rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
}

.lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 21, 16, 0.85);
}

.lock-overlay img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal-content {
  background: var(--bg-medium);
  border: 6px solid var(--accent-gold);
  max-width: 500px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 
    8px 8px 0 rgba(0,0,0,0.5),
    inset -4px -4px 0 rgba(0,0,0,0.2);
}

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

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  border: 3px solid var(--text-muted);
  background: var(--bg-light);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.1s;
  z-index: 10;
  font-family: 'VT323', monospace;
}

.modal-close:hover {
  background: var(--accent-gold);
  color: var(--bg-deep);
  border-color: var(--accent-gold);
}

.character-modal {
  padding: 2rem;
}

.character-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--modal-color);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-avatar {
  width: 96px;
  height: 96px;
}

.modal-avatar img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.5));
}

.modal-header h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
}

.modal-tagline {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.1rem;
}

.character-bio {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.abilities-section, .facts-section, .connections-section {
  margin-bottom: 1.5rem;
}

.abilities-section h4, .facts-section h4, .connections-section h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.ability-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ability-badge {
  padding: 0.5rem 0.8rem;
  background: var(--bg-light);
  border: 2px solid var(--modal-color);
  font-size: 1rem;
}

.facts-list {
  list-style: none;
}

.fact-item {
  padding: 0.75rem;
  background: var(--bg-light);
  border: 2px solid var(--bg-deep);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s;
}

.fact-item.unlocked {
  border-left: 4px solid var(--accent-green);
}

.fact-item.locked {
  color: var(--text-muted);
  font-style: italic;
}

.connection-avatars {
  display: flex;
  gap: 0.75rem;
}

.connection-avatar {
  width: 64px;
  height: 64px;
  background: var(--bg-light);
  border: 3px solid var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  padding: 4px;
}

.connection-avatar img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.connection-avatar:hover {
  transform: scale(1.1);
  border-color: var(--accent-gold);
}

/* Timeline */
.era-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.era-button {
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border: 3px solid var(--bg-deep);
  color: var(--text-secondary);
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.1s;
}

.era-button:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.era-button.active {
  background: var(--accent-brown);
  color: white;
  border-color: var(--accent-gold);
  box-shadow: 0 3px 0 var(--bg-deep);
}

.timeline-container {
  position: relative;
  padding: 1rem 0;
}

.timeline-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 6px;
  background: repeating-linear-gradient(
    180deg,
    var(--accent-gold) 0px,
    var(--accent-gold) 8px,
    var(--accent-brown) 8px,
    var(--accent-brown) 16px
  );
}

.timeline-events {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-left: 50px;
}

.timeline-event {
  position: relative;
  padding: 1.25rem;
  background: var(--bg-light);
  border: 4px solid var(--bg-medium);
  transition: all 0.1s;
}

.timeline-event.discovered:hover {
  border-color: var(--event-color);
  transform: translateX(5px);
  box-shadow: -4px 4px 0 var(--event-color);
}

.timeline-event.hidden {
  opacity: 0.5;
}

.event-marker {
  position: absolute;
  left: -42px;
  top: 1.25rem;
  width: 20px;
  height: 20px;
  background: var(--event-color, var(--bg-light));
  border: 4px solid var(--bg-deep);
}

.event-year {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--event-color);
  margin-bottom: 0.5rem;
  display: block;
}

.event-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.event-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.event-characters {
  display: flex;
  gap: 0.25rem;
}

.event-char-avatar {
  width: 36px;
  height: 36px;
  background: var(--bg-deep);
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.event-char-avatar img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.timeline-progress {
  text-align: center;
  color: var(--text-muted);
  margin-top: 2rem;
  font-size: 1.1rem;
}

/* Quiz */
.quiz-select {
  text-align: center;
}

.difficulty-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.difficulty-card {
  width: 200px;
  padding: 2rem 1.5rem;
  background: var(--bg-light);
  border: 4px solid var(--bg-medium);
  cursor: pointer;
  transition: all 0.1s;
}

.difficulty-card.easy { --diff-color: #4A7C59; }
.difficulty-card.medium { --diff-color: #B8860B; }
.difficulty-card.hard { --diff-color: #8B0000; }

.difficulty-card:hover {
  transform: translateY(-6px);
  border-color: var(--diff-color);
  box-shadow: 0 6px 0 var(--diff-color);
}

.diff-icon {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.diff-icon img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.5));
}

.difficulty-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  margin-bottom: 0.5rem;
  color: var(--diff-color);
}

.difficulty-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.best-score {
  margin-top: 1rem;
  padding: 0.5rem;
  background: var(--bg-deep);
  border: 2px solid var(--accent-gold);
  font-size: 1rem;
  color: var(--accent-gold);
}

/* Quiz Playing */
.quiz-playing {
  max-width: 600px;
  margin: 0 auto;
}

.quiz-header {
  margin-bottom: 2rem;
}

.quiz-progress {
  height: 12px;
  background: var(--bg-light);
  border: 3px solid var(--text-muted);
  overflow: hidden;
  margin-bottom: 1rem;
}

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

.quiz-stats {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.score-display {
  font-weight: 600;
  color: var(--accent-gold);
}

.streak-display {
  animation: pulse 0.5s ease;
  color: var(--accent-green);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.quiz-question {
  background: var(--bg-light);
  padding: 2rem;
  border: 4px solid var(--bg-medium);
  transition: all 0.3s;
}

.quiz-question.correct {
  border-color: var(--accent-green);
  box-shadow: 0 0 20px rgba(74, 124, 89, 0.5);
}

.quiz-question.wrong {
  animation: shake 0.5s ease;
  border-color: #8B0000;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.quiz-question h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.6;
  color: var(--text-primary);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  padding: 1rem 1.25rem;
  background: var(--bg-medium);
  border: 3px solid var(--bg-deep);
  color: var(--text-primary);
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.1s;
  text-align: left;
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--accent-gold);
  transform: translateX(5px);
  box-shadow: -3px 3px 0 var(--accent-gold);
}

.quiz-option.correct {
  background: rgba(74, 124, 89, 0.4);
  border-color: #4A7C59;
}

.quiz-option.wrong {
  background: rgba(139, 0, 0, 0.4);
  border-color: #8B0000;
}

/* Quiz Results */
.quiz-results {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.results-card {
  background: var(--bg-light);
  padding: 3rem 2rem;
  border: 6px solid var(--accent-gold);
  text-align: center;
  max-width: 400px;
  animation: slideUp 0.5s ease;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.5);
}

.results-card h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
}

.results-stars {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.star {
  color: var(--bg-deep);
  transition: all 0.3s;
}

.star.earned {
  color: var(--accent-gold);
  text-shadow: 0 0 10px var(--accent-gold);
  animation: starPop 0.5s ease backwards;
}

.star:nth-child(1) { animation-delay: 0.1s; }
.star:nth-child(2) { animation-delay: 0.2s; }
.star:nth-child(3) { animation-delay: 0.3s; }

@keyframes starPop {
  from { transform: scale(0) rotate(-180deg); }
  to { transform: scale(1) rotate(0deg); }
}

.results-score {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: 'Press Start 2P', monospace;
}

.score-big { color: var(--accent-gold); }
.score-divider { color: var(--text-muted); margin: 0 0.25rem; }
.score-total { color: var(--text-secondary); }

.score-points {
  color: var(--accent-gold);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.max-streak {
  color: var(--accent-green);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.results-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-primary, .btn-secondary {
  padding: 1rem 2rem;
  border: 4px solid;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  cursor: pointer;
  transition: all 0.1s;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-deep);
  border-color: var(--accent-brown);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 0 var(--accent-brown);
}

.btn-secondary {
  background: var(--bg-medium);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
}

/* Achievements Modal */
.achievements-modal {
  padding: 2rem;
}

.achievements-modal h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--accent-gold);
}

.achievements-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-light);
  border: 3px solid var(--bg-deep);
  transition: all 0.2s;
}

.achievement-item.locked {
  opacity: 0.5;
}

.achievement-item.unlocked {
  border-color: var(--accent-gold);
}

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

.ach-info h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  margin-bottom: 0.25rem;
}

.ach-info p {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Did You Know */
.did-you-know {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-light);
  padding: 1rem 1.5rem;
  border: 4px solid var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
  animation: slideIn 0.3s ease, fadeOut 0.5s ease 4.5s forwards;
  max-width: 90%;
  z-index: 500;
}

@keyframes slideIn {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

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

.dyk-icon {
  width: 32px;
  height: 32px;
}

.dyk-icon img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* Footer */
.app-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-medium);
  border-top: 4px solid var(--accent-gold);
}

.footer-btn {
  padding: 0.6rem 1rem;
  background: var(--bg-light);
  border: 3px solid var(--bg-deep);
  color: var(--text-primary);
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.1s;
}

.footer-btn:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.footer-btn.danger:hover {
  border-color: #8B0000;
  color: #ff6666;
}

.remix-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
  font-family: 'VT323', monospace;
}

.remix-link:hover {
  color: var(--accent-gold);
}

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  top: -20px;
  animation: confettiFall 1s ease forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .app-title {
    font-size: 0.6rem;
  }
  
  .title-icon {
    width: 36px;
    height: 36px;
  }
  
  .tab-text {
    display: none;
  }
  
  .tab-button {
    padding: 0.75rem 1rem;
  }
  
  .tab-icon {
    font-size: 1.4rem;
  }
  
  .characters-grid {
    grid-template-columns: 1fr;
  }
  
  .difficulty-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .difficulty-card {
    width: 100%;
    max-width: 280px;
  }
  
  .timeline-line {
    left: 12px;
    width: 4px;
  }
  
  .timeline-events {
    margin-left: 35px;
  }
  
  .event-marker {
    left: -32px;
    width: 16px;
    height: 16px;
  }
  
  .modal-content {
    max-height: 90vh;
    margin: 0.5rem;
  }
  
  .did-you-know {
    bottom: 80px;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
  
  .era-filters {
    gap: 0.3rem;
  }
  
  .era-button {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 0.75rem;
  }
  
  .quiz-question h3 {
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  .header-left {
    flex: 1;
  }
  
  .stat-pill span:last-child {
    display: none;
  }
  
  .section-title {
    font-size: 0.65rem;
  }
  
  .quiz-question {
    padding: 1.5rem 1rem;
  }
  
  .quiz-question h3 {
    font-size: 0.5rem;
  }
  
  .character-avatar img {
    width: 72px;
    height: 72px;
  }
}