@import "https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@500;700;800;900&display=swap";

/* maker/cat/cat-header.css */
.companion > .cat-header {
  gap: 16px;
}
.cat-header .cat-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.cat-header .cat-title .brand {
  gap: 8px;
}
.companion .cat-header button {
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}
.companion .cat-header .cat-exit .close-btn {
  width: 40px;
  padding: 0;
  border-radius: 14px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.companion .cat-header .cat-exit .close-btn:hover,
.companion .cat-header .cat-exit .close-btn:focus-visible {
  border-color: var(--border);
  background: #fff0f5;
}
.companion .cat-header .header-tools {
  align-items: center;
  gap: 8px;
}
.companion .cat-header .header-tools svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.companion .cat-header .cat-sound-setting {
  width: auto;
  min-width: 126px;
  padding: 10px 12px;
  font-size: 13px;
}
.cat-header .cat-sound-setting[aria-checked=true] {
  background: #fff0f5;
  border-color: var(--pink);
}
@media (max-width:1100px) {
  .companion {
    --header:88px;
  }
  .companion > .cat-header {
    height: var(--header);
    padding: 7px 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 30px 34px;
    gap: 4px;
    align-content: center;
  }
  .cat-header .cat-title {
    grid-column: 1;
    grid-row: 1;
    gap: 8px;
  }
  .companion .cat-header .brand {
    font-size: 19px;
    white-space: nowrap;
  }
  .companion .cat-header .brand svg {
    width: 25px;
    height: 25px;
  }
  .companion .cat-header .cat-exit .close-btn {
    height: 28px;
    min-height: 28px;
    width: 28px;
    border-radius: 9px;
  }
  .companion .cat-header .room-heading {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    font-size: 11px;
  }
  .companion .cat-header .header-tools {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    gap: 6px;
    justify-content: flex-end;
  }
  .companion .cat-header .header-tools button {
    height: 32px;
    min-height: 32px;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 12px;
    gap: 4px;
  }
  .companion .cat-header .header-tools svg {
    width: 15px;
    height: 15px;
  }
  .companion .cat-header .cat-sound-setting {
    min-width: 94px;
  }
  .companion .companion-workspace {
    height: calc(100dvh - var(--header));
  }
  .companion .identity-panel {
    top: calc(var(--header) + 12px);
  }
}

/* maker/cat/save-menu.css */
.save-layer {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #44303a66;
}
.save-dialog {
  width: min(440px, 100%);
  background: #fffdf8;
  border: 2px solid #e3d6c8;
  border-radius: 22px;
  box-shadow: 0 8px 0 #ead9c6;
  color: #44303a;
  padding: 20px;
  box-sizing: border-box;
}
.save-dialog h2 {
  margin: 0 0 14px;
  font-size: 22px;
}
.save-formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.save-format {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 10px 12px;
  border: 2px solid #e8dfd6;
  border-radius: 16px;
  background: white;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  min-height: 84px;
}
.save-format b {
  font-size: 18px;
}
.save-format small {
  font-size: 12px;
  line-height: 1.45;
  color: #776772;
  text-wrap: balance;
}
.save-format[aria-checked=true] {
  border-color: #ec4c82;
  background: #fff5f8;
  box-shadow: 0 0 0 3px #ec4c8233;
}
.save-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d9cdc2;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.save-format[aria-checked=true] .save-check {
  background: #ec4c82;
  border-color: #ec4c82;
  color: white;
}
.save-check svg {
  width: 13px;
  height: 13px;
}
.save-pro {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 9px;
  background: #ec4c82;
  color: white;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  vertical-align: 2px;
}
.save-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff5f8;
  border: 1.5px solid #f3c6d6;
  font-size: 12px;
  line-height: 1.6;
  color: #5a4650;
}
.save-note.limit {
  background: #fff0ee;
  border-color: #eba39b;
  color: #7a2f27;
}
.save-note a {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  color: #c93566;
}
.save-size {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7efe5;
  font-size: 13px;
  color: #5a4650;
}
.save-size b {
  margin-left: 6px;
  font-size: 15px;
  color: #44303a;
}
.save-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.save-actions button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}
.save-actions .save-go {
  flex: 1;
  background: #ec4c82;
  color: white;
  border: 2px solid #ec4c82;
  box-shadow: 0 4px 0 #d73f75;
}
.save-actions .save-go:disabled {
  opacity: .75;
  cursor: progress;
}
.save-actions svg {
  width: 20px;
  height: 20px;
}
.save-format:focus-visible,
.save-actions button:focus-visible {
  outline: 3px dashed #ec4c82;
  outline-offset: 2px;
}
@media (max-width:700px) {
  .save-formats {
    gap: 6px;
  }
  .save-format {
    padding: 12px 8px 10px;
    min-height: 78px;
  }
  .save-format b {
    font-size: 16px;
  }
  .save-format small {
    font-size: 11px;
  }
  .save-layer {
    align-items: flex-end;
    padding: 0;
  }
  .save-dialog {
    width: 100%;
    border-radius: 22px 22px 0 0;
    padding: 18px 14px calc(16px + env(safe-area-inset-bottom));
  }
  .save-dialog h2 {
    font-size: 19px;
  }
  .save-actions button {
    padding: 10px 14px;
    font-size: 15px;
  }
}
.save-dialog .td-compact-download-menu {
  position: static;
  width: 100%;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.save-dialog > .save-cancel {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border-radius: 24px;
}
.save-dialog .ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  font-feature-settings: "liga";
}

