:root {
  --bg-shift-x: 0px;
  --bg-shift-y: 0px;
  --spot-x: 50%;
  --spot-y: 18%;
  --bg-1: #fff9f0;
  --bg-2: #ffe8d0;
  --bg-3: #ffd2a6;
  --card: rgba(255, 255, 255, 0.78);
  --card-border: rgba(255, 255, 255, 0.92);
  --text-main: #302116;
  --text-sub: #7a6450;
  --accent: #ff8a1f;
  --accent-2: #ff6b2f;
  --ok: #2ea84a;
  --danger: #e44f4f;
  --warn: #d85f17;
  --shadow-lg: 0 22px 48px rgba(96, 54, 20, 0.16);
  --shadow-md: 0 10px 28px rgba(96, 54, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--text-main);
  font-family: "Avenir Next", "PingFang SC", "SF Pro Text", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(140% 100% at 0% 0%, var(--bg-1), transparent 62%),
    radial-gradient(120% 100% at 100% 100%, var(--bg-3), transparent 55%),
    linear-gradient(152deg, var(--bg-1), var(--bg-2));
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  transform: translate3d(var(--bg-shift-x), var(--bg-shift-y), 0);
  transition: transform 180ms linear;
}

.bg-layer::before,
.bg-layer::after {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 420px;
  max-height: 420px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.18;
}

.bg-layer::before {
  left: -18vw;
  top: 36vh;
  background: radial-gradient(circle, rgba(255, 194, 121, 0.9), transparent 68%);
  animation: beamDriftA 22s ease-in-out infinite;
}

.bg-layer::after {
  right: -20vw;
  top: 8vh;
  background: radial-gradient(circle, rgba(255, 151, 115, 0.85), transparent 70%);
  animation: beamDriftB 24s ease-in-out infinite;
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.4;
  transition: opacity 260ms ease, filter 260ms ease;
}

.app-shell.mode-idle .blob {
  opacity: 0.34;
}

.app-shell.mode-running .blob {
  opacity: 0.46;
  filter: blur(1px) saturate(1.06);
}

.app-shell.mode-urgent .blob {
  opacity: 0.56;
  filter: blur(1px) saturate(1.2);
}

