aff0105700
- voice-core/: STT/TTS hinter Engine-Interfaces (pocket/box austauschbar), SpeechScheduler ausgelagert - useVAD (Freisprechen, adaptive RMS-Schwelle), usePushToTalk, sentiment - Avatar3D/config/styles-Feinschliff, AuraGlow - electron.vite.config, tsconfig, Starter-BATs, .gitignore (out/, avatar.vrm) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
283 lines
15 KiB
CSS
283 lines
15 KiB
CSS
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
:root { color-scheme: dark; }
|
|
html, body, #root { height: 100%; }
|
|
body {
|
|
font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
color: #e5e7eb; overflow: hidden; background: transparent; /* frameless+transparent: App malt den Hintergrund */
|
|
}
|
|
|
|
/* ---- App-Rahmen: Titelleiste + Body ---- */
|
|
.app { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
|
|
.app.full {
|
|
background: radial-gradient(1200px 800px at 50% 30%, #14141f 0%, #0a0a0f 70%);
|
|
border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
|
|
}
|
|
.app.overlay { background: transparent; }
|
|
|
|
.titlebar {
|
|
flex-shrink: 0; height: 34px; display: flex; align-items: center; justify-content: space-between;
|
|
padding: 0 6px 0 12px; -webkit-app-region: drag; user-select: none;
|
|
}
|
|
.app.overlay .titlebar { height: 28px; opacity: 0.35; transition: opacity 0.2s; }
|
|
.app.overlay:hover .titlebar { opacity: 1; }
|
|
.drag { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
|
|
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 8px currentColor; }
|
|
.ttl { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #cbd5e1; }
|
|
.ttlStatus { font-size: 11px; color: #6b7280; margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.winbtns { display: flex; gap: 2px; -webkit-app-region: no-drag; }
|
|
.wb {
|
|
width: 28px; height: 24px; border: none; background: transparent; color: #9ca3af; cursor: pointer;
|
|
border-radius: 6px; font-size: 13px; display: flex; align-items: center; justify-content: center;
|
|
}
|
|
.wb:hover { background: rgba(255,255,255,0.1); color: #e5e7eb; }
|
|
.wb.close:hover { background: #ef4444; color: #fff; }
|
|
.wb[data-on="true"] { color: #7dd3fc; }
|
|
|
|
.body { flex: 1; min-height: 0; display: flex; gap: 14px; padding: 0 14px 14px; }
|
|
.app.overlay .body { padding: 0; }
|
|
|
|
.stage {
|
|
position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0;
|
|
border: 1px solid rgba(255,255,255,0.07); border-radius: 14px;
|
|
background: rgba(255,255,255,0.02); overflow: hidden;
|
|
}
|
|
.app.overlay .stage { border: none; background: transparent; }
|
|
.avatarWrap { flex: 1; min-height: 0; position: relative; overflow: hidden; border-radius: 14px; }
|
|
/* Overlay: Lucy am Koerper greifen & ueber den Desktop ziehen (Bedienelemente bleiben no-drag) */
|
|
.app.overlay .avatarWrap { -webkit-app-region: drag; }
|
|
.app.overlay .overlayBubbles, .app.overlay .overlayBubbles * { -webkit-app-region: no-drag; }
|
|
|
|
/* --- digitaler Raum (animierter Sci-Fi-Backdrop, Etappe 2B) --- */
|
|
.digitalRoom {
|
|
position: absolute; inset: 0; z-index: 0; overflow: hidden;
|
|
background:
|
|
radial-gradient(60% 50% at 50% 16%, rgba(125,211,252,0.10), transparent 70%),
|
|
radial-gradient(70% 60% at 82% 92%, rgba(167,139,250,0.10), transparent 70%),
|
|
radial-gradient(60% 60% at 12% 88%, rgba(52,211,153,0.06), transparent 70%),
|
|
linear-gradient(180deg, #0b0b15 0%, #07070d 100%);
|
|
box-shadow: inset 0 0 130px 36px rgba(0,0,0,0.55); /* Vignette -> Tiefe */
|
|
}
|
|
.digitalRoom::before { /* sanft driftendes Aurora-Licht (KEIN filter:blur -> Verlaeufe sind weich genug, spart GPU) */
|
|
content: ""; position: absolute; inset: -20%; z-index: 0; will-change: transform;
|
|
background:
|
|
radial-gradient(40% 40% at 30% 32%, rgba(125,211,252,0.12), transparent 70%),
|
|
radial-gradient(45% 45% at 74% 42%, rgba(167,139,250,0.12), transparent 70%);
|
|
animation: auroraDrift 26s ease-in-out infinite alternate;
|
|
}
|
|
.digitalRoom::after { /* perspektivisches Neon-Gitter am Boden */
|
|
content: ""; position: absolute; left: -25%; right: -25%; bottom: -12%; height: 58%;
|
|
background-image: linear-gradient(rgba(125,211,252,0.13) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(125,211,252,0.10) 1px, transparent 1px);
|
|
background-size: 46px 46px;
|
|
transform: perspective(440px) rotateX(62deg); transform-origin: bottom center;
|
|
-webkit-mask-image: linear-gradient(transparent, #000 65%);
|
|
animation: gridDrift 14s linear infinite;
|
|
}
|
|
/* schwebende Partikel (eine Ebene, nahtlos gekachelt) -> dezente Tiefe, guenstig */
|
|
.dust {
|
|
position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6;
|
|
background-image: radial-gradient(1.6px 1.6px at 50% 50%, rgba(125,211,252,0.5), transparent 60%);
|
|
background-size: 110px 110px; animation: dustRise 30s linear infinite;
|
|
}
|
|
@keyframes gridDrift { to { background-position: 0 46px, 46px 0; } }
|
|
@keyframes auroraDrift { from { transform: translate(-3%, -2%) scale(1); } to { transform: translate(4%, 3%) scale(1.08); } }
|
|
@keyframes dustRise { to { background-position: 0 -110px; } }
|
|
.app.overlay .digitalRoom { display: none; } /* Overlay floatet -> nur Avatar + Aura */
|
|
|
|
.aura { position: absolute; inset: 0; z-index: 1; pointer-events: none; will-change: transform, opacity; }
|
|
.avatarCanvas { z-index: 2; }
|
|
|
|
.subtitle {
|
|
position: absolute; left: 7%; right: 7%; bottom: 14px; z-index: 3; text-align: center; max-height: 40%;
|
|
overflow: hidden; pointer-events: none; border-radius: 10px; padding: 8px 14px;
|
|
font-size: 15px; line-height: 1.45; color: #eef2f7;
|
|
text-shadow: 0 1px 6px #000, 0 0 16px rgba(0,0,0,0.6);
|
|
background: linear-gradient(transparent, rgba(8,8,14,0.45)); animation: subIn 0.2s ease;
|
|
}
|
|
@keyframes subIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
|
|
.app.overlay .subtitle { font-size: 13px; bottom: 34px; }
|
|
|
|
.warmOverlay {
|
|
position: absolute; inset: 0; display: flex; flex-direction: column;
|
|
align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px;
|
|
background: rgba(10,10,15,0.72); backdrop-filter: blur(3px); z-index: 5;
|
|
}
|
|
.warmTitle { font-size: 16px; color: #e5e7eb; }
|
|
.warmSub { font-size: 13px; color: #9ca3af; max-width: 340px; line-height: 1.5; }
|
|
.spinner.big { width: 30px; height: 30px; border-width: 3px; }
|
|
|
|
.overlayCaption {
|
|
position: absolute; left: 0; right: 0; bottom: 8px; display: flex; gap: 6px; justify-content: center;
|
|
align-items: center; font-size: 12px; color: #cbd5e1; text-shadow: 0 1px 4px #000; pointer-events: none;
|
|
}
|
|
|
|
/* --- Overlay v2: griffbereite Blasen fuer Links/Code (behindern nicht, jederzeit ignorierbar) --- */
|
|
.overlayBubbles {
|
|
position: absolute; left: 6px; right: 6px; bottom: 28px; z-index: 4;
|
|
display: flex; flex-direction: column; gap: 5px; align-items: stretch;
|
|
}
|
|
.bubbleChip {
|
|
display: flex; align-items: center; gap: 4px; padding: 3px 4px 3px 9px; border-radius: 9px;
|
|
background: rgba(12,12,20,0.82); border: 1px solid rgba(125,211,252,0.25);
|
|
backdrop-filter: blur(4px); box-shadow: 0 3px 12px rgba(0,0,0,0.4);
|
|
}
|
|
.bubbleChip .chipTxt {
|
|
flex: 1; min-width: 0; font-size: 11px; color: #cbd5e1;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
.bubbleChip button {
|
|
flex-shrink: 0; width: 22px; height: 20px; border: none; border-radius: 6px; cursor: pointer;
|
|
background: rgba(125,211,252,0.14); color: #7dd3fc; font-size: 11px; -webkit-app-region: no-drag;
|
|
}
|
|
.bubbleChip button:hover { background: rgba(125,211,252,0.28); }
|
|
|
|
.controls {
|
|
flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
|
|
padding: 16px; border-top: 1px solid rgba(255,255,255,0.07); background: rgba(0,0,0,0.25);
|
|
}
|
|
.app.overlay .controls { border: none; background: transparent; padding: 8px; gap: 6px; }
|
|
.status { display: flex; align-items: center; gap: 8px; font-size: 14px; }
|
|
.spinner {
|
|
width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.25); border-top-color: #7dd3fc;
|
|
border-radius: 50%; animation: spin 0.8s linear infinite;
|
|
}
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
.mic {
|
|
width: 72px; height: 72px; border-radius: 50%; cursor: pointer; user-select: none;
|
|
display: flex; align-items: center; justify-content: center;
|
|
border: 2px solid rgba(125,211,252,0.5); background: rgba(125,211,252,0.12); color: #7dd3fc;
|
|
transition: transform 0.12s, background 0.12s, border-color 0.12s;
|
|
}
|
|
.app.overlay .mic { width: 56px; height: 56px; }
|
|
.mic:hover { background: rgba(125,211,252,0.2); transform: scale(1.05); }
|
|
.mic.rec {
|
|
border-color: #f87171; background: rgba(248,113,113,0.2); color: #fca5a5; transform: scale(1.1);
|
|
box-shadow: 0 0 24px rgba(248,113,113,0.35);
|
|
}
|
|
.mic.disabled { opacity: 0.4; cursor: default; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); color: #6b7280; }
|
|
.mic.disabled:hover { transform: none; background: rgba(255,255,255,0.04); }
|
|
.hint { font-size: 11px; color: #6b7280; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
|
|
.hint kbd { background: rgba(255,255,255,0.1); border-radius: 4px; padding: 1px 5px; font-family: monospace; }
|
|
|
|
.modeToggle { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: rgba(255,255,255,0.05); }
|
|
.modeToggle button {
|
|
border: none; background: transparent; color: #9ca3af; cursor: pointer;
|
|
font-size: 11px; padding: 4px 10px; border-radius: 7px; transition: background 0.12s, color 0.12s;
|
|
}
|
|
.modeToggle button:hover { color: #e5e7eb; }
|
|
.modeToggle button.on { background: rgba(125,211,252,0.18); color: #7dd3fc; }
|
|
.app.overlay .modeToggle { display: none; }
|
|
.vadDot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: pulse 1s infinite; }
|
|
|
|
.danceBtn {
|
|
border: 1px solid rgba(167,139,250,0.35); background: rgba(167,139,250,0.12); color: #c4b5fd;
|
|
font-size: 11px; padding: 4px 12px; border-radius: 9px; cursor: pointer; -webkit-app-region: no-drag;
|
|
transition: background 0.12s, color 0.12s;
|
|
}
|
|
.danceBtn:hover { background: rgba(167,139,250,0.22); color: #ddd6fe; }
|
|
.danceBtn.on { background: rgba(167,139,250,0.3); color: #ede9fe; border-color: rgba(167,139,250,0.6); }
|
|
.app.overlay .danceBtn { display: none; } /* im Overlay kein Platz -> nur im Vollfenster */
|
|
|
|
.side {
|
|
width: 320px; flex-shrink: 0; display: flex; flex-direction: column;
|
|
border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; background: rgba(255,255,255,0.02);
|
|
}
|
|
.sideHead {
|
|
display: flex; justify-content: space-between; align-items: center; padding: 12px 16px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.07);
|
|
font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af;
|
|
}
|
|
.iconBtn { background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 15px; }
|
|
.iconBtn:hover { color: #e5e7eb; }
|
|
|
|
.conv { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
|
|
.empty { font-size: 12px; color: #9ca3af; line-height: 1.6; }
|
|
.msg { display: flex; flex-direction: column; gap: 4px; }
|
|
.msg.user { align-items: flex-end; }
|
|
.msg.assistant { align-items: flex-start; }
|
|
.who { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; padding: 0 4px; }
|
|
.bubble {
|
|
max-width: 88%; white-space: pre-wrap; word-break: break-word; border-radius: 16px;
|
|
padding: 8px 12px; font-size: 14px; line-height: 1.5;
|
|
}
|
|
.msg.user .bubble { background: rgba(125,211,252,0.14); border-bottom-right-radius: 4px; }
|
|
.msg.assistant .bubble { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-bottom-left-radius: 4px; }
|
|
.dots { display: inline-flex; gap: 4px; }
|
|
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #6b7280; animation: pulse 1s infinite; }
|
|
.dots i:nth-child(2) { animation-delay: 0.15s; }
|
|
.dots i:nth-child(3) { animation-delay: 0.3s; }
|
|
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
|
|
|
|
::-webkit-scrollbar { width: 8px; }
|
|
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
|
|
|
|
/* ---- Etappe 2: guter Chat (Markdown, Code-Bloecke, Links, Kopieren) ---- */
|
|
.bubble { position: relative; }
|
|
.md { white-space: normal; }
|
|
.md > :first-child { margin-top: 0; }
|
|
.md > :last-child { margin-bottom: 0; }
|
|
.md p { margin: 0 0 8px; }
|
|
.md ul, .md ol { margin: 4px 0 8px; padding-left: 20px; }
|
|
.md li { margin: 2px 0; }
|
|
.md strong { color: #f1f5f9; font-weight: 650; }
|
|
.md a.mdLink { color: #7dd3fc; text-decoration: underline; cursor: pointer; word-break: break-all; }
|
|
.md a.mdLink:hover { color: #bae6fd; }
|
|
.mdInlineCode {
|
|
font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px;
|
|
background: rgba(125,211,252,0.10); border: 1px solid rgba(125,211,252,0.18);
|
|
border-radius: 5px; padding: 1px 5px; word-break: break-word;
|
|
}
|
|
.codeBlock {
|
|
margin: 8px 0; border-radius: 10px; overflow: hidden;
|
|
border: 1px solid rgba(255,255,255,0.10); background: #0c0c14;
|
|
}
|
|
.codeBar {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
padding: 4px 8px 4px 12px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.08);
|
|
}
|
|
.codeLang { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7280; }
|
|
.codeBlock pre { margin: 0; padding: 10px 12px; overflow-x: auto; }
|
|
.codeBlock code {
|
|
font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; line-height: 1.5;
|
|
color: #e5e7eb; white-space: pre;
|
|
}
|
|
.copyBtn {
|
|
border: 1px solid rgba(125,211,252,0.3); background: rgba(125,211,252,0.10); color: #7dd3fc;
|
|
font-size: 11px; padding: 2px 8px; border-radius: 6px; cursor: pointer; -webkit-app-region: no-drag;
|
|
}
|
|
.copyBtn:hover { background: rgba(125,211,252,0.2); }
|
|
.msgCopy {
|
|
position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: none;
|
|
background: rgba(255,255,255,0.06); color: #9ca3af; border-radius: 6px; cursor: pointer;
|
|
font-size: 12px; opacity: 0; transition: opacity 0.12s; -webkit-app-region: no-drag;
|
|
}
|
|
.msg.assistant .bubble:hover .msgCopy { opacity: 1; }
|
|
.msgCopy:hover { background: rgba(255,255,255,0.14); color: #e5e7eb; }
|
|
|
|
/* ---- Hologramm-Look (Holo-Lucy): Silhouetten-Glow + Scanlines + Cyan-Tint ---- */
|
|
/* drop-shadow folgt der Alpha-Silhouette des transparenten WebGL-Canvas -> billiger „Bloom"-Halo */
|
|
.avatarCanvas.holo canvas {
|
|
filter: drop-shadow(0 0 5px rgba(90,222,255,0.85)) drop-shadow(0 0 15px rgba(56,190,255,0.5));
|
|
}
|
|
.holoTint {
|
|
position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
|
|
background: radial-gradient(ellipse 60% 55% at 50% 42%, rgba(60,200,255,0.12), rgba(30,120,255,0.05) 62%, transparent 82%);
|
|
}
|
|
.holoScan {
|
|
position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: screen;
|
|
background: repeating-linear-gradient(0deg, rgba(120,230,255,0.07) 0px, rgba(120,230,255,0.07) 1px, transparent 2px, transparent 4px);
|
|
animation: holoFlicker 4s infinite;
|
|
}
|
|
@keyframes holoFlicker {
|
|
0%, 100% { opacity: 0.5; } 48% { opacity: 0.46; } 50% { opacity: 0.72; } 52% { opacity: 0.45; }
|
|
70% { opacity: 0.55; } 71% { opacity: 0.4; } 72% { opacity: 0.55; } 92% { opacity: 0.6; }
|
|
}
|
|
.holoToggle {
|
|
position: absolute; top: 6px; right: 6px; z-index: 6; -webkit-app-region: no-drag;
|
|
width: 26px; height: 24px; border-radius: 7px; cursor: pointer; font-size: 13px;
|
|
border: 1px solid rgba(125,211,252,0.35); background: rgba(12,12,20,0.5); color: #7dd3fc;
|
|
}
|
|
.holoToggle:hover { background: rgba(125,211,252,0.2); }
|
|
.holoToggle.on { background: rgba(125,211,252,0.28); color: #bae6fd; }
|