/* 3D-Fenster (Exploded View) und Aha-Szene der Startseite.
   Aus dem v6-Prototyp (fonder5-v6, static/landing/css/landing.css, 05.09.2026)
   uebernommen, auf die heutige Oberflaeche umgebaut (Schrittleiste oben statt
   v6-Seitenleiste) und unter .xp / .aha gekapselt: die Live-Seite kennt
   .rank-row und .tabs mit anderer Bedeutung, main.js greift .rank-row an. */

.xp, .aha {
  --violet: #8b7cff;
  --blue-pale: #dbe7ff;
  --paper-2: #f3f6fb;
  --text-dark: #0b1f44;
  --muted-dark: #4d5f7c;
  --soft-dark: #7a8ba7;
  --muted-light: rgba(174, 190, 214, 0.74);
  --line-light: rgba(255, 255, 255, 0.10);
  --line-dark: rgba(15, 42, 97, 0.12);
  --xp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Buehne ─────────────────────────────────────────────────── */
.xp { position: relative; background: var(--ink); }
.xp-pin { position: relative; height: 100vh; min-height: 720px; display: grid; place-items: center; overflow: clip; }
.xp-scene { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.xp-viewport { position: relative; width: 1040px; height: 640px; perspective: 2400px; perspective-origin: 50% 30%; transform-origin: center; }
.xp-device { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
/* flat statt preserve-3d: Karten IN einer Schicht brauchen keine eigene 3D-Ebene. */
.xp-layer { position: absolute; inset: 0; transform-style: flat; will-change: transform; backface-visibility: hidden; contain: layout; }
/* Karten-Schichten nur so gross wie ihr Inhalt (Firefox: volle Texturen je Schicht kosteten 100 ms/Frame). */
.xp-l-inputs, .xp-l-chart, .xp-l-rank, .xp-l-ki, .xp-l-pdf { inset: 0 auto auto 0; width: 0; height: 0; overflow: visible; }
.xp-layer > * { pointer-events: none; }
.xp-l-kern { transform: translateZ(-120px); }

/* Rechenkern: dunkle Glasplatte unter allem */
.xp-kern-plate {
  position: absolute; inset: -18px; border-radius: 30px; overflow: hidden;
  background: linear-gradient(160deg, rgba(23, 103, 255, 0.22), rgba(9, 20, 40, 0.85) 45%, rgba(9, 20, 40, 0.95));
  border: 1px solid rgba(var(--blue-rgb), 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 60px 120px -40px rgba(var(--blue-rgb), 0.6);
}
.xp-kern-plate::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(var(--blue-rgb), 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--blue-rgb), 0.18) 1px, transparent 1px);
  background-size: 56px 56px;
}
.xp-kern-chips { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px 14px; padding: 60px 80px; }
.xp-kern-chips span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8rem; letter-spacing: 0.02em;
  padding: 8px 14px; border-radius: var(--radius-pill); color: #cfe0ff;
  background: rgba(var(--blue-rgb), 0.12); border: 1px solid rgba(var(--blue-rgb), 0.45);
  box-shadow: 0 0 22px -6px rgba(var(--blue-rgb), 0.6);
}
.xp-kern-chips b { color: #fff; font-weight: 600; }
.xp-kern-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--blue-rgb), 0.55), rgba(var(--blue-rgb), 0.05) 60%, transparent 70%);
}

