:root {
  --bg: #10162a;
  --surface: #1a2340;
  --surface-2: #212c4d;
  --ink: #f1e9d8;
  --muted: #93a0c2;
  --gold: #d9a53f;
  --gold-soft: rgba(217, 165, 63, 0.16);
  --ember: #c85b3d;
  --border: #324066;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 28px 16px 48px;
  font-family: "Jost", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(217, 165, 63, 0.10), transparent 40%),
    radial-gradient(circle at 84% 76%, rgba(200, 91, 61, 0.09), transparent 45%),
    var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
}

/* Punschstand-Lichterkette: warme Lichtpunkte, die sanft glühen */
body::before, body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px);
  animation: twinkle 3.4s ease-in-out infinite;
}
body::before {
  background-image:
    radial-gradient(circle at 9% 9%,  rgba(217,165,63,.85), transparent 3%),
    radial-gradient(circle at 91% 15%, rgba(217,165,63,.75), transparent 3%),
    radial-gradient(circle at 16% 55%, rgba(200,91,61,.7),  transparent 2.6%),
    radial-gradient(circle at 84% 62%, rgba(217,165,63,.8), transparent 3%),
    radial-gradient(circle at 50% 91%, rgba(200,91,61,.65), transparent 2.6%);
}
body::after {
  animation-delay: 1.7s;
  background-image:
    radial-gradient(circle at 30% 5%,  rgba(200,91,61,.7),  transparent 2.6%),
    radial-gradient(circle at 70% 24%, rgba(217,165,63,.75), transparent 3%),
    radial-gradient(circle at 6% 38%,  rgba(217,165,63,.7), transparent 2.6%),
    radial-gradient(circle at 95% 80%, rgba(200,91,61,.7),  transparent 2.6%),
    radial-gradient(circle at 45% 97%, rgba(217,165,63,.7), transparent 2.6%);
}
@keyframes twinkle {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; opacity: .7; }
}

.display {
  font-family: "Cinzel", Georgia, serif;
}

.container {
  max-width: 880px;
  margin: 0 auto;
}

header.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

header.page-header h1 {
  font-size: 1.35rem;
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: "Cinzel", serif;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 40px -26px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

h2, h3 {
  color: var(--ink);
  margin-top: 0;
  font-weight: 600;
}
h2.display, h3.display { color: var(--gold); letter-spacing: 0.02em; }

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

input[type=text], input[type=email], input[type=password], select {
  flex: 1;
  min-width: 140px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
}
input::placeholder { color: var(--muted); }
input[readonly] { color: var(--muted); }

label.small {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

button, .btn {
  background: var(--gold);
  color: #241705;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: "Jost", sans-serif;
  transition: filter 0.15s ease, transform 0.05s ease;
  text-decoration: none;
  display: inline-block;
}

button:hover, .btn:hover { filter: brightness(1.08); }
button:active, .btn:active { transform: scale(0.98); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

button.danger { background: var(--ember); color: #2a1108; }
button.danger:hover { filter: brightness(1.12); }

button.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
button.secondary:hover { color: var(--ink); border-color: var(--gold); filter: none; }

ul.plain { list-style: none; padding: 0; margin: 0; }

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.item-row:first-child { border-top: none; }

.badge {
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(217, 165, 63, 0.3);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.badge.gold { background: rgba(200, 91, 61, 0.14); color: var(--ember); border-color: rgba(200, 91, 61, 0.35); }
.badge.muted { background: transparent; color: var(--muted); border-color: var(--border); }

.status-ok { color: var(--gold); font-weight: 600; font-size: 0.82rem; }
.status-pending { color: var(--muted); font-size: 0.82rem; }

.flash {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 600;
  border: 1px solid var(--border);
}
.flash.error { background: rgba(200, 91, 61, 0.14); color: #f0a488; border-color: rgba(200, 91, 61, 0.4); }
.flash.success { background: rgba(217, 165, 63, 0.12); color: var(--gold); border-color: rgba(217, 165, 63, 0.35); }

.reveal-card {
  text-align: center;
  padding: 40px 26px;
}
.reveal-card .star-mark { margin: 0 auto 16px; display: block; }
.reveal-card h1 {
  font-size: 1.35rem;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 8px;
}
.reveal-name {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin: 10px 0 6px;
  text-shadow: 0 0 22px rgba(217, 165, 63, 0.35);
}

.login-wrap {
  max-width: 360px;
  margin: 80px auto 0;
}

details summary {
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
}
details summary::marker { color: var(--gold); }

footer.hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 12px;
}

.snowflake {
  position: fixed;
  top: -10px;
  color: #ffffff;
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 0;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  animation: fall linear infinite;
}

@keyframes fall {
  0%   { transform: translateY(-10vh) translateX(0); }
  100% { transform: translateY(110vh) translateX(20px); }
}

@media (prefers-reduced-motion: reduce) {
  .snowflake { display: none; }
}

@media (max-width: 560px) {
  .row { flex-direction: column; align-items: stretch; }
  input[type=text], input[type=email], select { width: 100%; }
}
