:root {
  --accent: #c6ff00;
  --accent-ink: #0b0d10;
  --bg: #0b0d10;
  --surface: #15181d;
  --surface-2: #1e2229;
  --surface-3: #2a2f38;
  --line: #262b33;
  --text: #f2f4f7;
  --muted: #8b94a1;
  --faint: #5d6570;
  --danger: #ff4d5e;
  --gold: #ffc53d;
  --radius: 16px;
  --tabbar-h: 58px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, select { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---------- Gerüst ---------- */
#app { display: flex; flex-direction: column; height: 100%; }
#topbar {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(var(--safe-top) + 8px) 16px 10px;
  background: rgba(11, 13, 16, .88);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
#topbar.scrolled { border-bottom-color: var(--line); }
#title { margin: 0; font-size: 17px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#topbar-left { justify-self: start; }
#topbar-right { justify-self: end; display: flex; gap: 6px; }
.top-btn { color: var(--accent); font-weight: 600; font-size: 16px; padding: 6px 2px; display: inline-flex; align-items: center; gap: 4px; }
.top-btn svg { width: 22px; height: 22px; }

#view {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 16px calc(var(--tabbar-h) + var(--safe-bottom) + 24px);
}
#view.has-active { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 90px); }

#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(16, 18, 22, .92);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
#tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: 10.5px; font-weight: 600; }
#tabbar button svg { width: 25px; height: 25px; }
#tabbar button.active { color: var(--accent); }

#activebar {
  position: fixed; left: 10px; right: 10px; z-index: 6;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 8px);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  font-weight: 700;
}
#activebar .grow { flex: 1; min-width: 0; }
#activebar small { display: block; font-weight: 600; opacity: .7; font-size: 12px; }
#activebar .timer { font-size: 22px; font-variant-numeric: tabular-nums; }

/* ---------- Bausteine ---------- */
h2.section { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 22px 4px 8px; }
h2.section:first-child { margin-top: 10px; }
.big-title { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 6px 2px 2px; }
.sub { color: var(--muted); font-size: 14px; margin: 0 2px 10px; }

.card { background: var(--surface); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.card.tap:active { background: var(--surface-2); }
.list { background: var(--surface); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.row:last-child { border-bottom: 0; }
.row:active { background: var(--surface-2); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .chev { width: 18px; height: 18px; color: var(--faint); flex: none; }
.row .right { color: var(--muted); font-size: 14px; text-align: right; flex: none; }

.thumb { width: 44px; height: 44px; border-radius: 11px; flex: none; background: var(--surface-3) center/cover no-repeat; display: grid; place-items: center; color: var(--muted); font-weight: 800; font-size: 15px; }
.thumb svg { width: 22px; height: 22px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 17px; background: var(--surface-2); color: var(--text); }
.btn:active { filter: brightness(1.2); transform: scale(.99); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.danger { background: rgba(255, 77, 94, .14); color: var(--danger); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { min-height: 40px; font-size: 15px; padding: 8px 14px; width: auto; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }

.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--surface-3); color: var(--muted); margin: 0 4px 4px 0; }
.chip.accent { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.chip.gold { background: rgba(255,197,61,.16); color: var(--gold); }
.chips-select { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-select button { padding: 8px 13px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 14px; }
.chips-select button.on { background: var(--accent); color: var(--accent-ink); }

.seg { display: flex; background: var(--surface); border-radius: 12px; padding: 3px; margin: 8px 0 12px; }
.seg button { flex: 1; padding: 8px 4px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--surface-3); color: var(--text); }

.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty svg { width: 46px; height: 46px; color: var(--faint); margin-bottom: 10px; }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

.search { width: 100%; padding: 11px 14px; border-radius: 12px; background: var(--surface); border: 0; color: var(--text); font-size: 16px; margin: 6px 0 8px; outline: none; }

/* ---------- Formulare ---------- */
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 2px 6px; }
.input, textarea.input, select.input {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); font-size: 16px; outline: none; font-family: inherit;
}
.input:focus { border-color: var(--accent); }
textarea.input { min-height: 80px; resize: vertical; }
select.input { -webkit-appearance: none; appearance: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.photo-pick { display: flex; align-items: center; gap: 12px; }
.photo-pick .thumb { width: 72px; height: 72px; border-radius: 14px; }

/* ---------- Sheet ---------- */
#sheet-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.6); animation: fade .2s; }
#sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21;
  max-height: calc(100% - var(--safe-top) - 24px);
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: 22px 22px 0 0;
  animation: up .25s cubic-bezier(.2,.8,.2,1);
}
#sheet.full { height: calc(100% - var(--safe-top) - 12px); }
.sheet-head { display: grid; grid-template-columns: minmax(70px, auto) 1fr minmax(70px, auto); gap: 8px; align-items: center; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; font-size: 17px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-head .top-btn { white-space: nowrap; }
.sheet-head .l { justify-self: start; } .sheet-head .r { justify-self: end; }
.sheet-body { overflow-y: auto; padding: 16px 16px calc(var(--safe-bottom) + 20px); -webkit-overflow-scrolling: touch; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

#toast {
  position: fixed; left: 50%; top: calc(var(--safe-top) + 12px); z-index: 30; transform: translateX(-50%);
  padding: 12px 18px; border-radius: 14px; background: var(--surface-3); color: var(--text);
  font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: 90%; text-align: center;
  animation: drop .3s cubic-bezier(.2,.8,.2,1);
}
#toast.record { background: var(--gold); color: #1a1300; }
@keyframes drop { from { transform: translate(-50%, -30px); opacity: 0; } }

/* ---------- Training ---------- */
.hero { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, var(--surface)) 0%, var(--surface) 70%); border-radius: 20px; padding: 18px; margin: 10px 0 12px; }
.hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero h3 { font-size: 24px; margin: 4px 0 4px; letter-spacing: -.01em; }
.hero p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.stat-strip .card { margin: 0; padding: 12px; }
.stat-strip b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stat-strip span { color: var(--muted); font-size: 12px; }

.wo-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px 12px; }
.wo-head .clock { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }

