:root {
  --bm-ink: #342a35;
  --bm-muted: #6f6170;
  --bm-silver: #574b59;
  --bm-pink: #b93673;
  --bm-pink-bright: #982b60;
  --bm-plum: #75455e;
  --bm-plum-deep: #4b3040;
  --bm-panel: #fffafb;
  --bm-panel-soft: #f7eaf1;
  --bm-border: #d7a2bc;
  --bm-gold: #826328;
  --bm-good: #477d5b;
  --bm-warn: #8b6429;
  --bm-shadow: 0 10px 28px rgba(91, 48, 70, 0.14);
}

.game-state,
game-state {
  display: none !important;
}

.bd-ai-msg {
  color: #342a35 !important;
  background: #f7e4ed !important;
  border: 1px solid #ead0dd !important;
  border-radius: 18px !important;
  padding: 18px !important;
  box-shadow: 0 10px 28px rgba(91, 48, 70, 0.1) !important;
}

.bd-ai-msg > p,
.bd-ai-msg > blockquote,
.bd-ai-msg > ul,
.bd-ai-msg > ol {
  color: #342a35 !important;
}

.bm-status,
dialogue-panel,
action-options,
.bm-memory,
.bm-expression-strip,
.bm-scene-media {
  box-sizing: border-box;
  color: var(--bm-ink) !important;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

.bm-status *,
dialogue-panel *,
action-options *,
.bm-memory *,
.bm-expression-strip *,
.bm-scene-media * {
  box-sizing: border-box;
}

.bm-status {
  position: relative;
  display: grid;
  grid-template-columns: minmax(116px, 0.34fr) minmax(0, 1.66fr);
  gap: 14px;
  width: min(100%, 760px);
  margin: 1.2em auto 0;
  padding: 15px;
  overflow: hidden;
  border: 1px solid var(--bm-border) !important;
  border-radius: 18px;
  background:
    radial-gradient(circle at 9% 4%, rgba(235, 154, 192, 0.2), transparent 34%),
    linear-gradient(145deg, #fffdfd, var(--bm-panel) 58%, #f7ecf2) !important;
  box-shadow: var(--bm-shadow) !important;
}

.bm-status::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0 54%, rgba(178, 130, 151, 0.1) 54% 54.3%, transparent 54.3%),
    radial-gradient(circle at 92% 88%, rgba(224, 175, 199, 0.14), transparent 30%);
}

.bm-status > * {
  position: relative;
  z-index: 1;
}

.bm-portrait {
  position: relative;
  align-self: stretch;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(185, 54, 115, 0.32);
  border-radius: 14px;
  background: linear-gradient(160deg, #fff, #f7dce9 52%, #ddc5d1) !important;
}

.bm-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  object-position: center top;
}

.bm-portrait--empty {
  display: grid;
  place-items: end center;
  padding: 20px 10px;
}

.bm-portrait--empty::before {
  content: "牡丹";
  position: absolute;
  top: 20px;
  color: rgba(185, 54, 115, 0.2);
  font-family: serif;
  font-size: clamp(2.5rem, 10vw, 5rem);
  line-height: 1;
  writing-mode: vertical-rl;
}

.bm-portrait--empty span {
  position: relative;
  width: 100%;
  padding: 7px;
  border-top: 1px solid rgba(217, 189, 122, 0.38);
  color: var(--bm-plum-deep) !important;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
}

.bm-status-main {
  min-width: 0;
}

.bm-status header,
.bm-status .bm-status-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(238, 120, 174, 0.33);
}

.bm-status h3,
.bm-status h4,
.bm-status .bm-title {
  margin: 0;
  color: var(--bm-pink-bright) !important;
  font-family: "Noto Serif SC", "SimSun", serif;
  font-size: 1.04rem;
  letter-spacing: 0.1em;
}

.bm-subtitle,
.bm-time {
  color: var(--bm-muted);
  font-size: 0.78rem;
}

.bm-status dl,
.bm-status .bm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  margin: 0;
}

.bm-status dl > div,
.bm-status .bm-field {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(185, 54, 115, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78) !important;
}

.bm-status dt,
.bm-label {
  margin: 0 0 2px;
  color: var(--bm-pink);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.bm-status dd,
.bm-value {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--bm-ink) !important;
  font-size: 0.86rem;
  line-height: 1.45;
}

.bm-wide {
  grid-column: 1 / -1;
}

.bm-affection {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(238, 120, 174, 0.24);
  border-radius: 11px;
  background: #f2e2ea !important;
}

.bm-affection-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--bm-ink) !important;
  font-size: 0.78rem;
}