.blob-a {
  width: 44vw;
  height: 44vw;
  max-width: 260px;
  max-height: 260px;
  top: -10vw;
  left: -8vw;
  background: linear-gradient(180deg, #ffd2a1, #ffbf7c);
  animation: driftA 14s ease-in-out infinite;
}

.blob-b {
  width: 36vw;
  height: 36vw;
  max-width: 220px;
  max-height: 220px;
  top: 26vh;
  right: -10vw;
  background: linear-gradient(180deg, #ffc0be, #ffad87);
  animation: driftB 16s ease-in-out infinite;
}

.blob-c {
  width: 30vw;
  height: 30vw;
  max-width: 180px;
  max-height: 180px;
  bottom: -8vw;
  left: 34vw;
  background: linear-gradient(180deg, #ffe2b6, #ffd59a);
  animation: driftC 18s ease-in-out infinite;
}

.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 60%, transparent 72%);
  box-shadow: 0 0 10px rgba(255, 228, 192, 0.85);
  opacity: 0.48;
}

.sparkle-1 {
  left: 14%;
  top: 18%;
  animation: sparkleA 5.8s ease-in-out infinite;
}

.sparkle-2 {
  left: 74%;
  top: 22%;
  animation: sparkleB 6.6s ease-in-out infinite;
}

.sparkle-3 {
  left: 22%;
  top: 62%;
  animation: sparkleC 7.1s ease-in-out infinite;
}

.sparkle-4 {
  right: 14%;
  top: 66%;
  animation: sparkleA 6.2s 400ms ease-in-out infinite;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at 20% 20%, #000 0.5px, transparent 0.5px);
  background-size: 8px 8px;
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: calc(env(safe-area-inset-top) + 18px) 16px calc(env(safe-area-inset-bottom) + 20px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.app-shell::before {
  inset: -24px;
  border-radius: 32px;
  background:
    radial-gradient(240px 170px at var(--spot-x) var(--spot-y), rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 74%),
    radial-gradient(280px 200px at calc(var(--spot-x) - 18%) calc(var(--spot-y) + 36%), rgba(255, 176, 101, 0.24), rgba(255, 176, 101, 0) 76%);
  opacity: 0.68;
  transition: opacity 240ms ease;
}

.app-shell::after {
  inset: -16px 14px auto;
  height: 180px;
  border-radius: 999px;
  background: linear-gradient(
    115deg,
    rgba(255, 166, 84, 0),
    rgba(255, 166, 84, 0.12) 28%,
    rgba(255, 111, 45, 0.16) 48%,
    rgba(255, 166, 84, 0.12) 66%,
    rgba(255, 166, 84, 0)
  );
  filter: blur(14px);
  opacity: 0.58;
}

.app-shell.mode-running::before {
  opacity: 0.88;
  animation: auraDrift 7.8s ease-in-out infinite;
}

.app-shell.mode-running::after {
  animation: auroraFlow 5.2s linear infinite;
}

.app-shell.mode-urgent::before {
  opacity: 1;
  animation: auraAlert 1s ease-in-out infinite;
}

.app-shell.ready {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.app-shell > *:not(.fx-layer) {
  opacity: 0;
  transform: translateY(12px);
}

.app-shell.ready > *:not(.fx-layer) {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

.app-shell.ready .topbar {
  transition-delay: 20ms;
}

.app-shell.ready .pet-card {
  transition-delay: 70ms;
}

.app-shell.ready .speech-card {
  transition-delay: 120ms;
}

.app-shell.ready .question-card,
.app-shell.ready .activity-card,
.app-shell.ready .rating-card,
.app-shell.ready .tree-card,
.app-shell.ready .primary-actions {
  transition-delay: 170ms;
}

.app-shell.ready .secondary-actions {
  transition-delay: 220ms;
}

.app-shell.ready .meta-tip {
  transition-delay: 260ms;
}

.fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 7;
}

.feedback-ribbon {
  align-self: center;
  min-height: 0;
  max-width: min(90%, 360px);
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #7a5a42;
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid rgba(163, 124, 90, 0.25);
  box-shadow: 0 8px 20px rgba(105, 63, 29, 0.14);
  opacity: 0;
  transform: translateY(-8px) scale(0.94);
  pointer-events: none;
}

.feedback-ribbon.show {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: ribbonInOut 1.8s ease forwards;
}

.feedback-ribbon.ribbon-confirm {
  color: #22693b;
  border-color: rgba(48, 170, 88, 0.45);
  background: rgba(239, 255, 245, 0.92);
}

.feedback-ribbon.ribbon-unsure {
  color: #8a2f2f;
  border-color: rgba(225, 93, 93, 0.45);
  background: rgba(255, 241, 241, 0.93);
}

.feedback-ribbon.ribbon-info {
  color: #7b512c;
  border-color: rgba(233, 147, 76, 0.45);
  background: rgba(255, 246, 234, 0.92);
}

.fx-dot {
  --dx: 0px;
  --dy: 0px;
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  opacity: 0.92;
  transform: translate(-50%, -50%);
  animation: burstDot 720ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.fx-dot.confirm {
  background: radial-gradient(circle at 35% 35%, #c8ffd7, #2db861);
}

.fx-dot.unsure {
  background: radial-gradient(circle at 35% 35%, #ffd0cf, #da4b4b);
}

.fx-dot.soft {
  background: radial-gradient(circle at 35% 35%, #ffe6ca, #ff9e46);
}

.topbar {
  text-align: center;
  margin-bottom: 2px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(125, 98, 76, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #7b6550;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(98, 58, 26, 0.1);
}

.status-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b8a28f;
}

#statusChipText.is-swapping {
  animation: chipLabelSwap 240ms ease;
}

.status-chip.mode-running {
  color: #7c4a22;
  border-color: rgba(255, 136, 44, 0.4);
  background: rgba(255, 246, 234, 0.92);
}

.status-chip.mode-running .dot {
  background: #ff892a;
  animation: chipPulse 1.5s ease-in-out infinite;
}

.status-chip.mode-urgent {
  color: #8f2e2e;
  border-color: rgba(220, 80, 80, 0.48);
  background: rgba(255, 238, 238, 0.94);
}

.status-chip.mode-urgent .dot {
  background: #e34e4e;
  animation: chipPulseFast 760ms ease-in-out infinite;
}

.topbar::after {
  content: "";
  display: block;
  width: 132px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(200, 145, 95, 0.28), rgba(200, 145, 95, 0.28));
}

.app-shell.mode-running .topbar::after {
  background: linear-gradient(90deg, rgba(255, 167, 88, 0.86), rgba(255, 114, 57, 0.95), rgba(255, 167, 88, 0.86));
  background-size: 200% 100%;
  animation: lineFlow 2.4s linear infinite;
}

.app-shell.mode-urgent .topbar::after {
  background: linear-gradient(90deg, rgba(250, 118, 44, 0.95), rgba(234, 70, 70, 0.95), rgba(250, 118, 44, 0.95));
  background-size: 200% 100%;
  animation: linePulse 880ms ease-in-out infinite;
}

.app-shell.mode-switching .topbar h1 {
  animation: modeTitleSnap 340ms ease;
}

.app-shell.mode-switching .status-chip {
  animation: modeChipPop 340ms cubic-bezier(0.2, 0.82, 0.23, 1);
}

.sub-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #8b6a4f;
}

.topbar h1 {
  margin: 6px 0 0;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #24180f;
}

.pet-card,
.speech-card,
.question-card,
.activity-card,
.rating-card,
.tree-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.pet-card {
  --hover-x: 50%;
  --hover-y: 28%;
  --hover-intensity: 0;
  --eye-x: 0px;
  --eye-y: 0px;
  padding: 16px 14px 14px;
  text-align: center;
  overflow: hidden;
  transform-origin: center;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.pet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.62;
  background:
    radial-gradient(
      180px 120px at var(--hover-x) var(--hover-y),
      rgba(255, 255, 255, 0.7),
      rgba(255, 255, 255, 0.02) 68%
    );
  transition: background-position 120ms linear, opacity 180ms ease;
}

.pet-card.is-touching {
  box-shadow: 0 24px 56px rgba(110, 64, 23, 0.26);
}

.pet-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: 50%;
  top: 22px;
  transform: translateX(-50%) scale(0.84);
  border-radius: 50%;
  border: 2px dashed rgba(255, 138, 31, 0.34);
  opacity: 0;
  pointer-events: none;
}

.app-shell.is-running .pet-card::after {
  opacity: 0.72;
  animation: pulseRing 2.2s ease-out infinite;
}

.app-shell.is-running .pet-card::before {
  opacity: 0.78;
}

.app-shell.is-running .pet-card {
  animation: cardFloatA 4s ease-in-out infinite;
}

.pet-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.pet-particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 171, 89, 0.9), rgba(255, 125, 43, 0.9));
  box-shadow: 0 0 10px rgba(255, 131, 42, 0.4);
}

.pet-particles span:nth-child(1) {
  left: 24%;
  top: 28%;
}

.pet-particles span:nth-child(2) {
  right: 22%;
  top: 30%;
}

.pet-particles span:nth-child(3) {
  left: 28%;
  bottom: 23%;
}

.pet-particles span:nth-child(4) {
  right: 25%;
  bottom: 24%;
}

.app-shell.is-running .pet-particles {
  opacity: 1;
}

.app-shell.is-running .pet-particles span:nth-child(1) {
  animation: particleFloatA 3.4s ease-in-out infinite;
}

.app-shell.is-running .pet-particles span:nth-child(2) {
  animation: particleFloatB 3.8s ease-in-out infinite;
}

.app-shell.is-running .pet-particles span:nth-child(3) {
  animation: particleFloatC 3.2s ease-in-out infinite;
}

.app-shell.is-running .pet-particles span:nth-child(4) {
  animation: particleFloatD 3.6s ease-in-out infinite;
}

.pet-avatar {
  --ring-progress: 0;
  width: 154px;
  height: 154px;
  margin: 4px auto 10px;
  position: relative;
  transform-origin: center bottom;
  animation: petFloat 3.8s ease-in-out infinite;
  filter: drop-shadow(0 8px 8px rgba(123, 73, 31, 0.2));
  transition: filter 160ms ease;
}

.app-shell.is-running .pet-avatar {
  animation: petFloatActive 2s ease-in-out infinite;
  filter: drop-shadow(0 10px 14px rgba(255, 126, 40, calc(0.18 + var(--hover-intensity) * 0.22)));
}

.pet-halo {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 180, 102, 0.55), rgba(255, 180, 102, 0) 68%);
  filter: blur(10px);
  opacity: 0.48;
  pointer-events: none;
}

