/* Mitr "Aurora" skin, step 1 (v5.8). Loaded AFTER ui.css and voice.css.
   Restyle only: a luminous drifting sky, glass buttons, a pill composer, a dark user bubble,
   glass sheets. No layout, logic or id changes. Remove the <link> to this file to get the v5.7 look back.
   The mood on the sky comes from html[data-mood] (set later by the home screen; default = soft dawn). */

:root {
  --au-ink: #1D1418;
  --au-btn: #1D1418;
  --au-glass: rgba(255, 255, 255, .58);
  --au-glass-2: rgba(255, 255, 255, .8);
  --au-line: rgba(60, 20, 30, .1);
  --au-hi: rgba(255, 255, 255, .75);
  --au-spring: cubic-bezier(.34, 1.56, .64, 1);
  --c1: #FFB9A8; --c2: #D6C2FF; --c3: #B5F2D0; --c4: #FFE8B0;
  --ink: var(--au-ink);
  --muted: #6B5C62;
  --ui-faint: #86767D;
  --ui-sand: rgba(255, 255, 255, .72);
}
html[data-mood="storm"]    { --c1: #B9A9F5; --c2: #7C86E8; --c3: #E3B8FF; --c4: #9AA8FF; }
html[data-mood="fog"]      { --c1: #D5DEE6; --c2: #C3CFDB; --c3: #EEF2F5; --c4: #CFE0E8; }
html[data-mood="grey"]     { --c1: #D9D6D8; --c2: #C7C3C9; --c3: #EFEDEE; --c4: #DAD3D8; }
html[data-mood="clearing"] { --c1: #FFD7A8; --c2: #A9CBEA; --c3: #FFE9C8; --c4: #C7E3F7; }
html[data-mood="sunny"]    { --c1: #FFE08A; --c2: #FFB070; --c3: #FFF0A8; --c4: #FFC9A0; }

/* ------------------------------------------------------------------ sky */
body { background: #FBF7F2; }
body::before, body::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; will-change: transform;
  transition: background 1.2s ease;
}
body::before {
  width: 130vmax; height: 130vmax; left: -55vmax; top: -62vmax;
  background: radial-gradient(circle at 40% 40%, var(--c1), transparent 58%), radial-gradient(circle at 78% 70%, var(--c2), transparent 50%);
  animation: auDriftA 24s ease-in-out infinite alternate;
}
body::after {
  width: 130vmax; height: 130vmax; right: -60vmax; bottom: -66vmax;
  background: radial-gradient(circle at 55% 55%, var(--c3), transparent 56%), radial-gradient(circle at 22% 25%, var(--c4), transparent 48%);
  animation: auDriftB 30s ease-in-out infinite alternate;
}
@keyframes auDriftA { to { transform: translate3d(9vmax, 6vmax, 0) scale(1.08); } }
@keyframes auDriftB { to { transform: translate3d(-8vmax, -7vmax, 0) scale(1.12); } }
html.au-hidden body::before, html.au-hidden body::after { animation-play-state: paused; }

/* ---------------------------------------------------------------- header */
.ghost-btn, #menuToggle.icon-btn {
  width: 42px; height: 42px; background: var(--au-glass); color: var(--au-ink);
  box-shadow: 0 0 0 1px var(--au-hi) inset, 0 8px 22px -14px rgba(80, 20, 40, .45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .3s var(--au-spring), background .2s;
}
.ghost-btn:hover, #menuToggle.icon-btn:hover { background: var(--au-glass-2); color: var(--au-ink); }
.ghost-btn:active, #menuToggle.icon-btn:active { transform: scale(.88); }
.ghost-btn.help { color: #E53935; }
header.compact-header { gap: 8px; }
.talk-btn {
  background: var(--au-btn); padding: 12px 20px 12px 15px; margin-right: 2px;
  box-shadow: 0 10px 26px -12px rgba(29, 20, 24, .75), 0 0 0 4px rgba(255, 255, 255, .35);
  transition: transform .3s var(--au-spring), box-shadow .3s;
}
.talk-btn:hover { background: #2c1c22; transform: translateY(-1px); }
.talk-btn:active { transform: scale(.94); }
.talk-btn svg { width: 18px; height: 18px; color: #FF8A7A; }

/* -------------------------------------------------------------- messages */
.msg.user {
  background: linear-gradient(135deg, #3A1620, var(--au-btn)); color: #fff;
  box-shadow: 0 12px 24px -14px rgba(29, 20, 24, .7); font-weight: 500;
  border-radius: 24px 24px 6px 24px; padding: 12px 18px;
}
.msg.bot strong { color: #8E1E2D; }
.act-btn, .msg-actions .speak-btn { color: #86767D; }
.act-btn:hover, .msg-actions .speak-btn:hover { background: var(--au-glass-2); color: #8E1E2D; transform: none; }
#typing { color: #86767D; }

/* chips: starters, quick actions */
.starter-chip {
  background: var(--au-glass-2); color: #8E1E2D; box-shadow: 0 0 0 1px rgba(142, 30, 45, .16);
  transition: background .25s, color .25s, transform .3s var(--au-spring);
}
.starter-chip:hover { background: #8E1E2D; color: #fff; transform: translateY(-2px); }
.starter-chip:active { transform: scale(.94); }

/* -------------------------------------------------------------- composer */
form#composer {
  background: var(--au-glass-2); box-shadow: 0 0 0 1px var(--au-hi) inset, 0 18px 40px -22px rgba(80, 20, 50, .55);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-radius: 999px; padding: 6px 6px 6px 22px;
}
form#composer.multiline { border-radius: 28px; }
form#composer:focus-within { box-shadow: 0 0 0 1px var(--au-hi) inset, 0 0 0 2px rgba(142, 30, 45, .5), 0 18px 40px -22px rgba(80, 20, 50, .55); }
#input::placeholder { color: #8A7A81; }
.mic-btn.icon-btn { color: #6B5C62; }
button#send { width: 46px; height: 46px; background: rgba(60, 20, 30, .1); transition: background .25s, transform .3s var(--au-spring); }
button#send::after { background: #7a6a71; }
button#send.has-text { background: var(--au-btn); }
button#send.has-text:hover { background: #2c1c22; transform: scale(1.06); }
button#send:active { transform: scale(.9); }
.voice-btn { background: var(--au-btn); box-shadow: 0 8px 20px -10px rgba(29, 20, 24, .7); }

/* ---------------------------------------------------- sheets, menu, bars */
#memSheet, #cardSheet, #nbSheet, #sbSheet, #gmSheet, .dropdown-panel {
  background: rgba(255, 252, 250, .94);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
#memScrim, #cardScrim, #nbScrim, #sbScrim, #gmScrim { background: rgba(40, 12, 24, .4); }
#memSheet, #cardSheet, #nbSheet, #sbSheet, #gmSheet { border-radius: 32px 32px 0 0; transition-timing-function: var(--au-spring); transition-duration: .55s; }
#memSheet h2, #cardSheet h2, #nbSheet h2, #sbSheet h2, #gmSheet h2 { color: #8E1E2D; letter-spacing: -.01em; }
.mem-day, .gm-tile.gm-quiz {
  background: radial-gradient(120% 100% at 100% 0, #FFC2B5, transparent 60%), radial-gradient(100% 90% at 0 100%, #E6D5FF, transparent 60%), #fff;
  box-shadow: 0 0 0 1px var(--au-hi) inset;
}
.mem-day .mem-go, .mem-btn, .sb-btn, .gm-btn { background: var(--au-btn); transition: transform .3s var(--au-spring); }
.mem-day .mem-go:active, .mem-btn:active, .sb-btn:active { transform: scale(.94); }
.mem-chips button[aria-pressed="true"], .mem-tabs button[aria-pressed="true"], .sb-tabs button[aria-pressed="true"], .lang-toggle .lang-btn.active { background: var(--au-btn); }
.gm-opt { transition: transform .3s var(--au-spring), box-shadow .2s; }
.gm-opt:not(:disabled):hover { transform: translateX(3px); box-shadow: inset 0 0 0 2px #8E1E2D; }
.gm-opt.wrong { animation: auShake .4s; }
@keyframes auShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
#memBar, #gameBar {
  background: var(--au-glass-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px var(--au-hi) inset, 0 10px 24px -18px rgba(80, 20, 50, .5);
}
#memBar .mem-bar-save { background: var(--au-btn); }
#uiToast { background: rgba(29, 20, 24, .92); transition-timing-function: var(--au-spring); }

/* feature cards on the empty chat (the home screen replaces these in step 2) */
.feat-card {
  background: var(--au-glass-2); box-shadow: 0 0 0 1px var(--au-hi) inset, 0 16px 34px -24px rgba(80, 20, 50, .5);
  transition: transform .3s var(--au-spring), box-shadow .3s;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--au-hi) inset, 0 20px 38px -22px rgba(142, 30, 45, .5); }
.feat-ic { background: rgba(255, 255, 255, .85); }
.feat-talk .feat-ic { background: var(--au-btn); }
.feat-mem { background: radial-gradient(120% 100% at 100% 0, #FFC2B5, transparent 60%), radial-gradient(100% 90% at 0 100%, #E6D5FF, transparent 60%), #fff; }
.feat-pill { background: var(--au-glass-2); box-shadow: 0 0 0 1px var(--au-hi) inset, 0 6px 16px -12px rgba(80, 20, 50, .5); }

/* ---------------------------------------------------------- fallbacks */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .ghost-btn, #menuToggle.icon-btn { background: rgba(255, 255, 255, .9); }
  form#composer, .feat-card, .feat-pill, #memBar, #gameBar { background: rgba(255, 255, 255, .94); }
}
@media (max-width: 380px) { .talk-btn { padding: 11px 16px 11px 12px; } .talk-btn #talkLabel { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  .gm-opt.wrong { animation: none; }
}

/* ======================================================================
   Home screen (aurora.js): greeting, mood chips, orb, Tap to talk, quick starts, tiles.
   Only exists on the empty chat. Replaces the greeting bubble and the three feature cards visually.
   ====================================================================== */
#messages:has(> .au-home) > .msg.bot,
#messages:has(> .au-home) .feat-cards,
#messages:has(> .au-home) .feat-or { display: none; }
#messages:has(> .au-home) { gap: 0; padding-top: 4px; }

.au-home { display: flex; flex-direction: column; align-items: center; animation: auIn .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes auIn { from { opacity: 0; transform: translateY(14px); } }
.au-hello { align-self: stretch; padding: 8px 4px 0; }
.au-kick { font: 700 11px var(--font-body), sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #8E1E2D; opacity: .85; }
.au-h1 { font: 500 clamp(32px, 9.5vw, 40px)/1.08 var(--font-display), serif; letter-spacing: -.02em; margin: 8px 0 0; color: var(--au-ink); text-wrap: balance; }
.au-h1 em { font-style: italic; color: #8E1E2D; }
html[lang="hi"] .au-h1 { font-size: clamp(28px, 8vw, 34px); line-height: 1.25; letter-spacing: 0; }

.au-moods { align-self: stretch; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 16px 2px 6px; margin: 0 -2px; }
.au-moods::-webkit-scrollbar { display: none; }
.au-mood {
  flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 8px 14px 8px 9px; border-radius: 999px;
  background: var(--au-glass); color: var(--au-ink); font: 600 13px var(--font-body), sans-serif;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--au-hi) inset;
  transition: transform .3s var(--au-spring), background .3s, color .3s;
}
.au-mood i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 -4px 6px rgba(0, 0, 0, .14); }
.au-mood[data-m="storm"] i { background: radial-gradient(circle at 35% 30%, #e7e4ff, #8f86d8 60%, #3b2f77); }
.au-mood[data-m="fog"] i { background: radial-gradient(circle at 35% 30%, #fff, #c4ced7 60%, #7f91a3); }
.au-mood[data-m="grey"] i { background: radial-gradient(circle at 35% 30%, #f4f4f4, #b9bcc2 60%, #6a6e76); }
.au-mood[data-m="clearing"] i { background: radial-gradient(circle at 35% 30%, #fff6e6, #f2c28c 60%, #6a93b8); }
.au-mood[data-m="sunny"] i { background: radial-gradient(circle at 35% 30%, #fffbe8, #ffd062 60%, #f0623a); }
.au-mood[aria-pressed="true"] { background: var(--au-btn); color: #fff; transform: translateY(-2px) scale(1.04); }
.au-mood:active { transform: scale(.94); }

.au-stage { position: relative; display: grid; place-items: center; width: 100%; height: clamp(190px, 30vh, 250px); margin-top: 2px; }
.au-orb { position: relative; width: clamp(150px, 26vh, 206px); aspect-ratio: 1; cursor: pointer; animation: auFloat 7s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
@keyframes auFloat { 50% { transform: translateY(-9px); } }
.au-orb i { position: absolute; inset: 0; border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; filter: blur(2px); mix-blend-mode: multiply; }
.au-orb .o1 { background: radial-gradient(circle at 30% 30%, #fff, var(--c1) 55%, transparent 72%); animation: auMorph 9s ease-in-out infinite; }
.au-orb .o2 { background: radial-gradient(circle at 70% 60%, var(--c3), transparent 66%); animation: auMorph 11s ease-in-out infinite reverse; }
.au-orb .o3 { background: radial-gradient(circle at 40% 75%, var(--c2), transparent 62%); animation: auMorph 13s ease-in-out infinite; }
.au-orb .core { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, rgba(255, 255, 255, .55) 40%, transparent 70%); filter: blur(6px); }
@keyframes auMorph { 0%, 100% { border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; transform: rotate(0); } 50% { border-radius: 56% 44% 46% 54% / 44% 56% 44% 56%; transform: rotate(14deg) scale(1.04); } }
.au-orb:focus-visible { outline: 3px solid #8E1E2D; outline-offset: 6px; border-radius: 50%; }
.au-ripple { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); pointer-events: none; animation: auRip 1.2s ease-out forwards; }
@keyframes auRip { from { opacity: .9; transform: scale(.5); } to { opacity: 0; transform: scale(2.6); } }
html.au-hidden .au-orb, html.au-hidden .au-orb i { animation-play-state: paused; }

.au-cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; cursor: pointer;
  padding: 18px 34px 18px 24px; border-radius: 999px; background: var(--au-btn); color: #fff; font: 700 17px var(--font-body), sans-serif;
  box-shadow: 0 18px 40px -16px rgba(29, 20, 24, .7), 0 0 0 6px rgba(255, 255, 255, .35); transition: transform .3s var(--au-spring);
}
.au-cta:hover { transform: translateY(-2px); }
.au-cta:active { transform: scale(.95); }
.au-cta:focus-visible { outline: 3px solid #8E1E2D; outline-offset: 7px; }
.au-mic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #FF8A7A, #E53935); }
.au-mic svg { width: 18px; height: 18px; }
.au-cta::after { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid rgba(229, 57, 53, .5); animation: auPing 2.8s ease-out infinite; pointer-events: none; }
@keyframes auPing { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18); } }
.au-or { margin: 16px 0 0; font: 500 13px var(--font-body), sans-serif; color: #6B5C62; text-align: center; }

/* quick starts become a centred wrap of glass chips */
#messages:has(> .au-home) .starters { justify-content: center; margin-top: 12px; }
#messages:has(> .au-home) .intro-note { margin-top: 18px; }

.au-more { margin-top: 6px; }
.au-sec { font: 700 11px var(--font-body), sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #6B5C62; padding: 20px 4px 10px; }
.au-tiles { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 24px; padding: 4px 4px 12px; margin: 0 -24px; padding-inline: 24px; scrollbar-width: none; }
.au-tiles::-webkit-scrollbar { display: none; }
.au-tile {
  flex: none; width: 168px; height: 196px; scroll-snap-align: start; position: relative; border: 0; cursor: pointer; text-align: left; overflow: hidden;
  border-radius: 28px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; color: var(--au-ink);
  background: var(--au-glass-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .8) inset, 0 20px 40px -26px rgba(80, 20, 50, .5);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1); transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
}
.au-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.au-tile.t1::before { background: radial-gradient(120% 90% at 100% 0, #FFC2B5, transparent 60%), radial-gradient(90% 80% at 0 100%, #E6D5FF, transparent 60%); }
.au-tile.t2::before { background: radial-gradient(120% 90% at 100% 0, #BFF3D8, transparent 60%), radial-gradient(90% 80% at 0 100%, #FFF0B8, transparent 60%); }
.au-tile.t3::before { background: radial-gradient(120% 90% at 100% 0, #FFD9A6, transparent 60%), radial-gradient(90% 80% at 0 100%, #FFC2D6, transparent 60%); }
.au-tile { isolation: isolate; }
.au-tile:active { transform: scale(.96); }
.au-tag { align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); font: 700 10px var(--font-body), sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #8E1E2D; }
.au-tbody { display: block; }
.au-tbody b { display: block; font: 500 21px/1.15 var(--font-display), serif; }
.au-tbody small { display: block; margin-top: 6px; font: 400 12.5px/1.4 var(--font-body), sans-serif; color: #6B5C62; overflow-wrap: anywhere; }
.au-tbody small.au-q { font: italic 400 16px/1.3 var(--font-display), serif; color: #8E1E2D; }
.au-go { align-self: flex-end; width: 40px; height: 40px; border-radius: 50%; background: var(--au-btn); color: #fff; display: grid; place-items: center; transition: transform .3s var(--au-spring); }
.au-tile:hover .au-go { transform: translateX(3px) scale(1.08); }
.au-go svg { width: 18px; height: 18px; }
.au-tile:focus-visible { outline: 3px solid #8E1E2D; outline-offset: 3px; }
html[lang="hi"] .au-tbody b { font-size: 19px; line-height: 1.3; }

@media (max-width: 480px) { .au-tiles { margin: 0 -20px; padding-inline: 20px; scroll-padding-inline: 20px; } }
@media (max-height: 640px) { .au-stage { height: 170px; } .au-orb { width: 140px; } }
@media (prefers-reduced-motion: reduce) {
  .au-orb, .au-orb i, .au-cta::after, .au-home { animation: none !important; }
  .au-tile { transform: none !important; }
}

/* ======================================================================
   Voice screen (voice.css restyled, step 3). voice.js is untouched: the orb is still driven by --lvl
   (real mic / voice level). Moods keep their own skies (tested for contrast); with no mood chosen the
   call now opens on the light aurora sky instead of dark plum.
   ====================================================================== */
#voice[data-sky="none"] {
  --fg: #1D1418; --fg-dim: rgba(29, 20, 24, .66); --glass: rgba(255, 255, 255, .6); --glass-line: rgba(255, 255, 255, .85);
  --sky-top: #FFD9CF; --sky-bot: #E4D8FF; --blob-a: rgba(255, 185, 168, .8); --blob-b: rgba(181, 242, 208, .75);
  --orb-hi: #fff; --orb-a: #FFB9A8; --orb-b: #C9B4FF; --orb-glow: rgba(255, 150, 130, .5);
}
#voice h2.v-title { letter-spacing: -.02em; }
#voice .state { font-family: var(--font-body), sans-serif; font-weight: 700; letter-spacing: .2em; }
#voice .v-timer { font-family: var(--font-body), sans-serif; letter-spacing: .1em; }
#voice .v-close, #voice .v-back { box-shadow: 0 0 0 1px var(--glass-line) inset; transition: transform .3s var(--au-spring); }
#voice .v-close:active, #voice .v-back:active { transform: scale(.92); }

/* mood tiles: bigger, springier */
#voice .tile { border-radius: 24px; padding: 16px 4px 13px; transition: transform .35s var(--au-spring), background .2s, box-shadow .3s; }
#voice .tile:hover { transform: translateY(-3px); }
#voice .tile.on { transform: translateY(-5px) scale(1.04); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .35); }
#voice .chip { transition: transform .3s var(--au-spring), background .2s; }
#voice .chip:active { transform: scale(.94); }

/* the main buttons: big, unmistakable */
#voice .v-go, #voice .v-primary { padding: 18px 40px; font-size: 1.05rem; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .22); transition: transform .3s var(--au-spring), opacity .3s; }
#voice .v-go:not([disabled]):hover, #voice .v-primary:hover { transform: translateY(-2px); }

/* the orb: a living, morphing blob that swells with the voice (--lvl) */
#voice .orb .core {
  border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; animation: auVMorph 9s ease-in-out infinite;
  background: radial-gradient(circle at 32% 28%, var(--orb-hi), var(--orb-a) 50%, var(--orb-b) 100%);
  box-shadow: 0 0 calc(50px + var(--lvl) * 100px) var(--orb-glow), inset 0 -18px 40px rgba(0, 0, 0, .16), inset 0 10px 30px rgba(255, 255, 255, .35);
}
#voice .orb .core::before, #voice .orb .core::after { content: ""; position: absolute; inset: 6%; border-radius: inherit; mix-blend-mode: soft-light; pointer-events: none; }
#voice .orb .core::before { background: radial-gradient(circle at 72% 64%, var(--orb-hi), transparent 60%); animation: auVMorph 12s ease-in-out infinite reverse; }
#voice .orb .core::after { background: radial-gradient(circle at 28% 78%, var(--orb-b), transparent 58%); animation: auVMorph 15s ease-in-out infinite; }
@keyframes auVMorph {
  0%, 100% { border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; rotate: 0deg; }
  50% { border-radius: 56% 44% 46% 54% / 44% 56% 44% 56%; rotate: 16deg; }
}
#voice .orb .shimmer { border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; }
#voice .orb .halo { border-color: var(--glass-line); border-width: 1.5px; }
#voice[data-phase="speaking"] .orb .core { animation-duration: 5s, 12s, 15s; }
#voice[data-phase="speaking"] .orb .core::before { animation-duration: 6s; }

/* captions: bigger serif, calmer you-line */
#voice .cap-mitr { font-size: clamp(1.3rem, 5.6vw, 1.7rem); line-height: 1.32; letter-spacing: -.005em; }
#voice .cap-you { font-size: 1.02rem; }

/* controls: glass circles with spring, red End */
#voice .ctl { font-weight: 700; }
#voice .ctl .ic { width: 60px; height: 60px; box-shadow: 0 0 0 1px var(--glass-line) inset, 0 12px 26px -16px rgba(0, 0, 0, .45); transition: transform .3s var(--au-spring), background .2s; }
#voice .ctl:active .ic { transform: scale(.86); }
#voice .ctl.end .ic { width: 72px; height: 72px; background: #E5383B; border-color: #E5383B; box-shadow: 0 16px 32px -12px rgba(229, 56, 59, .75); }
#voice .typebar input { box-shadow: 0 0 0 1px var(--glass-line) inset; }
#voice .take .card { border-radius: 26px; box-shadow: 0 0 0 1px var(--glass-line) inset, 0 18px 36px -26px rgba(0, 0, 0, .4); }
#voice .take .lbl { font-family: var(--font-body), sans-serif; }
@media (prefers-reduced-motion: reduce) { #voice .orb .core, #voice .orb .core::before, #voice .orb .core::after { animation: none !important; } }

/* ======================================================================
   Interaction polish (step 4): entrances, press feedback, focus rings
   ====================================================================== */
.msg.user, .msg-row.bot-row, .msg.bot { animation: auMsgIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.msg-row.bot-row > .msg.bot { animation: none; }
#messages:has(> .au-home) > .msg.bot { animation: none; }
@keyframes auMsgIn { from { opacity: 0; transform: translateY(10px); } }
.starter-chip { animation: auMsgIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.starters .starter-chip:nth-child(2) { animation-delay: .06s; } .starters .starter-chip:nth-child(3) { animation-delay: .12s; }
.starters .starter-chip:nth-child(4) { animation-delay: .18s; } .starters .starter-chip:nth-child(5) { animation-delay: .24s; }
button#send.has-text { animation: auPop .35s var(--au-spring); }
@keyframes auPop { from { transform: scale(.8); } }
.act-btn:active, .msg-actions .speak-btn:active { transform: scale(.78); }
.act-btn.on { animation: auPop .35s var(--au-spring); }
.feat-pill { transition: transform .3s var(--au-spring), color .2s, box-shadow .2s; }
.feat-pill:active { transform: scale(.92); }
.au-mood[aria-pressed="true"] { box-shadow: 0 10px 22px -10px rgba(29, 20, 24, .6); }
.ghost-btn:focus-visible, #menuToggle:focus-visible, .talk-btn:focus-visible, .starter-chip:focus-visible, .au-mood:focus-visible, .feat-card:focus-visible, .feat-pill:focus-visible { outline: 3px solid #8E1E2D; outline-offset: 2px; }
#typing { animation: auBreathe 1.8s ease-in-out infinite; }
@keyframes auBreathe { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  .msg.user, .msg-row.bot-row, .msg.bot, .starter-chip, button#send.has-text, .act-btn.on, #typing { animation: none !important; }
}
