/* Online V1 · Panel „Online“ (Besitzer: CLIENT-ONLINE, Vertrag Doku/ONLINE_ARCHITEKTUR.md §5). Präfix .sbo-, unabhängig von #ui (Panel hängt an document.body).
   Look wie die Vollbild-Panels des Spiels (css/ui.css: Fläche --card #F7F2EA, Akzent --primary #524FFE, Radius 18/12 px, system-ui), Daumen-Ziele ≥ 48 px, Eingaben 16 px (kein iOS-Zoom),
   Safe-Area über env(); Hochformat-first: Fold 6 zu (≈ 344 px), iPhone (390 px), Fold 6 offen/Tablet (≥ 700 px: mittiges Blatt 600 px). */
.sbo-panel {
  --sbo-card: var(--card, #F7F2EA); --sbo-card2: var(--card2, #F0ECEB); --sbo-card3: var(--card3, #E8E2D8); --sbo-ink: var(--ink, #2B2A33); --sbo-ink2: var(--ink2, #6B6878); --sbo-ink3: var(--ink3, #9A97A6);
  --sbo-primary: var(--primary, #524FFE); --sbo-primary2: var(--primary2, #3F3CD6); --sbo-danger: var(--danger, #E5484D); --sbo-success: var(--success, #3FAE5A); --sbo-gold: var(--gold, #F2B134); --sbo-warn: var(--warn, #E8862E);
  --sbo-shadow: var(--shadow, 0 6px 18px rgba(30, 20, 60, .18), 0 1px 2px rgba(30, 20, 60, .12)); --sbo-shadow-soft: var(--shadow-soft, 0 2px 8px rgba(30, 20, 60, .12)); --sbo-r: 18px; --sbo-r-s: 12px;
  --sbo-sat: env(safe-area-inset-top, 0px); --sbo-sab: env(safe-area-inset-bottom, 0px); --sbo-sal: env(safe-area-inset-left, 0px); --sbo-sar: env(safe-area-inset-right, 0px);
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: stretch; justify-content: center; background: rgba(20, 18, 40, .38);
  font: 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--sbo-ink); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s linear .26s;
}
.sbo-panel *, .sbo-panel *::before, .sbo-panel *::after { box-sizing: border-box; }
.sbo-panel.sbo-offen { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.sbo-panel :where(button, input, textarea) { font: inherit; color: inherit; }   /* :where → Klassenregeln unten gewinnen (Eingaben 16 px) */
html.sbo-gesperrt, html.sbo-gesperrt body { overscroll-behavior: none; }

.sbo-sheet { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--sbo-card); overflow: hidden;
  padding: calc(var(--sbo-sat) + 10px) calc(var(--sbo-sar) + 12px) 0 calc(var(--sbo-sal) + 12px); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
.sbo-offen .sbo-sheet { transform: none; }
@media (prefers-reduced-motion: reduce) { .sbo-sheet, .sbo-panel { transition: none; } }

/* Kopf */
.sbo-kopf { display: flex; align-items: center; gap: 10px; padding: 2px 0 8px; flex: none; }
.sbo-kopf-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--sbo-card2); color: var(--sbo-primary); display: flex; align-items: center; justify-content: center; flex: none; }
.sbo-kopf-titel { flex: 1 1 auto; min-width: 0; }
.sbo-kicker { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sbo-ink3); }
.sbo-titel { font-size: 22px; font-weight: 800; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbo-pill { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sbo-card3); color: var(--sbo-ink2); white-space: nowrap; }
.sbo-pill-verbunden { background: #DDF3E2; color: #1F7A37; }
.sbo-pill-offline { background: #FBE7CF; color: #9A5212; }
.sbo-pill-inaktiv, .sbo-pill-abgelaufen { background: #FADADB; color: #A5262B; }
.sbo-zu { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--sbo-card3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08); }
.sbo-zu:active { transform: scale(.94); }
.sbo-ic { display: inline-block; vertical-align: middle; flex: none; }

/* Reiter */
.sbo-reiter { display: flex; gap: 4px; padding: 4px; background: var(--sbo-card3); border-radius: 14px; flex: none; overflow-x: auto; scrollbar-width: none; }
.sbo-reiter::-webkit-scrollbar { display: none; }
.sbo-reiter-knopf { position: relative; flex: 1 1 0; min-width: 58px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 4px; border: 0; border-radius: 11px;
  background: transparent; color: var(--sbo-ink2); font-weight: 700; font-size: 12px; cursor: pointer; }
.sbo-reiter-knopf.sbo-aktiv { background: var(--sbo-card); color: var(--sbo-ink); box-shadow: var(--sbo-shadow-soft); }
.sbo-reiter-knopf.sbo-aktiv .sbo-ic { color: var(--sbo-primary); }
.sbo-reiter-text { white-space: nowrap; }

/* Banner, Inhalt */
.sbo-banner { flex: none; }
.sbo-banner-an { padding-top: 8px; }
.sbo-inhalt { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 10px 0 calc(var(--sbo-sab) + 24px); }
.sbo-abschnitt { margin: 4px 0 16px; }
.sbo-ueber { font-size: 13px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--sbo-ink3); margin: 14px 2px 8px; }
.sbo-karte { background: #fff; border-radius: var(--sbo-r); padding: 14px; box-shadow: var(--sbo-shadow-soft); margin: 0 0 12px; }
.sbo-karte h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.sbo-karte p { margin: 6px 0 10px; }
.sbo-klein { font-size: 13px; color: var(--sbo-ink2); }
.sbo-info { margin: 0 2px 6px; }
.sbo-leer { text-align: center; color: var(--sbo-ink2); padding: 22px 12px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sbo-lade { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--sbo-ink2); padding: 22px 0; }
.sbo-kreisel { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--sbo-card3); border-top-color: var(--sbo-primary); animation: sbo-dreh .8s linear infinite; }
@keyframes sbo-dreh { to { transform: rotate(360deg); } }
.sbo-fuss { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; color: var(--sbo-ink3); font-size: 13px; padding: 12px 0 0; }
.sbo-versteckt { display: none !important; }

/* Knöpfe */
.sbo-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--sbo-card3); color: var(--sbo-ink);
  font-weight: 700; font-size: 15px; cursor: pointer; user-select: none; -webkit-user-select: none; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08); transition: transform .08s, filter .12s; text-align: center; line-height: 1.15; }
