.kupo-companion {
  width: min(440px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(14px, 4vw, 24px);
  border: 1px solid #dcc78a;
  border-radius: 24px;
  color: #172126;
  background: #fffdf4;
  box-shadow: 0 20px 75px #13212955;
}
.kupo-companion::backdrop { background: #101c22a6; }
.kupo-companion header { display: flex; align-items: center; justify-content: space-between; }
.kupo-companion header small { color: #70591c; font-weight: 800; letter-spacing: .09em; }
.kupo-companion h2 { margin: 2px 0 0; font: 800 30px Outfit, sans-serif; }
.kupo-companion header button {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #f1e8ca; color: inherit; font-size: 25px;
}
.kupo-companion-stage {
  display: grid; place-items: center; margin: 14px 0;
  min-height: 100px; border-radius: 18px;
  background: radial-gradient(ellipse at center, #fff9db, #f2e0a9);
}
.kupo-companion-stage .kupo-equipped-art {
  display: block; position: relative; width: 90px; height: 90px;
  filter: drop-shadow(0 8px 6px #56431d38);
}
.coupon-pet, .coupon-pet * {
  animation: none !important;
  transition: none !important;
}
.kupo-companion[data-mood="tired"] .kupo-companion-stage { background: #e8e9ef; }
.kupo-dance-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-bottom: 10px; }
.kupo-dance-actions button { min-height: 44px; min-width: 0; padding: 4px; font-size: 12px; color: #493516; background: #fff5db; border-color: #dec387; }
.kupo-dance-actions button:hover { background: #ffebbb; }
.kupo-panel-trail { padding: 12px; border: 1px solid #e6d6ac; border-radius: 12px; background: #fff8e7; }
.kupo-panel-trail p { margin: 4px 0 8px; }
.kupo-panel-trail progress { display: block; width: 100%; height: 6px; margin: 0 0 10px; accent-color: #a8751d; }
.kupo-panel-trail button { min-height: 40px; }
.kupo-companion-feedback { margin: 8px 0; color: #4e5d55; font-size: 14px; }
.kupo-companion-feedback:empty { display: none; }
.kupo-companion-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.kupo-companion-actions button { flex: 1; min-height: 44px; padding: 8px 10px; }
.kupo-dock-toggle:has(svg) {
  right: 8px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.kupo-dock-toggle:has(svg):hover { padding: 4px; background: transparent; }
.kupo-dock-toggle svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 4px #13212955); }
.kupo-home-label {
  position: absolute;
  inset-inline-end: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  width: max-content;
  max-width: calc(100vw - 86px);
  padding: 5px 9px;
  border: 1px solid #dcb96c;
  border-radius: 8px;
  background: #fff4d3;
  color: #513817;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  pointer-events: none;
  visibility: hidden;
}
.kupo-home-label::after {
  content: '';
  position: absolute;
  inset-inline-start: calc(100% - 4px);
  top: 50%;
  width: 7px;
  height: 7px;
  background: inherit;
  border: solid #dcb96c;
  border-width: 1px 1px 0 0;
  transform: translateY(-50%) rotate(45deg);
}
.kupo-dock-toggle.is-locked-feedback .kupo-home-label { visibility: visible; }
.kupo-home-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (prefers-reduced-motion: no-preference) {
  .kupo-dock-toggle.is-locked-feedback svg { animation: kupo-house-shake 360ms ease-in-out; }
}
@keyframes kupo-house-shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-8deg); }
  45% { transform: rotate(7deg); }
  70% { transform: rotate(-4deg); }
  85% { transform: rotate(2deg); }
}
.kupo-name-form { margin-bottom: 14px; padding: 10px; border: 1px solid #dcc78a; border-radius: 12px; }
.kupo-name-form label, .kupo-name-form small { display: block; margin-bottom: 4px; }
.kupo-name-form label { font-weight: 700; }
.kupo-name-form div { display: flex; flex-wrap: wrap; gap: 8px; }
.kupo-name-form input { flex: 1; min-width: 100px; padding: 8px; border: 1px solid #b9a875; border-radius: 8px; }
.coupon-pet .kupo-head-name {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  padding: 3px 8px;
  border-radius: 12px;
  background: #fff8df;
  color: #4b3615;
  border: 1px solid #dcc78a;
  font-size: 12px;
  font-weight: 800;
}
.coupon-pet-controls .kupo-companion-shortcut {
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid #dcc78a;
  border-radius: 8px;
  background: #fff8df;
  color: #4b3615;
  font-size: 11px;
  font-weight: 800;
}
.coupon-pet-controls .kupo-companion-shortcut:hover { background: #ffe59a; }
[data-customer-wardrobe] { scroll-margin-top: 90px; }
.kupo-wardrobe-popup {
  width: min(960px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(10px, 3vw, 24px);
  border: 1px solid #dcc78a;
  border-radius: 22px;
  background: #fffdf4;
  color: #172126;
}
.kupo-wardrobe-popup::backdrop { background: #101c22a6; }
.kupo-wardrobe-popup > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kupo-wardrobe-popup > header h2 { margin: 0; }
.kupo-wardrobe-popup > header button { min-width: 44px; min-height: 44px; padding: 4px; font-size: 22px; }
