/* Gemeinsame Grundlage fuer Spielgeraet, Monitor und Admin.
   Farbwelt: tiefes Nachtblau mit Gold - festlich, aber wuerdig. */

:root {
  --bg-1: #0b0e26;
  --bg-2: #17143f;
  --bg-3: #241a52;

  --flaeche: rgba(255, 255, 255, 0.07);
  --flaeche-hoch: rgba(255, 255, 255, 0.12);
  --rand: rgba(255, 255, 255, 0.14);

  --text: #f3f1ff;
  --text-leise: #b3aed6;

  --gold: #f5c451;
  --gold-hell: #ffdd8a;
  --richtig: #34d17a;
  --falsch: #e5584d;
  --info: #6ea8ff;

  --radius: 18px;
  --schatten: 0 12px 40px rgba(0, 0, 0, 0.45);

  --schrift: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--schrift);
  color: var(--text);
  background: var(--bg-1);
  overscroll-behavior: none;
}

/* Sicherheitsnetz: auf Tablets soll sich die Ansicht nie seitlich
   verschieben lassen, egal was ein Effekt gerade tut. */
html {
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(1200px 800px at 15% -10%, var(--bg-3), transparent 60%),
    radial-gradient(1000px 700px at 110% 110%, #3a1f5c, transparent 55%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
}

/* Langsam wandernder Schimmer im Hintergrund.
   Bewegt wird die Hintergrundposition, nicht das Element selbst - so kann
   der Effekt niemals ueber den Bildschirmrand hinausragen. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(closest-side, rgba(245, 196, 81, 0.11), transparent 100%);
  background-repeat: no-repeat;
  background-size: 75% 65%;
  animation: wandern 26s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes wandern {
  0%   { background-position: 8% 12%; }
  50%  { background-position: 88% 58%; }
  100% { background-position: 26% 94%; }
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input {
  font-family: inherit;
}

.karte {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.gold {
  color: var(--gold);
}

.knopf {
  background: linear-gradient(180deg, var(--gold-hell), var(--gold));
  color: #2b1d00;
  font-weight: 800;
  border-radius: 999px;
  padding: 18px 34px;
  box-shadow: 0 8px 26px rgba(245, 196, 81, 0.32);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.15s;
}

.knopf:active {
  transform: scale(0.96);
}

.knopf:disabled {
  opacity: 0.4;
  box-shadow: none;
}

.knopf-leise {
  background: var(--flaeche-hoch);
  color: var(--text);
  border: 1px solid var(--rand);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
}

.verstecken {
  display: none !important;
}

canvas.konfetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