/* App-Fenster wie heute: Kopfzeile, Schrittleiste, links Eingaben, rechts Ergebnis */
.xp-win {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  background: #f7f9fc; color: var(--text-dark); letter-spacing: 0;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 12.5px; line-height: 1.35;
}
.xp-win-top { height: 40px; display: flex; align-items: center; gap: 16px; padding: 0 18px; background: #fff; border-bottom: 1px solid #e6ebf3; }
.xp-win-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.95rem; letter-spacing: -0.03em; padding: 3px 10px 3px 4px; border: 1.5px solid #1767ff; border-radius: 999px; color: var(--text-dark); }
.xp-win-logo i { width: 16px; height: 16px; border-radius: 5px; background: linear-gradient(135deg, #5c98ff, #1767ff); }
.xp-win-links { margin: 0 auto; font-size: 11px; color: #64748b; }
.xp-win-user { font-size: 11px; font-weight: 600; color: #33415c; }
.xp-steps { height: 34px; display: flex; justify-content: center; align-items: center; gap: 22px; font-size: 11px; color: #64748b; border-bottom: 1px solid #eef2f8; background: #fbfcfe; }
.xp-steps .on { color: var(--blue-strong); font-weight: 600; }
.xp-win-body { position: absolute; inset: 74px 0 0 0; display: grid; grid-template-columns: 290px 1fr; gap: 10px; padding: 14px 16px; }
.xp-win-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; font-size: 1.05rem; }
.xp-ico { width: 24px; height: 24px; border-radius: 7px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.xp-ghost { position: relative; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid #e6ebf3; }
/* Angedeutete Formularzeilen statt gestrichelter Platzhalter (Marius 26.10.2026):
   so liegt unter den aufgefaecherten Karten eine ruhige App-Flaeche. */
.xp-ghost::before {
  content: ""; position: absolute; inset: 18px 18px 18px 18px; border-radius: 6px;
  background: repeating-linear-gradient(to bottom, #eef2f8 0 8px, transparent 8px 16px, #f5f7fb 16px 44px, transparent 44px 70px);
}

/* Karten als eigene Schichten. Positionen in px im 1040x640-Fenster. */
.xp-card { position: absolute; background: #fff; border: 1px solid #e3e9f3; border-radius: 12px; box-shadow: 0 18px 50px -24px rgba(15, 42, 97, 0.35); color: var(--text-dark); font-size: 12px; letter-spacing: 0; }
.xp-label { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #98a4b8; font-weight: 700; }
.xp-inp { left: 20px; width: 258px; padding: 12px 12px 10px; }
.xp-inp.c1 { top: 130px; border-left: 3px solid var(--blue); }
.xp-inp.c2 { top: 206px; border-left: 3px solid var(--orange); }
.xp-inp.c3 { top: 282px; border-left: 3px solid var(--violet); }
.xp-inp.c4 { top: 366px; }
.xp-inp.c5 { top: 442px; }
.xp-sel { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #e3e9f3; border-radius: 8px; padding: 7px 10px; margin-top: 7px; font-weight: 500; }
.xp-sel small { color: #98a4b8; }
.xp-chev { width: 7px; height: 7px; border-right: 1.5px solid #64748b; border-bottom: 1.5px solid #64748b; transform: rotate(45deg); margin-top: -3px; }
.xp-sel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.xp-field { display: flex; align-items: center; justify-content: space-between; border: 1px solid #e3e9f3; border-radius: 8px; padding: 8px 10px; margin-top: 7px; font-weight: 600; font-size: 13px; }
.xp-field small { color: #98a4b8; font-weight: 500; }
.xp-logo { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -3px; margin-right: 5px; background: #0a3e9a; }

.xp-chart { left: 316px; top: 92px; width: 474px; height: 520px; padding: 12px 16px 14px; }
.xp-tabs { display: flex; gap: 14px; font-size: 11.5px; color: #64748b; border-bottom: 1px solid #e6ebf3; padding: 0 4px 8px; }
.xp-tabs span.on { color: var(--blue-strong); font-weight: 600; position: relative; }
.xp-tabs span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; background: var(--blue); border-radius: 2px; }
.xp-tools { display: flex; gap: 6px; justify-content: flex-end; margin: 10px 0 8px; }
.xp-tools span { font-size: 10px; padding: 4px 9px; border: 1px solid #e3e9f3; border-radius: 6px; color: #64748b; }
.xp-tools span.on { color: var(--blue-strong); border-color: #bcd0ff; background: #eef3ff; }
.xp-svg { width: 100%; height: 360px; }
.xp-grid { stroke: #e9eef6; stroke-width: 1; }
.xp-ax { fill: #98a4b8; font-size: 9px; font-family: var(--font); }
.xp-ln { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.xp-ln-blue { stroke: var(--blue); }
.xp-ln-orange { stroke: var(--orange); }
.xp-ln-dash { stroke: #9aa8bf; stroke-width: 1.5; stroke-dasharray: 5 5; }
.xp-area { fill: url(#xpBlue); }
.xp-pill { fill: #fff; stroke: #bcd0ff; }
.xp-pill-t { fill: var(--blue-strong); font-size: 9px; font-weight: 600; font-family: var(--font); }
.xp-legend { display: flex; gap: 14px; justify-content: center; font-size: 10.5px; color: #64748b; margin-top: 8px; }
.xp-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }

.xp-rank { left: 316px; top: 92px; width: 474px; padding: 12px 16px; }
.xr-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 9px 0; border-top: 1px solid #eef2f8; }
.xr-row:first-of-type { border-top: 0; }
.xr-name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; }
.xr-crown { color: #f0b429; font-size: 11px; }
.xr-val { font-weight: 700; font-size: 14px; text-align: right; }
.xr-val small { display: block; font-weight: 500; color: #98a4b8; font-size: 9.5px; }
.xr-track { grid-column: 1 / -1; height: 7px; border-radius: 4px; background: #eef2f8; overflow: hidden; }
.xr-track i { display: block; height: 100%; border-radius: 4px; width: var(--w, 50%); }
.xr-b { background: var(--blue); } .xr-g { background: #2ec27e; }

.xp-ki { left: 806px; top: 92px; width: 218px; padding: 12px; border-color: #cbd8ff; }
.xp-ki-head { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid #eef2f8; }
.xp-ki-badge { font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: #eef3ff; color: var(--blue-strong); }
.xp-ki-file { display: grid; grid-template-columns: 16px 1fr; gap: 2px 8px; align-items: center; margin: 10px 0 8px; padding: 8px; border: 1px dashed #bcd0ff; border-radius: 8px; background: #f7faff; font-size: 11px; }
.xp-ki-file i { width: 14px; height: 18px; border-radius: 3px; background: #fff; border: 1px solid #dbe3ef; box-shadow: inset 0 3px 0 #e0534a; }
.xp-ki-file em { grid-column: 2; font-style: normal; font-size: 10px; color: var(--blue-strong); font-weight: 600; }
.xp-ki-row { display: flex; justify-content: space-between; gap: 6px; padding: 6px 2px; border-top: 1px solid #eef2f8; font-size: 10.5px; color: #4d5f7c; }
.xp-ki-row b { color: var(--text-dark); }
.xp-ki-ok { margin-top: 8px; font-size: 10px; padding: 4px 8px; border-radius: 999px; background: #e8f8ef; color: #17784a; font-weight: 600; text-align: center; }

.xp-pdf { left: 20px; top: 522px; width: 258px; padding: 12px; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; }
.xp-pdf-ico { width: 44px; height: 56px; border-radius: 6px; background: linear-gradient(160deg, #fff, #eef2f8); border: 1px solid #dbe3ef; position: relative; overflow: hidden; }
.xp-pdf-ico::before { content: "PDF"; position: absolute; left: 4px; top: 4px; font-size: 8px; font-weight: 800; color: #e0534a; }
.xp-pdf-ico i { position: absolute; left: 6px; right: 6px; height: 3px; border-radius: 2px; background: #cbd5e3; }
.xp-pdf-ico i:nth-child(1) { top: 20px; width: 60%; background: var(--blue); }
.xp-pdf-ico i:nth-child(2) { top: 28px; } .xp-pdf-ico i:nth-child(3) { top: 36px; width: 70%; } .xp-pdf-ico i:nth-child(4) { top: 44px; width: 50%; }
.xp-pdf b { display: block; font-size: 12px; }
.xp-pdf small { color: #98a4b8; font-size: 10.5px; }
.xp-wl { display: inline-block; margin-top: 5px; font-size: 9.5px; padding: 2px 7px; border-radius: 999px; background: #eef3ff; color: var(--blue-strong); font-weight: 600; }

/* Callouts neben der Buehne, Linien und Schritt-Anzeige */
.xp-callouts { position: absolute; inset: 0; pointer-events: none; }
.xp-co {
  position: absolute; max-width: 260px; opacity: 0; transform: translateY(8px);
  padding: 12px 14px 12px 16px; border-radius: 12px;
  background: rgba(10, 20, 36, 0.92); border: 1px solid var(--line-light); color: #fff;
}
.xp-co::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--c, var(--blue)); }
.xp-co small { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c, var(--blue-soft)); font-weight: 700; margin-bottom: 4px; }
.xp-co b { display: block; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.xp-co p { font-size: 0.85rem; color: var(--muted-light); margin-top: 3px; line-height: 1.45; }
.xp-co.l { left: max(16px, calc(50% - 720px)); }
.xp-co.r { right: max(16px, calc(50% - 720px)); }
.co-kern { top: 66%; --c: #7fb0ff; }
.co-shell { top: 18%; --c: #a5b4cc; }
.co-inputs { top: 46%; --c: var(--orange); }
.co-chart { top: 16%; --c: var(--blue-soft); }
.co-rank { top: 42%; --c: #2ec27e; }
.co-ki { top: 66%; --c: var(--violet); }
.xp-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.xp-lines path { fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.2; }
.xp-lines circle { fill: #fff; }
.xp-hud { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; white-space: nowrap; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(10, 20, 36, 0.7); border: 1px solid var(--line-light); font-variant-numeric: tabular-nums; opacity: 0; }
.xp-hud b { font-size: 1.1rem; color: #fff; }
.xp-hud span { font-size: 0.75rem; color: var(--muted-light); }
.xp-hud em { font-style: normal; font-size: 0.8rem; color: var(--blue-soft); margin-left: 8px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.xp-caption { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%) translateY(10px); text-align: center; opacity: 0; width: min(90%, 760px); }
.xp-caption .section-title { margin-bottom: 8px; }
.xp-caption p { color: var(--muted-light); }
.xp-static-list { display: none; }

/* Leichter Modus fuer schwache Geraete (fenster.js setzt ihn bei dauerhaft langsamen Frames) */
.xp-lite .xp-kern-plate::before, .xp-lite .xp-kern-core, .xp-lite .xp-lines { display: none; }
.xp-lite .xp-win, .xp-lite .xp-card, .xp-lite .xp-kern-plate, .xp-lite .xp-kern-chips span { box-shadow: none; }

@media (max-width: 1120px) { .xp-co { max-width: 210px; } .xp-co p { display: none; } }
/* Bis 920 px statisch: aufgefaechertes Fenster, darunter die sechs Bausteine als Liste */
@media (max-width: 920px) {
  .xp-pin { display: block; height: auto; min-height: 0; padding: 30px 0 70px; }
  .xp-scene { display: block; overflow: clip; padding-top: 24px; }
  .xp-viewport { transform-origin: top left; }
  .xp-co, .xp-lines, .xp-hud { display: none; }
  .xp-caption { position: static; transform: none; opacity: 1; margin: 10px auto 0; padding: 0 20px; width: auto; }
  .xp-static-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: calc(100% - 40px); margin: 22px auto 0; }
}
/* Handy mit Animation (fenster.js setzt .xp-mobil): Buehne wie am Desktop,
   ohne seitliche Hinweise, dafuer Laufband mit dem aktuellen Baustein unten */
.xp-ticker { display: none; }
.xp.xp-tickermodus .xp-co, .xp.xp-tickermodus .xp-lines { display: none; }
.xp.xp-tickermodus .xp-hud { bottom: auto; top: 90px; }
.xp.xp-tickermodus .xp-ticker {
  display: block; position: absolute; left: 16px; right: 16px; bottom: max(24px, env(safe-area-inset-bottom));
  padding: 14px 16px 14px 18px; border-radius: 14px; background: rgba(10, 20, 36, 0.92); border: 1px solid var(--line-light);
  opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s var(--xp-ease);
}
.xp.xp-tickermodus .xp-ticker.on { opacity: 1; transform: none; }
.xp.xp-tickermodus .xp-ticker::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--c, var(--blue)); }
.xp.xp-tickermodus .xp-ticker small { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-soft); font-weight: 700; margin-bottom: 3px; }
.xp.xp-tickermodus .xp-ticker b { display: block; font-size: 1rem; color: #fff; }
.xp.xp-tickermodus .xp-ticker p { font-size: 0.85rem; color: var(--muted-light); margin-top: 3px; line-height: 1.4; }
.xp.xp-tickermodus:not(.xp-mobil) .xp-ticker { left: 50%; right: auto; width: min(640px, calc(100% - 32px)); transform: translate(-50%, 10px); }
.xp.xp-tickermodus:not(.xp-mobil) .xp-ticker.on { transform: translate(-50%, 0); }

@media (max-width: 920px) {
  .xp.xp-mobil .xp-pin { display: grid; place-items: center; min-height: 0; padding: 0; }
  .xp.xp-mobil .xp-scene { display: grid; place-items: center; height: 100%; padding: 0; overflow: clip; }
  .xp.xp-mobil .xp-scene { position: relative; display: block; width: 100%; }
  .xp.xp-mobil .xp-viewport { position: absolute; left: 50%; top: 46%; transform-origin: center; }
  .xp.xp-mobil .xp-static-list { display: none; }
  .xp.xp-mobil .xp-hud { display: flex; bottom: auto; top: 76px; }
  .xp.xp-mobil .xp-caption { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%) translateY(10px); opacity: 0; width: calc(100% - 32px); margin: 0; padding: 0; }
}
.xp-static-list div { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-light); }
.xp-static-list small { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-soft); font-weight: 700; }
.xp-static-list b { font-size: 0.95rem; color: #fff; }
/* Bewegung reduziert: am Desktop fehlt sonst die Erklaerung (Liste nur mobil) */
@media (prefers-reduced-motion: reduce) and (min-width: 921px) {
  /* Bewegung reduziert am Desktop: flaches Fenster, darunter Unterzeile und Bausteine im normalen Fluss */
  .xp-pin { height: auto; min-height: 0; padding: 70px 0 90px; display: block; }
  .xp-scene { display: flex; flex-direction: column; align-items: center; height: auto; }
  .xp-viewport { position: relative; flex: none; }
  .xp-caption { position: static; transform: none; opacity: 1; margin: 34px auto 30px; }
  .xp-static-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(1040px, calc(100% - 48px)); margin: 0 auto; }
}
}

/* ── Aha-Szene ──────────────────────────────────────────────── */
.aha { position: relative; background: var(--ink); }
.aha-pin { min-height: 100vh; display: grid; align-items: center; padding: 60px 0; }
.aha-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 60px; align-items: center; }
.aha-switch {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 10px 16px 10px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-light);
  font: inherit; font-weight: 600; font-size: 0.95rem; color: #fff; cursor: pointer;
}
.aha-switch .sw { position: relative; width: 50px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); transition: background 0.4s; flex: none; }
.aha-switch .sw i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.4s var(--xp-ease); }
.aha-switch.on .sw { background: var(--blue); }
.aha-switch.on .sw i { transform: translateX(22px); }
.aha-hint { margin-top: 10px; font-size: 0.8rem; color: var(--muted-light); transition: opacity 0.3s; }
.aha-card { border-radius: 22px; padding: 22px 24px; background: #fff; color: var(--text-dark); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.8); letter-spacing: 0; }
.aha-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.aha-tabs span { font-size: 0.78rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--muted-dark); transition: 0.3s; }
.aha-tabs span.on { background: var(--text-dark); color: #fff; border-color: var(--text-dark); }
.aha-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 12px 0; border-top: 1px solid #eef2f8; }
.aha-row:first-of-type { border-top: 0; }
.aha-row .name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.aha-row .dot-y, .aha-row .dot-b { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.aha-row .dot-y { background: var(--orange); }
.aha-row .dot-b { background: var(--blue); }
.aha-row b { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.aha-row .track { grid-column: 1 / -1; height: 12px; border-radius: 6px; background: #eef2f8; overflow: hidden; }
.aha-row .track i { display: block; height: 100%; width: var(--w); border-radius: 6px; transition: width 0.5s var(--xp-ease); }
.aha-row.r-dp .track i { background: linear-gradient(90deg, #ffb347, var(--orange)); }
.aha-row.r-fp .track i { background: linear-gradient(90deg, var(--blue-soft), var(--blue)); }
.aha-delta { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line-dark); }
.aha-delta small { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft-dark); font-weight: 700; }
.aha-delta b { font-size: 1.2rem; letter-spacing: -0.02em; transition: color 0.3s; }
.aha-delta.is-win b { color: #17784a; }
.aha-tax { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.aha-tax span { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff3f2; color: #b83227; border: 1px solid #f5c2be; opacity: 0.25; transform: translateY(4px); transition: 0.4s var(--xp-ease); }
.aha-tax span.ok { background: #e8f8ef; color: #17784a; border-color: #b9e8cc; }
.aha-tax.on span { opacity: 1; transform: none; }
.aha-caption { margin-top: 16px; text-align: center; color: var(--muted-light); opacity: 0; transition: opacity 0.5s; }
.aha-caption.on { opacity: 1; }
@media (max-width: 920px) {
  .aha-pin { min-height: 0; padding: 80px 0 90px; }
  .aha-grid { grid-template-columns: 1fr; gap: 28px; }
  .aha-hint { display: none; }
  .aha-caption { opacity: 1; }
  .aha-tax span { opacity: 1; transform: none; }
}
