:root {
  --sky: #00b4d8;
  --sky2: #0096c7;
  --sun: #ffd60a;
  --sand: #ffec99;
  --coral: #ff6b6b;
  --palm: #2a9d8f;
  --ink: #03045e;
  --card: rgba(255, 255, 255, 0.92);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sky) 0%, #48cae4 45%, var(--sand) 100%);
  padding: 16px;
}

h1, h2, h3 { line-height: 1.15; }

.wrap { max-width: 1100px; margin: 0 auto; }

.title {
  text-align: center;
  color: #fff;
  text-shadow: 0 3px 0 var(--sky2), 0 6px 12px rgba(0,0,0,.25);
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin: 8px 0 4px;
  letter-spacing: 1px;
}
.subtitle { text-align: center; color: var(--ink); opacity: .8; margin-bottom: 18px; }

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(3,4,94,.15);
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--sky2);
  color: #fff;
  transition: transform .06s ease, filter .15s ease;
  margin: 4px;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.coral { background: var(--coral); }
.btn.palm { background: var(--palm); }
.btn.big { font-size: 1.3rem; padding: 18px 24px; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.row { display: flex; flex-wrap: wrap; gap: 8px; }
.grid { display: grid; gap: 10px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Leaderboard */
.lb-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 12px; margin-bottom: 6px;
  background: #fff; border-left: 8px solid var(--sky2);
}
.lb-item .rank { font-size: 1.4rem; width: 42px; }
.lb-item .name { font-weight: 700; flex: 1; }
.lb-item .pts { font-size: 1.3rem; font-weight: 800; color: var(--sky2); }
.lb-item.first { border-left-color: var(--sun); background: #fffbe6; }
.lb-item.last  { border-left-color: var(--coral); }

/* Frage */
.question {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 800; text-align: center; margin: 14px 0;
}
.option {
  display: block; width: 100%; text-align: left;
  background: #fff; border: 3px solid var(--sky); color: var(--ink);
}
.option.correct { background: #d8f3dc; border-color: var(--palm); }
.option.chosen { outline: 4px solid var(--sun); }

.badge {
  display: inline-block; background: var(--coral); color: #fff;
  border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700;
}
.muted { opacity: .65; }
.center { text-align: center; }
.solution { background: #d8f3dc; border-radius: 12px; padding: 12px; font-weight: 700; }
.card-draw {
  font-size: 1.5rem; font-weight: 800; text-align: center;
  background: var(--sun); border-radius: 16px; padding: 22px; color: var(--ink);
}
input, select {
  font-size: 1rem; padding: 10px 12px; border-radius: 10px;
  border: 2px solid var(--sky); width: 100%;
}
label { font-weight: 700; display: block; margin: 8px 0 4px; }
.pill { background: var(--palm); color:#fff; border-radius:999px; padding:4px 12px; font-weight:700; display:inline-block; }
.conn { position: fixed; top: 8px; right: 10px; font-size:.75rem; }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:#bbb; }
.dot.on { background:#52b788; }