.ex-card { background: var(--surface); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.ex-card-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 8px 14px; }
.ex-card-head .grow { flex: 1; min-width: 0; }
.ex-card-head .title { font-weight: 700; font-size: 17px; }
.ex-card-head .meta { color: var(--muted); font-size: 13px; }
.ex-card .hint { margin: 0 14px 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); flex: none; }
.icon-btn:active { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }

.set-grid { display: grid; grid-template-columns: 34px 1fr 1fr 1fr 48px; gap: 6px; align-items: center; padding: 4px 10px; }
.set-grid.cardio { grid-template-columns: 34px 1fr 1fr 1fr 48px; }
.set-grid.head { color: var(--faint); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; padding-bottom: 2px; }
.set-grid.head > div { text-align: center; }
.set-grid .no { text-align: center; font-weight: 800; color: var(--muted); font-size: 15px; border-radius: 8px; padding: 8px 0; }
.set-grid .no.warm { color: var(--gold); }
.set-grid .prev { text-align: center; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.set-grid input {
  width: 100%; min-width: 0; padding: 10px 2px; border-radius: 10px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); font-size: 18px; font-weight: 700; text-align: center;
  font-variant-numeric: tabular-nums; outline: none;
}
.set-grid input:focus { border-color: var(--accent); }
.set-grid input::placeholder { color: var(--faint); font-weight: 600; }
.check { width: 44px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); justify-self: end; }
.check svg { width: 22px; height: 22px; stroke-width: 3; }
.set-row.done { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.set-row.done .check { background: var(--accent); color: var(--accent-ink); }
.set-row.done input { background: transparent; }
.set-row .pr { color: var(--gold); }
.ex-actions { display: flex; gap: 8px; padding: 6px 12px 12px; }
.ex-actions .btn { min-height: 40px; font-size: 14px; }

.rest-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 600; }

