/* ============================================================
   style.css  —  Aussehen des Quizmasters
   ============================================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0; min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #fff; text-align: center;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; user-select: none;
  background: linear-gradient(160deg, #2a0845, #6441a5);
}
body.theme-neon   { background: linear-gradient(160deg, #f706cf, #7b2ff7, #00f5d4); }
body.theme-sunset { background: linear-gradient(160deg, #ff8c42, #ff5d8f, #6a0572); }
body.theme-ocean  { background: linear-gradient(160deg, #00b4d8, #0077b6, #023e8a); }
body.theme-party  { background: linear-gradient(160deg, #f9d423, #ff4e50, #6a0572); }

.screen { width: 100%; max-width: 460px; }
h1 { margin: 0 0 6px; font-size: 1.7rem; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.intro { margin: 0 0 22px; opacity: 0.92; }

/* Themen-Buttons */
.topic-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.topic-btn {
  border: none; border-radius: 999px; padding: 12px 18px;
  background: rgba(255,255,255,0.95); color: #2a0845;
  font-size: 1rem; font-weight: 800; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.28); transition: transform 0.08s ease;
}
.topic-btn:active { transform: scale(0.96); }

.custom { display: flex; flex-direction: column; gap: 10px; align-items: center; }
#topic-input { width: 100%; padding: 12px 14px; font-size: 1rem; border: none; border-radius: 12px; text-align: center; }

/* Buttons allgemein */
.btn {
  border: none; border-radius: 999px; padding: 14px 26px;
  font-size: 1.1rem; font-weight: 800; color: #2a0845; background: #fff;
  cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,0.32); transition: transform 0.08s ease;
}
.btn:active { transform: scale(0.96); }

/* Quiz */
.quiz-note { font-size: 0.8rem; background: rgba(0,0,0,0.35); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; line-height: 1.35; }
.progress { font-size: 0.85rem; opacity: 0.85; margin-bottom: 10px; }
.quiz-q { font-size: 1.3rem; font-weight: 800; margin: 0 0 20px; line-height: 1.3; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.options { display: flex; flex-direction: column; gap: 12px; }
.opt {
  padding: 14px 18px; border: none; border-radius: 14px;
  background: rgba(255,255,255,0.95); color: #2a0845;
  font-size: 1.05rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25); transition: transform 0.08s ease;
}
.opt:active { transform: scale(0.98); }
.opt:disabled { cursor: default; }
.opt.correct { background: #06d6a0; color: #062b22; box-shadow: 0 0 16px 3px rgba(6,214,160,0.6); }
.opt.wrong   { background: #ef476f; color: #fff; }

.quiz-feedback { min-height: 2.4em; margin: 16px auto 6px; max-width: 400px; font-size: 1.05rem; font-weight: 700; }
.quiz-feedback.good { color: #aaffdd; }
.quiz-feedback.bad  { color: #ffd0dc; }

/* Ergebnis */
.result-emoji { font-size: 3rem; margin-bottom: 8px; }
.result-score { font-size: 1.6rem; font-weight: 900; margin-bottom: 10px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.result-verdict { max-width: 400px; margin: 0 auto 22px; font-size: 1.1rem; font-weight: 600; line-height: 1.4; }

/* Werbepause (Klassen bewusst NICHT "ad-*", sonst blendet ein Ad-Blocker sie aus!) */
.pause-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 70; padding: 20px;
}
.pause-box {
  width: 100%; max-width: 420px;
  background: linear-gradient(160deg, #1d1d2b, #2a0845);
  border: 2px solid #ffd23f;
  border-radius: 18px; padding: 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  position: relative;
}
.pause-tag {
  position: absolute; top: 10px; right: 12px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 1px;
  color: #ffd23f; opacity: 0.8;
}
.pause-by { font-size: 0.8rem; opacity: 0.8; margin-bottom: 6px; }
.pause-img { max-width: 100%; max-height: 200px; border-radius: 12px; margin: 6px 0 10px; }
.pause-title { font-size: 1.6rem; font-weight: 900; margin-bottom: 6px; }
.pause-text { font-size: 1rem; opacity: 0.95; margin-bottom: 16px; }
.pause-btn {
  display: inline-block; text-decoration: none;
  background: linear-gradient(90deg, #f706cf, #ff5d8f); color: #fff;
  margin-bottom: 14px;
}
.pause-skip {
  display: block; width: 100%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1); color: #fff;
  border-radius: 10px; padding: 10px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer;
}
.pause-skip:disabled { opacity: 0.45; cursor: not-allowed; }

/* Hall-of-Fame-Box im Ergebnis */
.hof-box { margin: 18px auto 6px; max-width: 360px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.hof-input { width: 100%; padding: 12px 14px; font-size: 1rem; text-align: center; border: none; border-radius: 12px; }
.hof-msg { min-height: 1.2em; font-weight: 700; }
.hof-link { color: #fff; opacity: 0.9; text-decoration: underline; font-size: 0.9rem; }

.hidden { display: none !important; }