.bm-affection strong {
  color: var(--bm-pink-bright);
}

.bm-status progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e4d6dd;
}

.bm-status progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e4d6dd;
}

.bm-status progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #b04f80, var(--bm-pink-bright));
}

.bm-status progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #b04f80, var(--bm-pink-bright));
}

.bm-status details {
  grid-column: 1 / -1;
  margin-top: 8px;
  border-top: 1px solid rgba(185, 54, 115, 0.16);
}

.bm-status summary {
  padding: 9px 0 4px;
  color: var(--bm-gold);
  cursor: pointer;
  font-size: 0.78rem;
}

.bm-status ul {
  margin: 5px 0 0;
  padding-left: 1.25em;
  color: var(--bm-muted) !important;
  font-size: 0.8rem;
  line-height: 1.55;
}

dialogue-panel {
  display: grid;
  gap: 8px;
  width: min(100%, 720px);
  margin: 1em auto;
}

dialogue-line {
  position: relative;
  display: block;
  padding: 12px 14px 12px 18px;
  border: 1px solid #dfafc6 !important;
  border-left: 3px solid var(--bm-pink);
  border-radius: 6px 14px 14px 6px;
  color: var(--bm-ink) !important;
  background: linear-gradient(100deg, #fff3f8, #f7e4ed) !important;
  box-shadow: 0 7px 18px rgba(91, 48, 70, 0.12) !important;
  line-height: 1.65;
}

dialogue-line::before {
  content: attr(speaker);
  display: block;
  margin-bottom: 3px;
  color: var(--bm-pink-bright) !important;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.bm-expression-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 720px);
  margin: 0.8em auto;
}

.bm-expression {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--bm-border);
  border-radius: 12px;
  background: var(--bm-panel);
}

.bm-scene-media {
  width: min(100%, 680px);
  margin: 1em auto;
}

.bm-scene-image {
  display: block;
  width: 100%;
  max-height: min(78vh, 960px);
  object-fit: contain;
  border: 1px solid var(--bm-border);
  border-radius: 16px;
  background: var(--bm-panel);
  box-shadow: var(--bm-shadow);
}

action-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 8px;
  width: min(100%, 760px);
  margin: 1em auto 0;
}

