:root {
  --bg: #ffffff;
  --fg: #0b0d10;
  --muted: #5c616a;
  --faint: #9aa0a8;
  --line: #e7e9ec;
  --soft: #f4f5f7;
  --blue: #005ca9;
  --blue-ink: #ffffff;
  --blue-soft: #e8f0f8;
  --blue-text: #004b8a;
  --ok: #1d7a46;
  --warn: #9a6400;
  --bad: #b3261e;
  --radius: 14px;
  --page-g: #f1f2f4;
  --card: #ffffff;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10; --fg: #f2f4f7; --muted: #9aa0a8; --faint: #6b7079; --line: #22262c; --soft: #15181d;
    --page-g: #0b0d10; --card: #16191e;
    --blue: #1f6fc0; --blue-soft: #13253a; --blue-text: #8cbcf0; --ok: #5cc28a; --warn: #e0a83a; --bad: #f2756b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased;
  padding-top: var(--safe-t);
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }

#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); }
.page { padding: 0 20px; }
.top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.top .back { display: flex; align-items: center; gap: 4px; margin-left: -8px; padding: 8px; border: 0; background: none; color: var(--fg); font-size: 15px; }
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 8px; }
.wordmark i { width: 10px; height: 10px; background: var(--blue); display: inline-block; transform: skewX(-12deg); }
h1 { font-size: 32px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 700; margin: 8px 0 20px; }
h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg); margin: 32px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
h2 .act { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--blue-text); font-weight: 500; background: none; border: 0; padding: 0; }
.sub { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; color: var(--muted); }
.hr { height: 1px; background: var(--line); margin: 0; border: 0; }

