/* ==============================================================
   Matte-Mysteriet - Stylesheet (Skolplus AB Tema)
   Målgrupp: Årskurs 4–6
   ============================================================== */

:root {
  --mm-primary: #059669;
  --mm-primary-dark: #047857;
  --mm-accent: #f59e0b;
  --mm-purple: #8b5cf6;
  --mm-dark: #0f172a;
  --mm-light: #f0fdf4;
}

body.matte-game-page {
  background: #0f172a;
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

.matte-navbar {
  background: #1e293b;
  border-bottom: 3px solid var(--mm-primary);
  padding: 14px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.matte-brand {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.time-machine-hud {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #334155;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.crystal-slot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #334155;
  border: 2px dashed #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.crystal-slot.active {
  background: radial-gradient(circle, #34d399 0%, #059669 100%);
  border: 2px solid #6ee7b7;
  box-shadow: 0 0 18px #10b981;
  animation: crystal-pulse 2s infinite alternate;
}

@keyframes crystal-pulse {
  from { transform: scale(1); filter: drop-shadow(0 0 4px #10b981); }
  to { transform: scale(1.08); filter: drop-shadow(0 0 12px #34d399); }
}

.epoch-card {
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.epoch-card:hover {
  transform: translateY(-4px);
  border-color: #10b981;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.epoch-card.active {
  border-color: #34d399;
  background: #132e29;
}

.puzzle-card {
  background: #1e293b;
  border: 2px solid #334155;
  border-radius: 16px;
  padding: 24px;
}

.option-btn-matte {
  display: block;
  width: 100%;
  text-align: left;
  background: #334155;
  color: #ffffff;
  border: 2px solid #475569;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  transition: all 0.2s;
  cursor: pointer;
}

.option-btn-matte:hover:not(:disabled) {
  background: #475569;
  border-color: #10b981;
  transform: translateX(4px);
}

.option-btn-matte.correct {
  background: #065f46;
  border-color: #34d399;
  color: #ffffff;
}

.option-btn-matte.wrong {
  background: #7f1d1d;
  border-color: #f87171;
  color: #ffffff;
}

.fraction-badge {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  padding: 0 4px;
}
.fraction-badge .num {
  border-bottom: 2px solid #ffffff;
  display: block;
}
.fraction-badge .den {
  display: block;
}
