/* Braindrop 2.0 – Dark Glass Prism · mobile first
   Farbwelt angelehnt an hcis.joshua-entwurf.de (Slate #1b3a4b, Gelb #ffc21a, Georgia) */

@property --pa { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --bg0: #03080c; --bg1: #07131a; --bg2: #0b1a22;
  --slate: #1b3a4b; --water: #2f5d75; --sky: #7fa6ba; --tint: #ecf0f2;
  --yellow: #ffc21a; --yellow-2: #ffd75e; --yellow-d: #b77d00;
  --green: #3ddc97; --green-d: #1c8a5c; --red: #ff6b6b; --red-d: #a33a3a;
  --violet: #a993ff; --cyan: #5ee7ff; --pink: #ff6fa3; --orange: #ff9f45;
  --text: #eef4f7; --text-2: #a9bcc7; --text-3: #6f8794;
  --glass: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.03));
  --glass-2: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.05));
  --line: rgba(255,255,255,.10); --line-2: rgba(255,255,255,.17);
  --r: 22px; --r-sm: 14px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.22,.9,.3,1); --ease-soft: cubic-bezier(.32,.72,0,1);
  --prism: conic-gradient(from var(--pa), #5ee7ff, #a993ff, #ff6fa3, #ffc21a, #3ddc97, #5ee7ff);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg1); }
body {
  margin: 0; min-height: 100dvh; color: var(--text); font: 16px/1.45 var(--sans);
  background: radial-gradient(120% 80% at 50% -10%, #0e2633 0%, var(--bg1) 55%, var(--bg0) 100%) fixed;
  -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
  overflow-x: hidden;
}
#app, .session { overflow-x: clip; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3, p { margin: 0; }
.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
.muted { color: var(--text-2); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.spacer { height: 24px; }
.kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.ic { flex: none; display: block; }

/* ---------- Hintergrund: driftende Lichtflecken ---------- */
#bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#bg .blob { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 28s var(--ease-soft) infinite alternate; }
#bg .b1 { left: -30vmax; top: -25vmax; background: radial-gradient(closest-side, rgba(47,93,117,.85), transparent); }
#bg .b2 { right: -35vmax; top: 15vh; background: radial-gradient(closest-side, rgba(109,91,208,.45), transparent); animation-delay: -9s; }
#bg .b3 { left: -10vmax; bottom: -40vmax; background: radial-gradient(closest-side, rgba(255,194,26,.16), transparent); animation-delay: -17s; }
#bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 70%); }
@keyframes drift { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); } }

/* ---------- Layout ---------- */
#app { max-width: 480px; margin: 0 auto; padding: calc(10px + var(--safe-t)) 16px calc(120px + var(--safe-b)); }
#app > main > * + * { margin-top: 14px; }

.card {
  position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 34px -16px rgba(0,0,0,.7);
  padding: 16px; text-align: left; width: 100%;
}
button.card { transition: transform .18s var(--ease), border-color .2s; }
button.card:active { transform: scale(.98); }

/* Prisma-Rand */
.prism { isolation: isolate; }
.prism::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.3px; pointer-events: none;
  background: var(--prism); opacity: .8;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: prism-spin 9s linear infinite;
}
.prism::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(90% 70% at 0% 0%, rgba(94,231,255,.10), transparent 60%), radial-gradient(80% 70% at 100% 100%, rgba(255,194,26,.08), transparent 60%);
}
@keyframes prism-spin { to { --pa: 360deg; } }