/* Nächstes Spiel */
.hero { background: var(--blue); color: var(--blue-ink); border-radius: var(--radius); padding: 20px; margin-bottom: 8px; display: block; }
.hero .meta { font-size: 13px; opacity: .8; display: flex; justify-content: space-between; }
.hero .teams { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin: 14px 0 4px; }
.hero .teams span { opacity: .55; font-weight: 500; }
.hero .when { font-size: 15px; opacity: .9; }
.hero .row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 12px; }
.hero .seg { background: rgba(255,255,255,.14); }
.hero .seg button { color: #fff; }
.hero .seg button.on { background: #fff; color: var(--blue); }
.hero .stack .av { border-color: var(--blue); }

/* Chips */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 24px -20px 4px; padding: 0 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; }
.chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Spielliste */
.month { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 26px 0 4px; }
.mrow { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.date { text-align: center; line-height: 1.05; }
.date .wd { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.date .d { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.mrow .opp { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.mrow .info { font-size: 13px; color: var(--muted); margin-top: 1px; }
.mrow .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ha { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 5px; margin-right: 6px; vertical-align: 1px; }
.ha.h { background: var(--blue-soft); color: var(--blue-text); }
.ha.a { background: var(--soft); color: var(--muted); }
.ha.p { background: var(--fg); color: var(--bg); }
.mine { font-size: 12px; font-weight: 600; }
.mine.yes { color: var(--ok); }
.mine.maybe { color: var(--warn); }
.mine.no { color: var(--faint); }
.mine.open { color: var(--blue-text); }
.score { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.score.w { color: var(--ok); } .score.l { color: var(--bad); } .score.d { color: var(--muted); }

/* Avatare */
.av { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; flex: none; object-fit: cover; background: var(--soft); overflow: hidden; }
.av.lg { width: 44px; height: 44px; font-size: 15px; }
.av.xl { width: 104px; height: 104px; font-size: 34px; }
.stack { display: flex; }
.stack .av { border: 2px solid var(--bg); margin-left: -8px; width: 28px; height: 28px; }
.stack .av:first-child { margin-left: 0; }
.stack .more { background: var(--soft); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }

/* Segment-Schalter */
.seg { display: flex; background: var(--soft); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 10px 6px; font-size: 15px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--bg); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg.status button.on[data-v="yes"] { background: var(--blue); color: #fff; }
.hero .seg.status button.on[data-v="yes"] { background: #fff; color: var(--blue); }

/* Spiel-Detail */
.mhead { padding: 4px 0 8px; }
.mhead .comp { font-size: 13px; color: var(--muted); font-weight: 500; }
.mhead .vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 18px 0 14px; text-align: center; }
.mhead .code { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.mhead .code.scp { color: var(--blue-text); }
.mhead .full { font-size: 13px; color: var(--muted); margin-top: 4px; }
.mhead .mid { font-size: 15px; font-weight: 600; color: var(--muted); }
.mhead .mid.res { font-size: 34px; color: var(--fg); letter-spacing: -0.03em; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 6px 0 4px; }
.facts > div { background: var(--bg); padding: 12px 14px; }
.facts .k { font-size: 12px; color: var(--muted); }
.facts .v { font-weight: 600; font-size: 15px; margin-top: 1px; }
.facts .v a { color: var(--blue-text); }
.pill { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.pill.blue { background: var(--blue-soft); color: var(--blue-text); }
.pill.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }

.ticketbox { margin-top: 12px; display: grid; gap: 10px; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 14px; background: var(--soft); border-radius: 12px; }
.stepper .ctl { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--bg); font-size: 20px; font-weight: 500; }
.stepper .n { min-width: 28px; text-align: center; font-weight: 700; font-size: 17px; }

.tip { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--blue-soft); color: var(--blue-text); margin-bottom: 8px; }
.tip svg { flex: none; margin-top: 2px; }
.tip .t { font-size: 15px; line-height: 1.4; }
.tip .acts { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

.list .item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list .item:last-child { border-bottom: 0; }
.list .item .grow { flex: 1; min-width: 0; }
.list .item .name { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.list .item .meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .item .tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.empty { padding: 18px 0; color: var(--muted); font-size: 15px; }

.ride { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.ride .head { display: flex; align-items: center; gap: 12px; }
.ride .seats { display: flex; gap: 6px; margin: 12px 0 2px; align-items: center; }
.seat { width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed var(--line); }
.ride .note { font-size: 14px; color: var(--muted); margin-top: 8px; }
.ride .acts { margin-top: 12px; display: flex; gap: 8px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 12px; padding: 11px 16px; font-weight: 600; font-size: 15px; }
.btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn.ghost { border-color: transparent; background: var(--soft); }
.btn.sm { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; padding: 14px 16px; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; }
.tip .btn { background: var(--blue); color: #fff; border-color: var(--blue); }
.tip .btn.ghost { background: transparent; color: var(--blue-text); border-color: color-mix(in srgb, var(--blue-text) 35%, transparent); }

/* Formulare */
label.f { display: block; margin-bottom: 16px; }
label.f > span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=password], input[type=time], input[type=date], input[type=datetime-local], textarea, select {
  width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 16px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--fg); }
textarea { resize: none; min-height: 80px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.toggle .l { font-weight: 500; }
.toggle .l small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.sw { position: relative; width: 50px; height: 30px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .2s; }
.sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.sw input:checked + span { background: var(--blue); }
.sw input:checked + span::after { transform: translateX(20px); }
.err { color: var(--bad); font-size: 14px; margin: 8px 0; min-height: 1px; }

/* Profil */
.prof { text-align: center; padding: 8px 0 4px; }
.prof .name { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; margin-top: 14px; }
.prof .badges { display: flex; gap: 6px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.avgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.avgrid button { border: 2px solid transparent; border-radius: 50%; padding: 0; background: var(--soft); aspect-ratio: 1; overflow: hidden; }
.avgrid button.on { border-color: var(--blue); }
.avgrid img { width: 100%; height: 100%; display: block; }
.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.colors button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg); outline: 2px solid transparent; }
.colors button.on { outline-color: var(--fg); }

/* Chat */
.rooms .item { padding: 14px 0; }
.badge { min-width: 20px; height: 20px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.roomicon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; letter-spacing: -0.02em; flex: none; }
.roomicon.all { background: var(--blue); color: #fff; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--safe-t) - var(--top-gap, 0px)); }
.chat .top { padding: 0 20px; border-bottom: 1px solid var(--line); flex: none; }
.chat .top .title { font-weight: 600; font-size: 16px; text-align: center; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 2px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 84%; }
.msg .b { background: var(--soft); padding: 9px 13px; border-radius: 18px; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .b { background: var(--blue); color: #fff; }
.msg .who { font-size: 12px; color: var(--muted); margin: 10px 0 3px 42px; }
.msg .spacer { width: 28px; flex: none; }
.daysep { align-self: center; font-size: 12px; color: var(--muted); margin: 14px 0 6px; font-weight: 500; }
.composer { flex: none; display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg); }
.composer textarea { min-height: 44px; max-height: 120px; border-radius: 22px; padding: 11px 16px; }
.composer button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; flex: none; display: flex; align-items: center; justify-content: center; }

/* Navigation unten */
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); z-index: 20; }
nav.tabs .in { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--nav-h); }
nav.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--faint); position: relative; }
nav.tabs a.on { color: var(--fg); }
nav.tabs a .badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }

/* Blatt von unten */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--bg); width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; padding: 10px 20px calc(20px + var(--safe-b)); max-height: 90dvh; overflow-y: auto; animation: up .2s ease-out; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { font-size: 22px; letter-spacing: -0.03em; margin: 0 0 16px; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 50; animation: fade .15s; max-width: calc(100% - 40px); }

/* Anmeldung */
.auth { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 32px 24px; max-width: 420px; margin: 0 auto; }
.auth .wordmark { font-size: 28px; margin-bottom: 4px; }
.auth .claim { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 32px 0 10px; }
.auth .claim em { font-style: normal; color: var(--blue-text); }

.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.hidden { display: none !important; }

/* Schritte (Registrierung, Einstieg, Tour) */
.funnel { min-height: 100dvh; display: flex; flex-direction: column; padding: 0 24px calc(20px + var(--safe-b)); max-width: 480px; margin: 0 auto; }
.fhead { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.fhead .back { border: 0; background: none; padding: 8px; margin-left: -8px; color: var(--fg); display: flex; }
.prog { flex: 1; height: 4px; background: var(--soft); border-radius: 4px; overflow: hidden; max-width: 220px; }
.prog i { display: block; height: 100%; background: var(--blue); border-radius: 4px; transition: width .3s; }
.fbody { flex: 1; padding-top: 6vh; }
.q { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.fq { margin: 12px 0 24px; font-size: 16px; }
.fbody input[type=text], .fbody input[type=password] { font-size: 20px; padding: 16px; }
.codein { text-align: center; letter-spacing: .18em; font-weight: 700; font-size: 26px !important; text-transform: uppercase; }
.atin { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding-left: 16px; }
.atin:focus-within { border-color: var(--fg); }
.atin span { font-size: 20px; color: var(--muted); }
.atin input { border: 0 !important; padding-left: 4px !important; }
.ffoot { padding-top: 16px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; border: 1.5px solid var(--line); background: var(--bg); border-radius: 14px; padding: 16px 18px; display: block; width: 100%; }
.opt b { display: block; font-size: 17px; font-weight: 600; }
.opt span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.opt.on { border-color: var(--blue); background: var(--blue-soft); }
.opt.on b { color: var(--blue-text); }
.hello { display: grid; gap: 12px; font-weight: 500; }
.hello .tick { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-text); align-items: center; justify-content: center; font-size: 13px; margin-right: 10px; }
.or { display: flex; align-items: center; gap: 12px; margin: 26px 0 18px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bigcode { font-size: 34px; font-weight: 700; letter-spacing: .14em; text-align: center; padding: 22px 0; margin: 14px 0 16px; background: var(--soft); border-radius: var(--radius); }
.tour .demo { min-height: 120px; display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: 18px; padding: 24px 18px; margin-bottom: 28px; }
.tour .demo > * { width: 100%; }
.tour .demo .chips { justify-content: center; flex-wrap: wrap; overflow: visible; }
.dots { display: flex; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--line); transition: width .2s; }
.dots i.on { width: 20px; background: var(--blue); }

/* Spiel-Gruppe */
.grouplink { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.grouplink b { display: block; font-size: 15px; }
.grouplink span { display: block; font-size: 13px; color: var(--muted); }
.grouplink .grow { flex: 1; }
.chat .top .title { border: 0; background: none; display: flex; flex-direction: column; align-items: center; padding: 4px 0; min-width: 0; }
.chat .top .title span { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chat .top .title small { font-size: 12px; color: var(--muted); }
.mstrip { flex: none; display: flex; gap: 14px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.mstrip::-webkit-scrollbar { display: none; }
.mstrip button { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 48px; }
.mstrip .av { width: 38px; height: 38px; font-size: 13px; }
.mstrip span { font-size: 12px; font-weight: 500; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mstrip i { font-style: normal; font-size: 10px; color: var(--blue-text); font-weight: 600; min-height: 12px; }
.sysm { align-self: center; text-align: center; font-size: 12.5px; color: var(--muted); background: var(--soft); padding: 5px 12px; border-radius: 999px; margin: 8px 0; max-width: 90%; }
.who { font-size: 12px; color: var(--muted); margin: 10px 0 3px 42px; }
.mention { font-weight: 600; color: var(--blue-text); }
.msg.me .mention { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.mention.me { background: var(--blue-soft); border-radius: 4px; padding: 0 3px; }
.msg.hit .b { box-shadow: inset 3px 0 0 var(--blue); }
.mentions { flex: none; border-top: 1px solid var(--line); background: var(--bg); max-height: 240px; overflow-y: auto; }
.mentions button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 16px; border: 0; background: none; text-align: left; }
.mentions button:active { background: var(--soft); }

/* Ticketbörse */
.lcard { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.lcard.done { opacity: .6; }
.lcard .grow { flex: 1; min-width: 0; }
.lcard b { font-size: 16px; }
.lcard .lm { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.lcard .seller { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.lcard .seller .av { width: 22px; height: 22px; font-size: 9px; }
.lcard .lside { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.opts.multi .opt { position: relative; padding-right: 52px; }
.opts.multi .box { position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 7px; border: 1.5px solid var(--line); }
.opts.multi .opt.on .box { background: var(--blue); border-color: var(--blue); }
.opts.multi .opt.on .box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Namen und Gesichter */
.whoin { font-size: 13px; color: var(--ok); font-weight: 500; margin-top: 3px; line-height: 1.35; }
.whoin span { color: var(--warn); font-weight: 400; white-space: nowrap; }
.faces { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.faces > span { display: flex; align-items: center; gap: 6px; font-size: 13px; position: relative; }
.faces .av { width: 26px; height: 26px; border: 2px solid rgba(255,255,255,.85); }
.faces b { font-weight: 600; }
.faces i { font-style: normal; opacity: .75; margin-left: -3px; }

/* Live */
.hero.live { background: #0b0d10; }
@media (prefers-color-scheme: dark) { .hero.live { background: #15181d; border: 1px solid #22262c; } }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; margin-right: 6px; vertical-align: 1px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.scoreline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 16px 0 10px; }
.scoreline span { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; opacity: .9; }
.scoreline span:last-child { text-align: right; }
.scoreline b { font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.scoreline b i { font-style: normal; opacity: .4; margin: 0 6px; }
.lastev { font-size: 15px; background: rgba(255,255,255,.1); border-radius: 10px; padding: 10px 12px; }
.lastev span { font-weight: 700; margin-right: 8px; }
.tickerlink { font-size: 14px; font-weight: 600; white-space: nowrap; }
.nextline { font-size: 14px; color: var(--muted); margin: 10px 2px 0; }
.nextline a { color: var(--blue-text); font-weight: 600; }
.livetag { display: block; font-size: 13px; color: var(--bad); font-weight: 600; margin-top: 4px; letter-spacing: 0; }
.ticker { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tev { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.tev:last-child { border-bottom: 0; }
.tev.goal { background: var(--soft); font-weight: 600; }
.tev.goal.scp { background: var(--blue-soft); color: var(--blue-text); }
.tev.status { color: var(--muted); }
.tmin { width: 42px; flex: none; font-weight: 700; color: var(--muted); }
.tk { width: 14px; height: 14px; flex: none; margin-top: 3px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.tk.goal { border-radius: 50%; background: var(--fg); }
.tev.scp .tk.goal { background: var(--blue); }
.tk.yellow { background: #f2c200; width: 11px; }
.tk.red { background: #d92d20; width: 11px; }
.tk.sub { color: var(--muted); }
.tk.status { background: var(--line); border-radius: 50%; width: 8px; height: 8px; margin: 6px 3px 0; }
.ttext { flex: 1; }

/* Spielseite: Kopfleiste */
.sticky { position: sticky; top: var(--safe-t); z-index: 10; display: flex; align-items: center; gap: 8px; height: 56px; margin: 0 -20px; padding: 0 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.sticky .back { border: 0; background: none; padding: 8px; margin-left: -6px; color: var(--fg); display: flex; }
.stitle { flex: 1; min-width: 0; text-align: center; line-height: 1.2; }
.stitle b { display: block; font-size: 16px; }
.stitle span { font-size: 12px; color: var(--muted); }
.mhead { padding: 12px 0 8px; }
.facts > div { background: var(--soft); }
.facts { background: var(--line); }

/* Spielseite: Abschnitte als Karten auf grauem Grund */
body.grouped { background: var(--page-g); }
body.grouped .sticky { background: color-mix(in srgb, var(--page-g) 88%, transparent); }
body.grouped nav.tabs { background: color-mix(in srgb, var(--card) 92%, transparent); }
body.grouped .facts > div { background: var(--card); }
body.grouped .card { background: var(--card); border-radius: 18px; padding: 2px 16px 16px; margin-top: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .04); }
@media (prefers-color-scheme: dark) { body.grouped .card { box-shadow: none; border: 1px solid #22262c; } }
body.grouped .card > h2 { margin: 16px 0 12px; }
body.grouped .card .empty { padding: 4px 0 2px; font-size: 15px; }
body.grouped .card .seg { background: var(--page-g); }
body.grouped .card .seg button.on { background: var(--card); }
body.grouped .card .seg.status button.on[data-v="yes"] { background: var(--blue); }
body.grouped .card .stepper { background: var(--page-g); }
body.grouped .card .stepper button { background: var(--card); }
body.grouped .card .ride, body.grouped .card .lcard, body.grouped .card .ticker, body.grouped .card .grouplink { border-color: var(--line); }
body.grouped .card .tip:last-child, body.grouped .card .lcard:last-child, body.grouped .card .ride:last-child { margin-bottom: 0; }
body.grouped .card .list .item:last-child { padding-bottom: 2px; }
body.grouped .mhead .code:not(.scp) { color: var(--fg); }

details.more { margin-top: 24px; border-top: 1px solid var(--line); }
details.more summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0 6px; font-weight: 600; cursor: pointer; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "›"; transform: rotate(90deg); color: var(--muted); font-size: 20px; margin-left: 8px; }
details.more[open] summary::after { transform: rotate(-90deg); }
details.more summary span:first-child { flex: 1; }
details.more .av { width: 32px; height: 32px; }

.invprev { white-space: pre-wrap; font-size: 14px; line-height: 1.45; background: var(--soft); border-radius: 12px; padding: 12px 14px; max-height: 260px; overflow-y: auto; }

.callink { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; border: 0; background: none; padding: 0; color: var(--blue-text); font-weight: 600; font-size: 13px; }
a.opt { color: inherit; }

ol.steps { margin: 4px 0 16px; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
ol.steps li { counter-increment: st; position: relative; padding: 2px 0 0 38px; font-size: 16px; line-height: 1.45; min-height: 26px; }
ol.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-text); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.userbox { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--soft); border-radius: 14px; padding: 14px; margin: 6px 0 12px; text-align: center; }
.userbox b { font-size: 22px; letter-spacing: -0.02em; }
.nudge { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 14px; padding: 12px 8px 12px 14px; margin-bottom: 12px; }
.nudge .grow { flex: 1; min-width: 0; }
.nudge b { display: block; font-size: 15px; }
.nudge span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.nudge .nx { border: 0; background: none; font-size: 22px; color: var(--muted); padding: 0 6px; line-height: 1; }

.feat { background: var(--soft); border-radius: 18px; padding: 16px; }
.feat-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.feat-g { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.feat-g > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feat-g .fi { width: 34px; height: 34px; border-radius: 10px; background: var(--bg); color: var(--blue-text); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.feat-g b { font-size: 14px; line-height: 1.25; }
.feat-g > div > span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.auth { justify-content: flex-start; padding-top: max(32px, 6vh); }

.feat-f { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.feat-f .fi { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.feat-f b { display: block; font-size: 14px; }
.feat-f span:not(.fi) { font-size: 12.5px; color: var(--muted); }
.invitecta { margin-top: 28px; background: var(--blue-soft); border-radius: 18px; padding: 16px; }
.invitecta b { display: block; font-size: 16px; color: var(--blue-text); }
.invitecta span { display: block; font-size: 14px; color: var(--blue-text); opacity: .85; margin: 4px 0 12px; }

/* Startseite: oben Anmelden, unten blauer Bereich mit den Vorteilen bis zum Rand */
.landing { min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.lhead { padding: max(28px, 4vh) 24px 28px; }
.lhead .wordmark { font-size: 24px; }
.lhead .claim { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin: 22px 0 20px; }
.lhead .claim em { font-style: normal; color: var(--blue-text); }
.logincard label.f { margin-bottom: 12px; }
.newbtn { margin-top: 10px; color: var(--blue-text); border-color: var(--blue); border-width: 1.5px; }
.forgot { margin: 14px 2px 0; }
.why { flex: 1; background: var(--blue); color: #fff; padding: 28px 24px calc(32px + var(--safe-b)); border-radius: 28px 28px 0 0; }
.why h2 { color: #fff; font-size: 22px; letter-spacing: -0.02em; text-transform: none; margin: 0 0 18px; }
.wrow { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); }
.wrow:first-of-type { border-top: 0; }
.wi { flex: none; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; }
.wrow b { display: block; font-size: 16px; }
.wrow span:not(.wi) { display: block; font-size: 14px; opacity: .82; line-height: 1.4; margin-top: 2px; }
.wfoot { font-size: 13px; opacity: .75; margin: 18px 0 0; }
@media (min-width: 561px) { .why { border-radius: 28px; margin-bottom: 24px; } }

body.nonav #app { padding-bottom: 0; }

.linkbtn { border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 13px; padding: 4px; }

.roomicon.two { flex-direction: column; gap: 1px; font-size: 11px; line-height: 1.1; letter-spacing: 0; }
.roomicon.two span { display: block; text-align: center; }
.archnote { flex: none; padding: 14px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); background: var(--soft); }
.msg.del .b { font-style: italic; opacity: .6; }
.msg.me:not(.del) .b { cursor: pointer; }
.cele { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; pointer-events: auto; transition: opacity .5s; }
.cele.out { opacity: 0; }
.cele-c { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cele-msg { position: relative; background: var(--blue); color: #fff; border-radius: 22px; padding: 18px 26px; text-align: center; box-shadow: 0 12px 40px rgba(0,40,80,.35); animation: pop .45s cubic-bezier(.2,1.6,.4,1); max-width: 80%; }
.cele-msg b { display: block; font-size: 40px; letter-spacing: -0.03em; line-height: 1; }
.cele-msg span { display: block; font-size: 15px; margin-top: 8px; opacity: .92; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.chat .top .title.tappable small { display: flex; align-items: center; gap: 6px; color: var(--blue-text); font-weight: 600; margin-top: 2px; }
.chat .top .title.tappable small .stack .av { width: 18px; height: 18px; font-size: 8px; margin-left: -5px; border-width: 1.5px; }
.chat .top .title.tappable small .stack .av:first-child { margin-left: 0; }
.chat .top .title.tappable:active { opacity: .6; }
.mlink { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; }
.dmbtn { flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; color: var(--blue-text); }

/* Profil als Übersicht mit Unterseiten */
.pcard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--soft); margin-bottom: 18px; color: var(--fg); }
.pcard .av.lg { width: 58px; height: 58px; font-size: 20px; }
.pcard .grow { flex: 1; min-width: 0; }
.pcard b { display: block; font-size: 19px; letter-spacing: -0.02em; }
.pcard .grow > span { display: block; font-size: 14px; color: var(--muted); }
.pcard > svg, .srow > svg { color: var(--faint); flex: none; }
.sgroup { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 14px; }
.srow { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--line); color: var(--fg); cursor: pointer; }
.srow:first-child { border-top: 0; }
.srow:active { background: var(--soft); }
.si { flex: none; width: 30px; height: 30px; border-radius: 8px; color: #fff; display: flex; align-items: center; justify-content: center; }
.si svg { width: 17px; height: 17px; }
.st { flex: 1; font-weight: 500; font-size: 16px; }
.sv { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
h1.subh { font-size: 28px; margin: 4px 0 18px; }
.sgh { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 2px; }

.scard { border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; background: var(--bg); }
.scard .toggle:last-child { border-bottom: 0; }
.scard .toggle { padding: 15px 0; min-height: 56px; }
.scard label.f:last-of-type { margin-bottom: 12px; }
.sgh { margin: 22px 2px 8px; color: var(--muted); font-size: 12.5px; }
.sw { width: 52px; height: 32px; }
.sw span::after { width: 26px; height: 26px; }

.pline { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 2px 0; text-align: left; color: inherit; }
.pline .small { flex: 1; min-width: 0; }
.pmore { font-size: 13px; font-weight: 600; color: var(--blue-text); flex: none; }

.stack .av.maybe { opacity: .55; outline: 1.5px dashed var(--warn); outline-offset: -1px; }

/* Nach unten ziehen zum Aktualisieren */
.ptr { position: fixed; top: -44px; left: 50%; transform: translate(-50%, 0); width: 38px; height: 38px; border-radius: 50%; background: var(--bg); box-shadow: 0 2px 10px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; z-index: 30; opacity: 0; transition: opacity .15s; color: var(--muted); font-weight: 700; }
.ptr.on { opacity: 1; }
.ptr.go { color: var(--blue); }
.ptr.go span { transform: rotate(180deg); }
.ptr span { display: inline-block; transition: transform .2s; }
.ptr.spin span { animation: spin .8s linear infinite; }
.ptr.spin span::before { content: ""; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Home-Bildschirm-App (iPhone/Android): feste Fläche hinter der Statusleiste und etwas Abstand,
   damit die Überschrift nicht in der Unschärfe hinter der Uhrzeit liegt */
@media (display-mode: standalone) {
  :root { --top-gap: 14px; }
  body { padding-top: calc(var(--safe-t) + var(--top-gap)); }
  body::before { content: ""; position: fixed; left: 0; right: 0; top: 0; height: var(--safe-t); background: var(--bg); z-index: 35; }
  body.grouped::before { background: var(--page-g); }
}
