@font-face { font-family: Manrope; src: url("/assets/monsters/Manrope-Variable-6f6d0ea0.ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }
:root {
  font-family: Manrope, Arial, sans-serif;
  color: #28263b;
  background: #f7f8fc;
  font-synthesis: none;
  font-size: 16px;
  --purple: #6744d4;
  --muted: #8b899b;
  --line: #eeedf3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button,
input,
textarea,
select {
  outline-offset: 4px;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #6744d4;
}
button {
  color: inherit;
}
header {
  height: 94px;
  display: flex;
  align-items: center;
  gap: 21px;
  max-width: 1392px;
  margin: auto;
  padding: 0 40px;
  border-bottom: 1px solid #eaeaf2;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  color: #322268;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -2px;
}
.brand-symbol {
  display: none;
}
.brand-dot {
  color: #8b66ea;
}
.header-divider {
  width: 1px;
  height: 25px;
  background: #dddce7;
}
.header-title {
  font-size: 14px;
  font-weight: 700;
}
.prototype {
  font-size: 10px;
  letter-spacing: 1.3px;
  background: #eeebf8;
  border: 1px solid #e6e0f3;
  padding: 6px 9px;
  border-radius: 6px;
  color: #7e6b9d;
  font-weight: 800;
}
.header-note {
  margin-left: auto;
  font-size: 12px;
  color: #93909f;
}
main {
  max-width: 1392px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 368px;
  gap: 45px;
  padding: 32px 40px 23px;
}
.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stage-heading {
  padding: 12px 0 0 22px;
  z-index: 1;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 800;
  color: #a09aad;
}
h1 {
  font-size: 42px;
  letter-spacing: -1.7px;
  margin: 8px 0 6px;
  font-weight: 800;
  line-height: 1.15;
}
.title-star {
  display: inline-block;
  vertical-align: top;
  font-size: 27px;
  color: #aa97e7;
  margin-left: 15px;
  transform: rotate(12deg);
}
.stage-heading p {
  color: #94909f;
  font-size: 14px;
  margin: 0;
}
.scene {
  position: relative;
  min-height: 300px;
  height: clamp(340px, 49vh, 485px);
  width: 100%;
  margin-top: -4px;
}
.canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: grab;
}
.canvas-wrap:active {
  cursor: grabbing;
}
.orb {
  position: absolute;
  width: 380px;
  height: 380px;
  max-width: 70%;
  max-height: 93%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 48% 40%,
    #e7f6fb 0%,
    #edf4fb 56%,
    #f1f4fb 75%
  );
  left: 50%;
  top: 50%;
  transform: translate(-50%, -49%);
}
.ground-shadow {
  position: absolute;
  bottom: 2%;
  left: 50%;
  width: 220px;
  height: 25px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, #44406b26, transparent 65%);
  filter: blur(5px);
}
.scene-note {
  position: absolute;
  right: 10%;
  top: 43%;
  font-size: 12px;
  color: #aaa3b7;
  transform: rotate(8deg);
  z-index: 3;
  pointer-events: none;
}
.floating-symbol {
  position: absolute;
  font-weight: 500;
  color: #c5c5de;
  font-size: 32px;
  pointer-events: none;
}
.one {
  top: 17%;
  left: 16%;
  transform: rotate(-15deg);
}
.two {
  bottom: 19%;
  right: 13%;
  font-size: 23px;
  transform: rotate(15deg);
}
.three {
  bottom: 23%;
  left: 11%;
  font-size: 26px;
  transform: rotate(-20deg);
}
.emotions {
  z-index: 3;
  text-align: center;
  margin-top: 0;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  color: #8c879d;
}
.emotion-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.emotion {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 9px 9px 10px;
  min-width: 83px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #8e889e;
  transition: 0.2s;
}
.emotion > span:last-child {
  font-size: 11px;
}
.emotion-face {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: Arial;
  font-size: 24px;
  line-height: 1;
}
.emotion.selected {
  background: white;
  border-color: #e6defb;
  color: var(--purple);
  box-shadow: 0 3px 8px #51417e06;
}
.emotion:hover {
  background: #eeebf8;
}
.stage-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 8px 0;
  color: #aaa5b6;
  font-size: 10px;
  gap: 15px;
}
.mini-spark {
  color: #b9a6ec;
  margin-right: 5px;
}
.motion-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.motion-switch input {
  accent-color: var(--purple);
}
.panel {
  background: #fff;
  border: 1px solid #eae7f1;
  border-radius: 23px;
  box-shadow: 0 12px 35px #352c6610;
  overflow: hidden;
  align-self: start;
}
.panel-heading {
  padding: 26px 26px 20px;
}
.panel-heading .eyebrow {
  font-size: 9px;
  color: #a49aaf;
}
h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.7px;
  margin: 7px 0 0;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
  gap: 18px;
}
.tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 14px 0;
  font-size: 12px;
  font-weight: 750;
  color: #a09bab;
  white-space: nowrap;
}
.tabs button[aria-selected="true"] {
  color: var(--purple);
  border-bottom-color: var(--purple);
}
.panel-content {
  padding: 23px 26px 19px;
}
.field-label,
legend {
  font-size: 12px;
  font-weight: 750;
  display: block;
  margin-bottom: 9px;
}
.name-field {
  display: flex;
  align-items: center;
  border: 1px solid #e6e3ee;
  border-radius: 10px;
  background: #fcfbfe;
  padding-right: 12px;
}
.name-field input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 650;
  color: #45405a;
}
.name-field span {
  font-size: 10px;
  color: #b7b1c2;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 22px 0 0;
}
legend {
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
legend span {
  font-size: 10px;
  font-weight: 500;
  color: #a8a0b4;
}
.shapes {
  display: flex;
  gap: 8px;
}
.shapes button {
  flex: 1;
  border: 1px solid #eae7f0;
  background: #fff;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 13px 4px 10px;
  font-size: 10px;
  color: #928a9e;
}
.shapes button.active {
  color: var(--purple);
  border-color: #aa95e7;
  background: #f7f4fe;
}
.shape-icon {
  display: block;
  width: 27px;
  height: 27px;
  background: #c4becd;
}
.shapes .active .shape-icon {
  background: #aa8de9;
}
.shape-icon.circle {
  border-radius: 50%;
}
.shape-icon.square {
  border-radius: 7px;
}
.shape-icon.triangle {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 5px;
}
.swatches {
  display: flex;
  gap: 9px;
  padding: 4px 1px;
  justify-content: space-between;
}
.swatches button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid white;
  background: var(--swatch);
  position: relative;
  display: grid;
  place-items: center;
  color: white;
  padding: 0;
  box-shadow: 0 0 0 1px #f1eef5;
}
.swatches button[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--purple);
}
.swatches.eyes {
  justify-content: flex-start;
  gap: 16px;
}
.eyes button {
  width: 25px;
  height: 25px;
  box-shadow:
    inset 0 0 0 4px #ffffff30,
    0 0 0 1px #eeebf3;
}
.teeth-options {
  display: flex;
  border: 1px solid #e9e5f0;
  border-radius: 9px;
  background: #fbfafd;
  padding: 3px;
  gap: 3px;
}
.teeth-options button {
  flex: 1;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a099ad;
  padding: 6px;
  font-size: 12px;
}
.teeth-options button.active {
  background: white;
  color: var(--purple);
  box-shadow: 0 2px 6px #3d2b6b15;
  font-weight: 800;
}
.random-button {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  background: #f0eafa;
  border: 0;
  color: #7551bd;
  font-size: 12px;
  font-weight: 750;
  border-radius: 10px;
  padding: 13px;
  margin-top: 24px;
}
.random-button svg:last-child {
  margin-left: 10px;
  color: #a98bda;
}
.reset {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 0;
  gap: 6px;
  background: none;
  border: 0;
  color: #9b93a8;
  font-size: 11px;
  padding: 4px;
}
.saved {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 17px;
  padding-top: 16px;
  font-size: 10px;
  color: #b0a8ba;
}
footer {
  max-width: 1392px;
  padding: 0 40px 22px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  color: #b3adbd;
  font-size: 10px;
}
.footer-version {
  border: 1px solid #ded9e8;
  border-radius: 4px;
  padding: 2px 4px;
  margin-left: 9px;
}
textarea {
  display: block;
  width: 100%;
  min-height: 145px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid #e6e1ed;
  border-radius: 10px;
  padding: 12px;
  color: #40394f;
  background: #fcfbfe;
}
.text-counter {
  text-align: right;
  font-size: 10px;
  color: #aaa;
  margin: 6px 0 15px;
}
.voice-notice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.6;
  background: #f6f4fa;
  color: #8f819c;
  padding: 12px;
  border-radius: 10px;
}
.voice-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.primary {
  background: var(--purple);
  color: white;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  padding: 13px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
}
.speech-hint {
  color: #a79bad;
  font-size: 12px;
  line-height: 1.6;
}
.webgl-error {
  padding: 30px;
  max-width: 400px;
  margin: auto;
  color: #7a6c8c;
}
@media (min-width: 1500px) {
  main {
    padding-top: 45px;
    gap: 65px;
    grid-template-columns: minmax(0, 1fr) 385px;
  }
  .scene {
    height: 510px;
  }
}
@media (max-height: 780px) and (min-width: 801px) {
  header {
    height: 73px;
  }
  main {
    padding-top: 23px;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
  }
  .panel-heading {
    padding: 18px 22px 12px;
  }
  .panel-content {
    padding: 17px 22px;
  }
  fieldset {
    margin-top: 16px;
  }
  .random-button {
    margin-top: 18px;
  }
  .saved {
    margin-top: 12px;
    padding-top: 12px;
  }
  .scene {
    height: 340px;
    min-height: 280px;
  }
  .stage-bottom {
    padding-top: 18px;
  }
  .stage-heading h1 {
    font-size: 36px;
  }
}
@media (max-width: 1050px) {
  main {
    gap: 24px;
    padding-left: 25px;
    padding-right: 25px;
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  header {
    padding: 0 25px;
  }
  .header-note {
    display: none;
  }
  .emotion {
    min-width: 0;
    flex: 1;
    padding: 8px 3px;
  }
  .emotion > span:last-child {
    font-size: 9px;
  }
  .scene-note {
    right: 0;
  }
  .stage-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .panel-content {
    padding: 20px;
  }
}
@media (max-width: 800px) {
  header {
    height: 72px;
    padding: 0 22px;
    gap: 13px;
  }
  .brand {
    font-size: 29px;
  }
  .header-title {
    font-size: 12px;
  }
  .prototype {
    margin-left: auto;
    font-size: 8px;
  }
  main {
    display: flex;
    flex-direction: column;
    padding: 18px 17px 22px;
    gap: 22px;
  }
  .stage-heading {
    text-align: center;
    padding: 2px 0 0;
  }
  .stage-heading .eyebrow {
    font-size: 9px;
  }
  h1 {
    font-size: 34px;
    margin-top: 6px;
  }
  .stage-heading p {
    font-size: 12px;
  }
  .scene {
    height: 340px;
    min-height: 0;
    margin-top: 0;
  }
  .orb {
    width: 300px;
    height: 300px;
    max-width: 85%;
  }
  .scene-note {
    right: 1%;
    font-size: 10px;
  }
  .emotion-row {
    gap: 3px;
  }
  .emotion {
    min-width: 0;
    padding: 8px 3px;
  }
  .emotion-face {
    width: 27px;
    height: 27px;
    font-size: 22px;
  }
  .emotion > span:last-child {
    font-size: 9px;
  }
  .stage-bottom {
    padding-top: 16px;
    flex-direction: row;
  }
  .stage-bottom > span {
    font-size: 9px;
  }
  .motion-switch {
    font-size: 9px;
  }
  .panel {
    width: 100%;
    border-radius: 19px;
  }
  .panel-heading {
    padding: 21px 23px 12px;
  }
  .panel-heading h2 {
    font-size: 22px;
  }
  .tabs {
    gap: 24px;
    padding: 0 23px;
  }
  .tabs button {
    font-size: 13px;
  }
  .panel-content {
    padding: 21px 23px;
  }
  .field-label,
  legend {
    font-size: 13px;
  }
  .shapes button {
    font-size: 12px;
  }
  .swatches button {
    width: 30px;
    height: 30px;
  }
  .saved {
    font-size: 11px;
  }
  footer {
    padding: 0 20px 20px;
    font-size: 9px;
    gap: 15px;
  }
  .header-divider {
    height: 20px;
  }
}
@media (max-width: 380px) {
  .scene {
    height: 290px;
  }
  .stage-heading h1 {
    font-size: 30px;
  }
  .stage-bottom > span {
    display: none;
  }
  .stage-bottom {
    justify-content: center;
  }
  .emotion > span:last-child {
    font-size: 8px;
  }
  .swatches {
    gap: 7px;
  }
}
@media (max-height: 450px) and (min-width: 600px) {
  header {
    height: 57px;
  }
  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    padding-top: 15px;
    gap: 20px;
  }
  .scene {
    height: 235px;
  }
  .stage-heading {
    text-align: left;
    padding: 0;
  }
  .stage-heading .eyebrow,
  .stage-heading p {
    display: none;
  }
  .stage-heading h1 {
    font-size: 26px;
  }
  .panel {
    max-height: calc(100dvh - 90px);
    overflow: auto;
  }
  .emotions .section-label,
  .stage-bottom {
    display: none;
  }
  .emotion-row {
    margin-top: 0;
  }
  .emotion-face {
    width: 23px;
    height: 23px;
  }
  .emotion {
    padding: 5px 1px;
  }
  .scene-note {
    display: none;
  }
  .panel-heading {
    padding: 15px 18px;
  }
  .panel-heading .eyebrow {
    display: none;
  }
  .panel-heading h2 {
    font-size: 19px;
    margin: 0;
  }
  footer {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
select {
  width: 100%;
  border: 1px solid #e6e1ed;
  border-radius: 9px;
  padding: 10px;
  font-size: 13px;
  background: #fff;
  color: #625970;
  margin-bottom: 16px;
}
.speech-actions {
  display: flex;
  gap: 8px;
}
.speech-actions .primary {
  flex: 1;
}
.stop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #e2dcea;
  background: #fff;
  color: #847390;
  border-radius: 10px;
  padding: 10px 13px;
  margin-top: 16px;
  font-size: 12px;
}
.examples-heading {
  font-size: 12px;
  font-weight: 700;
  margin: 23px 0 11px;
}
.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.example-chips button {
  font-size: 11px;
  padding: 8px 10px;
  border: 1px solid #e8e2ef;
  border-radius: 8px;
  background: #fcfbfe;
  color: #83738f;
}
.example-chips button:hover {
  color: var(--purple);
  border-color: #b6a2de;
}
.lesson-button,
.resume {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 19px;
  padding: 13px;
  border: 1px solid #dfd4ef;
  background: #f7f3fc;
  color: #77559e;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}
.speech-error {
  font-size: 12px;
  line-height: 1.6;
  color: #b05568;
}
.access-label {
  font-size: 12px;
  display: block;
}
.access-label input {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 7px;
}
.subtitle {
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
  background: #fff;
  border: 1px solid #e8e3ef;
  box-shadow: 0 3px 9px #44327607;
  border-radius: 13px;
  margin: -5px auto 20px;
  padding: 12px 18px;
  max-width: 540px;
  z-index: 5;
  color: #7b6c8d;
  display: flex;
  align-items: center;
  gap: 10px;
}
.subtitle button {
  background: #eee8f8;
  border: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  font-size: 11px;
  color: #806398;
}
.debug-toggle {
  border: 0;
  background: none;
  color: #b6aebe;
  font-size: 10px;
}
.diagnostics {
  padding: 20px;
  max-width: 820px;
  margin: 10px auto 30px;
  background: #fff;
  border: 1px solid #e8e3ed;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.debug-options {
  display: flex;
  gap: 15px;
}
.diagnostics select {
  width: 150px;
  margin: 0 12px;
  padding: 6px;
}
.diagnostics input[type="range"] {
  width: 160px;
  margin-left: 12px;
}
.diagnostics button {
  align-self: flex-start;
  border: 1px solid #ddd1ef;
  background: #f5f0fc;
  border-radius: 8px;
  padding: 8px 13px;
  color: #715290;
}
.diagnostics span {
  color: #a392ae;
}
/* Legible controls and compact panels keep the live scene in view. */
.field-label,
legend {
  font-size: 14px;
}
.name-field input,
textarea,
select {
  font-size: 16px;
}
.tabs button,
.random-button,
.primary,
.stop,
.lesson-button,
.resume {
  font-size: 14px;
}
.shapes button,
.teeth-options button,
.example-chips button,
.reset,
.speech-hint,
.voice-notice,
.section-label {
  font-size: 13px;
}
.emotion > span:last-child {
  font-size: 12px;
}
.emotion {
  min-width: 89px;
}
.eyebrow {
  font-size: 12px;
}
.panel-heading .eyebrow {
  font-size: 11px;
}
.prototype {
  font-size: 11px;
}
.header-note {
  font-size: 13px;
}
.stage-heading p {
  font-size: 16px;
}
.saved,
legend span,
.stage-bottom,
.motion-switch,
.scene-note,
.text-counter,
.examples-heading {
  font-size: 12px;
}
.panel {
  max-height: calc(100dvh - 153px);
  overflow: auto;
  scrollbar-width: thin;
}
.panel-heading {
  padding-bottom: 15px;
}
.tabs {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 9;
}
.swatches button {
  min-width: 29px;
  min-height: 29px;
}
.eyes button {
  min-width: 28px;
  min-height: 28px;
}
.subtitle {
  font-size: 14px;
}
.scene {
  height: clamp(350px, 49vh, 485px);
}
.header-note {
  display: none;
}
.ground-shadow {
  bottom: 0;
}
@media (max-width: 1100px) and (min-width: 801px) {
  .emotion {
    min-width: 0;
  }
  .emotion > span:last-child {
    font-size: 10px;
  }
  .stage-bottom {
    font-size: 11px;
  }
  .scene-note {
    display: none;
  }
  .tabs {
    gap: 13px;
    padding: 0 18px;
  }
  .tabs button {
    font-size: 13px;
  }
  .swatches {
    gap: 7px;
  }
  .swatches button {
    min-width: 27px;
  }
}
@media (max-width: 800px) and (min-height: 451px) {
  header {
    height: 64px;
  }
  .app {
    height: 100dvh;
    overflow: auto;
  }
  main {
    padding: 12px 15px 15px;
    gap: 15px;
  }
  .stage-heading {
    padding-top: 0;
  }
  .stage-heading .eyebrow,
  .stage-heading p,
  .stage-bottom > span,
  .scene-note {
    display: none;
  }
  .stage-heading h1 {
    font-size: 28px;
    margin: 0;
  }
  .scene {
    height: clamp(220px, 35dvh, 320px);
    min-height: 0;
  }
  .emotions .section-label {
    display: none;
  }
  .emotion-row {
    margin-top: 0;
  }
  .emotion {
    min-width: 0;
    padding: 5px 2px;
    gap: 4px;
  }
  .emotion-face {
    width: 25px;
    height: 25px;
  }
  .emotion > span:last-child {
    font-size: 9px;
  }
  .stage-bottom {
    padding-top: 7px;
    justify-content: center;
  }
  .motion-switch {
    font-size: 11px;
  }
  .panel {
    max-height: none;
  }
  .panel-heading {
    display: none;
  }
  .tabs {
    padding: 0 18px;
    justify-content: space-around;
    gap: 12px;
  }
  .tabs button {
    font-size: 14px;
    padding: 14px 0;
  }
  .panel-content {
    max-height: 38dvh;
    overflow: auto;
    padding: 17px 20px;
  }
  .stage {
    position: sticky;
    top: 0;
    background: #f7f8fc;
    z-index: 5;
    padding-top: 4px;
  }
  .subtitle {
    font-size: 12px;
    padding: 8px 10px;
    margin: 3px auto 9px;
    line-height: 1.4;
  }
  .emotion.selected {
    background: white;
  }
  .panel legend {
    font-size: 14px;
  }
  footer {
    display: none;
  }
  .diagnostics {
    position: relative;
    z-index: 9;
  }
}
@media (max-height: 450px) and (min-width: 600px) {
  .scene {
    height: 220px;
  }
  .emotion {
    min-width: 0;
  }
  .emotion > span:last-child {
    font-size: 9px;
  }
  .panel {
    max-height: calc(100dvh - 80px);
  }
  .panel-heading {
    display: none;
  }
  .panel-content {
    padding: 14px 18px;
  }
  .tabs {
    padding: 0 18px;
    gap: 13px;
  }
  .tabs button {
    font-size: 12px;
  }
  .subtitle {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    font-size: 11px;
    padding: 6px;
    background: #ffffffed;
  }
  .diagnostics {
    position: absolute;
    top: 50px;
    z-index: 12;
  }
  .eyebrow {
    font-size: 10px;
  }
}
.swatches.eyes {
  gap: 13px;
}
.eyes button {
  min-width: 26px;
  width: 26px;
  height: 26px;
}
@media (max-height: 450px) and (min-width: 600px) {
  .scene {
    height: 220px;
    min-height: 0;
  }
  .stage {
    min-height: 0;
  }
}
@media (max-width: 800px) {
  .speech-actions {
    position: sticky;
    bottom: -17px;
    background: #fff;
    padding-bottom: 14px;
    z-index: 10;
  }
  .speech-actions .primary,
  .speech-actions .stop {
    margin-top: 10px;
  }
}
/* The vanilla renderer owns the canvas size that React Three Fiber used to provide. */
[hidden] { display: none !important; }
.canvas-wrap canvas { width: 100%; height: 100%; display: block; }
.canvas-wrap:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.swatches [data-check] { font-size: 19px; font-weight: 800; }
