@font-face {
  font-family: 'Albert Sans';
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/albert-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('fonts/albert-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: oklch(0.17 0.018 295);
  --text: oklch(0.93 0.01 300);
  --muted: oklch(0.6 0.025 300);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; }
body {
  background: linear-gradient(180deg, oklch(0.26 0.032 310), oklch(0.17 0.018 288) 60%);
  font-family: 'Albert Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
#app {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  overflow: hidden;
}

@keyframes breathe   { 0%,100% { transform: scale(1); }   50% { transform: scale(1.028); } }
@keyframes speakPulse{ 0%,100% { transform: scale(1); }   50% { transform: scale(1.035); } }
@keyframes ripple    { 0% { transform: scale(1); opacity: .3; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes bar       { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@keyframes dot       { 0%,100% { opacity: .35; }           50% { opacity: .9; } }
@keyframes fadeUp    { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink     { 0%,91%,100% { transform: scaleY(1); } 94%,97% { transform: scaleY(.08); } }
@keyframes floaty    { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 24px 0; }
.title { font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }
.stack { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.pill {
  margin-top: 8px; display: flex; align-items: center; gap: 8px;
  background: oklch(0.3 0.03 305 / 0.65); border-radius: 999px; padding: 5px 14px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.62 0.05 310); }
.status { font-size: 12.5px; font-weight: 600; color: oklch(0.8 0.035 305); }

.orbwrap { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 0 8px; }
.orbbox {
  position: relative; width: 158px; height: 158px;
  display: flex; align-items: center; justify-content: center;
  animation: floaty 7s ease-in-out infinite;
}
.ripple { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid oklch(0.75 0.07 315 / .35); animation: ripple 4.4s ease-out infinite; }
.ripple:nth-child(2) { border-color: oklch(0.75 0.07 315 / .22); animation-delay: 1.5s; }
.ripple:nth-child(3) { border-color: oklch(0.75 0.07 315 / .12); animation-delay: 3s; }
.orb {
  width: 142px; height: 142px; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 34% 28%, oklch(0.82 0.06 320), oklch(0.66 0.09 310) 60%, oklch(0.55 0.1 300));
  box-shadow: 0 14px 40px oklch(0.6 0.1 310 / .28), inset 0 2px 12px oklch(0.96 0.02 320 / .4);
  display: flex; align-items: center; justify-content: center;
  animation: breathe 6s ease-in-out infinite;
}
.face { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.eyes { display: flex; gap: 26px; }
.eye { width: 11px; height: 15px; border-radius: 6px; background: oklch(0.28 0.04 300); animation: blink 5.2s ease-in-out infinite; }
.mouth {
  width: 34px; height: 16px; border: 3.5px solid oklch(0.28 0.04 300);
  border-top: none; border-left-color: transparent; border-right-color: transparent;
  border-radius: 0 0 20px 20px;
}
.bars { display: flex; align-items: center; gap: 5px; height: 36px; }
.bars i { display: block; width: 5px; border-radius: 3px; background: oklch(0.97 0.008 320 / .9); animation: bar 1.8s ease-in-out infinite; }
.bars.speak i { width: 7px; animation-duration: 1.4s; background: oklch(0.97 0.008 320 / .85); }
.dots { display: flex; gap: 8px; }
.dots i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: dot 2.2s ease-in-out infinite; }

.btn {
  animation: fadeUp .45s ease; border: none; cursor: pointer; font-family: inherit;
  font-size: 16px; font-weight: 700; color: oklch(0.2 0.03 310);
  background: oklch(0.87 0.05 320); border-radius: 999px; padding: 14px 34px;
  box-shadow: 0 6px 20px oklch(0.7 0.08 315 / .25);
}
.btn:active { transform: scale(0.97); }

.scroll {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 22px 18px; max-width: 560px; width: 100%; margin: 0 auto;
}
.hint { align-self: center; margin-top: 10px; font-size: 13.5px; color: var(--muted); font-weight: 500; text-align: center; max-width: 260px; }
.msg { animation: fadeUp .4s ease; max-width: 82%; display: flex; flex-direction: column; gap: 3px; }
.msg .who { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: oklch(0.58 0.03 310); padding: 0 8px; }
.msg .bubble { border-radius: 22px; padding: 12px 16px; font-size: 15px; line-height: 1.5; font-weight: 500; }
.msg.coach { align-self: flex-start; }
.msg.coach .bubble { background: oklch(0.33 0.05 315); color: oklch(0.94 0.012 315); }
.msg.you { align-self: flex-end; }
.msg.you .who { text-align: right; }
.msg.you .bubble { background: oklch(0.86 0.045 320); color: oklch(0.24 0.035 310); }

.foot { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 24px 30px; }
.ctl { border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; border-radius: 999px; padding: 13px 26px; }
.mute { color: oklch(0.88 0.02 310); background: oklch(0.31 0.03 310); }
.mute.on { color: oklch(0.25 0.03 310); background: oklch(0.85 0.02 310); }
.end { color: oklch(0.95 0.015 22); background: oklch(0.46 0.08 22); }
.elapsed { font-size: 14px; font-weight: 600; color: oklch(0.68 0.03 305); font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }

.gate { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px; text-align: center; }
.gate .lock { font-size: 46px; }
.gate .msg2 { font-size: 14px; color: var(--muted); max-width: 280px; line-height: 1.5; }
.hidden { display: none !important; }

.focus {
  animation: fadeUp .45s ease; align-self: center; margin: 0 auto 4px;
  background: oklch(0.27 0.032 310); border: 1px solid oklch(0.38 0.045 315 / .55);
  border-radius: 22px; padding: 16px 20px; display: flex; flex-direction: column; gap: 5px;
  max-width: 330px; width: calc(100% - 44px);
}
.focus-h { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: oklch(0.78 0.07 320); }
.focus-b { font-size: 14.5px; line-height: 1.55; font-weight: 500; color: oklch(0.9 0.012 310); }

.ctl.pause { background: oklch(0.32 0.035 300); color: oklch(0.88 0.02 310); }
.ctl.pause.on { background: oklch(0.75 0.12 85); color: oklch(0.22 0.03 300); }
.focus-q {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid oklch(0.34 0.03 310);
  font-size: 14.5px; line-height: 1.55; font-weight: 600;
  color: oklch(0.82 0.09 320);
}
