:root {
  --ink: #2B1250;
  --ring: #5A2DB0;
  --glow: #9B6BFF;
  --muted: #5B4A78;
  --bg: #F6F4FC;
  --card: #FFFFFF;
  --line: #D9CCF2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top { display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 22px; }
.conn { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 5px; background: #C9C2D6; }
.dot.on { background: #34C77B; }

.stage { perspective: 900px; display: flex; justify-content: center; }
.head { width: 100%; transform-style: preserve-3d; }

.screen {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(circle at 0% 0%, #FFE2D4 0%, rgba(255, 226, 212, 0) 42%),
    radial-gradient(circle at 100% 0%, #F3DDFF 0%, rgba(243, 221, 255, 0) 40%),
    linear-gradient(180deg, #FFFFFF 0%, #F1F5FF 50%, #C6E6FF 100%);
  box-shadow: 0 0 0 8px #FFFFFF, 0 0 0 11px var(--line);
}
.screen.night {
  background:
    radial-gradient(circle at 0% 0%, #3A1E5E 0%, rgba(58, 30, 94, 0) 45%),
    linear-gradient(180deg, #1A0B33 0%, #22104A 60%, #1B2A55 100%);
}
.screen svg { display: block; width: 100%; height: 100%; }
.screen:focus-visible { outline: 3px solid var(--glow); outline-offset: 6px; }

.lines { display: flex; flex-direction: column; gap: 6px; min-height: 52px; }
.line { margin: 0; display: flex; gap: 10px; font-size: 15px; line-height: 1.4; }
.who { flex: 0 0 52px; font-weight: 600; color: var(--muted); }
.bimoo span:last-child { font-weight: 500; }

.talk {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; border-radius: 14px; border: none;
  background: var(--ink); color: #FFFFFF; font: 600 16px Inter, sans-serif; cursor: pointer;
}
.talk.active { background: var(--glow); }
.talk kbd { font: 500 12px Inter, sans-serif; opacity: 0.75; margin-left: 4px; }

.chat { display: flex; gap: 8px; }
.chat input {
  flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--line); font: 400 15px Inter, sans-serif; color: var(--ink); background: var(--card);
}
.chat button, .login button {
  min-height: 46px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--ink);
  background: var(--card); color: var(--ink); font: 600 14px Inter, sans-serif; cursor: pointer;
}

.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggles button {
  min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--ink); font: 600 13px Inter, sans-serif; cursor: pointer;
}
.toggles button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.hint, .unlock, .info { margin: 0; font-size: 13px; color: var(--muted); }
.info { padding: 10px 12px; border-radius: 10px; background: #EFE7FF; color: var(--ink); }

.login { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(43, 18, 80, 0.45); padding: 16px; }
.login[hidden] { display: none; }
.login-card { width: 100%; max-width: 360px; background: var(--card); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.login-card h1 { margin: 0; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 26px; }
.login-card label { font-size: 13px; font-weight: 600; color: var(--muted); }
.login-card input { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); font: 400 15px Inter, sans-serif; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Animationen im Gesicht */
.breathe { animation: breathe 4.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2.5px); } }
.tw { animation: tw 1.4s ease-in-out infinite; }
.tw2 { animation: tw 1.4s 0.5s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.fl { animation: fl 2.6s ease-in-out infinite; }
.fl2 { animation: fl 2.6s 0.8s ease-in-out infinite; }
@keyframes fl { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
.tear { animation: tear 2.2s ease-in infinite; }
@keyframes tear { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }
.wag { transform-origin: 160px 162px; animation: wag 0.45s ease-in-out infinite alternate; }
@keyframes wag { 0% { transform: rotate(-26deg); } 100% { transform: rotate(26deg); } }
.swing { animation: swing 0.45s ease-in-out infinite alternate; }
@keyframes swing { 0% { transform: translate(8px, 0); } 100% { transform: translate(-8px, 0); } }
.wobble { animation: wobble 0.9s ease-in-out infinite alternate !important; }
@keyframes wobble { 0% { transform: rotate(-4deg); } 100% { transform: rotate(4deg); } }
.pop { animation: pop 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes pop { 0% { transform: translateY(110px); } 100% { transform: translateY(0); } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.d1 { animation: dot 1.2s infinite; }
.d2 { animation: dot 1.2s 0.2s infinite; }
.d3 { animation: dot 1.2s 0.4s infinite; }
@keyframes dot { 0%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .breathe, .tw, .tw2, .fl, .fl2, .tear, .wag, .swing, .wobble, .pulse, .d1, .d2, .d3 { animation: none !important; }
}