action-choice {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 56px;
  padding: 15px 16px 15px 52px;
  border: 1px solid #dfafc6 !important;
  border-radius: 12px;
  color: var(--bm-ink) !important;
  background: linear-gradient(145deg, #fffafb, #f4e4ec) !important;
  box-shadow: 0 6px 16px rgba(91, 48, 70, 0.1) !important;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

action-choice::before {
  content: attr(index);
  position: absolute;
  top: 50%;
  left: 15px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(152, 43, 96, 0.5);
  border-radius: 50%;
  color: #fff !important;
  background: var(--bm-pink) !important;
  font-size: 0.72rem;
  font-weight: 700;
  transform: translateY(-50%);
}

action-choice:nth-child(5) {
  grid-column: 1 / -1 !important;
  border-color: #d5a06c !important;
}

.bm-memory {
  width: min(100%, 760px);
  margin: 10px auto 0;
  overflow: hidden;
  border: 1px solid #dfafc6;
  border-radius: 12px;
  color: var(--bm-ink) !important;
  background: #faedf3 !important;
}

.bm-memory > summary {
  padding: 11px 14px;
  color: var(--bm-plum-deep) !important;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bm-memory[open] > summary {
  border-bottom: 1px solid rgba(185, 54, 115, 0.16);
}

.bm-memory-body {
  padding: 4px 14px 10px;
}

.bm-memory-section {
  padding: 9px 0;
}

.bm-memory-section + .bm-memory-section {
  border-top: 1px solid rgba(185, 54, 115, 0.12);
}

.bm-memory-section h4 {
  margin: 0 0 5px;
  color: var(--bm-pink) !important;
  font-size: 0.82rem;
}

.bm-memory-section ul {
  margin: 0;
  padding-left: 1.25em;
  color: var(--bm-muted) !important;
  font-size: 0.78rem;
  line-height: 1.6;
}

.bm-memory-section li + li {
  margin-top: 3px;
}

.bm-memory-section strong {
  color: var(--bm-ink) !important;
}

@media (hover: hover) {
  action-choice {
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
  }

  action-choice:hover {
    transform: translateY(-1px);
    border-color: var(--bm-pink);
    background: linear-gradient(145deg, #fff, #f9ddea) !important;
  }
}

@media (max-width: 640px) {
  .bm-status {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
  }

  .bm-portrait,
  .bm-portrait img {
    min-height: 150px;
  }

  .bm-status dl,
  .bm-status .bm-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bm-wide {
    grid-column: auto;
  }

  .bm-status h3,
  .bm-status h4,
  .bm-status .bm-title {
    font-size: 0.94rem;
  }

  .bm-status dd,
  .bm-value,
  dialogue-line,
  action-choice,
  .bm-memory > summary {
    font-size: 0.84rem;
  }

  .bm-memory-body {
    padding-inline: 12px;
  }

  .bm-expression-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  action-options {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px;
    overflow: visible;
    padding: 0;
  }

  action-choice {
    min-height: 52px;
    padding: 13px 12px 13px 48px;
  }
}

@media (max-width: 420px) {
  .bm-status {
    grid-template-columns: 1fr;
  }

  .bm-portrait {
    min-height: 118px;
    max-height: 168px;
  }

  .bm-portrait img {
    min-height: 118px;
    max-height: 168px;
  }

  .bm-portrait--empty::before {
    writing-mode: horizontal-tb;
  }

  .bm-expression-strip {
    grid-template-columns: 1fr;
  }
}

/* Spring image mapping */
.bm-portrait {
  background-color: #f8eaf1 !important;
  background-image: url("https://miha.wiki/ueffaI.png") !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.bm-portrait > img,
.bm-turn-expression > img,
.bm-sex-pose > img {
  display: none !important;
}

.bm-expression-strip {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px;
  width: min(100%, 640px);
}

.bm-expression-card {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--bm-border);
  border-radius: 18px;
  background: var(--bm-panel) !important;
  box-shadow: var(--bm-shadow);
}

.bm-turn-expression {
  position: relative;
  display: block !important;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  visibility: visible !important;
  opacity: 1 !important;
  border: 0;
  border-bottom: 1px solid var(--bm-border);
  border-radius: 0;
  background-color: var(--bm-panel);
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}
bm-expr-01 {
  background-image: url("https://miha.wiki/1zN4hn.png") !important;
}

bm-expr-02 {
  background-image: url("https://miha.wiki/vvyQzW.png") !important;
}

bm-expr-03 {
  background-image: url("https://miha.wiki/IAIOJD.png") !important;
}

bm-expr-04 {
  background-image: url("https://miha.wiki/9COQ6y.png") !important;
}

bm-expr-05 {
  background-image: url("https://miha.wiki/6b1hC8.png") !important;
}

bm-expr-06 {
  background-image: url("https://miha.wiki/ML6ElC.png") !important;
}

bm-expr-07 {
  background-image: url("https://miha.wiki/gyNHvz.png") !important;
}

bm-expr-08 {
  background-image: url("https://miha.wiki/snSmis.png") !important;
}

bm-expr-09 {
  background-image: url("https://miha.wiki/cftB29.png") !important;
}

bm-expr-10 {
  background-image: url("https://miha.wiki/6pf9Bq.png") !important;
}

bm-expr-11 {
  background-image: url("https://miha.wiki/fmojfK.png") !important;
}

bm-expr-12 {
  background-image: url("https://miha.wiki/TuA9s5.png") !important;
}

bm-expr-13 {
  background-image: url("https://miha.wiki/owyks2.png") !important;
}

bm-expr-14 {
  background-image: url("https://miha.wiki/7axDtB.png") !important;
}

bm-expr-15 {
  background-image: url("https://miha.wiki/HZ4ngg.png") !important;
}

bm-expr-16 {
  background-image: url("https://miha.wiki/0STvX4.png") !important;
}

bm-expr-17 {
  background-image: url("https://miha.wiki/vwAOME.png") !important;
}

bm-expr-18 {
  background-image: url("https://miha.wiki/kye1xl.png") !important;
}

bm-expr-19 {
  background-image: url("https://miha.wiki/c8uAh9.png") !important;
}

bm-expr-20 {
  background-image: url("https://miha.wiki/FiFCNH.png") !important;
}

bm-expr-21 {
  background-image: url("https://miha.wiki/0OcQoW.png") !important;
}

bm-expr-22 {
  background-image: url("https://miha.wiki/4O3n8g.png") !important;
}

bm-expr-23 {
  background-image: url("https://miha.wiki/AMcJA4.png") !important;
}

bm-expr-24 {
  background-image: url("https://miha.wiki/4UcXxI.png") !important;
}

.bm-expression-caption {
  display: grid;
  gap: 5px;
  padding: 14px 17px 16px;
  color: var(--bm-ink) !important;
  background: linear-gradient(145deg, #fffdfd, #f8eaf1) !important;
}

.bm-expression-speaker {
  color: var(--bm-pink-bright) !important;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.bm-expression-text {
  color: var(--bm-pink-bright) !important;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.bm-scene-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bm-scene-media[data-count="1"] {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

.bm-sex-pose {
  display: block !important;
  width: 100%;
  aspect-ratio: 832 / 1216;
  min-height: 260px;
  visibility: visible !important;
  opacity: 1 !important;
  border: 1px solid var(--bm-border);
  border-radius: 16px;
  background-color: var(--bm-panel);
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  box-shadow: var(--bm-shadow);
}
.bm-sex-pose[data-sex-pose="P01"] {
  background-image: url("https://miha.wiki/1V81MX.png") !important;
}

.bm-sex-pose[data-sex-pose="P02"] {
  background-image: url("https://miha.wiki/YYpG10.png") !important;
}

.bm-sex-pose[data-sex-pose="P03"] {
  background-image: url("https://miha.wiki/di3UF7.png") !important;
}

.bm-sex-pose[data-sex-pose="P05"] {
  background-image: url("https://miha.wiki/xk7JFR.png") !important;
}

.bm-sex-pose[data-sex-pose="P06"] {
  background-image: url("https://miha.wiki/hiMOcm.png") !important;
}

.bm-sex-pose[data-sex-pose="P07"] {
  background-image: url("https://miha.wiki/texKVR.png") !important;
}

.bm-sex-pose[data-sex-pose="P08"] {
  background-image: url("https://miha.wiki/JBtphH.png") !important;
}

.bm-sex-pose[data-sex-pose="P09"] {
  background-image: url("https://miha.wiki/ra5xZx.png") !important;
}

.bm-sex-pose[data-sex-pose="P10"] {
  background-image: url("https://miha.wiki/hLcCQy.png") !important;
}

.bm-sex-pose[data-sex-pose="P11"] {
  background-image: url("https://miha.wiki/c7pHvh.png") !important;
}

.bm-sex-pose[data-sex-pose="P12"] {
  background-image: url("https://miha.wiki/shJ29F.png") !important;
}

.bm-sex-pose[data-sex-pose="P13"] {
  background-image: url("https://miha.wiki/1xNNja.png") !important;
}

.bm-sex-pose[data-sex-pose="P14"] {
  background-image: url("https://miha.wiki/QSXkQc.png") !important;
}

.bm-sex-pose[data-sex-pose="P15"] {
  background-image: url("https://miha.wiki/0OIA8s.png") !important;
}

.bm-sex-pose[data-sex-pose="P16"] {
  background-image: url("https://miha.wiki/mTQQMJ.png") !important;
}

.bm-sex-pose[data-sex-pose="P17"] {
  background-image: url("https://miha.wiki/AYAvFh.png") !important;
}

.bm-sex-pose[data-sex-pose="P18"] {
  background-image: url("https://miha.wiki/kl3iqE.png") !important;
}

.bm-sex-pose[data-sex-pose="P19"] {
  background-image: url("https://miha.wiki/WuL73F.png") !important;
}

.bm-sex-pose[data-sex-pose="P20"] {
  background-image: url("https://miha.wiki/RgnUA5.png") !important;
}

.bm-sex-pose[data-sex-pose="P21"] {
  background-image: url("https://miha.wiki/qzrkGM.png") !important;
}

.bm-sex-pose[data-sex-pose="P22"] {
  background-image: url("https://miha.wiki/Amnrtb.png") !important;
}

.bm-sex-pose[data-sex-pose="P23"] {
  background-image: url("https://miha.wiki/5yghsY.png") !important;
}

.bm-sex-pose[data-sex-pose="P24"] {
  background-image: url("https://miha.wiki/qmdtbD.png") !important;
}

.bm-sex-pose[data-sex-pose="P25"] {
  background-image: url("https://miha.wiki/FDTpem.png") !important;
}

.bm-sex-pose[data-sex-pose="P26"] {
  background-image: url("https://miha.wiki/f5JoMg.png") !important;
}

.bm-sex-pose[data-sex-pose="P27"] {
  background-image: url("https://miha.wiki/B5grCB.png") !important;
}

.bm-sex-pose[data-sex-pose="P28"] {
  background-image: url("https://miha.wiki/IFzJwV.png") !important;
}

.bm-sex-pose[data-sex-pose="P29"] {
  background-image: url("https://miha.wiki/EEHRQ4.png") !important;
}

.bm-sex-pose[data-sex-pose="P30"] {
  background-image: url("https://miha.wiki/fR2ExJ.png") !important;
}

.bm-sex-pose[data-sex-pose="P31"] {
  background-image: url("https://miha.wiki/0YmbFX.png") !important;
}

.bm-sex-pose[data-sex-pose="P32"] {
  background-image: url("https://miha.wiki/lt2utn.png") !important;
}

.bm-sex-pose[data-sex-pose="P33"] {
  background-image: url("https://miha.wiki/JD9bEC.png") !important;
}

.bm-sex-pose[data-sex-pose="P34"] {
  background-image: url("https://miha.wiki/EhPTwi.png") !important;
}

.bm-sex-pose[data-sex-pose="P35"] {
  background-image: url("https://miha.wiki/klM3L8.png") !important;
}

.bm-sex-pose[data-sex-pose="P36"] {
  background-image: url("https://miha.wiki/Mp7Loa.png") !important;
}

.bm-sex-pose[data-sex-pose="P37"] {
  background-image: url("https://miha.wiki/rT6jh5.png") !important;
}

.bm-sex-pose[data-sex-pose="P38"] {
  background-image: url("https://miha.wiki/K6Aehd.png") !important;
}

.bm-sex-pose[data-sex-pose="P39"] {
  background-image: url("https://miha.wiki/tPhzej.png") !important;
}

.bm-sex-pose[data-sex-pose="P40"] {
  background-image: url("https://miha.wiki/NKKkhH.png") !important;
}

.bm-sex-pose[data-sex-pose="P41"] {
  background-image: url("https://miha.wiki/nO0njK.png") !important;
}

.bm-sex-pose[data-sex-pose="P42"] {
  background-image: url("https://miha.wiki/KcQRmC.png") !important;
}

.bm-sex-pose[data-sex-pose="P43"] {
  background-image: url("https://miha.wiki/FqDOjw.png") !important;
}

.bm-sex-pose[data-sex-pose="P44"] {
  background-image: url("https://miha.wiki/5ozstl.png") !important;
}

.bm-sex-pose[data-sex-pose="P45"] {
  background-image: url("https://miha.wiki/IwXFxk.png") !important;
}

.bm-sex-pose[data-sex-pose="P46"] {
  background-image: url("https://miha.wiki/fjZNyW.png") !important;
}

.bm-sex-pose[data-sex-pose="P47"] {
  background-image: url("https://miha.wiki/pUljy4.png") !important;
}

.bm-sex-pose[data-sex-pose="P48"] {
  background-image: url("https://miha.wiki/uHtAmX.png") !important;
}

.bm-sex-pose[data-sex-pose="P49"] {
  background-image: url("https://miha.wiki/AhKciy.png") !important;
}

.bm-sex-pose[data-sex-pose="P50"] {
  background-image: url("https://miha.wiki/sC2Wsy.png") !important;
}

.bm-sex-pose[data-sex-pose="P51"] {
  background-image: url("https://miha.wiki/3p1V17.png") !important;
}

.bm-sex-pose[data-sex-pose="P52"] {
  background-image: url("https://miha.wiki/XvXppR.png") !important;
}

.bm-sex-pose[data-sex-pose="P53"] {
  background-image: url("https://miha.wiki/pitlfW.png") !important;
}

.bm-sex-pose[data-sex-pose="P54"] {
  background-image: url("https://miha.wiki/xtgmgL.png") !important;
}

.bm-sex-pose[data-sex-pose="P55"] {
  background-image: url("https://miha.wiki/W7ypQb.png") !important;
}

.bm-sex-pose[data-sex-pose="P56"] {
  background-image: url("https://miha.wiki/ZVtj8p.png") !important;
}

.bm-sex-pose[data-sex-pose="P57"] {
  background-image: url("https://miha.wiki/pAWGdM.png") !important;
}

.bm-sex-pose[data-sex-pose="P58"] {
  background-image: url("https://miha.wiki/Pg7W2A.png") !important;
}

.bm-sex-pose[data-sex-pose="P59"] {
  background-image: url("https://miha.wiki/tg8X7I.png") !important;
}

.bm-sex-pose[data-sex-pose="P60"] {
  background-image: url("https://miha.wiki/z6n7cm.png") !important;
}

.bm-sex-pose[data-sex-pose="P61"] {
  background-image: url("https://miha.wiki/qUNShI.png") !important;
}

.bm-sex-pose[data-sex-pose="P62"] {
  background-image: url("https://miha.wiki/0QCP7y.png") !important;
}

.bm-sex-pose[data-sex-pose="P63"] {
  background-image: url("https://miha.wiki/YhpxMg.png") !important;
}

.bm-sex-pose[data-sex-pose="P64"] {
  background-image: url("https://miha.wiki/omV4Qs.png") !important;
}

.bm-sex-pose[data-sex-pose="P65"] {
  background-image: url("https://miha.wiki/kkNxnY.png") !important;
}

.bm-sex-pose[data-sex-pose="P66"] {
  background-image: url("https://miha.wiki/OQ7xBj.png") !important;
}

.bm-sex-pose[data-sex-pose="P67"] {
  background-image: url("https://miha.wiki/erjqvn.png") !important;
}

.bm-sex-pose[data-sex-pose="P68"] {
  background-image: url("https://miha.wiki/opDxdV.png") !important;
}

.bm-sex-pose[data-sex-pose="P69"] {
  background-image: url("https://miha.wiki/5U9DNb.png") !important;
}

.bm-sex-pose[data-sex-pose="P70"] {
  background-image: url("https://miha.wiki/IivFcW.png") !important;
}

.bm-sex-pose[data-sex-pose="P71"] {
  background-image: url("https://miha.wiki/fXpu4y.png") !important;
}

.bm-sex-pose[data-sex-pose="P72"] {
  background-image: url("https://miha.wiki/KGLDGB.png") !important;
}

.bm-sex-pose[data-sex-pose="P73"] {
  background-image: url("https://miha.wiki/q4Xiws.png") !important;
}

.bm-sex-pose[data-sex-pose="P74"] {
  background-image: url("https://miha.wiki/tKjPg7.png") !important;
}

.bm-sex-pose[data-sex-pose="P75"] {
  background-image: url("https://miha.wiki/n7W22y.png") !important;
}

.bm-sex-pose[data-sex-pose="P76"] {
  background-image: url("https://miha.wiki/wNwYx0.png") !important;
}

.bm-sex-pose[data-sex-pose="P77"] {
  background-image: url("https://miha.wiki/U8NTgq.png") !important;
}

.bm-sex-pose[data-sex-pose="P78"] {
  background-image: url("https://miha.wiki/d5COea.png") !important;
}

.bm-sex-pose[data-sex-pose="P79"] {
  background-image: url("https://miha.wiki/YU0KXn.png") !important;
}

.bm-sex-pose[data-sex-pose="P80"] {
  background-image: url("https://miha.wiki/7pGgTu.png") !important;
}

.bm-sex-pose[data-sex-pose="P81"] {
  background-image: url("https://miha.wiki/kNqVCS.png") !important;
}

.bd-user-msg {
  color: #342a35 !important;
  background: rgba(255, 250, 252, 0.96) !important;
  border: 1px solid #ead0dd !important;
  border-radius: 16px !important;
}

@keyframes bm-affection-grow {
  from {
    transform: scaleX(0);
    filter: saturate(.72) brightness(1.12);
  }
  to {
    transform: scaleX(1);
    filter: saturate(1) brightness(1);
  }
}

@keyframes bm-affection-shine {
  from { background-position: 130% 0; }
  to { background-position: -40% 0; }
}

.bm-status progress::-webkit-progress-value {
  animation: none;
}

.bm-status progress::-moz-progress-bar {
  animation: none;
}

.bm-affection-bar {
  position: relative;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(102, 58, 78, .13) !important;
  box-shadow: inset 0 1px 2px rgba(75, 48, 64, .1);
}

.bm-affection-fill {
  position: relative;
  display: block;
  width: var(--bm-affection-width, 0%);
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  transform-origin: left center;
  will-change: transform, background-position;
  background: linear-gradient(105deg, #b04f80 0 42%, #f4b9d2 50%, var(--bm-pink-bright) 58% 100%) !important;
  background-size: 220% 100% !important;
  animation: bm-affection-grow 900ms cubic-bezier(.22, .8, .3, 1) both,
             bm-affection-shine 1250ms 300ms ease-out both;
}

.bm-affection-bar[data-affection="0"] { --bm-affection-width: 0%; }
.bm-affection-bar[data-affection="1"] { --bm-affection-width: 1%; }
.bm-affection-bar[data-affection="2"] { --bm-affection-width: 2%; }
.bm-affection-bar[data-affection="3"] { --bm-affection-width: 3%; }
.bm-affection-bar[data-affection="4"] { --bm-affection-width: 4%; }
.bm-affection-bar[data-affection="5"] { --bm-affection-width: 5%; }
.bm-affection-bar[data-affection="6"] { --bm-affection-width: 6%; }
.bm-affection-bar[data-affection="7"] { --bm-affection-width: 7%; }
.bm-affection-bar[data-affection="8"] { --bm-affection-width: 8%; }
.bm-affection-bar[data-affection="9"] { --bm-affection-width: 9%; }
.bm-affection-bar[data-affection="10"] { --bm-affection-width: 10%; }
.bm-affection-bar[data-affection="11"] { --bm-affection-width: 11%; }
.bm-affection-bar[data-affection="12"] { --bm-affection-width: 12%; }
.bm-affection-bar[data-affection="13"] { --bm-affection-width: 13%; }
.bm-affection-bar[data-affection="14"] { --bm-affection-width: 14%; }
.bm-affection-bar[data-affection="15"] { --bm-affection-width: 15%; }
.bm-affection-bar[data-affection="16"] { --bm-affection-width: 16%; }
.bm-affection-bar[data-affection="17"] { --bm-affection-width: 17%; }
.bm-affection-bar[data-affection="18"] { --bm-affection-width: 18%; }
.bm-affection-bar[data-affection="19"] { --bm-affection-width: 19%; }
.bm-affection-bar[data-affection="20"] { --bm-affection-width: 20%; }
.bm-affection-bar[data-affection="21"] { --bm-affection-width: 21%; }
.bm-affection-bar[data-affection="22"] { --bm-affection-width: 22%; }
.bm-affection-bar[data-affection="23"] { --bm-affection-width: 23%; }
.bm-affection-bar[data-affection="24"] { --bm-affection-width: 24%; }
.bm-affection-bar[data-affection="25"] { --bm-affection-width: 25%; }
.bm-affection-bar[data-affection="26"] { --bm-affection-width: 26%; }
.bm-affection-bar[data-affection="27"] { --bm-affection-width: 27%; }
.bm-affection-bar[data-affection="28"] { --bm-affection-width: 28%; }
.bm-affection-bar[data-affection="29"] { --bm-affection-width: 29%; }
.bm-affection-bar[data-affection="30"] { --bm-affection-width: 30%; }
.bm-affection-bar[data-affection="31"] { --bm-affection-width: 31%; }
.bm-affection-bar[data-affection="32"] { --bm-affection-width: 32%; }
.bm-affection-bar[data-affection="33"] { --bm-affection-width: 33%; }
.bm-affection-bar[data-affection="34"] { --bm-affection-width: 34%; }
.bm-affection-bar[data-affection="35"] { --bm-affection-width: 35%; }
.bm-affection-bar[data-affection="36"] { --bm-affection-width: 36%; }
.bm-affection-bar[data-affection="37"] { --bm-affection-width: 37%; }
.bm-affection-bar[data-affection="38"] { --bm-affection-width: 38%; }
.bm-affection-bar[data-affection="39"] { --bm-affection-width: 39%; }
.bm-affection-bar[data-affection="40"] { --bm-affection-width: 40%; }
.bm-affection-bar[data-affection="41"] { --bm-affection-width: 41%; }
.bm-affection-bar[data-affection="42"] { --bm-affection-width: 42%; }
.bm-affection-bar[data-affection="43"] { --bm-affection-width: 43%; }
.bm-affection-bar[data-affection="44"] { --bm-affection-width: 44%; }
.bm-affection-bar[data-affection="45"] { --bm-affection-width: 45%; }
.bm-affection-bar[data-affection="46"] { --bm-affection-width: 46%; }
.bm-affection-bar[data-affection="47"] { --bm-affection-width: 47%; }
.bm-affection-bar[data-affection="48"] { --bm-affection-width: 48%; }
.bm-affection-bar[data-affection="49"] { --bm-affection-width: 49%; }
.bm-affection-bar[data-affection="50"] { --bm-affection-width: 50%; }
.bm-affection-bar[data-affection="51"] { --bm-affection-width: 51%; }
.bm-affection-bar[data-affection="52"] { --bm-affection-width: 52%; }
.bm-affection-bar[data-affection="53"] { --bm-affection-width: 53%; }
.bm-affection-bar[data-affection="54"] { --bm-affection-width: 54%; }
.bm-affection-bar[data-affection="55"] { --bm-affection-width: 55%; }
.bm-affection-bar[data-affection="56"] { --bm-affection-width: 56%; }
.bm-affection-bar[data-affection="57"] { --bm-affection-width: 57%; }
.bm-affection-bar[data-affection="58"] { --bm-affection-width: 58%; }
.bm-affection-bar[data-affection="59"] { --bm-affection-width: 59%; }
.bm-affection-bar[data-affection="60"] { --bm-affection-width: 60%; }
.bm-affection-bar[data-affection="61"] { --bm-affection-width: 61%; }
.bm-affection-bar[data-affection="62"] { --bm-affection-width: 62%; }
.bm-affection-bar[data-affection="63"] { --bm-affection-width: 63%; }
.bm-affection-bar[data-affection="64"] { --bm-affection-width: 64%; }
.bm-affection-bar[data-affection="65"] { --bm-affection-width: 65%; }
.bm-affection-bar[data-affection="66"] { --bm-affection-width: 66%; }
.bm-affection-bar[data-affection="67"] { --bm-affection-width: 67%; }
.bm-affection-bar[data-affection="68"] { --bm-affection-width: 68%; }
.bm-affection-bar[data-affection="69"] { --bm-affection-width: 69%; }
.bm-affection-bar[data-affection="70"] { --bm-affection-width: 70%; }
.bm-affection-bar[data-affection="71"] { --bm-affection-width: 71%; }
.bm-affection-bar[data-affection="72"] { --bm-affection-width: 72%; }
.bm-affection-bar[data-affection="73"] { --bm-affection-width: 73%; }
.bm-affection-bar[data-affection="74"] { --bm-affection-width: 74%; }
.bm-affection-bar[data-affection="75"] { --bm-affection-width: 75%; }
.bm-affection-bar[data-affection="76"] { --bm-affection-width: 76%; }
.bm-affection-bar[data-affection="77"] { --bm-affection-width: 77%; }
.bm-affection-bar[data-affection="78"] { --bm-affection-width: 78%; }
.bm-affection-bar[data-affection="79"] { --bm-affection-width: 79%; }
.bm-affection-bar[data-affection="80"] { --bm-affection-width: 80%; }
.bm-affection-bar[data-affection="81"] { --bm-affection-width: 81%; }
.bm-affection-bar[data-affection="82"] { --bm-affection-width: 82%; }
.bm-affection-bar[data-affection="83"] { --bm-affection-width: 83%; }
.bm-affection-bar[data-affection="84"] { --bm-affection-width: 84%; }
.bm-affection-bar[data-affection="85"] { --bm-affection-width: 85%; }
.bm-affection-bar[data-affection="86"] { --bm-affection-width: 86%; }
.bm-affection-bar[data-affection="87"] { --bm-affection-width: 87%; }
.bm-affection-bar[data-affection="88"] { --bm-affection-width: 88%; }
.bm-affection-bar[data-affection="89"] { --bm-affection-width: 89%; }
.bm-affection-bar[data-affection="90"] { --bm-affection-width: 90%; }
.bm-affection-bar[data-affection="91"] { --bm-affection-width: 91%; }
.bm-affection-bar[data-affection="92"] { --bm-affection-width: 92%; }
.bm-affection-bar[data-affection="93"] { --bm-affection-width: 93%; }
.bm-affection-bar[data-affection="94"] { --bm-affection-width: 94%; }
.bm-affection-bar[data-affection="95"] { --bm-affection-width: 95%; }
.bm-affection-bar[data-affection="96"] { --bm-affection-width: 96%; }
.bm-affection-bar[data-affection="97"] { --bm-affection-width: 97%; }
.bm-affection-bar[data-affection="98"] { --bm-affection-width: 98%; }
.bm-affection-bar[data-affection="99"] { --bm-affection-width: 99%; }
.bm-affection-bar[data-affection="100"] { --bm-affection-width: 100%; }

@media (max-width: 640px) {
  .bm-expression-strip,
  .bm-scene-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .bm-sex-pose {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bm-affection-fill {
    animation: none;
  }
}

/* 日历平台兼容：同时覆盖已知外壳与消息正则生成的卡片内层。 */
#customized-answer-content {
  box-sizing: border-box;
  color: #342a35 !important;
  -webkit-text-fill-color: #342a35 !important;
  line-height: 1.82;
  overflow-wrap: anywhere;
  background: #f7e4ed !important;
  border: 1px solid #ead0dd !important;
  border-radius: 5px 18px 18px 18px !important;
  padding: 18px !important;
  box-shadow: 0 10px 28px rgba(91, 48, 70, 0.10) !important;
}

#customized-answer-content > p,
#customized-answer-content > blockquote,
#customized-answer-content > ul,
#customized-answer-content > ol {
  color: #342a35 !important;
  -webkit-text-fill-color: #342a35 !important;
}

.bm-answer-surface {
  display: flow-root;
  box-sizing: border-box;
  max-width: none;
  margin: -12px;
  padding: 18px;
  color: #342a35 !important;
  -webkit-text-fill-color: #342a35 !important;
  line-height: 1.82;
  overflow-wrap: anywhere;
  background: #f7e4ed !important;
  border: 1px solid #ead0dd !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 28px rgba(91, 48, 70, 0.10) !important;
}

.bm-answer-surface > p,
.bm-answer-surface > blockquote,
.bm-answer-surface > ul,
.bm-answer-surface > ol {
  color: #342a35 !important;
  -webkit-text-fill-color: #342a35 !important;
}