/* ---------- Topbar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px 6px; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand .logo { flex: none; filter: drop-shadow(0 4px 12px rgba(94,231,255,.35)); }
.brand-name { font: 700 22px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand-name em { font: 800 11px/1 var(--sans); font-style: normal; color: var(--bg1); background: var(--yellow); padding: 3px 6px; border-radius: 7px; margin-left: 6px; vertical-align: 4px; }
.brand-title { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.chip b { color: var(--text); font-variant-numeric: tabular-nums; }
.chip.streak.hot { color: var(--orange); border-color: rgba(255,159,69,.4); box-shadow: 0 0 18px -4px rgba(255,159,69,.6); }
.chip.gem { color: var(--cyan); }
.chip.sync { width: 34px; padding: 0; justify-content: center; color: var(--green); }
.chip.sync.syncing { color: var(--cyan); animation: pulse-o 1s ease-in-out infinite; }
.chip.sync.offline, .chip.sync.error, .chip.sync.idle { color: var(--text-3); }
@keyframes pulse-o { 50% { opacity: .4; } }

/* ---------- Ring & Balken ---------- */
.ring { position: relative; flex: none; }
.ring svg { display: block; filter: drop-shadow(0 0 10px rgba(255,194,26,.35)); }
.ring-fg { transition: stroke-dashoffset 1s var(--ease); }
.ring-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ring-in b { font-size: 26px; font-variant-numeric: tabular-nums; }
.ring-in small { font-size: 11px; color: var(--text-2); }
.bar { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.09); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--yellow-2), var(--yellow)); box-shadow: 0 0 12px rgba(255,194,26,.5); transition: width .8s var(--ease); }
.bar.tinted i { background: var(--c, var(--yellow)); box-shadow: 0 0 12px var(--g, rgba(255,194,26,.4)); }
.bar.big { height: 12px; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden;
  min-height: 52px; padding: 0 22px; border-radius: 18px; color: #1b2a33; font-weight: 800; font-size: 16px; letter-spacing: .01em;
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow) 55%, #f2ad00);
  box-shadow: 0 5px 0 var(--yellow-d), 0 14px 28px -10px rgba(255,194,26,.55), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .2s;
}
.btn-primary:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--yellow-d), 0 6px 14px -8px rgba(255,194,26,.5); }
.btn-primary:disabled { filter: grayscale(.9) brightness(.55); box-shadow: 0 5px 0 #2a3a44; }
.btn-primary.big { width: 100%; min-height: 58px; font-size: 17px; }
.shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); animation: shine 4.2s ease-in-out 1.2s infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border-radius: 15px; background: var(--glass); border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 14.5px;
  transition: transform .12s var(--ease), background .2s;
}
.btn-ghost:active { transform: scale(.97); background: rgba(255,255,255,.1); }
.btn-ghost.wide { width: 100%; margin-top: 10px; }
.btn-ghost.danger { color: #ffb0b0; border-color: rgba(255,107,107,.35); }
.btn-ghost small { color: var(--text-3); font-weight: 500; }
.btn-link { display: block; margin: 16px auto 0; color: var(--sky); text-decoration: underline; text-underline-offset: 3px; font-size: 14.5px; padding: 8px; }
.icon-btn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--glass); border: 1px solid var(--line); color: var(--text-2); }
.icon-btn:active { transform: scale(.92); }

.seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.28); border: 1px solid var(--line); }
.seg button { flex: 1; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 42px; border-radius: 12px; color: var(--text-2); font-weight: 700; font-size: 14.5px; border: 1px solid transparent; transition: all .18s var(--ease); }
.seg button > .ic { display: inline-block; }
.seg button:has(.ic) { flex-direction: row; gap: 6px; }
.seg button small { font-size: 11px; font-weight: 600; color: var(--text-3); }
.seg button.on { background: rgba(255,194,26,.15); color: var(--yellow); border-color: rgba(255,194,26,.45); box-shadow: 0 0 16px -6px rgba(255,194,26,.6); }
.seg button.on small { color: rgba(255,194,26,.75); }
.seg.small button { min-height: 38px; font-size: 13px; flex-direction: row; gap: 5px; }
.seg.tiny { padding: 3px; border-radius: 12px; flex: none; }
.seg.tiny button { min-height: 30px; padding: 0 9px; font-size: 12px; border-radius: 9px; flex: none; }

