:root {
  --bg: #14141c;
  --card: #1e1e2a;
  --text: #e8e6f0;
  --muted: #9a96ad;
  --blue: #3b82f6;
  --purple: #a855f7;
  --yellow: #eab308;
  --red: #ef4444;
  --green: #22c55e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header h1 {
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  margin: 1.2rem 0 0.5rem;
}

main {
  width: 100%;
  max-width: 480px;
  padding: 0 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.hidden { display: none; }

/* Startbildschirm */
.rules {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.dot {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  margin-right: 0.4em;
}
.dot.yellow { background: var(--yellow); }
.dot.purple { background: var(--purple); }
.dot.red { background: var(--red); }

.settings {
  margin: 1rem 0;
}
.settings label { display: block; margin-bottom: 0.4rem; }
.settings input[type="range"] { width: 100%; }

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}
kbd {
  background: #2c2c3c;
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.85em;
  border: 1px solid #44445a;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  color: var(--text);
}

button.primary {
  background: var(--blue);
  padding: 0.7rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}
button.primary:hover { filter: brightness(1.15); }

button.subtle {
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  padding: 0.2rem 0.4rem;
  font-size: 0.85rem;
}
button.subtle:hover { color: var(--text); }

/* Boss-Badge */
.badge {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  padding: 0.3rem 1.4rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.badge.real { background: #14532d; color: var(--green); border: 2px solid var(--green); }
.badge.fake { background: #57121e; color: var(--red); border: 2px solid var(--red); }
.badge.unknown { background: #2c2c3c; color: var(--muted); border: 2px solid #44445a; }

/* Debuffs */
.debuffs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.2rem;
}

.debuff {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.icon-frame {
  width: 72px;
  height: 84px;
  background: #11111a;
  border: 2px solid #3a3a50;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.icon-frame img {
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
}
.icon-frame img.missing { display: none; }

.icon-fallback {
  display: none;
  font-size: 2.2rem;
  line-height: 1;
}
.icon-frame img.missing + .icon-fallback { display: block; }

.debuff-label {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 110px;
}

/* Timer */
.timer-track {
  height: 10px;
  background: #11111a;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1.2rem;
}

#timer-bar {
  height: 100%;
  width: 100%;
  background: var(--green);
  border-radius: 5px;
}
#timer-bar.warn { background: var(--yellow); }
#timer-bar.danger { background: var(--red); }

/* Antwort-Buttons */
.answers {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

button.laser {
  flex: 1;
  padding: 0.8rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

button.laser img {
  height: 44px;
  image-rendering: pixelated;
}
button.laser.blue { background: var(--blue); }
button.laser.purple { background: var(--purple); }
button.laser:hover:enabled { filter: brightness(1.15); }
button.laser:disabled { opacity: 0.45; cursor: default; }

/* Feedback */
.feedback {
  min-height: 4.2rem;
  margin-top: 1.2rem;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}
.feedback .verdict { font-size: 1.2rem; font-weight: 800; }
.feedback.correct .verdict { color: var(--green); }
.feedback.wrong .verdict { color: var(--red); }
.feedback .verdict.prep { color: var(--muted); }
.feedback .explain { color: var(--muted); }

#next-btn { margin-top: 0.5rem; }

/* Statistik */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.1rem;
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  color: var(--muted);
}
.stats strong { color: var(--text); }