/* maker/cat/cat-touch.css */
.pet-cat {
  position: relative;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.cat-lean {
  width: 100%;
  height: 100%;
  transform-origin: 50% 96%;
  transition: transform .14s ease-out;
}
.cat-motion {
  width: 100%;
  height: 100%;
  transform-origin: 50% 96%;
  will-change: transform;
}
.cat-inline svg {
  display: block;
  width: 100%;
  height: 100%;
}
.touch-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.touch-fx {
  position: absolute;
  display: block;
  translate: -50% -50%;
  pointer-events: none;
}
.touch-fx svg {
  display: block;
  width: 100%;
  height: 100%;
}
.fx-heart {
  width: calc(30px * var(--size));
  height: calc(30px * var(--size));
  color: #f2577f;
  animation: fx-heart .9s cubic-bezier(.22, 1, .36, 1) forwards;
}
.fx-heart.small {
  width: calc(20px * var(--size));
  height: calc(20px * var(--size));
  color: #f47c9b;
}
.fx-ripple {
  width: 46px;
  height: 46px;
  color: #ffffffd9;
  animation: fx-ripple .38s ease-out forwards;
}
.fx-burst {
  width: 58px;
  height: 40px;
  color: #44303a;
  animation: fx-burst .5s cubic-bezier(.22, 1, .36, 1) forwards;
}
.fx-sweat {
  width: 20px;
  height: 27px;
  color: #8cc8f0;
  animation: fx-sweat .7s ease-in forwards;
}
.fx-zzz {
  width: 24px;
  height: 24px;
  color: #8a7fb8;
  animation: fx-zzz 2.4s ease-out forwards;
}
.fx-puff {
  width: 44px;
  height: 33px;
  color: #e9e3ea;
  animation: fx-puff .8s ease-out forwards;
}
@keyframes fx-heart {
  0% {
    opacity: 0;
    transform: scale(.3);
  }
  25% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift), -70px) scale(.9);
  }
}
@keyframes fx-ripple {
  from {
    opacity: 1;
    transform: scale(.3);
  }
  to {
    opacity: 0;
    transform: scale(1.3);
  }
}
@keyframes fx-burst {
  0% {
    opacity: 0;
    transform: scale(.4) translateY(10px);
  }
  35% {
    opacity: 1;
    transform: scale(1.1);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
@keyframes fx-sweat {
  0% {
    opacity: 0;
    transform: scale(.5);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(26px);
  }
}
@keyframes fx-zzz {
  0% {
    opacity: 0;
    transform: scale(.5);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(36px, -70px) scale(1.2) rotate(8deg);
  }
}
@keyframes fx-puff {
  0% {
    opacity: 0;
    transform: scale(.4);
  }
  30% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translate(20px, -24px) scale(1.25);
  }
}
@media (max-width:700px) {
  .fx-heart {
    width: calc(24px * var(--size));
    height: calc(24px * var(--size));
  }
  .fx-heart.small {
    width: calc(17px * var(--size));
    height: calc(17px * var(--size));
  }
  .fx-burst {
    width: 46px;
    height: 32px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .cat-lean {
    transition: none;
  }
  .touch-fx {
    animation-duration: .6s;
    animation-name: fx-fade;
  }
  @keyframes fx-fade {
    0%, 60% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
}

/* maker/cat/help-dialog.css */
.help-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #44303a66;
}
.help-dialog {
  display: flex;
  flex-direction: column;
  width: min(520px, 100%);
  max-height: min(640px, 100%);
  background: #fffdf8;
  border: 2px solid #e3d6c8;
  border-radius: 22px;
  box-shadow: 0 8px 0 #ead9c6;
  color: #44303a;
  padding: 20px 20px 16px;
  box-sizing: border-box;
}
.help-dialog h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
.help-qa {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.help-qa h3 {
  margin: 16px 0 6px;
  font-size: 13px;
  color: #776772;
}
.help-q {
  border: 1.5px solid #e8dfd6;
  border-radius: 14px;
  background: white;
  margin-bottom: 8px;
}
.help-q summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 40px 13px 14px;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  min-height: 20px;
}
.help-q summary::-webkit-details-marker {
  display: none;
}
.help-q summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #ec4c82;
}
.help-q[open] summary::after {
  content: "\2212";
}
.help-q summary:focus-visible,
.help-close:focus-visible {
  outline: 3px dashed #ec4c82;
  outline-offset: 2px;
}
.help-q p {
  margin: 0;
  padding: 0 14px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #5a4650;
}
.help-close {
  margin-top: 14px;
  min-height: 48px;
  border-radius: 32px;
  background: #ec4c82;
  color: white;
  border: 2px solid #ec4c82;
  box-shadow: 0 4px 0 #d73f75;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
@media (max-width:700px) {
  .help-layer {
    padding: 10px;
  }
  .help-dialog {
    padding: 16px 14px 12px;
    border-radius: 18px;
  }
  .help-dialog h2 {
    font-size: 19px;
  }
  .help-q summary {
    font-size: 14px;
  }
  .help-q p {
    font-size: 13px;
  }
}
@media (max-width:700px) {
  .companion .header-tools .help-toggle span {
    display: none;
  }
  .companion .header-tools .help-toggle {
    padding: 4px 8px;
  }
}
.help-answer-list {
  margin: 0;
  padding: 0 16px 14px 32px;
  font-size: 14px;
  line-height: 1.7;
  color: #5a4650;
}
.help-answer-list li + li {
  margin-top: 8px;
}
@media (max-width:700px) {
  .help-answer-list {
    font-size: 13px;
  }
}
.help-about .lm-help-about-image {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 14px 14px;
  border-radius: 12px;
  object-fit: cover;
}
.help-about .lm-help-about-steps,
.help-about .lm-help-about-makers {
  margin: 0;
  padding: 0 16px 14px 32px;
  font-size: 14px;
  line-height: 1.7;
  color: #5a4650;
}
.help-about .lm-help-about-steps li + li {
  margin-top: 4px;
}
.help-about .lm-help-about-makers {
  padding-left: 14px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.help-about .lm-help-about-makers a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: #d73f75;
  font-weight: 700;
  text-underline-offset: 3px;
}

/* maker/cat/eye-fine-controls.css */
.identity-body .eye-fine-controls {
  margin-top: 14px;
  border: 2px solid var(--border,#e3d6c8);
  border-radius: 16px;
  background: #fffdf8;
  overflow: hidden;
}
.identity-body .eye-fine-controls > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  box-sizing: border-box;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink,#44303a);
  background: #fff0f5;
  touch-action: manipulation;
}
.identity-body .eye-fine-controls > summary::-webkit-details-marker {
  display: none;
}
.identity-body .eye-fine-controls > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-right: 2px solid var(--pink,#ec4c82);
  border-bottom: 2px solid var(--pink,#ec4c82);
  transform: rotate(45deg);
  margin: 0 3px 4px 0;
}
.identity-body .eye-fine-controls[open] > summary {
  border-bottom: 1px solid var(--border,#e3d6c8);
}
.identity-body .eye-fine-controls[open] > summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
  margin-bottom: 0;
}
.identity-body .eye-fine-controls > summary:hover {
  background: #ffe5ee;
}
.identity-body .eye-fine-controls > summary:focus-visible {
  outline: 3px solid var(--pink,#ec4c82);
  outline-offset: -4px;
  border-radius: 12px;
}
.identity-body .eye-fine-fields {
  display: grid;
  gap: 18px;
  padding: 18px 14px 14px;
  background: transparent;
  min-height: 0;
}
.identity-body .eye-fine-fields .td-field-label-row label {
  padding: 0;
  display: block;
  font-size: 13px;
}
.identity-body .eye-fine-fields .td-range-control {
  grid-template-columns: minmax(80px, 1fr) 144px;
  gap: 12px;
}
.identity-body .eye-fine-fields .td-value-stepper {
  min-width: 0;
  box-shadow: none;
  border: 0;
}
.identity-body .eye-fine-fields .td-value-select-arrow {
  min-width: 0;
  box-shadow: none;
}
.eye-fine-fields .eye-fine-note {
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
  color: #776772;
}
.identity-body .identity-help-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 4px;
  padding: 8px 12px;
  border: 1px solid var(--border,#e3d6c8);
  border-radius: 18px;
  background: #fffdf8;
  color: #776772;
  font: inherit;
  font-size: 12px;
  box-shadow: none;
  cursor: pointer;
}
.identity-body .identity-help-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--pink,#ec4c82);
}
.identity-body .identity-help-trigger:focus-visible {
  outline: 2px solid var(--pink,#ec4c82);
  outline-offset: 2px;
}

/* maker/cat/companion.css */
.companion header {
  gap: 20px;
  padding: 0 28px;
}
.companion .brand {
  font-size: 32px;
  letter-spacing: 0;
}
.companion .brand svg {
  width: 40px;
  height: 40px;
}
.room-heading {
  font-size: 19px;
  margin-left: auto;
}
.companion .header-tools {
  display: flex;
  gap: 10px;
  margin-left: 0;
}
.companion .header-tools button {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.companion .header-tools svg {
  width: 20px;
  height: 20px;
}
.companion-workspace {
  display: flex;
  height: calc(100dvh - var(--header));
  position: relative;
}
.companion .stage {
  flex: 1;
  background-size: cover;
}
.companion .preview {
  inset: 23% 27% 23%;
}
.companion .cat-dialogue {
  right: 16%;
  width: 24%;
}
.companion .cat-nameplate {
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  white-space: nowrap;
}
.room-actions {
  position: absolute;
  bottom: 6%;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.room-actions button,
.panel-actions button {
  padding: 14px 24px;
  border-radius: 32px;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.companion .primary {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.room-actions svg {
  width: 23px;
  height: 23px;
}
.identity-panel {
  position: absolute;
  z-index: 10;
  top: calc(var(--header) + 12px);
  left: 18px;
  bottom: 18px;
  width: 440px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px #58423725;
  padding: 20px;
  animation: panel-in .2s ease-out;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-heading h1 {
  font-size: 23px;
  flex: 1;
}
.panel-heading h2 {
  margin: 0;
  font-size: 21px;
}
.panel-heading > button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 4px;
}
.identity-panel nav button,
.pose-tray nav button,
.production-panel nav button {
  height: 44px;
  font-size: 14px;
}
.identity-body {
  overflow: auto;
  flex: 1;
  padding: 12px 3px;
  min-height: 0;
}
.identity-panel .coats {
  height: 240px;
  max-height: none;
}
.identity-panel .color-controls {
  margin-top: 18px;
}
.identity-panel .swatches {
  gap: 6px;
}
.identity-panel .swatches > button,
.identity-panel .custom-color {
  width: 35px;
  height: 35px;
}
.panel-actions {
  display: flex;
  gap: 10px;
  padding-top: 12px;
}
.panel-actions button {
  flex: 1;
  font-size: 14px;
  padding: 12px;
}
.identity-panel small {
  font-size: 12px;
  text-align: center;
  margin-top: 10px;
  color: #776772;
}
.cat-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}
.cat-name input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}
.identity-section {
  margin: 10px 0 20px;
}
.identity-section h2 {
  font-size: 16px;
  margin: 0 0 10px;
}
.identity-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.identity-choices button {
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
}
.identity-choices img {
  height: 88px;
  max-width: 100%;
  object-fit: contain;
}
.companion .selected {
  border-color: var(--pink);
  background: #fff0f5;
}
.size-options {
  display: flex;
  gap: 8px;
}
.size-options button {
  flex: 1;
  padding: 10px;
  font-size: 13px;
}
.identity-color {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  font-size: 15px;
}
.identity-color input {
  width: 52px;
  height: 38px;
  padding: 0;
  border: 0;
}
.identity-body details {
  padding: 12px;
  background: #faf6f7;
  border-radius: 12px;
  font-size: 14px;
}
.identity-body details label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
}
.pose-tray {
  position: absolute;
  z-index: 8;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 28px;
  background: #fffdfbf5;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -5px 20px #58423716;
}
.pose-tray nav {
  margin-left: auto;
}
.pose-tray .companion-choices {
  display: flex;
  gap: 12px;
  overflow: auto;
  padding-bottom: 8px;
}
.companion-choices button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  font-size: 13px;
  border-radius: 16px;
}
.pose-tray .companion-choices button {
  min-width: 140px;
  height: 170px;
}
.companion-choices img {
  width: 100%;
  height: 125px;
  object-fit: contain;
}
.tray-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.tray-footer small {
  font-size: 12px;
}
.tray-footer button {
  padding: 8px 15px;
}
.production-panel {
  width: 380px;
  flex-shrink: 0;
  overflow: auto;
  padding: 24px;
}
.production-panel h1 {
  font-size: 25px;
}
.production-panel p {
  font-size: 13px;
  line-height: 1.7;
}
.production-panel nav {
  margin-bottom: 15px;
}
.production-panel .companion-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.companion.make .stage {
  background: repeating-conic-gradient(#f1f0f2 0 25%, #fff 0 50%) 50%/24px 24px;
}
.production-preview {
  position: absolute;
  inset: 7% 9% 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.production-preview .hero-cat {
  min-height: 0;
  flex: 1;
  filter: none;
}
.production-preview p,
.editor-note {
  font-size: 13px;
  color: #776772;
  text-align: center;
}
.editor-note {
  position: absolute;
  bottom: 16%;
  left: 20px;
  right: 20px;
}
.companion .status {
  bottom: 1.8%;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width:700px) {
  .companion header {
    height: 74px;
    padding: 8px 12px;
    gap: 8px;
    flex-wrap: wrap;
    align-content: center;
  }
  .companion .brand {
    font-size: 20px;
  }
  .companion .brand svg {
    width: 25px;
    height: 25px;
  }
  .room-heading {
    font-size: 12px;
  }
  .companion .header-tools {
    width: 100%;
    justify-content: flex-end;
  }
  .companion .header-tools button {
    padding: 4px 9px;
    font-size: 11px;
    border-radius: 12px;
  }
  .companion .header-tools svg {
    width: 15px;
    height: 15px;
  }
  .companion-workspace {
    height: calc(100dvh - 74px);
  }
  .companion .preview {
    inset: 23% 10% 26%;
  }
  .companion .cat-dialogue {
    width: 42%;
    right: 4%;
    top: 5%;
  }
  .companion .cat-nameplate {
    bottom: 21%;
    font-size: 11px;
    padding: 8px 12px;
  }
  .room-actions {
    left: 10px;
    right: 10px;
    gap: 7px;
    bottom: 9%;
    flex-wrap: wrap;
  }
  .room-actions button {
    padding: 11px 12px;
    font-size: 12px;
    flex: 1;
  }
  .room-actions svg {
    width: 17px;
    height: 17px;
  }
  .identity-panel {
    top: 86px;
    bottom: 8px;
    left: 8px;
    right: 8px;
    width: auto;
    padding: 16px;
  }
  .identity-panel nav button {
    font-size: 12px;
  }
  .pose-tray {
    padding: 14px 12px;
  }
  .pose-tray .panel-heading {
    flex-wrap: wrap;
    gap: 6px;
  }
  .pose-tray .panel-heading h2 {
    font-size: 17px;
  }
  .pose-tray nav {
    margin-left: 0;
    flex: 1;
  }
  .pose-tray .companion-choices button {
    min-width: 115px;
    height: 140px;
  }
  .companion-choices img {
    height: 100px;
  }
  .tray-footer small {
    max-width: 60%;
    font-size: 11px;
  }
  .companion.make .companion-workspace {
    flex-direction: column-reverse;
    overflow: auto;
  }
  .production-panel {
    width: 100%;
    height: 48%;
    padding: 15px;
    flex-shrink: 0;
  }
  .companion.make .stage {
    flex: none;
    height: 52%;
  }
  .production-panel .companion-choices {
    grid-template-columns: repeat(3, 1fr);
  }
  .production-panel .companion-choices img {
    height: 95px;
  }
  .production-preview {
    inset: 3% 12% 25%;
  }
  .production-preview p {
    display: none;
  }
  .companion.make .room-actions {
    bottom: 7%;
  }
  .editor-note {
    display: none;
  }
  .companion.make .status {
    bottom: 0;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .identity-panel {
    animation: none;
  }
}
.companion:has(.identity-panel) .preview {
  inset: 22% 9% 23% 45%;
}
.companion:has(.identity-panel) .cat-nameplate {
  left: 72%;
}
.companion:has(.identity-panel) .room-actions {
  left: 480px;
}
.companion:has(.identity-panel) .cat-dialogue {
  right: 6%;
  width: 22%;
}
@media (max-width:700px) {
  .companion:has(.identity-panel) .preview {
    inset: 23% 10% 26%;
  }
  .companion:has(.identity-panel) .cat-nameplate {
    left: 50%;
  }
  .companion:has(.identity-panel) .room-actions {
    left: 10px;
  }
  .companion:has(.identity-panel) .cat-dialogue {
    right: 4%;
    width: 42%;
  }
}
.cat-name {
  white-space: nowrap;
}
.cat-name input {
  min-width: 0;
}
.identity-mobile-preview {
  display: flex;
  justify-content: center;
  height: 110px;
  flex-shrink: 0;
  background: #faf5f7;
  border-radius: 12px;
  margin: 8px 0;
}
.identity-mobile-preview img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width:700px) {
  .companion header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 27px 30px;
    height: 74px;
    gap: 2px;
  }
  .companion .brand {
    grid-column: 1;
    grid-row: 1;
    font-size: 19px;
    white-space: nowrap;
  }
  .room-heading {
    grid-row: 1;
    grid-column: 2;
    margin: 0;
    font-size: 11px;
  }
  .companion .header-tools {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    width: 100%;
    gap: 7px;
  }
  .companion .header-tools button {
    white-space: nowrap;
  }
  .room-actions button {
    white-space: nowrap;
    padding: 11px 9px;
    gap: 4px;
    font-size: 11px;
  }
  .room-actions svg {
    flex-shrink: 0;
    width: 15px;
  }
  .identity-panel .panel-heading {
    margin-bottom: 8px;
  }
  .identity-panel .panel-heading h1 {
    font-size: 19px;
  }
  .identity-panel .cat-name {
    margin-bottom: 8px;
  }
  .identity-panel nav button {
    height: 35px;
  }
  .identity-panel .identity-body {
    padding-top: 6px;
  }
  .identity-panel small {
    font-size: 10px;
  }
}
.companion .header-tools {
  position: static;
}
.identity-swatches {
  display: flex;
  gap: 14px;
  margin: 12px 0 20px;
}
.identity-swatches button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #fff;
  outline: 1px solid #ded6db;
}
.identity-swatches button[aria-pressed=true] {
  outline: 2px solid var(--pink);
}
.room-auto {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 18px;
  padding: 8px 14px;
  font-size: 12px;
  background: #fffdfbdf;
  border-radius: 30px;
}
.companion:has(.identity-panel) .room-auto {
  display: none;
}
@media (max-width:700px) {
  .room-auto {
    left: 12px;
    top: 10px;
    padding: 6px 10px;
    font-size: 10px;
  }
}
.cat-exit {
  display: inline-flex;
}
.cat-exit .ms {
  font-family: "Material Symbols Rounded";
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
}
.cat-exit .close-btn {
  padding: 9px;
}

/* maker/cat/room-scene.css */
.companion.room .stage {
  background: #fdf5e5;
  --room-toolbar:94px;
  isolation: isolate;
}
.room-viewport {
  position: absolute;
  inset: 0 0 var(--room-toolbar);
  overflow: hidden;
  container-type: size;
}
.room-world {
  position: absolute;
  inset: 0;
  transform: translateY(calc(-1 * var(--room-lift,0px)));
  transition: transform .36s cubic-bezier(.2, .75, .2, 1);
}
.room-artboard {
  position: absolute;
  width: var(--room-art-width,100%);
  height: var(--room-art-height,100%);
  left: var(--room-art-left,0px);
  top: var(--room-art-top,0px);
}
.room-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.room-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
}
.room-cat-anchor {
  position: absolute;
  left: 50%;
  top: var(--room-ground);
  width: var(--room-cat-size,360px);
  height: var(--room-cat-size,360px);
  transform: translate(-50%, -100%);
}
.companion.room .room-cat-anchor .preview {
  inset: 0;
  width: 100%;
  height: 100%;
}
.room-cat-anchor .hero-cat {
  transform: translateY(calc(var(--cat-bottom-gap,0) * 100%));
  filter: drop-shadow(0 4px 2px #8b775618);
}
.companion.room .cat-dialogue {
  top: 3%;
  right: 13%;
  width: 25.5%;
  max-width: 450px;
}
.companion.room .cat-nameplate {
  display: grid;
  top: 80%;
  bottom: auto;
  left: 50%;
  max-width: 94%;
  width: max-content;
  min-width: 0;
  grid-template-columns: 1fr;
  justify-content: center;
  font-size: 16px;
}
.companion.room .cat-nameplate span {
  font-size: clamp(11px, .76vw, 14px);
}
.companion.room .cat-nameplate small {
  font-size: 14px;
  color: #6b5140;
}
.companion.room .room-actions {
  inset: auto 0 0;
  height: var(--room-toolbar);
  padding: 14px 20px 18px;
  background: #fffdf8;
  gap: 14px;
  align-items: center;
  z-index: 2;
}
.companion.room .room-actions button {
  padding: 13px clamp(23px, 1.6vw, 32px);
  font-size: clamp(14px, 1.1vw, 20px);
  min-height: clamp(48px, 6.7dvh, 64px);
}
.companion.room .status {
  z-index: 3;
  bottom: 2px;
  margin: 0;
  font-size: 11px;
  pointer-events: none;
}
.companion.room:has(.identity-panel) .room-cat-anchor {
  left: 70%;
}
.companion.room:has(.identity-panel) .cat-nameplate {
  left: 70%;
}
@media (max-width:700px) {
  .companion.room .stage {
    --room-toolbar:88px;
  }
  .companion.room .room-actions {
    padding: 10px 10px 22px;
    gap: 7px;
    flex-wrap: nowrap;
  }
  .companion.room .room-actions button {
    padding: 10px 9px;
    font-size: 11px;
    gap: 4px;
    min-height: 44px;
  }
  .companion.room .cat-dialogue {
    top: 12%;
    right: 18%;
    width: 42%;
    max-width: 260px;
  }
  .companion.room .cat-dialogue p {
    font-size: 13px;
    line-height: 1.45;
  }
  .companion.room .cat-nameplate {
    top: 82%;
    min-width: 0;
    font-size: 14px;
    gap: 5px 6px;
    padding: 8px 14px;
  }
  .companion.room .cat-nameplate span {
    font-size: 9px;
  }
  .companion.room .cat-nameplate small {
    font-size: 12px;
  }
  .companion.room:has(.identity-panel) .room-cat-anchor,
  .companion.room:has(.identity-panel) .cat-nameplate {
    left: 50%;
  }
}
@media (prefers-reduced-motion:reduce) {
  .room-world {
    transition: none;
  }
}
.cat-play-hint .cat-hint-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cat-play-hint .cat-hint-name svg {
  width: 20px;
  height: 20px;
  color: #ec4c82;
}

/* maker/cat/target-picker.css */
.target-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  color: #44303a;
}
.target-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #eadfd3;
  flex-shrink: 0;
}
.target-head b {
  display: block;
  font-size: 20px;
}
.target-head small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #776772;
}
.target-back {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.target-back svg {
  width: 22px;
  height: 22px;
}
.target-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px;
}
.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.target-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 10px 12px;
  border: 2px solid #e8dfd6;
  border-radius: 18px;
  background: white;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.target-card b {
  font-size: 16px;
  margin-top: 6px;
}
.target-card small {
  font-size: 12px;
  color: #776772;
}
.target-card .target-size {
  color: #a2939b;
  font-size: 11px;
}
.target-card[aria-pressed=true] {
  border-color: #ec4c82;
  background: #fff5f8;
  box-shadow: 0 0 0 3px #ec4c8233;
}
.target-card:focus-visible,
.target-decide:focus-visible {
  outline: 3px dashed #ec4c82;
  outline-offset: 3px;
}
.target-art {
  container-type: size;
  width: 100%;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.target-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100cqw, calc(100cqh * var(--r)));
  aspect-ratio: var(--r);
  background: #fffdf8;
  border: 1.5px solid #d9cdc2;
  border-radius: 6px;
  box-shadow: 0 2px 0 #e8dfd6;
  padding: 8%;
  box-sizing: border-box;
}
.target-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.target-note {
  margin: 0;
  padding: 8px 20px 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #776772;
  flex-shrink: 0;
  background: #fffdf8;
}
.target-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #eadfd3;
  background: #fffdf8;
  flex-shrink: 0;
}
.target-actions button {
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}
.target-actions .target-decide {
  background: #ec4c82;
  color: white;
  border: 2px solid #ec4c82;
  box-shadow: 0 4px 0 #d73f75;
  min-width: 200px;
}
.target-actions .target-decide:disabled {
  opacity: .75;
  cursor: progress;
}
.target-actions svg {
  width: 20px;
  height: 20px;
}
@media (max-width:700px) {
  .target-note {
    padding: 6px 14px 0;
    font-size: 11px;
  }
  .target-head {
    padding: 10px 12px;
    gap: 10px;
  }
  .target-head b {
    font-size: 17px;
  }
  .target-head small {
    font-size: 11px;
  }
  .target-body {
    padding: 12px;
  }
  .target-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .target-art {
    height: 104px;
  }
  .target-card b {
    font-size: 14px;
  }
  .target-actions {
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .target-actions button {
    padding: 10px 14px;
    font-size: 15px;
    flex: 1;
  }
  .target-actions .target-decide {
    flex: 2;
    min-width: 0;
  }
}
@media (prefers-reduced-motion:no-preference) {
  .target-card {
    transition: border-color .15s, box-shadow .15s;
  }
}

/* maker/cat/make-screen.css */
.companion.make .stage {
  display: flex;
  flex-direction: column;
  background: #fdf5e5;
  padding: 18px 24px 0;
  gap: 14px;
}
.companion.make .production-preview {
  position: static;
  inset: auto;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 760px;
  align-self: center;
  display: block;
}
.production-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 18px 34px;
  box-sizing: border-box;
  border: 2px solid #e3d6c8;
  border-radius: 22px;
  background: repeating-conic-gradient(#f1f0f2 0 25%, #fff 0 50%) 50%/24px 24px;
  box-shadow: 0 4px 0 #ead9c6;
  overflow: hidden;
}
.production-frame .hero-cat {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: none;
}
.production-frame .frame-note {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  color: #776772;
  pointer-events: none;
}
.companion.make .room-actions {
  position: static;
  flex: none;
  width: 100%;
  max-width: 760px;
  align-self: center;
  padding: 0 0 18px;
  gap: 12px;
  flex-wrap: nowrap;
}
.companion.make .room-actions button {
  flex: 1;
  min-height: 54px;
  padding: 12px 18px;
  font-size: 16px;
  white-space: nowrap;
}
.companion.make .room-actions .primary {
  flex: 1.2;
}
.companion.make .status {
  position: static;
  min-height: 0;
  margin: 0;
  padding: 0 12px 6px;
  font-size: 12px;
  text-align: center;
}
.companion.make .status:empty {
  display: none;
}
@media (max-width:700px) {
  .companion.make .stage {
    padding: 10px 12px 0;
    gap: 10px;
  }
  .production-frame {
    padding: 10px 10px 28px;
    border-radius: 16px;
  }
  .companion.make .room-actions {
    padding-bottom: 12px;
    gap: 8px;
  }
  .companion.make .room-actions button {
    min-height: 48px;
    padding: 10px 8px;
    font-size: 13px;
    gap: 5px;
  }
}
.companion.make .production-panel > nav {
  position: sticky;
  top: -24px;
  z-index: 3;
  padding: 8px 0;
  background: #fffdfb;
  box-shadow: 0 6px 0 #fffdfb;
}
@media (max-width:700px) {
  .companion.make .production-panel > nav {
    top: -15px;
  }
}

/* maker/cat/styles.css */
:root {
  font-family: "M PLUS Rounded 1c", sans-serif;
  color: #44383e;
  background: #fffdf9;
  font-synthesis: none;
  --pink:#ec4c82;
  --border:#e8e5e5;
  --header:clamp(72px,10.2dvh,108px);
}
* {
  box-sizing: border-box;
}
html,
body,
#root {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 18px;
  transition: background .15s, transform .15s;
}
button:hover {
  background: #fff0f5;
}
button:active {
  transform: translateY(2px);
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #873254;
  outline-offset: 3px;
}
button:disabled {
  opacity: .4;
  cursor: default;
}
.maker {
  width: 100%;
  height: 100dvh;
  max-width: 1800px;
  margin: auto;
  overflow: hidden;
}
header {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 36px;
  border-bottom: 2px solid #eee7e7;
  background: #fffdfb;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(32px, 3.7vw, 54px);
  font-weight: 900;
  letter-spacing: 2px;
  color: #36231d;
  white-space: nowrap;
}
.brand svg {
  width: 64px;
  height: 64px;
  color: var(--pink);
  flex-shrink: 0;
}
header p {
  font-size: clamp(16px, 1.55vw, 23px);
  font-weight: 500;
}
.workspace {
  display: grid;
  grid-template-columns: 35.8% 64.2%;
  height: calc(100dvh - var(--header));
  min-height: 0;
}
aside {
  background: #fffdfb;
  padding: clamp(16px, 2.3dvh, 25px) 28px;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  height: clamp(48px, 6.2dvh, 66px);
  font-size: clamp(14px, 1.48vw, 22px);
  font-weight: 700;
  white-space: nowrap;
}
nav svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
nav .active {
  background: var(--pink);
  color: white;
  border-color: #edbfd0;
  box-shadow: 0 3px 0 #d84678;
}
.options {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  gap: clamp(10px, 1.7dvh, 18px);
  padding-top: clamp(16px, 3dvh, 32px);
}
h1 {
  font-size: clamp(26px, 2.25vw, 34px);
  margin: 0;
  font-weight: 900;
  line-height: 1.25;
}
.lead {
  margin: 4px 0 0;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 500;
  line-height: 1.4;
}
.identity {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #ffedf3;
  border-radius: 16px;
  padding: clamp(10px, 1.4dvh, 15px) 12px;
  font-size: clamp(11px, 1.04vw, 15px);
  margin: 0;
  flex-shrink: 0;
}
.identity svg {
  color: var(--pink);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.choices {
  display: grid;
  gap: 12px;
  min-height: 0;
}
.coats {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  flex: 1;
  max-height: clamp(226px, 32dvh, 340px);
}
.choices button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px 5px;
  min-width: 0;
  min-height: 0;
  border-radius: 16px;
}
.choices img {
  width: 100%;
  height: calc(100% - 28px);
  min-height: 0;
  object-fit: contain;
  margin-bottom: 5px;
}
.choices span {
  font-size: clamp(12px, 1.14vw, 17px);
  line-height: 1.25;
  white-space: nowrap;
  font-weight: 500;
}
.choices .selected {
  border: 3px solid var(--pink);
  background: #fff4f7;
}
.selection-mark {
  position: absolute;
  right: -7px;
  top: -7px;
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  box-shadow: 0 0 0 2px white;
}
.color-controls {
  flex-shrink: 0;
  border-top: 2px solid var(--border);
  padding-top: clamp(12px, 2dvh, 22px);
  margin-top: clamp(4px, 1.3dvh, 14px);
}
.color-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.color-title h2 {
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 500;
  margin: 0;
}
.color-title > span {
  font-size: 12px;
  color: #88727d;
}
.color-slots {
  display: flex;
  gap: 7px;
  margin: 12px 0 14px;
}
.color-slots button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  padding: 6px 8px;
  font-size: 12px;
  min-width: 0;
  flex: 1;
}
.color-slots .slot-active {
  border-color: var(--pink);
  background: #fff0f5;
}
.slot-color {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid #ddd;
  flex-shrink: 0;
}
.swatches {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.swatches > button,
.custom-color {
  width: clamp(30px, 3.45vw, 51px);
  height: clamp(30px, 3.45vw, 51px);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 0 2px var(--border);
  flex-shrink: 0;
}
.swatches .chosen {
  box-shadow: 0 0 0 3px var(--pink);
}
.custom-color {
  overflow: hidden;
  display: block;
  border-radius: 14px;
  cursor: pointer;
}
.custom-color input {
  width: 160%;
  height: 160%;
  padding: 0;
  border: 0;
  transform: translate(-18%, -18%);
  cursor: pointer;
}
.color-controls p {
  font-size: 12px;
  color: #80747b;
  line-height: 1.5;
  margin: 15px 0 0;
}
.stage {
  position: relative;
  background: #d7f0e5 url(/tools/create-renewal/maker/cat/assets/room.png) center/100% 100% no-repeat;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.speech {
  position: absolute;
  top: 4%;
  right: 7%;
  width: 33%;
  height: 24%;
  object-fit: contain;
}
.preview {
  position: absolute;
  inset: 24% 17% 24%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.hero-cat {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 0 #ad896c12);
}
.actions {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 6%;
  display: flex;
  gap: 14px;
  align-items: center;
}
.actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: clamp(54px, 7.2dvh, 78px);
  padding: 10px 22px;
  border-radius: 42px;
  white-space: nowrap;
  font-size: clamp(14px, 1.35vw, 20px);
  font-weight: 700;
  box-shadow: 0 4px 0 #ded6cf;
}
.actions svg {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
}
.actions .primary {
  background: var(--pink);
  color: white;
  border-color: var(--pink);
  box-shadow: 0 6px 0 #d73f75;
  flex: 1;
  font-size: clamp(17px, 1.75vw, 26px);
}
.actions .primary:hover {
  background: #db3d75;
}
.status {
  position: absolute;
  bottom: 1.6%;
  left: 20px;
  right: 20px;
  text-align: center;
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.pose-list {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  flex: 1;
}
.pose-list span {
  font-size: 13px;
}
.expression-list {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  max-height: 480px;
  flex: 1;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-shrink: 0;
  padding: 2px;
}
.pagination button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.pagination svg {
  width: 22px;
  height: 22px;
}
.pagination span {
  font-size: 14px;
}
.loading {
  font-size: 12px;
}
.back-note {
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width:1200px) {
  header {
    padding: 0 24px;
    gap: 20px;
  }
  .brand svg {
    width: 46px;
    height: 46px;
  }
  aside {
    padding-left: 18px;
    padding-right: 18px;
  }
  nav svg {
    width: 22px;
    height: 22px;
  }
  .choices {
    gap: 8px;
  }
  .selection-mark {
    width: 25px;
    height: 25px;
    padding: 4px;
    right: -4px;
    top: -4px;
  }
  .swatches {
    gap: 7px;
  }
  .color-slots button {
    font-size: 10px;
    padding: 5px 4px;
    gap: 4px;
  }
  .actions {
    left: 16px;
    right: 16px;
    gap: 8px;
  }
  .actions button {
    padding: 10px 13px;
    font-size: 14px;
    gap: 7px;
  }
  .actions .primary {
    font-size: 17px;
  }
  .actions svg {
    width: 23px;
    height: 23px;
  }
}
@media (max-width:900px) and (min-width:701px) {
  .workspace {
    grid-template-columns: 43% 57%;
  }
  .actions {
    flex-wrap: wrap;
    bottom: 4%;
  }
  .actions .primary {
    order: -1;
    flex-basis: 100%;
  }
  .actions .undo {
    flex: 1;
  }
  .actions button:last-child {
    flex: 2;
  }
  .speech {
    width: 42%;
  }
  .preview {
    inset: 25% 10% 28%;
  }
  .identity {
    font-size: 10px;
    gap: 5px;
  }
  .identity svg {
    width: 18px;
    height: 18px;
  }
}
@media (max-width:700px) {
  :root {
    --header:66px;
  }
  header {
    padding: 6px 14px;
    display: block;
  }
  .brand {
    font-size: 26px;
    gap: 8px;
    letter-spacing: 1px;
  }
  .brand svg {
    width: 31px;
    height: 31px;
  }
  header p {
    font-size: 11px;
    margin: 0 0 0 40px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .stage {
    order: -1;
    flex: 0 0 31%;
    width: 100%;
  }
  .speech {
    top: 3%;
    right: 3%;
    width: 28%;
    height: 40%;
  }
  .preview {
    inset: 5% 24% 27%;
  }
  .actions {
    bottom: 5%;
    left: 10px;
    right: 10px;
    gap: 6px;
  }
  .actions button {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 11px;
    gap: 4px;
  }
  .actions .primary {
    font-size: 11px;
  }
  .actions .undo {
    font-size: 0;
    padding: 6px 8px;
  }
  .actions svg {
    width: 18px;
    height: 18px;
  }
  .status {
    font-size: 9px;
    bottom: 0;
    left: 6px;
    right: 6px;
    line-height: 1.1;
  }
  aside {
    flex: 1;
    min-height: 0;
    padding: 12px 14px;
  }
  nav {
    gap: 7px;
  }
  nav button {
    height: 40px;
    font-size: 14px;
    gap: 5px;
    border-radius: 13px;
  }
  nav svg {
    width: 20px;
    height: 20px;
  }
  .options {
    padding-top: 12px;
    gap: 9px;
  }
  h1 {
    font-size: 22px;
    line-height: 1.15;
  }
  .lead {
    font-size: 11px;
    margin: 2px 0 0;
  }
  .identity {
    font-size: 10px;
    padding: 7px 8px;
    gap: 6px;
    border-radius: 10px;
  }
  .identity svg {
    width: 17px;
    height: 17px;
  }
  .coats {
    max-height: none;
    flex: 1;
    gap: 7px;
  }
  .choices button {
    padding: 5px 3px;
    border-radius: 11px;
  }
  .choices img {
    height: calc(100% - 21px);
    margin-bottom: 2px;
  }
  .choices span {
    font-size: 11px;
  }
  .selection-mark {
    width: 21px;
    height: 21px;
    padding: 3px;
    right: -3px;
    top: -3px;
  }
  .color-controls {
    margin-top: 2px;
    padding-top: 9px;
  }
  .color-title h2 {
    font-size: 14px;
  }
  .color-title > span {
    font-size: 10px;
  }
  .color-slots {
    margin: 7px 0 9px;
    gap: 6px;
  }
  .color-slots button {
    font-size: 10px;
    padding: 4px 5px;
  }
  .slot-color {
    width: 14px;
    height: 14px;
  }
  .swatches {
    gap: 8px;
  }
  .swatches > button,
  .custom-color {
    width: 31px;
    height: 31px;
    border-width: 3px;
  }
  .color-controls p {
    font-size: 10px;
    margin: 8px 0 0;
  }
  .pose-list {
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .expression-list {
    max-height: none;
    gap: 9px;
  }
  .pagination {
    gap: 20px;
    padding: 1px;
  }
  .pagination button {
    width: 34px;
    height: 34px;
  }
}
@media (max-height:720px) and (min-width:701px) {
  .options {
    gap: 8px;
    padding-top: 12px;
  }
  .intro .lead {
    font-size: 12px;
  }
  .identity {
    padding: 7px 8px;
  }
  .coats {
    max-height: none;
  }
  .color-controls {
    margin-top: 0;
    padding-top: 8px;
  }
  .color-slots {
    margin: 7px 0 9px;
  }
  .color-controls p {
    margin-top: 9px;
    font-size: 11px;
  }
  .swatches > button,
  .custom-color {
    width: 35px;
    height: 35px;
  }
}
@media (max-height:740px) and (max-width:700px) {
  .stage {
    flex-basis: 28%;
  }
  aside {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .options {
    gap: 6px;
    padding-top: 8px;
  }
  .intro .lead {
    display: none;
  }
  .identity {
    padding: 5px 7px;
  }
  .color-controls p {
    margin-top: 5px;
  }
  .color-title > span {
    display: none;
  }
}
@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* maker/cat/feedback.css */
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.motto {
  width: clamp(150px, calc(var(--header) * 2.25), 220px);
  height: calc(var(--header) - 16px);
  max-height: 88px;
  object-fit: contain;
}
.sound-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 700;
}
.sound-toggle svg {
  width: 25px;
  height: 25px;
}
.sound-toggle[aria-pressed=true] {
  color: #b52257;
  border-color: #ec4c82;
  background: #ffedf3;
}
@media (max-width:1200px) {
  .motto {
    width: 140px;
    height: 65px;
  }
  .header-tools {
    gap: 8px;
  }
  header p {
    flex: 1;
    min-width: 0;
  }
}
@media (max-width:1000px) {
  .motto {
    display: none;
  }
}
@media (max-width:700px) {
  header {
    position: relative;
    padding-right: 66px;
  }
  .header-tools {
    position: absolute;
    right: 12px;
    top: 10px;
  }
  .sound-toggle {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 9px;
    gap: 0;
  }
  .sound-toggle svg {
    width: 22px;
    height: 22px;
  }
}
@media (hover:hover) and (pointer:fine) {
  .choices button:hover {
    transform: translateY(-2px);
  }
}

/* maker/cat/game-scene.css */
nav button {
  font-size: clamp(14px, 1.28vw, 20px);
  gap: 7px;
}
nav button > svg {
  display: none;
}
.step-token {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f7e9ef;
  color: #a8667e;
  font-size: 13px;
  font-weight: 900;
}
nav .active .step-token {
  background: white;
  color: #dd3671;
}
.step-token.visited {
  background: #e0f1e6;
  color: #42846a;
}
.step-token svg {
  width: 16px;
  height: 16px;
}
.cat-dialogue {
  position: absolute;
  top: 3%;
  right: 7%;
  width: min(31%, calc((100dvh - var(--header)) * .32));
  aspect-ratio: 1.59;
  container-type: inline-size;
  pointer-events: none;
}
.cat-dialogue > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cat-dialogue p {
  position: absolute;
  inset: 19% 22% 25% 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: pre-line;
  line-height: 1.45;
  font-size: clamp(14px, 7.5cqw, 23px);
  font-weight: 700;
  color: #44303a;
  margin: 0;
  animation: dialogue-in .18s ease-out;
}
.pet-cat {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none !important;
  border-radius: 35%;
  box-shadow: none;
  cursor: pointer;
  min-height: 0;
}
.pet-cat:active {
  transform: none;
}
.pet-cat:focus-visible {
  outline: 3px dashed #ec4c82;
  outline-offset: 4px;
}
.cat-nameplate {
  position: absolute;
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 20px auto auto;
  align-items: center;
  gap: 4px 8px;
  border: 1px solid #ebd4bc;
  border-radius: 24px;
  background: #fffdf8e8;
  padding: 8px 17px;
  max-width: 94%;
  white-space: nowrap;
  font-size: 13px;
  box-shadow: 0 3px 0 #d7b99a24;
}
.cat-nameplate > svg {
  color: #ec4c82;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.cat-nameplate span {
  color: #846879;
  font-size: 11px;
}
.cat-nameplate small {
  grid-column: 1/-1;
  font-size: 10px;
  text-align: center;
  color: #8f745c;
}
.completion {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.completion-badge {
  position: absolute;
  left: 50%;
  bottom: 17%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffdf8;
  border: 2px solid #ef84ab;
  color: #ac2e61;
  border-radius: 26px;
  padding: 10px 22px;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 5px 0 #eec6d2;
  animation: badge-in .3s cubic-bezier(.22, 1, .36, 1);
}
.completion-badge svg {
  width: 24px;
  height: 24px;
}
.stage:has(.completion) .cat-nameplate {
  visibility: hidden;
}
.confetti {
  position: absolute;
  inset: 0;
}
.confetti i {
  position: absolute;
  color: #ef76a3;
  width: 23px;
  height: 23px;
  opacity: 0;
  animation: confetti-float .9s ease-out both;
}
.confetti i:nth-child(3n) {
  color: #91cbb0;
}
.confetti i:nth-child(3n+1) {
  color: #e8b36c;
}
.confetti svg {
  width: 100%;
  height: 100%;
}
@keyframes dialogue-in {
  from {
    opacity: .6;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes badge-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
@keyframes confetti-float {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(.7) rotate(-15deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-45px) scale(1.1) rotate(30deg);
  }
}
@media (max-width:1200px) {
  .cat-nameplate {
    padding: 6px 12px;
    gap: 6px;
    font-size: 11px;
  }
  .cat-nameplate span {
    font-size: 10px;
  }
  .completion-badge {
    font-size: 15px;
    padding: 8px 18px;
  }
}
@media (max-width:900px) and (min-width:701px) {
  .cat-nameplate {
    display: none;
  }
  .cat-dialogue {
    width: 42%;
  }
  .cat-dialogue p {
    font-size: 16px;
  }
  .completion-badge {
    bottom: 22%;
    font-size: 13px;
  }
}
@media (max-width:700px) {
  .step-token {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  .step-token svg {
    width: 12px;
    height: 12px;
  }
  nav button {
    gap: 5px;
    font-size: 14px;
    padding: 2px 5px;
  }
  .cat-dialogue {
    top: 3%;
    right: 3%;
    width: 29%;
  }
  .cat-dialogue p {
    font-size: 10px;
    line-height: 1.3;
    inset: 18% 22% 26% 12%;
  }
  .cat-nameplate,
  .completion-badge {
    display: none;
  }
  .preview {
    inset: 5% 24% 34%;
  }
  .actions {
    bottom: 9%;
  }
  .status {
    bottom: 1%;
    line-height: 1.1;
  }
  .confetti i {
    width: 14px;
    height: 14px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .confetti {
    display: none;
  }
  .cat-dialogue p,
  .completion-badge {
    animation: none;
  }
}
.choices .loading {
  font-size: 10px;
  white-space: normal;
  color: #a77e8d;
}
@media (min-width:701px) and (max-width:1200px) {
  nav button {
    font-size: clamp(11px, 1.25vw, 14px);
    gap: 4px;
    padding: 2px;
  }
  .step-token {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  .step-token svg {
    width: 11px;
    height: 11px;
  }
}
@media (min-width:701px) and (max-width:900px) {
  .choices span {
    font-size: 11px;
  }
}
