/* Aufbau wie Mentimeter, Look aus apps/game/DESIGN.md (Theme „Klassisch“):
   Navy als Bühne, Gold für das Wichtige, Karten statt Grauflächen. */
@font-face {
  font-family: "Open Sans";
  src: url("/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --background: #0b2a57;
  --background-top: #1655b0;
  --background-deep: #150e2e;
  --card-bg: #213a5f;
  --card-border: #2f4b73;
  --input-border: #43608a;
  --ink: #ffffff;
  --ink-80: rgb(255 255 255 / 0.8);
  --ink-70: rgb(255 255 255 / 0.7);
  --primary: #f2b705;
  --primary-light: #ffcf3d;
  --primary-15: rgb(242 183 5 / 0.15);
  --body-color: #150e2d;
  --btn2-from: #0b2f86;
  --btn2-to: #1650c4;
  --btn2-border: #2f6ad6;
  --secondary: #0167f7;
  --success: #22c55e;
  --success-dark: #136933;
  --danger: #ff8080;
  --danger-dark: #8b0303;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(to bottom, var(--background-top), var(--background) 360px) var(--background);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
p,
h1,
h2,
ol {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Hauptaktion (btn-primary): Gold-Verlauf, heller Rand, dunkle Schrift */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  padding: 0 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid var(--primary-light);
  background: linear-gradient(to top, var(--primary), var(--primary-light));
  color: var(--body-color);
  font-weight: 900;
  cursor: pointer;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Leise Zusatzaktion (PillButton): Kartenfläche, Kartenrand */
.btn-ghost {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  color: var(--ink);
  font-weight: 700;
}
.btn-ghost:hover {
  background: var(--card-border);
}
.btn svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Buchstaben-Badge wie in AnswerOptions.tsx */
.badge {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 900;
  border: 1px solid var(--input-border);
  color: var(--ink);
}
.badge svg {
  width: 0.9em;
  height: 0.9em;
  fill: currentColor;
}

/* Warten: hüpfende goldene Punkte */
.dots {
  display: inline-flex;
  gap: 0.35rem;
}
.dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--primary);
  animation: hop 1.2s infinite ease-in-out;
}
.dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes hop {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.fade {
  animation: fade 0.45s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dots i,
  .fade {
    animation: none;
  }
  * {
    transition: none !important;
  }
}