.sbo-knopf:active { transform: scale(.96); filter: brightness(.95); }
.sbo-knopf:disabled { opacity: .5; cursor: default; filter: grayscale(.4); transform: none; }
.sbo-knopf-ic { display: inline-flex; line-height: 0; }
.sbo-primaer { background: var(--sbo-primary); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18), 0 2px 6px rgba(82, 79, 254, .35); }
.sbo-gefahr { background: var(--sbo-danger); color: #fff; }
.sbo-warn { background: var(--sbo-gold); color: #3A2A00; }
.sbo-geist { background: transparent; box-shadow: none; color: var(--sbo-ink2); }
.sbo-gefahr-geist { background: transparent; box-shadow: none; color: var(--sbo-danger); width: 100%; margin-top: 8px; }
.sbo-link { background: transparent; box-shadow: none; color: var(--sbo-primary); min-height: 44px; padding: 0 6px; }
.sbo-klein.sbo-knopf, .sbo-knopf.sbo-klein { min-height: 44px; padding: 0 12px; font-size: 14px; }
.sbo-gross { width: 100%; min-height: 54px; font-size: 17px; border-radius: 16px; }
.sbo-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sbo-aktionen > .sbo-knopf { flex: 1 1 140px; }
.sbo-aktionen-stapel { flex-direction: column; }
.sbo-aktionen-stapel > .sbo-knopf { flex: none; width: 100%; }
.sbo-reihe { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.sbo-reihe > .sbo-eingabe { flex: 1 1 140px; min-width: 0; }
.sbo-angreifen { min-height: 44px; padding: 0 12px; font-size: 14px; flex: none; }

/* Chips (Bestenliste, NPC-Schalter) */
.sbo-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; margin: 0; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.sbo-chips::-webkit-scrollbar { display: none; }
.sbo-chip { flex: none; min-height: 44px; padding: 0 14px; border: 2px solid transparent; border-radius: 999px; background: #fff; color: var(--sbo-ink2); font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: var(--sbo-shadow-soft); scroll-snap-align: start; white-space: nowrap; }
.sbo-chip[aria-pressed="true"] { background: var(--sbo-primary); color: #fff; }
.sbo-schalter { display: flex; flex-wrap: wrap; gap: 6px; }
.sbo-segment { display: flex; gap: 4px; padding: 3px; background: var(--sbo-card3); border-radius: 14px; }
.sbo-segment .sbo-chip { flex: 1 1 0; min-width: 0; padding: 0 6px; box-shadow: none; background: transparent; overflow: hidden; text-overflow: ellipsis; }
.sbo-segment .sbo-chip[aria-pressed="true"] { background: #fff; color: var(--sbo-ink); box-shadow: var(--sbo-shadow-soft); }
.sbo-schalter .sbo-chip { flex: 1 1 90px; padding: 0 8px; box-shadow: none; border-color: var(--sbo-card3); }
.sbo-schalter .sbo-chip[aria-pressed="true"] { border-color: var(--sbo-primary); background: #ECEBFF; color: var(--sbo-primary2); }
.sbo-schalter .sbo-chip[aria-pressed="true"]::before { content: "✓ "; }

/* Listen */
.sbo-liste { display: flex; flex-direction: column; gap: 6px; }
.sbo-liste-kopf { display: flex; justify-content: space-between; color: var(--sbo-ink3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 0 4px; }
.sbo-zeile { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; background: #fff; border-radius: var(--sbo-r-s); box-shadow: var(--sbo-shadow-soft); }
.sbo-zeile-flach { min-height: 48px; }
.sbo-eigen { background: #ECEBFF; box-shadow: 0 0 0 2px var(--sbo-primary) inset; }
.sbo-rang { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sbo-card2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.sbo-rang-1 { background: #FFE39A; color: #6B4A00; } .sbo-rang-2 { background: #E3E4EA; color: #44464F; } .sbo-rang-3 { background: #F2CFAE; color: #6E3E14; }
.sbo-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.sbo-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbo-name small { color: var(--sbo-ink2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbo-du { align-self: flex-start; font-size: 11px; font-weight: 800; color: #fff; background: var(--sbo-primary); border-radius: 999px; padding: 0 7px; margin: 1px 0; }
.sbo-wert { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbo-trenner { text-align: center; color: var(--sbo-ink3); line-height: 1; }
.sbo-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.sbo-kachel { background: #fff; border-radius: var(--sbo-r-s); padding: 12px; box-shadow: var(--sbo-shadow-soft); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sbo-kachel b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbo-kachel span { font-size: 12px; color: var(--sbo-ink2); }

/* Hinweise */
.sbo-hinweis { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--sbo-r-s); background: var(--sbo-card2); font-size: 14px; flex-wrap: wrap; }
.sbo-hinweis > div { flex: 1 1 180px; min-width: 0; }
.sbo-hinweis > span { line-height: 0; flex: none; }
.sbo-hinweis-warn { background: #FFF1DD; color: #6E3A06; }
.sbo-hinweis-gut { background: #DDF3E2; color: #1B5E2E; margin-bottom: 10px; }
.sbo-datenschutz { font-size: 13px; color: var(--sbo-ink); background: var(--sbo-card2); border-radius: var(--sbo-r-s); padding: 10px 12px; border-left: 4px solid var(--sbo-primary); }

/* Formular */
.sbo-feld { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
.sbo-feld > span { font-weight: 700; font-size: 14px; }
.sbo-hilfe { color: var(--sbo-ink3); font-size: 12px; }
.sbo-eingabe { width: 100%; min-height: 50px; padding: 0 14px; border: 2px solid var(--sbo-card3); border-radius: 14px; background: #fff; font-size: 16px; font-weight: 600; color: var(--sbo-ink); -webkit-appearance: none; appearance: none; }
.sbo-eingabe:focus { outline: none; border-color: var(--sbo-primary); box-shadow: 0 0 0 3px rgba(82, 79, 254, .18); }
.sbo-pin { letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.sbo-code { text-transform: uppercase; letter-spacing: .2em; font-weight: 800; }
.sbo-text { min-height: 96px; padding: 10px 12px; font: 13px/1.35 ui-monospace, Menlo, Consolas, monospace; resize: vertical; margin: 8px 0; }
.sbo-feld-meldung { min-height: 0; font-size: 13px; color: var(--sbo-ink2); margin-top: 4px; overflow-wrap: anywhere; }
.sbo-feld-meldung:empty { display: none; }
.sbo-gut { color: #1F7A37; } .sbo-schlecht { color: #B42328; } .sbo-feld-meldung.sbo-warn { color: #9A5212; background: none; }
.sbo-warnsatz { color: #8A3B0A; font-weight: 700; }
.sbo-pin-doppelt { margin-top: 8px; }
.sbo-pill-gesperrt { background: #FADADB; color: #A5262B; }
.sbo-haken { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 8px 0; font-weight: 700; cursor: pointer; }
.sbo-haken input { width: 26px; height: 26px; flex: none; accent-color: var(--sbo-primary); }
.sbo-schritt { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--sbo-primary); background: #ECEBFF; border-radius: 999px; padding: 3px 10px; margin-bottom: 6px; }

/* Konto */
.sbo-konto-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sbo-avatar { width: 56px; height: 56px; border-radius: 18px; background: var(--sbo-primary); color: #fff; font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.sbo-konto-name { font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }
.sbo-konto-kopf small { color: var(--sbo-ink2); }
.sbo-info-zeile { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--sbo-card2); font-size: 14px; }
.sbo-info-zeile span { color: var(--sbo-ink2); }
.sbo-info-zeile b { text-align: right; overflow-wrap: anywhere; }

/* Geteilte Welten */
.sbo-welt-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sbo-welt-kopf > div { min-width: 0; display: flex; flex-direction: column; }
.sbo-welt-name { font-size: 18px; font-weight: 800; overflow-wrap: anywhere; }
.sbo-welt-kopf small { color: var(--sbo-ink2); font-size: 12px; }
.sbo-marke { flex: none; font-size: 11px; font-weight: 800; color: #1F7A37; background: #DDF3E2; border-radius: 999px; padding: 3px 9px; }
.sbo-plaetze { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sbo-platz { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px; border-radius: var(--sbo-r-s); background: var(--sbo-card2); min-width: 0; }
.sbo-platz-ich { background: #ECEBFF; box-shadow: 0 0 0 2px var(--sbo-primary) inset; }
.sbo-platz-frei { border: 2px dashed var(--sbo-card3); background: transparent; color: var(--sbo-ink3); }
.sbo-platz-nr { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.sbo-platz:nth-child(1) .sbo-platz-nr { color: #3B7DD8; } .sbo-platz:nth-child(2) .sbo-platz-nr { color: #D8573B; } .sbo-platz:nth-child(3) .sbo-platz-nr { color: #3FAE5A; } .sbo-platz:nth-child(4) .sbo-platz-nr { color: #B5891A; }
.sbo-platz-name { min-width: 0; display: flex; flex-direction: column; }
.sbo-platz-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbo-platz-name small { font-size: 11px; color: var(--sbo-ink2); }
.sbo-krone { color: var(--sbo-gold); line-height: 0; }
.sbo-anfuehrer { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--sbo-ink2); }
.sbo-anfuehrer > span:first-child { color: var(--sbo-gold); line-height: 0; }
.sbo-npcs { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
/* §15 Farben je Platz und Startvolk */
.sbo-platz-gefaerbt .sbo-platz-nr { background: var(--sbo-platz-farbe) !important; color: #fff !important; text-shadow: 0 1px 1px rgba(0, 0, 0, .45); }
.sbo-farben { display: flex; flex-direction: column; gap: 6px; }
.sbo-farbe-zeile { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border: 2px solid var(--sbo-card3); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 700; text-align: left; }
.sbo-farbe-zeile[aria-expanded="true"] { border-color: var(--sbo-primary); }
.sbo-farbe-titel { flex: 1 1 auto; min-width: 0; }
.sbo-farbe-name { flex: none; color: var(--sbo-ink2); font-weight: 600; font-size: 14px; }
.sbo-farbe-punkt { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.sbo-farbe-raster { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 2px 0 6px; }
.sbo-farbe-wahl { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; min-width: 0; padding: 4px 1px; border: 2px solid var(--sbo-card3); border-radius: 12px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; overflow: hidden; }
.sbo-farbe-wahl.sbo-gewaehlt { border-color: var(--sbo-primary); background: #ECEBFF; }
.sbo-farbe-wahl:disabled { opacity: .35; cursor: default; }
.sbo-code-block { background: #ECEBFF; border-radius: var(--sbo-r-s); padding: 10px 12px; margin: 0 0 10px; }
.sbo-code-titel { font-size: 13px; color: var(--sbo-primary2); font-weight: 700; }
.sbo-code-wert { font-size: 26px; font-weight: 900; letter-spacing: .12em; color: var(--sbo-ink); font-variant-numeric: tabular-nums; user-select: all; -webkit-user-select: all; padding: 0 2px; }
.sbo-code-knoepfe { margin-top: 8px; }
.sbo-code-knoepfe > .sbo-knopf { min-height: 44px; flex: 1 1 110px; }
.sbo-welt-ids { color: var(--sbo-ink3); font-size: 12px; }
.sbo-weltliste .sbo-aktionen { margin-top: 8px; }
.sbo-weltliste.sbo-meine { box-shadow: 0 0 0 2px var(--sbo-primary) inset, var(--sbo-shadow-soft); }
.sbo-marke-voll { color: #9A5212; background: #FBE7CF; }
.sbo-aktualisieren { flex: none; width: 50px; padding: 0; }
.sbo-mehr { margin-top: 8px; }
.sbo-abschnitt > .sbo-segment { margin: 8px 0; }
.sbo-npc { display: flex; gap: 10px; align-items: flex-start; }
.sbo-npc-nr { flex: none; width: 30px; height: 30px; margin-top: 10px; border-radius: 50%; background: var(--sbo-card2); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.sbo-npc-felder { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

/* Kampf */
.sbo-gegner .sbo-zeile { box-shadow: none; background: var(--sbo-card2); }
.sbo-gegner.sbo-vorgewaehlt { box-shadow: 0 0 0 3px var(--sbo-primary), var(--sbo-shadow-soft); }
.sbo-gegner .sbo-zeile.sbo-vorgewaehlt { background: #ECEBFF; box-shadow: 0 0 0 2px var(--sbo-primary) inset; }
.sbo-geschuetzt { display: inline-flex; align-items: center; gap: 4px; color: #1F7A37 !important; }
.sbo-stufe { flex: none; display: inline-flex; gap: 3px; }
.sbo-stufe i { width: 8px; height: 14px; border-radius: 3px; background: var(--sbo-card3); }
.sbo-stufe i.sbo-an { background: var(--sbo-primary); }
.sbo-platzhalter { flex: none; width: 4px; }
.sbo-bericht-ic { flex: none; line-height: 0; }
.sbo-sieg .sbo-bericht-ic { color: #1F7A37; } .sbo-niederlage .sbo-bericht-ic { color: #B42328; }
.sbo-neu { flex: none; font-size: 11px; font-weight: 800; color: #fff; background: var(--sbo-danger); border-radius: 999px; padding: 2px 8px; }

/* Dialog im Panel */
.sbo-dialog-ebene { position: absolute; inset: 0; display: none; z-index: 2; }
.sbo-dialog-ebene.sbo-an { display: block; }
.sbo-dialog-hg { position: absolute; inset: 0; background: rgba(20, 18, 40, .45); display: flex; align-items: flex-end; justify-content: center; padding: 12px calc(var(--sbo-sar) + 12px) calc(var(--sbo-sab) + 12px) calc(var(--sbo-sal) + 12px); }
.sbo-dialog { width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto; background: var(--sbo-card); border-radius: var(--sbo-r); padding: 16px; box-shadow: var(--sbo-shadow); }
.sbo-dialog h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.sbo-dialog p { margin: 6px 0 8px; }

/* Schmal (Fold 6 zugeklappt ≈ 344 px) */
@media (max-width: 370px) {
  .sbo-sheet { padding-left: calc(var(--sbo-sal) + 8px); padding-right: calc(var(--sbo-sar) + 8px); }
  .sbo-titel { font-size: 19px; }
  .sbo-kopf-ic { width: 40px; height: 40px; }
  .sbo-reiter-knopf { min-width: 52px; font-size: 11px; padding: 4px 2px; }
  .sbo-pill { display: none; }
  .sbo-zeile { gap: 8px; padding: 8px 10px; }
  .sbo-plaetze { grid-template-columns: minmax(0, 1fr); }
}
/* Breit (Fold 6 aufgeklappt, Tablet, Mac): mittiges Blatt */
@media (min-width: 700px) {
  .sbo-panel { align-items: center; padding: calc(var(--sbo-sat) + 20px) 20px calc(var(--sbo-sab) + 20px); }
  .sbo-sheet { width: 600px; max-width: 100%; height: min(100%, 980px); border-radius: 24px; padding: 14px 16px 0; box-shadow: var(--sbo-shadow); transform: translateY(24px) scale(.98); }
  .sbo-offen .sbo-sheet { transform: none; }
  .sbo-inhalt { padding-bottom: 24px; }
  .sbo-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sbo-plaetze { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sbo-dialog-hg { align-items: center; }
}
@media (min-width: 700px) and (max-height: 560px) { .sbo-sheet { height: 100%; } }
