/* Trinkspiel — Mobile-first, dunkel, große Touch-Targets */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #12141a;
  --surface: #1d2029;
  --surface2: #262a36;
  --text: #eceef2;
  --muted: #8b91a0;
  --accent: #7c5cff;
  --accent2: #4dd6a8;
  --danger: #ff5c6c;
  --radius: 14px;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  padding: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

h1 { font-size: 1.6rem; margin-bottom: .5rem; }
.muted { color: var(--muted); font-size: .9rem; }

button, input, .btn {
  font: inherit;
  min-height: 52px;
  border-radius: var(--radius);
  border: none;
  padding: .8rem 1.1rem;
}

button {
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  font-weight: 600;
  transition: background .15s;
}
button:active { background: var(--accent); }
button.primary { background: var(--accent); width: 100%; }
button.danger { background: var(--danger); }
button:disabled { opacity: .45; cursor: default; }

input[type=text], input[type=number] {
  background: var(--surface2);
  color: var(--text);
  width: 100%;
  border: 2px solid transparent;
}
input:focus { outline: none; border-color: var(--accent); }

.card {
  background: linear-gradient(160deg, #2a2440, #1d2029);
  border: 1px solid #3a3f52;
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 1rem 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card .deck-tag {
  align-self: flex-start;
  font-size: .75rem;
  color: var(--accent2);
  border: 1px solid var(--accent2);
  padding: .15rem .6rem;
  border-radius: 99px;
  margin-bottom: .8rem;
}
.card .card-text { font-size: 1.35rem; font-weight: 700; line-height: 1.35; }

.list-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--surface);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  margin-bottom: .5rem;
}
.list-item .grow { flex: 1; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--accent2); }
.badge-host { font-size: .7rem; color: var(--accent2); border: 1px solid var(--accent2); border-radius: 99px; padding: .1rem .5rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.chip {
  min-height: 48px;
  padding: .6rem 1rem;
  border-radius: 99px;
  background: var(--surface2);
  font-weight: 600;
}
.chip.selected { background: var(--accent); }

.hostbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid #3a3f52;
  padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom));
  display: flex;
  gap: .6rem;
  max-width: 480px;
  margin: 0 auto;
}
.hostbar button { flex: 1; }
body.has-hostbar { padding-bottom: 6rem; }

.toast {
  position: fixed;
  top: 1rem; left: 50%;
  transform: translateX(-50%);
  background: var(--danger);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: var(--radius);
  z-index: 100;
  max-width: 90%;
  text-align: center;
}

.countdown {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent2);
  text-align: center;
  margin: .6rem 0;
}
.result-list { list-style: none; margin-top: .8rem; }
.result-list li {
  display: flex; justify-content: space-between;
  padding: .6rem .9rem;
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: .4rem;
}
.result-list li.loser { background: var(--danger); color: #fff; font-weight: 700; }
.section-title { margin: 1.2rem 0 .5rem; font-size: 1.05rem; }

.answered { color: var(--accent2); font-size: .85rem; margin-top: .6rem; }
.wide { width: 100%; }
.row { display: flex; gap: .6rem; }
.row > * { flex: 1; }
.center { text-align: center; }
.big-choice { font-size: 1.3rem; }
