:root {
  --bg: #f7fafc;
  --card: #ffffff;
  --text: #1a202c;
  --primary: #2563eb;
  --primary-weak: #dbeafe;
  --ok: #059669;
  --bad: #dc2626;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text);
}
.app-bar {
  padding: 18px 16px; background: linear-gradient(90deg, #60a5fa, #2563eb); color: #fff; text-align: center;
  box-shadow: var(--shadow);
}
.subtitle { opacity: .9; margin: 6px 0 0; font-size: 0.9rem; }

.screen { display: none; padding: 20px; max-width: 680px; margin: 0 auto; }
.screen.active { display: block; }

.center { text-align: center; }
.small { font-size: 0.95rem; opacity: 0.8; }

.menu { display: grid; gap: 14px; margin-top: 22px; }
.btn {
  padding: 14px 18px; border: 0; border-radius: 12px; cursor: pointer; font-size: 1rem;
  background: var(--primary); color: #fff; box-shadow: var(--shadow);
}
.btn.big { font-size: 1.1rem; padding: 16px; }
.btn.back { background: #111827; }
.btn.outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }

.card {
  background: var(--card); padding: 18px; border-radius: 14px; box-shadow: var(--shadow);
  margin-top: 14px;
}
.question { font-size: 2rem; text-align: center; margin: 6px 0 14px; }
.input {
  width: 100%; padding: 12px 14px; font-size: 1.1rem; border-radius: 10px;
  border: 2px solid var(--primary-weak); outline: none;
}
.input:focus { border-color: var(--primary); }

.result { text-align: center; margin: 12px 0; min-height: 24px; font-weight: 600; }
.result.ok { color: var(--ok); }
.result.bad { color: var(--bad); }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.score {
  font-weight: 600;
  background: var(--primary-weak);
  padding: 10px 12px;
  border-radius: 10px;
  white-space: nowrap;
  min-width: 140px;        /* 🔥 ensures "Score:" fits */
  text-align: center;       /* looks better */
}
.foot { text-align: center; padding: 24px; color: #4b5563; }
.level-row {
  display: flex; gap: 10px; margin: 10px 0 14px; flex-wrap: wrap;
}
.chip {
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.chip.active {
  background: var(--primary);
  color: #fff;
}
.timer {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin: 8px 0 12px 0;
  color: #d9534f; /* red color so it becomes visible */
}
/* Celebration Screen Overlay Fix */
.cele-screen {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.cele-box {
  background: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: popIn 0.4s ease;
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
/* ADD THIS BELOW */
.icon-mul {
  color: inherit;
  font-weight: bold;
} 