/* ---------- Heute ---------- */
.hero { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 26px; }
.hero h1 { font-size: 24px; line-height: 1.15; margin: 4px 0 4px; }
.hero .muted { font-size: 14px; }
.cta { display: grid; gap: 12px; }
.cta .seg { margin-bottom: 2px; }
.row { display: flex; align-items: center; gap: 14px; }
.row b { display: block; font-size: 15.5px; }
.row small { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; }
.row > .ic { color: var(--text-3); }
.row-ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 22px; color: var(--cyan); }
.review .row-ic { color: var(--violet); }
.continue .kicker { color: var(--c); }
.w-emoji { width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-size: 25px; border-radius: 15px; background: rgba(255,255,255,.07); border: 1px solid var(--line-2); background: color-mix(in srgb, var(--c, #7fa6ba) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c, #7fa6ba) 45%, transparent); box-shadow: 0 0 22px -6px var(--g, transparent); }
.w-emoji.big { width: 56px; height: 56px; font-size: 30px; border-radius: 18px; }
.sec-title { font: 700 19px/1.2 var(--serif); margin: 26px 2px 12px !important; display: flex; align-items: baseline; gap: 8px; }
.sec-title small { font: 600 13px var(--sans); color: var(--text-3); }
.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.world-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; }
.world-tile .w-emoji { margin-bottom: 8px; }
.world-tile b { font-size: 15px; line-height: 1.2; }
.world-tile small { color: var(--text-3); font-size: 12px; }
.world-tile .bar { width: 100%; height: 6px; }

/* ---------- Lernpfad ---------- */
.intro { font-size: 14px; padding: 0 2px; }
.world { margin-top: 26px !important; scroll-margin-top: 12px; }
.world-head { display: flex; align-items: center; gap: 14px; position: sticky; top: calc(8px + var(--safe-t)); z-index: 5; background: linear-gradient(180deg, rgba(14,34,45,.92), rgba(10,26,35,.88)); }
.world-head h2 { font-size: 21px; margin-top: 2px; }
.world-head .kicker { color: var(--c); }
.w-count { font: 800 20px var(--sans); color: var(--c); font-variant-numeric: tabular-nums; }
.w-count small { font-size: 13px; color: var(--text-3); }
.nodes { padding: 22px 0 8px; }
.node-row { position: relative; height: 112px; display: flex; justify-content: center; align-items: center; }
.node {
  position: relative; width: 76px; height: 76px; border-radius: 50%; transform: translateX(var(--x));
  display: grid; place-items: center; color: #0b1a22;
  background: var(--c);
  box-shadow: 0 7px 0 rgba(0,0,0,.45);
  background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--c) 70%, white), var(--c) 70%);
  box-shadow: 0 7px 0 color-mix(in srgb, var(--c) 45%, black), 0 14px 26px -8px var(--g), inset 0 2px 0 rgba(255,255,255,.45);
  transition: transform .14s var(--ease), box-shadow .14s var(--ease);
}
.node:active { transform: translateX(var(--x)) translateY(5px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 45%, black), 0 6px 14px -8px var(--g); }
.node.done { background: radial-gradient(circle at 35% 28%, #ffe48f, var(--yellow) 70%); box-shadow: 0 7px 0 var(--yellow-d), 0 14px 26px -8px rgba(255,194,26,.6), inset 0 2px 0 rgba(255,255,255,.5); }
.node.locked { background: #1d313c; color: #5d7480; box-shadow: 0 7px 0 #0f1e26, inset 0 2px 0 rgba(255,255,255,.06); }
.node.open:not(.current) { filter: saturate(.85); }
.node.current::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--c); opacity: .0; animation: halo 2s ease-out infinite; }
@keyframes halo { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.25); opacity: 0; } }
.node-ring { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); pointer-events: none; }
.node-ic { position: relative; z-index: 1; }
.node-tag { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); padding: 5px 11px; border-radius: 10px; font: 800 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text); background: var(--slate); border: 1px solid var(--line-2); white-space: nowrap; animation: bob 1.8s ease-in-out infinite; }
.node-tag::after { content: ''; position: absolute; bottom: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--slate); border-bottom: 0; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-4px); } }
.node-label { position: absolute; top: 50%; transform: translateY(-50%); left: calc(50% + var(--x) + 52px); width: 140px; text-align: left; pointer-events: none; }
.node-row.lbl-left .node-label { left: auto; right: calc(50% - var(--x) + 52px); text-align: right; }
.node-label b { display: block; font-size: 14px; line-height: 1.2; }
.node-label small { display: block; font-size: 12px; color: var(--text-3); line-height: 1.3; margin-top: 2px; }
.trophy-node { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); border: 2px dashed var(--line-2); }
.trophy-node.won { color: #1b2a33; background: radial-gradient(circle at 35% 30%, #ffe48f, var(--yellow)); border: 0; box-shadow: 0 0 30px rgba(255,194,26,.5); }

.sheet-lesson { text-align: center; display: grid; justify-items: center; gap: 6px; }
.sheet-lesson h2 { font-size: 26px; }
.sheet-lesson .btn-primary { margin-top: 12px; }
.dots { display: flex; gap: 6px; margin: 10px 0 2px; }
.dots i { width: 22px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); }
.dots i.half { background: color-mix(in srgb, var(--c) 45%, transparent); }
.dots i.on { background: var(--c); box-shadow: 0 0 10px var(--g); }
.locked-note { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--text-2); font-size: 14px; }

/* ---------- Tabbar ---------- */
#tabbar {
  position: fixed; z-index: 40; left: 50%; bottom: calc(12px + var(--safe-b)); transform: translateX(-50%);
  width: min(440px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px;
  border-radius: 26px; background: linear-gradient(180deg, rgba(30,58,74,.78), rgba(12,30,40,.86)); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .45s var(--ease-soft);
}
#tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border-radius: 20px; color: var(--text-2); font-size: 11.5px; font-weight: 700; border: 1px solid transparent; transition: all .2s var(--ease); }
#tabbar button.on { color: var(--yellow); background: rgba(255,194,26,.13); border-color: rgba(255,194,26,.4); box-shadow: 0 0 20px -8px rgba(255,194,26,.7); }
#tabbar button:active { transform: scale(.94); }
body.in-session #tabbar, body.in-onboarding #tabbar, body.booting #tabbar { transform: translate(-50%, 160%); }