.app-shell.is-running .pet-halo {
  animation: haloPulse 2.6s ease-in-out infinite;
}

.app-shell.is-urgent .pet-halo {
  opacity: 0.76;
}

.pet-avatar::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    rgba(255, 138, 31, 0.9) 0,
    rgba(255, 121, 56, 0.95) calc(var(--ring-progress) * 1%),
    rgba(255, 255, 255, 0.18) calc(var(--ring-progress) * 1%),
    rgba(255, 255, 255, 0.18) 100%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  opacity: 0.85;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.pet-avatar::after {
  content: "";
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  border: 2px solid rgba(255, 141, 58, 0.22);
  transform-origin: center;
  pointer-events: none;
}

.app-shell.is-running .pet-avatar::after {
  animation: ringOrbit 5.6s linear infinite;
}

.app-shell.is-urgent .pet-avatar::after {
  animation-duration: 2.2s;
  border-color: rgba(232, 89, 72, 0.46);
}

.cat-photo {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #9e6331;
  box-shadow: inset 0 -8px 16px rgba(255, 177, 98, 0.2);
}

.photo-shine {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.78) 40%, transparent 62%);
  transform: translateX(-160%) rotate(-8deg);
  opacity: 0;
  pointer-events: none;
}

.pet-avatar.has-photo .ear,
.pet-avatar.has-photo .face {
  display: none;
}

