/* Pause: kleine Spiele für zwischendurch. Gleiche Familie wie coxilab.de, nur bunter. */
@font-face {
  font-family: "Gabarito";
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/gabarito-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Onest";
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/onest-latin.woff2) format("woff2");
}
:root {
  color-scheme: light;
  --paper: #f5f4f1;
  --paper-2: #ebe7de;
  --card: #fbfaf8;
  --ink: #262019;
  --ink-2: #6a6258;
  --rule: #ddd6c9;
  --rot: #c8553d;
  --gruen: #3f8f4f;
  --display: "Gabarito", system-ui, sans-serif;
  --text: "Onest", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100dvh;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}
p {
  margin: 0;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
.app {
  max-width: 32rem;
  margin: 0 auto;
  padding: max(0.9rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom));
}

/* Kopf */
.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1rem;
  min-height: 2.4rem;
}
.marke {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: inherit;
}
.marke svg {
  width: 1.6rem;
  height: 1.6rem;
}
.chip {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  background: var(--card);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.kopf > .marke {
  margin-right: auto;
}
.sprache {
  border: 1.5px solid var(--rule, #d9d4c9);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  background: none;
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.leise {
  color: var(--ink-2);
  font-size: 0.9rem;
}
.textknopf {
  background: none;
  border: 0;
  padding: 0.3rem 0;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.9rem;
}

/* Knöpfe */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 3.2rem;
  padding: 0 1.3rem;
  border-radius: 14px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.1rem;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.06s;
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.btn.hell {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn.breit {
  width: 100%;
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Start */
.start h1 {
  font-size: clamp(2.6rem, 13vw, 3.6rem);
  margin: 1.2rem 0 0.5rem;
}
.start .lead {
  font-size: 1.1rem;
  margin-bottom: 1.6rem;
}
.reihe {
  display: flex;
  gap: 0.5rem;
}
.reihe > * {
  min-width: 0;
}
.feld {
  flex: 1;
  min-height: 3.2rem;
  padding: 0 0.9rem;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
  font-size: 1.1rem;
}
.feld:focus {
  outline: none;
  border-color: var(--ink);
}
.code-feld {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-family: var(--display);
  font-weight: 700;
}
.trenner {
  margin: 1.6rem 0 0.6rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}
.fehler {
  color: var(--rot);
  min-height: 1.4em;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* Lobby */
.einladung {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.9rem;
  align-items: center;
  background: var(--card);
  border: 1.5px solid var(--rule);
  border-radius: 18px;
  padding: 0.8rem;
}
.qr {
  background: #fff;
  border-radius: 10px;
  padding: 0.35rem;
  border: 0;
  display: block;
  width: 100%;
}
.qr svg {
  display: block;
  width: 100%;
  height: auto;
}
.einladung h2 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.einladung .knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.einladung .btn {
  min-height: 2.5rem;
  font-size: 0.95rem;
  padding: 0 0.9rem;
}
.qr-gross {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(245, 244, 241, 0.97);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
}
.qr-gross .qr {
  width: min(80vw, 22rem);
  margin: 0 auto 1rem;
}
.qr-gross b {
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: 0.15em;
}
h2.abschnitt {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.6rem;
}
.spieler {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.spieler li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem 0.3rem 0.35rem;
  border-radius: 999px;
  background: var(--card);
  border: 1.5px solid var(--rule);
  font-size: 0.95rem;
}
.spieler li.weg {
  opacity: 0.4;
}
.spieler li.ich {
  border-color: var(--ink);
}
.spieler li b {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  font-weight: 600;
}
.punkt {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  flex: none;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--display);
}
.ich-name {
  border: 0;
  background: none;
  padding: 0;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.spiele {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.spiel {
  text-align: left;
  border: 0;
  border-radius: 16px;
  padding: 0.9rem 0.85rem 0.85rem;
  color: #fff;
  min-height: 7.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.06s;
}
.spiel:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
}
.spiel:disabled {
  filter: grayscale(0.7);
  opacity: 0.6;
}
.spiel .ico {
  font-size: 1.7rem;
  line-height: 1;
}
.spiel h3 {
  font-size: 1.15rem;
  margin-top: 0.5rem;
}
.spiel span {
  font-size: 0.82rem;
  opacity: 0.92;
  line-height: 1.3;
}
.hinweis {
  background: var(--paper-2);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
}
.fuss {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Spiele allgemein */
.spielkopf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.spielkopf h2 {
  font-size: 1.3rem;
}
.buehne {
  position: relative;
  border-radius: 20px;
  background: var(--card);
  border: 1.5px solid var(--rule);
  padding: 1rem;
  min-height: 60dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mitte {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
}
.riesig {
  font-family: var(--display);
  font-size: clamp(3.5rem, 22vw, 6rem);
  font-weight: 800;
  line-height: 1;
}
.countdown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(251, 250, 248, 0.92);
  z-index: 5;
  font-family: var(--display);
  font-size: 7rem;
  font-weight: 800;
}
.frage {
  font-family: var(--display);
  font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  font-weight: 650;
  line-height: 1.15;
  margin: 0.3rem 0 1.1rem;
}
.frage small {
  display: block;
  font-family: var(--text);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink-2);
  margin-bottom: 0.3rem;
}
.wahl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.wahl button {
  min-height: 3.6rem;
  border-radius: 14px;
  border: 0;
  color: #fff;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.05rem;
  padding: 0.4rem 0.6rem;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.22);
  overflow-wrap: anywhere;
}
.wahl button.an {
  outline: 4px solid var(--ink);
  outline-offset: 2px;
}
.wahl button:disabled:not(.an) {
  opacity: 0.35;
}
.warten {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.warten .punkt {
  width: 1.15rem;
  height: 1.15rem;
}
.warten .punkt.nein {
  opacity: 0.25;
}
.uhr {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  font-size: 0.9rem;
}

/* Turm */
.turm {
  padding: 0;
}
.turm canvas {
  display: block;
  width: 100%;
  flex: 1;
  touch-action: none;
}
.turm .stand {
  position: absolute;
  top: 0.6rem;
  left: 0.7rem;
  right: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 2;
}
.turm .meine {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}
.turm .andere {
  display: grid;
  gap: 0.2rem;
  font-size: 0.82rem;
  text-align: right;
}
.turm .andere span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}
/* Burgen */
.burg {
  height: calc(100dvh - 8rem);
  min-height: 26rem;
  background: #d8e8bb;
}
.burg .stand {
  position: static;
  padding: 0.6rem 0.8rem 0.2rem;
}
.burg .karte {
  position: relative;
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  overflow: hidden;
}
.burg .karte canvas {
  height: 100%;
}
.burg .zoom {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  display: grid;
  gap: 0.35rem;
}
.burg .zoom button,
.kanone .zoom button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid #5b4636;
  background: #fff8ec;
  color: #5b4636;
  font: 700 1.35rem/1 var(--display);
  box-shadow: 0 2px 0 rgba(91, 70, 54, 0.35);
  cursor: pointer;
  touch-action: manipulation;
}
.burg .zoom button:active,
.kanone .zoom button:active {
  transform: translateY(2px);
  box-shadow: none;
}
.burg .zoom button:disabled,
.kanone .zoom button:disabled {
  opacity: 0.35;
  cursor: default;
}
.burg .leiste {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-content: center;
  min-height: 9.2rem; /* Platz für Hinweis + Bau-Knöpfe, damit die Karte nicht springt */
  padding: 0.5rem 0.8rem 0.7rem;
  border-top: 1.5px solid var(--rule);
  background: var(--card);
}
.burg .leiste p {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.3;
}
.burg .leiste .btn {
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
}
.burg .bau {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  flex: 1 1 100%;
}
.burg .bau:empty {
  display: none;
}
.burg .leiste .bau .btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.35rem 0.2rem;
  font-size: 0.8rem;
  line-height: 1.15;
  min-height: 3.6rem;
}
.burg .bau .btn b {
  font-size: 1.35rem;
  line-height: 1;
}
.burg .bau .btn.lang {
  grid-column: span 2;
}
.burg .bau small {
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}
.burg .leiste .btn[hidden] {
  display: none;
}
.burg .leiste .btn:disabled {
  opacity: 0.4;
}
.burg #uhr {
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
/* Kanonen */
.kanone {
  padding: 0;
}
.kanone canvas {
  display: block;
  width: 100%;
  aspect-ratio: 100 / 64;
  touch-action: none;
  border-bottom: 1.5px solid var(--rule);
}
.kanone .kan-karte {
  position: relative;
}
.kanone .zoom {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  display: flex;
  gap: 0.35rem;
}
.kanone .zoom button {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.2rem;
}
.kanone .fahr-wert {
  font-size: 0.85rem;
}
.kanone .steuer {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem 1rem;
}
.kanone .steuer[hidden],
.kanone .warte-box[hidden] {
  display: none;
}
.kanone .waffen {
  display: flex;
  gap: 0.4rem;
}
.kanone .waffe {
  flex: 1;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.5rem 0.3rem;
  border-radius: 12px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}
.kanone .waffe small {
  opacity: 0.6;
}
.kanone .waffe.an {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-1px);
}
.kanone .waffe:disabled {
  opacity: 0.35;
}
.kanone .regler {
  display: grid;
  grid-template-columns: 3.6rem 1fr 2.6rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.kanone .regler input {
  width: 100%;
  accent-color: var(--ink);
}
.kanone .regler b {
  font-family: var(--display);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.kanone .feuer-zeile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.kanone #feuer {
  flex: 1;
  font-size: 1.15rem;
}
.kanone #feuer:not(:disabled):active {
  transform: scale(0.97);
}
.kanone .klein-hinweis {
  margin: 0;
  font-size: 0.8rem;
}
.kanone .warte-box {
  padding: 1.4rem 1rem;
  text-align: center;
  animation: kan-rein 0.3s ease-out;
}
.kanone .kanone-erg {
  padding: 0.9rem;
}
.kanone .unten {
  display: flex;
  gap: 0.5rem;
}
@keyframes kan-rein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.toast {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 650;
  white-space: nowrap;
  z-index: 6;
  animation: toast 1.8s forwards;
  pointer-events: none;
}
@keyframes toast {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  12%,
  75% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}

/* 18+ */
.w18-an {
  margin: -0.2rem 0 0.7rem;
}
.w18 {
  background: #fdeee9;
  border: 1.5px solid #f1c3b6;
  border-radius: 16px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.w18.an {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}
.w18 p {
  margin: 0 0 0.6rem;
}
.w18 .knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.prost {
  margin-top: 0.7rem;
  font-weight: 600;
}

/* Wer würde eher: Duell */
.wahl.duell {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.wahl.duell button {
  min-height: 5.5rem;
  font-size: 1.2rem;
}
.vs {
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink-2);
}

/* Ich hab noch nie */
.zwei {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.zwei button,
.zahlen button {
  border: 1.5px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 650;
  border-radius: 14px;
}
.zwei button {
  min-height: 3.6rem;
  font-size: 1.05rem;
}
.zahlen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.zahlen button {
  width: 2.9rem;
  height: 2.9rem;
  font-size: 1.1rem;
}
.zwei button.an,
.zahlen button.an {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.sieger.klein {
  padding: 0 0 0.6rem;
}

/* Lügner */
.geheim {
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.antworten {
  display: grid;
  gap: 0.3rem;
}
.antworten div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper);
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
}
.antworten b {
  font-family: var(--display);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.antworten span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.zwei-fragen {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.zwei-fragen div {
  border-left: 3px solid var(--rule);
  padding: 0.1rem 0 0.1rem 0.7rem;
  font-weight: 600;
}
.zwei-fragen div + div {
  border-color: var(--rot);
}
.zwei-fragen small {
  display: block;
  font-weight: 400;
  color: var(--ink-2);
}

/* Wer war's? */
.karte {
  background: var(--paper);
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
}
.karte > b {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.karte.meine {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  opacity: 0.6;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.chips button {
  border: 1.5px solid var(--f);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.chips button.an {
  background: var(--f);
  color: #fff;
}
.gruppe .plus {
  color: var(--gruen);
  font-weight: 700;
}
.reingelegt {
  margin-top: 0.25rem;
  font-size: 0.85rem;
}

/* Schnellzieher */
.schnell {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  cursor: pointer;
  transition: background 0.05s;
}
.schnell.gruen {
  background: var(--gruen);
  border-color: var(--gruen);
  color: #fff;
}
.schnell.fehl {
  background: #fde9e4;
  border-color: var(--rot);
}

/* Ergebnis */
.ergebnis h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.rang {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.rang li {
  display: grid;
  grid-template-columns: 1.6rem auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
  background: var(--paper);
  border-radius: 12px;
  padding: 0.5rem 0.7rem;
}
.rang li .nr {
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink-2);
}
.rang li .wert {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.rang li .plus {
  color: var(--gruen);
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: 0.3rem;
}
.gruppe {
  background: var(--paper);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.4rem;
}
.gruppe b {
  font-family: var(--display);
  font-size: 1.15rem;
}
.gruppe .wer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
  font-size: 0.85rem;
}
.wer span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.wer .punkt {
  width: 1rem;
  height: 1rem;
}
.unten {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}
.sieger {
  text-align: center;
  padding: 0.6rem 0 1rem;
}
.sieger .krone {
  font-size: 3.4rem;
  line-height: 1;
}
.sieger h3 {
  font-size: 1.9rem;
  margin: 0.4rem 0 0.2rem;
}

/* Ewige Tabelle */
.feld-label {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 1rem 0 0.3rem;
}
.ewig {
  background: var(--card);
  border: 1.5px solid var(--rule);
  border-radius: 18px;
  padding: 0.9rem 1rem;
}
.ewig-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.ewig .knoepfe {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.7rem;
}
.ewig .btn {
  min-height: 2.5rem;
  font-size: 0.95rem;
  padding: 0 0.9rem;
}
.ewig-start,
.ewig-ende {
  margin-top: 1rem;
}
.spieler .ohne {
  font-size: 0.75rem;
  color: var(--ink-2);
  border: 1px dashed var(--rule);
  border-radius: 999px;
  padding: 0 0.35rem;
}
.blatt {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(38, 32, 25, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.blatt-innen {
  background: var(--paper);
  width: min(100%, 34rem);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 18px 18px 0 0;
  padding: 1rem 1rem 2rem;
}
.blatt-zu {
  float: right;
}
.ewig-titel {
  font-size: 1.6rem;
  margin: 0.4rem 0 0.2rem;
}
.ewig-tab {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}
.ewig-tab th {
  text-align: left;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-2);
  padding: 0 0.3rem 0.4rem;
  border-bottom: 1.5px solid var(--rule);
}
.ewig-tab td {
  padding: 0.5rem 0.3rem;
  border-bottom: 1px solid var(--rule);
}
.ewig-tab td:nth-child(2) {
  width: 100%;
  overflow-wrap: anywhere;
}
.ewig-tab tr:first-child td {
  font-weight: 600;
}
.verlauf {
  list-style: none;
  margin: 0;
  padding: 0;
}
.verlauf li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  column-gap: 0.4rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
}
.verlauf li .leise {
  grid-column: 2;
  font-size: 0.85rem;
}
a.btn {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gruppe + .gruppe {
  margin-top: 0.6rem;
}
.rang.klein li {
  padding: 0.25rem 0;
  font-size: 0.95rem;
}
.gruppen-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.gruppen-knoepfe .btn {
  min-height: 2.5rem;
  font-size: 0.95rem;
  padding: 0 0.9rem;
}
#meinname,
#gruppe {
  width: 100%;
}

/* ─── Imposter ─────────────────────────────────────────────────────────────── */
.kat {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 650;
  margin: 0.2rem 0 0.8rem;
}
.kat small {
  display: block;
  font-family: var(--text);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-2);
}
.wortkarte {
  position: relative;
  display: block;
  width: 100%;
  height: 9.5rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  perspective: 900px;
}
.wortkarte.klein {
  height: 4.6rem;
  margin-bottom: 0.9rem;
}
.wortkarte .seite {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.8rem;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.3, 1.4, 0.5, 1);
  text-align: center;
}
.wortkarte .zu {
  background: repeating-linear-gradient(-45deg, #a8445a 0 12px, #b6526a 12px 24px);
  color: #fff6f2;
  box-shadow: 0 4px 0 #7d2f42;
}
.wortkarte .auf {
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  transform: rotateY(180deg);
}
.wortkarte.offen .zu {
  transform: rotateY(-180deg);
}
.wortkarte.offen .auf {
  transform: rotateY(0deg);
}
.wortkarte.imp .auf {
  background: var(--ink);
  color: var(--paper);
}
.wortkarte .ico {
  font-size: 2rem;
  line-height: 1;
}
.wortkarte b {
  font-family: var(--display);
  font-size: clamp(1.6rem, 8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.05;
}
.wortkarte .zu b {
  font-size: 1.15rem;
  font-weight: 700;
}
.wortkarte small {
  font-size: 0.85rem;
  opacity: 0.8;
}
.wortkarte.klein .ico {
  font-size: 1.3rem;
}
.wortkarte.klein b {
  font-size: 1.3rem;
}
.wortkarte.klein small {
  display: none;
}
.wortkarte.klein .seite {
  grid-auto-flow: column;
  align-items: center;
  gap: 0.5rem;
}
.hinweise b {
  font-size: 1.1rem;
  text-align: right;
}
@media (prefers-reduced-motion: reduce) {
  .wortkarte .seite {
    transition: none;
  }
}
