/* Scoped to the embedded card; geometry follows the shared card. */
.empatheme-card-embed, .empatheme-card-embed *, .empatheme-card-embed *::before, .empatheme-card-embed *::after { box-sizing: border-box; }
.empatheme-card-embed .seed-text-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.empatheme-card-embed {
  width: min(100%, 346px);
  min-height: 545px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 20px 42px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.empatheme-card-embed .card-image-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 306 / 228;
  background: #edede0;
}

.empatheme-card-embed .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.empatheme-card-embed .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;
}

.empatheme-card-embed .rhythm-mirror-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(100%, 286px);
  padding: 5px 0 0;
}

.empatheme-card-embed .rhythm-mirror-button {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s, transform 0.15s;
}

.empatheme-card-embed .seed-mascot {
  position: relative;
  top: 10px;
  left: -6px;
  width: 36px;
  height: 32px;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.empatheme-card-embed .rhythm-mirror-button:hover {
  opacity: 0.82;
}

.empatheme-card-embed .rhythm-mirror-button[data-playing="true"] {
  transform: translateY(-1px);
}

.empatheme-card-embed .rhythm-mirror {
  position: relative;
  top: 10px;
  left: -1px;
  width: 100%;
  height: 22px;
  display: block;
}

.empatheme-card-embed .rhythm-mirror--multi {
  min-height: 46px;
}

.empatheme-card-embed .rhythm-mirror-segment {
  transition: opacity 120ms ease-out;
}

.empatheme-card-embed .rhythm-mirror-prompt {
  position: absolute;
  top: -40px;
  left: 28px;
  z-index: 1;
  display: inline-block;
  padding: 10px 25px;
  border-radius: 6px;
  background: rgba(72, 89, 245, 0.85);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
}

.empatheme-card-embed .rhythm-mirror-prompt::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -8px;
  width: 30px;
  height: 8px;
  background: rgba(72, 89, 245, 0.85);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.empatheme-card-embed { margin: 28px auto; color: #222; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.empatheme-card-embed .card-image { margin: 0; border: 0; max-width: 100%; }
.empatheme-card-embed .seed-mascot { margin: 0; border: 0; }
.empatheme-card-embed .rhythm-mirror-button { appearance: none; box-shadow: none; text-transform: none; font: inherit; text-align: left; }
.empatheme-card-embed .rhythm-mirror-button:focus-visible { outline: 3px solid #4859f5; outline-offset: 5px; }
.empatheme-card-embed audio { display: none; }
@media (max-width: 360px) {
  .empatheme-card-embed { padding-left: 14px; padding-right: 14px; }
  .empatheme-card-embed .rhythm-mirror-prompt { padding: 8px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .empatheme-card-embed .rhythm-mirror-button, .empatheme-card-embed .rhythm-mirror-segment { transition: none; }
}