.pet-avatar.has-photo .photo-shine {
  opacity: 0.9;
  animation: photoShine 5.5s ease-in-out infinite;
}

.ear {
  width: 44px;
  height: 50px;
  border-radius: 18px 18px 8px 8px;
  background: #ffd6ad;
  border: 3px solid #9e6331;
  position: absolute;
  top: 10px;
}

.ear-left {
  left: 17px;
  transform: rotate(-24deg);
  transform-origin: bottom center;
}

.ear-right {
  right: 17px;
  transform: rotate(24deg);
  transform-origin: bottom center;
}

.app-shell.is-running .ear-left {
  animation: earLeft 1.8s ease-in-out infinite;
}

.app-shell.is-running .ear-right {
  animation: earRight 1.8s ease-in-out infinite;
}

.face {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: radial-gradient(circle at 44% 26%, #fff0da, #ffc489 68%);
  border: 4px solid #9e6331;
  position: absolute;
  left: 15px;
  top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  box-shadow: inset 0 -8px 16px rgba(255, 177, 98, 0.24);
}

.pet-card.pet-react .face {
  animation: facePop 360ms ease;
}

.eye {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #5a361b;
  background: radial-gradient(circle at 35% 32%, #fff, #fae8d3 72%);
  margin-top: -8px;
  position: relative;
  overflow: hidden;
  transform-origin: center;
}

.eye-left {
  animation: blink 5.2s infinite;
}

.eye-right {
  animation: blink 5.2s 0.1s infinite;
}

.eye::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 11px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  background: radial-gradient(circle at 35% 30%, #3a2617, #130b06 72%);
  transform: translate(calc(-50% + var(--eye-x)), calc(-50% + var(--eye-y)));
  transition: transform 100ms ease-out;
}

.eye::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  left: calc(50% + var(--eye-x) - 3px);
  top: calc(50% + var(--eye-y) - 3px);
  transition: left 100ms ease-out, top 100ms ease-out;
}

.nose {
  width: 14px;
  height: 10px;
  border-radius: 10px;
  background: #6d3a15;
  position: absolute;
  bottom: 28px;
  left: 55px;
}

.mouth {
  width: 24px;
  height: 8px;
  border-radius: 0 0 16px 16px;
  border: 3px solid #6d3a15;
  border-top: none;
  position: absolute;
  bottom: 16px;
  left: 50px;
  transform-origin: center top;
}

.app-shell.is-speaking .mouth {
  animation: mouthTalk 420ms ease-in-out infinite;
}

.status {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.status.idle {
  color: #6d6257;
}

.status.running {
  color: var(--ok);
}

.countdown {
  margin: 7px 0 0;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: color 180ms ease;
}

.countdown.urgent {
  color: var(--warn);
  animation: countdownAlert 800ms ease-in-out infinite;
}

.app-shell.is-urgent .pet-card {
  box-shadow: 0 26px 52px rgba(212, 93, 34, 0.24);
}

.app-shell.is-urgent .pet-avatar::before {
  opacity: 1;
}

.progress-track {
  width: min(84%, 320px);
  height: 8px;
  margin: 11px auto 0;
  border-radius: 999px;
  background: rgba(125, 97, 72, 0.16);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb03d, #ff7a2a);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(255, 122, 42, 0.42);
  transition: width 250ms linear, background 180ms ease;
  animation: progressFlow 2.8s linear infinite;
}

.progress-fill.urgent {
  background: linear-gradient(90deg, #f77a1f, #e54f2f);
}

.speech-card {
  padding: 14px 14px;
  box-shadow: var(--shadow-md);
  transform-origin: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.speech-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.speech-card p {
  margin: 0;
  padding: 12px 82px 0 8px;
  font-size: 16px;
  line-height: 1.54;
  color: #4a3a2a;
  font-weight: 600;
}

.mood-badge {
  position: absolute;
  right: 14px;
  top: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid rgba(161, 120, 84, 0.3);
  background: rgba(255, 255, 255, 0.82);
  color: #7d5e43;
  transform-origin: center;
}

.mood-badge.mood-neutral {
  color: #7d5e43;
}

.mood-badge.mood-running {
  color: #8b531f;
  border-color: rgba(236, 151, 79, 0.5);
  background: rgba(255, 247, 236, 0.92);
  animation: moodPulse 2.1s ease-in-out infinite;
}

.mood-badge.mood-question {
  color: #7a3f1f;
  border-color: rgba(255, 132, 81, 0.5);
  background: rgba(255, 240, 234, 0.92);
}

.mood-badge.mood-confirm {
  color: #22693b;
  border-color: rgba(47, 170, 88, 0.46);
  background: rgba(239, 255, 245, 0.94);
}

.mood-badge.mood-unsure {
  color: #8a2f2f;
  border-color: rgba(225, 93, 93, 0.48);
  background: rgba(255, 241, 241, 0.94);
}

.mood-badge.pop {
  animation: moodPop 260ms ease;
}

.speech-card p.is-changing {
  animation: speechSwap 260ms ease;
}

.voice-wave {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}

.voice-wave span {
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9a2f, #ff6b2f);
  opacity: 0.35;
  animation: waveIdle 2.4s ease-in-out infinite;
}

.voice-wave span:nth-child(2) {
  animation-delay: 120ms;
}

.voice-wave span:nth-child(3) {
  animation-delay: 220ms;
}

.voice-wave span:nth-child(4) {
  animation-delay: 320ms;
}

.app-shell.is-speaking .voice-wave span {
  opacity: 0.95;
}

.app-shell.is-speaking .voice-wave span:nth-child(1) {
  animation: waveTalk 520ms ease-in-out infinite;
}

.app-shell.is-speaking .voice-wave span:nth-child(2) {
  animation: waveTalk 520ms 80ms ease-in-out infinite;
}

.app-shell.is-speaking .voice-wave span:nth-child(3) {
  animation: waveTalk 520ms 160ms ease-in-out infinite;
}

.app-shell.is-speaking .voice-wave span:nth-child(4) {
  animation: waveTalk 520ms 240ms ease-in-out infinite;
}

.speech-card.is-popping {
  animation: popIn 320ms ease;
}

.app-shell.is-running .speech-card:not(.is-popping) {
  animation: cardFloatB 4.4s ease-in-out infinite;
}

.speech-card::after,
.question-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(115deg, transparent 5%, rgba(255, 255, 255, 0.62) 40%, transparent 72%);
}

.question-card::before {
  content: "";
  position: absolute;
  inset: -26% -12%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.34;
  background:
    radial-gradient(42% 42% at 40% 38%, rgba(255, 186, 129, 0.58), rgba(255, 186, 129, 0)),
    radial-gradient(40% 40% at 70% 60%, rgba(255, 117, 75, 0.32), rgba(255, 117, 75, 0));
}

.app-shell.is-speaking .speech-card::after {
  opacity: 0.9;
  animation: sheenSweep 900ms ease-out;
}

.app-shell.question-open .question-card::after {
  opacity: 0.7;
  animation: sheenSweep 960ms ease-out;
}

.app-shell.question-open .question-card::before {
  animation: questionGlow 3.1s ease-in-out infinite;
}

.app-shell.question-open .question-card {
  box-shadow: 0 20px 44px rgba(115, 67, 29, 0.22);
}

.question-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  padding: 14px;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 120ms ease, box-shadow 180ms ease;
}

.question-card p {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 900;
  color: #2d1d10;
}

.question-card.enter {
  animation: questionIn 340ms cubic-bezier(0.17, 0.84, 0.44, 1);
}

.question-card.is-tilting {
  box-shadow: 0 20px 46px rgba(82, 46, 19, 0.22);
}

.question-card.enter .actions-row .btn {
  animation: optionIn 360ms ease;
}

.question-card.enter .actions-row .btn:nth-child(2) {
  animation-delay: 70ms;
}

.app-shell.question-open .speech-card {
  transform: translateY(-1px) scale(0.995);
}

.app-shell.feedback-confirm .speech-card {
  box-shadow: 0 14px 28px rgba(33, 145, 70, 0.24);
  animation: feedbackPop 380ms ease;
}

.app-shell.feedback-unsure .speech-card {
  box-shadow: 0 14px 28px rgba(207, 61, 61, 0.24);
  animation: feedbackShake 420ms ease;
}

.activity-card,
.rating-card,
.tree-card {
  padding: 14px 14px 15px;
}

.activity-title,
.rating-title,
.tree-title {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: #2f1f13;
}

.activity-desc,
.rating-desc,
.tree-summary {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #6f5a47;
}

.activity-timer {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: #8d4f24;
}

.activity-select {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.activity-card .btn-soft {
  min-height: 44px;
}

.activity-task {
  margin-top: 10px;
  padding: 10px 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(164, 116, 77, 0.22);
  background: rgba(255, 252, 248, 0.72);
}

.activity-task p {
  margin: 0;
}

.activity-task-options {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.activity-option {
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(158, 111, 72, 0.3);
  background: #fff9f1;
  color: #5b422d;
  font-size: 14px;
  font-weight: 700;
}

.activity-option.correct {
  border-color: rgba(41, 155, 82, 0.45);
  background: rgba(236, 255, 244, 0.95);
  color: #21693a;
}

.activity-option.wrong {
  border-color: rgba(213, 79, 79, 0.45);
  background: rgba(255, 240, 240, 0.95);
  color: #8b3131;
}

.activity-option.cleared {
  opacity: 0.58;
  text-decoration: line-through;
}

.activity-task-feedback {
  margin-top: 9px;
  min-height: 18px;
  font-size: 13px;
  font-weight: 800;
  color: #7a5638;
}

#activitySkipBtn {
  margin-top: 10px;
}

.rating-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.btn-rate {
  min-height: 46px;
  font-size: 15px;
}

.btn-rate-5 {
  color: #fff;
  background: linear-gradient(140deg, #7f54de, #5d3cb4);
}

.btn-rate-3 {
  color: #fff;
  background: linear-gradient(140deg, #ff9e39, #e37a1f);
}

.btn-rate-0 {
  color: #fff;
  background: linear-gradient(140deg, #42b35d, #23944b);
}

.tree-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tree-toggle {
  min-height: 36px;
  min-width: 116px;
  font-size: 13px;
  border-radius: 12px;
}

.tree-visual {
  position: relative;
  margin: 10px auto 0;
  width: min(86%, 300px);
  height: 188px;
}

.tree-canopy {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 180px;
  height: 132px;
  transform: translateX(-50%);
  border-radius: 48% 52% 50% 50% / 56% 58% 42% 44%;
  background: radial-gradient(circle at 38% 30%, #86d36f, #3a8f3f 70%);
  border: 2px solid rgba(45, 103, 47, 0.35);
  box-shadow: inset 0 -14px 24px rgba(37, 78, 37, 0.28);
  overflow: hidden;
}

.tree-fruit {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.tree-fruit.score-5 {
  background: radial-gradient(circle at 35% 35%, #d8c5ff, #7f54de);
}

.tree-fruit.score-3 {
  background: radial-gradient(circle at 35% 35%, #ffd29d, #f59230);
}

.tree-fruit.score-0 {
  background: radial-gradient(circle at 35% 35%, #d2ffdb, #3cb45a);
}

.tree-trunk {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 28px;
  height: 68px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: linear-gradient(180deg, #8a5a34, #5a361d);
}

.tree-ground {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 160px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(129, 177, 105, 0.55), rgba(129, 177, 105, 0));
}

.archive-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.archive-tile {
  min-height: 76px;
  border-radius: 12px;
  border: 1px solid rgba(157, 117, 80, 0.25);
  background: rgba(255, 250, 242, 0.85);
  padding: 8px;
}

.archive-tile h4 {
  margin: 0;
  font-size: 12px;
  color: #6f5138;
}

.archive-tile p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: #7d6650;
}

.actions-row,
.primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.actions-row {
  margin-top: 12px;
}

.actions-row .btn {
  min-height: 52px;
  font-size: 14px;
  line-height: 1.3;
  padding: 8px 10px;
}

.primary-actions {
  margin-top: 2px;
}

.secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  --tx: 0px;
  --ty: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: none;
  border-radius: 16px;
  min-height: 56px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transform: translate3d(var(--tx), var(--ty), 0);
  transition: transform 120ms ease, opacity 120ms ease, filter 200ms ease;
  box-shadow: 0 8px 20px rgba(58, 28, 11, 0.16);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -42% -28%;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-130%) rotate(8deg);
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.7) 50%, transparent 64%);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.app-shell.is-running .primary-actions .btn::before,
.app-shell.question-open .actions-row .btn::before {
  opacity: 0.75;
  animation: btnSheen 2.8s linear infinite;
}

.app-shell.is-urgent .primary-actions .btn::before {
  opacity: 0.95;
  animation-duration: 1.4s;
}

.btn .ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: rippleBurst 480ms ease-out forwards;
}

.btn:active {
  transform: translate3d(var(--tx), var(--ty), 0) translateY(1px) scale(0.988);
}

.btn:hover {
  filter: brightness(1.02);
}

.btn:disabled {
  opacity: 0.46;
  box-shadow: none;
}

.btn-start {
  color: #fff;
  background: linear-gradient(140deg, #ff9d3a, #ff6f2b);
  background-size: 180% 180%;
}

.app-shell:not(.is-running) .btn-start {
  animation: idlePulse 2.8s ease-in-out infinite;
}

.btn-end {
  color: #fff;
  background: linear-gradient(140deg, #4b4139, #2d2520);
  background-size: 180% 180%;
}

.btn-confirm {
  color: #fff;
  background: linear-gradient(140deg, #39b953, #239146);
}

.btn-unsure {
  color: #fff;
  background: linear-gradient(140deg, #eb5959, #cf3d3d);
}

.btn-soft {
  color: #5d4330;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(253, 236, 212, 0.92));
  border: 1px solid rgba(166, 118, 76, 0.25);
  box-shadow: 0 6px 16px rgba(71, 42, 20, 0.08);
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
}

.btn-soft.off {
  color: #8a6f5a;
}

.primary-actions .btn.magnetized {
  box-shadow: 0 14px 28px rgba(74, 35, 14, 0.26);
}

.app-shell.is-running .primary-actions .btn {
  animation: buttonFlow 3.2s linear infinite;
}

.app-shell.is-urgent .primary-actions .btn {
  box-shadow: 0 16px 32px rgba(103, 40, 14, 0.35);
}

.meta-tip {
  margin: 2px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #8b6c53;
  letter-spacing: 0.03em;
}

.app-shell.is-running .meta-tip {
  background: linear-gradient(90deg, #9a704f, #d68640, #9a704f);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: metaShimmer 3.2s linear infinite;
}

.hidden {
  display: none;
}

@keyframes petFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes petFloatActive {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes earLeft {
  0%,
  100% {
    transform: rotate(-24deg);
  }
  50% {
    transform: rotate(-16deg);
  }
}

@keyframes earRight {
  0%,
  100% {
    transform: rotate(24deg);
  }
  50% {
    transform: rotate(16deg);
  }
}

@keyframes blink {
  0%,
  6%,
  100% {
    transform: scaleY(1);
  }
  3% {
    transform: scaleY(0.12);
  }
}

@keyframes pulseRing {
  0% {
    transform: translateX(-50%) scale(0.84);
    opacity: 0.72;
  }
  70% {
    transform: translateX(-50%) scale(1.03);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) scale(1.03);
    opacity: 0;
  }
}

@keyframes popIn {
  0% {
    transform: translateY(4px) scale(0.985);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes questionIn {
  0% {
    opacity: 0;
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(14px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0) scale(1);
  }
}

@keyframes facePop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes photoShine {
  0%,
  75%,
  100% {
    transform: translateX(-160%) rotate(-8deg);
    opacity: 0;
  }
  20% {
    opacity: 0.88;
  }
  40% {
    transform: translateX(160%) rotate(-8deg);
    opacity: 0;
  }
}

@keyframes countdownAlert {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

@keyframes rippleBurst {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(16);
    opacity: 0;
  }
}

@keyframes feedbackPop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes feedbackShake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes particleFloatA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-8px, -12px) scale(1.08);
  }
}

@keyframes particleFloatB {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(9px, -10px) scale(1.12);
  }
}

@keyframes particleFloatC {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-6px, 8px) scale(1.05);
  }
}

@keyframes particleFloatD {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(7px, 9px) scale(1.1);
  }
}

@keyframes waveTalk {
  0%,
  100% {
    height: 6px;
    opacity: 0.45;
  }
  50% {
    height: 18px;
    opacity: 1;
  }
}

@keyframes haloPulse {
  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.46;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.72;
  }
}

@keyframes mouthTalk {
  0%,
  100% {
    transform: scaleY(1);
    border-bottom-width: 3px;
  }
  50% {
    transform: scaleY(1.5);
    border-bottom-width: 2px;
  }
}

@keyframes progressFlow {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes burstDot {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0.98;
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.08);
    opacity: 0;
  }
}

@keyframes sheenSweep {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  35% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(110%);
    opacity: 0;
  }
}

@keyframes idlePulse {
  0%,
  100% {
    box-shadow: 0 8px 20px rgba(58, 28, 11, 0.16);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 14px 30px rgba(255, 111, 43, 0.42);
    transform: translateY(-1px);
  }
}

@keyframes optionIn {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes metaShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes beamDriftA {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, -28px);
  }
}

@keyframes beamDriftB {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-36px, 34px);
  }
}

