@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --papier: #f6eedd;
  --papier-2: #efe3c9;
  --karte: #fffaf0;
  --tinte: #2a1d14;
  --tinte-2: #5b4636;
  --tinte-3: #8a735f;
  --linie: #e0d0b2;
  --akzent: #d9531e;
  --akzent-2: #b8410f;
  --akzent-text: #fff;
  --gold: #f2b632;
  --gold-tief: #b97f06;
  --gruen: #3d8a4a;
  --rot: #c73a2b;
  --schatten: 0 1px 0 rgba(42, 29, 20, 0.06), 0 6px 18px -8px rgba(42, 29, 20, 0.25);
  --schatten-gross: 0 2px 0 rgba(42, 29, 20, 0.08), 0 18px 40px -16px rgba(42, 29, 20, 0.35);
  --radius: 18px;
  --kuno-fell: #4a3a33;
  --kuno-bauch: #6a564c;
  --kuno-rosa: #f0a0a8;
  --kuno-kralle: #fff4e6;
  --kuno-helm: #f2b632;
  --kuno-helm-dunkel: #c98a12;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='hell']) {
    --papier: #1b1411;
    --papier-2: #241b16;
    --karte: #2a201a;
    --tinte: #f5e9d6;
    --tinte-2: #cdb9a0;
    --tinte-3: #9c8670;
    --linie: #3e3027;
    --akzent: #f06a30;
    --akzent-2: #ff8a52;
    --schatten: 0 1px 0 rgba(0, 0, 0, 0.3), 0 8px 22px -10px rgba(0, 0, 0, 0.7);
    --schatten-gross: 0 2px 0 rgba(0, 0, 0, 0.3), 0 20px 44px -16px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme='dunkel'] {
  --papier: #1b1411;
  --papier-2: #241b16;
  --karte: #2a201a;
  --tinte: #f5e9d6;
  --tinte-2: #cdb9a0;
  --tinte-3: #9c8670;
  --linie: #3e3027;
  --akzent: #f06a30;
  --akzent-2: #ff8a52;
  --schatten: 0 1px 0 rgba(0, 0, 0, 0.3), 0 8px 22px -10px rgba(0, 0, 0, 0.7);
  --schatten-gross: 0 2px 0 rgba(0, 0, 0, 0.3), 0 20px 44px -16px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--papier);
  color: var(--tinte);
  font-family: 'Bricolage', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
