/* Synagy Jelly UI – Bausteinbibliothek im Jelly-Glass-Stil (frostiges Gummiharz, federnde Bewegung).
   Regeln:
   - Eine Heldenfarbe pro Ansicht. Farbe wohnt IN Objekten, die Leinwand bleibt fast weiß.
   - Farbe pro Baustein über .hue-tang/.hue-bub/.hue-sky/.hue-lime/.hue-grape (setzt --hue-core/body/rim).
   - Asset-Typen: 3D = tang, Sprite/2D = bub, Sound = sky, Game = lime, Credits/Pro = grape (sparsam).
   - Bewegung nur aus den Feder-Tokens: juicy = direkte Berührung, bounce = Mitläufer, soft = Daten/Layout.
   - Klassen beginnen mit j-, Verhalten hängt an data-j="…" (siehe jelly-ui.js). */

:root {
  --canvas:#F1F0F5; --canvas-2:#E7E6EE; --surface:#FBFBFD; --surface-2:#F0EFF4;
  --ink:#16151A; --ink-soft:#6E6C78; --ink-faint:#9A98A5; --line:rgb(22 21 26 / .07); --dotc:rgb(22 21 26 / .09);

  --tang-core:#F26B1D; --tang-body:#FF9A4D; --tang-rim:#FFE3CC;
  --bub-core:#F0458F;  --bub-body:#FF8DBF;  --bub-rim:#FFE1EE;
  --sky-core:#3E9BEA;  --sky-body:#74B9F0;  --sky-rim:#DDEEFC;
  --lime-core:#5CC93B; --lime-body:#A2E57F; --lime-rim:#E8F9DC;
  --grape-core:#7B5CF0;--grape-body:#A993FF;--grape-rim:#ECE6FF;
  --butter:#FFD84D; --cream:#F7EFC4;
  --au-1:#4F8EF7; --au-2:#F2708A; --au-3:#FFC89A; --au-4:#B79CFF;

  --hue-core:var(--tang-core); --hue-body:var(--tang-body); --hue-rim:var(--tang-rim);

  --r-s:12px; --r-m:22px; --r-l:34px; --r-pill:999px;
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:20px; --s-5:32px; --s-6:52px; --s-7:84px;

  --shadow-rest:0 14px 28px -14px rgb(40 30 60 / .18);
  --spring-juicy:linear(0,.2 6%,.7 13%,1.12 21%,1.22 27%,1.2 32%,1.08 40%,.96 50%,.93 55%,.97 64%,1.02 74%,1.01 84%,1);
  --spring-bounce:linear(0,.063,.25 9.6%,.954 22.4%,1.089 29.5%,1.117 33.5%,1.114 37.5%,1.021 50.1%,.992 57.8%,.991 66.1%,1.002 84.8%,1);
  --spring-soft:linear(0,.1 5%,.4 14%,.8 26%,1.03 40%,1.04 48%,1.01 65%,1);
  --ease-out:cubic-bezier(.22,1,.36,1);
  --t-press:90ms; --t-bounce:520ms; --t-juicy:750ms; --t-soft:700ms;

  --serif:"Instrument Serif",Georgia,serif; --sans:"Geist",system-ui,sans-serif; --ui:"Geist",system-ui,sans-serif; --mono:"Geist Mono",ui-monospace,monospace;
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.1'/%3E%3C/svg%3E");
  color-scheme:light;
}
.hue-tang  { --hue-core:var(--tang-core);  --hue-body:var(--tang-body);  --hue-rim:var(--tang-rim); }
.hue-bub   { --hue-core:var(--bub-core);   --hue-body:var(--bub-body);   --hue-rim:var(--bub-rim); }
.hue-sky   { --hue-core:var(--sky-core);   --hue-body:var(--sky-body);   --hue-rim:var(--sky-rim); }
.hue-lime  { --hue-core:var(--lime-core);  --hue-body:var(--lime-body);  --hue-rim:var(--lime-rim); }
.hue-grape { --hue-core:var(--grape-core); --hue-body:var(--grape-body); --hue-rim:var(--grape-rim); }

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) { --canvas:#121118; --canvas-2:#1B1A23; --surface:#201F29; --surface-2:#2A2934;
    --ink:#F4F2F8; --ink-soft:#A09DB0; --ink-faint:#77748A; --line:rgb(255 255 255 / .07); --dotc:rgb(255 255 255 / .07); color-scheme:dark; }
}
:root[data-theme="dark"] { --canvas:#121118; --canvas-2:#1B1A23; --surface:#201F29; --surface-2:#2A2934;
  --ink:#F4F2F8; --ink-soft:#A09DB0; --ink-faint:#77748A; --line:rgb(255 255 255 / .07); --dotc:rgb(255 255 255 / .07); color-scheme:dark; }

* { box-sizing:border-box; }
.j-canvas { margin:0; min-height:100vh; color:var(--ink); font:400 15px/1.55 var(--ui); letter-spacing:-.006em; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  font-feature-settings:"ss01","cv11"; text-rendering:optimizeLegibility;
  background:radial-gradient(circle at center,var(--dotc) 1px,transparent 1.5px) 0 0/16px 16px,
    radial-gradient(120% 80% at 50% 40%,var(--canvas),var(--canvas-2)) fixed; }
.j-canvas button, .j-canvas input { font:inherit; color:inherit; }

/* ── Bewegung ─────────────────────────────────────────────────────────────── */
.j-bouncy { cursor:pointer; user-select:none; -webkit-tap-highlight-color:transparent;
  transition:scale var(--t-juicy) var(--spring-juicy), translate var(--t-juicy) var(--spring-juicy), box-shadow var(--t-juicy) var(--spring-juicy); }
.j-bouncy:hover { scale:1.06; translate:0 -4px; }
.j-bouncy:active { scale:.92 .86; translate:0 2px; transition-duration:var(--t-press); transition-timing-function:var(--ease-out); }
@keyframes j-in { from { scale:.3; opacity:0 } 40% { opacity:1 } }
.j-appear { animation:j-in 900ms var(--spring-juicy) backwards; animation-delay:calc(var(--i,0) * 70ms + 120ms); }
@keyframes j-breathe { 50% { transform:scale(1.025,.975) translateY(2px); } }
@keyframes j-swirl { to { rotate:360deg; } }
@keyframes j-shake { 20% { translate:-6px 0 } 40% { translate:5px 0 } 60% { translate:-3px 0 } 80% { translate:2px 0 } }
:where(.j-canvas) :focus-visible { outline:3px solid var(--hue-core); outline-offset:3px; }
.j-fx { position:fixed; pointer-events:none; z-index:200; border-radius:50%; }
.j-float { position:fixed; pointer-events:none; z-index:200; font:500 17px var(--mono); }

/* ── Material ─────────────────────────────────────────────────────────────── */
.j-jelly { position:relative; isolation:isolate;
  background:radial-gradient(120% 90% at var(--mx,30%) var(--my,20%),rgb(255 255 255 / .55),transparent 45%),
    radial-gradient(70% 70% at 50% 55%,var(--hue-core) 0%,var(--hue-body) 55%,var(--hue-rim) 100%);
  box-shadow:inset 0 2px 1px rgb(255 255 255 / .7), inset 0 -10px 24px color-mix(in oklab,var(--hue-core) 40%,transparent),
    inset 0 0 0 1.5px rgb(255 255 255 / .35), 0 30px 60px -20px color-mix(in oklab,var(--hue-core) 35%,transparent),
    0 8px 18px -8px color-mix(in oklab,var(--hue-core) 25%,transparent); }
.j-jelly::after, .j-grain::after { content:""; position:absolute; inset:0; border-radius:inherit; background-image:var(--grain);
  mix-blend-mode:overlay; pointer-events:none; }
.j-slab { background:color-mix(in oklab,var(--surface) 62%,transparent);
  backdrop-filter:blur(16px) saturate(150%); -webkit-backdrop-filter:blur(16px) saturate(150%); border-radius:var(--r-m);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .8), inset 0 -1px 0 var(--line), 0 40px 80px -30px rgb(40 60 90 / .28); }
