/* Piyoko's small companion. Kept separate from the shared Creator styles. */
.cr-piyoko .cr-mascot {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--cr-edge);
  border-radius: 22px;
  background: linear-gradient(145deg, #ead7e6, var(--cr-surface));
  box-shadow: 0 14px 36px #63344d09;
  scroll-margin-top: 16px;
}
.cr-mascot-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cr-mascot-heading .mm-eyebrow {
  margin: 0 0 5px;
  font-size: 9px;
  color: var(--cr-deep);
}
.cr-mascot-heading h3 {
  margin: 0;
  color: var(--cr-ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .03em;
}
.cr-mascot-flower {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #bd8daf55;
  border-radius: 50%;
  color: var(--cr-deep);
  font-size: 23px;
  line-height: 1;
  background: #f4e6ef70;
}
.cr-mascot-intro {
  margin: 12px 0 18px;
  color: var(--cr-copy);
  font-size: 12px;
  line-height: 1.85;
}
.cr-mascot-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #c79dbb60;
  border-radius: 14px;
  background: #f9d6fc;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.cr-mascot-stage > img,
.cr-mascot-stage > video,
.cr-mascot-stage > canvas[data-mascot-hold] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}
.cr-mascot-stage > img { z-index: 0; }
.cr-mascot-stage > video { z-index: 1; opacity: 0; }
.cr-mascot-stage > canvas[data-mascot-hold] { z-index: 2; opacity: 0; }
.cr-mascot.is-video-ready .cr-mascot-stage > video,
.cr-mascot.is-holding-frame .cr-mascot-stage > video { opacity: 1; }
.cr-mascot.is-holding-frame .cr-mascot-stage > canvas[data-mascot-hold] { opacity: 1; }
.cr-mascot-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  min-height: 50px;
  padding-block: 5px;
}
.cr-mascot-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: var(--cr-muted);
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.cr-mascot-status::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cr-accent);
}
.cr-mascot.has-error .cr-mascot-status { color: #854254; }
.cr-mascot-toggle {
  flex: none;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--cr-deep);
  font-size: 11px;
  line-height: 1.5;
}
.cr-mascot-toggle:hover {
  border-color: var(--cr-edge);
  background: #f5e9f180;
}
.cr-mascot-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cr-mascot-options > button {
  flex: 1 1 68px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #b88aa8;
  border-radius: 100px;
  background: #f2e6ee;
  color: var(--cr-deep);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.cr-mascot-options > button:hover:not(:disabled) {
  border-color: var(--cr-deep);
  background: #e7c7dd;
}
.cr-mascot-options > button[aria-pressed="true"] {
  border-color: var(--cr-deep);
  background: var(--cr-deep);
  color: #fff;
  font-weight: 600;
}
.cr-mascot-options > button:disabled { cursor: default; }
.cr-mascot-options > button:focus-visible,
.cr-mascot-toggle:focus-visible {
  outline: 3px solid var(--cr-deep);
  outline-offset: 3px;
}
.cr-mascot-noscript {
  margin: 14px 0 0;
  color: var(--cr-copy);
  font-size: 11px;
  line-height: 1.8;
}
@media (max-width: 850px) {
  .cr-piyoko .cr-mascot { max-width: 600px; }
}
@media (max-width: 600px) {
  .cr-piyoko .cr-mascot {
    margin-top: 28px;
    padding: 19px;
    border-radius: 18px;
  }
  .cr-mascot-heading h3 { font-size: 17px; }
  .cr-mascot-intro { margin-bottom: 15px; }
  .cr-mascot-stage { border-radius: 11px; }
  .cr-mascot-options { gap: 7px; }
  .cr-mascot-options > button { flex-basis: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-mascot-options > button { transition: none; }
}