a { color: var(--akzent-2); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 0.4em; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

/* ── Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--tinte); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.logo .kuno { flex: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 0;
  background: transparent; display: grid; place-items: center; font-size: 20px; color: var(--tinte);
}
.icon-btn:hover { background: var(--papier-2); }

main { max-width: 1100px; margin: 0 auto; padding: 8px 16px calc(40px + env(safe-area-inset-bottom)); }

/* ── Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 16px; border: 0;
  background: var(--akzent); color: var(--akzent-text);
  font-weight: 750; font-size: 18px; letter-spacing: -0.01em;
  box-shadow: 0 4px 0 var(--akzent-2), var(--schatten);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s;
  text-decoration: none;
}
.btn:active { transform: translateY(3px) scale(0.98); box-shadow: 0 1px 0 var(--akzent-2); }
.btn:disabled { filter: grayscale(0.7) opacity(0.55); cursor: not-allowed; transform: none; }
.btn.gross { min-height: 64px; font-size: 22px; padding: 0 32px; border-radius: 20px; }
.btn.zweit { background: var(--karte); color: var(--tinte); box-shadow: 0 3px 0 var(--linie), var(--schatten); }
.btn.zweit:active { box-shadow: 0 1px 0 var(--linie); }
.btn.gold { background: var(--gold); color: #3a2604; box-shadow: 0 4px 0 var(--gold-tief), var(--schatten); }
.btn.klein { min-height: 40px; font-size: 15px; padding: 0 14px; border-radius: 12px; }
.btn.breit { width: 100%; }
.textlink { background: none; border: 0; color: var(--tinte-2); text-decoration: underline; text-underline-offset: 3px; padding: 8px; }

.karte {
  background: var(--karte); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--schatten);
}

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  background: var(--papier-2); color: var(--tinte-2); font-size: 14px; font-weight: 650;
}

/* ── Startseite */
.start { display: grid; gap: 28px; padding-top: 12px; }
.held {
  position: relative; overflow: hidden; border-radius: 28px; padding: 36px 24px 0;
  background: linear-gradient(180deg, #9fd3e8 0%, #cde9ef 34%, #8bbf5e 34.5%, #6ea345 39%, #5a3d28 39.5%, #4a3120 70%, #2e2018 100%);
  color: #fff; min-height: 520px; display: flex; flex-direction: column; align-items: center; text-align: center;
  box-shadow: var(--schatten-gross);
}
.held h1 { font-size: clamp(64px, 16vw, 132px); font-weight: 800; margin: 0; color: #2a1d14; letter-spacing: -0.05em; line-height: 0.9; }
.held .unter { color: #2a1d14; font-weight: 650; font-size: 18px; margin: 6px 0 0; opacity: 0.85; }
.held .stollen { position: relative; margin-top: auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 0 34px; }
.held .stollen .kuno { margin-top: -30px; }
.held .regeln { font-size: 16px; color: #f6e5cc; font-weight: 600; }
.held .nr { font-size: 14px; color: #e8cfae; opacity: 0.9; }
.held .steine span { position: absolute; border-radius: 40%; background: rgba(0, 0, 0, 0.18); }
.start-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.kachel { text-align: left; border: 0; display: flex; flex-direction: column; gap: 6px; min-height: 150px; position: relative; overflow: hidden; color: var(--tinte); text-decoration: none; transition: transform 0.15s; }
.kachel:hover { transform: translateY(-2px); }
.kachel .gross { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.kachel .klein { color: var(--tinte-2); font-size: 15px; }
.kachel .emoji { font-size: 40px; position: absolute; right: 16px; bottom: 10px; opacity: 0.9; }
.kachel.kachel-dyn { background: linear-gradient(135deg, #3a1a10, #8a2a12 70%, #c4421b); color: #fff5e6; }
.kachel.kachel-dyn .klein { color: #e6cfb2; }
.kachel .neu { align-self: flex-start; background: var(--gold); color: #3a2604; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 8px; }

/* ── Kuno */
.kuno { position: relative; }
.kuno-svg { width: 100%; height: 100%; overflow: visible; }
.kuno .kuno-licht { opacity: 0; transition: opacity 0.3s; }
.kuno .auge-zu { display: none; }
.kuno[data-zustand='graben'] .kuno-hand-l { animation: schaufel 0.35s ease-in-out infinite alternate; transform-origin: 26px 86px; }
.kuno[data-zustand='graben'] .kuno-hand-r { animation: schaufel 0.35s 0.17s ease-in-out infinite alternate; transform-origin: 94px 86px; }
.kuno[data-zustand='graben'] .kuno-licht, .kuno[data-zustand='gold'] .kuno-licht, .kuno[data-zustand='selten'] .kuno-licht { opacity: 1; }
.kuno[data-zustand='jubel'] .kuno-koerper, .kuno[data-zustand='gold'] .kuno-koerper { animation: huepf 0.5s ease-in-out 3; transform-origin: 60px 110px; }
.kuno[data-zustand='jubel'] .auge-offen, .kuno[data-zustand='gold'] .auge-offen, .kuno[data-zustand='ruhe'] .auge-offen { display: block; }
.kuno[data-zustand='jubel'] .auge-zu, .kuno[data-zustand='gold'] .auge-zu { display: block; }
.kuno[data-zustand='jubel'] .auge-offen, .kuno[data-zustand='gold'] .auge-offen { display: none; }
.kuno[data-zustand='schreck'] .kuno-koerper { animation: zitter 0.08s linear 6; }
.kuno[data-zustand='schreck'] .kuno-mund { d: path('M54 82 q6 -5 12 0'); }
.kuno[data-zustand='schlau'] .auge-offen circle:nth-child(odd) { transform: scaleY(0.4); transform-box: fill-box; transform-origin: center; }
.kuno[data-zustand='ruhe'] .kuno-koerper { animation: atmen 3.2s ease-in-out infinite; transform-origin: 60px 110px; }
.kuno .kuno-lampe { filter: drop-shadow(0 0 4px #fff2a0); }
@keyframes schaufel { from { transform: rotate(-18deg); } to { transform: rotate(14deg); } }
@keyframes huepf { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px) scale(1.03, 0.97); } }
@keyframes zitter { 0% { transform: translateX(-2px); } 50% { transform: translateX(2px); } 100% { transform: translateX(0); } }
@keyframes atmen { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015, 0.985); } }

/* ── Grabung (Einzelspieler) */
.grabung { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .grabung { grid-template-columns: minmax(0, 1fr); } }
.spielfeld { display: flex; flex-direction: column; gap: 16px; }
.leiste { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.fortschritt { display: flex; gap: 6px; }
.fortschritt i { width: 26px; height: 10px; border-radius: 5px; background: var(--linie); display: block; }
.fortschritt i.fertig { background: var(--tinte-2); }
.fortschritt i.jetzt { background: var(--akzent); }
.fortschritt i.gold { background: var(--gold); }
.tiefe-anzeige { font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; }
.frage-karte { padding: 26px 22px; position: relative; overflow: hidden; }
.frage-karte .kat { margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.frage-text { font-size: clamp(26px, 5vw, 40px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
.frage-info { color: var(--tinte-3); font-size: 15px; margin-top: 10px; }
.uhr { height: 10px; background: var(--papier-2); border-radius: 6px; overflow: hidden; margin-top: 18px; }
.uhr i { display: block; height: 100%; background: linear-gradient(90deg, var(--gruen), var(--gold) 60%, var(--rot)); background-size: 300% 100%; width: 100%; transform-origin: left; }
.uhr-zahl { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 18px; min-width: 2.5ch; text-align: right; }
.uhr-zahl.knapp { color: var(--rot); }
.eingabe-zeile { display: flex; gap: 10px; }
.eingabe {
  flex: 1; min-width: 0; height: 60px; border-radius: 16px; border: 3px solid var(--linie);
  background: var(--karte); padding: 0 18px; font-size: 20px; font-weight: 650; outline: none;
}
.eingabe:focus { border-color: var(--akzent); }
.eingabe.wackel { animation: wackel 0.35s; border-color: var(--rot); }
@keyframes wackel { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.hinweis { min-height: 24px; color: var(--tinte-2); font-weight: 600; font-size: 15px; }
.hinweis .vorschlag { margin: 4px 6px 0 0; }

.ergebnis { display: grid; gap: 14px; animation: rein 0.35s ease-out; }
@keyframes rein { from { opacity: 0; transform: translateY(10px); } }
.ergebnis-kopf { display: flex; gap: 16px; align-items: center; }
.ergebnis-kopf .meter { font-size: clamp(44px, 9vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ergebnis-kopf .name { font-size: 22px; font-weight: 750; }
.ergebnis-kopf .selt { color: var(--tinte-2); font-weight: 600; }
.spruch { font-style: italic; color: var(--tinte-2); }
.abzeichen { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; padding: 5px 12px; border-radius: 10px; font-size: 14px; }
.abzeichen.gold { background: var(--gold); color: #3a2604; box-shadow: 0 0 0 0 rgba(242, 182, 50, 0.6); animation: glanz 1.6s ease-out infinite; }
.abzeichen.schlau { background: #e7dcf5; color: #4a2c7a; }
@keyframes glanz { 0% { box-shadow: 0 0 0 0 rgba(242, 182, 50, 0.7); } 100% { box-shadow: 0 0 0 16px rgba(242, 182, 50, 0); } }
.top-liste { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.top-liste li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--papier-2); font-weight: 600; }
.top-liste li.ich { outline: 2px solid var(--akzent); }
.top-liste .anteil { color: var(--tinte-3); font-variant-numeric: tabular-nums; }

/* ── Schacht (Tiefenleiste) */
.schacht {
  position: sticky; top: 76px; height: min(640px, calc(100dvh - 100px)); border-radius: 24px; overflow: hidden;
  box-shadow: var(--schatten-gross); background: #2e2018;
}
.schacht-innen { position: absolute; left: 0; right: 0; top: 0; transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.schicht { position: absolute; left: 0; right: 0; overflow: hidden; }
.schicht .sname { position: absolute; right: 12px; bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.fakt { position: absolute; left: 12px; right: 40px; font-size: 12.5px; color: rgba(255, 245, 225, 0.9); display: flex; gap: 8px; align-items: center; }
.fakt::before { content: ''; flex: none; width: 18px; height: 2px; background: rgba(255, 245, 225, 0.5); }
.fakt b { font-variant-numeric: tabular-nums; }
.schacht .kuno { position: absolute; left: 50%; transform: translate(-50%, -78%); transition: top 1.1s cubic-bezier(0.22, 1, 0.36, 1); z-index: 2; }
.schacht .tunnel { position: absolute; left: 50%; width: 46px; transform: translateX(-50%); top: 0; background: rgba(0, 0, 0, 0.35); border-radius: 0 0 23px 23px; transition: height 1.1s cubic-bezier(0.22, 1, 0.36, 1); }
.schacht .tiefe-pill { position: absolute; right: 10px; top: 10px; z-index: 3; background: rgba(0, 0, 0, 0.55); color: #fff; padding: 6px 12px; border-radius: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.funkeln { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.7); animation: funkel 2.4s ease-in-out infinite; }
@keyframes funkel { 0%, 100% { opacity: 0.1; } 50% { opacity: 1; } }
@media (max-width: 860px) {
  .schacht { position: relative; top: 0; height: 160px; order: -1; }
  .schacht .fakt { display: none; }
}

/* ── Ende der Tagesrunde */
.bilanz { text-align: center; display: grid; gap: 14px; justify-items: center; }
.bilanz .riesig { font-size: clamp(60px, 15vw, 120px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.raster-emoji { font-size: 30px; letter-spacing: 4px; }
.antwortliste { width: 100%; max-width: 560px; display: grid; gap: 8px; text-align: left; }
.antwortliste .zeile { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-radius: 14px; background: var(--karte); box-shadow: var(--schatten); }
.antwortliste .zeile small { color: var(--tinte-3); grid-column: 1 / -1; }

/* ── Listen (Archiv, Pakete, Profil) */
.seite { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; padding-top: 8px; }
.seite h1 { font-size: clamp(34px, 7vw, 52px); font-weight: 800; }
.liste { display: grid; gap: 10px; }
.zeile-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; border: 0; background: var(--karte); box-shadow: var(--schatten); text-align: left; color: var(--tinte); text-decoration: none; font-weight: 650; }
.zeile-btn small { color: var(--tinte-3); font-weight: 500; display: block; }
.zeile-btn .rechts { color: var(--tinte-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.paket-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.paket { min-height: 140px; border-radius: 22px; padding: 18px; border: 0; color: #fff; text-align: left; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--schatten); position: relative; overflow: hidden; }
.paket b { font-size: 22px; letter-spacing: -0.02em; }
.paket .emoji { position: absolute; right: 10px; bottom: 6px; font-size: 56px; opacity: 0.85; }
.statistik { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.statistik .karte { text-align: center; padding: 16px 10px; }
.statistik b { display: block; font-size: 34px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.statistik span { color: var(--tinte-2); font-size: 14px; }
.prosa p, .prosa li { color: var(--tinte-2); }
.prosa h2 { margin-top: 1.2em; }
details.faq { background: var(--karte); border-radius: 14px; padding: 14px 18px; box-shadow: var(--schatten); }
details.faq summary { font-weight: 750; cursor: pointer; }
details.faq p { margin: 10px 0 0; color: var(--tinte-2); }

/* ── Formular-Bausteine */
.feld { display: grid; gap: 6px; }
.feld > label, .feld .label { font-weight: 700; font-size: 15px; }
.feld .hilfe { color: var(--tinte-3); font-size: 13px; }
.textfeld { height: 48px; border-radius: 12px; border: 2px solid var(--linie); background: var(--karte); padding: 0 14px; font-size: 16px; width: 100%; }
.textfeld:focus { border-color: var(--akzent); outline: none; }
textarea.textfeld { height: auto; min-height: 140px; padding: 12px 14px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.segment { display: flex; flex-wrap: wrap; gap: 4px; background: var(--papier-2); padding: 4px; border-radius: 14px; }
.segment button { flex: 1 1 auto; min-height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 650; font-size: 15px; color: var(--tinte-2); padding: 0 12px; }
.segment button[aria-pressed='true'] { background: var(--karte); color: var(--tinte); box-shadow: var(--schatten); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 38px; border-radius: 999px; border: 2px solid var(--linie); background: transparent; padding: 0 14px; font-weight: 650; font-size: 14px; color: var(--tinte-2); }
.chips button[aria-pressed='true'] { background: var(--tinte); border-color: var(--tinte); color: var(--papier); }
.chips button.aus[aria-pressed='true'] { background: var(--rot); border-color: var(--rot); color: #fff; }
.schalter { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.schalter input { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 16px; background: var(--linie); position: relative; cursor: pointer; transition: background 0.2s; flex: none; margin: 0; }
.schalter input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s; }
.schalter input:checked { background: var(--gruen); }
.schalter input:checked::after { transform: translateX(20px); }
.schalter input:disabled { opacity: 0.6; cursor: default; }
.regler { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.regler input[type='range'] { width: 100%; accent-color: var(--akzent); grid-column: 1 / -1; height: 28px; }
.regler output { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ── Modal */
.modal-hg { position: fixed; inset: 0; z-index: 50; background: rgba(20, 12, 8, 0.55); display: grid; place-items: center; padding: 16px; animation: einblenden 0.2s; }
@keyframes einblenden { from { opacity: 0; } }
.modal { background: var(--papier); border-radius: 22px; width: min(640px, 100%); max-height: min(86dvh, 900px); display: flex; flex-direction: column; box-shadow: var(--schatten-gross); }
.modal-kopf { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 4px 20px; }
.modal-kopf h2 { margin: 0; font-size: 22px; }
.modal-inhalt { padding: 8px 20px 20px; overflow: auto; display: grid; gap: 14px; }

/* ── Hinweise */
#toasts { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { background: var(--tinte); color: var(--papier); padding: 12px 16px; border-radius: 14px; font-weight: 650; box-shadow: var(--schatten-gross); transition: opacity 0.3s, transform 0.3s; text-align: center; }
.toast.gut { background: var(--gruen); color: #fff; }
.toast.schlecht { background: var(--rot); color: #fff; }
.toast.weg { opacity: 0; transform: translateY(8px); }

/* ── Menü */
.menue { position: fixed; inset: 0; z-index: 40; background: rgba(20, 12, 8, 0.5); animation: einblenden 0.2s; }
.menue nav { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 86vw); background: var(--papier); padding: calc(env(safe-area-inset-top) + 16px) 16px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--schatten-gross); overflow: auto; animation: reinRechts 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes reinRechts { from { transform: translateX(40px); opacity: 0; } }
.menue a { display: flex; gap: 12px; align-items: center; padding: 14px 12px; border-radius: 12px; text-decoration: none; color: var(--tinte); font-weight: 700; font-size: 18px; }
.menue a:hover { background: var(--papier-2); }
.menue hr { border: 0; border-top: 1px solid var(--linie); margin: 8px 0; width: 100%; }

/* ── Mehrspieler */
.party-start { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) { .party-start { grid-template-columns: minmax(0, 1fr); } }
.avatare { display: flex; flex-wrap: wrap; gap: 6px; }
.avatare button { width: 46px; height: 46px; border-radius: 14px; border: 2px solid transparent; background: var(--papier-2); font-size: 24px; }
.avatare button[aria-pressed='true'] { border-color: var(--akzent); background: var(--karte); }
.raum-zeile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.raum-zeile .code { font-family: ui-monospace, Menlo, monospace; font-weight: 800; background: var(--papier-2); padding: 4px 8px; border-radius: 8px; }

.lobby { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .lobby { grid-template-columns: minmax(0, 1fr); } }
.raumcode { font-family: ui-monospace, Menlo, monospace; font-size: 34px; font-weight: 800; letter-spacing: 0.12em; }
.spielerliste { display: grid; gap: 6px; }
.spieler-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--papier-2); min-height: 52px; }
.spieler-zeile .av { font-size: 26px; width: 36px; text-align: center; }
.spieler-zeile .nm { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spieler-zeile.offline { opacity: 0.5; }
.spieler-zeile .aktionen { display: flex; gap: 2px; }
.spieler-zeile .aktionen button { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 8px; font-size: 16px; }
.spieler-zeile .aktionen button:hover { background: var(--karte); }
.team-0 { --team: #d9452b; } .team-1 { --team: #2f6fd6; } .team-2 { --team: #2f9b4a; } .team-3 { --team: #d9a31c; }
.teamfarbe { width: 10px; height: 10px; border-radius: 50%; background: var(--team, transparent); flex: none; }
.einst-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.einst-gruppe { border-top: 1px solid var(--linie); padding-top: 14px; display: grid; gap: 14px; }
.einst-gruppe > summary { font-weight: 800; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.einst-gruppe > summary::after { content: '▾'; color: var(--tinte-3); }
.einst-gruppe:not([open]) > summary::after { content: '▸'; }
.einst-felder { display: grid; gap: 16px; padding: 6px 0 4px; }
.passend { font-weight: 700; }
.passend.null { color: var(--rot); }

.arena { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .arena { grid-template-columns: minmax(0, 1fr); } }
.kreis { position: relative; aspect-ratio: 1 / 1; width: min(100%, 440px, 54vh); margin: 0 auto; }
.kreis .platz { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; width: 110px; text-align: center; transition: transform 0.2s; }
.kreis .platz .av { width: 58px; height: 58px; border-radius: 50%; background: var(--karte); display: grid; place-items: center; font-size: 30px; box-shadow: var(--schatten); border: 3px solid var(--team, transparent); position: relative; }
.kreis .platz.dran .av { border-color: var(--akzent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--akzent) 25%, transparent), var(--schatten); transform: scale(1.08); }
.kreis .platz.raus { opacity: 0.35; filter: grayscale(1); }
.kreis .platz.offline .av::after { content: '⚡'; position: absolute; right: -6px; bottom: -6px; font-size: 16px; }
.kreis .platz .nm { font-weight: 750; font-size: 14px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kreis .platz .leben { font-size: 12px; letter-spacing: 1px; min-height: 16px; }
.kreis .platz .tippt { font-size: 13px; color: var(--tinte-2); min-height: 18px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.kreis .platz .eingeloggt { font-size: 13px; color: var(--gruen); font-weight: 800; min-height: 18px; }
.vorgabe { font-size: 15px; font-weight: 800; background: var(--tinte); color: var(--papier); padding: 4px 12px; border-radius: 10px; }
.dynamit { position: absolute; left: 50%; top: 50%; width: 30px; height: 96px; margin: -48px 0 0 -15px; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 1; pointer-events: none; transform-origin: 50% 50%; }
.dynamit .stange { position: absolute; left: 0; right: 0; top: 24px; bottom: 0; border-radius: 7px; background: linear-gradient(90deg, #a82718, #e0442c 45%, #a82718); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.18), 0 8px 16px -4px rgba(0, 0, 0, 0.5); }
.dynamit .stange::before { content: 'TNT'; position: absolute; left: 0; right: 0; top: 26px; color: #fff3d6; font-size: 10px; font-weight: 900; text-align: center; letter-spacing: 0.5px; }
.dynamit .lunte { position: absolute; left: 14px; bottom: 72px; width: 2px; height: 20px; background: #5a4630; border-radius: 1px; transition: height 0.2s linear; }
.dynamit .funke { position: absolute; left: -6px; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, #ffd34d 40%, #ff7a1a 65%, transparent 70%); animation: funke 0.18s infinite alternate; }
@keyframes funke { from { transform: scale(0.8) rotate(0); } to { transform: scale(1.25) rotate(40deg); } }
.restzeit { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 18px; }
.zug-eingabe { display: grid; gap: 8px; max-width: 560px; margin: 0 auto; width: 100%; }
.joker-zeile { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.verlauf { display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.verlauf .v { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--papier-2); font-size: 15px; }
.verlauf .v.gold { background: color-mix(in srgb, var(--gold) 35%, var(--papier-2)); }
.verlauf .v .m { color: var(--tinte-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chat { display: grid; gap: 8px; }
.chat-log { height: 180px; overflow: auto; display: grid; align-content: start; gap: 4px; font-size: 14px; background: var(--papier-2); border-radius: 12px; padding: 10px; }
.chat-log .sys { color: var(--tinte-3); font-style: italic; }
.reaktionen { display: flex; gap: 4px; flex-wrap: wrap; }
.reaktionen button { border: 0; background: var(--papier-2); width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
.schwebe { position: fixed; pointer-events: none; font-size: 34px; z-index: 70; animation: schweben 1.4s ease-out forwards; }
@keyframes schweben { to { transform: translateY(-90px) scale(1.4); opacity: 0; } }
.knall-blitz { position: fixed; inset: 0; z-index: 65; pointer-events: none; background: radial-gradient(circle at 50% 50%, #fff8d0, #ffb03a 30%, rgba(217, 83, 30, 0.6) 55%, transparent 75%); animation: blitz 0.7s ease-out forwards; display: grid; place-items: center; }
.knall-blitz span { font-size: clamp(60px, 16vw, 140px); font-weight: 900; color: #2a1d14; letter-spacing: -0.04em; animation: bumm 0.7s ease-out forwards; }
@keyframes blitz { from { opacity: 1; } to { opacity: 0; } }
@keyframes bumm { from { transform: scale(0.4) rotate(-8deg); } 40% { transform: scale(1.15) rotate(3deg); } to { transform: scale(1); } }
.wackeln { animation: bildwackel 0.45s; }
@keyframes bildwackel { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-6px, 3px); } 40%, 60% { transform: translate(6px, -3px); } }
.pause-overlay { position: fixed; inset: 0; z-index: 45; background: rgba(20, 12, 8, 0.6); display: grid; place-items: center; color: #fff; font-size: 40px; font-weight: 800; }
.aufloesung { display: grid; gap: 8px; }
.aufloesung .zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--papier-2); }
.aufloesung .zeile.sieg { background: color-mix(in srgb, var(--gold) 40%, var(--papier-2)); }
.podest { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin: 10px 0 20px; }
.podest div { width: 110px; text-align: center; display: grid; gap: 4px; justify-items: center; }
.podest .sockel { width: 100%; border-radius: 12px 12px 0 0; background: var(--tinte); color: var(--papier); font-weight: 900; font-size: 26px; display: grid; place-items: center; }
.frageauswahl .q { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--papier-2); }
.frageauswahl .q small { color: var(--tinte-3); display: block; }
.frageauswahl .q .segment button { min-height: 32px; font-size: 13px; padding: 0 8px; }

.leer { color: var(--tinte-3); text-align: center; padding: 20px; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

[data-motion='weniger'] *, [data-motion='weniger'] *::before, [data-motion='weniger'] *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}