@keyframes lineFlow {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes linePulse {
  0%,
  100% {
    background-position: 0 0;
    transform: scaleX(1);
  }
  50% {
    background-position: 100% 0;
    transform: scaleX(1.06);
  }
}

@keyframes speechSwap {
  0% {
    opacity: 0.35;
    filter: blur(2px);
    transform: translateY(3px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes chipPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.28);
    opacity: 0.65;
  }
}

@keyframes chipPulseFast {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.45;
  }
}

@keyframes chipLabelSwap {
  0% {
    opacity: 0.35;
    transform: translateY(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auraDrift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(8px, -6px);
  }
}

@keyframes auraAlert {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.9;
  }
}

@keyframes auroraFlow {
  0% {
    transform: translateX(-18%) scaleX(0.9);
    opacity: 0.45;
  }
  50% {
    opacity: 0.74;
  }
  100% {
    transform: translateX(18%) scaleX(1.08);
    opacity: 0.45;
  }
}

@keyframes cardFloatA {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes cardFloatB {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}

@keyframes buttonFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 180% 50%;
  }
}

@keyframes ringOrbit {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.03);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes waveIdle {
  0%,
  100% {
    height: 6px;
    opacity: 0.32;
  }
  50% {
    height: 10px;
    opacity: 0.52;
  }
}

