/* The mascot stage on the right (or top on narrow screens). */
.stage {
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 16px;
  min-height: 0;
}
.mascot-frame {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 14%, var(--bg-sunk)), var(--bg-sunk));
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#mascot-canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.mascot-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-deep);
  letter-spacing: 0.3px;
}
.mascot-detail {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  min-height: 16px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage-hint {
  font-size: 10.5px;
  color: var(--dim);
  text-align: center;
  margin-top: 4px;
}

/* Mascot disabled in settings */
body.no-mascot .mascot-frame,
body.no-mascot .stage-hint { display: none; }
body.no-mascot .stage { justify-content: flex-start; padding-top: 24px; }

@media (max-width: 820px) {
  .stage { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
  .mascot-frame { width: 84px; height: 84px; max-width: 84px; aspect-ratio: 1; border-radius: 10px; flex: none; }
  .stage-hint { display: none; }
  .mascot-detail { text-align: left; }
  .mascot-label { font-size: 13px; }
  .stage > div:not(.mascot-frame) { align-self: center; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; }
  .tool.running .bullet { animation: none; }
}
