/* DrinkingBuddy – Dark & clean */
:root {
  --bg: #0e0e11;
  --surface: #17171c;
  --surface-2: #1f1f26;
  --surface-3: #2a2a33;
  --line: #2b2b34;
  --text: #f3f3f5;
  --muted: #8d8d99;
  --faint: #5d5d68;
  --accent: #ff5a1f;
  --accent-2: #ff8a4c;
  --accent-soft: rgba(255, 90, 31, .14);
  --good: #3ecf8e;
  --warn: #ffb020;
  --bad: #ff4d5e;
  --radius: 16px;
  --radius-sm: 10px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.4; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 10px) 16px 10px;
  background: rgba(14, 14, 17, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand span { color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.avatar-btn { display: block; border-radius: 50%; }
.sync-pill {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.sync-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.sync-pill.offline::before { background: var(--warn); }
.sync-pill.error::before { background: var(--bad); }
.sync-pill.busy::before { background: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- View ---------- */
.view { padding: 16px 16px calc(var(--tabbar-h) + var(--safe-b) + 28px); max-width: 640px; margin: 0 auto; }
.view.full { padding-bottom: 32px; }
h1 { font-size: 26px; letter-spacing: -.02em; margin: 6px 0 16px; }
h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 26px 0 10px; font-weight: 700; }
h2 .h-right { float: right; text-transform: none; letter-spacing: 0; font-weight: 500; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 12px; }

/* ---------- Hero (Promille) ---------- */
.hero { padding: 18px 18px 8px; position: relative; overflow: hidden; }
.hero-label { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.hero-value { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 4px 0 2px; }
.hero-value small { font-size: 22px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.hero-sub { font-size: 14px; color: var(--muted); }
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-rising { margin-top: 6px; font-size: 13px; color: var(--accent-2); }
.hero-rising b { font-weight: 700; }
.spark { width: 100%; height: 96px; display: block; margin-top: 10px; }
.disclaimer { font-size: 11px; color: var(--faint); margin: 6px 0 4px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.stat-v { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.stat-l { font-size: 12px; color: var(--muted); }

.banner {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid rgba(255, 90, 31, .35); color: var(--text); font-size: 14px; margin-bottom: 12px;
}
.banner .btn { margin-left: auto; flex-shrink: 0; }

/* ---------- Listen ---------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; }
.row:last-child { border-bottom: 0; }
.row:active { background: var(--surface-2); }
.row .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 21px; flex-shrink: 0; }
.row .main { flex: 1; min-width: 0; }
.row .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: 13px; color: var(--muted); }
.row .end { text-align: right; flex-shrink: 0; }
.row .pts { font-weight: 700; color: var(--accent-2); }
.row.me { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 14px; }

.rank { width: 24px; text-align: center; font-weight: 800; color: var(--muted); flex-shrink: 0; }
.rank.r1 { color: #ffd166; } .rank.r2 { color: #cfd6e0; } .rank.r3 { color: #e0a370; }
.chips-inline { display: flex; flex-wrap: wrap; column-gap: 10px; font-size: 13px; color: var(--muted); }
.chips-inline span { white-space: nowrap; }
.chips-inline b { color: var(--text); font-weight: 600; }

/* ---------- Avatar ---------- */
.avatar { border-radius: 50%; object-fit: cover; background: var(--surface-3); display: inline-grid; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 650; cursor: pointer;
  background: var(--surface-3); color: var(--text); min-height: 44px;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid rgba(255, 77, 94, .4); }
.btn.small { padding: 7px 12px; min-height: 34px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

/* ---------- Formulare ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input, select.input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; outline: none; min-height: 46px; font-size: 16px;
}
.input:focus { border-color: var(--accent); }
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg button.on { background: var(--surface-3); color: var(--text); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.error-text { color: var(--bad); font-size: 14px; min-height: 20px; margin: 4px 0 10px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 7px 13px; font-size: 14px; cursor: pointer; color: var(--muted); }
.chip.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

/* ---------- Tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: 1fr 88px 1fr; align-items: center;
  background: rgba(18, 18, 22, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); font-weight: 600; padding: 8px 0; }
.tab svg { width: 24px; height: 24px; fill: currentColor; }
.tab.on { color: var(--accent); }
.tab-plus {
  justify-self: center; width: 60px; height: 60px; border-radius: 50%; border: 4px solid var(--bg);
  background: var(--accent); display: grid; place-items: center; margin-top: -26px; cursor: pointer;
  box-shadow: 0 6px 22px rgba(255, 90, 31, .45);
}
.tab-plus svg { width: 26px; height: 26px; fill: #fff; }
.tab-plus:active { transform: scale(.94); }

/* ---------- Sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 50; animation: fade .18s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 92dvh; overflow-y: auto;
  background: var(--surface); border-top-left-radius: 22px; border-top-right-radius: 22px; border-top: 1px solid var(--line);
  padding: 8px 16px calc(var(--safe-b) + 20px); animation: up .22s cubic-bezier(.2, .9, .3, 1);
  max-width: 640px; margin: 0 auto;
}
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-size: 20px; }
.icon-btn { background: var(--surface-2); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font-size: 18px; color: var(--muted); }
@keyframes up { from { transform: translateY(40%); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* Zentrierter Dialog (Plus-Auswahl) */
.sheet.dialog {
  top: 50%; bottom: auto; left: 16px; right: 16px; max-width: 420px; max-height: 86dvh;
  transform: translateY(-50%); border-radius: 22px; border: 1px solid var(--line);
  padding: 16px 16px 18px; animation: dialogPop .22s cubic-bezier(.2, .9, .3, 1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.sheet.dialog .sheet-grip { display: none; }
@keyframes dialogPop { from { opacity: 0; transform: translateY(-50%) scale(.94); } }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 12px 18px; text-align: center; cursor: pointer; }
.choice-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 10px; }
.choice-icon svg { width: 28px; height: 28px; }
.choice b { display: block; font-size: 17px; }
.choice span { font-size: 13px; color: var(--muted); }
.choice:active { transform: scale(.98); }

/* Getränke-/Essensbild: Foto, sonst neutrales Symbol als Platzhalter */
.thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: var(--surface-3);
}
.thumb::before {
  content: ""; position: absolute; inset: 0; background: var(--faint); opacity: .9;
  -webkit-mask: var(--thumb-icon) center / 42% no-repeat; mask: var(--thumb-icon) center / 42% no-repeat;
  --thumb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M6 3h12l-1.6 16.2a2 2 0 0 1-2 1.8H9.6a2 2 0 0 1-2-1.8z'/%3E%3Cpath d='M6.6 9h10.8'/%3E%3C/svg%3E");
}
.thumb.food::before {
  --thumb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='13' cy='12' r='7'/%3E%3Ccircle cx='13' cy='12' r='3.5'/%3E%3Cpath d='M3 4v5a1.5 1.5 0 0 0 1.5 1.5v9.5M4.5 4v4'/%3E%3C/svg%3E");
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.thumb.sm { width: 44px; height: 44px; aspect-ratio: auto; }
.thumb.add { display: grid; place-items: center; background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.thumb.add::before { display: none; }
.thumb.add svg { width: 30%; height: 30%; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 10px;
  text-align: left; cursor: pointer; user-select: none; -webkit-user-select: none; position: relative;
}
.tile:active { transform: scale(.97); background: var(--surface-3); }
.tile b { display: block; font-size: 14px; margin: 8px 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile > span:not(.thumb) { display: block; font-size: 12px; color: var(--muted); margin: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.fav { border-color: rgba(255, 90, 31, .35); }
.tile.new { color: var(--muted); }

/* Beweisfoto aufnehmen */
.photo-capture {
  display: block; position: relative; margin: 6px 0 16px; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px dashed var(--line); background: var(--surface-2); aspect-ratio: 4 / 3;
}
.photo-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 16px; }
.photo-empty svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 6px; }
.photo-empty b { font-size: 16px; }
.photo-empty span { font-size: 13px; color: var(--muted); }
.photo-capture.has-photo { border-style: solid; }
.photo-capture img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-retake { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .65); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }

.proof-photo { width: 100%; border-radius: var(--radius); display: block; margin-bottom: 12px; max-height: 60dvh; object-fit: cover; }
.proof-list { display: flex; flex-direction: column; gap: 12px; }
.proof { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.proof > img { width: 100%; display: block; max-height: 55dvh; object-fit: cover; }
.proof-missing { display: flex; align-items: center; gap: 10px; padding: 10px 12px 0; font-size: 13px; color: var(--muted); }
.proof-missing .thumb { width: 44px; height: 44px; aspect-ratio: auto; }
.proof-meta { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 10px 12px; font-size: 14px; }
.proof-meta .muted { grid-column: 1; font-size: 13px; }
.proof-meta .pts { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; color: var(--accent-2); }

.voice { display: flex; gap: 8px; margin-bottom: 8px; }
.voice .input { flex: 1; }
.mic {
  width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--accent); cursor: pointer; flex-shrink: 0; display: grid; place-items: center;
}
.mic svg { width: 22px; height: 22px; fill: #fff; }
.mic.rec { animation: pulse 1s infinite; }
.voice-hint { font-size: 12px; color: var(--faint); margin: 0 0 14px; }

.mix-row { display: grid; grid-template-columns: 1fr 86px 34px; gap: 8px; margin-bottom: 6px; align-items: center; }
.mix-shares { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.mix-shares .chip { padding: 4px 10px; font-size: 13px; }
.mix-summary { display: flex; justify-content: space-between; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 14px; }
.mix-summary b { font-size: 17px; display: block; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; margin-bottom: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.confirm-item { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.confirm-item .main { flex: 1; min-width: 0; }
.confirm-item .count { font-weight: 800; color: var(--accent-2); }

/* ---------- Toast ---------- */
.toast-root { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  pointer-events: auto; background: #2c2c35; border: 1px solid #3a3a45; border-radius: 14px; padding: 11px 14px;
  display: flex; align-items: center; gap: 14px; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: up .2s; max-width: 520px; width: 100%;
}
.toast span { flex: 1; }
.toast button { background: none; border: 0; color: var(--accent-2); font-weight: 700; cursor: pointer; padding: 4px; }

/* ---------- Auth ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 32px 22px calc(var(--safe-b) + 32px); max-width: 420px; margin: 0 auto; }
.auth-logo { font-size: 54px; text-align: center; }
.auth h1 { text-align: center; font-size: 32px; margin: 8px 0 4px; }
.auth h1 span { color: var(--accent); }
.auth .tag { text-align: center; color: var(--muted); margin-bottom: 26px; }
.invite-box { text-align: center; background: var(--accent-soft); border: 1px solid rgba(255, 90, 31, .35); border-radius: var(--radius); padding: 12px; margin-bottom: 18px; font-size: 14px; }

/* ---------- Gruppen ---------- */
.group-card { display: flex; align-items: center; gap: 14px; }
.group-card .gi { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 22px; font-weight: 800; flex-shrink: 0; }
.stack { display: flex; }
.stack .avatar { border: 2px solid var(--surface); margin-left: -8px; }
.stack .avatar:first-child { margin-left: 0; }
.invite-link { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; word-break: break-all; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin-bottom: 14px; }
.podium .p { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; padding: 14px 6px 12px; }
.podium .p.first { border-color: rgba(255, 209, 102, .5); padding-top: 20px; }
.podium .p b { display: block; margin-top: 6px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium .p .pp { color: var(--accent-2); font-weight: 750; font-size: 18px; }
.podium .medal { font-size: 20px; }

/* Glocke + Ereigniskarten */
.bell-btn { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 0; }
.bell-btn svg { width: 19px; height: 19px; fill: var(--muted); }
.bell-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.event-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.event-card.incoming { border-color: rgba(255, 90, 31, .5); box-shadow: 0 0 0 3px var(--accent-soft); }
.event-card.waiting { opacity: .85; }
.ec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ec-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.ec-icon svg { width: 24px; height: 24px; }
.ec-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ec-title b { font-size: 16px; }
.ec-title > span { font-size: 12px; color: var(--muted); }
.ec-pts { font-weight: 800; font-size: 18px; color: var(--accent-2); }
.ec-pts.neg { color: var(--bad); }
.ec-text { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.ec-from { display: flex; align-items: center; gap: 10px; }
.ec-from .ec-text { margin: 0 0 10px; }
.target-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px; }
.target { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 12px; }
.target span { max-width: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.target.on { border-color: var(--accent); background: var(--accent-soft); }

.bell-btn.ring svg { fill: var(--accent); animation: ring 1.6s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
.ec-icon { color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); }

/* ---------- Perk-Karten ---------- */
.pcard { width: 220px; aspect-ratio: 5 / 7; border-radius: 18px; position: relative; }
.pcard.back {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .08) 0 18%, transparent 19%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 6px, transparent 6px 14px),
    linear-gradient(160deg, #ff7a3d, #c2410c 60%, #7c2d12);
  border: 3px solid rgba(255, 255, 255, .18); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.pcard.back::after { content: "DB"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 30px; letter-spacing: -.04em; color: rgba(255, 255, 255, .85); }
.pcard.front { background: #fdfaf4; color: #1c1917; border: 3px solid #fff; box-shadow: 0 16px 50px rgba(0, 0, 0, .55); overflow: hidden; }
.pcard-face { --c: var(--accent); height: 100%; display: flex; flex-direction: column; }
.pcard-band { background: var(--c); color: #fff; display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px; }
.pcard-band b { font-size: 18px; flex: 1; letter-spacing: -.01em; }
.pcard-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; flex-shrink: 0; }
.pcard-icon svg { width: 20px; height: 20px; }
.pcard-pts { font-weight: 900; font-size: 16px; background: rgba(0, 0, 0, .18); border-radius: 999px; padding: 3px 9px; }
.pcard-text { flex: 1; margin: 0; padding: 16px 16px 8px; font-size: 16px; line-height: 1.4; font-weight: 600; }
.pcard-foot { padding: 0 16px 14px; font-size: 12px; color: #78716c; }
/* kleine Variante in der Inbox (dunkles Design) */
.pcard-face.mini { border-radius: 14px; overflow: hidden; background: var(--surface); margin-bottom: 10px; border: 1px solid var(--line); }
.pcard-face.mini .pcard-band { padding: 10px 12px; }
.pcard-face.mini .pcard-band b { font-size: 16px; }
.pcard-face.mini .pcard-text { padding: 12px; font-size: 15px; font-weight: 500; color: var(--text); }
.pcard-face.mini .pcard-foot { display: none; }
.event-card.hand { padding: 10px; }
.ec-timer { font-size: 12px; color: var(--muted); margin: -4px 2px 10px; }

/* Stapel in der Inbox */
.deck-tile { width: 100%; display: flex; align-items: center; gap: 18px; padding: 16px; margin-bottom: 14px; border-radius: var(--radius); border: 1px solid rgba(255, 90, 31, .5); background: linear-gradient(135deg, var(--accent-soft), transparent); cursor: pointer; text-align: left; color: var(--text); }
.deck-stack { position: relative; width: 56px; height: 76px; flex-shrink: 0; }
.deck-stack .pcard { position: absolute; width: 52px; border-radius: 8px; border-width: 2px; }
.deck-stack .pcard::after { font-size: 13px; }
.deck-stack .pcard:nth-child(1) { transform: rotate(-8deg) translate(-3px, 2px); }
.deck-stack .pcard:nth-child(2) { transform: rotate(4deg) translate(3px, 0); }
.deck-stack .pcard:nth-child(3) { animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 78% { transform: translateY(-8px) rotate(-4deg); } 86% { transform: translateY(-8px) rotate(4deg); } }
.deck-text b { display: block; font-size: 17px; }
.deck-text > span { font-size: 13px; color: var(--muted); }

/* ---------- Effekt-Overlays ---------- */
.fx-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(5, 5, 8, .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px 16px calc(var(--safe-b) + 24px);
  opacity: 0; transition: opacity .2s; overflow: hidden; perspective: 1200px; }
.fx-overlay.in { opacity: 1; }
.fx-overlay.out { opacity: 0; }
.fx-label { font-size: 24px; font-weight: 800; text-align: center; letter-spacing: -.02em; animation: rise .5s .35s both; }
.fx-points { font-size: 44px; font-weight: 900; color: var(--accent-2); animation: rise .5s .5s both; }
.fx-skip { position: absolute; bottom: calc(var(--safe-b) + 18px); font-size: 12px; color: var(--faint); margin: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Karte ziehen */
.fx-deck { position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%); width: 220px; height: 308px; }
.fx-deck .pcard { position: absolute; inset: 0; transform: rotate(var(--r, 0deg)); }
.fx-deck .pcard:nth-child(1) { --r: -6deg; } .fx-deck .pcard:nth-child(2) { --r: 4deg; }
.fx-card-wrap { animation: draw .7s cubic-bezier(.2, .9, .25, 1) both; margin-top: -40px; }
@keyframes draw { from { transform: translateY(70vh) scale(.7) rotate(-6deg); } }
.flipper { transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.flipper .side { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flipper .front { transform: rotateY(180deg); }
.fx-overlay.flip .flipper { transform: rotateY(180deg); }
.fx-overlay.draw .fx-actions { opacity: 0; transition: opacity .3s .9s; }
.fx-overlay.flip .fx-actions { opacity: 1; }
.fx-actions .btn { min-width: 200px; }
.fx-overlay.flip .fx-card-wrap::after { content: ""; position: absolute; inset: -40px; background: radial-gradient(circle, rgba(255, 176, 32, .35), transparent 60%); z-index: -1; animation: fade .6s .5s both; }
.fx-card-wrap { position: relative; }

/* Duell: Schwerter kreuzen */
.fx-duel { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; max-width: 420px; }
.fighter { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 110px; text-align: center; }
.fighter b { font-size: 14px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-duel .fighter.left { animation: slideL .5s both; } .fx-duel .fighter.right { animation: slideR .5s both; }
@keyframes slideL { from { opacity: 0; transform: translateX(-80px); } }
@keyframes slideR { from { opacity: 0; transform: translateX(80px); } }
.swords { position: relative; width: 110px; height: 120px; flex-shrink: 0; }
.sword { position: absolute; left: 50%; top: 50%; width: 28px; height: 76px; margin: -38px 0 0 -14px; }
.sword-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.sword.l { transform: rotate(-40deg); animation: swingL .9s .3s cubic-bezier(.5, 0, .3, 1.5) both; }
.sword.r { transform: rotate(40deg); animation: swingR .9s .3s cubic-bezier(.5, 0, .3, 1.5) both; }
@keyframes swingL { 0% { transform: translateX(-90px) rotate(-120deg); opacity: 0; } 55% { transform: translateX(0) rotate(-30deg); opacity: 1; } 70% { transform: rotate(-48deg); } }
@keyframes swingR { 0% { transform: translateX(90px) rotate(120deg); opacity: 0; } 55% { transform: translateX(0) rotate(30deg); opacity: 1; } 70% { transform: rotate(48deg); } }
.fx-duel.static .sword, .fx-duel.static .fighter { animation: none; }
.spark { position: absolute; left: 50%; top: 42%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 30px 14px rgba(255, 210, 120, .9); opacity: 0; animation: spark .5s .75s both; }
@keyframes spark { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; transform: scale(1.6); } 100% { opacity: 0; transform: scale(3); } }
.fx-overlay.play.duel .fx-duel { animation: shake .3s .8s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Shot fliegt rüber */
.fx-shot { position: relative; display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 360px; }
.flying-shot { position: absolute; left: 30px; top: 6px; width: 46px; height: 46px; color: var(--accent); animation: fly 1.1s .3s cubic-bezier(.45, 0, .35, 1) both; }
.flying-shot svg { width: 100%; height: 100%; }
@keyframes fly { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(140px, -70px) rotate(200deg); } 100% { transform: translate(260px, 0) rotate(360deg); opacity: 1; } }

/* Kopfgeld: Fadenkreuz */
.fx-bounty { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.crosshair { position: absolute; inset: 0; color: #ff4d6d; animation: lock 1s cubic-bezier(.2, .9, .3, 1) both; }
.crosshair svg { width: 100%; height: 100%; }
@keyframes lock { from { transform: scale(2.4) rotate(-120deg); opacity: 0; } }
.target-av { animation: rise .4s both; }

/* Quest: Sternexplosion */
.fx-burst { position: relative; width: 120px; height: 120px; color: var(--c); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.fx-burst svg { width: 100%; height: 100%; }
.fx-burst i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--c); animation: burst .8s .2s ease-out both; }
.fx-burst i:nth-child(odd) { background: #fff; }
.fx-burst i:nth-child(2) { --a: 0deg; } .fx-burst i:nth-child(3) { --a: 36deg; } .fx-burst i:nth-child(4) { --a: 72deg; } .fx-burst i:nth-child(5) { --a: 108deg; } .fx-burst i:nth-child(6) { --a: 144deg; }
.fx-burst i:nth-child(7) { --a: 180deg; } .fx-burst i:nth-child(8) { --a: 216deg; } .fx-burst i:nth-child(9) { --a: 252deg; } .fx-burst i:nth-child(10) { --a: 288deg; } .fx-burst i:nth-child(11) { --a: 324deg; }
@keyframes burst { from { transform: rotate(var(--a)) translateY(0); opacity: 1; } to { transform: rotate(var(--a)) translateY(-110px); opacity: 0; } }
@keyframes pop { from { transform: scale(0); } }

/* Sieg: Pokal + Konfetti */
.fx-trophy { width: 120px; height: 120px; color: #ffd166; animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) both; filter: drop-shadow(0 0 30px rgba(255, 209, 102, .5)); }
.fx-trophy svg { width: 100%; height: 100%; }
.fx-confetti { position: absolute; inset: 0; pointer-events: none; }
.fx-confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: confetti 2s linear both; }
.fx-confetti i:nth-child(4n) { background: #ff5a1f; } .fx-confetti i:nth-child(4n+1) { background: #ffd166; } .fx-confetti i:nth-child(4n+2) { background: #3ecf8e; } .fx-confetti i:nth-child(4n+3) { background: #4c8dff; }
.fx-confetti i:nth-child(1) { left: 4%; animation-delay: .1s; } .fx-confetti i:nth-child(2) { left: 9%; animation-delay: .5s; } .fx-confetti i:nth-child(3) { left: 14%; animation-delay: .2s; }
.fx-confetti i:nth-child(4) { left: 19%; animation-delay: .7s; } .fx-confetti i:nth-child(5) { left: 24%; animation-delay: .3s; } .fx-confetti i:nth-child(6) { left: 29%; animation-delay: .9s; }
.fx-confetti i:nth-child(7) { left: 34%; animation-delay: .15s; } .fx-confetti i:nth-child(8) { left: 39%; animation-delay: .6s; } .fx-confetti i:nth-child(9) { left: 44%; animation-delay: .35s; }
.fx-confetti i:nth-child(10) { left: 49%; animation-delay: .8s; } .fx-confetti i:nth-child(11) { left: 54%; animation-delay: .05s; } .fx-confetti i:nth-child(12) { left: 59%; animation-delay: .45s; }
.fx-confetti i:nth-child(13) { left: 64%; animation-delay: .25s; } .fx-confetti i:nth-child(14) { left: 69%; animation-delay: .75s; } .fx-confetti i:nth-child(15) { left: 74%; animation-delay: .4s; }
.fx-confetti i:nth-child(16) { left: 79%; animation-delay: .95s; } .fx-confetti i:nth-child(17) { left: 84%; animation-delay: .2s; } .fx-confetti i:nth-child(18) { left: 89%; animation-delay: .55s; }
.fx-confetti i:nth-child(19) { left: 94%; animation-delay: .1s; } .fx-confetti i:nth-child(20) { left: 12%; animation-delay: 1s; } .fx-confetti i:nth-child(21) { left: 37%; animation-delay: 1.1s; }
.fx-confetti i:nth-child(22) { left: 62%; animation-delay: 1.05s; } .fx-confetti i:nth-child(23) { left: 82%; animation-delay: 1.15s; } .fx-confetti i:nth-child(24) { left: 52%; animation-delay: 1.2s; }
@keyframes confetti { to { transform: translateY(110vh) rotate(720deg); } }

/* Strafe */
.fx-penalty span { display: block; font-size: 72px; font-weight: 900; color: var(--bad); animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) both, shake .25s .4s 3; }

/* Duell: Sieger eintragen */
.winner-pick { display: flex; align-items: center; justify-content: center; gap: 14px; }
.winner-pick .target { min-width: 96px; padding: 12px 8px; font-size: 14px; font-weight: 600; }
.winner-pick .target:active { border-color: var(--accent); background: var(--accent-soft); }
.winner-pick .vs { font-weight: 900; color: var(--muted); letter-spacing: .05em; }

@media (prefers-reduced-motion: reduce) {
  .fx-overlay *, .fx-overlay *::before, .fx-overlay *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- Neue Effekte ---------- */
.fx-sub { color: var(--muted); text-align: center; margin: -6px 0 0; max-width: 320px; animation: rise .5s .5s both; }
.fx-shield { position: relative; width: 130px; height: 130px; color: var(--c); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.fx-shield svg { width: 100%; height: 100%; filter: drop-shadow(0 0 24px color-mix(in srgb, var(--c) 60%, transparent)); }
.fx-shield .ring { position: absolute; inset: -20px; border-radius: 50%; border: 3px solid var(--c); animation: ripple 1s .2s ease-out both; }
@keyframes ripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.fx-reverse { width: 120px; height: 120px; color: var(--c); animation: spin360 1s cubic-bezier(.3, .8, .3, 1) both; }
.fx-reverse svg { width: 100%; height: 100%; }
@keyframes spin360 { from { transform: rotate(-360deg) scale(.4); opacity: 0; } }
.fx-target { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: rise .5s .6s both; }
.flying-coin { position: absolute; left: 40px; top: 10px; font-weight: 900; font-size: 22px; color: #ffd166; animation: fly 1.1s .3s cubic-bezier(.45, 0, .35, 1) both; }
.fx-badge { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; color: #1c1917; background: radial-gradient(circle at 35% 30%, #ffe8a3, #ffb020 70%); box-shadow: 0 0 50px rgba(255, 176, 32, .5); animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.fx-badge svg { width: 62px; height: 62px; }

/* Glücksrad */
.wheel-wrap { position: relative; width: min(320px, 82vw); aspect-ratio: 1; }
.wheel-svg { width: 100%; height: 100%; transition: transform 4.2s cubic-bezier(.12, .8, .15, 1); filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .5)); }
.wheel-pointer { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid #fdfaf4; z-index: 2; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.fx-overlay.wheel.won .wheel-result { color: #ffd166; }
.fx-overlay.wheel.lost .wheel-result { color: var(--bad); }

/* Reaktionstest */
.fx-overlay.reaction { padding: 0; gap: 0; justify-content: stretch; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.rx-half { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--surface-2); transition: background .1s; cursor: pointer; }
.rx-half.opp { transform: rotate(180deg); }
.rx-half b { font-size: 22px; }
.rx-score { font-size: 64px; font-weight: 900; line-height: 1; }
.rx-msg { font-size: 20px; color: var(--muted); font-weight: 700; }
.rx-half.wait { background: #3b1d1d; }
.rx-half.go { background: #12804f; }
.rx-half.go .rx-msg, .rx-half.win .rx-msg { color: #fff; }
.rx-half.win { background: #1d5a3f; }
.rx-half.lose { background: #3a2226; }
.rx-mid { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 8px; background: var(--bg); position: relative; }
.rx-round { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.rx-close { position: absolute; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-3); color: var(--muted); cursor: pointer; }
.rx-result { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px; }

/* Siegerehrung */
.fx-overlay.finale { justify-content: flex-start; padding-top: calc(var(--safe-t) + 40px); overflow-y: auto; }
.finale-title { text-align: center; display: flex; flex-direction: column; gap: 2px; animation: rise .5s both; }
.finale-title span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.finale-title b { font-size: 28px; }
.podium-fx { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; width: min(380px, 100%); margin-top: 12px; }
.pod { display: flex; flex-direction: column; align-items: center; }
.pod-person { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin-bottom: 8px; opacity: 0; animation: rise .5s both; position: relative; }
.pod-person b { font-size: 14px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-person > span:not(.pod-crown) { font-size: 13px; color: var(--accent-2); font-weight: 800; }
.pod-crown { position: absolute; top: -30px; width: 34px; height: 34px; color: #ffd166; }
.pod-block { width: 100%; border-radius: 12px 12px 4px 4px; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: rgba(0, 0, 0, .45); transform-origin: bottom; animation: grow .7s cubic-bezier(.2, .9, .3, 1.2) both; }
.pod.p1 .pod-block { height: 150px; background: linear-gradient(#ffe08a, #ffb020); }
.pod.p2 .pod-block { height: 110px; background: linear-gradient(#eef2f7, #aab4c0); }
.pod.p3 .pod-block { height: 80px; background: linear-gradient(#f0c194, #c98a52); }
.pod.p3 .pod-block { animation-delay: .3s; } .pod.p3 .pod-person { animation-delay: 1s; }
.pod.p2 .pod-block { animation-delay: 1.3s; } .pod.p2 .pod-person { animation-delay: 2s; }
.pod.p1 .pod-block { animation-delay: 2.3s; } .pod.p1 .pod-person { animation-delay: 3s; }
@keyframes grow { from { transform: scaleY(0); } }
.fx-overlay.finale .fx-confetti i { animation-delay: calc(3s + var(--d, 0s)) !important; }
.finale-more { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(420px, 100%); margin-top: 14px; opacity: 0; animation: rise .6s 3.6s both; padding-bottom: 20px; }
.finale-rest { width: 100%; background: var(--surface); border-radius: 12px; padding: 6px 12px; }
.finale-rest div { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.finale-rest div:last-child { border-bottom: 0; }
.finale-rest b { margin-left: auto; color: var(--accent-2); }
.award-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
.award { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 8px; align-items: center; }
.award b { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-2); margin-bottom: 6px; }
.award .avatar { grid-row: 2 / span 2; }
.award span { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award small { color: var(--muted); font-size: 12px; }
.finale-btn svg { width: 20px; height: 20px; }
.finale-btn { margin-bottom: 14px; }

/* Inbox: Joker, Events, Schulden */
.joker-row { display: flex; flex-direction: column; gap: 8px; }
.joker { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); border-radius: 14px; padding: 10px 12px; }
.joker > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.joker small { color: var(--muted); font-size: 12px; }
.joker-actions { display: flex; gap: 8px; margin: 0 0 10px; flex-wrap: wrap; }
.joker-actions .btn { flex: 1; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.joker-actions .btn svg { width: 18px; height: 18px; }
.target small { font-size: 11px; color: var(--muted); }
.mini-avatars { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 0 0 10px; }
.mini-avatars span { font-size: 12px; color: var(--muted); margin-left: 4px; }
.photo-thumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.photo-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.photo-vote { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pv { position: relative; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface); padding: 0; cursor: pointer; color: var(--text); }
.pv img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pv span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 12px; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); text-align: left; }
.pv.on { border-color: var(--accent); }
.pv.mine { opacity: .6; cursor: default; }
.pv.winner { border-color: #ffd166; box-shadow: 0 0 0 3px rgba(255, 209, 102, .25); }
.teams { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.teams .team { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.teams .team.mine { border-color: var(--accent); background: var(--accent-soft); }
.teams .team b { display: block; font-size: 14px; margin-bottom: 6px; }
.teams .team .mini-avatars { margin: 0; }
.teams .vs { font-weight: 900; color: var(--muted); font-size: 12px; }
.team-quest { background: var(--surface); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.team-quest p { margin: 0 0 8px; font-weight: 600; }
.team-quest.done { opacity: .7; }
.tq-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tq-ok { color: var(--good); font-weight: 700; font-size: 14px; }
.event-card.debt .ec-text { margin-bottom: 10px; }

/* Level & Abzeichen */
.level-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 8px; }
.level-badge { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffb27a, var(--accent) 70%); box-shadow: 0 6px 20px rgba(255, 90, 31, .35); }
.level-badge span { font-size: 24px; font-weight: 900; color: #fff; }
.level-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.level-main small { color: var(--muted); font-size: 12px; }
.level-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.level-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffd166); border-radius: 4px; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .45; }
.badge.on { opacity: 1; border-color: rgba(255, 176, 32, .45); }
.badge.new { box-shadow: 0 0 0 3px rgba(255, 176, 32, .35); }
.badge-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.badge.on .badge-icon { background: radial-gradient(circle at 35% 30%, #ffe8a3, #ffb020 70%); color: #1c1917; }
.badge-icon svg { width: 24px; height: 24px; }
.badge b { font-size: 12px; }
.badge small { font-size: 10px; color: var(--muted); line-height: 1.25; }

/* Rückblick */
.recap-banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid rgba(255, 176, 32, .4); background: linear-gradient(135deg, rgba(255, 176, 32, .14), transparent); color: var(--text); cursor: pointer; }
.recap-icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 176, 32, .18); color: #ffd166; display: grid; place-items: center; flex-shrink: 0; }
.recap-icon svg { width: 22px; height: 22px; }
.recap-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.recap-text span { font-size: 13px; color: var(--muted); }
.recap-arrow { font-size: 22px; color: var(--muted); }
.recap-me { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.recap-me div { background: var(--surface-2); border-radius: 12px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; }
.recap-me b { font-size: 18px; }
.recap-me span { font-size: 11px; color: var(--muted); }
.recap-podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.rp { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; padding: 8px; background: var(--surface-2); border-radius: 12px; min-width: 88px; }
.rp.p1 { order: 2; border: 1px solid rgba(255, 209, 102, .5); padding-top: 14px; }
.rp.p2 { order: 1; } .rp.p3 { order: 3; }
.rp b { font-size: 13px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp span { font-size: 13px; color: var(--accent-2); font-weight: 800; }
.rp i { position: absolute; top: 4px; left: 8px; font-style: normal; font-weight: 900; font-size: 12px; color: var(--muted); }
.recap-photo { margin-top: 10px; border-radius: 12px; overflow: hidden; position: relative; }
.recap-photo img { width: 100%; display: block; max-height: 320px; object-fit: cover; }
.recap-photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; font-size: 13px; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }

/* ---------- Abzeichen mit Stufen (Rookie → Legende) ---------- */
.badge { --tc: var(--faint); cursor: pointer; font: inherit; color: var(--text); opacity: 1; }
.badge.t0 { opacity: .5; }
.badge.t1 { --tc: #8aa0b8; } .badge.t2 { --tc: #cd7f32; } .badge.t3 { --tc: #c9d1dc; }
.badge.t4 { --tc: #ffd166; } .badge.t5 { --tc: #4cc9f0; } .badge.t6 { --tc: #b46cff; }
.badge[class*=" t"]:not(.t0) { border-color: color-mix(in srgb, var(--tc) 55%, var(--line)); }
.badge.on .badge-icon, .badge[class*=" t"]:not(.t0) .badge-icon { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--tc) 60%, #fff), var(--tc) 75%); color: #1c1917; }
.badge.t6 .badge-icon { box-shadow: 0 0 18px color-mix(in srgb, var(--tc) 65%, transparent); }
.badge .tier-name { font-size: 11px; font-weight: 800; color: var(--tc); letter-spacing: .03em; text-transform: uppercase; }
.badge .tier-dots { display: flex; gap: 3px; justify-content: center; }
.badge .tier-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); }
.badge .tier-dots i.on { background: var(--tc); }
.badge .tier-bar { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.badge .tier-bar span { display: block; height: 100%; background: var(--tc); border-radius: 2px; }
.badge-detail { --tc: var(--faint); text-align: center; padding: 4px 0 8px; }
.badge-detail.t1 { --tc: #8aa0b8; } .badge-detail.t2 { --tc: #cd7f32; } .badge-detail.t3 { --tc: #c9d1dc; }
.badge-detail.t4 { --tc: #ffd166; } .badge-detail.t5 { --tc: #4cc9f0; } .badge-detail.t6 { --tc: #b46cff; }
.badge-icon.big { width: 84px; height: 84px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--tc) 60%, #fff), var(--tc) 75%); color: #1c1917; }
.badge-icon.big svg { width: 44px; height: 44px; }
.badge-detail h3 { margin: 6px 0 2px; font-size: 20px; }
.tier-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; text-align: left; }
.tier-list div { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface-2); border-radius: 10px; opacity: .55; }
.tier-list div.on { opacity: 1; }
.tier-list i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.tier-list div.on i { background: var(--tc); }
.tier-list span { flex: 1; font-weight: 600; }
.fx-badge.t1 { background: radial-gradient(circle at 35% 30%, #d6e2f0, #8aa0b8 70%); box-shadow: 0 0 40px rgba(138, 160, 184, .5); }
.fx-badge.t2 { background: radial-gradient(circle at 35% 30%, #f0c28f, #cd7f32 70%); box-shadow: 0 0 40px rgba(205, 127, 50, .5); }
.fx-badge.t3 { background: radial-gradient(circle at 35% 30%, #fff, #c9d1dc 70%); box-shadow: 0 0 40px rgba(201, 209, 220, .5); }
.fx-badge.t5 { background: radial-gradient(circle at 35% 30%, #d4f3fc, #4cc9f0 70%); box-shadow: 0 0 50px rgba(76, 201, 240, .55); }
.fx-badge.t6, .fx-badge.king { background: radial-gradient(circle at 35% 30%, #e4d0ff, #b46cff 70%); box-shadow: 0 0 60px rgba(180, 108, 255, .65); }
.fx-badge.king { background: radial-gradient(circle at 35% 30%, #ffe8a3, #ffb020 70%); box-shadow: 0 0 60px rgba(255, 176, 32, .6); }

/* ---------- Fluch ---------- */
.fx-curse { position: relative; width: 140px; height: 140px; color: #9b6bff; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.fx-curse svg { width: 100%; height: 100%; filter: drop-shadow(0 0 28px rgba(155, 107, 255, .7)); animation: floaty 2s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(-3deg); } }
.fx-curse .rune { position: absolute; width: 14px; height: 14px; border: 2px solid #9b6bff; border-radius: 3px; transform: rotate(45deg); opacity: 0; animation: rune 1.6s ease-out infinite; }
.fx-curse .r1 { left: -10px; top: 20px; } .fx-curse .r2 { right: -8px; top: 50px; animation-delay: .5s; } .fx-curse .r3 { left: 20px; bottom: -8px; animation-delay: 1s; }
@keyframes rune { 0% { opacity: 0; transform: rotate(45deg) scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: rotate(225deg) scale(1.6) translateY(-20px); } }
.fx-overlay.play.curse { background: radial-gradient(circle at 50% 40%, rgba(60, 20, 110, .85), rgba(5, 5, 8, .95)); }
.event-card.curse { border-color: rgba(155, 107, 255, .5); }
.curse-text { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 4px 0 10px; color: #d6c4ff; }
.curse-options { display: flex; flex-direction: column; gap: 8px; }
.curse-opt { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.35; cursor: pointer; }
.curse-opt.on { border-color: #9b6bff; background: rgba(155, 107, 255, .14); }
.curse-catches { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; }
.curse-catches > div { display: flex; align-items: center; gap: 8px; font-size: 13px; background: var(--surface); border-radius: 10px; padding: 6px 8px; }
.curse-catches > div > span { flex: 1; min-width: 0; }
.curse-catches > div.disputed { opacity: .5; text-decoration: line-through; }
.curse-banner, .king-banner { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 12px; padding: 12px 14px; border-radius: var(--radius); cursor: pointer; color: var(--text); font: inherit; }
.curse-banner { border: 1px solid rgba(155, 107, 255, .55); background: linear-gradient(135deg, rgba(155, 107, 255, .2), transparent); }
.king-banner { border: 1px solid rgba(255, 209, 102, .55); background: linear-gradient(135deg, rgba(255, 209, 102, .16), transparent); }
.curse-ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(155, 107, 255, .2); color: #c4a8ff; display: grid; place-items: center; flex-shrink: 0; }
.king-banner .curse-ico { background: rgba(255, 209, 102, .18); color: #ffd166; }
.curse-ico svg { width: 22px; height: 22px; }
.curse-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.curse-txt b { font-size: 15px; }
.curse-txt span { color: var(--muted); }

/* ---------- Tageskönig ---------- */
.king-card { border-color: rgba(255, 209, 102, .6); box-shadow: 0 0 0 3px rgba(255, 209, 102, .12); }
.king-options { display: grid; grid-template-columns: 1fr; gap: 10px; }
.king-opt { padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); cursor: pointer; overflow: hidden; font: inherit; text-align: left; }
.king-opt:active { transform: scale(.98); border-color: #ffd166; }
.king-opt .pcard-face.mini { margin: 0; border: 0; border-radius: 0; }
.king-take { display: block; padding: 9px; text-align: center; font-weight: 700; font-size: 14px; background: rgba(255, 209, 102, .14); color: #ffd166; }
.king-crown { display: inline-flex; width: 16px; height: 16px; margin-left: 6px; color: #ffd166; vertical-align: -2px; }
.king-crown svg { width: 100%; height: 100%; }

/* ---------- Party-Spiele ---------- */
.games-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.games-ico, .game-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.games-ico svg, .game-ico svg { width: 22px; height: 22px; }
.games-txt, .game-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.games-txt span, .game-txt small { font-size: 13px; color: var(--muted); }
.game-list { display: flex; flex-direction: column; gap: 8px; }
.game-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; }
.game-item:active { background: var(--surface-3); }
.rank-tag { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-2); border: 1px solid rgba(255, 138, 76, .4); border-radius: 999px; padding: 2px 7px; }
.guest-add { display: flex; gap: 8px; margin-top: 10px; }
.guest-add .input { flex: 1; }
.choice.wide { grid-column: 1 / -1; }

.game-screen { position: fixed; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column; padding-top: var(--safe-t); }
.gs-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.gs-head b { font-size: 17px; }
.gs-body { flex: 1; overflow-y: auto; padding: 16px 16px calc(var(--safe-b) + 20px); display: flex; flex-direction: column; }
.gs-center { margin: auto; width: min(420px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.gs-center h1 { margin: 0; font-size: 30px; line-height: 1.15; }
.gs-center h1.ok { color: var(--good); } .gs-center h1.bad { color: var(--bad); }
.gs-name { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.gs-prompt { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.gs-prompt.small { font-size: 19px; }
.gs-small { margin: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.gs-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.gs-text b { color: var(--text); }
.gs-btn { width: 100%; min-height: 56px; border: 0; border-radius: 16px; background: var(--accent); color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; padding: 12px 18px; }
.gs-btn:active { transform: scale(.98); }
.gs-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.gs-btn.small { min-height: 40px; font-size: 14px; font-weight: 600; width: auto; align-self: center; padding: 8px 16px; color: var(--muted); }
.gs-row { display: flex; gap: 10px; width: 100%; }
.gs-row .gs-btn { flex: 1; }
.gs-timer { font-size: 48px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--accent-2); }
.gs-timer.big { font-size: 96px; animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.gs-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.gs-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 17px; font-weight: 600; cursor: pointer; }
.gs-pick:active { border-color: var(--accent); background: var(--accent-soft); }
.gs-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gs-chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; }
.gs-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.gs-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.gs-opts.four { grid-template-columns: 1fr 1fr; }
.gs-opt { min-height: 64px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 18px; font-weight: 800; cursor: pointer; }
.gs-opt:active { background: var(--accent-soft); border-color: var(--accent); }
.secret { width: 100%; padding: 28px 18px; border-radius: 22px; background: linear-gradient(160deg, #1f2f55, #162038); border: 1px solid rgba(76, 141, 255, .5); }
.secret.imp { background: linear-gradient(160deg, #5a1522, #2b0c14); border-color: rgba(255, 77, 94, .6); }
.secret small { display: block; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 12px; }
.secret h1 { font-size: 38px; word-break: break-word; }
.secret p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.drink-box { width: 100%; padding: 16px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgba(255, 90, 31, .45); font-size: 19px; line-height: 1.35; }
.drink-box small { color: var(--muted); }
.sip-table { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sip-table div { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sip-table div:last-child { border-bottom: 0; }
.sip-table div.me { background: var(--accent-soft); }
.sip-table b { color: var(--accent-2); }
.pk-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pk { width: 58px; height: 84px; border-radius: 9px; background: #fdfaf4; color: #1c1917; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.pk b { font-size: 22px; line-height: 1; } .pk i { font-style: normal; font-size: 26px; line-height: 1.1; }
.pk.red { color: #d62839; }
.pk.back { background: repeating-linear-gradient(45deg, #c2410c 0 6px, #ff7a3d 6px 12px); color: rgba(255, 255, 255, .85); }
.ok-line { color: var(--good); margin: 0; font-weight: 700; }

/* Test-Modus */
.dev-box { border: 1px dashed rgba(255, 176, 32, .55); border-radius: var(--radius); padding: 14px; background: rgba(255, 176, 32, .05); }
.dev-box h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 8px; }
.dev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dev-grid .btn { font-size: 13px; padding: 8px 6px; }

/* Foto sichern */
.photo-wrap { position: relative; }
.photo-dl { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 7px 12px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.photo-wrap .proof-photo { margin-bottom: 12px; }
.photo-wrap .proof-photo + .photo-dl { bottom: 22px; }

/* Trinktage */
.drink-days { max-height: 168px; overflow-y: auto; }
.drink-days .chip { padding: 6px 10px; font-size: 13px; }
.dd-actions { font-size: 13px; color: var(--faint); margin-top: 8px; }
.drinkday-pill { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
.drinkdays-line { margin: -8px 0 14px; }
.push-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 4px; }

/* Punkte / Boni */
.streak { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(255, 90, 31, .3); font-size: 14px; font-weight: 600; }
.streak svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; }
.streak.idle { background: var(--surface); border-color: var(--line); color: var(--muted); font-weight: 500; }
.streak.idle svg { fill: var(--faint); }
.stat-btn { text-align: left; cursor: pointer; color: inherit; font: inherit; }
.stat-btn:active { background: var(--surface-2); }
.bonus-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.bonus-chip { font-size: 11px; font-weight: 600; color: var(--accent-2); background: var(--accent-soft); border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.bonus-chip.muted { color: var(--muted); background: var(--surface-2); }
.proof-meta .bonus-chips { grid-column: 1 / -1; }
.pts.neg { color: var(--bad); }
.log-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 0; font-size: 16px; }
.log-total b { font-size: 20px; color: var(--accent-2); }
.rule { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.rule p { margin: 4px 0 0; color: var(--muted); }
.rules-ul { margin: 0 0 8px; padding-left: 20px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.stepper .icon-btn { width: 30px; height: 30px; font-size: 18px; }
.stepper .count { min-width: 28px; text-align: center; }

.group-card.ended { opacity: .7; }
.gavatar { border-radius: 28%; object-fit: cover; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-weight: 800; flex-shrink: 0; overflow: hidden; }
.group-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; }
.group-avatar { position: relative; display: block; flex-shrink: 0; line-height: 0; }
.group-avatar.editable { cursor: pointer; }
.group-avatar-edit { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 10px; font-weight: 700; text-align: center; line-height: 18px; border-radius: 0 0 18px 18px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-2); font-weight: 600; font-size: inherit; cursor: pointer; }

.view-head { display: flex; align-items: center; justify-content: space-between; }
.view-head h1 { margin-bottom: 6px; }
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 10px 0 20px; }
.profile-head label { cursor: pointer; color: var(--accent-2); font-size: 14px; font-weight: 600; }
.version { text-align: center; color: var(--faint); font-size: 12px; margin-top: 26px; }

/* =====================================================================
   Politur: Tiefe, Verläufe, Bewegung (überschreibt die Basis oben)
   ===================================================================== */
body { background: radial-gradient(120% 60% at 50% -10%, rgba(255, 90, 31, .13), transparent 60%), var(--bg); background-attachment: fixed; }
.card, .stat, .list { box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 28px rgba(0, 0, 0, .28); }
.card, .stat { background: linear-gradient(180deg, #1b1b21, var(--surface)); }
h2 { display: flex; align-items: center; gap: 8px; }
h2::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(var(--accent-2), var(--accent)); flex-shrink: 0; }
h2 .h-right { margin-left: auto; float: none; }
.stat-v { font-size: 28px; font-weight: 800; }
.hero-value { background: linear-gradient(180deg, #fff, #ffd9c7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn.primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 6px 18px rgba(255, 90, 31, .35), 0 1px 0 rgba(255, 255, 255, .25) inset; font-weight: 700; }
.tab-plus { box-shadow: 0 8px 26px rgba(255, 90, 31, .55), 0 1px 0 rgba(255, 255, 255, .3) inset; }
.view > * { animation: riseIn .4s cubic-bezier(.2, .8, .3, 1) both; }
.view > *:nth-child(2) { animation-delay: .04s; } .view > *:nth-child(3) { animation-delay: .08s; } .view > *:nth-child(4) { animation-delay: .12s; } .view > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view > * { animation: none; } }

/* ---------- Plus-Dialog: große Knöpfe ---------- */
.choice-grid { gap: 14px; }
.choice { padding: 34px 12px 30px; border-radius: 22px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
.choice-icon { width: 76px; height: 76px; border-radius: 22px; margin-bottom: 14px; background: linear-gradient(145deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 8px 20px rgba(255, 90, 31, .4); }
.choice-icon svg { width: 40px; height: 40px; }
.choice b { font-size: 21px; }
.choice span { font-size: 14px; }

/* ---------- Party-Spiele: Kacheln auf der Startseite ---------- */
.t-imposter { --t1: #8b3dff; --t2: #ec2d8b; }
.t-bus { --t1: #0f9d6b; --t2: #0b5d8f; }
.t-never { --t1: #ff3d8b; --t2: #ff8a2b; }
.t-likely { --t1: #ffb21a; --t2: #f23d4f; }
.t-truth { --t1: #2d6bff; --t2: #8b3dff; }
.t-categories { --t1: #12c2d6; --t2: #2d6bff; }
.game-tiles { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
.game-tiles::-webkit-scrollbar { display: none; }
.game-tile { position: relative; flex: 0 0 156px; height: 188px; scroll-snap-align: start; border: 0; border-radius: 24px; padding: 14px; text-align: left; color: #fff; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; background: linear-gradient(150deg, var(--t1), var(--t2)); box-shadow: 0 12px 26px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .3) inset; transition: transform .15s; }
.game-tile:active { transform: scale(.96) rotate(-1deg); }
.game-tile::after { content: ""; position: absolute; right: -34px; top: -34px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.game-tile::before { content: ""; position: absolute; left: -20px; bottom: 40px; width: 80px; height: 80px; border-radius: 50%; background: rgba(0, 0, 0, .12); }
.game-tile b { position: relative; z-index: 1; font-size: 20px; line-height: 1.1; letter-spacing: -.01em; }
.game-tile small { position: relative; z-index: 1; font-size: 12.5px; opacity: .85; line-height: 1.25; }
.gt-ico { position: absolute; z-index: 1; left: 14px; top: 14px; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; backdrop-filter: blur(4px); }
.gt-ico svg { width: 30px; height: 30px; }
.game-tile .rank-tag { position: absolute; z-index: 1; right: 12px; top: 12px; color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(0, 0, 0, .18); }
.setup-hero { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; color: #fff; margin-bottom: 14px; overflow: hidden; background: linear-gradient(150deg, var(--t1), var(--t2)); }
.setup-hero .gt-ico { position: static; flex-shrink: 0; }
.setup-hero b { display: block; font-size: 20px; }
.setup-hero small { font-size: 13px; opacity: .9; line-height: 1.3; }

/* ---------- Party-Spiele: Spielbildschirm im Splash-Stil ---------- */
.game-screen { background: linear-gradient(160deg, var(--t1, #333), var(--t2, #111)); color: #fff; overflow: hidden; }
.gs-blob { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .13); filter: blur(2px); pointer-events: none; animation: blobFloat 9s ease-in-out infinite alternate; }
.gs-blob.b1 { width: 280px; height: 280px; right: -110px; top: 12%; }
.gs-blob.b2 { width: 200px; height: 200px; left: -90px; bottom: 8%; background: rgba(0, 0, 0, .13); animation-delay: -4s; }
@keyframes blobFloat { to { transform: translate(20px, -26px) scale(1.08); } }
.gs-head { position: relative; border-bottom: 0; }
.gs-head b { font-size: 15px; text-transform: uppercase; letter-spacing: .12em; opacity: .9; }
.gs-head .icon-btn { background: rgba(255, 255, 255, .2); color: #fff; border-radius: 50%; }
.gs-body { position: relative; }
.gs-center h1 { font-size: 34px; font-weight: 900; letter-spacing: -.02em; text-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.gs-center h1.ok { color: #c8ffe3; } .gs-center h1.bad { color: #ffd2d6; }
.gs-name { font-weight: 900; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.gs-small { color: rgba(255, 255, 255, .75); }
.gs-text { color: rgba(255, 255, 255, .88); }
.gs-text b { color: #fff; }
.gs-text.strong { font-size: 17px; font-weight: 800; color: #fff; }
.gs-timer { color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.gs-btn { background: #fff; color: #1c1230; font-weight: 900; border-radius: 18px; min-height: 60px; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); transition: transform .1s, box-shadow .1s; }
.gs-btn:active { transform: translateY(5px); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.gs-btn.ghost { background: rgba(255, 255, 255, .18); color: #fff; border: 0; box-shadow: 0 6px 0 rgba(0, 0, 0, .15); }
.gs-btn.small { background: transparent; box-shadow: none; color: rgba(255, 255, 255, .7); }
.gs-pick, .gs-chip, .gs-opt { background: rgba(255, 255, 255, .17); border: 0; color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.gs-pick:active, .gs-opt:active { background: #fff; color: #1c1230; transform: translateY(3px); box-shadow: none; }
.gs-chip.on { background: #fff; color: #1c1230; }
.gs-opt { font-weight: 900; border-radius: 18px; min-height: 72px; font-size: 20px; }
.drink-box { display: flex; align-items: center; gap: 12px; text-align: left; background: rgba(0, 0, 0, .22); border: 0; border-radius: 18px; color: #fff; }
.drink-box .db-ico { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex-shrink: 0; }
.drink-box .db-ico svg { width: 26px; height: 26px; }
.drink-box small { color: rgba(255, 255, 255, .7); }
.sip-table { background: rgba(0, 0, 0, .2); border: 0; color: #fff; }
.sip-table div { border-bottom: 1px solid rgba(255, 255, 255, .12); align-items: center; }
.sip-table div.me { background: rgba(255, 255, 255, .2); }
.sip-table b { color: #fff; font-size: 18px; }
.sip-table em { font-style: normal; color: rgba(255, 255, 255, .65); min-width: 54px; text-align: right; }
.sip-table .head { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.sip-table .head span:nth-child(2) { margin-left: auto; margin-right: 18px; }
.ok-line { margin: 0; color: #c8ffe3; font-weight: 700; }

/* Spielkarten: Stapel + gezogene Karte */
.gs-deck { position: relative; width: min(300px, 78vw); min-height: 330px; margin: 8px auto; }
.gs-deck.solo { min-height: 210px; width: min(210px, 56vw); }
.gs-card { border-radius: 24px; }
.gs-card.back { position: absolute; inset: 14px 6px 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .22) 0 8px, rgba(255, 255, 255, .1) 8px 16px), rgba(0, 0, 0, .22); border: 3px solid rgba(255, 255, 255, .55); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); transform: rotate(-4deg); }
.gs-card.back.two { transform: rotate(3.5deg); inset: 10px 8px 4px; }
.gs-deck.solo .gs-card.back.tap { inset: 0; transform: rotate(-3deg); animation: tapPulse 1.6s ease-in-out infinite; }
@keyframes tapPulse { 50% { transform: rotate(-3deg) scale(1.04); } }
.gs-card.face { position: relative; background: #fff; color: #1c1230; padding: 18px; min-height: 320px; display: flex; flex-direction: column; text-align: left; box-shadow: 0 22px 44px rgba(0, 0, 0, .4); }
.gc-label { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--t1), var(--t2)); color: #fff; font-size: 12.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.gc-text { flex: 1; display: flex; align-items: center; margin: 14px 0; font-size: 25px; line-height: 1.22; font-weight: 900; letter-spacing: -.015em; color: #1c1230; }
.gc-foot { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #9a93ad; text-transform: uppercase; letter-spacing: .08em; }
.gs-card.deal { animation: dealIn .6s cubic-bezier(.2, 1.1, .3, 1) both; }
@keyframes dealIn { 0% { opacity: 0; transform: translate(-60px, 120px) rotate(-14deg) scale(.7); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.secret.gs-card.face { width: min(300px, 80vw); min-height: 280px; align-items: center; justify-content: center; text-align: center; background: #fff; border: 0; padding: 26px 20px; }
.secret.gs-card.face small { color: #8a81a0; }
.secret.gs-card.face h1 { color: #1c1230; text-shadow: none; font-size: 40px; }
.secret.gs-card.face p { color: #6b6382; }
.secret.imp.gs-card.face { background: linear-gradient(160deg, #2a0a14, #6a1226); }
.secret.imp.gs-card.face small, .secret.imp.gs-card.face p { color: rgba(255, 255, 255, .7); }
.secret.imp.gs-card.face h1 { color: #ff6b81; }
.gs-card.flip { animation: flipIn .6s cubic-bezier(.3, 1.2, .4, 1) both; }
@keyframes flipIn { from { transform: perspective(700px) rotateY(90deg) scale(.8); opacity: .2; } to { transform: perspective(700px) rotateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gs-card.deal, .gs-card.flip, .gs-blob, .gs-deck.solo .gs-card.back.tap { animation: none; } }
/* ---------- Kartenziehen: Knopf nie vom Stapel verdeckt ---------- */
.fx-actions { position: relative; z-index: 6; }
.fx-overlay.draw .fx-actions { pointer-events: none; }
.fx-overlay.draw.flip .fx-actions { pointer-events: auto; }
.fx-deck { pointer-events: none; z-index: 1; }
.fx-overlay.draw .fx-card-wrap { z-index: 3; }
.fx-overlay.draw::after { content: "Tippen zum Aufdecken"; position: absolute; bottom: calc(var(--safe-b) + 18px); left: 0; right: 0; text-align: center; font-size: 12px; color: var(--faint); animation: fade .4s .2s both; }
.fx-overlay.draw.flip::after { content: "Tippen zum Nehmen"; }
/* =====================================================================
   Feinschliff: Bedienung, Sheets, Navigation, Stimmung
   ===================================================================== */
button, a, .row, .chip, .tab { touch-action: manipulation; -webkit-touch-callout: none; }
.btn, .tab, .chip, .choice, .game-tile, .gs-btn, .icon-btn { user-select: none; -webkit-user-select: none; }
.sheet, .game-screen .gs-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
body.has-sheet { overflow: hidden; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn, .row, .chip, .tab, .choice { transition: transform .12s, background-color .15s, border-color .15s, opacity .15s; }
.row:active { transform: scale(.995); }
.sheet { box-shadow: 0 -18px 50px rgba(0, 0, 0, .5); }
.sheet-backdrop { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet-backdrop.closing { opacity: 0; transition: opacity .17s; }
.sheet.closing { transform: translateY(30%); opacity: 0; transition: transform .17s ease-in, opacity .17s; }
.sheet.dialog.closing { transform: translateY(-50%) scale(.95); }
.tabbar { background: rgba(16, 16, 20, .82); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); }
.tab { position: relative; }
.tab.on::before { content: ""; position: absolute; top: 2px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); box-shadow: 0 2px 10px var(--accent); }
.tab svg { transition: transform .2s; } .tab.on svg { transform: translateY(-1px) scale(1.08); }
.toast { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: toastIn .28s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.seg button { transition: background-color .15s, color .15s; }
.seg button.on { background: var(--accent-soft); color: #fff; box-shadow: 0 0 0 1px rgba(255, 90, 31, .45) inset; }

/* Stimmung */
.mood-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.mood-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); text-align: left; cursor: pointer;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, var(--surface-2)), var(--surface-2) 75%); color: var(--text); }
.mood-opt:active { transform: scale(.98); }
.mood-opt.on { box-shadow: 0 0 0 2px var(--c) inset; }
.mood-txt b { display: block; font-size: 20px; }
.mood-txt small { color: var(--muted); font-size: 13px; }
.mood-dots { display: inline-flex; gap: 4px; flex-shrink: 0; }
.mood-dots i { width: 10px; height: 26px; border-radius: 5px; background: rgba(255, 255, 255, .14); }
.mood-dots i.f { background: var(--c); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); }
.mood-chip { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: 14px; }
.mood-chip .mood-dots i { width: 7px; height: 18px; border-radius: 4px; }
.mood-chip em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 13px; }
/* ---------- Kartenstapel zum Anfassen ---------- */
.fx-overlay.draw .fx-card-wrap { animation: none; margin-top: 0; transform: translateY(16vh) scale(.94); transition: transform .38s cubic-bezier(.2, .9, .3, 1.15), opacity .28s; touch-action: none; cursor: grab; will-change: transform; z-index: 3; }
.fx-overlay.draw.flip .fx-card-wrap { transform: none; cursor: pointer; }
.fx-overlay.draw .fx-card-wrap:active { cursor: grabbing; }
.fx-overlay.draw.almost .fx-card-wrap { filter: drop-shadow(0 0 22px rgba(255, 176, 32, .6)); }
.fx-hint { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .04em; animation: hintBob 1.4s ease-in-out infinite; }
.fx-overlay.draw.flip .fx-hint { animation: none; font-weight: 500; font-size: 12px; color: var(--faint); }
@keyframes hintBob { 50% { transform: translateY(-6px); opacity: .6; } }
.fx-overlay.draw::after { content: none; }
.fx-overlay.draw .fx-deck { bottom: -50px; }

/* Wischbare Spielkarten */
.gs-card.face.deal { touch-action: none; cursor: grab; will-change: transform; }
.gs-card.face.flying { transition: transform .32s ease-in, opacity .32s !important; opacity: 0; }
.gs-swipe-hint { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .55); letter-spacing: .08em; text-transform: uppercase; }

/* Stimmungs-Regler */
.mood-slider { --c: #ffb020; margin: 10px 0 4px; }
.mood-slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 48px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.mood-slider input[type=range]::-webkit-slider-runnable-track { height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, hsl(140 80% 55%), hsl(70 85% 55%), hsl(35 90% 55%), hsl(0 85% 58%)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.mood-slider input[type=range]::-moz-range-track { height: 14px; border-radius: 7px; background: linear-gradient(90deg, hsl(140 80% 55%), hsl(70 85% 55%), hsl(35 90% 55%), hsl(0 85% 58%)); }
.mood-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -10px; border-radius: 50%; background: #fff; border: 5px solid var(--c); box-shadow: 0 4px 14px rgba(0, 0, 0, .5), 0 0 20px var(--c); transition: transform .12s; }
.mood-slider input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); }
.mood-slider input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 5px solid var(--c); box-shadow: 0 0 20px var(--c); }
.mood-scale { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.mood-scale b { color: var(--c); font-size: 17px; letter-spacing: -.01em; text-transform: none; text-shadow: 0 0 14px color-mix(in srgb, var(--c) 50%, transparent); }
.mood-desc { margin: 6px 0 0; min-height: 2.6em; }
.game-screen .mood-slider, .setup-hero + * .mood-slider { }
.mood-bar { width: 46px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; flex-shrink: 0; }
.mood-bar i { display: block; height: 100%; border-radius: 4px; background: var(--c); box-shadow: 0 0 10px var(--c); }

/* Schnellzugriff: die letzten drei Getränke */
.quick-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-drink { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); color: var(--text); cursor: pointer; text-align: center; min-width: 0; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.quick-drink:active { transform: scale(.96); border-color: var(--accent); }
.quick-drink .thumb { width: 52px; height: 52px; }
.quick-drink b { font-size: 14px; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-drink small { font-size: 11.5px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* =====================================================================
   Neues Erscheinungsbild: hell und klar (weiß, Strava-Orange, viel Luft, dunkle Schrift).
   Überschreibt die Variablen und alles, was vorher auf Dunkel ausgelegt war.
   Effekte (Karten ziehen, Siegerehrung …) und Spielbildschirme bleiben bewusst dunkel bzw. bunt.
   ===================================================================== */
:root {
  --bg: #f6f6f8;
  --surface: #ffffff;
  --surface-2: #f1f1f4;
  --surface-3: #e5e5ea;
  --line: #e3e3e9;
  --text: #17171c;
  --muted: #6a6a76;
  --faint: #9a9aa6;
  --accent: #fc4c02;
  --accent-2: #ff7a38;
  --accent-soft: rgba(252, 76, 2, .09);
  --good: #14a46a;
  --warn: #d98200;
  --bad: #e0344a;
  --shadow-1: 0 1px 2px rgba(23, 23, 28, .06), 0 6px 18px rgba(23, 23, 28, .05);
  --shadow-2: 0 2px 4px rgba(23, 23, 28, .08), 0 14px 34px rgba(23, 23, 28, .12);
  color-scheme: light;
}
/* Overlays und Spiele behalten das dunkle Farbschema (Kontrast für Animationen) */
.fx-overlay, .game-screen {
  --bg: #101014; --surface: #1a1a20; --surface-2: #23232b; --surface-3: #2d2d37; --line: #32323c;
  --text: #f4f4f7; --muted: #a8a8b4; --faint: #7f7f8c; --accent-soft: rgba(252, 76, 2, .16); color-scheme: dark;
  color: var(--text);
}

body { background: var(--bg); background-attachment: scroll; color: var(--text); }
.topbar { background: rgba(255, 255, 255, .86); border-bottom: 1px solid var(--line); }
.brand { font-weight: 900; letter-spacing: -.03em; }
.tabbar { background: rgba(255, 255, 255, .92); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(23, 23, 28, .05); }
.tab { color: var(--faint); }
.tab-plus { border-color: var(--bg); box-shadow: 0 8px 22px rgba(252, 76, 2, .35), 0 1px 0 rgba(255, 255, 255, .3) inset; }
.card, .stat, .list { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.hero-value { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--text); -webkit-text-fill-color: currentColor; }
.hero-label, .hero-sub { color: var(--muted); }
.btn { background: var(--surface-2); color: var(--text); border: 1px solid transparent; }
.btn.ghost { background: var(--surface); border-color: var(--line); }
.btn.primary { background: var(--accent); background-image: linear-gradient(180deg, #ff6a28, var(--accent)); color: #fff; box-shadow: 0 6px 16px rgba(252, 76, 2, .28); }
.btn.danger { background: var(--surface); }
.chip { background: var(--surface); }
.chip.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 600; }
.input, select.input { background: var(--surface); }
.seg { background: var(--surface-2); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.sheet { background: var(--surface); box-shadow: 0 -18px 50px rgba(23, 23, 28, .18); border-top-color: var(--line); }
.sheet.dialog { box-shadow: var(--shadow-2); }
.sheet-backdrop { background: rgba(23, 23, 28, .4); }
.sheet-grip { background: var(--surface-3); }
.icon-btn { background: var(--surface-2); }
.toast { background: #25252c; border-color: #25252c; color: #fff; }
.toast button { color: #ff9a66; }
.event-card { background: var(--surface); box-shadow: var(--shadow-1); }
.event-card.incoming { border-color: rgba(252, 76, 2, .45); box-shadow: 0 0 0 3px var(--accent-soft); }
.row:active { background: var(--surface-2); }
.row.me { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.banner { background: var(--accent-soft); border-color: rgba(252, 76, 2, .3); }
.choice { background: var(--surface); box-shadow: var(--shadow-1); }
.choice-icon { box-shadow: 0 8px 18px rgba(252, 76, 2, .3); }
.quick-drink { background: var(--surface); box-shadow: var(--shadow-1); }
.mood-chip { background: var(--surface); box-shadow: var(--shadow-1); }
.mood-dots i { background: rgba(23, 23, 28, .12); }
.mood-bar { background: rgba(23, 23, 28, .1); }
.mood-opt { background: var(--surface); }
.mood-slider input[type=range]::-webkit-slider-thumb { box-shadow: 0 3px 10px rgba(23, 23, 28, .35), 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.game-tile { box-shadow: 0 10px 22px rgba(23, 23, 28, .22), 0 1px 0 rgba(255, 255, 255, .3) inset; }
.setup-hero { box-shadow: 0 8px 20px rgba(23, 23, 28, .18); }
.streak { background: var(--accent-soft); }
.stat-btn:active { background: var(--surface-2); }
.photo-capture { background: var(--surface-2); }
.disclaimer { color: var(--faint); }
.banner a, a.btn { color: inherit; }
.target { background: var(--surface); }
.deck-tile { background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
.pcard-face.mini { background: var(--surface); }
.bell-badge { border-color: var(--surface); }
.version { color: var(--faint); }
.level-card, .badge { box-shadow: var(--shadow-1); }
/* Feinschliff nach Sichtprüfung */
.choice .choice-icon { color: #fff; }
.choice .choice-icon svg { stroke: #fff; }
.mood-scale b { color: var(--text); text-shadow: none; background: color-mix(in srgb, var(--c) 24%, transparent); padding: 3px 12px; border-radius: 999px; }
.game-tiles { scroll-padding: 0 16px; }
.mood-slider input[type=range]::-webkit-slider-thumb { border-color: var(--c); background: #fff; }
.curse-text { color: #6a3fd8; }

/* =====================================================================
   Reduktion: ruhiger, flacher, mehr Inhalt als Effekt (weniger Verläufe, Leuchten und Großbuchstaben)
   ===================================================================== */
:root { --radius: 14px; --radius-sm: 10px; --shadow-1: 0 1px 2px rgba(23, 23, 28, .05); --shadow-2: 0 8px 28px rgba(23, 23, 28, .14); }
h2 { text-transform: none; letter-spacing: -.01em; font-size: 17px; font-weight: 700; color: var(--text); margin: 26px 0 10px; }
h2::before { content: none; }
h2 .h-right { font-size: 13px; color: var(--muted); font-weight: 500; }
.card, .stat, .list, .event-card, .choice, .quick-drink, .mood-chip { box-shadow: none; border-radius: var(--radius); }
.hero { padding: 18px 18px 10px; }
.hero-value { font-weight: 800; letter-spacing: -.045em; }
.btn.primary { background: var(--accent); background-image: none; box-shadow: none; border-radius: 12px; font-weight: 700; }
.btn.primary:active { background: #e24300; }
.btn { border-radius: 12px; }
.tab-plus { background: var(--accent); box-shadow: 0 4px 12px rgba(252, 76, 2, .3); border-width: 3px; }
.tabbar { box-shadow: none; }
.tab.on::before { box-shadow: none; }
.topbar { backdrop-filter: saturate(1.4) blur(12px); }
.choice-icon { background: var(--accent-soft); color: var(--accent); box-shadow: none; border-radius: 18px; }
.choice .choice-icon, .choice .choice-icon svg { color: var(--accent); stroke: var(--accent); }
.choice .choice-icon svg { stroke: var(--accent); }
.choice:active { background: var(--surface-2); }
.sheet { box-shadow: 0 -8px 30px rgba(23, 23, 28, .12); }
.toast { box-shadow: 0 6px 20px rgba(23, 23, 28, .25); backdrop-filter: none; }
.game-tile { box-shadow: none; border-radius: 18px; background: var(--t1); }
.game-tile::before, .game-tile::after { content: none; }
.gt-ico { backdrop-filter: none; background: rgba(255, 255, 255, .2); }
.setup-hero { background: var(--t1); box-shadow: none; }
.view > * { animation-duration: .28s; }
.mood-slider input[type=range]::-webkit-slider-thumb { box-shadow: 0 2px 6px rgba(23, 23, 28, .3); }
.mood-scale b { background: transparent; padding: 0; border-bottom: 3px solid var(--c); border-radius: 0; }
.streak { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.streak svg { fill: var(--accent); }
.deck-tile { background: var(--surface); border-color: var(--line); }

/* ---------- Tempo-Feuer ---------- */
.fire { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.fire .flame { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--faint); }
.fire .flame svg { width: 20px; height: 20px; fill: currentColor; transform-origin: 50% 90%; }
.fire-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fire-main b { font-size: 15px; }
.fire-main small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.fire-bar { display: flex; gap: 3px; flex-shrink: 0; }
.fire-bar i { width: 7px; height: 22px; border-radius: 3px; background: var(--surface-3); transition: background .4s; }
.fire-bar i.on { background: var(--accent); }
.fire.alive .flame { color: var(--accent); background: var(--accent-soft); }
.fire.alive .flame svg { animation: flicker 1.1s ease-in-out infinite alternate; }
.fire.alive.l2 .flame svg, .fire.alive.l3 .flame svg { animation-duration: .8s; }
.fire.alive.l4 .flame { background: var(--accent); color: #fff; }
.fire.alive.l4 .flame svg { animation-duration: .55s; }
.fire.out { opacity: .75; }
@keyframes flicker { 0% { transform: scale(1, 1) rotate(-2deg); } 50% { transform: scale(1.06, 1.12) rotate(1.5deg); } 100% { transform: scale(.97, 1.04) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .fire.alive .flame svg { animation: none; } }

/* ---------- Eintragen: Anpassen, Uhrzeit, Suche ---------- */
.link-btn { background: none; border: 0; padding: 4px 0 0; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.confirm-item { flex-wrap: wrap; }
.confirm-item .adj { flex: 1 0 100%; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.adj-row { display: flex; align-items: center; gap: 10px; }
.adj-row > span:first-child { width: 86px; flex-shrink: 0; font-size: 13px; color: var(--muted); }
.adj-row .chips { flex-wrap: wrap; gap: 6px; }
.adj .chip { padding: 5px 10px; font-size: 13px; }
.adj .stepper { display: flex; align-items: center; gap: 10px; }
.adj .count { min-width: 64px; text-align: center; font-weight: 700; }
.time-chips { flex-wrap: wrap; }
.time-chips label.chip { position: relative; overflow: hidden; cursor: pointer; }
.time-chips input[type=time] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.drink-search { margin: 0 0 12px; }

/* ---------- Eintrags-Bestätigung ---------- */
.entry-pop { position: fixed; left: 50%; top: 38%; z-index: 90; transform: translate(-50%, 0); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; animation: entryPop 1.6s cubic-bezier(.2, .8, .3, 1) forwards; }
.entry-pop b { font-size: 44px; font-weight: 900; letter-spacing: -.03em; color: var(--accent); text-shadow: 0 2px 0 #fff; }
.entry-pop small { font-size: 14px; font-weight: 700; color: var(--text); background: #fff; padding: 3px 12px; border-radius: 999px; box-shadow: 0 2px 10px rgba(23, 23, 28, .15); }
.entry-pop .glass { width: 54px; height: 70px; border: 4px solid var(--accent); border-top-width: 4px; border-radius: 6px 6px 12px 12px; background: #fff; position: relative; overflow: hidden; transform: perspective(200px) rotateX(0); }
.entry-pop .glass i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--accent); animation: glassFill .7s .1s ease-out forwards; }
@keyframes entryPop { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1); } 75% { opacity: 1; transform: translate(-50%, -14px); } 100% { opacity: 0; transform: translate(-50%, -34px); } }
@keyframes glassFill { to { height: 78%; } }
@media (prefers-reduced-motion: reduce) { .entry-pop, .entry-pop .glass i { animation-duration: .01s; } }

/* Kurve zeichnet sich beim ersten Anzeigen */
.spark.draw-in .p-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sparkDraw 1.1s .15s ease-out forwards; }
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }

/* Zeilen */
.row { transition: background-color .15s; }
.bell-badge { animation: badgeIn .3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes badgeIn { from { transform: scale(0); } }