:root {
  --bg: #fbf6ee;
  --card: #ffffff;
  --ink: #2c2620;
  --muted: #7a7266;
  --accent: #c1502e;
  --accent-dark: #9c3d22;
  --accent-soft: #f3ddd0;
  --line: #e8ddcc;
  --good: #3f7a4e;
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 0 0 3rem;
}

#app {
  width: 100%;
  max-width: 560px;
  padding: 1rem;
}

header.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  padding: 0.75rem 0.25rem 1rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1.25rem;
}

header.top h1 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--accent-dark);
}

/* Bewusst wie normaler Text gestaltet, nicht wie ein Link erkennbar -
   fuehrt aber zum Nutzungsprotokoll (verlauf.php). */
.title-link,
.title-link:visited,
.title-link:hover,
.title-link:active {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

.gm-banner {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(60, 30, 15, 0.25);
}

header.top .round-tag {
  font-size: 0.85rem;
  color: var(--muted);
}

a.reset-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(60, 40, 20, 0.05);
}

.card h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--accent-dark);
}

.badge-gm {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

input[type="text"], textarea {
  width: 100%;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf9;
  color: var(--ink);
  font-family: inherit;
}

textarea { resize: vertical; min-height: 4.5rem; }

button {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

button:hover { background: var(--accent-dark); }

button:disabled {
  background: #d8cfc0;
  color: #8a8072;
  cursor: not-allowed;
}

button.secondary {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

button.secondary:hover { background: #ecc9b3; }

button.small {
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
}

.row { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.row.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 0.6rem; }

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

ul.plain li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.15rem;
  border-bottom: 1px solid var(--line);
  gap: 0.5rem;
}

ul.plain li:last-child { border-bottom: none; }

.player-name { font-weight: 600; }
.player-name.me::after { content: " (du)"; font-weight: 400; color: var(--muted); }

.reorder-btns { display: flex; gap: 0.25rem; }

.status-dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #d8cfc0;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.status-dot.done { background: var(--good); }

.hint { color: var(--muted); font-size: 0.9rem; }

.answer-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.answer-row .txt { flex: 1; }
.who { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.15rem; }

.reveal-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}

.reveal-item .txt { flex: 1; }

.gm-pick {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.reveal-item:last-child { border-bottom: none; }

.reveal-letter {
  background: var(--accent-dark);
  color: #fff;
  font-weight: 700;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.letters-only-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.5rem 0 0.25rem;
}

[hidden] { display: none !important; }

.error-box {
  background: #fbe3df;
  border: 1px solid #e7a397;
  color: #8f2f1e;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