/* Pausen-Timer groß */
.rest-big { text-align: center; padding: 10px 0 6px; }
.rest-big .t { font-size: 76px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.rest-big .next { color: var(--muted); margin-top: 8px; }
.ring { width: 230px; height: 230px; margin: 4px auto 14px; position: relative; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { stroke-width: 10; }

/* ---------- Statistik ---------- */
.chart { width: 100%; height: 190px; display: block; }
.chart text { fill: var(--faint); stroke: none; font-size: 10px; font-family: inherit; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.kpis .card { margin: 0; }
.kpis b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpis span { color: var(--muted); font-size: 12.5px; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 54px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-row .track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 99px; background: var(--accent); }
.bar-row .v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal .dow { text-align: center; font-size: 11px; color: var(--faint); font-weight: 700; padding-bottom: 2px; }
.cal .d { aspect-ratio: 1; border-radius: 9px; display: grid; place-items: center; font-size: 13px; color: var(--muted); background: var(--surface-2); font-variant-numeric: tabular-nums; }
.cal .d.on { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.cal .d.today { outline: 2px solid var(--muted); outline-offset: -2px; }
.cal .d.blank { background: transparent; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav b { font-size: 16px; }

.week-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.week-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.week-bars .b { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--accent); min-height: 3px; }
.week-bars .b.zero { background: var(--surface-3); }
.week-bars span { font-size: 10px; color: var(--faint); }

.pr-list .row .right b { color: var(--text); display: block; font-size: 16px; }

/* Verlauf */
.wo-detail .set-line { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.wo-detail .set-line b { color: var(--text); }
.photo-full { width: 100%; border-radius: 14px; display: block; margin-bottom: 12px; }
.color-dots { display: flex; gap: 12px; flex-wrap: wrap; }
.color-dots button { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; }
.color-dots button.on { border-color: var(--text); }

/* ---------- Version 1.1 ---------- */
.greet { margin: 8px 2px 4px; }
.greet .big-title { font-size: 28px; margin-top: 2px; }
.goal-card { display: flex; align-items: center; gap: 14px; }
.goal-card .grow { flex: 1; min-width: 0; }
.goal-ring { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; }
.goal-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.goal-ring circle { stroke-width: 7; transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); }
.goal-ring b { font-size: 20px; font-variant-numeric: tabular-nums; }
.goal-ring small { font-size: 12px; color: var(--muted); }
.streak { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--gold); }
.stat-strip small { font-weight: 600; }

.hint.up { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); }
.hint.up b { color: var(--accent); }

.ex-card.ss { border-left: 3px solid var(--accent); }
.ex-card.ss-next { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; margin-bottom: 3px; }
.ex-card.ss-prev { border-top-left-radius: 4px; border-top-right-radius: 4px; }
.ss-label { padding: 10px 14px 0; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.link-btn { display: block; width: 100%; margin: -4px 0 6px; padding: 8px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--faint); border: 1px dashed var(--surface-3); }
.link-btn.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

.feel-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.feel-row button { background: var(--surface-2); border-radius: 14px; padding: 10px 4px; font-size: 12px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px solid transparent; }
.feel-row button span { font-size: 26px; line-height: 1; }
.feel-row button.on { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); }

.badge-new { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid rgba(255,197,61,.35); animation: drop .5s cubic-bezier(.2,.8,.2,1); }
.badge-new .badge-ico { font-size: 30px; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge { background: var(--surface); border-radius: 14px; padding: 12px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.badge .badge-ico { font-size: 32px; line-height: 1.1; filter: grayscale(1); opacity: .28; }
.badge b { font-size: 12.5px; color: var(--faint); }
.badge span { font-size: 10.5px; color: var(--faint); line-height: 1.25; }
.badge em { font-style: normal; font-size: 10.5px; color: var(--gold); font-weight: 700; margin-top: 2px; }
.badge.got { background: linear-gradient(160deg, rgba(255,197,61,.14), var(--surface) 60%); }
.badge.got .badge-ico { filter: none; opacity: 1; }
.badge.got b { color: var(--text); }
.badge.got span { color: var(--muted); }

.mmap-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mmap-wrap > div { display: flex; flex-direction: column; align-items: center; }
.mmap-wrap span { font-size: 11px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mmap { width: 100%; max-width: 140px; height: auto; }
.mmap ellipse, .mmap rect, .mmap path, .mmap circle { stroke: none; }
.mmap-legend { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 10px; font-size: 11px; color: var(--faint); }
.mmap-legend i { width: 90px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 30%, var(--surface)), var(--accent)); }

.week-bars .b.low { background: color-mix(in srgb, var(--accent) 40%, var(--surface-3)); }

.switch { width: 50px; height: 30px; border-radius: 99px; background: var(--surface-3); position: relative; flex: none; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--accent); }
.switch.on i { transform: translateX(20px); }

/* Rekord-Moment */
#celebrate { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(0,0,0,.45); }
#celebrate .cel-card { background: linear-gradient(160deg, #3a2c00, var(--surface) 70%); border: 1px solid rgba(255,197,61,.5); border-radius: 24px; padding: 26px 30px; text-align: center; min-width: 250px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
#celebrate.show .cel-card { animation: celebrate .55s cubic-bezier(.2,1.4,.4,1); }
.cel-trophy { font-size: 64px; line-height: 1; }
#celebrate.show .cel-trophy { animation: wobble .9s .2s ease-in-out; }
.cel-title { font-size: 26px; font-weight: 800; color: var(--gold); margin-top: 8px; letter-spacing: -.01em; }
.cel-ex { color: var(--muted); font-weight: 600; margin-top: 2px; }
.cel-val { font-size: 30px; font-weight: 800; margin-top: 8px; font-variant-numeric: tabular-nums; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 41; pointer-events: none; }
@keyframes celebrate { from { transform: scale(.4); opacity: 0; } }
@keyframes wobble { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg) scale(1.1); } 75% { transform: rotate(12deg) scale(1.1); } }

/* Animationen */
.set-row.pop .check { animation: checkpop .4s cubic-bezier(.2,1.6,.4,1); }
.set-row.pop { animation: rowflash .6s ease-out; }
@keyframes checkpop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes rowflash { from { background: color-mix(in srgb, var(--accent) 30%, transparent); } }
.pop-in { animation: celebrate .6s cubic-bezier(.2,1.4,.4,1); }
#view.anim-push { animation: slidein .28s cubic-bezier(.2,.8,.2,1); }
#view.anim-pop { animation: slideback .24s cubic-bezier(.2,.8,.2,1); }
#view.anim-fade { animation: fade .2s ease-out; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
@keyframes slideback { from { transform: translateX(-30px); opacity: 0; } }

#splash { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; transition: opacity .4s; }
#splash img { width: 96px; height: 96px; border-radius: 22px; animation: splash 1s ease-out; }
#splash b { font-size: 22px; letter-spacing: .02em; color: var(--accent); animation: fade .8s ease-out; }
#splash.out { opacity: 0; pointer-events: none; }
@keyframes splash { from { transform: scale(.7); opacity: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.foot-note { color: var(--faint); font-size: 12.5px; text-align: center; margin: 18px 10px; }
.drag-handle { color: var(--faint); }
