938 lines
23 KiB
CSS
938 lines
23 KiB
CSS
/* ─────────────────────────────────────────────────────────────
|
||
Arisu AI — Cyberpunk × Anime theme (blue edition)
|
||
Bootstrap 5 is loaded before this file.
|
||
───────────────────────────────────────────────────────────── */
|
||
|
||
/* ── Custom properties ──────────────────────────────────── */
|
||
:root {
|
||
--bg: #000d1a;
|
||
--surface: rgba(255, 255, 255, 0.04);
|
||
--surface2: rgba(255, 255, 255, 0.07);
|
||
--border: rgba(96, 165, 250, 0.2);
|
||
--border-hi: rgba(147, 197, 253, 0.45);
|
||
--blue: #60a5fa;
|
||
--blue-dark: #3b82f6;
|
||
--blue-lite: #93c5fd;
|
||
--pink: #f472b6;
|
||
--cyan: #22d3ee;
|
||
--text: #e8f4ff;
|
||
--dim: #7cb9f4;
|
||
--font: "Nunito", "Segoe UI", sans-serif;
|
||
--font-logo: "Orbitron", monospace;
|
||
}
|
||
|
||
/* ── Reset ──────────────────────────────────────────────── */
|
||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||
|
||
html, body {
|
||
height: 100%;
|
||
background: var(--bg);
|
||
color: var(--text);
|
||
font-family: var(--font);
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* ── Animated background orbs ───────────────────────────── */
|
||
.bg-orbs {
|
||
position: fixed;
|
||
inset: 0;
|
||
pointer-events: none;
|
||
z-index: 0;
|
||
overflow: hidden;
|
||
}
|
||
.orb {
|
||
position: absolute;
|
||
border-radius: 50%;
|
||
filter: blur(90px);
|
||
opacity: 0.16;
|
||
animation: orb-drift 22s ease-in-out infinite alternate;
|
||
}
|
||
.orb-1 {
|
||
width: 640px; height: 640px;
|
||
background: var(--blue-dark);
|
||
top: -220px; left: -160px;
|
||
animation-duration: 24s;
|
||
}
|
||
.orb-2 {
|
||
width: 520px; height: 520px;
|
||
background: var(--pink);
|
||
top: 38%; right: -180px;
|
||
animation-duration: 19s;
|
||
animation-direction: alternate-reverse;
|
||
opacity: 0.12;
|
||
}
|
||
.orb-3 {
|
||
width: 460px; height: 460px;
|
||
background: var(--cyan);
|
||
bottom: -160px; left: 33%;
|
||
animation-duration: 28s;
|
||
opacity: 0.1;
|
||
}
|
||
@keyframes orb-drift {
|
||
0% { transform: translate(0,0) scale(1); }
|
||
50% { transform: translate(40px,30px) scale(1.07); }
|
||
100% { transform: translate(-20px,50px) scale(0.95); }
|
||
}
|
||
|
||
/* ── App layout ─────────────────────────────────────────── */
|
||
#app {
|
||
position: relative;
|
||
z-index: 1;
|
||
display: grid;
|
||
grid-template-rows: 54px auto 1fr;
|
||
height: 100vh;
|
||
max-width: 1380px;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
/* ── Header ─────────────────────────────────────────────── */
|
||
.app-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16px;
|
||
padding: 0 24px;
|
||
border-bottom: 1px solid var(--border);
|
||
background: rgba(0, 10, 26, 0.88);
|
||
backdrop-filter: blur(18px);
|
||
-webkit-backdrop-filter: blur(18px);
|
||
}
|
||
|
||
.brand {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 10px;
|
||
}
|
||
|
||
.logo {
|
||
font-family: var(--font-logo);
|
||
font-size: 1.22rem;
|
||
font-weight: 900;
|
||
letter-spacing: 3px;
|
||
background: linear-gradient(90deg, var(--blue-lite), var(--cyan), var(--pink));
|
||
-webkit-background-clip: text;
|
||
-webkit-text-fill-color: transparent;
|
||
background-clip: text;
|
||
}
|
||
|
||
.logo-jp {
|
||
font-size: 0.64rem;
|
||
color: var(--dim);
|
||
letter-spacing: 1px;
|
||
opacity: 0.65;
|
||
}
|
||
|
||
.header-center { flex: 1; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
|
||
|
||
.status-badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 7px;
|
||
padding: 4px 12px;
|
||
background: var(--surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: 20px;
|
||
font-size: 0.7rem;
|
||
color: var(--dim);
|
||
}
|
||
|
||
.terminal-badge {
|
||
display: none;
|
||
align-items: center;
|
||
gap: 5px;
|
||
font-size: 0.65rem;
|
||
font-weight: 700;
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
color: #22d3ee;
|
||
background: rgba(34, 211, 238, 0.12);
|
||
border: 1px solid rgba(34, 211, 238, 0.35);
|
||
border-radius: 999px;
|
||
padding: 4px 10px;
|
||
}
|
||
.terminal-badge.visible { display: inline-flex; }
|
||
|
||
#statusDot {
|
||
width: 7px; height: 7px;
|
||
border-radius: 50%;
|
||
background: #f59e0b;
|
||
box-shadow: 0 0 8px currentColor;
|
||
transition: background 0.4s;
|
||
}
|
||
|
||
.header-actions { display: flex; align-items: center; gap: 8px; }
|
||
|
||
.icon-btn {
|
||
background: var(--surface);
|
||
border: 1px solid var(--border);
|
||
border-radius: 10px;
|
||
color: var(--dim);
|
||
width: 34px; height: 34px;
|
||
display: flex; align-items: center; justify-content: center;
|
||
cursor: pointer;
|
||
font-size: 1rem;
|
||
transition: border-color 0.2s, background 0.2s, color 0.2s;
|
||
flex-shrink: 0;
|
||
}
|
||
.icon-btn:hover, .icon-btn.open {
|
||
border-color: var(--blue);
|
||
background: rgba(96, 165, 250, 0.12);
|
||
color: var(--blue-lite);
|
||
}
|
||
|
||
/* ── Settings panel ─────────────────────────────────────── */
|
||
.settings-panel {
|
||
border-bottom: 1px solid var(--border);
|
||
background: rgba(0, 8, 22, 0.95);
|
||
backdrop-filter: blur(14px);
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
max-height: min(58vh, 480px);
|
||
opacity: 1;
|
||
transition: max-height 0.35s ease, opacity 0.25s ease;
|
||
}
|
||
.settings-panel.hidden {
|
||
max-height: 0;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.settings-inner {
|
||
display: grid;
|
||
grid-template-columns: minmax(260px, 300px) 1fr;
|
||
gap: 14px;
|
||
padding: 14px 20px 18px;
|
||
align-items: start;
|
||
}
|
||
|
||
.settings-card {
|
||
border-radius: 12px;
|
||
border: 1px solid var(--border);
|
||
background: rgba(255, 255, 255, 0.03);
|
||
padding: 14px 16px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.settings-card-terminal {
|
||
border-color: rgba(34, 211, 238, 0.28);
|
||
background: rgba(34, 211, 238, 0.05);
|
||
}
|
||
|
||
.settings-card-title {
|
||
margin: 0;
|
||
font-size: 0.72rem;
|
||
font-weight: 800;
|
||
letter-spacing: 0.06em;
|
||
text-transform: uppercase;
|
||
color: var(--cyan);
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding-bottom: 8px;
|
||
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
||
}
|
||
|
||
.settings-card-general .settings-card-title {
|
||
color: var(--blue-lite);
|
||
}
|
||
|
||
.settings-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: 10px 14px;
|
||
}
|
||
|
||
.settings-field {
|
||
display: grid;
|
||
grid-template-columns: 88px minmax(0, 1fr);
|
||
align-items: center;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.settings-field label {
|
||
font-size: 0.72rem;
|
||
color: var(--dim);
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
white-space: nowrap;
|
||
margin: 0;
|
||
}
|
||
|
||
.settings-field-stack {
|
||
grid-template-columns: 1fr;
|
||
gap: 6px;
|
||
}
|
||
|
||
.settings-field-stack label {
|
||
font-size: 0.72rem;
|
||
color: var(--dim);
|
||
}
|
||
|
||
.settings-field-check {
|
||
grid-column: 1 / -1;
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.settings-toggle {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin: 0;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
font-size: 0.8rem;
|
||
color: var(--text);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.settings-toggle .form-check-input {
|
||
margin: 0;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.settings-panel .form-select,
|
||
.settings-panel .form-control {
|
||
background-color: rgba(0, 15, 40, 0.85);
|
||
border: 1px solid rgba(96, 165, 250, 0.25);
|
||
border-radius: 8px;
|
||
color: var(--text);
|
||
font-family: var(--font);
|
||
font-size: 0.78rem;
|
||
min-width: 0;
|
||
width: 100%;
|
||
transition: border-color 0.2s, box-shadow 0.2s;
|
||
outline: none;
|
||
}
|
||
|
||
.settings-panel .form-select {
|
||
text-overflow: ellipsis;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
padding: 5px 28px 5px 10px;
|
||
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%237cb9f4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
|
||
background-repeat: no-repeat;
|
||
background-position: right 0.55rem center;
|
||
background-size: 14px 10px;
|
||
}
|
||
|
||
.settings-panel .form-control {
|
||
padding: 5px 10px;
|
||
}
|
||
|
||
.settings-panel .form-select:focus,
|
||
.settings-panel .form-control:focus {
|
||
border-color: var(--blue);
|
||
box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
|
||
}
|
||
|
||
.settings-panel .form-select option { background: #000d22; color: var(--text); }
|
||
|
||
.settings-card-terminal .form-control {
|
||
border-color: rgba(34, 211, 238, 0.3);
|
||
}
|
||
|
||
.workspace-status {
|
||
margin: 0;
|
||
font-size: 0.7rem;
|
||
color: var(--dim);
|
||
word-break: break-all;
|
||
line-height: 1.35;
|
||
padding: 6px 8px;
|
||
border-radius: 6px;
|
||
background: rgba(0, 0, 0, 0.2);
|
||
}
|
||
.workspace-status.active { color: #4ade80; }
|
||
.workspace-status.error { color: #f87171; }
|
||
|
||
@media (max-width: 960px) {
|
||
.settings-inner {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.settings-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
.settings-field {
|
||
grid-template-columns: 96px minmax(0, 1fr);
|
||
}
|
||
}
|
||
|
||
/* legacy row helpers — keep for compatibility */
|
||
.settings-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex: 1;
|
||
min-width: 160px;
|
||
}
|
||
|
||
.settings-row label {
|
||
font-size: 0.72rem;
|
||
color: var(--dim);
|
||
white-space: nowrap;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
}
|
||
.settings-row.settings-check label {
|
||
cursor: pointer;
|
||
user-select: none;
|
||
}
|
||
.settings-row.settings-check .form-check-input {
|
||
margin: 0 6px 0 0;
|
||
}
|
||
.settings-row.settings-full {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
min-width: 100%;
|
||
}
|
||
|
||
/* ── Main layout ─────────────────────────────────────────── */
|
||
main {
|
||
display: grid;
|
||
grid-template-columns: 660px 1fr;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* ── Loading overlay ────────────────────────────────────── */
|
||
.loading-overlay {
|
||
position: absolute;
|
||
inset: 0;
|
||
z-index: 20;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 14px;
|
||
background: rgba(0, 10, 26, 0.92);
|
||
backdrop-filter: blur(8px);
|
||
color: var(--dim);
|
||
font-size: 0.85rem;
|
||
}
|
||
|
||
.loading-spinner {
|
||
width: 40px; height: 40px;
|
||
border: 2px solid var(--border);
|
||
border-top-color: var(--pink);
|
||
border-right-color: var(--blue);
|
||
border-radius: 50%;
|
||
animation: spin 0.9s linear infinite;
|
||
}
|
||
@keyframes spin { to { transform: rotate(360deg); } }
|
||
|
||
/* ── Avatar panel ───────────────────────────────────────── */
|
||
.avatar-panel {
|
||
position: relative;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-right: 1px solid var(--border);
|
||
overflow: hidden;
|
||
background:
|
||
radial-gradient(ellipse 60% 55% at 50% 45%, rgba(59,130,246,0.1) 0%, transparent 75%),
|
||
radial-gradient(ellipse 40% 30% at 50% 85%, rgba(244,114,182,0.06) 0%, transparent 70%);
|
||
}
|
||
|
||
/* Scanline texture */
|
||
.avatar-panel::before {
|
||
content: "";
|
||
position: absolute;
|
||
inset: 0;
|
||
background: repeating-linear-gradient(
|
||
0deg, transparent, transparent 3px,
|
||
rgba(96,165,250,0.015) 3px, rgba(96,165,250,0.015) 4px
|
||
);
|
||
pointer-events: none;
|
||
z-index: 1;
|
||
}
|
||
|
||
#avatarCanvas {
|
||
display: block;
|
||
max-width: 100%;
|
||
max-height: 100%;
|
||
position: relative;
|
||
z-index: 2;
|
||
filter:
|
||
drop-shadow(0 0 28px rgba(96, 165, 250, 0.45))
|
||
drop-shadow(0 0 70px rgba(59, 130, 246, 0.2));
|
||
}
|
||
|
||
/* Corner glyphs */
|
||
.deco {
|
||
position: absolute;
|
||
z-index: 3;
|
||
color: rgba(147, 197, 253, 0.22);
|
||
font-size: 1.1rem;
|
||
pointer-events: none;
|
||
animation: deco-pulse 4s ease-in-out infinite;
|
||
}
|
||
.deco-tl { top: 16px; left: 18px; animation-delay: 0s; }
|
||
.deco-tr { top: 16px; right: 18px; animation-delay: 1s; }
|
||
.deco-bl { bottom: 50px; left: 18px; animation-delay: 2s; }
|
||
.deco-br { bottom: 50px; right: 18px; animation-delay: 3s; }
|
||
@keyframes deco-pulse {
|
||
0%, 100% { opacity: 0.22; transform: scale(1); }
|
||
50% { opacity: 0.7; transform: scale(1.2); }
|
||
}
|
||
|
||
/* Webcam */
|
||
.webcam-box {
|
||
position: absolute;
|
||
top: 14px;
|
||
left: 14px;
|
||
width: 132px;
|
||
border-radius: 12px;
|
||
overflow: hidden;
|
||
border: 1px solid var(--border-hi);
|
||
background: #000;
|
||
box-shadow: 0 0 18px rgba(96,165,250,0.22), 0 4px 20px rgba(0,0,0,0.7);
|
||
z-index: 4;
|
||
}
|
||
.webcam-box video {
|
||
width: 100%;
|
||
display: block;
|
||
transform: scaleX(-1);
|
||
opacity: 0.88;
|
||
}
|
||
.webcam-footer {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
padding: 3px 8px 4px;
|
||
background: rgba(0, 8, 22, 0.9);
|
||
font-size: 0.58rem;
|
||
color: var(--dim);
|
||
}
|
||
#faceStatus { font-size: 0.58rem; color: #86efac; }
|
||
|
||
/* Name tag */
|
||
.avatar-tag {
|
||
position: absolute;
|
||
bottom: 16px;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
z-index: 4;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 7px;
|
||
padding: 4px 14px;
|
||
background: rgba(0, 8, 22, 0.8);
|
||
border: 1px solid var(--border-hi);
|
||
border-radius: 20px;
|
||
font-size: 0.72rem;
|
||
font-weight: 700;
|
||
color: var(--dim);
|
||
letter-spacing: 1px;
|
||
backdrop-filter: blur(10px);
|
||
}
|
||
.avatar-tag-dot {
|
||
width: 6px; height: 6px;
|
||
border-radius: 50%;
|
||
background: var(--pink);
|
||
box-shadow: 0 0 8px var(--pink);
|
||
animation: tag-pulse 2s ease-in-out infinite;
|
||
}
|
||
@keyframes tag-pulse {
|
||
0%, 100% { opacity: 1; }
|
||
50% { opacity: 0.35; }
|
||
}
|
||
|
||
/* ── Chat panel ─────────────────────────────────────────── */
|
||
.chat-panel {
|
||
display: grid;
|
||
grid-template-rows: 1fr auto auto;
|
||
overflow: hidden;
|
||
background: rgba(0, 8, 20, 0.45);
|
||
backdrop-filter: blur(4px);
|
||
}
|
||
|
||
/* Messages */
|
||
#chatMessages {
|
||
overflow-y: auto;
|
||
padding: 20px 18px 10px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
scroll-behavior: smooth;
|
||
}
|
||
#chatMessages::-webkit-scrollbar { width: 4px; }
|
||
#chatMessages::-webkit-scrollbar-track { background: transparent; }
|
||
#chatMessages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
|
||
|
||
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 82%; }
|
||
.msg-user { align-self: flex-end; align-items: flex-end; }
|
||
.msg-yuki { align-self: flex-start; align-items: flex-start; }
|
||
|
||
.msg-label {
|
||
font-size: 0.62rem;
|
||
color: var(--dim);
|
||
padding: 0 6px;
|
||
letter-spacing: 0.4px;
|
||
opacity: 0.75;
|
||
}
|
||
|
||
.msg-text {
|
||
padding: 10px 15px;
|
||
border-radius: 18px;
|
||
font-size: 0.88rem;
|
||
line-height: 1.6;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.msg-user .msg-text {
|
||
background: linear-gradient(135deg, rgba(37,99,235,0.5), rgba(96,165,250,0.28));
|
||
border: 1px solid rgba(96,165,250,0.3);
|
||
border-bottom-right-radius: 5px;
|
||
box-shadow: 0 2px 16px rgba(59,130,246,0.2);
|
||
}
|
||
|
||
.msg-yuki .msg-text {
|
||
background: rgba(244, 114, 182, 0.08);
|
||
border: 1px solid rgba(244, 114, 182, 0.16);
|
||
border-bottom-left-radius: 5px;
|
||
box-shadow: 0 2px 16px rgba(244,114,182,0.07);
|
||
}
|
||
|
||
.msg-system { color: var(--dim); font-size: 0.74rem; font-style: italic; }
|
||
.msg-tool {
|
||
align-self: stretch;
|
||
max-width: 95%;
|
||
font-family: ui-monospace, "Cascadia Code", monospace;
|
||
font-size: 0.68rem;
|
||
color: #93c5fd;
|
||
background: rgba(59, 130, 246, 0.08);
|
||
border: 1px solid rgba(96, 165, 250, 0.2);
|
||
border-radius: 8px;
|
||
padding: 6px 10px;
|
||
word-break: break-word;
|
||
}
|
||
.msg-tool .tool-name { color: var(--cyan); font-weight: 700; }
|
||
|
||
.msg-weather {
|
||
align-self: flex-start;
|
||
max-width: 92%;
|
||
}
|
||
.weather-card {
|
||
background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(167, 139, 250, 0.12));
|
||
border: 1px solid rgba(125, 211, 252, 0.35);
|
||
border-radius: 14px;
|
||
padding: 14px 16px;
|
||
box-shadow: 0 4px 24px rgba(56, 189, 248, 0.12);
|
||
min-width: 240px;
|
||
}
|
||
.weather-card-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 14px;
|
||
}
|
||
.weather-icon {
|
||
font-size: 2.6rem;
|
||
color: #fde047;
|
||
filter: drop-shadow(0 0 10px rgba(253, 224, 71, 0.45));
|
||
flex-shrink: 0;
|
||
}
|
||
.weather-main {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
}
|
||
.weather-temp {
|
||
font-size: 1.85rem;
|
||
font-weight: 800;
|
||
line-height: 1;
|
||
color: #e0f2fe;
|
||
}
|
||
.weather-desc {
|
||
font-size: 0.88rem;
|
||
color: rgba(186, 230, 253, 0.9);
|
||
}
|
||
.weather-location {
|
||
margin-top: 10px;
|
||
font-size: 0.82rem;
|
||
color: rgba(186, 230, 253, 0.75);
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
.weather-meta {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 10px 14px;
|
||
margin-top: 10px;
|
||
font-size: 0.76rem;
|
||
color: rgba(186, 230, 253, 0.65);
|
||
}
|
||
.weather-meta span {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
}
|
||
.weather-date {
|
||
margin-top: 8px;
|
||
font-size: 0.7rem;
|
||
color: rgba(186, 230, 253, 0.45);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.04em;
|
||
}
|
||
|
||
/* Thinking dots */
|
||
.thinking {
|
||
display: flex !important;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 12px 18px !important;
|
||
}
|
||
.dot {
|
||
width: 7px; height: 7px;
|
||
border-radius: 50%;
|
||
background: var(--pink);
|
||
box-shadow: 0 0 8px var(--pink);
|
||
animation: bounce 1.3s ease-in-out infinite;
|
||
}
|
||
.dot:nth-child(2) { animation-delay: 0.2s; background: var(--blue); box-shadow: 0 0 8px var(--blue); }
|
||
.dot:nth-child(3) { animation-delay: 0.4s; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
|
||
@keyframes bounce {
|
||
0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
|
||
30% { transform: translateY(-8px); opacity: 1; }
|
||
}
|
||
|
||
/* Welcome */
|
||
.welcome {
|
||
align-self: center;
|
||
text-align: center;
|
||
padding: 32px 24px;
|
||
color: rgba(124, 185, 244, 0.5);
|
||
line-height: 1.75;
|
||
}
|
||
.welcome-glyph {
|
||
font-size: 2.2rem;
|
||
margin-bottom: 10px;
|
||
filter: drop-shadow(0 0 16px rgba(244, 114, 182, 0.6));
|
||
animation: welcome-float 3s ease-in-out infinite;
|
||
}
|
||
@keyframes welcome-float {
|
||
0%, 100% { transform: translateY(0); }
|
||
50% { transform: translateY(-6px); }
|
||
}
|
||
.welcome strong {
|
||
display: block;
|
||
font-size: 1.1rem;
|
||
font-weight: 800;
|
||
color: var(--pink);
|
||
text-shadow: 0 0 20px rgba(244,114,182,0.4);
|
||
margin-bottom: 8px;
|
||
}
|
||
.welcome p { font-size: 0.84rem; margin: 0; }
|
||
.kbd-badge {
|
||
display: inline-block;
|
||
padding: 2px 8px;
|
||
background: var(--surface2);
|
||
border: 1px solid var(--border);
|
||
border-radius: 6px;
|
||
font-size: 0.78rem;
|
||
color: var(--dim);
|
||
}
|
||
|
||
/* ── Audio section ──────────────────────────────────────── */
|
||
.audio-section {
|
||
padding: 8px 16px 6px;
|
||
border-top: 1px solid var(--border);
|
||
background: rgba(0, 6, 18, 0.55);
|
||
}
|
||
.audio-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin-bottom: 5px;
|
||
font-size: 0.68rem;
|
||
color: var(--dim);
|
||
}
|
||
.mic-dot {
|
||
width: 7px; height: 7px;
|
||
border-radius: 50%;
|
||
background: #4ade80;
|
||
flex-shrink: 0;
|
||
animation: mic-pulse 2s ease-in-out infinite;
|
||
}
|
||
@keyframes mic-pulse {
|
||
0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
|
||
50% { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
|
||
}
|
||
.transcript-inline {
|
||
margin-left: auto;
|
||
font-size: 0.68rem;
|
||
color: var(--blue-lite);
|
||
font-style: italic;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
max-width: 55%;
|
||
}
|
||
#audioCanvas {
|
||
width: 100%;
|
||
height: 44px;
|
||
display: block;
|
||
border-radius: 8px;
|
||
background: rgba(0,0,0,0.3);
|
||
}
|
||
|
||
/* ── Input area ─────────────────────────────────────────── */
|
||
.input-area {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 10px 16px 14px;
|
||
border-top: 1px solid var(--border);
|
||
background: rgba(0, 6, 18, 0.7);
|
||
}
|
||
|
||
.mic-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 7px;
|
||
padding: 9px 16px;
|
||
border-radius: 24px;
|
||
border: 1.5px solid var(--border-hi);
|
||
background: rgba(59, 130, 246, 0.14);
|
||
color: var(--text);
|
||
font-family: var(--font);
|
||
font-size: 0.82rem;
|
||
font-weight: 700;
|
||
cursor: pointer;
|
||
white-space: nowrap;
|
||
flex-shrink: 0;
|
||
transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
|
||
}
|
||
.mic-btn:hover {
|
||
background: rgba(59, 130, 246, 0.28);
|
||
border-color: var(--blue);
|
||
box-shadow: 0 0 18px rgba(96,165,250,0.28);
|
||
}
|
||
.mic-btn.active {
|
||
background: rgba(239, 68, 68, 0.2);
|
||
border-color: #f87171;
|
||
color: #fca5a5;
|
||
animation: mic-record-pulse 1s ease-in-out infinite;
|
||
}
|
||
.mic-btn.wake-listen {
|
||
background: rgba(34, 211, 238, 0.12);
|
||
border-color: rgba(34, 211, 238, 0.55);
|
||
color: #a5f3fc;
|
||
animation: mic-wake-pulse 2.2s ease-in-out infinite;
|
||
}
|
||
@keyframes mic-wake-pulse {
|
||
0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.35); }
|
||
50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
|
||
}
|
||
.mic-btn:disabled,
|
||
.send-btn:disabled,
|
||
.input-wrap input:disabled {
|
||
opacity: 0.45;
|
||
cursor: not-allowed;
|
||
}
|
||
@keyframes mic-record-pulse {
|
||
0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
|
||
50% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
|
||
}
|
||
|
||
.stop-btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 7px;
|
||
padding: 9px 16px;
|
||
border-radius: 24px;
|
||
border: 1.5px solid #f87171;
|
||
background: rgba(239, 68, 68, 0.22);
|
||
color: #fecaca;
|
||
font-family: var(--font);
|
||
font-size: 0.82rem;
|
||
font-weight: 700;
|
||
cursor: pointer;
|
||
white-space: nowrap;
|
||
flex-shrink: 0;
|
||
transition: background 0.2s, box-shadow 0.2s;
|
||
}
|
||
.stop-btn:hover {
|
||
background: rgba(239, 68, 68, 0.35);
|
||
box-shadow: 0 0 18px rgba(239,68,68,0.25);
|
||
}
|
||
.stop-btn.hidden { display: none; }
|
||
|
||
.input-wrap {
|
||
flex: 1;
|
||
position: relative;
|
||
}
|
||
.input-wrap::before {
|
||
content: "";
|
||
position: absolute;
|
||
inset: -1px;
|
||
border-radius: 25px;
|
||
background: linear-gradient(90deg, var(--blue-dark), var(--cyan), var(--pink));
|
||
opacity: 0;
|
||
transition: opacity 0.25s;
|
||
z-index: 0;
|
||
}
|
||
.input-wrap:focus-within::before { opacity: 1; }
|
||
|
||
#textInput {
|
||
position: relative;
|
||
z-index: 1;
|
||
width: 100%;
|
||
padding: 10px 16px;
|
||
border-radius: 24px;
|
||
border: 1.5px solid var(--border);
|
||
background: rgba(0, 10, 30, 0.75);
|
||
color: var(--text);
|
||
font-family: var(--font);
|
||
font-size: 0.86rem;
|
||
outline: none;
|
||
transition: border-color 0.2s, background 0.2s;
|
||
}
|
||
#textInput::placeholder { color: rgba(124,185,244,0.3); }
|
||
#textInput:focus {
|
||
border-color: transparent;
|
||
background: rgba(0, 14, 38, 0.85);
|
||
}
|
||
|
||
.send-btn {
|
||
width: 40px; height: 40px;
|
||
border-radius: 50%;
|
||
border: none;
|
||
background: linear-gradient(135deg, var(--blue-dark), var(--cyan));
|
||
color: #fff;
|
||
font-size: 0.95rem;
|
||
display: flex; align-items: center; justify-content: center;
|
||
cursor: pointer;
|
||
flex-shrink: 0;
|
||
transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
|
||
box-shadow: 0 0 18px rgba(96,165,250,0.4);
|
||
}
|
||
.send-btn:hover { transform: scale(1.08); box-shadow: 0 0 28px rgba(34,211,238,0.5); }
|
||
.send-btn:active { transform: scale(0.95); opacity: 0.85; }
|
||
|
||
/* ── Responsive ─────────────────────────────────────────── */
|
||
@media (max-width: 860px) {
|
||
html, body { overflow: auto; }
|
||
#app {
|
||
grid-template-rows: 54px auto 1fr;
|
||
height: auto;
|
||
min-height: 100vh;
|
||
}
|
||
main {
|
||
grid-template-columns: 1fr;
|
||
grid-template-rows: 420px 1fr;
|
||
}
|
||
.avatar-panel {
|
||
height: 420px;
|
||
border-right: none;
|
||
border-bottom: 1px solid var(--border);
|
||
}
|
||
#avatarCanvas { height: 420px; }
|
||
.settings-inner { gap: 10px; }
|
||
.settings-row { min-width: 140px; }
|
||
}
|