/* GymLog – dunkles, modernes Design für iPhone */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #232322;
  --surface-3: #2c2c2a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f0efec;
  --text-2: #c3c2b7;
  --muted: #898781;
  --placeholder: #5d5c58;
  --accent: #3987e5;
  --accent-press: #2a78d6;
  --accent-soft: rgba(57, 135, 229, 0.16);
  --good: #0ca30c;
  --good-text: #0ca30c;
  --good-soft: rgba(12, 163, 12, 0.18);
  --danger: #e66767;
  --gold: #fab219;
  --gold-soft: rgba(250, 178, 25, 0.14);
  --warn: #fab219;
  --warm: #c98500;
  --drop: #9085e9;
  --fail: #e66767;
  --chip-on-bg: #f0efec;
  --chip-on-text: #111;
  --tabbar-bg: rgba(18, 18, 17, 0.86);
  --tip-bg: #2c2c2a;
  --week-grad: #1f2a3a;
  --shadow: 0 8px 30px rgba(0, 0, 0, .5);
  /* Charts */
  --grid: #2c2c2a;
  --axis: #383835;
  --ref: #c3c2b7;
  --band: rgba(12, 163, 12, 0.12);
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
  --heat0: #262625; --heat1: #184f95; --heat2: #256abf; --heat3: #3987e5; --heat4: #86b6ef;
  --st-good: #0ca30c; --st-warn: #fab219; --st-serious: #ec835a; --st-crit: #d03b3b;
  --r: 16px;
  --r-sm: 10px;
  --tabbar-h: 58px;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f2ef;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --surface-3: #e4e3dd;
  --line: rgba(11, 11, 11, 0.08);
  --line-2: rgba(11, 11, 11, 0.14);
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #74736e;
  --placeholder: #a9a8a2;
  --accent: #2a78d6;
  --accent-press: #256abf;
  --accent-soft: rgba(42, 120, 214, 0.12);
  --good: #0ca30c;
  --good-text: #006300;
  --good-soft: rgba(12, 163, 12, 0.14);
  --danger: #d03b3b;
  --gold: #b07400;
  --gold-soft: rgba(237, 161, 0, 0.16);
  --warn: #b07400;
  --warm: #b07400;
  --drop: #6250d6;
  --fail: #d03b3b;
  --chip-on-bg: #0b0b0b;
  --chip-on-text: #fcfcfb;
  --tabbar-bg: rgba(252, 252, 251, 0.88);
  --tip-bg: #ffffff;
  --week-grad: #dce9fa;
  --shadow: 0 8px 30px rgba(0, 0, 0, .14);
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --ref: #52514e;
  --band: rgba(12, 163, 12, 0.10);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --heat0: #e9e8e3; --heat1: #b7d3f6; --heat2: #6da7ec; --heat3: #2a78d6; --heat4: #184f95;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none; min-height: 100vh;
}
body.editor-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--text); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
[hidden] { display: none !important; }

.ic { width: 22px; height: 22px; flex: none; }
.ic.xs { width: 15px; height: 15px; }
.ic.muted { color: var(--muted); }
.ic.gold { color: var(--gold); }
.ic.ml { margin-left: auto; color: var(--accent); }

/* ---------- Layout ---------- */
#view {
  max-width: 720px; margin: 0 auto;
  padding: calc(var(--st) + 8px) 16px calc(var(--tabbar-h) + var(--sb) + 28px);
}
body.has-minibar #view { padding-bottom: calc(var(--tabbar-h) + var(--sb) + 96px); }
.boot { height: 70vh; display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 22px; }

.page-head { display: flex; align-items: center; gap: 8px; padding: 14px 0 14px; min-height: 64px; }
.page-head h1 { font-size: 30px; font-weight: 800; line-height: 1.1; }
.page-head.with-back h1 { font-size: 22px; }
.ph-text { flex: 1; min-width: 0; }
.ph-text h1 { overflow-wrap: anywhere; }
.ph-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.ph-actions { display: flex; gap: 4px; }
.with-back > .icon-btn:first-child { margin-left: -8px; }

.section-title { font-size: 20px; font-weight: 750; margin: 26px 0 10px; }
.section-row { display: flex; align-items: center; justify-content: space-between; }
.section-row .section-title { margin-bottom: 10px; }
.list-label {
  color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase;
  letter-spacing: 0.06em; margin: 22px 4px 8px;
}
.footnote { color: var(--muted); font-size: 12.5px; margin: 6px 4px 12px; }
.footnote.center { text-align: center; }

.card {
  display: block; background: var(--surface); border-radius: var(--r); padding: 16px;
  margin-bottom: 12px; border: 1px solid var(--line);
}
.card-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.card-title small { color: var(--muted); font-weight: 500; margin-left: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.grid2 > .card { margin-bottom: 0; }
.grid2.wide { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2.wide { grid-template-columns: 1fr 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 650; font-size: 15px;
  background: var(--surface-2); color: var(--text); transition: transform .08s, background .15s;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:active { background: var(--accent-press); }
.btn.ghost { background: var(--surface-2); border: 1px solid var(--line); }
.btn.danger-ghost { background: transparent; color: var(--danger); }
.btn.block { display: flex; width: 100%; margin-bottom: 10px; }
.btn.lg { height: 52px; font-size: 16px; border-radius: 14px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn .ic { width: 19px; height: 19px; }
.btn-row { display: flex; gap: 10px; margin: 16px 0; }
.btn-row .btn { flex: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2);
}
.icon-btn:active { background: var(--surface-2); }
.link-btn { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 8px 4px; }

/* ---------- Chips & Tabs ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.card .chips.scroll { margin: 0 -16px 10px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 32px; padding: 0 14px; border-radius: 99px; background: var(--surface-2);
  color: var(--text-2); font-size: 13.5px; font-weight: 600; border: 1px solid var(--line); white-space: nowrap;
}
.chip.on { background: var(--chip-on-bg); color: var(--chip-on-text); border-color: transparent; }
.filter-row { margin: 4px 0 14px; }
.tabs { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--line); }
.tabs.scroll { overflow-x: auto; scrollbar-width: none; }
.tabs.scroll::-webkit-scrollbar { display: none; }
.tab { flex: 1; text-align: center; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.tab.on { background: var(--surface-3); color: var(--text); }

/* ---------- Tab-Leiste ---------- */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around; align-items: flex-start;
  height: calc(var(--tabbar-h) + var(--sb)); padding-bottom: var(--sb);
  background: var(--tabbar-bg); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-top: 1px solid var(--line);
}
#tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 8px;
  color: var(--muted); font-size: 10.5px; font-weight: 600;
}
#tabbar a .ic { width: 24px; height: 24px; }
#tabbar a.on { color: var(--accent); }

#minibar {
  position: fixed; left: 10px; right: 10px; z-index: 31;
  bottom: calc(var(--tabbar-h) + var(--sb) + 8px); max-width: 700px; margin: 0 auto;
}
.mini-inner {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: var(--accent); color: #fff; box-shadow: var(--shadow); text-align: left;
}
.mini-t { flex: 1; display: flex; flex-direction: column; }
.mini-t small { opacity: .85; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* ---------- Start ---------- */
.week-card { padding: 18px; background: linear-gradient(160deg, var(--week-grad) 0%, var(--surface) 60%); }
.week-top { display: flex; justify-content: space-between; align-items: flex-start; }
.week-top small { color: var(--text-2); font-weight: 600; }
.week-count b { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.week-count span { color: var(--text-2); margin-left: 6px; }
.streak { display: flex; align-items: center; gap: 8px; background: rgba(250, 178, 25, .12); color: var(--gold); padding: 8px 12px; border-radius: 12px; }
.streak b { display: block; font-size: 18px; line-height: 1; }
.streak small { color: var(--text-2); font-size: 11px; }
.week-dots { display: flex; justify-content: space-between; margin: 16px 0 12px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.wd i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); }
.wd.on i { background: var(--accent); color: #fff; }
.wd.on i .ic { width: 17px; height: 17px; }
.wd.today span { color: var(--text); }
.wd.today i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--text-2); }
.week-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.week-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.week-meta { display: flex; gap: 18px; margin-top: 12px; color: var(--text-2); font-size: 13px; }
.week-meta span { display: inline-flex; align-items: center; gap: 5px; }
.quick { margin: 14px 0 6px; }
.quick-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.quick-row::-webkit-scrollbar { display: none; }
.quick-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px;
}
.quick-chip .ic { color: var(--accent); }
.hint p, .onboarding p { color: var(--text-2); margin: 0 0 12px; }
.hint p { margin: 0; }
.hint .ic.xs { vertical-align: -2px; }
.onboarding h3 { font-size: 20px; margin-bottom: 8px; }

/* Workout-Karte */
.workout-card { padding: 16px; transition: transform .1s; }
.workout-card:active { transform: scale(0.985); }
.wc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.wc-title { font-weight: 750; font-size: 17px; }
.wc-date { color: var(--muted); font-size: 13px; margin-top: 2px; }
.wc-stats { display: flex; gap: 22px; margin: 12px 0; }
.wc-stats small { display: block; color: var(--muted); }
.wc-stats b { font-size: 15px; }
.wc-list { border-top: 1px solid var(--line); padding-top: 10px; }
.wc-ex { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 3px 0; }
.wc-ex span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-ex .muted { flex: none; font-size: 13px; }
.wc-more { color: var(--muted); font-size: 13px; padding-top: 4px; }
.pr-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 99px;
  background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 700; white-space: nowrap;
}

