/* Compact controls that extend the original dynamic-effects card language. */
.lunarveil-feature-slot {
  width: 100%;
  max-width: 236px;
  box-sizing: border-box;
  margin: 6px auto 8px;
  overflow: hidden;
}

.lunarveil-feature-toolbar {
  display: grid;
  gap: 6px;
  width: 100%;
  max-height: 122px;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--color-default);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.2;
}

.lunarveil-feature-toolbar [data-lunarveil-dynamic-slot] {
  min-height: 0;
  max-height: 52px;
  overflow: visible;
}

.lunarveil-feature-toolbar [data-lunarveil-snowfluff-slot] {
  display: block;
}

.lunarveil-feature-toolbar [data-lunarveil-dynamic-slot] .lunarveil-dynamic-effects-control {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 50px;
  margin: 0;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid var(--red-4);
  border-radius: 10px;
  background: var(--red-6);
}

.lunarveil-feature-toolbar [data-lunarveil-dynamic-slot] .lunarveil-dynamic-effects-label {
  min-width: 0;
  gap: 0;
  font-size: 12px;
  line-height: 1.1;
}

.lunarveil-feature-toolbar [data-lunarveil-dynamic-slot] .lunarveil-dynamic-effects-label small {
  overflow: hidden;
  color: var(--grey-7);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lunarveil-feature-toolbar [data-lunarveil-dynamic-slot] .lunarveil-dynamic-effects-switch {
  width: 36px;
  height: 21px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--grey-4);
}

.lunarveil-feature-toolbar [data-lunarveil-dynamic-slot] .lunarveil-dynamic-effects-switch::after {
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
}

.lunarveil-feature-toolbar [data-lunarveil-dynamic-slot] .lunarveil-dynamic-effects-switch[aria-checked="true"]::after {
  transform: translateX(15px);
}

.lunarveil-feature-toolbar [data-lunarveil-snowfluff-summon],
.lunarveil-feature-toolbar [data-snowfluff-clear] {
  width: 100%;
  min-height: 34px;
  padding: 5px 9px;
  font-size: 12px;
}

.lunarveil-feature-toolbar [data-snowfluff-clear][hidden] {
  display: none !important;
}

.lunarveil-feature-toolbar button,
.lunarveil-feature-toolbar a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 29px;
  box-sizing: border-box;
  padding: 5px 9px;
  overflow: hidden;
  border: 1px solid var(--red-4);
  border-radius: 8px;
  background: rgba(255, 243, 244, .94);
  color: var(--red-1);
  font: inherit;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lunarveil-feature-toolbar button {
  cursor: pointer;
}

.lunarveil-feature-toolbar button:hover,
.lunarveil-feature-toolbar a:hover {
  border-color: var(--red-2);
  background: var(--red-5);
  color: var(--red-0);
}

.lunarveil-feature-toolbar button:focus-visible,
.lunarveil-feature-toolbar a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lunarveil-feature-toolbar [hidden] {
  display: none !important;
}

@media (max-width: 959px) {
  #mobile-nav .lunarveil-feature-slot,
  #sidebar .lunarveil-feature-slot {
    max-width: 236px;
    margin: 5px auto 7px;
  }

  .lunarveil-feature-toolbar {
    max-height: 126px;
    padding: 5px;
  }
}

@media (max-width: 390px) {
  .lunarveil-feature-toolbar {
    gap: 3px;
    max-height: 118px;
    padding: 4px;
  }

  .lunarveil-feature-toolbar [data-lunarveil-snowfluff-summon],
  .lunarveil-feature-toolbar [data-snowfluff-clear] {
    min-height: 20px;
    padding: 2px 4px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lunarveil-feature-toolbar,
  .lunarveil-feature-toolbar button,
  .lunarveil-feature-toolbar a {
    transition: none !important;
    animation: none !important;
  }
}

.lunarveil-snowfluff-layer {
  position: fixed;
  z-index: 40;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  user-select: none;
}

[data-snowfluff-pet] {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 41;
  display: block;
  width: clamp(56px, 6vw, 82px);
  height: auto;
  pointer-events: auto !important;
  cursor: grab;
  user-select: none;
  will-change: transform, opacity;
  opacity: .98;
  filter: drop-shadow(0 8px 10px rgba(91, 70, 125, .23));
  transition: transform 180ms ease-out, opacity 160ms ease, filter 180ms ease;
}

[data-snowfluff-pet][data-snowfluff-held="true"] {
  cursor: grabbing;
  filter: drop-shadow(0 12px 15px rgba(255, 92, 128, .32));
  opacity: 1;
}

/* Original-style flight uses a deliberate four-second glide between poses. */
[data-snowfluff-pet][data-snowfluff-moving="true"] {
  transition: transform 4s cubic-bezier(.22, .72, .24, 1), opacity 160ms ease, filter 180ms ease;
}

[data-snowfluff-pet][data-snowfluff-state="jump"] {
  filter: drop-shadow(0 14px 15px rgba(255, 144, 176, .32));
}

@media (prefers-reduced-motion: reduce) {
  [data-snowfluff-pet] {
    transition: none !important;
    opacity: .92;
    transform: translate3d(72vw, 68vh, 0) rotate(var(--snowfluff-rotation, 0deg)) scale(.88);
  }
}