/* ---------- Session ---------- */
.session { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; max-width: 540px; margin: 0 auto; padding-top: var(--safe-t); }
.s-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px 6px; }
.s-progress { flex: 1; height: 14px; border-radius: 99px; background: rgba(255,255,255,.09); overflow: hidden; border: 1px solid var(--line); }
.s-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--yellow)); box-shadow: 0 0 14px rgba(169,147,255,.6); transition: width .6s var(--ease); position: relative; }
.s-progress i::after { content: ''; position: absolute; left: 8px; right: 8px; top: 3px; height: 3px; border-radius: 99px; background: rgba(255,255,255,.4); }
.combo { min-width: 50px; display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; color: var(--orange); font-size: 17px; opacity: 0; transition: opacity .2s; }
.combo.on { opacity: 1; }
.combo.pop { animation: pop .45s var(--ease); }
.s-meta { display: flex; gap: 6px; padding: 6px 16px 2px; min-width: 0; }
.s-meta .tag { flex: none; }
.s-meta .tag.ghost:not(.count) { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 24px; }
.tag { display: inline-flex; white-space: nowrap; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: color-mix(in srgb, var(--c, #7fa6ba) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c, #7fa6ba) 40%, transparent); }
.tag.ghost { background: rgba(255,255,255,.05); border-color: var(--line); color: var(--text-2); font-weight: 600; }
.tag.count { margin-left: auto; font-variant-numeric: tabular-nums; }
.s-stage { flex: 1; overflow-y: auto; padding: 10px 16px calc(40px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.session.has-fb .s-stage { padding-bottom: 62vh; }
.s-stage.enter > * { animation: slide-in .42s var(--ease) both; }
.s-stage.enter > * + * { animation-delay: .05s; }
@keyframes slide-in { from { opacity: 0; transform: translateX(26px); } }

.ex-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 4px; }
.ex-type { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.ex-diff { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 8px; color: var(--text-2); background: rgba(255,255,255,.06); }
.ex-diff.d3 { color: var(--pink); background: rgba(255,111,163,.12); }
.ex-q { font: 700 23px/1.28 var(--serif); margin: 12px 0 16px; letter-spacing: -.01em; }
.ex-sub { color: var(--text-2); font-size: 13.5px; margin: -6px 0 14px; }
.ex-foot { margin-top: 18px; }

/* Antwort-Optionen */
.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 14px; border-radius: 17px; text-align: left;
  background: var(--glass); border: 1.5px solid var(--line-2); font-size: 16px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 4px 0 rgba(0,0,0,.35); transition: transform .12s var(--ease), border-color .2s, background .2s, opacity .25s;
}
.opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35); }
.opt-k { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1.5px solid var(--line-2); font-size: 13px; font-weight: 800; color: var(--text-2); }
.opt.is-right { border-color: var(--green); background: rgba(61,220,151,.15); animation: pop .4s var(--ease); }
.opt.is-right .opt-k { background: var(--green); border-color: var(--green); color: #06261a; }
.opt.is-wrong { border-color: var(--red); background: rgba(255,107,107,.14); animation: shake .4s; }
.opt.is-wrong .opt-k { background: var(--red); border-color: var(--red); color: #2b0a0a; }
.opt.is-dim { opacity: .42; }
@keyframes pop { 40% { transform: scale(1.04); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Mythos oder Fakt */
.tf-card {
  position: relative; min-height: 230px; display: grid; place-items: center; padding: 34px 22px 26px; margin-top: 12px; border-radius: 28px;
  background: var(--glass-2); border: 1.5px solid var(--line-2); text-align: center; touch-action: pan-y; cursor: grab;
  box-shadow: 0 22px 40px -18px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.1);
  transition: transform .4s var(--ease), border-color .2s, box-shadow .2s; -webkit-user-select: none; user-select: none;
}
.tf-card.dragging { transition: none; cursor: grabbing; }
.tf-card[data-lean="fact"] { border-color: var(--green); box-shadow: 0 0 36px -10px rgba(61,220,151,.6); }
.tf-card[data-lean="myth"] { border-color: var(--red); box-shadow: 0 0 36px -10px rgba(255,107,107,.6); }
.tf-text { font: 700 21px/1.4 var(--serif); }
.tf-stamp { position: absolute; top: 14px; right: 14px; padding: 4px 10px; border: 2.5px solid currentColor; border-radius: 9px; font: 900 14px var(--sans); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-9deg) scale(1.5); opacity: 0; transition: all .35s var(--ease); }
.tf-card.is-fact .tf-stamp { color: var(--green); }
.tf-card.is-myth .tf-stamp { color: var(--red); }
.tf-card.is-fact .tf-stamp, .tf-card.is-myth .tf-stamp { opacity: 1; transform: rotate(-9deg) scale(1); }
.tf-card.ok { border-color: var(--green); }
.tf-card.bad { border-color: var(--red); animation: shake .45s; }
.tf-swipe { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-3); font-size: 12.5px; margin: 12px 0; }
.tf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tf-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 62px; border-radius: 19px; font-size: 17px; font-weight: 800; transition: transform .12s var(--ease), box-shadow .12s, opacity .2s; }
.tf-btn.myth { color: #ffc0c0; background: rgba(255,107,107,.13); border: 1.5px solid rgba(255,107,107,.55); box-shadow: 0 5px 0 rgba(130,35,35,.7); }
.tf-btn.fact { color: #b6f5d8; background: rgba(61,220,151,.12); border: 1.5px solid rgba(61,220,151,.55); box-shadow: 0 5px 0 rgba(20,100,66,.75); }
.tf-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.4); }
.tf-btn:disabled:not(.is-right):not(.is-wrong) { opacity: .35; }
.tf-btn.is-wrong { animation: shake .4s; }

/* Schätzfrage */
.est-box { padding: 22px 16px 16px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); }
.est-val { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.est-out { text-align: center; flex: 1; }
.est-num { font-size: 42px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; text-shadow: 0 0 24px rgba(255,194,26,.35); }
.est-unit { font-size: 17px; color: var(--text-2); margin-left: 6px; font-weight: 600; }
.est-step { width: 46px; height: 46px; flex: none; border-radius: 14px; font-size: 26px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }
.est-step:active { transform: scale(.92); }
.est-track { position: relative; margin: 40px 4px 6px; }
.est-range { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 99px; outline: none; background: linear-gradient(90deg, var(--cyan), var(--yellow) var(--p, 50%), rgba(255,255,255,.1) var(--p, 50%)); }
.est-range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c4, var(--yellow)); border: 3px solid #0b1a22; box-shadow: 0 0 0 2px var(--yellow), 0 6px 16px rgba(0,0,0,.5); cursor: grab; }
.est-range::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); border: 3px solid #0b1a22; box-shadow: 0 0 0 2px var(--yellow); }
.est-range:disabled::-webkit-slider-thumb { filter: grayscale(.4); }
.est-mark { position: absolute; top: -12px; width: 4px; height: 36px; margin-left: -2px; border-radius: 4px; background: var(--green); box-shadow: 0 0 14px var(--green); animation: pop .5s var(--ease); }
.est-mark span { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 800; color: #06261a; background: var(--green); }
.est-scale { display: flex; justify-content: space-between; color: var(--text-3); font-size: 12px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.est-res { margin-top: 14px; text-align: center; font-size: 15px; color: var(--text-2); }
.est-res b { color: var(--text); }
.est-res.ok { color: var(--green); } .est-res.half { color: var(--yellow); } .est-res.bad { color: #ffb0b0; }

/* Zeitstrahl */
.order-list { display: grid; gap: 10px; position: relative; }
.order-list.revealed::before { content: ''; position: absolute; left: 30px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--cyan), var(--violet)); opacity: .5; }
.ord { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 14px; border-radius: 17px; text-align: left; background: var(--glass); border: 1.5px solid var(--line-2); font-size: 15px; font-weight: 600; line-height: 1.3; box-shadow: 0 4px 0 rgba(0,0,0,.3); transition: border-color .2s, background .2s, transform .12s; }
.ord:active:not(:disabled) { transform: translateY(2px); }
.ord-n { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px dashed var(--line-2); font-weight: 900; font-size: 15px; color: #1b2a33; position: relative; z-index: 1; background: var(--bg2); }
.ord.is-set { border-color: rgba(255,194,26,.55); background: rgba(255,194,26,.08); }
.ord.is-set .ord-n { background: var(--yellow); border: 0; animation: pop .3s var(--ease); }
.ord-t { flex: 1; }
.ord-l { display: block; max-height: 0; overflow: hidden; font-size: 13px; font-weight: 900; color: var(--cyan); font-variant-numeric: tabular-nums; opacity: 0; transition: max-height .4s var(--ease) .25s, opacity .4s var(--ease) .25s, margin .4s var(--ease) .25s; }
.revealed .ord-l { max-height: 40px; opacity: 1; margin-top: 4px; }
.ord.is-right { border-color: var(--green); background: rgba(61,220,151,.1); }
.ord.is-right .ord-n { background: var(--green); border: 0; }
.ord.is-wrong { border-color: rgba(255,107,107,.6); background: rgba(255,107,107,.08); }
.ord.is-wrong .ord-n { background: var(--red); border: 0; }

/* Paare */
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-col { display: grid; gap: 10px; align-content: start; }
.m-btn { min-height: 64px; padding: 10px 10px; border-radius: 16px; background: var(--glass); border: 1.5px solid var(--line-2); font-size: 14.5px; font-weight: 650; line-height: 1.25; box-shadow: 0 4px 0 rgba(0,0,0,.3); transition: all .18s var(--ease); hyphens: auto; }
.m-btn.is-sel { border-color: var(--yellow); background: rgba(255,194,26,.14); transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.3), 0 0 18px -6px rgba(255,194,26,.7); }
.m-btn.is-matched { border-color: rgba(61,220,151,.7); background: rgba(61,220,151,.12); color: #b6f5d8; opacity: .7; transform: scale(.97); box-shadow: none; }
.m-btn.is-wrong { border-color: var(--red); background: rgba(255,107,107,.15); animation: shake .4s; }

/* Wer bin ich */
.clues { display: grid; gap: 10px; }
.clue { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 16px; background: rgba(169,147,255,.08); border: 1px solid rgba(169,147,255,.3); animation: slide-in .4s var(--ease); }
.clue-n { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--violet); color: #1a1240; font-weight: 900; font-size: 13px; }
.clue p { font: 600 16px/1.4 var(--serif); }
.hint-btn { margin: 12px 0 16px; width: 100%; color: var(--violet); border-color: rgba(169,147,255,.4); }
.ex-riddle .opts { margin-top: 4px; }

/* Bild-Rätsel */
.emoji-stage { display: grid; place-items: center; min-height: 150px; padding: 20px; margin-bottom: 16px; border-radius: 26px; background: var(--glass-2); border: 1.5px solid var(--line-2); box-shadow: inset 0 0 40px rgba(94,231,255,.06); }
.emoji-big { font-size: 52px; letter-spacing: 8px; line-height: 1.25; text-align: center; animation: float 3.2s ease-in-out infinite; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Duell */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; margin-top: 6px; }
.duel-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 170px; padding: 16px 10px; border-radius: 22px; background: var(--glass-2); border: 1.5px solid var(--line-2); box-shadow: 0 6px 0 rgba(0,0,0,.35); transition: all .25s var(--ease); }
.duel-card:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.duel-t { font: 700 16.5px/1.3 var(--serif); text-align: center; }
.duel-v { font-size: 19px; font-weight: 900; color: var(--cyan); opacity: 0; transform: scale(.6); transition: all .45s var(--ease) .1s; font-variant-numeric: tabular-nums; text-align: center; }
.revealed .duel-v { opacity: 1; transform: none; }
.duel-vs { align-self: center; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font: 900 12px var(--sans); letter-spacing: .06em; color: var(--yellow); background: var(--slate); border: 1px solid rgba(255,194,26,.45); box-shadow: 0 0 18px -4px rgba(255,194,26,.5); }
.duel-card.is-win { border-color: var(--green); background: rgba(61,220,151,.12); box-shadow: 0 0 30px -8px rgba(61,220,151,.6); }
.duel-card.is-win .duel-v { color: var(--green); }
.duel-card.is-wrong { border-color: var(--red); background: rgba(255,107,107,.1); animation: shake .4s; }
.duel-card.is-dim { opacity: .6; }

/* Feedback-Sheet */
.fb {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 16px 18px calc(18px + var(--safe-b)); border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(16,38,50,.97), rgba(8,22,30,.98)); border-top: 2px solid var(--line-2);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 -24px 50px rgba(0,0,0,.55);
  transform: translateY(105%); transition: transform .42s var(--ease-soft); max-height: 78vh; display: flex; flex-direction: column;
}
.fb.in { transform: none; }
.fb.ok { border-top-color: var(--green); } .fb.bad { border-top-color: var(--red); } .fb.half { border-top-color: var(--yellow); }
.fb-head { display: flex; align-items: center; gap: 10px; }
.fb-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.fb.ok .fb-ic { background: var(--green); color: #06261a; } .fb.bad .fb-ic { background: var(--red); color: #2b0a0a; } .fb.half .fb-ic { background: var(--yellow); color: #2b1d00; }
.fb-head strong { font: 700 21px var(--serif); }
.fb.ok strong { color: var(--green); } .fb.bad strong { color: #ff9c9c; } .fb.half strong { color: var(--yellow); }
.fb-xp { margin-left: auto; text-align: right; color: var(--yellow); font-weight: 900; font-size: 16px; line-height: 1.1; }
.fb-xp small { display: block; font-size: 11px; color: var(--orange); font-weight: 700; }
.fb-note { margin-top: 8px; color: var(--text-2); font-size: 14px; }
.fb-ans { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.fb-ans b { color: var(--text); }
.fb-explain { margin-top: 10px; font: 400 16.5px/1.55 var(--serif); color: var(--text); overflow-y: auto; }
.fb-actions { display: flex; gap: 8px; margin: 14px 0 12px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 99px; font-size: 13.5px; font-weight: 700; color: var(--text-2); background: rgba(255,255,255,.06); border: 1px solid var(--line-2); transition: all .18s var(--ease); }
.pill:active { transform: scale(.95); }
.pill.known.on { color: var(--violet); border-color: rgba(169,147,255,.6); background: rgba(169,147,255,.14); }
.pill.fav.on { color: var(--pink); border-color: rgba(255,111,163,.6); background: rgba(255,111,163,.14); }
.pill.fav.on svg { fill: currentColor; }

/* ---------- Ergebnis ---------- */
.result { padding-top: 10px; }
.result > * + * { margin-top: 12px; }
.res-hero { text-align: center; padding: 18px 0 6px; }
.res-emoji { display: inline-block; font-size: 74px; filter: drop-shadow(0 10px 30px rgba(255,194,26,.45)); animation: pop-in .7s var(--ease) both; }
@keyframes pop-in { from { transform: scale(.2) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.15) rotate(6deg); } }
.res-hero h1 { font-size: 30px; margin: 8px 0 6px; }
.res-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 14px; }
.stat small { display: block; color: var(--text-3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.stat b { display: flex; align-items: center; gap: 5px; font-size: 26px; font-weight: 900; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat b span { font-size: 16px; color: var(--text-3); }
.stat b .ic { color: var(--orange); }
.stat b.y { color: var(--yellow); }
.banner { display: flex; align-items: center; gap: 14px; }
.banner > span { font-size: 30px; }
.banner b { display: block; font-size: 15.5px; }
.banner small { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; }
.res-actions { display: grid; gap: 4px; margin-top: 20px !important; }
.aha-list { display: grid; gap: 8px; }
.aha { padding: 0; }
.aha summary { display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; list-style: none; }
.aha summary::-webkit-details-marker { display: none; }
.aha summary > .ic { color: var(--text-3); transition: transform .25s; }
.aha[open] summary > .ic { transform: rotate(180deg); }
.aha-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; font-size: 15px; background: rgba(255,255,255,.07); }
.aha-ic.ok { background: var(--green); color: #06261a; } .aha-ic.bad { background: var(--red); color: #2b0a0a; } .aha-ic.half { background: var(--yellow); color: #2b1d00; }
.aha-t { flex: 1; font-size: 14.5px; line-height: 1.35; font-weight: 600; }
.aha-a { padding: 0 14px 0 52px; color: var(--green); font-weight: 700; font-size: 14px; }
.aha-x { padding: 6px 14px 14px 52px; color: var(--text-2); font: 15px/1.5 var(--serif); }

/* ---------- Gehirn ---------- */
.level { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 26px; }
.level h2 { font-size: 23px; }
.level small { display: block; margin-top: 8px; font-size: 12.5px; }
.lv-badge { width: 72px; height: 72px; flex: none; display: grid; place-content: center; text-align: center; border-radius: 22px; line-height: 1; background: linear-gradient(145deg, rgba(94,231,255,.2), rgba(169,147,255,.2) 50%, rgba(255,194,26,.25)); border: 1px solid var(--line-2); box-shadow: 0 0 30px -8px rgba(169,147,255,.6); }
.lv-badge small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin: 0; }
.lv-badge b { font-size: 32px; font-weight: 900; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-tile { display: grid; gap: 2px; padding: 14px; }
.st-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.06); color: var(--cyan); margin-bottom: 6px; }
.stat-tile:nth-child(1) .st-ic { color: var(--orange); } .stat-tile:nth-child(2) .st-ic { color: var(--violet); } .stat-tile:nth-child(3) .st-ic { color: var(--green); }
.stat-tile b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat-tile small { font-size: 13px; color: var(--text-2); font-weight: 600; }
.stat-tile em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.week-head { display: flex; justify-content: space-between; align-items: baseline; }
.week-head small { color: var(--yellow); font-weight: 800; }
.week-bars { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 120px; margin-top: 14px; padding-bottom: 20px; }
.week-bars::before { content: ''; position: absolute; left: 0; right: 0; bottom: calc(20px + (100% - 20px) * var(--goal) / 100%); border-top: 1px dashed rgba(255,194,26,.4); }
.wb { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.wb i { width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: rgba(127,166,186,.35); transition: height .8s var(--ease); }
.wb.hit i { background: linear-gradient(180deg, var(--yellow-2), var(--yellow)); box-shadow: 0 0 14px -2px rgba(255,194,26,.6); }
.wb.today i { outline: 2px solid var(--cyan); outline-offset: 2px; }
.wb small { position: absolute; bottom: -20px; font-size: 11px; color: var(--text-3); font-weight: 700; }
.wb.today small { color: var(--cyan); }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 4px 10px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.badge span { font-size: 26px; filter: grayscale(1) brightness(.6); opacity: .45; }
.badge small { font-size: 10.5px; line-height: 1.2; text-align: center; color: var(--text-3); font-weight: 600; }
.badge.got { border-color: rgba(255,194,26,.45); background: linear-gradient(180deg, rgba(255,194,26,.12), rgba(255,255,255,.03)); }
.badge.got span { filter: none; opacity: 1; }
.badge.got small { color: var(--text); }
.arch-seg { margin-bottom: 10px; }
.arch-seg small { font-size: 11px; color: var(--text-3); }
.empty { padding: 18px; text-align: center; color: var(--text-3); font-size: 14px; }
.empty.big { padding: 80px 20px; font-size: 16px; }
.prefs { padding: 6px 14px; }
.pref-row, .set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; border-bottom: 1px solid var(--line); }
.pref-row:last-child, .set-row:last-child { border-bottom: 0; }
.pref-row { flex-wrap: wrap; gap: 8px; padding: 10px 0; }
.pref-name { width: 100%; font-size: 14px; font-weight: 700; }
.pref-row .seg.tiny { width: 100%; }
.pref-row .seg.tiny button { flex: 1; }
.settings { padding: 4px 14px; }
.set-row > span, .set-row > label { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.set-row .ic { color: var(--text-3); }
.switch { width: 52px; height: 31px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid var(--line-2); position: relative; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #cfdbe2; transition: transform .25s var(--ease); }
.switch.on { background: var(--green); border-color: var(--green); }
.switch.on i { transform: translateX(21px); background: #fff; }
.input { min-height: 46px; padding: 0 14px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--line-2); color: var(--text); outline: none; }
.input:focus { border-color: var(--cyan); }
.input.small { width: 140px; min-height: 40px; font-size: 14.5px; }
.code-input { width: 100%; margin-top: 14px; text-align: center; font: 700 22px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.err { color: #ff9c9c; font-size: 14px; min-height: 22px; margin: 8px 0; }
.backup { display: grid; gap: 12px; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 16px; background: rgba(0,0,0,.32); border: 1.5px dashed rgba(255,194,26,.45); }
.code-box code { font: 800 21px var(--mono); letter-spacing: .1em; color: var(--yellow); text-shadow: 0 0 18px rgba(255,194,26,.35); }
.code-box.big { margin: 18px 0 10px; }
.code-box.big code { font-size: 24px; }
.sync-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.sync-line .ic { color: var(--green); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-row label.btn-ghost { cursor: pointer; }
.tip { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.tip .ic { color: var(--cyan); margin-top: 1px; }
.tip.ok .ic { color: var(--green); }
.foot { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 20px !important; }

/* ---------- Onboarding ---------- */
.onboarding { min-height: calc(100dvh - 40px - var(--safe-t)); display: flex; flex-direction: column; justify-content: center; padding: 20px 4px; }
.ob { display: grid; gap: 14px; animation: slide-in .5s var(--ease) both; }
.ob h1 { font-size: 32px; line-height: 1.1; }
.ob-start { text-align: center; justify-items: center; }
.ob-start h1 { font-size: 44px; }
.ob-start h1 em { font: 800 16px var(--sans); font-style: normal; color: var(--bg1); background: var(--yellow); padding: 4px 9px; border-radius: 10px; vertical-align: 12px; }
.ob-logo { animation: float 3.6s ease-in-out infinite; filter: drop-shadow(0 16px 40px rgba(94,231,255,.45)); margin-bottom: 4px; }
.lead { font: 400 20px/1.4 var(--serif); color: var(--text-2); }
.ob-points { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 8px; width: 100%; }
.ob-points li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); text-align: left; font-weight: 600; font-size: 15px; }
.ob-points li span { font-size: 22px; }
.ob-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-card { display: grid; gap: 6px; padding: 18px 14px; text-align: center; border-width: 1.5px; }
.ob-card b { font-size: 26px; font-weight: 900; }
.ob-card small { color: var(--text-2); font-size: 13px; line-height: 1.35; }
.ob-card.on { border-color: var(--yellow); background: linear-gradient(180deg, rgba(255,194,26,.14), rgba(255,255,255,.03)); box-shadow: 0 0 26px -8px rgba(255,194,26,.6); }
.ob-card.on b { color: var(--yellow); }
.ob-h2 { font: 700 18px var(--serif); margin-top: 8px; }
.ob .btn-primary { margin-top: 8px; }

/* ---------- Sheet & Toast ---------- */
#sheet-root .backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(2,8,12,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
#sheet-root .sheet {
  position: fixed; z-index: 61; left: 50%; bottom: 0; width: min(540px, 100%); max-height: 88vh; overflow-y: auto;
  padding: 10px 20px calc(24px + var(--safe-b)); border-radius: 28px 28px 0 0; transform: translate(-50%, 105%);
  background: linear-gradient(180deg, rgba(18,42,55,.98), rgba(9,24,32,.98)); border-top: 1px solid var(--line-2);
  box-shadow: 0 -24px 60px rgba(0,0,0,.6); transition: transform .4s var(--ease-soft);
}
#sheet-root.open .backdrop { opacity: 1; }
#sheet-root.open .sheet { transform: translate(-50%, 0); }
.sheet .handle { display: block; width: 42px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.22); margin: 0 auto 16px; }
.sheet h2 { font-size: 24px; margin-bottom: 6px; }
.sheet .center .btn-primary { margin-top: 18px; }
#toast {
  position: fixed; z-index: 90; left: 50%; top: calc(12px + var(--safe-t)); transform: translate(-50%, -160%); max-width: min(92vw, 440px);
  padding: 12px 18px; border-radius: 18px; font-size: 14px; font-weight: 600; text-align: center;
  background: linear-gradient(180deg, rgba(30,58,74,.95), rgba(12,30,40,.95)); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 14px 36px rgba(0,0,0,.6); transition: transform .4s var(--ease-soft);
}
#toast.show { transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100; }

/* Boot-Splash */
.boot { min-height: 80dvh; display: grid; place-items: center; }
.boot .logo { animation: float 2s ease-in-out infinite; filter: drop-shadow(0 12px 30px rgba(94,231,255,.4)); }

/* ---------- Größere Screens ---------- */
@media (min-width: 720px) {
  #app { padding-top: 28px; }
  .ex-q { font-size: 26px; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 19px; }
  .chip { padding: 0 8px; }
  .ex-q { font-size: 21px; }
  .emoji-big { font-size: 44px; }
  .node-label { width: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