@keyframes modeTitleSnap {
  0% {
    transform: translateY(3px) scale(0.985);
    opacity: 0.78;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes modeChipPop {
  0% {
    transform: scale(0.92);
  }
  65% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes questionGlow {
  0%,
  100% {
    transform: translate3d(-2%, 0, 0) scale(1);
    opacity: 0.28;
  }
  50% {
    transform: translate3d(3%, -1%, 0) scale(1.05);
    opacity: 0.48;
  }
}

@keyframes btnSheen {
  0% {
    transform: translateX(-130%) rotate(8deg);
  }
  100% {
    transform: translateX(132%) rotate(8deg);
  }
}

@keyframes moodPop {
  0% {
    transform: scale(0.86);
    opacity: 0.75;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes moodPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 156, 69, 0);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 156, 69, 0.18);
  }
}

@keyframes ribbonInOut {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.94);
  }
  16% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
}

@keyframes sparkleA {
  0%,
  100% {
    opacity: 0.2;
    transform: translate(0, 0) scale(0.75);
  }
  35% {
    opacity: 0.85;
    transform: translate(4px, -7px) scale(1);
  }
  70% {
    opacity: 0.45;
    transform: translate(-3px, 6px) scale(0.88);
  }
}

@keyframes sparkleB {
  0%,
  100% {
    opacity: 0.16;
    transform: translate(0, 0) scale(0.7);
  }
  40% {
    opacity: 0.9;
    transform: translate(-5px, -8px) scale(1.06);
  }
  72% {
    opacity: 0.34;
    transform: translate(4px, 5px) scale(0.9);
  }
}

@keyframes sparkleC {
  0%,
  100% {
    opacity: 0.22;
    transform: translate(0, 0) scale(0.78);
  }
  44% {
    opacity: 0.84;
    transform: translate(6px, -6px) scale(1);
  }
  76% {
    opacity: 0.3;
    transform: translate(-4px, 7px) scale(0.86);
  }
}

@keyframes driftA {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(16px, 20px);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-20px, 15px);
  }
}

@keyframes driftC {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(18px, -12px);
  }
}

@media (max-width: 390px) {
  .topbar h1 {
    font-size: 28px;
  }

  .question-card p {
    font-size: 21px;
  }

  .btn {
    min-height: 52px;
    font-size: 16px;
  }

  .actions-row .btn {
    min-height: 50px;
    font-size: 12px;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .app-shell {
    padding-top: 36px;
  }

  .topbar h1 {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