/* Routinen */
.routine-card .rc-head { display: flex; justify-content: space-between; align-items: flex-start; }
.rc-title { font-weight: 750; font-size: 17px; }
.rc-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.rc-list { color: var(--text-2); font-size: 13.5px; margin: 10px 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.routine-card .btn { margin-bottom: 0; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 560px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.kpis.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .kpis.four { grid-template-columns: repeat(4, 1fr); } }
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; position: relative; min-width: 0; }
.kpi small { display: block; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 21px; font-weight: 750; letter-spacing: -0.02em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.mini b { font-size: 18px; }
.kpi-ic { position: absolute; right: 12px; top: 12px; color: var(--muted); opacity: .6; }
.kpi-ic .ic { width: 17px; height: 17px; }
.delta { display: inline-block; font-size: 12px; font-weight: 650; margin-top: 3px; color: var(--muted); }
.delta.up, .up { color: var(--good-text); }
.delta.down, .down { color: var(--text-2); }
.mc-delta.down, .strength-table .down, .trend-line.down { color: var(--danger); }

/* ---------- Charts ---------- */
.chart { position: relative; width: 100%; user-select: none; -webkit-user-select: none; }
.chart svg { display: block; touch-action: pan-y; overflow: visible; }
.chart .ax { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .ax-ref { fill: var(--text-2); font-weight: 600; }
.chart-empty { color: var(--muted); text-align: center; padding: 34px 0; font-size: 14px; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: auto; min-width: 120px; max-width: 240px;
  background: var(--tip-bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px;
  box-shadow: var(--shadow); font-size: 13px;
}
.tt-h { color: var(--text-2); font-size: 12px; margin-bottom: 2px; }
.tt-r { display: flex; align-items: center; gap: 6px; }
.tt-r i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.tt-r.muted { color: var(--muted); font-size: 12px; }
.tt-open { color: var(--accent); font-size: 12px; margin-top: 3px; }
.tt-link { display: block; padding: 4px 0; color: var(--text); border-top: 1px solid var(--line); }
.tt-link:first-of-type { border-top: 0; }
.heat-wrap .chart-tip { position: relative; margin-top: 8px; left: 0 !important; top: 0 !important; max-width: none; }
.heat-scroll { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.heat-scroll::-webkit-scrollbar { display: none; }
.heat-scroll rect { cursor: pointer; }
.heat-legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; color: var(--muted); font-size: 11.5px; margin-top: 8px; }
.heat-legend i { width: 12px; height: 12px; border-radius: 3px; }
.heat-legend span:first-child { margin-right: 4px; }
.heat-legend span:last-child { margin-left: 4px; }

.mini-card { padding: 12px; overflow: hidden; }
.mc-name { font-weight: 650; font-size: 13.5px; }
.mc-val { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.mc-val small { font-size: 13px; color: var(--muted); font-weight: 600; }
.mc-delta { font-size: 12px; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
.trend-line { margin-top: 10px; font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.trend-line.up b { color: var(--good-text); }

.hbars { display: flex; flex-direction: column; gap: 10px; }
.hbar[data-nav] { cursor: pointer; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 4px; }
.hbar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-v { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar-v small { color: var(--muted); font-weight: 500; }
.hbar-track { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: 0 4px 4px 0; }

/* Tabellen */
.table { display: flex; flex-direction: column; font-size: 13.5px; }
.tr { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); align-items: center; font-variant-numeric: tabular-nums; }
.tr.five { grid-template-columns: 0.8fr 1fr 1.2fr 1fr 1fr; }
.strength-table .tr { grid-template-columns: 2.2fr 0.9fr 1.1fr 0.9fr; }
.tr .wrap { overflow-wrap: anywhere; line-height: 1.3; }
.tr > span:not(:first-child) { text-align: right; }
.tr.th { border-top: 0; color: var(--muted); font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; padding-top: 0; }
.tr.dim { color: var(--muted); }
.tr small { display: block; color: var(--muted); font-size: 11.5px; }
a.tr:active { background: var(--surface-2); }

/* Rekorde */
.pr-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.card-title + .pr-row { border-top: 0; padding-top: 0; }
.pr-row small { display: block; color: var(--muted); }
.pr-val { font-weight: 750; text-align: right; white-space: nowrap; }
.pr-val small { font-weight: 500; }
.pr-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, rgba(250, 178, 25, .14), var(--surface) 70%); }
.pr-card .ic { width: 30px; height: 30px; }
.pr-card small { display: block; color: var(--text-2); }

/* Workout-Detail */
.detail-date { color: var(--text-2); font-size: 13.5px; margin: -6px 0 14px; }
.dex-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dnote { color: var(--text-2); font-size: 13.5px; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; margin: 0 0 10px; white-space: pre-wrap; }
.dprs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dsets { display: flex; flex-direction: column; }
.dset { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.dset-v { flex: 1; }
.dset-e { color: var(--muted); font-size: 12.5px; }
.hist { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; }
.hist-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.hist-head .muted { font-size: 13px; }

/* Übungsliste */
.search {
  display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 0 12px;
  height: 42px; margin-bottom: 10px; color: var(--muted); border: 1px solid var(--line);
}
.search input { flex: 1; background: none; border: 0; outline: none; height: 100%; font-size: 16px; }
.search .ic { width: 18px; height: 18px; }
.ex-list { margin-top: 4px; }
.ex-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.ex-row:active { background: var(--surface); }
.ex-avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 16px;
}
.ex-titles { flex: 1; min-width: 0; }
.ex-name { font-weight: 650; font-size: 15px; text-align: left; overflow-wrap: anywhere; }
.ex-sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.er-right { text-align: right; }
.er-right b { display: block; font-size: 16px; }
.er-right small { color: var(--muted); font-size: 11px; }

/* Profil */
.profile-card { text-align: center; padding: 20px 16px 10px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.avatar-lg .ic { width: 30px; height: 30px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.pc-stats b { display: block; font-size: 18px; }
.pc-stats small { color: var(--muted); }
.set-group { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.set-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; min-height: 50px; border-top: 1px solid var(--line); text-align: left; }
.set-item:first-child { border-top: 0; }
.set-item:active { background: var(--surface-2); }
.si-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.si-ic .ic { width: 17px; height: 17px; }
.si-l { flex: 1; }
.si-v { color: var(--muted); font-size: 14px; }
.set-item.danger { color: var(--danger); }
.set-item.danger .si-ic { color: var(--danger); background: rgba(230, 103, 103, .12); }
.warn-card { display: flex; align-items: center; gap: 12px; border-color: rgba(250, 178, 25, .35); }
.warn-card > .ic { color: var(--gold); }
.warn-card div { flex: 1; }
.warn-card small { display: block; color: var(--text-2); }
.about p { margin: 0 0 6px; color: var(--text-2); }
.switch {
  appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--surface-3);
  position: relative; transition: background .2s; flex: none; margin: 0;
}
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.switch:checked { background: var(--good); }
.switch:checked::after { transform: translateX(20px); }

/* Leere Zustände */
.empty { text-align: center; padding: 40px 20px; color: var(--text-2); }
.empty-ic { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.empty-ic .ic { width: 30px; height: 30px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.empty p { margin: 0 0 16px; }
.empty .btn { margin: 4px; }
.empty-small { text-align: center; color: var(--muted); padding: 30px 0; }
.empty-small .btn { margin-top: 12px; }

/* ---------- Overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  display: flex; flex-direction: column; transform: translateY(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.overlay.open { transform: none; }
.panel { z-index: 60; }
.panel-head, .ed-head {
  display: flex; align-items: center; gap: 8px; padding: calc(var(--st) + 8px) 12px 8px;
  background: var(--bg);
}
.panel-title { flex: 1; text-align: center; font-weight: 700; font-size: 17px; }
.panel-search { padding: 4px 16px 8px; }
.panel-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px calc(var(--sb) + 90px); }
.panel-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(var(--sb) + 12px); background: linear-gradient(transparent, var(--bg) 30%); }
.pick-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.pick-row.sel { background: var(--accent-soft); border-radius: 12px; }
.pick-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; color: var(--text-2); flex: none; }
.pick-row.sel .pick-avatar { background: var(--accent); color: #fff; }
.pick-main { flex: 1; min-width: 0; }
.pick-name { font-weight: 600; }
.pick-sub { color: var(--muted); font-size: 12.5px; }
.pick-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.pick-num .ic { width: 16px; height: 16px; }

/* ---------- Workout-Editor ---------- */
.editor { z-index: 50; }
.ed-head { padding-bottom: 0; }
.ed-title { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 750; font-size: 17px; min-width: 0; }
.ed-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-title .ic { color: var(--muted); }
.ed-subline { text-align: center; color: var(--accent); font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; padding-bottom: 8px; }
.ed-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 16px 10px; border-bottom: 1px solid var(--line); }
.ed-stats small { display: block; color: var(--muted); font-size: 12px; }
.ed-stats b { font-size: 16px; font-variant-numeric: tabular-nums; }
.ed-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 12px 0; }
.ed-spacer { height: calc(var(--sb) + 120px); }
.ed-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.ex-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 10px 6px; margin-bottom: 12px; }
.ex-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 8px; }
.ex-head .ex-name { color: var(--accent); }
.rest-chip { display: inline-flex; align-items: center; gap: 3px; color: var(--text-2); font-size: 12.5px; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; }
.ex-notes {
  width: 100%; resize: none; background: var(--surface-2); border: 0; border-radius: 10px; padding: 8px 10px;
  margin: 0 0 8px; font-size: 16px; outline: none; min-height: 38px;
}
.set-row {
  display: grid; align-items: center; gap: 6px; padding: 4px 2px; border-radius: 10px;
  grid-template-columns: 38px 1fr 64px 64px 42px;
  transition: background .2s;
}
.set-row.c1 { grid-template-columns: 38px 1fr 80px 42px; }
.set-row.nochk { grid-template-columns: 38px 1fr 64px 64px; }
.set-row.c1.nochk { grid-template-columns: 38px 1fr 80px; }
.set-row.head { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; padding-bottom: 2px; }
.set-row.head span { text-align: center; }
.set-row.head span:nth-child(2) { text-align: left; padding-left: 4px; }
.set-row.head .ic { width: 14px; height: 14px; vertical-align: middle; }
.set-row.done { background: var(--good-soft); }
.set-badge {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 750; font-size: 14px;
  background: var(--surface-2); justify-self: center;
}
.set-badge.sm { width: 26px; height: 26px; font-size: 12.5px; border-radius: 7px; flex: none; }
.set-badge.t-warmup { color: var(--warm); }
.set-badge.t-dropset { color: var(--drop); }
.set-badge.t-failure { color: var(--fail); }
.set-prev { text-align: left; color: var(--muted); font-size: 13px; padding-left: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.set-in {
  width: 100%; height: 36px; border-radius: 9px; border: 0; background: var(--surface-2); text-align: center;
  font-size: 16px; font-weight: 650; outline: none; font-variant-numeric: tabular-nums; padding: 0 4px;
}
.set-in:focus { box-shadow: 0 0 0 2px var(--accent); }
.set-in::placeholder { color: var(--placeholder); font-weight: 500; }
.set-row.done .set-in { background: transparent; }
.set-chk {
  width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; justify-self: center; color: var(--muted);
}
.set-chk .ic { width: 19px; height: 19px; }
.set-row.done .set-chk { background: var(--good); color: #fff; }
.add-set { width: 100%; height: 38px; margin: 6px 0 4px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.rest-bar {
  position: absolute; left: 10px; right: 10px; bottom: calc(var(--sb) + 10px); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
.rest-prog { height: 4px; background: var(--surface-3); }
.rest-prog i { display: block; height: 100%; background: var(--accent); transition: width .5s linear; }
.rest-row { display: flex; align-items: center; gap: 8px; padding: 10px; }
.rest-time { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 22px; font-variant-numeric: tabular-nums; }
.rest-time .ic { color: var(--accent); }

/* ---------- Sheets & Dialoge ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center;
  animation: fade .18s;
}
.sheet-backdrop.closing { opacity: 0; transition: opacity .18s; }
.sheet {
  width: 100%; max-width: 560px; background: var(--surface); border-radius: 20px 20px 0 0; padding: 10px 12px calc(var(--sb) + 12px);
  animation: up .22s cubic-bezier(.2, .8, .2, 1); max-height: 85vh; overflow-y: auto;
}
.sheet-title { text-align: center; font-weight: 700; padding: 8px 10px 4px; }
.sheet-msg { text-align: center; color: var(--text-2); font-size: 14px; padding: 4px 12px 10px; }
.sheet-opts { background: var(--surface-2); border-radius: 14px; overflow: hidden; margin-top: 6px; }
.sheet-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; font-size: 16px; border-top: 1px solid var(--line); text-align: left; }
.sheet-opt:first-child { border-top: 0; }
.sheet-opt:active { background: var(--surface-3); }
.sheet-opt .ic { color: var(--text-2); width: 20px; height: 20px; }
.sheet-opt.danger, .sheet-opt.danger .ic { color: var(--danger); }
.sheet-opt.active { font-weight: 700; }
.sheet-cancel { width: 100%; margin-top: 8px; padding: 14px; border-radius: 14px; background: var(--surface-2); font-weight: 700; font-size: 16px; }
.form-sheet { padding: 14px 16px calc(var(--sb) + 16px); }
.field { display: block; margin: 12px 0; }
.field span { display: block; color: var(--text-2); font-size: 13px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  padding: 0 12px; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none;
}
.field textarea { height: auto; padding: 10px 12px; }
.field input:focus, .field select:focus { border-color: var(--accent); }
.field.inline { margin: 0; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; }
.form-actions .btn { flex: 1; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

.toast {
  position: fixed; left: 50%; top: calc(var(--st) + 12px); transform: translate(-50%, -20px); z-index: 90; opacity: 0;
  background: var(--tip-bg); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  transition: all .25s; box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Zusammenfassung */
.summary-panel { z-index: 70; }
.summary { flex: 1; overflow-y: auto; padding: calc(var(--st) + 30px) 16px calc(var(--sb) + 20px); max-width: 560px; margin: 0 auto; width: 100%; }
.summary-hero { text-align: center; margin-bottom: 22px; }
.summary-hero h2 { font-size: 28px; font-weight: 800; margin-top: 8px; }
.summary-hero p { color: var(--text-2); margin: 6px 0 0; }
.summary-actions { margin-top: 20px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

@media (min-width: 720px) {
  .overlay.editor, .overlay.panel { left: 50%; width: 720px; margin-left: -360px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}

/* =====================================================================
   v2: Charts-Klassen, Gamification, AI, Balance, Geführte Einheiten
   ===================================================================== */
.g-grid { stroke: var(--grid); stroke-width: 1; }
.g-axis { stroke: var(--axis); stroke-width: 1; }
.g-ref { stroke: var(--ref); stroke-width: 1; stroke-opacity: .6; }
.g-cross { stroke: var(--muted); stroke-width: 1; }
.g-ring { stroke: var(--surface); stroke-width: 2; }
.g-sel { stroke: var(--text); stroke-width: 1.5; }
.chart .ax-band { fill: var(--good-text); font-weight: 600; }
.chart .ax-radar { fill: var(--text-2); font-size: 11.5px; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

.bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .4s; }

/* ---------- Kämpfer ---------- */
.fighter { width: 100%; height: auto; display: block; overflow: visible; }
.fighter .body { animation: breathe 3.2s ease-in-out infinite; transform-origin: 100px 240px; }
.fighter.st0 .body { animation-duration: 4.5s; }
.fighter .aura { animation: aura 1.1s ease-in-out infinite; transform-origin: 100px 150px; }
.fighter .bolt { animation: bolt .9s steps(2) infinite; }
.fighter .bolt.b2 { animation-delay: .3s; }
.fighter .bolt.b3 { animation-delay: .55s; }
.fighter.power .aura { animation-duration: .45s; }
.fighter.power .particles path { animation: rise .7s linear infinite; }
.fighter.power .particles path:nth-child(2n) { animation-delay: .35s; }
@keyframes breathe { 50% { transform: scaleY(1.012) translateY(-1px); } }
@keyframes aura { 50% { transform: scale(1.05, 1.03); opacity: .8; } }
@keyframes bolt { 50% { opacity: 0; } }
@keyframes rise { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-40px); opacity: 0; } }

.hero { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; position: relative; overflow: hidden; padding: 14px 16px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18% 60%, var(--accent-soft), transparent 55%); pointer-events: none; }
.hero.st5::before, .hero.st6::before, .hero.st7::before { background: radial-gradient(circle at 18% 60%, var(--gold-soft), transparent 60%); }
.hero-fig { position: relative; }
.hero-info { position: relative; min-width: 0; }
.hero-info > small { color: var(--muted); font-weight: 600; }
.hero-info h3 { font-size: 21px; margin: 1px 0 6px; }
.hero-streak { display: flex; align-items: baseline; gap: 6px; color: var(--gold); }
.hero-streak .ic { align-self: center; }
.hero-streak b { font-size: 26px; font-weight: 800; }
.hero-streak span { color: var(--text-2); font-size: 13px; }
.hero-next { margin: 8px 0; }
.hero-next small { display: block; color: var(--text-2); margin-top: 4px; }
.hero-next .bar i { background: linear-gradient(90deg, var(--gold), #eb6834); }
.hero-max { color: var(--gold); font-weight: 700; }
.hero-power { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hero-power small { color: var(--muted); }
.hero-power b { font-size: 17px; font-variant-numeric: tabular-nums; }
.over9000 { font-size: 11px; font-weight: 900; color: #fff; background: linear-gradient(90deg, #eb6834, #e34948); padding: 2px 6px; border-radius: 6px; animation: shake9000 2.5s infinite; }
@keyframes shake9000 { 0%, 90%, 100% { transform: none; } 92% { transform: rotate(-4deg) scale(1.1); } 96% { transform: rotate(4deg) scale(1.1); } }
.hero-level { position: absolute; top: 12px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; width: 64px; }
.hero-level span { font-size: 12px; font-weight: 800; color: var(--accent); }
.hero-level .bar { width: 100%; height: 4px; }

.week-meta.col { flex-direction: column; gap: 4px; margin-top: 4px; align-items: flex-end; }
.streak-alert { margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; background: var(--surface-2); color: var(--text-2); }
.streak-alert b { color: var(--text); }
.streak-alert.ok { background: var(--good-soft); color: var(--good-text); }
.streak-alert.danger { background: rgba(236, 131, 90, .16); color: var(--text); border: 1px solid rgba(236, 131, 90, .5); animation: glow 2s infinite; }
.streak-alert.lost { background: rgba(208, 59, 59, .12); }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(236, 131, 90, .12); } }

.quest { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.card-title + .quest { border-top: 0; padding-top: 0; }
.q-ic { font-size: 22px; width: 28px; text-align: center; }
.q-main { flex: 1; min-width: 0; }
.q-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.q-top span { color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.q-main small { display: block; color: var(--muted); margin-top: 4px; }
.quest.done b { text-decoration: line-through; color: var(--muted); }
.quest.done .bar i { background: var(--good); }

.ai-badge { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 7px; font-size: 11px; font-weight: 900; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #6250d6, #3987e5); flex: none; }
.ai-badge.lg { min-width: 42px; height: 32px; font-size: 14px; border-radius: 10px; }
.coach-mini, .badge-teaser, .resume-card { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; }
.coach-mini div, .badge-teaser > div:not(.bt-icons), .resume-card div { flex: 1; min-width: 0; }
.coach-mini small, .badge-teaser small, .resume-card small { display: block; color: var(--muted); }
.bt-icons { display: flex; font-size: 22px; }
.bt-icons span { margin-right: -4px; }
.resume-card { border-color: var(--accent); color: var(--text); }
.resume-card > .ic { color: var(--accent); }

/* ---------- Editor: AI & PR ---------- */
.ai-chip { display: flex; gap: 10px; align-items: center; background: linear-gradient(120deg, rgba(98, 80, 214, .14), var(--surface-2)); border-radius: 10px; padding: 8px 10px; margin: 0 2px 8px; }
.ai-chip b { display: block; font-size: 14px; }
.ai-chip small { color: var(--text-2); font-size: 12px; }
.ai-chip.k-increase b::after { content: " ▲"; color: var(--good-text); }
.ai-chip.k-deload b::after { content: " ▼"; color: var(--muted); }
.set-row.pr { background: linear-gradient(90deg, #ffb02e, #ff7a1a 55%, #ff4d1a); position: relative; overflow: hidden; animation: prRow .6s ease-out; }
.set-row.pr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(255, 220, 80, .0), rgba(255, 240, 150, .35), rgba(255, 220, 80, 0)); background-size: 100% 200%; animation: flame 1.4s linear infinite; pointer-events: none; }
.set-row.pr .set-in, .set-row.pr .set-prev, .set-row.pr .set-badge { color: #2a1200; background: rgba(255, 255, 255, .22); }
.set-row.pr .set-chk { background: #fff; color: #ff6a00; }
.set-row.pr .set-prev { font-weight: 700; }
@keyframes prRow { 0% { transform: scale(.96); filter: brightness(1.6); } 100% { transform: none; filter: none; } }
@keyframes flame { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

.pr-pop {
  position: fixed; left: 50%; top: calc(var(--st) + 70px); z-index: 95; pointer-events: none;
  width: min(340px, calc(100vw - 32px)); transform: translate(-50%, -30px) scale(.8); opacity: 0;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 8px; border-radius: 22px;
  background: linear-gradient(135deg, #2a1400, #5a2400 60%, #8a3a00); color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 196, 60, .7), 0 18px 50px rgba(255, 120, 0, .45);
  transition: transform .35s cubic-bezier(.2, 1.5, .4, 1), opacity .3s;
}
.pr-pop.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
.pr-pop.hide { transform: translate(-50%, -20px) scale(.9); opacity: 0; transition: all .4s ease-in; }
.pr-burst { position: absolute; inset: -30px; background: radial-gradient(circle, rgba(255, 210, 63, .45), transparent 60%); animation: burst 1s ease-out infinite; border-radius: 50%; z-index: -1; }
@keyframes burst { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.pr-fighter { width: 86px; flex: none; margin: -24px 0 -10px; }
.pr-title { font-weight: 900; font-size: 20px; letter-spacing: .02em; background: linear-gradient(90deg, #ffe680, #ffb02e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pr-ex { font-weight: 700; font-size: 15px; }
.pr-detail { font-size: 12.5px; opacity: .9; }

/* ---------- Training: AI ---------- */
.ai-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.ai-toggle div { flex: 1; }
.ai-toggle small { display: block; color: var(--muted); }
.ai-toggle.on { border-color: rgba(98, 80, 214, .6); background: linear-gradient(120deg, rgba(98, 80, 214, .12), var(--surface) 70%); }
.coach-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 16px; }
.coach-when { font-size: 17px; font-weight: 700; }
.coach-goal { color: var(--text-2); font-size: 13.5px; margin: 2px 0 12px; }
.coach-best { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.coach-best small { display: block; color: var(--muted); }
.coach-best b { font-size: 18px; }
.ready-pill { text-align: center; font-weight: 800; font-size: 18px; padding: 6px 10px; border-radius: 12px; }
.ready-pill small { display: block; font-size: 10.5px; font-weight: 600; }
.ready-pill.good, .cand-bar i.good { background: var(--good-soft); color: var(--good-text); }
.ready-pill.warn { background: rgba(250, 178, 25, .16); color: var(--warn); }
.ready-pill.crit { background: rgba(208, 59, 59, .14); color: var(--danger); }
.cand { display: grid; grid-template-columns: 1fr 90px 44px; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.cand b { text-align: right; font-size: 13px; }
.cand-bar { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.cand-bar i { display: block; height: 100%; }
.cand-bar i.good { background: var(--st-good); }
.cand-bar i.warn { background: var(--st-warn); }
.cand-bar i.crit { background: var(--st-crit); }
.stag { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.card-title + .stag { border-top: 0; padding-top: 0; }
.stag-head { display: flex; justify-content: space-between; gap: 10px; }
.stag-head small { display: block; color: var(--muted); font-size: 12px; }
.stag.decline .stag-head small { color: var(--danger); }
.stag-val { font-weight: 800; white-space: nowrap; }
.stag-val small { color: var(--muted); font-weight: 500; }
.tips { margin: 6px 0 4px; padding-left: 18px; color: var(--text-2); font-size: 13px; }
.tips li { margin: 2px 0; }
.stag-progress { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--good-soft); color: var(--good-text); font-size: 13px; }
.guided-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guided-tile { text-align: left; border-radius: var(--r); padding: 14px; color: #fff; min-height: 130px; display: flex; flex-direction: column; gap: 4px; }
.guided-tile span { font-size: 30px; }
.guided-tile b { font-size: 17px; }
.guided-tile small { opacity: .9; font-size: 12px; line-height: 1.3; }
.guided-tile.cardio { background: linear-gradient(140deg, #eb6834, #e34948); }
.guided-tile.mobility { background: linear-gradient(140deg, #1baf7a, #2a78d6); }
.guided-tile:active { transform: scale(.98); }

/* ---------- Körperkarte ---------- */
.bodymap { text-align: center; }
.bm-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 360px; margin: 0 auto; }
.bm-figs figure { margin: 0; }
.bm-figs svg { width: 100%; height: auto; }
.bm-figs figcaption { color: var(--muted); font-size: 12px; margin-top: 2px; }
.bm-base { fill: var(--surface-3); }
.bm-m { cursor: pointer; transition: opacity .2s; stroke: var(--surface); stroke-width: .8; }
.bm-m.sel { stroke: var(--text); stroke-width: 1.2; }
.bm-info { font-size: 13.5px; color: var(--text-2); margin: 8px 0 6px; min-height: 20px; }
.bm-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font-size: 11.5px; color: var(--muted); }
.bm-legend span { display: inline-flex; align-items: center; gap: 4px; }
.bm-legend i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Balance ---------- */
.bal-summary { display: flex; gap: 12px; align-items: center; }
.bal-summary > span { font-size: 26px; }
.bal-summary small { display: block; color: var(--muted); }
.bal-summary.warn { border-color: rgba(236, 131, 90, .5); }
.bal-summary.ok { border-color: rgba(12, 163, 12, .4); }
.bal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.bal-lvl { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.bal-lvl.ok { background: var(--good-soft); color: var(--good-text); }
.bal-lvl.mild { background: rgba(250, 178, 25, .16); color: var(--warn); }
.bal-lvl.strong { background: rgba(208, 59, 59, .14); color: var(--danger); }
.bal-lvl.none { background: var(--surface-2); color: var(--muted); }
.bal-track { position: relative; height: 14px; border-radius: 7px; background: var(--surface-3); }
.bal-zone { position: absolute; top: 0; bottom: 0; background: var(--band); border: 1.5px solid var(--st-good); border-radius: 7px; }
.bal-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ref); opacity: .5; }
.bal-dot { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.bal.mild .bal-dot { background: var(--st-warn); }
.bal.strong .bal-dot { background: var(--st-crit); }
.bal.ok .bal-dot { background: var(--st-good); }
.bal-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-top: 6px; gap: 6px; }
.bal-nums { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.bal-nums b { color: var(--text); }
.bal-tip { margin-top: 10px; font-size: 13.5px; background: var(--surface-2); padding: 8px 10px; border-radius: 10px; }
.bal-ratio { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.bal-ratio b { font-size: 26px; font-weight: 800; }
.bal-ratio small { color: var(--muted); }
.std { margin-bottom: 18px; }
.std-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.std-head span { color: var(--text-2); }
.std-track { position: relative; height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.std-track i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--surface); z-index: 2; }
.std-fill { height: 100%; border-radius: 5px; background: var(--s1); }
.std-lbl { position: relative; height: 16px; font-size: 10px; color: var(--muted); }
.std-lbl span { position: absolute; transform: translateX(-50%); top: 3px; white-space: nowrap; }

/* Jahresrückblick */
.review { background: linear-gradient(150deg, rgba(98, 80, 214, .16), var(--surface) 55%); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review-grid > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.review-grid .wide { grid-column: 1 / -1; }
.review-grid span { font-size: 20px; }
.review-grid b { display: block; font-size: 17px; margin-top: 2px; }
.review-grid small { color: var(--muted); font-size: 12px; }

/* Profil: Segment-Auswahl */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 14px; }
.seg-btn { padding: 10px 6px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--text-2); }
.seg-btn.on { background: var(--accent); color: #fff; }

/* Abzeichen */
.level-card { display: flex; gap: 16px; align-items: center; }
.level-card small { display: block; color: var(--text-2); margin-top: 2px; }
.lv-ring { --p: 0; width: 82px; height: 82px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 80%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0); }
.lv-ring b { font-size: 26px; line-height: 1; }
.lv-ring small { font-size: 11px; color: var(--muted); margin: 0; }
.stage-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; overflow-x: auto; }
.stage { text-align: center; opacity: .35; filter: grayscale(1); font-size: 11px; }
.stage.got { opacity: 1; filter: none; }
.stage.cur { background: var(--accent-soft); border-radius: 12px; }
.stage b { display: block; font-size: 11px; line-height: 1.2; }
.stage small { color: var(--muted); font-size: 10px; }
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .badge-grid { grid-template-columns: repeat(3, 1fr); } }
.badge { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; opacity: .55; }
.badge.done { opacity: 1; border-color: rgba(250, 178, 25, .45); background: linear-gradient(160deg, var(--gold-soft), var(--surface) 70%); }
.b-ic { font-size: 30px; display: block; filter: grayscale(1); }
.badge.done .b-ic { filter: none; }
.badge b { display: block; font-size: 13.5px; margin-top: 4px; }
.badge small { color: var(--muted); font-size: 11.5px; display: block; margin-bottom: 6px; }

/* AI-Karte (Übung) */
.ai-card { background: linear-gradient(130deg, rgba(98, 80, 214, .14), var(--surface) 65%); }
.ai-target { font-size: 24px; font-weight: 800; }
.ai-reason { color: var(--text-2); font-size: 13.5px; margin: 2px 0 10px; }
.ai-sets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ai-sets span { background: var(--surface-2); border-radius: 8px; padding: 4px 8px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ai-sets span.w { color: var(--warm); }

/* ---------- Geführt: Auswahl ---------- */
.device-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.device { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--line); font-size: 12px; font-weight: 600; }
.device.on { border-color: var(--accent); background: var(--accent-soft); }
.prog-card p { color: var(--text-2); font-size: 13.5px; margin: 8px 0 10px; }
.prog-card .chips { margin-bottom: 10px; }
.prog-card .btn { margin-bottom: 0; }
.prog-head { display: flex; gap: 12px; align-items: center; }
.prog-head small { display: block; color: var(--muted); }
.prog-strip { display: flex; gap: 2px; height: 10px; margin-bottom: 12px; }
.prog-strip i { border-radius: 2px; }
.z1 { --zc: #5aa0e8; } .z2 { --zc: #1baf7a; } .z3 { --zc: #eda100; } .z4 { --zc: #eb6834; } .z5 { --zc: #e34948; }
.prog-strip i, .g-segs i { background: var(--zc, var(--muted)); }

/* ---------- Geführt: Player ---------- */
.guided {
  position: fixed; inset: 0; z-index: 58; background: var(--bg); color: var(--text); display: flex; flex-direction: column;
  padding: calc(var(--st) + 6px) 16px calc(var(--sb) + 12px); overflow: hidden; transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.guided.open { transform: none; }
.g-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 70% at 50% 35%, color-mix(in srgb, var(--zc, var(--accent)) 30%, transparent), transparent 70%); transition: background .6s; }
.guided.mob { --zc: #1baf7a; }
.guided.mob.k-prep, .guided.mob.k-switch { --zc: #5aa0e8; }
.guided.k-hard .g-bg { animation: hardPulse 1.2s ease-in-out infinite; }
@keyframes hardPulse { 50% { opacity: .65; } }
.g-top { display: flex; align-items: center; gap: 8px; }
.g-title { flex: 1; text-align: center; font-weight: 750; }
.g-title small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.g-top .icon-btn { font-size: 20px; }
.g-segs { display: flex; gap: 2px; height: 10px; }
.g-segs i { border-radius: 2px; opacity: .45; }
.g-segs i.past { opacity: .18; }
.g-segs i.now { opacity: 1; box-shadow: 0 0 10px var(--zc); }
.g-segs i.m-prep, .g-segs i.m-switch { --zc: var(--surface-3); flex-grow: .5 !important; }
.g-segs i.m-move { --zc: #1baf7a; }
.g-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 0; }
.g-phase { font-size: 22px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.g-badge { font-size: 13px; background: var(--zc); color: #fff; padding: 2px 8px; border-radius: 8px; }
.g-ring { position: relative; width: min(64vw, 260px, 34vh); aspect-ratio: 1; }
.g-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 14; }
.g-ring-fg { fill: none; stroke: var(--zc, var(--accent)); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 1000; transition: stroke-dashoffset .25s linear; filter: drop-shadow(0 0 6px var(--zc)); }
.g-ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.g-time { font-size: clamp(44px, 14vw, 64px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
.g-sub { color: var(--text-2); font-weight: 650; margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.g-settings { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.g-settings div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; min-width: 96px; }
.g-settings small { display: block; color: var(--muted); font-size: 11.5px; }
.g-settings b { font-size: clamp(20px, 6vw, 26px); font-variant-numeric: tabular-nums; }
.g-zone { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.zdot { width: 10px; height: 10px; border-radius: 50%; background: var(--zc); }
.g-side { background: var(--zc); color: #fff; font-weight: 800; padding: 2px 12px; border-radius: 8px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.g-cue { color: var(--text-2); font-size: 14.5px; margin: 0; }
.g-bottom { display: flex; flex-direction: column; gap: 8px; }
.g-next { text-align: center; color: var(--text-2); font-size: 13.5px; background: var(--surface); border-radius: 12px; padding: 8px 10px; border: 1px solid var(--line); }
.g-ctrl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-ctrl .btn { height: 50px; }
.g-finish { flex: 1; overflow-y: auto; text-align: center; padding-top: 10px; position: relative; }
.g-finish h2 { font-size: 30px; margin: 6px 0 2px; }
.g-finish p { color: var(--text-2); margin: 0 0 16px; }
.g-finish .field { text-align: left; }
.g-fin-fighter { width: 150px; margin: 0 auto; }
.guided.done { --zc: #fab219; }

/* ---------- Kämpfer: Licht- & Feuer-Effekt ---------- */
.fx-wrap {
  --f1: #fff4c2; --f2: #ffb02e; --f3: #ff5a1f; --glow: rgba(255, 150, 40, .55); --spark: #ffd23f; --fs: 1;
  position: relative; isolation: isolate;
}
.fx-st0 { --fs: .55; } .fx-st1 { --fs: .7; } .fx-st2 { --fs: .85; } .fx-st3 { --fs: 1; }
.fx-st4 { --fs: 1.08; }
.fx-st5, .fx-st6, .fx-st7 { --f1: #fffbe6; --f2: #ffe066; --f3: #ffb300; --glow: rgba(255, 214, 60, .6); --spark: #fff3a0; --fs: 1.14; }
.fx-st6 { --fs: 1.24; --spark: #b9f3ff; }
.fx-st7 { --fs: 1.32; --spark: #b9f3ff; --glow: rgba(255, 230, 120, .75); }
.fx-wrap .fighter { position: relative; z-index: 2; }
.fx-glow, .fx-fire, .fx-sparks, .fx-flash { position: absolute; pointer-events: none; }
.fx-glow { inset: 0 -10% 0; z-index: 0; border-radius: 50%; background: radial-gradient(ellipse at 50% 62%, var(--glow), transparent 62%); opacity: 0; }
.fx-fire { left: 0; right: 0; bottom: 5%; height: 92%; z-index: 1; }
.fx-fire i { position: absolute; bottom: 0; left: var(--x); width: 30%; height: calc(78% * var(--h) * var(--fs)); margin-left: -15%; transform-origin: 50% 100%; opacity: 0; }
.fx-fire b { position: absolute; inset: 0; border-radius: 50% 50% 38% 38% / 64% 64% 36% 36%;
  background: radial-gradient(ellipse at 50% 88%, var(--f1) 0%, var(--f2) 28%, var(--f3) 55%, transparent 74%);
  filter: blur(1.2px); transform-origin: 50% 100%; animation: fxFlicker .55s ease-in-out infinite alternate; animation-delay: var(--d); }
.fx-sparks { inset: 0; z-index: 3; }
.fx-sparks span { position: absolute; bottom: 12%; left: var(--x); width: 4px; height: 4px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 6px var(--spark); opacity: 0; }
.fx-flash { inset: -25%; z-index: 4; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 240, .95) 0%, var(--glow) 30%, transparent 62%); }

/* Ruhezustand ab Stufe 3: dezente, flackernde Aura */
.fx-idle .fx-glow { opacity: .55; animation: fxGlow 2.4s ease-in-out infinite; }
.fx-idle .fx-fire i { opacity: .38; transform: scaleY(.7); }

/* Auftritt beim Öffnen der Seite */
.fx-enter .fx-flash { animation: fxFlash 1s cubic-bezier(.2, .7, .3, 1) .05s both; }
.fx-enter .fx-glow { animation: fxGlowIn 2.6s ease-out both; }
.fx-enter.fx-idle .fx-glow { animation: fxGlowIn 2.6s ease-out both, fxGlow 2.4s ease-in-out 2.6s infinite; }
.fx-enter .fx-fire i { animation: fxFireIn 2.6s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--d) * .4); }
.fx-enter.fx-idle .fx-fire i { animation-name: fxFireInIdle; }
.fx-enter .fx-sparks span { animation: fxSpark 1.5s ease-out both; animation-delay: calc(.25s + var(--d) * .6); }
.fx-enter .fighter { animation: fxPop .9s cubic-bezier(.2, 1.6, .4, 1) both; }

@keyframes fxFlicker { from { transform: scaleY(.9) scaleX(1.04) skewX(-3deg); } to { transform: scaleY(1.12) scaleX(.94) skewX(3deg); } }
@keyframes fxGlow { 50% { opacity: .85; transform: scale(1.04); } }
@keyframes fxGlowIn { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1); } }
@keyframes fxFlash { 0% { opacity: 0; transform: scale(.25); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes fxFireIn { 0% { opacity: 0; transform: scaleY(0); } 22% { opacity: 1; transform: scaleY(1.35); } 60% { opacity: .9; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(.5); } }
@keyframes fxFireInIdle { 0% { opacity: 0; transform: scaleY(0); } 22% { opacity: 1; transform: scaleY(1.35); } 60% { opacity: .9; transform: scaleY(1); } 100% { opacity: .38; transform: scaleY(.7); } }
@keyframes fxSpark { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc((var(--x) - 50%) * .25), -150px) scale(1.2); } }
@keyframes fxPop { 0% { transform: scale(.88); filter: brightness(1.8) saturate(1.3); } 60% { transform: scale(1.04); filter: brightness(1.15); } 100% { transform: none; filter: none; } }

.stage .fx-wrap { margin-bottom: 2px; }
.g-fin-fighter .fx-wrap { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .fx-wrap *, .fx-wrap { animation: none !important; }
  .fx-flash, .fx-sparks { display: none; }
}

/* =====================================================================
   v2.2: Kämpfer-Posen, schlanker geführter Player
   ===================================================================== */
:root, :root[data-theme="dark"] { --pose-prop: #6b6b66; --pose-prop-fill: #2f2f2d; --pose-shadow: rgba(0, 0, 0, .35); --pose-mat: rgba(57, 135, 229, .28); }
:root[data-theme="light"] { --pose-prop: #9a9993; --pose-prop-fill: #e4e3dd; --pose-shadow: rgba(0, 0, 0, .12); --pose-mat: rgba(42, 120, 214, .2); }
.pose { width: 100%; height: 100%; display: block; overflow: visible; }

.pose-av { background: var(--surface-2); padding: 2px; overflow: hidden; }
.ex-avatar.pose-av { width: 44px; height: 44px; }
.pick-avatar.pose-av { width: 44px; height: 44px; }
.pick-row.sel .pick-avatar.pose-av { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }

.demo { padding: 8px; display: flex; justify-content: center; background: radial-gradient(ellipse at 50% 60%, var(--accent-soft), var(--surface) 70%); }
.demo [data-demo] { width: min(240px, 70%); aspect-ratio: 1; }

.q-ic { color: var(--accent); display: grid; place-items: center; }
.quest.done .q-ic { color: var(--good-text); }
.bt-icons span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-right: -6px; border: 2px solid var(--surface); }
.bt-icons .ic { width: 16px; height: 16px; }
.b-ic { color: var(--muted); display: grid; place-items: center; }
.b-ic .ic { width: 30px; height: 30px; }
.badge.done .b-ic { color: var(--gold); }
.streak-alert { display: flex; gap: 8px; align-items: flex-start; }
.streak-alert .ic { margin-top: 2px; flex: none; }
.review-grid span { color: var(--accent); display: block; }
.review-grid span .ic { width: 20px; height: 20px; }
.bal-summary > span { color: var(--warn); }
.bal-summary.ok > span { color: var(--good-text); }
.bal-summary > span .ic { width: 28px; height: 28px; }
.summary-fighter { width: 150px; margin: 0 auto 4px; }

.guided-tile { min-height: 150px; }
.gt-fig { width: 72px; height: 72px; margin: -6px 0 2px -6px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25)); }
.guided-tile .pose ellipse, .guided-tile .pose rect, .guided-tile .pose path[style] { opacity: .55; }

.device { padding: 6px 4px 8px; }
.device .pose { width: 100%; aspect-ratio: 1; height: auto; }
.prog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.prog-head span { color: var(--muted); font-size: 13px; font-weight: 600; }
.move-thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px 6px; padding: 0 4px; }
.move-thumbs::-webkit-scrollbar { display: none; }
.move-thumbs figure { margin: 0; flex: none; width: 70px; text-align: center; }
.move-thumbs .pose { width: 70px; height: 70px; background: var(--surface-2); border-radius: 12px; }
.move-thumbs figcaption { font-size: 10.5px; color: var(--muted); line-height: 1.2; margin-top: 3px; }

/* Player */
.guided { gap: 6px; }
.g-segs { display: flex; gap: 2px; height: 5px; margin: 10px 0 4px; }
.g-main { gap: 6px; justify-content: space-evenly; }
.g-phase { font-size: 24px; flex-wrap: wrap; justify-content: center; }
.g-side { font-size: 13px; padding: 3px 10px; }
.g-figure { width: min(46vw, 25vh, 210px); aspect-ratio: 1; position: relative; }
.g-figure::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--zc, var(--accent)) 28%, transparent), transparent 70%); }
.g-figure.hot::before { animation: aura 0.9s ease-in-out infinite; background: radial-gradient(circle, rgba(255, 180, 40, .55), transparent 68%); }
.g-figure .pose { position: relative; }
.g-ring { width: min(62vw, 30vh, 270px); position: relative; }
.breath-big {
  position: absolute; inset: 10%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--zc) 55%, transparent) 0%, color-mix(in srgb, var(--zc) 25%, transparent) 60%, transparent 72%);
  animation: breathBig 10s ease-in-out infinite;
}
@keyframes breathBig { 0% { transform: scale(.55); } 40% { transform: scale(1.12); } 100% { transform: scale(.55); } }
.paused .breath-big { animation-play-state: paused; }
.g-ring > svg, .g-ring-in { position: relative; z-index: 1; }
.g-ring-in { position: absolute; inset: 0; }
.g-sub { font-size: 14px; letter-spacing: .1em; color: var(--text); }
.g-cue { color: var(--text-2); font-size: 15px; margin: 0; max-width: 420px; text-align: center; }
.g-settings div { min-width: 120px; }
.g-zone { font-size: 13px; }
.g-next { background: none; border: 0; padding: 0; font-size: 13.5px; }
.g-ctrl .btn .ic { width: 18px; height: 18px; }
.g-fin-fighter { width: 170px; }
.move-thumbs .pose, .device .pose, .gt-fig .pose { overflow: hidden; }
.move-thumbs .pose { border-radius: 12px; }

/* ---------- Start-Animation ---------- */
.intro { position: fixed; inset: 0; z-index: 200; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  --f1: #fff4c2; --f2: #ffb02e; --f3: #ff5a1f; --glow: rgba(255, 150, 40, .7); animation: inFade .3s ease-out both; cursor: pointer; }
.intro.st5, .intro.st6, .intro.st7 { --f1: #fffbe6; --f2: #ffe066; --f3: #ffb300; --glow: rgba(255, 214, 60, .75); }
.intro.out { animation: inOut .42s ease-in both; }
.in-bg { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 60%, #2a1406 0%, #0d0705 55%, #050302 100%); }
.in-rays { position: absolute; left: 50%; top: 55%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; opacity: 0;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--f2) 40%, transparent) 0deg 6deg, transparent 6deg 18deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 45%); -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 45%);
  animation: inRays 3s linear both; }
.in-fire { position: absolute; inset: 0; pointer-events: none; }
.in-fire i { position: absolute; bottom: -60%; left: var(--x); width: var(--w); height: 70%; margin-left: calc(var(--w) / -2); border-radius: 50% 50% 40% 40% / 70% 70% 30% 30%;
  background: linear-gradient(0deg, transparent 0%, var(--f3) 25%, var(--f2) 55%, var(--f1) 80%, transparent 100%);
  filter: blur(6px); opacity: 0; mix-blend-mode: screen;
  animation: inFire var(--s) ease-in var(--d) infinite; }
.in-fire i:nth-child(2n) { height: 90%; }
.in-fire i:nth-child(3n) { height: 55%; }
.in-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255, 252, 230, .95), var(--glow) 35%, transparent 70%); opacity: 0; animation: inFlash .9s ease-out 1s both; }
.in-stage { position: relative; width: min(70vw, 340px); }
.in-glow { position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 62%); opacity: 0; animation: inGlow 2.2s ease-out .9s both; }
.in-fighter { position: relative; animation: inJump 1s cubic-bezier(.3, 1.4, .5, 1) .15s both, inShake .08s linear 1.05s 18; }
.intro .fighter .body { animation: none; }
.intro .fighter .f-head { animation: inHead .35s cubic-bezier(.3, 1.3, .5, 1) 1s both; }
.intro .fighter .e-up, .intro .fighter .m-scream { opacity: 0; animation: inShow .01s linear 1s both; }
.intro .fighter .e-happy, .intro .fighter .m-smile { animation: inHide .01s linear 1s both; }
.intro .fighter .aura { opacity: 0; animation: inShow .2s ease-out 1s both, aura .4s ease-in-out 1.2s infinite; }
@keyframes inFade { from { opacity: 0; } }
@keyframes inOut { to { opacity: 0; transform: scale(1.04); } }
@keyframes inRays { 0%, 30% { opacity: 0; transform: rotate(0deg) scale(.6); } 40% { opacity: 1; } 100% { opacity: .7; transform: rotate(40deg) scale(1); } }
@keyframes inFire { 0% { transform: translateY(0) scaleX(1); opacity: 0; } 15% { opacity: .95; } 100% { transform: translateY(-175%) scaleX(.6); opacity: 0; } }
@keyframes inFlash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes inGlow { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1.15); } 100% { opacity: .8; transform: scale(1); } }
@keyframes inJump { 0% { transform: translateY(40px) scale(.7); opacity: 0; } 30% { transform: translateY(-26px) scale(1.03); opacity: 1; } 50% { transform: translateY(0) scale(1); } 70% { transform: translateY(-14px); } 100% { transform: none; } }
@keyframes inShake { 0% { transform: translate(0, 0); } 25% { transform: translate(-3px, 1px); } 50% { transform: translate(2px, -2px); } 75% { transform: translate(-2px, 2px); } 100% { transform: translate(0, 0); } }
@keyframes inHead { 0% { transform: none; } 60% { transform: translateY(-9px) scale(1.08, .86); } 100% { transform: translateY(-7px) scale(1.05, .9); } }
@keyframes inShow { to { opacity: 1; } }
@keyframes inHide { to { opacity: 0; } }
.home-top { height: 12px; }
.card-title .link-btn.sm { margin-left: 8px; padding: 4px; }
.goal-row .si-l { text-align: left; display: flex; flex-direction: column; }
.goal-row .si-l small { color: var(--muted); font-size: 12.5px; }

/* ---------- v2.5: Avatar-Editor, Körpergewicht ---------- */
.hero-fig { display: block; padding: 0; background: none; border: 0; cursor: pointer; }
.avatar-fig { display: block; margin: -4px auto 10px; width: 112px; position: relative; }
.avatar-fig .fighter { width: 112px; height: 146px; display: block; }
.avatar-fig span { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.avatar-fig span .ic { width: 12px; height: 12px; }
.section-title .link-btn.sm { font-size: 13px; margin-left: 8px; vertical-align: middle; }

.av-body { padding-bottom: 40px; }
.av-preview { height: 260px; display: grid; place-items: center; position: relative; }
.av-preview .fx-wrap { width: 200px; height: 260px; }
.av-stages { display: flex; justify-content: center; gap: 6px; margin: 6px 0 2px; }
.av-stages button { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-weight: 700; color: var(--text-2); font-size: 13px; }
.av-stages button.on { background: var(--accent); color: #fff; }
.av-grid { display: grid; gap: 8px; }
.av-grid.two { grid-template-columns: 1fr 1fr; }
.av-grid.three { grid-template-columns: repeat(3, 1fr); }
.av-grid.four { grid-template-columns: repeat(4, 1fr); }
.av-opt { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.av-opt svg { width: 100%; height: 72px; display: block; }
.av-grid.four .av-opt svg { height: 86px; }
.av-opt small { font-size: 11.5px; font-weight: 650; color: var(--text-2); }
.av-opt.on { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft); }
.av-opt .aura, .av-opt .bolts { display: none; }
.av-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(30px, 1fr)); gap: 6px; padding: 4px 4px 6px; justify-items: center; }
.av-sw { width: 100%; max-width: 34px; aspect-ratio: 1; height: auto; border-radius: 50%; background: var(--c); border: 2px solid var(--line-2); }
.av-sw.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.fighter.head-only { overflow: hidden; }
.av-opt { overflow: hidden; }
.fighter.head-only .aura, .fighter.head-only .bolts, .fighter.head-only ellipse[opacity] { display: none; }

.rel-switch { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; flex: none; }
.rel-switch button { padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.rel-switch button.on { background: var(--accent); color: #fff; }
.rel-row { display: flex; justify-content: flex-end; margin: 4px 0 2px; }
.rel-head { display: flex; align-items: flex-start; gap: 10px; }
.rel-head .footnote { flex: 1; }
.rel-head .rel-switch { margin-top: 6px; }
.card-title .rel-switch { margin-left: auto; }
.tr small { display: block; color: var(--muted); font-size: 11px; }

.bw-now { text-align: center; margin: 6px 0 16px; }
.bw-now b { font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.bw-now span { font-size: 18px; color: var(--muted); margin-left: 4px; font-weight: 650; }
.bw-now small { display: block; color: var(--muted); font-weight: 600; margin-top: 2px; }
.bw-now small.up { color: var(--warn, #e8a33d); }
.bw-now small.down { color: var(--good, #3fb27f); }
.bw-editor .card { margin-top: 12px; }

/* ---------- v3: Gruppe, Liga, Challenges ---------- */
#tabbar.six a { font-size: 10px; }
#tabbar.six a .ic { width: 22px; height: 22px; }
.sheet-msg { white-space: pre-line; }
.tag { font-style: normal; font-size: 10.5px; font-weight: 750; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; vertical-align: middle; margin-left: 4px; }
.pill { font-size: 12px; font-weight: 700; color: var(--text-2); background: var(--surface-2); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg.two { grid-template-columns: 1fr 1fr; }

.lg-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: inherit; }
.lg-row:last-of-type { border-bottom: 0; }
.set-group .lg-row { padding: 10px 14px; }
.lg-row.me .lg-main b { color: var(--accent); }
.lg-rank { width: 22px; text-align: center; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.lg-rank.m1 { color: var(--gold); }
.lg-rank.m2 { color: #a7b0bd; }
.lg-rank.m3 { color: #c6814a; }
.lg-head { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); overflow: hidden; flex: none; display: block; }
.lg-head svg { width: 100%; height: 100%; }
.lg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lg-main b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-main small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.lg-main small .ic { width: 12px; height: 12px; }
.lg-main .bar { height: 5px; }
.lg-val { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.lg-val small { font-size: 11px; color: var(--muted); margin-left: 2px; }

.season-card { overflow: hidden; }
.season-top { display: flex; justify-content: space-between; align-items: flex-start; }
.season-top small { color: var(--muted); font-weight: 650; }
.season-top h3 { font-size: 21px; margin: 0; }
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end; gap: 6px; margin-top: 8px; }
.pod { display: flex; flex-direction: column; align-items: center; color: inherit; text-align: center; min-width: 0; }
.pod-fig { width: 100%; max-width: 110px; }
.pod.p1 .pod-fig { max-width: 140px; }
.pod-fig .fx-wrap { width: 100%; aspect-ratio: 200 / 260; }
.pod b { font-size: 14px; margin-top: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod small { color: var(--muted); font-weight: 700; }
.pod-base { width: 100%; margin-top: 6px; border-radius: 10px 10px 0 0; background: var(--surface-2); font-weight: 900; font-size: 20px; color: var(--muted); padding: 6px 0; }
.pod.p1 .pod-base { height: 58px; background: linear-gradient(var(--gold-soft, rgba(250, 178, 25, .2)), var(--surface-2)); color: var(--gold); }
.pod.p2 .pod-base { height: 40px; }
.pod.p3 .pod-base { height: 28px; }
.pod.me b { color: var(--accent); }

.ch-card .ch-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.ch-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ch-t b { font-size: 16.5px; }
.ch-t small { color: var(--muted); font-size: 12.5px; }
.ch-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.ch-row.me .lg-main b { color: var(--accent); }
.ch-row .lg-head { width: 34px; height: 34px; }
.ch-finished .bar i { background: var(--gold); }
.ch-invite { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; margin: 6px 0 8px; }
.ch-invite span { flex: 1; font-weight: 650; font-size: 13.5px; min-width: 140px; }
.ch-wait { display: block; color: var(--muted); margin-top: 6px; }
.ch-card .btn.block { margin-top: 8px; }
.ch-win { display: flex; align-items: center; gap: 10px; padding: 4px 0 8px; }
.ch-win-fig { width: 56px; }
.ch-win small { display: block; color: var(--muted); }
.ch-win b { color: var(--gold); font-size: 16px; }

.key-box { text-align: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: 16px; padding: 18px 12px; margin: 6px 0 12px; }
.key-box small { display: block; color: var(--muted); font-weight: 600; }
.key-box b { display: block; font: 800 24px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; margin: 6px 0; user-select: all; -webkit-user-select: all; }
.key-box.sm b { font-size: 18px; }
.key-link { font-size: 12.5px; color: var(--muted); word-break: break-all; text-align: center; margin-bottom: 14px; user-select: all; -webkit-user-select: all; }
.key-view .btn { margin-bottom: 10px; }
.adm-u.off { opacity: .55; }
.adm-u .si-l { display: flex; flex-direction: column; text-align: left; }
.adm-u .si-l small { color: var(--muted); font-size: 12px; }

.join-card { text-align: center; }
.join-card form { text-align: left; }
.join-fig { width: 130px; margin: 0 auto; }
.join-fig .fx-wrap { width: 130px; height: 169px; }

.mem-hero { margin-top: 4px; }
.mw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mw-head small { display: block; color: var(--muted); font-size: 12.5px; }
.mw-pr { color: var(--gold); font-weight: 750; display: inline-flex; align-items: center; gap: 3px; }
.mw-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; margin: 6px 0; }
.mw-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mw-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.mw-ex span { font-size: 12px; background: var(--surface-2); padding: 3px 8px; border-radius: 8px; color: var(--text-2); }
.mw-sets { display: none; margin-top: 10px; }
.mw.open .mw-sets { display: block; }
.mw.open .mw-ex, .mw.open .mw-toggle { display: none; }
.mw-e { padding: 6px 0; border-top: 1px solid var(--line); }
.mw-e > b { display: block; font-size: 14px; margin-bottom: 2px; }
.ch-form .chips { margin-bottom: 4px; }

/* ---------- Arena-Kampf ---------- */
.fight { position: fixed; inset: 0; z-index: 200; background: #07070a; opacity: 0; transition: opacity .25s; overflow: hidden; touch-action: none; }
.fight.open { opacity: 1; }
.fg-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 62%, #2b1d4a 0%, #120d1f 45%, #050507 80%); }
.fg-lines { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.05) 0 2deg, transparent 2deg 9deg); animation: fgSpin 6s linear infinite; }
.fight.charged .fg-lines { background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,210,63,.09) 0 2deg, transparent 2deg 8deg); animation-duration: 2.5s; }
.fg-ground { position: absolute; left: 0; right: 0; top: 68%; bottom: 0; background: linear-gradient(#2a2040, #0b0912); border-top: 2px solid rgba(255,210,63,.35); box-shadow: 0 -10px 40px rgba(255,170,40,.15); }
@keyframes fgSpin { to { transform: rotate(360deg); } }
.fg-stage { position: absolute; inset: 0; max-width: 560px; margin: 0 auto; padding-top: env(safe-area-inset-top); }
.fg-hud { position: absolute; top: calc(env(safe-area-inset-top) + 18px); left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff; }
.fg-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.fg-name.b { text-align: right; }
.fg-name b { font-size: 19px; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.fg-name small { color: #ffd23f; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.fg-vs { font-size: 30px; font-weight: 900; font-style: italic; color: #ffd23f; text-shadow: 0 0 18px rgba(255,140,0,.8); animation: fgVs .6s cubic-bezier(.2,1.8,.4,1) both; }
@keyframes fgVs { from { transform: scale(3); opacity: 0; } }
.fg-cat { position: absolute; top: calc(env(safe-area-inset-top) + 76px); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.fg-f { position: absolute; will-change: transform; transform-origin: 50% 85%; }
.fg-f .fighter { width: 100%; height: auto; display: block; }
.fg-f.b .fg-body { transform: scaleX(-1); }
.fg-f .aura, .fg-f .particles, .fg-f .bolts { opacity: 0; transition: opacity .3s; }
.fight.charged .fg-f .aura, .fight.charged .fg-f .particles { opacity: 1; }
.fight.charged .fg-f .bolts { opacity: 1; }
.fight.charged .fg-f .fighter { filter: drop-shadow(0 0 14px rgba(255,210,63,.55)); }
.fight.ko .fg-f .fighter { filter: none; }
.fg-beams { position: absolute; height: 18px; margin-top: -9px; opacity: 0; display: flex; pointer-events: none; }
.fg-beams i { display: block; height: 100%; }
.fg-beams .ba { background: linear-gradient(90deg, #8fd0ff, #e8f7ff 60%, #8fd0ff); border-radius: 9px 0 0 9px; box-shadow: 0 0 18px 6px rgba(80,170,255,.7); }
.fg-beams .bb { margin-left: auto; background: linear-gradient(90deg, #ffe680, #fff6cf 40%, #ffb03a); border-radius: 0 9px 9px 0; box-shadow: 0 0 18px 6px rgba(255,170,40,.7); }
.fg-clash { position: absolute; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, rgba(255,240,180,.9) 45%, rgba(255,150,40,0) 70%); animation: fgPulse .12s infinite alternate; }
@keyframes fgPulse { to { transform: scale(1.25); } }
.fg-hit { position: absolute; width: 120px; height: 120px; border-radius: 50%; opacity: 0; pointer-events: none; background: radial-gradient(circle, #fff 0 18%, rgba(255,230,140,.9) 30%, rgba(255,140,40,.4) 50%, transparent 70%); }
.fg-boom { position: absolute; width: 160px; height: 160px; border-radius: 50%; opacity: 0; pointer-events: none; background: radial-gradient(circle, #fff 0 15%, #ffe680 30%, #ff8a2b 50%, rgba(220,50,30,.5) 62%, transparent 72%); }
.fg-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.fg-result { position: absolute; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 22px); text-align: center; color: #fff; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .4s; pointer-events: none; }
.fight.done .fg-result { opacity: 1; transform: none; pointer-events: auto; }
.fg-result small { display: block; color: #ffd23f; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.fg-result b { display: block; font-size: 30px; font-weight: 900; margin: 2px 0; text-shadow: 0 0 20px rgba(255,170,40,.6); }
.fg-result span { display: block; color: rgba(255,255,255,.8); font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.fg-actions { display: flex; gap: 10px; justify-content: center; }
.fg-actions .btn { min-width: 130px; }
.fg-actions .btn.ghost { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.fg-skip { position: absolute; right: 14px; bottom: calc(env(safe-area-inset-bottom) + 14px); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; z-index: 2; }
.fight.done .fg-skip { display: none; }
.lg-fight { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.lg-fight .ic { width: 17px; height: 17px; }
.btn.fight-btn { background: linear-gradient(90deg, #eb6834, #e34948); color: #fff; border: 0; }
.fight.ko .fg-f.lose .aura, .fight.ko .fg-f.lose .particles, .fight.ko .fg-f.lose .bolts { opacity: 0; }
.fight.ko .fg-f.lose .fighter { filter: saturate(.6) brightness(.8); }
.demo-banner { display: flex; gap: 12px; align-items: flex-start; border-color: var(--gold-soft); background: linear-gradient(135deg, var(--gold-soft), var(--surface) 60%); }
.demo-banner b { display: block; }
.demo-banner small { color: var(--text-2); font-size: 12.5px; display: block; margin-top: 2px; }
.demo-tag { flex: none; font-size: 11px; font-weight: 900; letter-spacing: .08em; color: #1a1300; background: var(--gold); padding: 3px 7px; border-radius: 6px; margin-top: 2px; }
.tag.demo { color: var(--gold); background: var(--gold-soft); }

/* ---------- v3.3: Training-Kacheln ---------- */
.train-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 6px; }
.t-tile { position: relative; overflow: hidden; text-align: left; border-radius: var(--r); padding: 10px 10px 12px; color: #fff; min-height: 178px; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; isolation: isolate; box-shadow: 0 8px 22px -10px var(--tt-glow, rgba(0,0,0,.5)); }
.t-tile:active { transform: scale(.97); }
.t-tile b { font-size: 17px; font-weight: 850; letter-spacing: -.01em; text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.t-tile small { font-size: 11.5px; font-weight: 650; opacity: .95; line-height: 1.25; }
.t-tile em { font-style: normal; font-size: 10.5px; font-weight: 750; margin-top: 5px; align-self: flex-start; background: rgba(0,0,0,.22); padding: 2px 7px; border-radius: 99px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.t-tile.gym { background: linear-gradient(150deg, #f7b733, #fc4a1a 70%); --tt-glow: rgba(252,74,26,.6); }
.t-tile.cardio { background: linear-gradient(150deg, #00c6ff, #0052d4 75%); --tt-glow: rgba(0,110,255,.6); }
.t-tile.mobility { background: linear-gradient(150deg, #e56cf0, #7b2ff7 75%); --tt-glow: rgba(150,60,240,.6); }
.tt-fig { position: absolute; left: 50%; top: 4px; width: 104px; height: 104px; transform: translateX(-50%); z-index: -1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.tt-fig .pose { width: 100%; height: 100%; overflow: visible; }
.tt-fig .pose ellipse, .tt-fig .pose rect[style] { opacity: .35; }
.tt-fx { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.t-tile.cardio .tt-fx { background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.22) 22px 24px, transparent 24px 50px); background-size: 100% 2px, auto; mask: linear-gradient(transparent 8%, #000 20%, #000 55%, transparent 70%); -webkit-mask: linear-gradient(transparent 8%, #000 20%, #000 55%, transparent 70%); animation: ttSpeed .5s linear infinite; }
.t-tile.cardio .tt-fx::after { content: ''; position: absolute; right: 8px; top: 10px; width: 22px; height: 30px; background: #fff36b; clip-path: polygon(60% 0, 10% 55%, 45% 55%, 30% 100%, 90% 40%, 55% 40%); filter: drop-shadow(0 0 6px #fff36b); animation: ttBolt 1.2s steps(2) infinite; }
.t-tile.gym .tt-fx { background: radial-gradient(circle at 50% 32%, rgba(255,230,120,.55), transparent 48%); animation: ttPulse 1.6s ease-in-out infinite; }
.t-tile.mobility .tt-fx { background: radial-gradient(circle at 50% 36%, rgba(255,255,255,.35), transparent 30%), conic-gradient(from 0deg at 50% 36%, rgba(255,255,255,0), rgba(255,255,255,.18), rgba(255,255,255,0) 30%); animation: ttSpin 5s linear infinite; }
@keyframes ttSpeed { to { background-position: -50px 0; } }
@keyframes ttBolt { 50% { opacity: .25; } }
@keyframes ttPulse { 50% { opacity: .55; transform: scale(1.06); } }
@keyframes ttSpin { to { filter: hue-rotate(40deg); } }
@media (prefers-reduced-motion: reduce) { .tt-fx, .tt-fx::after { animation: none !important; } }
#gym-list { scroll-margin-top: 12px; }
#gym-list .section-title { display: flex; align-items: center; gap: 6px; }
.quick.bottom { margin: 22px 0 6px; display: grid; gap: 8px; }
.demo-tag.sm { font-size: 9.5px; padding: 2px 5px; margin: 0 0 0 auto; }
.ai-badge.xs { min-width: 0; height: 15px; font-size: 9px; padding: 0 4px; border-radius: 4px; vertical-align: 1px; }
.si-sub { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 1px; }

/* ---------- Statistik: Woche, Kalender, Balance ---------- */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; margin-bottom: 12px; }
.week-nav > div { text-align: center; }
.week-nav b { display: block; font-size: 15px; }
.week-nav small { color: var(--muted); font-size: 12.5px; }
.week-nav .icon-btn[disabled] { opacity: .3; }
.week-days { padding: 6px 14px; }
.wd-row { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.wd-row:first-child { border-top: 0; }
.wd-row.future { opacity: .45; }
.wd-d { width: 34px; flex: none; text-align: center; }
.wd-d b { display: block; font-size: 13px; }
.wd-d small { color: var(--muted); font-size: 11.5px; }
.wd-row.today .wd-d b { color: var(--accent); }
.wd-w { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.wd-w a { display: block; background: var(--surface-2); border-radius: 10px; padding: 6px 10px; }
.wd-w a b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-w a small { color: var(--muted); font-size: 12px; }
.heat-row { display: flex; align-items: flex-start; }
.heat-days { flex: none; }
.heat-row .heat-scroll { flex: 1; min-width: 0; }
.bal-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.std-card { margin-bottom: 12px; }

/* ---------- Arena: Saison, Rangliste, Könige, Vorschläge ---------- */
.season-card.tap { cursor: pointer; }
.season-card.tap:active { transform: scale(.99); }
.pod-hint { text-align: center; color: var(--muted); font-size: 12.5px; font-weight: 650; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.pod-hint .ic { width: 14px; height: 14px; }
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mg { background: var(--surface-2); border-radius: 12px; padding: 8px 6px; text-align: center; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mg small { color: var(--muted); font-size: 11px; font-weight: 650; }
.mg b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mg .lg-head { width: 30px; height: 30px; }
.mg.run { outline: 1.5px dashed var(--gold); outline-offset: -1.5px; }
.mg.me { background: var(--gold-soft); }
.rank-view .seg { margin-bottom: 12px; }
.sug-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 10px; border: 1px solid var(--line); }
.sug-card:active { transform: scale(.99); }
.sug-fig { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.sug-fig .fighter { width: 100%; height: 100%; }
.sug-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sug-main small { font-size: 13px; color: var(--text-2); }
.sug-main em { font-style: normal; font-weight: 750; color: var(--text); }
.sug-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #eb6834, #e34948); color: #fff; flex: none; }
.king-card .king-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; position: relative; }
.king-fig { width: 78px; flex: none; }
.king-fig .fx-wrap { width: 78px; height: 101px; }
.king-info { flex: 1; min-width: 0; }
.king-info small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 750; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.king-info h3 { font-size: 21px; font-weight: 850; margin: 1px 0 2px; }
.king-info span { font-size: 13.5px; color: var(--text-2); font-weight: 650; }
.king-crown { position: absolute; right: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); }
.king-card.k-gym { background: linear-gradient(160deg, rgba(252,74,26,.13), var(--surface) 55%); }
.king-card.k-cardio { background: linear-gradient(160deg, rgba(0,110,255,.14), var(--surface) 55%); }
.king-card.k-mobility { background: linear-gradient(160deg, rgba(150,60,240,.14), var(--surface) 55%); }
.king-card .btn { margin-top: 8px; }
.lg-val.sm { font-size: 12.5px; max-width: 46%; text-align: right; white-space: normal; line-height: 1.25; }
.chip-sep { flex: none; width: 1px; background: var(--line); margin: 4px 2px; }

/* ---------- Könige-Duelle ---------- */
.showdown .fg-bg { background: radial-gradient(ellipse at 50% 70%, #1b2b4a 0%, #0c1020 50%, #050507 85%); }
.sd-lift .fg-bg { background: radial-gradient(ellipse at 50% 70%, #4a261b 0%, #1f100c 50%, #050507 85%); }
.sd-stretch .fg-bg { background: radial-gradient(ellipse at 50% 70%, #3a1b4a 0%, #170c20 50%, #050507 85%); }
.sd-head { position: absolute; top: calc(env(safe-area-inset-top) + 16px); left: 0; right: 0; text-align: center; color: #fff; z-index: 2; }
.sd-head small { display: block; color: #ffd23f; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.sd-head b { display: block; font-size: 22px; font-weight: 900; }
.sd-head span { color: rgba(255,255,255,.65); font-size: 13px; font-weight: 650; }
.sd-field { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top) + 96px); bottom: 34%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; }
.sd-lane { position: relative; flex: 1; min-height: 0; display: flex; align-items: flex-end; }
.sd-race .sd-lane { border-bottom: 2px solid rgba(255,255,255,.12); }
.sd-track { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(transparent, rgba(255,255,255,.05)), linear-gradient(90deg, rgba(255,255,255,.25) 0 26px, transparent 26px) 0 100% / 60px 3px repeat-x; animation: sdTrack .35s linear infinite; }
.showdown.done .sd-track { animation: none; }
@keyframes sdTrack { from { background-position: 0 0, 0 100%; } to { background-position: 0 0, -60px 100%; } }
.sd-fig { position: relative; height: 100%; aspect-ratio: 220 / 226; max-width: 48%; will-change: transform; transform-origin: 50% 90%; }
.sd-fig .sd-svg { display: block; width: 100%; height: 100%; overflow: visible; position: relative; z-index: 1; }
.sd-fig .pose ellipse { display: none; }
.sd-aura { position: absolute; inset: 8% 18% 4%; border-radius: 50%; background: radial-gradient(ellipse at 50% 60%, rgba(255,220,90,.55), rgba(255,150,40,0) 68%); opacity: 0; transition: opacity .3s; }
.sd-fig.charged .sd-aura { opacity: 1; animation: aura .5s ease-in-out infinite; }
.sd-fig.charged .sd-svg { filter: drop-shadow(0 0 10px rgba(255,210,63,.7)); }
.sd-bolts { position: absolute; inset: -6% -10% 10%; width: 120%; height: 96%; z-index: 2; fill: #fff36b; filter: drop-shadow(0 0 6px #ffe14d); opacity: 0; pointer-events: none; }
.sd-fig.zoom .sd-bolts { opacity: 1; animation: bolt .25s steps(2) infinite; }
.sd-fig.zoom::before { content: ''; position: absolute; right: 70%; top: 30%; width: 160%; height: 40%; background: repeating-linear-gradient(180deg, rgba(150,220,255,.45) 0 2px, transparent 2px 9px); mask: linear-gradient(90deg, transparent, #000); -webkit-mask: linear-gradient(90deg, transparent, #000); }
.sd-fig.worst .sd-svg { filter: saturate(.55); }
.sd-pop { position: absolute; left: 50%; top: 2%; transform: translateX(-50%) scale(.5); color: #fff; font-weight: 900; font-size: 18px; white-space: nowrap; opacity: 0; z-index: 3; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.sd-pop.show { animation: sdPop 1.1s ease-out both; }
.sd-fig.worst .sd-pop { color: #ff8a8a; }
@keyframes sdPop { 0% { opacity: 0; transform: translateX(-50%) scale(.5); } 15% { opacity: 1; transform: translateX(-50%) scale(1.15); } 70% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) translateY(-14px); } }
.sd-tag { position: absolute; left: 8px; top: 4px; color: #fff; z-index: 2; pointer-events: none; max-width: 60%; }
.sd-tag b { display: block; font-size: 13.5px; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.sd-tag small { color: #ffd23f; font-size: 11.5px; font-weight: 750; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.sd-lift .sd-field, .sd-stretch .sd-field { flex-direction: row; align-items: stretch; }
.sd-lift .sd-lane, .sd-stretch .sd-lane { flex-direction: column; justify-content: flex-end; align-items: center; border-bottom: 2px solid rgba(255,255,255,.14); }
.sd-lift .sd-fig, .sd-stretch .sd-fig { height: auto; width: 100%; max-width: 230px; max-height: calc(100% - 52px); }
.sd-lift .sd-tag, .sd-stretch .sd-tag { position: static; text-align: center; max-width: 100%; order: 2; padding: 6px 4px 0; }
.sd-msg { position: absolute; left: 0; right: 0; top: 46%; text-align: center; color: #fff; font-size: 34px; font-weight: 900; font-style: italic; pointer-events: none; opacity: 0; text-shadow: 0 0 20px rgba(255,140,0,.8); z-index: 3; }
.sd-msg.show { animation: sdMsg .9s ease-out both; }
@keyframes sdMsg { 0% { opacity: 0; transform: scale(2); } 25% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; } }
.sd-result { bottom: calc(env(safe-area-inset-bottom) + 16px); }
.sd-rank { background: rgba(255,255,255,.06); border-radius: 14px; padding: 6px 10px; margin: 6px auto 12px; max-width: 420px; text-align: left; }
.sd-rank div { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13.5px; color: rgba(255,255,255,.85); flex-wrap: wrap; }
.sd-rank div.top { color: #fff; font-weight: 800; }
.sd-rank span { display: inline; margin: 0; color: inherit; }
.sd-rank em { font-style: normal; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; }
.sd-badge { font-style: normal; font-size: 10.5px; font-weight: 850; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.14); color: #ffb0b0; display: inline-flex; align-items: center; gap: 2px; }
.sd-badge.gold { background: rgba(255,210,63,.2); color: #ffd23f; }
.sd-badge .ic { width: 11px; height: 11px; }
.showdown.many .sd-tag b { font-size: 12px; }

/* ---------- Tickets ---------- */
.tk-new { display: flex; gap: 8px; margin-bottom: 10px; }
.tk-new .btn { flex: 1; }
.tk-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 8px; border: 1px solid var(--line); }
.tk-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--gold-soft); color: var(--gold); }
.tk-ic.bug { background: rgba(208, 59, 59, .14); color: var(--danger); }
.tk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tk-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-main small, .tk-side small { color: var(--muted); font-size: 12px; }
.tk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.tk-side small { display: inline-flex; align-items: center; gap: 3px; }
.tk-st { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.tk-st.open { background: rgba(57, 135, 229, .16); color: var(--accent); }
.tk-st.progress { background: rgba(250, 178, 25, .16); color: var(--warn); }
.tk-st.done { background: var(--good-soft); color: var(--good-text); }
.tk-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.tk-head > div { flex: 1; min-width: 0; }
.tk-head h3 { font-size: 19px; margin-bottom: 2px; }
.tk-head small { color: var(--muted); }
.tk-body { white-space: normal; line-height: 1.45; margin-bottom: 8px; }
.tk-c { padding: 10px 12px; margin-bottom: 8px; }
.tk-c small { color: var(--muted); font-size: 12px; }
.tk-c p { margin-top: 2px; }
.tk-cform { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.tk-cform textarea { flex: 1; resize: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; color: var(--text); font: inherit; }

/* ---------- v3.4: Zugangsdaten ---------- */
.key-box.acc { text-align: left; padding: 14px 16px; }
.key-box.acc small { margin-top: 6px; }
.key-box.acc b { font-size: 19px; letter-spacing: .02em; margin: 2px 0 4px; word-break: break-all; }
.key-box.acc b.sm { font-size: 14px; }

/* ---------- Onboarding ---------- */
.onb { position: fixed; inset: 0; z-index: 210; background: var(--bg); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 10px) 20px calc(env(safe-area-inset-bottom) + 14px); opacity: 0; transition: opacity .3s; overflow: hidden; touch-action: pan-y; }
.onb.open { opacity: 1; }
.onb::before { content: ''; position: absolute; left: -20%; right: -20%; top: -10%; height: 70%; background: radial-gradient(ellipse 60% 50% at 50% 55%, var(--onb-glow, rgba(57,135,229,.28)), transparent 100%); pointer-events: none; }
.onb-top { display: flex; justify-content: space-between; align-items: center; height: 40px; position: relative; max-width: 560px; width: 100%; margin: 0 auto; }
.onb-step { color: var(--muted); font-size: 13px; font-weight: 700; }
.onb-skip { color: var(--muted); font-weight: 650; font-size: 15px; padding: 8px 4px; }
.onb-slide { flex: 1; min-height: 0; overflow-y: auto; position: relative; max-width: 560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; scrollbar-width: none; }
.onb-slide::-webkit-scrollbar { display: none; }
.onb-slide.in-r { animation: onbR .35s ease both; }
.onb-slide.in-l { animation: onbL .35s ease both; }
@keyframes onbR { from { opacity: 0; transform: translateX(40px); } }
@keyframes onbL { from { opacity: 0; transform: translateX(-40px); } }
.onb-fig { height: min(28vh, 230px); flex: none; display: flex; align-items: center; justify-content: center; margin: 4px 0 12px; }
.onb-slide h2 { font-size: 28px; font-weight: 850; letter-spacing: -.02em; text-align: center; }
.onb-text { text-align: center; color: var(--text-2); font-size: 15.5px; line-height: 1.45; margin: 8px auto 14px; max-width: 420px; }
.onb-list { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 8px; width: 100%; max-width: 440px; }
.onb-list li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: 14.5px; line-height: 1.35; }
.onb-list li > span { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.onb-list li > span .ic { width: 18px; height: 18px; }
.onb-q { margin: 14px auto 0; width: 100%; max-width: 440px; text-align: center; }
.onb-q > b { display: block; font-size: 15px; margin-bottom: 8px; }
.onb-q small { color: var(--muted); font-weight: 600; }
.onb-chips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 8px; }
.onb-chips .chip { min-width: 0; padding: 0; }
.onb-bw { display: flex; align-items: center; justify-content: center; gap: 8px; }
.onb-bw input { width: 120px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 700 20px/1 inherit; text-align: center; }
.onb-bw span { color: var(--muted); font-weight: 700; }
.onb-actions { display: flex; gap: 8px; margin: 14px auto 0; width: 100%; max-width: 440px; }
.onb-actions .btn { flex: 1; }
.onb-bottom { position: relative; max-width: 560px; width: 100%; margin: 10px auto 0; }
.onb-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.onb-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--surface-3); transition: width .25s, background .25s; cursor: pointer; }
.onb-dots i.on { width: 22px; background: var(--accent); }
.onb-nav { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.onb-nav .btn { height: 50px; font-size: 16px; }
/* Illustrationen */
.onb-fx { width: 170px; }
.onb-fx .fx-wrap { width: 170px; height: 221px; }
.onb-poses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 380px; height: 100%; }
.onb-poses > div { border-radius: 18px; padding: 6px; display: flex; align-items: center; }
.onb-poses .pose { width: 100%; height: auto; overflow: visible; }
.onb-poses .pose ellipse, .onb-poses .pose rect[style] { opacity: .35; }
.p-gym { background: linear-gradient(150deg, #f7b733, #fc4a1a 70%); }
.p-cardio { background: linear-gradient(150deg, #00c6ff, #0052d4 75%); }
.p-mob { background: linear-gradient(150deg, #e56cf0, #7b2ff7 75%); }
.onb-stages { display: flex; align-items: flex-end; justify-content: center; gap: 4px; width: 100%; max-width: 420px; }
.onb-st { flex: 1; text-align: center; }
.onb-st > div { animation: onbPop .5s cubic-bezier(.2,1.6,.4,1) both; }
.onb-st:nth-child(2) > div { animation-delay: .12s; } .onb-st:nth-child(3) > div { animation-delay: .24s; } .onb-st:nth-child(4) > div { animation-delay: .36s; }
.onb-st:nth-child(1) { transform: scale(.82); transform-origin: bottom; } .onb-st:nth-child(2) { transform: scale(.9); transform-origin: bottom; }
.onb-st small { display: block; font-size: 11px; font-weight: 750; color: var(--muted); margin-top: 2px; white-space: nowrap; }
@keyframes onbPop { from { opacity: 0; transform: translateY(20px) scale(.8); } }
.onb-chart { width: 220px; height: auto; }
.onb-chart rect { fill: var(--accent); opacity: .85; transform-origin: bottom; transform-box: fill-box; animation: onbBar .6s ease both; }
.onb-line { fill: none; stroke: #ffd23f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 220; animation: onbLine 1.2s .4s ease both; }
@keyframes onbBar { from { transform: scaleY(0); } }
@keyframes onbLine { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
.onb-duel { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; max-width: 360px; }
.onb-duel > div { width: 40%; }
.onb-duel .flip { transform: scaleX(-1); }
.onb-duel i { font-style: italic; font-weight: 900; font-size: 30px; color: #ffd23f; text-shadow: 0 0 18px rgba(255,140,0,.7); animation: fgVs .6s cubic-bezier(.2,1.8,.4,1) both; }
.onb-data { display: flex; gap: 18px; }
.onb-data .ic { width: 64px; height: 64px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.onb:has(.s-train) { --onb-glow: rgba(252,74,26,.25); }
.onb:has(.s-streak) { --onb-glow: rgba(255,210,63,.25); }
.onb:has(.s-arena) { --onb-glow: rgba(150,60,240,.28); }
.onb:has(.s-stats) { --onb-glow: rgba(0,150,255,.25); }
@media (prefers-reduced-motion: reduce) { .onb-slide, .onb-st > div, .onb-chart rect, .onb-line { animation: none !important; } }
@media (max-height: 700px) { .onb-fig { height: 150px; } .onb-slide h2 { font-size: 24px; } .onb-list li { padding: 7px 10px; font-size: 13.5px; } }