.j-milk { background:linear-gradient(var(--surface),var(--surface-2));
  box-shadow:inset 0 2px 2px rgb(255 255 255 / .9), inset 0 -3px 6px rgb(0 0 0 / .06), 0 1px 0 rgb(255 255 255 / .7), 0 18px 30px -16px rgb(30 30 60 / .25); }
.j-on-jelly { color:#fff; font-weight:600; text-shadow:0 1px 2px color-mix(in oklab,var(--hue-core) 60%,black); }

/* ── Knöpfe ───────────────────────────────────────────────────────────────── */
.j-btn { position:relative; isolation:isolate; display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:48px; padding:0 26px; border:0; border-radius:var(--r-pill); font:500 15px/1 var(--sans); letter-spacing:-.01em; text-decoration:none; }
.j-btn.j-jelly { color:#fff; text-shadow:0 1px 2px color-mix(in oklab,var(--hue-core) 70%,black);
  background:radial-gradient(120% 120% at var(--mx,30%) var(--my,10%),rgb(255 255 255 / .45),transparent 45%),
    linear-gradient(var(--hue-body),var(--hue-core) 70%); }
.j-btn.j-milk { color:var(--ink); }
.j-btn-s { min-height:40px; padding:0 18px; font-size:14px; }
.j-btn-l { min-height:60px; padding:0 36px; font-size:17px; }
.j-btn .ji { width:22px; height:22px; }
.j-btn:disabled, .j-btn[aria-disabled="true"] { filter:saturate(.3); opacity:.55; cursor:not-allowed; scale:1; translate:0; }
.j-btn[data-state="loading"] { pointer-events:none; }
.j-btn[data-state="loading"]::before { content:""; position:absolute; inset:0; border-radius:inherit; z-index:-1; overflow:hidden;
  background:conic-gradient(from var(--a,0deg),transparent 0 70%,rgb(255 255 255 / .55) 85%,transparent);
  animation:j-spin 1.1s linear infinite; }
@property --a { syntax:'<angle>'; inherits:false; initial-value:0deg; }
@keyframes j-spin { to { --a:360deg; } }
.j-btn[data-state="error"] { animation:j-shake 360ms linear; }

/* Aurora-Pille: der eine Helden-Knopf pro Seite */
.j-pill { position:relative; overflow:hidden; isolation:isolate; border:0; padding:24px 56px; border-radius:var(--r-pill); }
.j-pill::before { content:""; position:absolute; z-index:-1; width:62%; aspect-ratio:1; top:-58%; left:calc(40% + (var(--mx,70%) - 50%) * .3);
  background:radial-gradient(closest-side at 45% 35%,var(--au-1),transparent), radial-gradient(closest-side at 35% 75%,var(--au-2),transparent),
    radial-gradient(closest-side at 75% 60%,var(--au-3),transparent);
  filter:blur(18px); opacity:.9; animation:j-swirl 6s linear infinite;
  transition:left var(--t-soft) var(--spring-soft), scale var(--t-juicy) var(--spring-juicy); }
.j-pill:hover::before { scale:1.25; }
.j-pill.flare::before { animation:j-swirl 6s linear infinite, j-flare 700ms var(--ease-out); }
@keyframes j-flare { 30% { scale:2.2; opacity:1; } }
.j-pill-label { display:inline-block; letter-spacing:-.02em; background:linear-gradient(90deg,#B7A7C9 0%,#5E5A6B 45%,#fff 78%); -webkit-background-clip:text; background-clip:text;
  color:transparent; font:500 23px/1 var(--sans); }
:root[data-theme="dark"] .j-pill-label { background-image:linear-gradient(90deg,#8E88A0 0%,#F4F2F8 45%,#fff 78%); }

/* Tastenkappe */
.j-key { display:inline-grid; place-items:center; min-width:44px; min-height:44px; padding:0 14px; border:0; border-radius:14px;
  background:linear-gradient(var(--surface-2),color-mix(in oklab,var(--surface-2) 88%,var(--ink)));
  color:var(--ink-soft); font:500 15px var(--sans);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -3px 0 rgb(0 0 0 / .08), 0 8px 14px -10px rgb(30 30 60 / .3); }
.j-key:active { box-shadow:inset 0 1px 0 #fff, inset 0 -1px 0 rgb(0 0 0 / .08); }
.j-key-s { min-width:26px; min-height:26px; padding:0 7px; border-radius:8px; font-size:12px; }

/* Runder Gummi-Knopf mit Icon + Zähler-Badge */
.j-round { position:relative; display:inline-grid; place-items:center; width:56px; height:56px; border:0; border-radius:50%; }
.j-round .ji { width:28px; height:28px; }
.j-badge { position:absolute; top:-4px; right:-4px; min-width:22px; height:22px; padding:0 6px; border-radius:11px; display:grid; place-items:center;
  font:700 12px/1 var(--sans); color:#fff; background:linear-gradient(var(--bub-body),var(--bub-core));
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .6), 0 0 0 3px var(--canvas), 0 6px 10px -4px var(--bub-core); }
.j-badge:empty, .j-badge[data-n="0"] { scale:0; }
.j-badge { transition:scale var(--t-bounce) var(--spring-bounce); }

/* ── Schalter & Auswahl ───────────────────────────────────────────────────── */
.j-switch { position:relative; width:72px; height:42px; border:0; padding:0; border-radius:var(--r-pill); cursor:pointer;
  background:linear-gradient(color-mix(in oklab,var(--surface-2) 80%,var(--ink)),var(--surface-2));
  box-shadow:inset 0 3px 6px rgb(0 0 0 / .12), inset 0 -1px 0 rgb(255 255 255 / .8); transition:background 300ms; }
.j-switch[aria-checked="true"] { background:linear-gradient(var(--hue-core),var(--hue-body)); box-shadow:inset 0 3px 6px color-mix(in oklab,var(--hue-core) 60%,black), inset 0 -1px 0 rgb(255 255 255 / .5); }
.j-switch .knob { position:absolute; top:5px; left:5px; width:32px; height:32px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff,#ECEBF1); box-shadow:inset 0 -2px 3px rgb(0 0 0 / .08), 0 4px 8px -2px rgb(30 30 60 / .3);
  transition:translate var(--t-bounce) var(--spring-bounce); }
.j-switch[aria-checked="true"] .knob { translate:30px 0; }
.j-switch.squash .knob { animation:j-knob var(--t-bounce) var(--ease-out); }
@keyframes j-knob { 40% { scale:1.3 .78; } }

.j-check { display:inline-flex; align-items:center; gap:12px; cursor:pointer; min-height:44px; user-select:none; }
.j-check input { position:absolute; opacity:0; width:1px; height:1px; }
.j-check .box { position:relative; width:30px; height:30px; border-radius:10px; display:grid; place-items:center;
  background:linear-gradient(var(--surface),var(--surface-2)); box-shadow:inset 0 0 0 2px var(--line), inset 0 2px 3px rgb(0 0 0 / .06);
  transition:scale var(--t-bounce) var(--spring-bounce), background 200ms; }
.j-check .box svg { width:18px; height:18px; stroke:#fff; stroke-width:3.2; fill:none; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:24; stroke-dashoffset:24; transition:stroke-dashoffset 300ms var(--ease-out) 60ms; }
.j-check input:checked + .box { background:radial-gradient(circle at 35% 25%,var(--hue-body),var(--hue-core)); scale:1.08;
  box-shadow:inset 0 2px 1px rgb(255 255 255 / .6), 0 8px 14px -6px var(--hue-core); }
.j-check input:checked + .box svg { stroke-dashoffset:0; }
.j-check input:active + .box { scale:.85 .8; transition-duration:var(--t-press); }
.j-check input:focus-visible + .box { outline:3px solid var(--hue-core); outline-offset:3px; }

.j-radio { display:flex; gap:14px; flex-wrap:wrap; }
.j-radio label { position:relative; display:inline-flex; align-items:center; gap:10px; cursor:pointer; padding:8px 16px 8px 8px; min-height:44px;
  border-radius:var(--r-pill); transition:background 200ms; }
.j-radio input { position:absolute; opacity:0; }
.j-radio .bead { width:26px; height:26px; border-radius:50%; background:linear-gradient(var(--surface-2),var(--surface));
  box-shadow:inset 0 2px 4px rgb(0 0 0 / .12); display:grid; place-items:center; }
.j-radio .bead::after { content:""; width:18px; height:18px; border-radius:50%; scale:0;
  background:radial-gradient(circle at 35% 30%,#fff 0 12%,var(--hue-body) 40%,var(--hue-core));
  box-shadow:0 3px 6px -2px var(--hue-core); transition:scale var(--t-bounce) var(--spring-bounce); }
.j-radio input:checked + .bead::after { scale:1; }
.j-radio input:checked ~ span { font-weight:600; }
.j-radio label:has(input:checked) { background:color-mix(in oklab,var(--hue-rim) 60%,transparent); }
.j-radio input:focus-visible + .bead { outline:3px solid var(--hue-core); outline-offset:3px; }

/* Segment: ein Gummi-Daumen rutscht zwischen den Optionen (JS setzt --x/--w) */
.j-seg { position:relative; display:inline-flex; padding:5px; border-radius:var(--r-pill); background:var(--surface-2);
  box-shadow:inset 0 2px 5px rgb(0 0 0 / .08); }
.j-seg .thumb { position:absolute; top:5px; bottom:5px; left:0; width:var(--w,0); translate:var(--x,0) 0; border-radius:var(--r-pill);
  transition:translate var(--t-juicy) var(--spring-juicy), width var(--t-juicy) var(--spring-juicy); }
.j-seg button { position:relative; z-index:1; min-height:40px; padding:0 18px; border:0; background:none; cursor:pointer;
  font:500 14px var(--sans); color:var(--ink-soft); transition:color 250ms; border-radius:var(--r-pill); }
.j-seg button[aria-selected="true"] { color:#fff; text-shadow:0 1px 2px color-mix(in oklab,var(--hue-core) 70%,black); }
.j-seg.squash .thumb { animation:j-thumb 520ms var(--ease-out); }
@keyframes j-thumb { 35% { scale:1.12 .82; } }

/* Regler: Gummiperle auf einer Rinne */
.j-slider { --v:50; position:relative; width:min(320px,100%); height:44px; display:flex; align-items:center; }
.j-slider input { position:absolute; inset:0; width:100%; opacity:0; cursor:pointer; margin:0; }
.j-slider .track { position:absolute; left:0; right:0; height:14px; border-radius:7px; background:var(--surface-2); box-shadow:inset 0 2px 4px rgb(0 0 0 / .1); overflow:hidden; }
.j-slider .fill { height:100%; width:calc(var(--v) * 1%); background:linear-gradient(90deg,var(--hue-body),var(--hue-core)); border-radius:inherit;
  box-shadow:inset 0 2px 1px rgb(255 255 255 / .5); transition:width 300ms var(--spring-soft); }
.j-slider .bead { position:absolute; left:calc(var(--v) * 1% - var(--v) * .34px); width:34px; height:34px; border-radius:50%; pointer-events:none;
  transition:left 300ms var(--spring-soft), scale var(--t-bounce) var(--spring-bounce); }
.j-slider:hover .bead { scale:1.1; }
.j-slider:active .bead { scale:1.25 .82; }
.j-slider .val { position:absolute; left:calc(var(--v) * 1% - var(--v) * .34px + 17px); bottom:calc(100% - 2px); translate:-50% 0;
  font:500 11px var(--mono); color:var(--hue-core); font-variant-numeric:tabular-nums; transition:left 300ms var(--spring-soft); }
.j-slider input:focus-visible ~ .bead { outline:3px solid var(--hue-core); outline-offset:3px; }

/* Zähler: − Wert + */
.j-stepper { display:inline-flex; align-items:center; gap:6px; padding:5px; border-radius:var(--r-pill); }
.j-stepper button { width:44px; height:44px; border:0; border-radius:50%; font:600 20px/1 var(--sans); color:var(--hue-core); }
.j-stepper .j-count { min-width:48px; text-align:center; font:500 22px/1 var(--sans); letter-spacing:-.03em; }

/* Sterne */
.j-rating { display:inline-flex; gap:4px; }
.j-rating button { width:44px; height:44px; padding:6px; border:0; background:none; cursor:pointer; }
.j-rating svg { width:100%; height:100%; overflow:visible; transition:scale var(--t-bounce) var(--spring-bounce), rotate var(--t-bounce) var(--spring-bounce); }
.j-rating path { fill:var(--surface-2); stroke:color-mix(in oklab,var(--ink) 12%,transparent); stroke-width:1.2; transition:fill 200ms; }
.j-rating button.on path { fill:var(--butter); stroke:#E9B92F; }
.j-rating button.on svg { scale:1.12; rotate:-8deg; }
.j-rating button:hover svg { scale:1.25; }

/* Reiter: ein Gummi-Tropfen fließt unter den aktiven Reiter */
.j-tabs { position:relative; display:flex; gap:4px; border-bottom:1px solid var(--line); }
.j-tabs button { position:relative; min-height:48px; padding:0 18px; border:0; background:none; cursor:pointer; font:500 15px var(--sans); color:var(--ink-soft); }
.j-tabs button[aria-selected="true"] { color:var(--ink); }
.j-tabs .blob { position:absolute; bottom:-4px; left:0; height:8px; width:var(--w,0); translate:var(--x,0) 0; border-radius:4px;
  transition:translate var(--t-juicy) var(--spring-juicy), width var(--t-juicy) var(--spring-juicy); }

/* ── Eingaben ─────────────────────────────────────────────────────────────── */
.j-field { position:relative; display:block; width:min(360px,100%); }
.j-field input { width:100%; height:56px; padding:22px 18px 6px; border:0; border-radius:18px; outline:0;
  background:linear-gradient(var(--surface-2),var(--surface)); box-shadow:inset 0 2px 5px rgb(0 0 0 / .08), inset 0 0 0 1.5px transparent;
  transition:box-shadow 250ms; font:500 15px var(--sans); }
.j-field span { position:absolute; left:18px; top:18px; color:var(--ink-faint); font:500 15px var(--sans); pointer-events:none;
  transform-origin:0 0; transition:translate var(--t-bounce) var(--spring-bounce), scale var(--t-bounce) var(--spring-bounce), color 200ms; }
.j-field input:focus, .j-field input:not(:placeholder-shown) { box-shadow:inset 0 2px 5px rgb(0 0 0 / .05), inset 0 0 0 2px var(--hue-core), 0 10px 24px -12px var(--hue-core); }
.j-field input:focus + span, .j-field input:not(:placeholder-shown) + span { translate:0 -11px; scale:.72; color:var(--hue-core); }
.j-field small { display:block; margin:6px 4px 0; min-height:18px; font-size:12px; color:var(--ink-soft); }
.j-field[data-state="error"] { animation:j-shake 360ms linear; --hue-core:var(--bub-core); }
.j-field[data-state="error"] small { color:var(--bub-core); }
.j-field[data-state="ok"] { --hue-core:var(--lime-core); }

/* Prompt-Composer: das Herzstück des Studios */
.j-composer { position:relative; width:min(720px,100%); padding:18px; border-radius:30px; overflow:hidden; isolation:isolate; }
.j-composer::before { content:""; position:absolute; z-index:-1; width:360px; aspect-ratio:1; right:-120px; bottom:-220px;
  background:radial-gradient(closest-side at 45% 35%,var(--au-1),transparent), radial-gradient(closest-side at 35% 75%,var(--au-2),transparent),
    radial-gradient(closest-side at 75% 60%,var(--au-3),transparent);
  filter:blur(40px); opacity:.35; animation:j-swirl 9s linear infinite; transition:opacity 500ms, scale var(--t-juicy) var(--spring-juicy); }
.j-composer:focus-within::before { opacity:.7; scale:1.3; }
.j-composer[data-state="loading"]::before { opacity:.9; scale:1.6; animation-duration:2.4s; }
.j-composer textarea { width:100%; min-height:84px; resize:none; border:0; outline:0; background:none; font:500 18px/1.45 var(--sans); color:var(--ink); }
.j-composer textarea::placeholder { color:var(--ink-faint); }
.j-composer .bar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.j-composer .bar .grow { flex:1; }
.j-chip { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:0 14px 0 10px; border:0; border-radius:var(--r-pill);
  font:500 13px var(--sans); color:var(--ink-soft); cursor:pointer;
  background:color-mix(in oklab,var(--surface) 70%,transparent); box-shadow:inset 0 0 0 1px var(--line); transition:background 200ms, color 200ms; }
.j-chip .ji { width:20px; height:20px; }
.j-chip[aria-pressed="true"] { color:var(--ink); background:color-mix(in oklab,var(--hue-rim) 85%,transparent); box-shadow:inset 0 0 0 1.5px var(--hue-body); }

/* Ablage: Datei hineinziehen, der Gummi schluckt sie */
.j-drop { position:relative; display:grid; place-items:center; gap:8px; width:min(360px,100%); min-height:190px; padding:24px; text-align:center;
  border-radius:var(--r-l); cursor:pointer; color:var(--ink-soft);
  background:repeating-linear-gradient(-45deg,transparent 0 10px,color-mix(in oklab,var(--hue-rim) 50%,transparent) 10px 20px), var(--surface);
  box-shadow:inset 0 0 0 2px color-mix(in oklab,var(--hue-body) 55%,transparent); transition:box-shadow 300ms; }
.j-drop .mouth { width:78px; height:64px; border-radius:40px 40px 34px 34px; transition:scale var(--t-juicy) var(--spring-juicy); }
.j-drop .mouth::before { content:""; position:absolute; left:50%; top:52%; width:26px; height:6px; translate:-50% 0; border-radius:6px; background:color-mix(in oklab,var(--hue-core) 55%,black);
  transition:height var(--t-bounce) var(--spring-bounce), width var(--t-bounce) var(--spring-bounce), border-radius 200ms; opacity:.7; }
.j-drop.over { box-shadow:inset 0 0 0 3px var(--hue-core), 0 20px 40px -20px var(--hue-core); }
.j-drop.over .mouth { scale:1.25; }
.j-drop.over .mouth::before { width:30px; height:22px; border-radius:50% 50% 45% 45%; }
.j-drop b { color:var(--ink); font:600 15px var(--sans); }
.j-drop small { font-size:12px; }

/* ── Objekte & Karten ─────────────────────────────────────────────────────── */
.j-kicker { font:500 10.5px/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; }
.j-meta { font-size:13px; color:color-mix(in oklab,var(--hue-core) 72%,var(--ink)); }

/* Asset-Karten: jede Art hat ihr eigenes Objekt mit eigener Bewegung */
.j-asset { position:relative; width:220px; padding:14px 14px 16px; border-radius:28px; background:var(--surface); cursor:pointer;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .9), 0 1px 0 rgb(255 255 255 / .6), var(--shadow-rest); }
.j-asset:hover { box-shadow:inset 0 1px 0 #fff, 0 36px 60px -26px color-mix(in oklab,var(--hue-core) 55%,transparent); }
.j-asset .stage { position:relative; height:160px; border-radius:20px; overflow:hidden; background:color-mix(in oklab,var(--hue-rim) 45%,var(--surface)); }
.j-asset .row { display:flex; justify-content:space-between; align-items:baseline; margin-top:12px; padding:0 4px; }
.j-asset b { font:500 15px var(--sans); letter-spacing:-.015em; }
.j-asset .j-kicker { position:absolute; top:24px; left:26px; z-index:1; color:var(--hue-core); }
.j-asset .idx { position:absolute; top:24px; right:26px; z-index:1; font:500 10.5px var(--mono); letter-spacing:.08em; color:var(--hue-core); }

/* 3D-Modell: Canvas füllt seinen Behälter; der Behälter braucht eine feste Hintergrundfarbe (Transmission) */
.j-model { position:absolute; inset:0; width:100%; height:100%; display:block; touch-action:none; }
.j-tile { position:relative; overflow:hidden; border-radius:26px; background:var(--surface); cursor:pointer;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .8), 0 1px 0 rgb(255 255 255 / .5), 0 22px 40px -26px color-mix(in oklab,var(--hue-core) 55%,transparent); }

/* Projektordner */
.j-folder { position:relative; width:260px; height:180px; transform-origin:50% 100%; }
.j-folder .back { position:absolute; inset:0; border-radius:var(--r-m); background:var(--hue-core);
  clip-path:path("M0 22 Q0 0 22 0 H92 Q104 0 112 10 L122 22 H238 Q260 22 260 44 V180 H0 Z"); }
.j-folder .paper { position:absolute; width:84px; height:110px; left:78px; top:22px; background:#fff; border-radius:12px; box-shadow:0 2px 6px rgb(0 0 0 / .08);
  transform-origin:50% 100%; transition:transform var(--t-juicy) var(--spring-juicy); overflow:hidden; }
.j-folder .paper::after { content:""; position:absolute; inset:10px 10px auto; height:44px; border-radius:6px; background:var(--pc,var(--hue-rim)); }
.j-folder .paper:nth-child(2){transform:rotate(-10deg) translateX(-18px); --pc:var(--bub-rim)} .j-folder .paper:nth-child(3){transform:rotate(6deg) translateX(20px); --pc:var(--lime-rim)}
.j-folder:hover .paper:nth-child(2){transform:rotate(-22deg) translate(-38px,-20px)}
.j-folder:hover .paper:nth-child(3){transform:rotate(16deg) translate(40px,-24px); transition-delay:50ms}
.j-folder:hover .paper:nth-child(4){transform:translateY(-28px) rotate(-3deg); transition-delay:100ms}
.j-folder .front { position:absolute; left:0; right:0; bottom:0; height:122px; padding:20px; display:flex; flex-direction:column; justify-content:flex-end;
  background:color-mix(in oklab,var(--hue-body) 62%,transparent);
  backdrop-filter:blur(14px) saturate(140%); -webkit-backdrop-filter:blur(14px) saturate(140%); border-radius:var(--r-m); transform-origin:50% 100%;
  transition:transform var(--t-juicy) var(--spring-juicy);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .75), inset 0 -1px 0 color-mix(in oklab,var(--hue-core) 30%,transparent), 0 40px 80px -30px rgb(40 60 90 / .28); }
.j-folder:hover .front { transform:perspective(600px) rotateX(-14deg); }
.j-folder .front b { font:500 19px var(--sans); letter-spacing:-.02em; }
.j-folder .front small { font-size:13px; color:color-mix(in oklab,var(--hue-core) 60%,black); }

/* Credits-Tank: Gummiflüssigkeit mit Welle und Blasen */
.j-tank { position:relative; width:150px; height:210px; border-radius:40px 40px 48px 48px; overflow:hidden; isolation:isolate;
  background:linear-gradient(90deg,rgb(255 255 255 / .55),rgb(255 255 255 / .15) 40%,rgb(255 255 255 / .4)), var(--surface-2);
  box-shadow:inset 0 0 0 3px rgb(255 255 255 / .7), inset 0 6px 12px rgb(0 0 0 / .06), 0 30px 50px -24px color-mix(in oklab,var(--hue-core) 50%,transparent); }
.j-tank .liquid { position:absolute; left:-50%; right:-50%; bottom:0; height:calc(var(--fill,.6) * 100%); z-index:-1;
  background:linear-gradient(var(--hue-body),var(--hue-core)); transition:height 900ms var(--spring-juicy); }
.j-tank .liquid::before, .j-tank .liquid::after { content:""; position:absolute; left:0; width:200%; height:28px; top:-14px;
  background:radial-gradient(28px 14px at 50% 100%,var(--hue-body) 98%,transparent) 0 0/56px 28px repeat-x; animation:j-wave 3.4s linear infinite; }
.j-tank .liquid::after { top:-10px; opacity:.5; animation-duration:5s; animation-direction:reverse; }
@keyframes j-wave { to { translate:-56px 0; } }
.j-tank .bub { position:absolute; bottom:-10px; width:var(--sz,8px); aspect-ratio:1; border-radius:50%; background:rgb(255 255 255 / .55); left:var(--l);
  animation:j-rise var(--t,3s) ease-in infinite; animation-delay:var(--dl,0s); }
@keyframes j-rise { 80% { opacity:.8 } to { translate:0 -170px; opacity:0; } }
.j-tank .readout { position:absolute; inset:auto 0 26px; text-align:center; z-index:2; }
.j-tank .readout .j-count { font:500 36px/1 var(--sans); letter-spacing:-.04em; }
.j-tank .readout small { display:block; margin-top:4px; font:500 10px var(--mono); letter-spacing:.12em; text-transform:uppercase; opacity:.9; }
.j-tank::after { content:""; position:absolute; top:18px; left:22px; width:14px; height:70px; border-radius:7px; background:rgb(255 255 255 / .6); z-index:3; }

/* Fortschritt: Gummiband mit Blasen */
.j-progress { position:relative; width:min(360px,100%); height:22px; border-radius:11px; background:var(--surface-2); box-shadow:inset 0 3px 5px rgb(0 0 0 / .1); overflow:hidden; }
.j-progress .fill { position:relative; height:100%; width:calc(var(--p,0) * 1%); border-radius:inherit; overflow:hidden;
  background:linear-gradient(var(--hue-body),var(--hue-core)); box-shadow:inset 0 3px 1px rgb(255 255 255 / .45); transition:width 800ms var(--spring-juicy); }
.j-progress .fill::after { content:""; position:absolute; inset:0; background:radial-gradient(circle,rgb(255 255 255 / .55) 2.5px,transparent 3px) 0 0/22px 22px;
  animation:j-slide 1.6s linear infinite; }
@keyframes j-slide { to { background-position:22px 0; } }
.j-progress-label { display:flex; justify-content:space-between; width:min(360px,100%); margin-bottom:8px; font:500 13px var(--sans); color:var(--ink-soft); }
.j-progress-label b { color:var(--ink); font-variant-numeric:tabular-nums; }

/* Generier-Kugel: Aurora rotiert im Milchglas */
.j-orb { position:relative; width:180px; aspect-ratio:1; border-radius:50%; overflow:hidden; isolation:isolate; display:grid; place-items:center; text-align:center; }
.j-orb::before { content:""; position:absolute; inset:-10%; z-index:-1; border-radius:50%;
  background:radial-gradient(closest-side at 35% 35%,var(--au-1),transparent), radial-gradient(closest-side at 65% 40%,var(--au-2),transparent),
    radial-gradient(closest-side at 50% 72%,var(--au-3),transparent), radial-gradient(closest-side at 30% 70%,var(--au-4),transparent);
  filter:blur(22px); animation:j-swirl 2.4s linear infinite, j-pulse 2.4s ease-in-out infinite; }
.j-orb[data-state="idle"]::before { animation-duration:12s; opacity:.55; }
@keyframes j-pulse { 50% { scale:1.15; } }
.j-orb b { font:400 24px/1.1 var(--serif); color:var(--ink); }
.j-orb small { display:block; font:500 12px var(--sans); color:var(--ink-soft); min-height:18px; }

/* Kennzahl mit rollender Zahl und Mini-Verlauf */
.j-stat { position:relative; width:240px; padding:22px; border-radius:var(--r-m); overflow:hidden; }
.j-stat .j-count { display:block; margin:12px 0 6px; font:500 46px/1 var(--sans); letter-spacing:-.045em; }
.j-stat svg { position:absolute; left:0; right:0; bottom:0; width:100%; height:64px; }
.j-stat .area { fill:color-mix(in oklab,var(--hue-body) 35%,transparent); }
.j-stat .line { fill:none; stroke:var(--hue-core); stroke-width:2.5; stroke-linecap:round; stroke-dasharray:400; stroke-dashoffset:400; animation:j-draw 1.4s var(--ease-out) .4s forwards; }
@keyframes j-draw { to { stroke-dashoffset:0; } }
.j-delta { display:inline-flex; align-items:center; gap:4px; padding:4px 9px; border-radius:var(--r-pill); font:500 11px var(--mono);
  color:color-mix(in oklab,var(--lime-core) 70%,black); background:var(--lime-rim); }

@property --n { syntax:'<integer>'; inherits:false; initial-value:0; }
.j-count { counter-reset:n var(--n); transition:--n 800ms var(--spring-soft); font-variant-numeric:tabular-nums; }
.j-count::after { content:counter(n); }

/* Avatare: Gummibärchen-Köpfe, stapeln sich, quetschen beim Überfahren */
.j-avatars { display:flex; padding-left:12px; }
.j-avatar { position:relative; width:52px; height:52px; margin-left:-12px; border-radius:50%; display:grid; place-items:center;
  font:700 16px var(--sans); color:#fff; text-shadow:0 1px 2px color-mix(in oklab,var(--hue-core) 70%,black); box-shadow:0 0 0 3px var(--canvas), inset 0 2px 1px rgb(255 255 255 / .6);
  transition:translate var(--t-juicy) var(--spring-juicy), scale var(--t-juicy) var(--spring-juicy), margin var(--t-juicy) var(--spring-juicy); }
.j-avatars:hover .j-avatar { margin-left:-4px; }
.j-avatar:hover { translate:0 -8px; scale:1.12; z-index:1; }
.j-avatar.more { background:var(--surface-2); color:var(--ink-soft); text-shadow:none; font-size:14px; }

/* Etiketten */
.j-tag { display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 12px; border-radius:var(--r-pill);
  font:500 10.5px var(--mono); letter-spacing:.08em; text-transform:uppercase; color:color-mix(in oklab,var(--hue-core) 65%,black); background:var(--hue-rim); box-shadow:inset 0 -1px 0 color-mix(in oklab,var(--hue-core) 20%,transparent); }
:root[data-theme="dark"] .j-tag { background:color-mix(in oklab,var(--hue-core) 22%,var(--surface)); color:var(--hue-rim); }
@media (prefers-color-scheme:dark) { :root:not([data-theme="light"]) .j-tag { background:color-mix(in oklab,var(--hue-core) 22%,var(--surface)); color:var(--hue-rim); } }

/* Sprechblase / Tooltip */
.j-tip { position:relative; display:inline-block; }
.j-tip [role="tooltip"] { position:absolute; bottom:calc(100% + 14px); left:50%; translate:-50% 0; scale:.4; opacity:0; transform-origin:50% 120%;
  padding:9px 14px; border-radius:16px; white-space:nowrap; font:500 13px var(--sans); pointer-events:none;
  transition:scale var(--t-bounce) var(--spring-bounce), opacity 150ms; }
.j-tip [role="tooltip"]::after { content:""; position:absolute; top:100%; left:50%; translate:-50% -50%; rotate:45deg; width:12px; height:12px; background:inherit; border-radius:0 0 4px 0; }
.j-tip:hover [role="tooltip"], .j-tip:focus-within [role="tooltip"] { scale:1; opacity:1; }

/* Meldung: fällt als Gummitropfen von oben ein */
.j-toasts { position:fixed; top:20px; left:50%; translate:-50% 0; z-index:150; display:grid; gap:10px; justify-items:center; pointer-events:none; }
.j-toast { display:flex; align-items:center; gap:12px; padding:10px 18px 10px 10px; border-radius:var(--r-pill); pointer-events:auto; font:500 14px var(--sans);
  animation:j-drop-in 700ms var(--spring-juicy) both; }
.j-toast .ji { width:32px; height:32px; }
.j-toast.out { animation:j-drop-out 260ms var(--ease-out) forwards; }
@keyframes j-drop-in { from { translate:0 -60px; scale:.6 1.3; opacity:0; } 45% { scale:1.1 .88; opacity:1; } }
@keyframes j-drop-out { to { translate:0 -20px; scale:.8; opacity:0; } }

/* Dialog: Glasplatte über verschwommener Seite */
.j-dialog { border:0; padding:0; background:none; overflow:visible; color:var(--ink); }
.j-dialog::backdrop { background:color-mix(in oklab,var(--canvas-2) 40%,transparent); backdrop-filter:blur(6px); }
.j-dialog[open] .j-slab { animation:j-sheet 750ms var(--spring-juicy) both; }
@keyframes j-sheet { from { scale:.6; translate:0 40px; opacity:0; } 40% { opacity:1; } }
.j-dialog .j-slab { width:min(420px,calc(100vw - 32px)); padding:28px; }
.j-dialog h3 { margin:14px 0 6px; font:400 30px/1.1 var(--serif); letter-spacing:-.01em; }
.j-dialog p { margin:0 0 22px; color:var(--ink-soft); }
.j-dialog .actions { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }

/* Aufklapper (FAQ): Plus dreht sich zum Kreuz, Inhalt federt auf */
.j-acc { width:min(560px,100%); display:grid; gap:10px; }
.j-acc details { border-radius:var(--r-m); padding:0 20px; background:var(--surface); box-shadow:var(--shadow-rest); interpolate-size:allow-keywords; }
.j-acc summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px; cursor:pointer; list-style:none; font:500 16px var(--sans); letter-spacing:-.015em; }
.j-acc summary::-webkit-details-marker { display:none; }
.j-acc .plus { position:relative; flex:none; width:32px; height:32px; border-radius:50%; display:grid; place-items:center; transition:rotate var(--t-juicy) var(--spring-juicy);
  background:radial-gradient(circle at 35% 28%,var(--hue-body),var(--hue-core)); box-shadow:inset 0 2px 1px rgb(255 255 255 / .6), 0 6px 12px -6px var(--hue-core); }
.j-acc .plus::before, .j-acc .plus::after { content:""; position:absolute; width:12px; height:2.5px; border-radius:2px; background:#fff; }
.j-acc .plus::after { rotate:90deg; }
.j-acc details[open] .plus { rotate:135deg; }
.j-acc details::details-content { block-size:0; overflow:clip; transition:block-size 500ms var(--spring-soft), content-visibility 500ms allow-discrete; }
.j-acc details[open]::details-content { block-size:auto; }
.j-acc details p { margin:0 0 18px; color:var(--ink-soft); }

.j-empty { display:grid; justify-items:center; gap:14px; text-align:center; max-width:320px; }
.j-empty b { font:400 26px/1.1 var(--serif); margin-top:18px; }
.j-empty p { margin:0; color:var(--ink-soft); font-size:14px; }

/* Preis-Stufe: Glasplatte, die Heldenstufe trägt Gummi */
.j-tier { position:relative; width:250px; padding:26px 24px 24px; border-radius:var(--r-l); display:grid; gap:14px; align-content:start; }
.j-tier.featured { color:#fff; background:linear-gradient(var(--hue-body),var(--hue-core)); }   /* Karte: kein Glanzlicht */
.j-tier .price { font:400 58px/1 var(--serif); letter-spacing:-.02em; }
.j-tier .price small { font:400 14px var(--sans); opacity:.7; letter-spacing:0; }
.j-tier ul { margin:0; padding:0; list-style:none; display:grid; gap:8px; font-size:14px; }
.j-tier li { display:flex; gap:8px; align-items:center; }
.j-tier.featured .j-btn { background:#fff; color:var(--hue-core); text-shadow:none; }
.j-tier .flag { position:absolute; top:-14px; right:20px; padding:7px 12px; border-radius:var(--r-pill); font:500 10.5px var(--mono); letter-spacing:.12em;
  background:var(--butter); color:var(--ink); box-shadow:0 8px 14px -8px #C79A0C; rotate:4deg; }

/* Kopfleiste: Glas, aktiver Link in Tinte */
.j-nav { position:relative; display:flex; align-items:center; gap:6px; padding:8px 8px 8px 22px; border-radius:var(--r-pill); width:min(720px,100%); }
.j-nav .brand { font:400 22px/1 var(--serif); letter-spacing:-.01em; margin-right:auto; }
.j-nav a { position:relative; display:grid; place-items:center; min-height:44px; padding:0 16px; border-radius:var(--r-pill); text-decoration:none; color:var(--ink-soft); font:500 14px var(--sans); z-index:1; }
.j-nav a[aria-current="page"] { color:var(--ink); }

/* ── Icons: kleine Gummiobjekte, eine Bewegung, ausgelöst vom Elternteil ─── */
.ji { width:32px; height:32px; overflow:visible; flex:none; }
.ji * { transform-box:fill-box; transition:transform var(--t-bounce) var(--spring-bounce), opacity 200ms; }
.ji .c { fill:var(--hue-core); } .ji .b { fill:var(--hue-body); } .ji .r { fill:var(--hue-rim); } .ji .w { fill:#fff; } .ji .k { fill:var(--ink); }
.ji .hl { fill:none; stroke:#fff; stroke-opacity:.85; stroke-width:1.3; stroke-linecap:round; }
.ji .st { fill:none; stroke:#fff; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-folder .front { transform:perspective(40px) rotateX(-18deg) scaleY(.94); transform-origin:50% 100%; }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-folder .paper { transform:translateY(-3px) rotate(-4deg); }
.ji-bell .body { transform-origin:50% 0; }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-bell .body { animation:j-ring 700ms var(--ease-out); }
@keyframes j-ring { 15% { rotate:14deg } 35% { rotate:-12deg } 55% { rotate:8deg } 75% { rotate:-4deg } }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-heart .body, [aria-pressed="true"] .ji-heart .body { transform:scale(1.18,.9); }
.ji-heart .body { transform-origin:50% 80%; }
[aria-pressed="false"] .ji-heart .c { fill:color-mix(in oklab,var(--hue-body) 45%,var(--surface-2)); } [aria-pressed="false"] .ji-heart .b { fill:var(--hue-rim); }
.ji-check .st { stroke-dasharray:20; stroke-dashoffset:0; }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-check .st, .ji-check.draw .st { animation:j-draw-s 420ms var(--ease-out); }
@keyframes j-draw-s { from { stroke-dashoffset:20; } }
.ji-trash .lid { transform-origin:0 100%; }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-trash .lid { transform:translateY(-3px) rotate(-16deg); }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-send .body { transform:translate(3px,-3px) rotate(-6deg); }
.ji-send .trail { opacity:0; }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-send .trail { opacity:.7; }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-search .lens { transform:scale(1.12); }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-search .handle { animation:j-wig 500ms var(--ease-out); transform-origin:0 0; }
@keyframes j-wig { 30% { rotate:14deg } 60% { rotate:-10deg } }
.ji-mic .lvl { transform-origin:50% 100%; }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-mic .lvl, [aria-pressed="true"] .ji-mic .lvl { animation:j-eq .5s ease-in-out infinite alternate; }
.ji-mic .lvl:nth-of-type(2) { animation-delay:-.2s !important; }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-cube .top { transform:translateY(-3px); }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-cube .side { transform:translateY(1px); }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-image .sun { transform:translateY(-3px) scale(1.2); }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-image .hill { transform:scaleY(1.12); transform-origin:50% 100%; }
.ji-wave .w1, .ji-wave .w2 { transform-origin:0 50%; }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-wave .w1 { animation:j-ping 800ms var(--ease-out) infinite; }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-wave .w2 { animation:j-ping 800ms var(--ease-out) 150ms infinite; }
@keyframes j-ping { 0% { opacity:.2; transform:scale(.6) } 60% { opacity:1; transform:scale(1.08) } }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-pad .btns { animation:j-press 500ms var(--ease-out); }
@keyframes j-press { 30% { transform:scale(.7) } }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-pad .body { transform:rotate(-6deg); }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-download .arrow { animation:j-dl 600ms var(--ease-out); }
@keyframes j-dl { 40% { transform:translateY(4px) scaleY(.8) } }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-plus .body { transform:rotate(90deg) scale(1.08); }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-gear .body { transform:rotate(60deg); }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-bolt .body { animation:j-zap 500ms var(--ease-out); }
@keyframes j-zap { 20% { transform:translate(-2px,1px) } 40% { transform:translate(2px,-1px) } 60% { transform:translate(-1px,0) scale(1.1) } }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-user .head { transform:translateY(-2px) rotate(-8deg); }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-sound .w1 { transform:scale(1.2); transform-origin:0 50%; }
[aria-pressed="false"] .ji-sound .w1, [aria-pressed="false"] .ji-sound .w2 { transform:scale(0,1); transform-origin:0 50%; }
.ji-sound .slash { stroke-dasharray:32; stroke-dashoffset:32; transition:stroke-dashoffset 300ms var(--ease-out); }
[aria-pressed="false"] .ji-sound .slash { stroke-dashoffset:0; }
:is(button,a,label,.j-hot):is(:hover,:focus-visible) .ji-play .body { transform:scale(1.15,.9) translateX(1px); }

/* ── Barrierefreiheit & Rückfall ──────────────────────────────────────────── */
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:1ms !important; animation-iteration-count:1 !important; transition-duration:1ms !important; }
  [data-glow] { --mx:50% !important; --my:0% !important; }
}
@media (prefers-reduced-transparency:reduce) { .j-slab, .j-folder .front { backdrop-filter:none; background:var(--surface); } }
@supports not (backdrop-filter:blur(1px)) { .j-slab { background:var(--surface); } }
